airflow-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF subversion and git services (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (AIRFLOW-1901) Refactor & improve impersonation tests for `run_as_user`
Date Tue, 12 Dec 2017 00:49:00 GMT

    [ https://issues.apache.org/jira/browse/AIRFLOW-1901?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16286880#comment-16286880
] 

ASF subversion and git services commented on AIRFLOW-1901:
----------------------------------------------------------

Commit 9d9727a80a3948615a4085d5168c24394fde5c84 in incubator-airflow's branch refs/heads/master
from [~erod]
[ https://git-wip-us.apache.org/repos/asf?p=incubator-airflow.git;h=9d9727a ]

[AIRFLOW-1893][AIRFLOW-1901] Propagate PYTHONPATH when using impersonation

When using impersonation via `run_as_user`, the
PYTHONPATH environment
variable is not propagated hence there may be
issues when depending on
specific custom packages used in DAGs.
This PR propagates only the PYTHONPATH in the
process creating the
sub-process with impersonation, if any.

Tested in staging environment; impersonation tests
in airflow are not very portable and fixing them
would take additional work, leaving as TODO and
tracking with jira ticket: https://issues.apache.o
rg/jira/browse/AIRFLOW-1901.

Closes #2860 from edgarRd/erod-
pythonpath_run_as_user


> Refactor & improve impersonation tests for `run_as_user`
> --------------------------------------------------------
>
>                 Key: AIRFLOW-1901
>                 URL: https://issues.apache.org/jira/browse/AIRFLOW-1901
>             Project: Apache Airflow
>          Issue Type: Test
>            Reporter: Edgar Rodriguez
>            Assignee: Edgar Rodriguez
>
> Current impersonation tests are not portable and require additional work to make them
more useful.
> Additionally, we need to add more tests on impersonation when using {{run_as_user}}.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Mime
View raw message