From 7e1efe3174336fa09a56c596af55ba93d7b14a91 Mon Sep 17 00:00:00 2001 From: "Hansen, Tony (th1395)" Date: Wed, 13 May 2020 18:55:54 +0000 Subject: move plugins from from ccsdk to dcaegen2 copy dmaap, helm, pgaas and sshkeyshare plugins from ccsdk to dcaegen2 Change-Id: Ib257495de6c275c45f0c87a4b42ac21a2fab7979 Signed-off-by: Hansen, Tony (th1395) Issue-ID: DCAEGEN2-2207 Signed-off-by: Hansen, Tony (th1395) --- k8s/tests/test_discovery.py | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'k8s/tests/test_discovery.py') diff --git a/k8s/tests/test_discovery.py b/k8s/tests/test_discovery.py index 24e45ee..660a820 100644 --- a/k8s/tests/test_discovery.py +++ b/k8s/tests/test_discovery.py @@ -1,7 +1,7 @@ # ============LICENSE_START======================================================= # org.onap.dcae # ================================================================================ -# Copyright (c) 2017-2018 AT&T Intellectual Property. All rights reserved. +# Copyright (c) 2017-2020 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. @@ -16,7 +16,6 @@ # limitations under the License. # ============LICENSE_END========================================================= # -# ECOMP is a trademark and service mark of AT&T Intellectual Property. import pytest from functools import partial @@ -24,7 +23,7 @@ import requests def test_wrap_consul_call(mockconfig): from k8splugin import discovery as dis - + def foo(a, b, c="default"): return " ".join([a, b, c]) @@ -41,11 +40,11 @@ def test_wrap_consul_call(mockconfig): def test_generate_service_component_name(mockconfig): from k8splugin import discovery as dis - + component_type = "some-component-type" name = dis.generate_service_component_name(component_type) assert name.split("-", 1)[1] == component_type - + def test_find_matching_services(mockconfig): from k8splugin import discovery as dis @@ -68,4 +67,4 @@ def test_is_healthy_pure(mockconfig): def fake_is_healthy(name): return 0, [{ "Checks": [{"Status": "passing"}] }] - assert True == dis._is_healthy_pure(fake_is_healthy, "some-component") \ No newline at end of file + assert True == dis._is_healthy_pure(fake_is_healthy, "some-component") -- cgit 1.2.3-korg