summaryrefslogtreecommitdiffstats
path: root/k8s/tests/test_tasks.py
diff options
context:
space:
mode:
authorJack Lucas <jflucas@research.att.com>2018-07-25 20:33:50 +0000
committerJack Lucas <jflucas@research.att.com>2018-07-25 20:34:34 +0000
commit03ac66c04143f712378a92ef258253b8ce6b1e8b (patch)
tree3fd27e57217ece214b1e602cfd046cbacb099c9e /k8s/tests/test_tasks.py
parent926eb8c21979a6972838dae8e9de29903d1b26f1 (diff)
Add policy update notification support
Use k8s terminology instead of Docker terminology Remove some redundant logging Change-Id: Ic8e581ebde9ea062a7d0e145465425eec1db57c3 Issue-ID: DCAEGEN2-504 Signed-off-by: Jack Lucas <jflucas@research.att.com>
Diffstat (limited to 'k8s/tests/test_tasks.py')
-rw-r--r--k8s/tests/test_tasks.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/k8s/tests/test_tasks.py b/k8s/tests/test_tasks.py
index 077a940..69e866d 100644
--- a/k8s/tests/test_tasks.py
+++ b/k8s/tests/test_tasks.py
@@ -200,7 +200,7 @@ def test_verify_container(monkeypatch, mockconfig):
monkeypatch.setattr(k8sclient, "is_available",
fake_is_available_success)
- assert tasks._verify_container("some-name", 3)
+ assert tasks._verify_k8s_deployment("some-name", 3)
def fake_is_available_never_good(ch, scn):
return False
@@ -209,7 +209,7 @@ def test_verify_container(monkeypatch, mockconfig):
fake_is_available_never_good)
with pytest.raises(DockerPluginDeploymentError):
- tasks._verify_container("some-name", 2)
+ tasks._verify_k8s_deployment("some-name", 2)
def test_update_delivery_url(monkeypatch, mockconfig):
@@ -289,5 +289,5 @@ def test_enhance_docker_params(mockconfig):
def test_notify_container(mockconfig):
from k8splugin import tasks
- test_input = { "docker_config": { "trigger_type": "unknown" } }
- assert test_input == tasks._notify_container(**test_input) \ No newline at end of file
+ test_input = { "docker_config": { "policy": { "trigger_type": "unknown" } } }
+ assert [] == tasks._notify_container(**test_input) \ No newline at end of file