summaryrefslogtreecommitdiffstats
path: root/k8s/tests/test_k8sclient.py
diff options
context:
space:
mode:
authorJack Lucas <jflucas@research.att.com>2019-04-19 15:14:25 -0400
committerJack Lucas <jflucas@research.att.com>2019-04-19 15:51:07 -0400
commit175a6d52277d321a93310dbe78d81a4ff68d2a10 (patch)
tree547fd11e46854fe28d9a57d20adaf1798fa25a75 /k8s/tests/test_k8sclient.py
parent34dd2c9a61528cb87ecf59d031bae23cd257210a (diff)
Fix DR subscriber failure4.0.0-ONAPdublin
Issue-ID: DCAEGEN2-1009 Change-Id: Ieb770b6562123dda78fd4b8c8c514d30767ad7fb Signed-off-by: Jack Lucas <jflucas@research.att.com>
Diffstat (limited to 'k8s/tests/test_k8sclient.py')
-rw-r--r--k8s/tests/test_k8sclient.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/k8s/tests/test_k8sclient.py b/k8s/tests/test_k8sclient.py
index 43939ad..70ebf05 100644
--- a/k8s/tests/test_k8sclient.py
+++ b/k8s/tests/test_k8sclient.py
@@ -86,7 +86,7 @@ def test_parse_interval():
_parse_interval(interval)
def test_parse_ports():
- from k8sclient.k8sclient import _parse_ports
+ from k8sclient.k8sclient import parse_ports
good_ports = [{"in": input, "ex": expected}
for (input, expected) in [
@@ -133,16 +133,16 @@ def test_parse_ports():
}
for test_case in good_ports:
- container_ports, port_map = _parse_ports([test_case["in"]])
+ container_ports, port_map = parse_ports([test_case["in"]])
(cport, hport, proto) = test_case["ex"]
assert container_ports == [(cport, proto)]
assert port_map == {(cport, proto) : hport}
for port in bad_ports:
with pytest.raises(ValueError):
- _parse_ports([port])
+ parse_ports([port])
- container_ports, port_map = _parse_ports(port_list)
+ container_ports, port_map = parse_ports(port_list)
assert port_map == expected_port_map
def test_create_container():