From f29ba9553ccc74cf143fe29240978121c973e0f4 Mon Sep 17 00:00:00 2001 From: Hongbin Lu Date: Sun, 7 Apr 2019 19:38:13 +0000 Subject: [PATCH] Remove image_pull_policy field We are going to limit users who have admin privilege to access this field. This commit removes this field from tempest test. Change-Id: I02438b18c7bf852788f6842e0889acff9cc19ed7 --- zun_tempest_plugin/tests/tempest/api/common/datagen.py | 2 -- zun_tempest_plugin/tests/tempest/api/test_capsules.py | 1 - 2 files changed, 3 deletions(-) diff --git a/zun_tempest_plugin/tests/tempest/api/common/datagen.py b/zun_tempest_plugin/tests/tempest/api/common/datagen.py index 4cb1bac..238516f 100644 --- a/zun_tempest_plugin/tests/tempest/api/common/datagen.py +++ b/zun_tempest_plugin/tests/tempest/api/common/datagen.py @@ -59,7 +59,6 @@ def container_data(default_data=None, **kwargs): 'environment': {}, 'labels': {}, 'image_driver': 'docker', - 'image_pull_policy': 'always', 'restart_policy': {'Name': 'no'}, 'workdir': '/', 'interactive': False, @@ -83,7 +82,6 @@ def container_data_legacy(default_data=None, **kwargs): 'environment': {}, 'labels': {}, 'image_driver': 'docker', - 'image_pull_policy': 'always', 'restart_policy': {'Name': 'no'}, 'workdir': '/', 'interactive': False, diff --git a/zun_tempest_plugin/tests/tempest/api/test_capsules.py b/zun_tempest_plugin/tests/tempest/api/test_capsules.py index 7966789..864c965 100644 --- a/zun_tempest_plugin/tests/tempest/api/test_capsules.py +++ b/zun_tempest_plugin/tests/tempest/api/test_capsules.py @@ -82,7 +82,6 @@ class TestCapsule(base.BaseZunTest): "ENV2": "/usr/bin" }, "image": "ubuntu", - "imagePullPolicy": "ifnotpresent", "ports": [ { "containerPort": 80,