Configurable infrastructure file for Ping and Iperf()

- Make configurable to override (to be used later in extended tests with
  new core class)
- Move ping-iperf test infra to tests/ directory
This commit is contained in:
Robert Schmidt
2025-03-21 16:51:56 +01:00
parent 4a9bb6dbe4
commit 19932b10f6
4 changed files with 12 additions and 11 deletions
@@ -0,0 +1,3 @@
test:
Host: localhost
NetworkScript: echo "inet 127.0.0.1 mtu 1500"
+4 -2
View File
@@ -33,8 +33,9 @@ class TestPingIperf(unittest.TestCase):
def test_ping(self):
self.ci.ping_args = "-c3 127.0.0.1"
self.ci.ping_packetloss_threshold = "0"
infra_file = "tests/config/infra_ping_iperf.yaml"
# TODO Should need nothing but options and UE(s) to use
success = self.ci.Ping(self.html, self.epc, self.cont)
success = self.ci.Ping(self.html, self.epc, self.cont, infra_file=infra_file)
self.assertTrue(success)
def test_iperf(self):
@@ -47,8 +48,9 @@ class TestPingIperf(unittest.TestCase):
self.ci.iperf_packetloss_threshold = "0"
self.ci.iperf_bitrate_threshold = "0"
self.ci.iperf_profile = "balanced"
infra_file = "tests/config/infra_ping_iperf.yaml"
# TODO Should need nothing but options and UE(s) to use
success = self.ci.Iperf(self.html, self.epc, self.cont)
success = self.ci.Iperf(self.html, self.epc, self.cont, infra_file=infra_file)
self.assertTrue(success)
if __name__ == '__main__':