mirror of
https://github.com/Telecominfraproject/wlan-testing.git
synced 2025-12-27 07:54:45 +00:00
added tescase wifi-5857
Signed-off-by: Nikita Yadav <nikita.yadav@candelatech.com>
This commit is contained in:
@@ -329,6 +329,44 @@ class TestRateLimitingWithRadiusBridge(object):
|
||||
|
||||
report_name = wct_obj.report_name[0]['LAST']["response"].split(":::")[1].split("/")[-1]
|
||||
|
||||
lf_tools.attach_report_graphs(report_name=report_name)
|
||||
print("Test Completed... Cleaning up Stations")
|
||||
assert True
|
||||
|
||||
@pytest.mark.wpa2_enterprise
|
||||
@pytest.mark.fiveg
|
||||
@pytest.mark.fiveg_upstream__downstream_per_ssid_per_client
|
||||
@allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-5857", name="WIFI-5857")
|
||||
def test_radius_server_fiveg_per_ssid_perclient_upstream_downstream(self, lf_test, lf_tools, rate_radius_info,
|
||||
rate_radius_accounting_info,
|
||||
station_names_fiveg):
|
||||
profile_data = setup_params_general["ssid_modes"]["wpa2_enterprise"][1]
|
||||
ssid_name = profile_data["ssid_name"]
|
||||
mode = "BRIDGE"
|
||||
vlan = 1
|
||||
security = "wpa2"
|
||||
band = "fiveg"
|
||||
eap = "TTLS"
|
||||
print("authentication", rate_radius_info)
|
||||
print("accounting", rate_radius_accounting_info)
|
||||
ttls_passwd = rate_radius_info["password"]
|
||||
identity = rate_radius_info['user']
|
||||
allure.attach(name="ssid-rates", body=str(profile_data["rate-limit"]))
|
||||
passes = lf_test.EAP_Connect(ssid=ssid_name, security=security,
|
||||
mode=mode, band=band,
|
||||
eap=eap, ttls_passwd=ttls_passwd, identity=identity,
|
||||
station_name=station_names_fiveg, ieee80211w=0, vlan_id=vlan, cleanup=False)
|
||||
print(passes)
|
||||
if passes:
|
||||
raw_lines = [["dl_rate_sel: Per-Station Download Rate:"], ["ul_rate_sel: Per-Station Download Rate:"]]
|
||||
wct_obj = lf_test.wifi_capacity(instance_name="Test_Radius_5g_upstream_downstream_per_ssid_perclient", mode=mode,
|
||||
vlan_id=vlan,
|
||||
download_rate="1Gbps", batch_size="1",
|
||||
upload_rate="1Gbps", protocol="TCP-IPv4", duration="60000",
|
||||
raw_lines=raw_lines)
|
||||
|
||||
report_name = wct_obj.report_name[0]['LAST']["response"].split(":::")[1].split("/")[-1]
|
||||
|
||||
lf_tools.attach_report_graphs(report_name=report_name)
|
||||
print("Test Completed... Cleaning up Stations")
|
||||
assert True
|
||||
Reference in New Issue
Block a user