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:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user