mirror of
https://github.com/Telecominfraproject/wlan-testing.git
synced 2025-10-29 18:12:34 +00:00
WIFI-10604 has the client-isolation feature. (#713)
* client isolation base testcases added * client_isolation test-cases added * added all client-isolation test_cases * final changes done for client-isolation test_cases * removed comment lines & print statements * changed lf_test.py, fixtures_2x.py, controller_2x/controller.py files for isolation-config setup * added layer3-cleanup for all test-cases * added l3_cleanup method to lf_tests file * added allure attachments for all test cases * fix- logic realted changes applied and class level markers added. * Added allure attachment for test result * fixed some changes * changed station name list for one suite * increased time.sleep to 45 sec after layer-3 traffic ran for one suite only * changes done in two suits for allure-Text_body information * Added Test_result in allure report in a table formate. * review changes done in controller.py and fixture_2x.py Co-authored-by: anil-tegala <anil.tegala@candelatech.com>
This commit is contained in:
@@ -1645,12 +1645,16 @@ class UProfileUtility:
|
||||
def add_ssid(self, ssid_data, radius=False, radius_auth_data={}, radius_accounting_data={}):
|
||||
print("ssid data : ", ssid_data)
|
||||
ssid_info = {'name': ssid_data["ssid_name"], "bss-mode": "ap", "wifi-bands": [], "services": ["wifi-frames"]}
|
||||
|
||||
for options in ssid_data:
|
||||
if options == "multi-psk":
|
||||
ssid_info[options] = ssid_data[options]
|
||||
print("hi", ssid_info)
|
||||
if options == "rate-limit":
|
||||
ssid_info[options] = ssid_data[options]
|
||||
if options == "isolate-clients":
|
||||
ssid_info[options] = ssid_data[options]
|
||||
|
||||
for i in ssid_data["appliedRadios"]:
|
||||
ssid_info["wifi-bands"].append(i)
|
||||
ssid_info['encryption'] = {}
|
||||
|
||||
@@ -1332,12 +1332,19 @@ class RunTest:
|
||||
json_response = cli_base.json_get(_req_url=_req_url)
|
||||
return json_response
|
||||
|
||||
def l3_cleanup(self):
|
||||
local_realm = realm.Realm(lfclient_host=self.lanforge_ip, lfclient_port=self.lanforge_port)
|
||||
local_realm.remove_all_cxs(remove_all_endpoints=True)
|
||||
|
||||
def create_layer3(self, side_a_min_rate, side_a_max_rate, side_b_min_rate, side_b_max_rate,
|
||||
traffic_type, sta_list,):
|
||||
traffic_type, sta_list, side_b=""):
|
||||
# checked
|
||||
if side_b=="":
|
||||
side_b=self.upstream
|
||||
print(sta_list)
|
||||
print(type(sta_list))
|
||||
print(self.upstream)
|
||||
print(side_b)
|
||||
print(type(side_b))
|
||||
local_realm = realm.Realm(lfclient_host=self.lanforge_ip, lfclient_port=self.lanforge_port)
|
||||
cx_profile = local_realm.new_l3_cx_profile()
|
||||
cx_profile.host = self.lanforge_ip
|
||||
@@ -1350,7 +1357,7 @@ class RunTest:
|
||||
|
||||
# create
|
||||
cx_profile.create(endp_type=traffic_type, side_a=sta_list,
|
||||
side_b=self.upstream,
|
||||
side_b=side_b,
|
||||
sleep_time=0)
|
||||
cx_profile.start_cx()
|
||||
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -717,7 +717,7 @@ class Fixtures_2x:
|
||||
allure.attach(body=str(e), name="Exception data after config push: ")
|
||||
print(e)
|
||||
|
||||
config = json.loads(str(instantiate_profile_obj.base_profile_config).replace(" ", "").replace("'", '"').replace("True", "true"))
|
||||
config = json.loads(str(instantiate_profile_obj.base_profile_config).replace(" ", "").replace("'", '"').replace("True", "true").replace("False", "false"))
|
||||
config["uuid"] = 0
|
||||
|
||||
# Attach the config that is sent from API
|
||||
|
||||
Reference in New Issue
Block a user