mirror of
https://github.com/Telecominfraproject/wlan-lanforge-scripts.git
synced 2025-11-01 03:07:56 +00:00
Updated main method to make use of Realm's new cleanup methods before start of tests
This commit is contained in:
@@ -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():
|
||||
|
||||
@@ -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())
|
||||
|
||||
@@ -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()
|
||||
|
||||
@@ -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())
|
||||
|
||||
@@ -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():
|
||||
|
||||
@@ -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())
|
||||
|
||||
Reference in New Issue
Block a user