Updated main method to make use of Realm's new cleanup methods before start of tests

This commit is contained in:
Logan Lipke
2020-07-10 12:02:41 -07:00
parent 2cadb84f4c
commit 747c905465
6 changed files with 19 additions and 6 deletions

View File

@@ -103,7 +103,9 @@ def main():
station_list = LFUtils.portNameSeries(prefix_="sta", start_id_=0, end_id_=1, padding_number_=10000)
ip_test = IPv4Test(lfjson_host, lfjson_port, ssid="jedway-wpa2-x2048-4-4", password="jedway-wpa2-x2048-4-4",
security="open", sta_list=station_list)
ip_test.cleanup(station_list)
ip_test.local_realm.remove_all_stations(ip_test.resource)
ip_test.local_realm.remove_all_cxs()
ip_test.local_realm.remove_all_endps()
ip_test.timeout = 60
ip_test.build()
if not ip_test.passes():

View File

@@ -146,7 +146,9 @@ def main():
ip_test = IPV4L4(lfjson_host, lfjson_port, ssid="jedway-wpa2-x2048-4-4", password="jedway-wpa2-x2048-4-4",
security="open", station_list=station_list, url="dl http://10.40.0.1 /dev/null", test_duration="5m",
requests_per_ten=600)
ip_test.cleanup(station_list)
ip_test.local_realm.remove_all_stations(ip_test.resource)
ip_test.local_realm.remove_all_cxs()
ip_test.local_realm.remove_all_endps()
ip_test.build()
if not ip_test.passes():
print(ip_test.get_fail_message())

View File

@@ -140,7 +140,9 @@ def main():
security="open", station_list=station_list, url="dl http://10.40.0.1 /dev/null", num_tests=1,
target_requests_per_ten=600,
requests_per_ten=600)
ip_test.cleanup(station_list)
ip_test.local_realm.remove_all_stations(ip_test.resource)
ip_test.local_realm.remove_all_cxs()
ip_test.local_realm.remove_all_endps()
ip_test.build()
ip_test.start()
ip_test.stop()

View File

@@ -146,7 +146,10 @@ def main():
resource=1,
security="open", test_duration="5m",
side_a_min_rate=256, side_b_min_rate=256)
ip_var_test.cleanup(station_list)
ip_var_test.local_realm.remove_all_stations(ip_var_test.resource)
ip_var_test.local_realm.remove_all_cxs()
ip_var_test.local_realm.remove_all_endps()
ip_var_test.build()
if not ip_var_test.passes():
print(ip_var_test.get_fail_message())

View File

@@ -106,7 +106,9 @@ def main():
station_list = LFUtils.portNameSeries(prefix_="sta", start_id_=0, end_id_=1, padding_number_=10000)
ipv6_test = IPv6Test(lfjson_host, lfjson_port, ssid="jedway-wpa2-x2048-4-4", password="jedway-wpa2-x2048-4-4",
security="open", sta_list=station_list)
ipv6_test.cleanup(station_list)
ipv6_test.local_realm.remove_all_stations(ipv6_test.resource)
ipv6_test.local_realm.remove_all_cxs()
ipv6_test.local_realm.remove_all_endps()
ipv6_test.timeout = 60
ipv6_test.build()
if not ipv6_test.passes():

View File

@@ -147,7 +147,9 @@ def main():
password="jedway-wpa2-x2048-4-4",
resource=1, security="open", test_duration="5m",
side_a_min_rate=256, side_b_min_rate=256)
ip_var_test.cleanup(station_list)
ip_var_test.local_realm.remove_all_stations(ip_var_test.resource)
ip_var_test.local_realm.remove_all_cxs()
ip_var_test.local_realm.remove_all_endps()
ip_var_test.build()
if not ip_var_test.passes():
print(ip_var_test.get_fail_message())