summaryrefslogtreecommitdiffstats
path: root/k8s/tests/test_discovery.py
diff options
context:
space:
mode:
authorHansen, Tony (th1395) <th1395@att.com>2020-05-13 18:55:54 +0000
committerHansen, Tony (th1395) <th1395@att.com>2020-06-02 20:36:06 +0000
commit7e1efe3174336fa09a56c596af55ba93d7b14a91 (patch)
treebad0fc0c5bb0a54f69e7d046008c423c507f87d6 /k8s/tests/test_discovery.py
parent05e95de3b9736160b4229232903e86706fb782e1 (diff)
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) <th1395@att.com> Issue-ID: DCAEGEN2-2207 Signed-off-by: Hansen, Tony (th1395) <th1395@att.com>
Diffstat (limited to 'k8s/tests/test_discovery.py')
-rw-r--r--k8s/tests/test_discovery.py11
1 files changed, 5 insertions, 6 deletions
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")