diff options
Diffstat (limited to 'k8s/tests/test_discovery.py')
-rw-r--r-- | k8s/tests/test_discovery.py | 11 |
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") |