airflow-commits mailing list archives

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


ASF subversion and git services commented on AIRFLOW-1901:

Commit 9d9727a80a3948615a4085d5168c24394fde5c84 in incubator-airflow's branch refs/heads/master
from [~erod]
[;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

Closes #2860 from edgarRd/erod-

> Refactor & improve impersonation tests for `run_as_user`
> --------------------------------------------------------
>                 Key: AIRFLOW-1901
>                 URL:
>             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

View raw message