diff options
author | Jack Lucas <jflucas@research.att.com> | 2019-03-11 17:43:37 -0400 |
---|---|---|
committer | Jack Lucas <jflucas@research.att.com> | 2019-03-18 10:00:28 -0400 |
commit | a3f62fa65e34b2dd1130ea8dd647a98e0575a330 (patch) | |
tree | 773293c60403e4d4b96260e80f80ba5b8fa8eee6 /k8s/tests/test_tasks.py | |
parent | ecc38094077da21c7cb7c84597710945fbc01788 (diff) |
Add multi-cluster support
Issue-ID: DCAEGEN2-1136
Change-Id: I314e5d8c501198b3e87c45813201498935c7bacc
Signed-off-by: Jack Lucas <jflucas@research.att.com>
Diffstat (limited to 'k8s/tests/test_tasks.py')
-rw-r--r-- | k8s/tests/test_tasks.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/k8s/tests/test_tasks.py b/k8s/tests/test_tasks.py index cf78860..d56a443 100644 --- a/k8s/tests/test_tasks.py +++ b/k8s/tests/test_tasks.py @@ -1,7 +1,7 @@ # ============LICENSE_START======================================================= # org.onap.dcae # ================================================================================ -# Copyright (c) 2017-2018 AT&T Intellectual Property. All rights reserved. +# Copyright (c) 2017-2019 AT&T Intellectual Property. All rights reserved. # ================================================================================ # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -194,21 +194,21 @@ def test_verify_container(monkeypatch, mockconfig): from k8splugin import tasks from k8splugin.exceptions import DockerPluginDeploymentError - def fake_is_available_success(ch, scn): + def fake_is_available_success(loc, ch, scn): return True monkeypatch.setattr(k8sclient, "is_available", fake_is_available_success) - assert tasks._verify_k8s_deployment("some-name", 3) + assert tasks._verify_k8s_deployment("some-location","some-name", 3) - def fake_is_available_never_good(ch, scn): + def fake_is_available_never_good(loc, ch, scn): return False monkeypatch.setattr(k8sclient, "is_available", fake_is_available_never_good) - assert not tasks._verify_k8s_deployment("some-name", 2) + assert not tasks._verify_k8s_deployment("some-location", "some-name", 2) def test_update_delivery_url(monkeypatch, mockconfig): |