CI: Remove %cn_ip%/hardcoded IPs from ping test options

With the server object to be passed into ping test, it's not necessary
to either hardcode an IP address or provide a template. Instead, always
fill the IP address, which simplies the Ping() code.

Verify that we don't have an IP address/hardcoded by throwing an
assertion.
This commit is contained in:
Robert Schmidt
2025-04-02 14:23:32 +02:00
parent 98ac540d57
commit 6172550492
48 changed files with 87 additions and 96 deletions
+1 -1
View File
@@ -25,7 +25,7 @@ class TestPingIperf(unittest.TestCase):
self.cont = cls_containerize.Containerize()
def test_ping(self):
self.ci.ping_args = "-c3 127.0.0.1"
self.ci.ping_args = "-c3"
self.ci.ping_packetloss_threshold = "0"
self.ci.svr_id = "test"
infra_file = "tests/config/infra_ping_iperf.yaml"