Always get first node in calico tests and fix target
Change-Id: Icfd072eddd1d807b7b2ed7bf7f47d768480b4b7d
Related-PROD: PROD-24473
Related-PROD: PROD-24472
diff --git a/tcp_tests/tests/system/test_calico.py b/tcp_tests/tests/system/test_calico.py
index ca5c116..6399eb3 100644
--- a/tcp_tests/tests/system/test_calico.py
+++ b/tcp_tests/tests/system/test_calico.py
@@ -107,9 +107,7 @@
assert len(first_node_ips) > 0, "Couldn't find first k8s node IP!"
first_node_names = [name for name in underlay.node_names()
if name.startswith(first_node.name)]
- assert len(first_node_names) == 1, "Couldn't find first k8s node " \
- "hostname in SSH config!"
- first_node_name = first_node_names.pop()
+ first_node_name = first_node_names[0]
target_pod_ip = None