From 03ac66c04143f712378a92ef258253b8ce6b1e8b Mon Sep 17 00:00:00 2001 From: Jack Lucas Date: Wed, 25 Jul 2018 20:33:50 +0000 Subject: 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 --- k8s/tests/test_tasks.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'k8s/tests/test_tasks.py') 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 -- cgit 1.2.3-korg