From a3f62fa65e34b2dd1130ea8dd647a98e0575a330 Mon Sep 17 00:00:00 2001 From: Jack Lucas Date: Mon, 11 Mar 2019 17:43:37 -0400 Subject: Add multi-cluster support Issue-ID: DCAEGEN2-1136 Change-Id: I314e5d8c501198b3e87c45813201498935c7bacc Signed-off-by: Jack Lucas --- k8s/tests/test_tasks.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'k8s/tests/test_tasks.py') 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): -- cgit 1.2.3-korg