diff options
author | Jack Lucas <jflucas@research.att.com> | 2018-07-17 21:34:22 +0000 |
---|---|---|
committer | Jack Lucas <jflucas@research.att.com> | 2018-07-17 21:36:18 +0000 |
commit | 4fbbe8f6279c7c9b1e66c7b85f0ecbfa558d4c98 (patch) | |
tree | 038669a54139fe4cea712c31f6114c6d19711068 /k8s/tests | |
parent | 8db18d78975af115f44c84c170f678fc34001789 (diff) |
Add support for updating image.
- Refactor type file to reduce duplication
- General code cleanup
Change-Id: I80354736100dcd3544db2f751335d704bd240666
Issue-ID: DCAEGEN2-543
Signed-off-by: Jack Lucas <jflucas@research.att.com>
Diffstat (limited to 'k8s/tests')
-rw-r--r-- | k8s/tests/test_tasks.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/k8s/tests/test_tasks.py b/k8s/tests/test_tasks.py index 4d0aa90..077a940 100644 --- a/k8s/tests/test_tasks.py +++ b/k8s/tests/test_tasks.py @@ -190,10 +190,10 @@ def test_lookup_service(monkeypatch, mockconfig): def test_verify_container(monkeypatch, mockconfig): - from k8sclient import k8sclient + import k8sclient from k8splugin import tasks from k8splugin.exceptions import DockerPluginDeploymentError - + def fake_is_available_success(ch, scn): return True @@ -273,7 +273,7 @@ def test_enhance_docker_params(mockconfig): assert actual == {'envs': {"SERVICE_TAGS": ""}, 'docker_config': {'ports': ['1:1', '2:2'], 'volumes': [{'host': 'somewhere else', 'container': 'somewhere'}]}, - 'ports': ['1:1', '2:2', '3:3', '4:4'], 'volumes': [{'host': 'somewhere else', + 'ports': ['1:1', '2:2', '3:3', '4:4'], 'volumes': [{'host': 'somewhere else', 'container': 'somewhere'}, {'host': 'nowhere else', 'container': 'nowhere'}], "service_id": None} |