Skip to content

Commit

Permalink
[AIRFLOW-4856] change hard coded run_as_user
Browse files Browse the repository at this point in the history
fix unit test
  • Loading branch information
MingjieAmadeus committed Jun 28, 2019
1 parent 09141f2 commit f276ec6
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion tests/executors/test_kubernetes_executor.py
Original file line number Diff line number Diff line change
Expand Up @@ -406,7 +406,12 @@ def test_init_environment_using_git_sync_run_as_user_empty(self):

worker_config = WorkerConfiguration(self.kube_config)
init_containers = worker_config._get_init_containers()
self.assertIsNone(init_containers[0]['securityContext'])
self.assertTrue(init_containers) # check not empty

self.assertNotIn(
'securityContext', init_containers[0],
"securityContext shouldn't be defined"
)

def test_make_pod_run_as_user_0(self):
# Tests the pod created with run-as-user 0 actually gets that in it's config
Expand Down

0 comments on commit f276ec6

Please sign in to comment.