mirror of
https://github.com/Telecominfraproject/wlan-testing.git
synced 2025-11-01 19:37:54 +00:00
Wifi 7226 query max clients from ap and run wifi capacity in that (#419)
* Added improvement around lf_tools add stations Signed-off-by: shivam <shivam.thakur@candelatech.com> * removed ax stations in wifi capacity for a while Signed-off-by: shivam <shivam.thakur@candelatech.com> * Added wifi_capacity in regular sanity tests and added nat mode wifi capacity in performance Signed-off-by: shivam <shivam.thakur@candelatech.com> * removed get_vif_state from test cases Signed-off-by: shivam <shivam.thakur@candelatech.com>
This commit is contained in:
@@ -655,24 +655,18 @@ class APNOS:
|
||||
|
||||
if __name__ == '__main__':
|
||||
obj = {
|
||||
'model': 'eap102',
|
||||
'mode': 'wifi6',
|
||||
'serial': '903cb30bcf12',
|
||||
'jumphost': True,
|
||||
'ip': "192.168.200.80",
|
||||
'username': "lanforge",
|
||||
'password': "lanforge",
|
||||
'port': 22,
|
||||
'jumphost_tty': '/dev/ttyAP1',
|
||||
'version': "https://tip.jfrog.io/artifactory/tip-wlan-ap-firmware/ecw5410/trunk/ecw5410-1.1.0.tar.gz"
|
||||
}
|
||||
"model": "edgecore_eap101",
|
||||
"mode": "wifi6",
|
||||
"serial": "903cb36ae223",
|
||||
"jumphost": True,
|
||||
"ip": "10.28.3.103",
|
||||
"username": "lanforge",
|
||||
"password": "pumpkin77",
|
||||
"port": 22,
|
||||
"jumphost_tty": "/dev/ttyAP3",
|
||||
"version": "release-latest"
|
||||
}
|
||||
var = APNOS(credentials=obj, sdk="2.x")
|
||||
a = var.get_uc_latest_config()
|
||||
var.run_generic_command(cmd="chmod +x /usr/share/ucentral/wifi_max_user.uc")
|
||||
a = var.run_generic_command(cmd="/usr/share/ucentral/wifi_max_user.uc")
|
||||
print(a)
|
||||
# S = 9
|
||||
# instance_name = ''.join(random.choices(string.ascii_uppercase + string.digits, k=S))
|
||||
# var.run_generic_command(cmd="logger start testcase: " + instance_name)
|
||||
# time.sleep(60)
|
||||
# var.run_generic_command(cmd="logger stop testcase: " + instance_name)
|
||||
# var.get_logread(start_ref="start testcase: " + instance_name,
|
||||
# stop_ref="stop testcase: " + instance_name)
|
||||
|
||||
@@ -619,15 +619,14 @@ class UProfileUtility:
|
||||
pytest.exit("invalid Operating Mode")
|
||||
|
||||
def push_config(self, serial_number):
|
||||
payload = {"configuration": self.base_profile_config, "serialNumber": serial_number, "UUID": 0}
|
||||
payload = {"configuration": self.base_profile_config, "serialNumber": serial_number, "UUID": 1}
|
||||
|
||||
uri = self.sdk_client.build_uri("device/" + serial_number + "/configure")
|
||||
basic_cfg_str = json.dumps(payload)
|
||||
print(self.base_profile_config)
|
||||
allure.attach(name="ucentral_config: ",
|
||||
body=str(self.base_profile_config).replace("'", '"'),
|
||||
body=str(basic_cfg_str),
|
||||
attachment_type=allure.attachment_type.JSON)
|
||||
print(self.base_profile_config)
|
||||
print("JSON Post Configure: " + str(basic_cfg_str))
|
||||
print("Sending Configure Command: ", datetime.datetime.utcnow())
|
||||
resp = requests.post(uri, data=basic_cfg_str, headers=self.sdk_client.make_headers(),
|
||||
verify=False, timeout=100)
|
||||
|
||||
305
libs/lanforge/lf_tools.py
Normal file → Executable file
305
libs/lanforge/lf_tools.py
Normal file → Executable file
@@ -1,7 +1,7 @@
|
||||
import re
|
||||
import sys
|
||||
import os
|
||||
import importlib
|
||||
import importlib
|
||||
|
||||
import pytest
|
||||
|
||||
@@ -30,8 +30,15 @@ from LANforge.lfcli_base import LFCliBase
|
||||
import json
|
||||
import os
|
||||
import pandas as pd
|
||||
|
||||
realm = importlib.import_module("py-json.realm")
|
||||
Realm = realm.Realm
|
||||
import logging
|
||||
|
||||
LOGGER = logging.getLogger(__name__)
|
||||
LOGGER.setLevel(logging.DEBUG)
|
||||
stdout_handler = logging.StreamHandler(sys.stdout)
|
||||
LOGGER.addHandler(stdout_handler)
|
||||
|
||||
|
||||
class ChamberView:
|
||||
@@ -116,15 +123,15 @@ class ChamberView:
|
||||
if "6g-ssid" in self.ssid_data.keys():
|
||||
print("yes")
|
||||
self.sixg_ssid = ["ssid_idx=2 ssid=" +
|
||||
self.ssid_data["6g-ssid"] +
|
||||
" security=" +
|
||||
self.ssid_data["6g-encryption"].upper() +
|
||||
" password=" +
|
||||
self.ssid_data["6g-password"] +
|
||||
" bssid=" +
|
||||
self.ssid_data["6g-bssid"].lower().replace(" ", "")]
|
||||
self.ssid_data["6g-ssid"] +
|
||||
" security=" +
|
||||
self.ssid_data["6g-encryption"].upper() +
|
||||
" password=" +
|
||||
self.ssid_data["6g-password"] +
|
||||
" bssid=" +
|
||||
self.ssid_data["6g-bssid"].lower().replace(" ", "")]
|
||||
ssid_var = [self.twog_ssid, self.fiveg_ssid, self.sixg_ssid]
|
||||
else :
|
||||
else:
|
||||
ssid_var = [self.twog_ssid, self.fiveg_ssid]
|
||||
self.CreateDut.ssid = ssid_var
|
||||
# print(self.CreateDut.ssid)
|
||||
@@ -242,7 +249,6 @@ class ChamberView:
|
||||
# print(self.CreateDut.ssid)
|
||||
self.Create_Dut()
|
||||
|
||||
|
||||
def reset_scenario(self):
|
||||
# self.layer3_cleanup()
|
||||
# self.Create_Dut()
|
||||
@@ -265,7 +271,7 @@ class ChamberView:
|
||||
self.CreateDut.add_ssids()
|
||||
|
||||
def get_station_list(self):
|
||||
#realm_obj = self.staConnect.localrealm
|
||||
# realm_obj = self.staConnect.localrealm
|
||||
sta = self.staConnect.station_list()
|
||||
sta_list = []
|
||||
for i in sta:
|
||||
@@ -273,9 +279,8 @@ class ChamberView:
|
||||
sta_list.append(j)
|
||||
return sta_list
|
||||
|
||||
|
||||
def admin_up_down(self, sta_list=[], option="up"):
|
||||
#realm_obj = self.staConnect.localrealm
|
||||
# realm_obj = self.staConnect.localrealm
|
||||
if option == "up":
|
||||
for i in sta_list:
|
||||
self.staConnect.admin_up(i)
|
||||
@@ -313,99 +318,176 @@ class ChamberView:
|
||||
self.Chamber_View()
|
||||
|
||||
def add_stations(self, band="2G", num_stations="max", dut="NA", ssid_name=[], idx=0):
|
||||
LOGGER.info("Adding Stations:" + band + " band, Number of Stations: " + str(num_stations) +
|
||||
" DUT: " + str(dut) + " SSID: " + str(ssid_name) + " idx: " + str(idx))
|
||||
if num_stations == 0:
|
||||
LOGGER.warning("0 Stations")
|
||||
return
|
||||
idx = idx
|
||||
if self.run_lf:
|
||||
if band == "2G":
|
||||
idx = 0
|
||||
if band == "5G":
|
||||
idx = 1
|
||||
print(self.dut_idx_mapping)
|
||||
for i in self.dut_idx_mapping:
|
||||
if self.dut_idx_mapping[i][0] == ssid_name and self.dut_idx_mapping[i][3] == band:
|
||||
idx = i
|
||||
max_stations = 0
|
||||
print(idx)
|
||||
if band == "2G":
|
||||
if num_stations != "max":
|
||||
if num_stations > 64:
|
||||
num_stations = int(num_stations / len(self.twog_radios))
|
||||
for radio in self.twog_radios:
|
||||
station_data = ["profile_link " + radio.split(".")[0] + "." + radio.split(".")[1] +
|
||||
" STA-AUTO " + str(num_stations) + " 'DUT: " + dut + " Radio-" +
|
||||
str(int(idx) + 1) + "'" + " NA " + radio.split(".")[2]]
|
||||
self.raw_line.append(station_data)
|
||||
else:
|
||||
num_stations = num_stations
|
||||
station_data = ["profile_link " + self.fiveg_radios[0].split(".")[0] + "." +
|
||||
self.fiveg_radios[0].split(".")[1] +
|
||||
" STA-AUTO " + str(num_stations) + " 'DUT: " + dut + " Radio-" +
|
||||
str(int(idx) + 1) + "'" + " NA " + self.twog_radios[0].split(".")[2]]
|
||||
self.raw_line.append(station_data)
|
||||
if num_stations == "max":
|
||||
LOGGER.info("Total 2G Radios Available in Testbed: " + str(len(self.twog_radios)))
|
||||
total_sta = num_stations
|
||||
max_possible = 0
|
||||
for radio in self.twog_radios:
|
||||
num_stations = 64
|
||||
max_possible = max_possible + int(self.get_max_sta(radio))
|
||||
if total_sta <= max_possible:
|
||||
per_radio_sta = int(total_sta / len(self.twog_radios))
|
||||
rem = total_sta % len(self.twog_radios)
|
||||
else:
|
||||
total_sta = max_possible
|
||||
per_radio_sta = int(total_sta / len(self.twog_radios))
|
||||
rem = total_sta % len(self.twog_radios)
|
||||
if rem != 0 and per_radio_sta == 0:
|
||||
per_radio_sta = rem / len(self.twog_radios)
|
||||
LOGGER.info("Total stations per radio: " + str(per_radio_sta))
|
||||
for radio in self.twog_radios:
|
||||
max_possible = int(self.get_max_sta(radio))
|
||||
if total_sta == 0:
|
||||
return
|
||||
num_stations = per_radio_sta
|
||||
if rem == 0 and num_stations == 0:
|
||||
return
|
||||
if max_possible - num_stations >= rem:
|
||||
num_stations = num_stations + rem
|
||||
rem = 0
|
||||
elif max_possible - rem >= num_stations:
|
||||
num_stations = num_stations + rem
|
||||
rem = 0
|
||||
elif total_sta <= max_possible:
|
||||
num_stations = total_sta
|
||||
if per_radio_sta < 1:
|
||||
num_stations = 1
|
||||
total_sta = total_sta - num_stations
|
||||
LOGGER.info("Adding " + str(num_stations) + " Stations on " + str(radio))
|
||||
station_data = ["profile_link " + radio.split(".")[0] + "." + radio.split(".")[1] +
|
||||
" STA-AUTO " + str(num_stations) + " 'DUT: " + dut + " Radio-" +
|
||||
str(int(idx) + 1) + "'" + " NA " + radio.split(".")[2]]
|
||||
self.raw_line.append(station_data)
|
||||
LOGGER.debug("Raw Line : " + str(station_data))
|
||||
|
||||
if num_stations == "max":
|
||||
LOGGER.info("Total 2G Radios Available in Testbed: " + str(len(self.twog_radios)))
|
||||
for radio in self.twog_radios:
|
||||
num_stations = self.get_max_sta(radio)
|
||||
LOGGER.info("Total stations: " + str(num_stations) + " On Radio: " + str(radio))
|
||||
station_data = ["profile_link " + radio.split(".")[0] + "." + radio.split(".")[1] +
|
||||
" STA-AUTO " + str(num_stations) + " 'DUT: " + dut + " Radio-" +
|
||||
str(int(idx) + 1) + "'" + " NA " + radio.split(".")[2]]
|
||||
self.raw_line.append(station_data)
|
||||
LOGGER.debug("Raw Line : " + str(station_data))
|
||||
|
||||
if band == "5G":
|
||||
if num_stations != "max":
|
||||
if num_stations > 64:
|
||||
num_stations = int(num_stations / len(self.fiveg_radios))
|
||||
for radio in self.fiveg_radios:
|
||||
station_dataupstream_port_1 = ["profile_link " + radio.split(".")[0] + "." + radio.split(".")[1] +
|
||||
" STA-AUTO " + str(num_stations) + " 'DUT: " + dut + " Radio-" +
|
||||
str(int(idx) + 1) + "'" + " NA " + radio.split(".")[2]]
|
||||
print(station_data)
|
||||
self.raw_line.append(station_data)
|
||||
else:
|
||||
num_stations = num_stations
|
||||
station_data = ["profile_link " + self.fiveg_radios[0].split(".")[0] + "." +
|
||||
self.fiveg_radios[0].split(".")[1] +
|
||||
" STA-AUTO " + str(num_stations) + " 'DUT: " + dut + " Radio-" +
|
||||
str(int(idx) + 1) + "'" + " NA " + self.fiveg_radios[0].split(".")[2]]
|
||||
print(station_data)
|
||||
self.raw_line.append(station_data)
|
||||
if num_stations == "max":
|
||||
LOGGER.info("Total 2G Radios Available in Testbed: " + str(len(self.fiveg_radios)))
|
||||
total_sta = num_stations
|
||||
max_possible = 0
|
||||
for radio in self.fiveg_radios:
|
||||
num_stations = 64
|
||||
max_possible = max_possible + int(self.get_max_sta(radio))
|
||||
if total_sta <= max_possible:
|
||||
per_radio_sta = int(total_sta / len(self.fiveg_radios))
|
||||
rem = total_sta % len(self.fiveg_radios)
|
||||
else:
|
||||
total_sta = max_possible
|
||||
per_radio_sta = int(total_sta / len(self.fiveg_radios))
|
||||
rem = total_sta % len(self.fiveg_radios)
|
||||
if rem != 0 and per_radio_sta == 0:
|
||||
per_radio_sta = rem / len(self.fiveg_radios)
|
||||
LOGGER.info("Total stations per radio: " + str(per_radio_sta))
|
||||
for radio in self.fiveg_radios:
|
||||
max_possible = int(self.get_max_sta(radio))
|
||||
if total_sta == 0:
|
||||
return
|
||||
num_stations = per_radio_sta
|
||||
if rem == 0 and num_stations == 0:
|
||||
return
|
||||
if max_possible - num_stations >= rem:
|
||||
num_stations = num_stations + rem
|
||||
rem = 0
|
||||
elif max_possible - rem >= num_stations:
|
||||
num_stations = num_stations + rem
|
||||
rem = 0
|
||||
elif total_sta <= max_possible:
|
||||
num_stations = total_sta
|
||||
if per_radio_sta < 1:
|
||||
num_stations = 1
|
||||
total_sta = total_sta - num_stations
|
||||
LOGGER.info("Adding " + str(num_stations) + " Stations on " + str(radio))
|
||||
station_data = ["profile_link " + radio.split(".")[0] + "." + radio.split(".")[1] +
|
||||
" STA-AUTO " + str(num_stations) + " 'DUT: " + dut + " Radio-" +
|
||||
str(int(idx) + 1) + "'" + " NA " + radio.split(".")[2]]
|
||||
print(station_data)
|
||||
self.raw_line.append(station_data)
|
||||
LOGGER.debug("Raw Line : " + str(station_data))
|
||||
|
||||
if num_stations == "max":
|
||||
LOGGER.info("Total 5G Radios Available in Testbed: " + str(len(self.fiveg_radios)))
|
||||
for radio in self.fiveg_radios:
|
||||
num_stations = self.get_max_sta(radio)
|
||||
LOGGER.info("Total stations: " + str(num_stations) + " On Radio: " + str(radio))
|
||||
station_data = ["profile_link " + radio.split(".")[0] + "." + radio.split(".")[1] +
|
||||
" STA-AUTO " + str(num_stations) + " 'DUT: " + dut + " Radio-" +
|
||||
str(int(idx) + 1) + "'" + " NA " + radio.split(".")[2]]
|
||||
self.raw_line.append(station_data)
|
||||
LOGGER.debug("Raw Line : " + str(station_data))
|
||||
if band == "ax":
|
||||
|
||||
if num_stations != "max":
|
||||
LOGGER.info("Total 2G Radios Available in Testbed: " + str(len(self.ax_radios)))
|
||||
total_sta = num_stations
|
||||
max_possible = 0
|
||||
for radio in self.ax_radios:
|
||||
max_possible = max_possible + self.get_max_sta(radio)
|
||||
if num_stations > 1:
|
||||
if num_stations > max_possible:
|
||||
pytest.exit("Error: Can't Create " + num_stations + ", only " + max_possible + " Stations can be created")
|
||||
|
||||
num_stations = int(num_stations / len(self.ax_radios))
|
||||
for radio in self.ax_radios:
|
||||
max = self.get_max_sta(radio)
|
||||
num_stations = num_stations - max
|
||||
station_data = ["profile_link 1.1 STA-AUTO " + str(num_stations) + " 'DUT: " + dut + " Radio-" +
|
||||
str(int(idx) + 1) + "'" + " NA " + radio.split(".")[2]]
|
||||
self.raw_line.append(station_data)
|
||||
max_possible = max_possible + int(self.get_max_sta(radio))
|
||||
if total_sta <= max_possible:
|
||||
per_radio_sta = int(total_sta / len(self.ax_radios))
|
||||
rem = total_sta % len(self.ax_radios)
|
||||
else:
|
||||
num_stations = num_stations
|
||||
station_data = ["profile_link 1.1 STA-AUTO " + str(num_stations) + " 'DUT: " + dut + " Radio-" +
|
||||
str(int(idx) + 1) + "'" + " NA " + radio.split(".")[2]]
|
||||
self.raw_line.append(station_data)
|
||||
if num_stations == "max":
|
||||
total_sta = max_possible
|
||||
per_radio_sta = int(total_sta / len(self.ax_radios))
|
||||
rem = total_sta % len(self.ax_radios)
|
||||
if rem != 0 and per_radio_sta == 0:
|
||||
per_radio_sta = rem / len(self.ax_radios)
|
||||
LOGGER.info("Total stations per radio: " + str(per_radio_sta))
|
||||
for radio in self.ax_radios:
|
||||
print("radio", radio)
|
||||
num_stations = self.get_max_sta(radio)
|
||||
print("num_stations", num_stations)
|
||||
station_data = ["profile_link 1.1 STA-AUTO " + str(num_stations) + " 'DUT: " + dut + " Radio-" +
|
||||
max_possible = int(self.get_max_sta(radio))
|
||||
if total_sta == 0:
|
||||
return
|
||||
num_stations = per_radio_sta
|
||||
if rem == 0 and num_stations == 0:
|
||||
return
|
||||
if max_possible - num_stations >= rem:
|
||||
num_stations = num_stations + rem
|
||||
rem = 0
|
||||
elif max_possible - rem >= num_stations:
|
||||
num_stations = num_stations + rem
|
||||
rem = 0
|
||||
elif total_sta <= max_possible:
|
||||
num_stations = total_sta
|
||||
if per_radio_sta < 1:
|
||||
num_stations = 1
|
||||
total_sta = total_sta - num_stations
|
||||
LOGGER.info("Adding " + str(num_stations) + " Stations on " + str(radio))
|
||||
station_data = ["profile_link " + radio.split(".")[0] + "." + radio.split(".")[1] +
|
||||
" STA-AUTO " + str(num_stations) + " 'DUT: " + dut + " Radio-" +
|
||||
str(int(idx) + 1) + "'" + " NA " + radio.split(".")[2]]
|
||||
self.raw_line.append(station_data)
|
||||
LOGGER.debug("Raw Line : " + str(station_data))
|
||||
if num_stations == "max":
|
||||
LOGGER.info("Total AX Radios Available in Testbed: " + str(len(self.ax_radios)))
|
||||
for radio in self.ax_radios:
|
||||
num_stations = self.get_max_sta(radio)
|
||||
LOGGER.info("Total stations: " + str(num_stations) + " On Radio: " + str(radio))
|
||||
station_data = ["profile_link " + radio.split(".")[0] + "." + radio.split(".")[1] +
|
||||
" STA-AUTO " + str(num_stations) + " 'DUT: " + dut + " Radio-" +
|
||||
str(int(idx) + 1) + "'" + " NA " + radio.split(".")[2]]
|
||||
self.raw_line.append(station_data)
|
||||
LOGGER.debug("Raw Line : " + str(station_data))
|
||||
|
||||
def Create_Dut(self):
|
||||
self.CreateDut.setup()
|
||||
@@ -446,12 +528,11 @@ class ChamberView:
|
||||
def station_data_query(self, station_name="wlan0", query="channel"):
|
||||
x = self.upstream_port.split(".")
|
||||
url = f"/port/{x[0]}/{x[1]}/{station_name}?fields={query}"
|
||||
# print("url//////", url)
|
||||
response = self.json_get(_req_url=url)
|
||||
print("response: ", response)
|
||||
if (response is None) or ("interface" not in response):
|
||||
print("station_list: incomplete response:")
|
||||
#pprint(response)
|
||||
# pprint(response)
|
||||
exit(1)
|
||||
y = response["interface"][query]
|
||||
return y
|
||||
@@ -526,13 +607,12 @@ class ChamberView:
|
||||
name=i,
|
||||
attachment_type="image/png", extension=None)
|
||||
|
||||
|
||||
def create_mesh_scenario(self):
|
||||
# upstream_list = []
|
||||
# for data in range(0,len(self.access_point_data)):
|
||||
self.CreateDut = DUT(lfmgr=self.lanforge_ip,
|
||||
port=self.lanforge_port,
|
||||
dut_name="upstream" ) # + str(data))
|
||||
dut_name="upstream") # + str(data))
|
||||
self.CreateDut.lan_port = "10.28.2.1/24"
|
||||
# name = "upstream" + str(data)
|
||||
# upstream_list.append(name)
|
||||
@@ -540,12 +620,21 @@ class ChamberView:
|
||||
self.CreateDut.setup()
|
||||
# data = data + 1
|
||||
self.raw_line = [
|
||||
["profile_link " + self.upstream_resource_2 + " upstream-dhcp 1 NA NA " + self.upstream_port_2.split(".")[2] + ",AUTO -1 NA"],
|
||||
["profile_link " + self.uplink_resource_2 + " uplink-nat 1 'DUT: upstream LAN " + self.upstream_subnet + "' NA " + self.uplink_port_2.split(".")[2] + "," + self.upstream_port_2.split(".")[2] + " -1 NA"],
|
||||
["profile_link " + self.upstream_resource_3 + " upstream-dhcp 1 NA NA " + self.upstream_port_3.split(".")[2] + ",AUTO -1 NA"],
|
||||
["profile_link " + self.uplink_resource_3 + " uplink-nat 1 'DUT: upstream LAN " + self.upstream_subnet + "' NA " + self.uplink_port_3.split(".")[2] + "," + self.upstream_port_3.split(".")[2] + " -1 NA"],
|
||||
["profile_link " + self.upstream_resource_4 + " upstream-dhcp 1 NA NA " + self.upstream_port_4.split(".")[2] + ",AUTO -1 NA"],
|
||||
["profile_link " + self.uplink_resource_4 + " uplink-nat 1 'DUT: upstream LAN " + self.upstream_subnet + "' NA " + self.uplink_port_4.split(".")[2] + "," + self.upstream_port_4.split(".")[2] + " -1 NA"]
|
||||
["profile_link " + self.upstream_resource_2 + " upstream-dhcp 1 NA NA " + self.upstream_port_2.split(".")[
|
||||
2] + ",AUTO -1 NA"],
|
||||
[
|
||||
"profile_link " + self.uplink_resource_2 + " uplink-nat 1 'DUT: upstream LAN " + self.upstream_subnet + "' NA " +
|
||||
self.uplink_port_2.split(".")[2] + "," + self.upstream_port_2.split(".")[2] + " -1 NA"],
|
||||
["profile_link " + self.upstream_resource_3 + " upstream-dhcp 1 NA NA " + self.upstream_port_3.split(".")[
|
||||
2] + ",AUTO -1 NA"],
|
||||
[
|
||||
"profile_link " + self.uplink_resource_3 + " uplink-nat 1 'DUT: upstream LAN " + self.upstream_subnet + "' NA " +
|
||||
self.uplink_port_3.split(".")[2] + "," + self.upstream_port_3.split(".")[2] + " -1 NA"],
|
||||
["profile_link " + self.upstream_resource_4 + " upstream-dhcp 1 NA NA " + self.upstream_port_4.split(".")[
|
||||
2] + ",AUTO -1 NA"],
|
||||
[
|
||||
"profile_link " + self.uplink_resource_4 + " uplink-nat 1 'DUT: upstream LAN " + self.upstream_subnet + "' NA " +
|
||||
self.uplink_port_4.split(".")[2] + "," + self.upstream_port_4.split(".")[2] + " -1 NA"]
|
||||
]
|
||||
print(self.raw_line)
|
||||
mesh = self.Chamber_View()
|
||||
@@ -557,7 +646,7 @@ class ChamberView:
|
||||
# for data in range(0,len(self.access_point_data)):
|
||||
self.CreateDut = DUT(lfmgr=self.lanforge_ip,
|
||||
port=self.lanforge_port,
|
||||
dut_name="upstream" )
|
||||
dut_name="upstream")
|
||||
self.CreateDut.lan_port = "10.28.2.1/24"
|
||||
# name = "upstream" + str(data)
|
||||
# upstream_list.append(name)
|
||||
@@ -565,12 +654,21 @@ class ChamberView:
|
||||
self.CreateDut.setup()
|
||||
# data = data + 1
|
||||
self.raw_line = [
|
||||
["profile_link " + self.upstream_resource_2 + " upstream-dhcp 1 NA NA " + self.upstream_port_2.split(".")[2] + ",AUTO -1 NA"],
|
||||
["profile_link " + self.uplink_resource_2 + " uplink-nat 1 'DUT: upstream LAN " + self.upstream_subnet + "' NA " + self.uplink_port_2.split(".")[2] + "," + self.upstream_port_2.split(".")[2] + " -1 NA"],
|
||||
["profile_link " + self.upstream_resource_3 + " upstream 1 NA NA " + self.upstream_port_3.split(".")[2] + ",AUTO -1 NA"],
|
||||
["profile_link " + self.uplink_resource_3 + " uplink-nat 1 'DUT: upstream LAN " + self.upstream_subnet + "' NA " + self.uplink_port_3.split(".")[2] + "," + self.upstream_port_3.split(".")[2] + " -1 NA"],
|
||||
["profile_link " + self.upstream_resource_4 + " upstream 1 NA NA " + self.upstream_port_4.split(".")[2] + ",AUTO -1 NA"],
|
||||
["profile_link " + self.uplink_resource_4 + " uplink-nat 1 'DUT: upstream LAN " + self.upstream_subnet + "' NA " + self.uplink_port_4.split(".")[2] + "," + self.upstream_port_4.split(".")[2] + " -1 NA"]
|
||||
["profile_link " + self.upstream_resource_2 + " upstream-dhcp 1 NA NA " + self.upstream_port_2.split(".")[
|
||||
2] + ",AUTO -1 NA"],
|
||||
[
|
||||
"profile_link " + self.uplink_resource_2 + " uplink-nat 1 'DUT: upstream LAN " + self.upstream_subnet + "' NA " +
|
||||
self.uplink_port_2.split(".")[2] + "," + self.upstream_port_2.split(".")[2] + " -1 NA"],
|
||||
["profile_link " + self.upstream_resource_3 + " upstream 1 NA NA " + self.upstream_port_3.split(".")[
|
||||
2] + ",AUTO -1 NA"],
|
||||
[
|
||||
"profile_link " + self.uplink_resource_3 + " uplink-nat 1 'DUT: upstream LAN " + self.upstream_subnet + "' NA " +
|
||||
self.uplink_port_3.split(".")[2] + "," + self.upstream_port_3.split(".")[2] + " -1 NA"],
|
||||
["profile_link " + self.upstream_resource_4 + " upstream 1 NA NA " + self.upstream_port_4.split(".")[
|
||||
2] + ",AUTO -1 NA"],
|
||||
[
|
||||
"profile_link " + self.uplink_resource_4 + " uplink-nat 1 'DUT: upstream LAN " + self.upstream_subnet + "' NA " +
|
||||
self.uplink_port_4.split(".")[2] + "," + self.upstream_port_4.split(".")[2] + " -1 NA"]
|
||||
]
|
||||
print(self.raw_line)
|
||||
mesh = self.Chamber_View()
|
||||
@@ -598,7 +696,6 @@ class ChamberView:
|
||||
# [['ssid_idx=0 ssid=Default-SSID-2g security=WPA|WEP| password=12345678 bssid=90:3c:b3:94:48:58']]
|
||||
self.update_ssid(ssid_data=ssid_data[ssid])
|
||||
|
||||
|
||||
def set_radio_antenna(self, req_url, shelf, resources, radio, antenna):
|
||||
data = {
|
||||
"shelf": shelf,
|
||||
@@ -693,34 +790,34 @@ def main():
|
||||
# ]
|
||||
# testbed = "mesh"
|
||||
lanforge_data = {
|
||||
"ip": "10.28.3.6",
|
||||
"ip": "10.28.3.32",
|
||||
"port": 8080,
|
||||
"ssh_port": 22,
|
||||
"2.4G-Radio": ["1.1.wiphy4"],
|
||||
"5G-Radio": ["1.1.wiphy5"],
|
||||
"AX-Radio": ["1.1.wiphy0", "1.1.wiphy1", "1.1.wiphy2", "1.1.wiphy3"],
|
||||
"2.4G-Radio": ["1.1.wiphy0", "1.1.wiphy2", "1.1.wiphy1"],
|
||||
"5G-Radio": ["1.1.wiphy1", "1.1.wiphy3"],
|
||||
"AX-Radio": ["1.1.wiphy4", "1.1.wiphy5", "1.1.wiphy6", "1.1.wiphy7"],
|
||||
"upstream": "1.1.eth2",
|
||||
"upstream_subnet": "10.28.2.1/24",
|
||||
"uplink": "1.1.eth3",
|
||||
"2.4G-Station-Name": "wlan0",
|
||||
"5G-Station-Name": "wlan1",
|
||||
"2.4G-Station-Name": "sta10",
|
||||
"5G-Station-Name": "sta00",
|
||||
"AX-Station-Name": "ax"
|
||||
}
|
||||
ap_data = [{
|
||||
"model": "edgecore_ecw5410",
|
||||
"mode": "wifi5",
|
||||
"serial": "3c2c99f44e77",
|
||||
"model": "edgecore_eap101",
|
||||
"mode": "wifi6",
|
||||
"serial": "903cb36ae223",
|
||||
"jumphost": True,
|
||||
"ip": "10.28.3.100",
|
||||
"ip": "10.28.3.103",
|
||||
"username": "lanforge",
|
||||
"password": "pumpkin77",
|
||||
"port": 22,
|
||||
"jumphost_tty": "/dev/ttyAP1",
|
||||
"jumphost_tty": "/dev/ttyAP3",
|
||||
"version": "release-latest"
|
||||
}]
|
||||
obj = ChamberView(lanforge_data=lanforge_data, access_point_data=ap_data, testbed="basic")
|
||||
a = obj.get_max_sta("1.1.wiphy0")
|
||||
print(a)
|
||||
obj.add_stations("2G", "max", obj.dut_name, "abc")
|
||||
# lf_tools.add_stations(band="2G", num_stations="max", dut=lf_tools.dut_name, ssid_name=ssid_name)
|
||||
# obj.create_mesh_dut()
|
||||
|
||||
|
||||
|
||||
@@ -2,25 +2,16 @@
|
||||
Pytest fixtures: High level Resource Management and base setup fixtures
|
||||
"""
|
||||
import datetime
|
||||
import os
|
||||
import random
|
||||
import string
|
||||
import sys
|
||||
import os
|
||||
import time
|
||||
|
||||
import allure
|
||||
import re
|
||||
import logging
|
||||
|
||||
from _pytest.fixtures import SubRequest
|
||||
from pyparsing import Optional
|
||||
|
||||
ALLURE_ENVIRONMENT_PROPERTIES_FILE = 'environment.properties'
|
||||
ALLUREDIR_OPTION = '--alluredir'
|
||||
|
||||
# if "logs" not in os.listdir():
|
||||
# os.mkdir("logs/")
|
||||
# logging.basicConfig(level=logging.INFO, filename="logs/" + '{:%Y-%m-%d-%H-%M-%S}.log'.format(datetime.datetime.now()))
|
||||
sys.path.append(
|
||||
os.path.dirname(
|
||||
os.path.realpath(__file__)
|
||||
@@ -62,13 +53,14 @@ from typing import Any, Callable, Optional
|
||||
from _pytest.fixtures import SubRequest
|
||||
from pytest import fixture
|
||||
|
||||
import fixtures_1x
|
||||
from fixtures_1x import Fixtures_1x
|
||||
import fixtures_2x
|
||||
from fixtures_2x import Fixtures_2x
|
||||
|
||||
ALLURE_ENVIRONMENT_PROPERTIES_FILE = 'environment.properties'
|
||||
ALLUREDIR_OPTION = '--alluredir'
|
||||
import logging
|
||||
|
||||
LOGGER = logging.getLogger(__name__)
|
||||
|
||||
|
||||
def pytest_addoption(parser):
|
||||
@@ -262,9 +254,8 @@ def get_configuration(testbed, request):
|
||||
version = request.config.getini("firmware")
|
||||
version_list = version.split(",")
|
||||
for i in range(len(CONFIGURATION[testbed]["access_point"])):
|
||||
print("i", i)
|
||||
print(version_list)
|
||||
CONFIGURATION[testbed]["access_point"][i]["version"] = version_list[0]
|
||||
LOGGER.info("Selected the lab Info data: " + str((CONFIGURATION[testbed])))
|
||||
yield CONFIGURATION[testbed]
|
||||
|
||||
|
||||
@@ -604,7 +595,7 @@ def traffic_generator_connectivity(testbed, get_configuration):
|
||||
@pytest.fixture(scope="session")
|
||||
def create_lanforge_chamberview_dut(lf_tools, skip_lf, run_lf):
|
||||
dut_name = ""
|
||||
if (not run_lf ) and (not skip_lf):
|
||||
if (not run_lf) and (not skip_lf):
|
||||
dut_object, dut_name = lf_tools.Create_Dut()
|
||||
return dut_name
|
||||
|
||||
@@ -693,7 +684,7 @@ def add_firmware_property_after_upgrade(add_allure_environment_property, fixture
|
||||
get_configuration):
|
||||
# try:
|
||||
add_allure_environment_property('Access-Point-Firmware-Version',
|
||||
fixtures_ver.get_ap_version(get_apnos, get_configuration)[0].split("\n")[1])
|
||||
fixtures_ver.get_ap_version(get_apnos, get_configuration)[0].split("\n")[1])
|
||||
# except Exception as e:
|
||||
# print(e)
|
||||
# pass
|
||||
@@ -772,3 +763,17 @@ def get_apnos_logs(get_apnos, get_configuration):
|
||||
logs = ap_ssh.logread()
|
||||
all_logs.append(logs)
|
||||
yield all_logs
|
||||
|
||||
|
||||
@pytest.fixture(scope="session")
|
||||
def get_apnos_max_clients(get_apnos, get_configuration):
|
||||
all_logs = []
|
||||
for ap in get_configuration['access_point']:
|
||||
ap_ssh = get_apnos(ap, pwd="../libs/apnos/", sdk="2.x")
|
||||
ap_ssh.run_generic_command(cmd="chmod +x /usr/share/ucentral/wifi_max_user.uc")
|
||||
a = ap_ssh.run_generic_command(cmd="/usr/share/ucentral/wifi_max_user.uc")
|
||||
try:
|
||||
all_logs.append(a[1])
|
||||
except Exception as e:
|
||||
pass
|
||||
yield all_logs
|
||||
|
||||
@@ -5,12 +5,11 @@
|
||||
|
||||
"""
|
||||
|
||||
|
||||
import os
|
||||
import allure
|
||||
import pytest
|
||||
|
||||
pytestmark = [pytest.mark.regression,pytest.mark.bridge, pytest.mark.usefixtures("setup_test_run")]
|
||||
pytestmark = [pytest.mark.regression, pytest.mark.bridge, pytest.mark.usefixtures("setup_test_run")]
|
||||
|
||||
setup_params_general = {
|
||||
"mode": "BRIDGE",
|
||||
@@ -43,8 +42,8 @@ class TestAPStabilityBridge(object):
|
||||
@pytest.mark.fiveg
|
||||
@allure.testcase(name="test_ap_stability_wpa2_personal",
|
||||
url="https://telecominfraproject.atlassian.net/browse/WIFI-3035")
|
||||
def test_ap_stability_wpa2_personal(self, get_vif_state, lf_tools,
|
||||
create_lanforge_chamberview_dut, lf_test, get_configuration):
|
||||
def test_ap_stability_wpa2_personal(self, lf_tools,
|
||||
create_lanforge_chamberview_dut, lf_test, get_configuration):
|
||||
profile_data = setup_params_general["ssid_modes"]["wpa2_personal"]
|
||||
ssid_2G = profile_data[0]["ssid_name"]
|
||||
ssid_5G = profile_data[0]["ssid_name"]
|
||||
@@ -61,13 +60,9 @@ class TestAPStabilityBridge(object):
|
||||
if lf_tools.dut_idx_mapping[i][3] == "2G":
|
||||
dut_2g = dut_name + ' ' + lf_tools.dut_idx_mapping[i][0] + ' ' + lf_tools.dut_idx_mapping[i][4]
|
||||
print(dut_2g)
|
||||
if ssid_2G and ssid_5G not in get_vif_state:
|
||||
allure.attach(name="retest,vif state ssid not available:", body=str(get_vif_state))
|
||||
pytest.xfail("SSID's NOT AVAILABLE IN VIF STATE")
|
||||
|
||||
apstab_obj = lf_test.apstabilitytest(mode=mode, ssid_2G=ssid_2G, ssid_5G=ssid_5G,
|
||||
instance_name="stability_instance_wpa2p_bridge",
|
||||
vlan_id=vlan, dut_5g=dut_5g, dut_2g=dut_2g)
|
||||
instance_name="stability_instance_wpa2p_bridge",
|
||||
vlan_id=vlan, dut_5g=dut_5g, dut_2g=dut_2g)
|
||||
|
||||
report_name = apstab_obj.report_name[0]['LAST']["response"].split(":::")[1].split("/")[-1]
|
||||
lf_tools.attach_report_graphs(report_name=report_name, pdf_name="AP Stability Test")
|
||||
|
||||
@@ -40,7 +40,7 @@ class TestDataplaneThroughputNAT(object):
|
||||
@allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-3913", name="WIFI-3913")
|
||||
@pytest.mark.wpa2_personal
|
||||
@pytest.mark.twog
|
||||
def test_tcp_upd_wpa2_personal_nat_2g_band_ac_station(self, get_vif_state, lf_tools,
|
||||
def test_tcp_upd_wpa2_personal_nat_2g_band_ac_station(self, lf_tools,
|
||||
lf_test, station_names_twog, create_lanforge_chamberview_dut,
|
||||
get_configuration):
|
||||
"""Dataplane THroughput nat Mode
|
||||
@@ -72,7 +72,7 @@ class TestDataplaneThroughputNAT(object):
|
||||
@allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-3914", name="WIFI-3914")
|
||||
@pytest.mark.wpa2_personal
|
||||
@pytest.mark.fiveg
|
||||
def test_tcp_upd_wpa2_personal_nat_5g_band_ac_station(self, get_vif_state, lf_tools,
|
||||
def test_tcp_upd_wpa2_personal_nat_5g_band_ac_station(self, lf_tools,
|
||||
lf_test, station_names_fiveg, create_lanforge_chamberview_dut, get_configuration):
|
||||
"""Dataplane THroughput nat Mode
|
||||
pytest -m "dataplane_throughput_test and nat and wpa2_personal and fiveg"
|
||||
@@ -103,7 +103,7 @@ class TestDataplaneThroughputNAT(object):
|
||||
|
||||
@pytest.mark.wpa2_personal
|
||||
@pytest.mark.twog
|
||||
def test_tcp_upd_wpa2_personal_nat_2g_band_ax_station(self, get_vif_state, lf_tools,
|
||||
def test_tcp_upd_wpa2_personal_nat_2g_band_ax_station(self, lf_tools,
|
||||
lf_test, station_names_ax, create_lanforge_chamberview_dut,
|
||||
get_configuration):
|
||||
"""Dataplane THroughput nat Mode
|
||||
@@ -134,7 +134,7 @@ class TestDataplaneThroughputNAT(object):
|
||||
|
||||
@pytest.mark.wpa2_personal
|
||||
@pytest.mark.fiveg
|
||||
def test_tcp_upd_wpa2_personal_nat_5g_band_aX_station(self, get_vif_state, lf_tools,
|
||||
def test_tcp_upd_wpa2_personal_nat_5g_band_aX_station(self, lf_tools,
|
||||
lf_test, station_names_ax, create_lanforge_chamberview_dut,
|
||||
get_configuration):
|
||||
"""Dataplane THroughput nat Mode
|
||||
|
||||
@@ -9,7 +9,7 @@ import os
|
||||
import allure
|
||||
import pytest
|
||||
|
||||
pytestmark = [pytest.mark.dual_band_test, pytest.mark.bridge, pytest.mark.sss,
|
||||
pytestmark = [pytest.mark.dual_band_test, pytest.mark.bridge,
|
||||
pytest.mark.single_station_dual_band_throughput]# pytest.mark.usefixtures("setup_test_run")]
|
||||
|
||||
setup_params_general = {
|
||||
|
||||
@@ -9,7 +9,7 @@ import os
|
||||
import allure
|
||||
import pytest
|
||||
|
||||
pytestmark = [pytest.mark.performance, pytest.mark.dual_band_test, pytest.mark.bridge, pytest.mark.sss,
|
||||
pytestmark = [pytest.mark.performance, pytest.mark.dual_band_test, pytest.mark.bridge,
|
||||
pytest.mark.single_station_dual_band_throughput]# pytest.mark.usefixtures("setup_test_run")]
|
||||
|
||||
setup_params_general = {
|
||||
|
||||
@@ -9,7 +9,7 @@ import os
|
||||
import allure
|
||||
import pytest
|
||||
|
||||
pytestmark = [pytest.mark.dual_band_test, pytest.mark.bridge, pytest.mark.sss,
|
||||
pytestmark = [pytest.mark.dual_band_test, pytest.mark.bridge,
|
||||
pytest.mark.single_station_dual_band_throughput]# pytest.mark.usefixtures("setup_test_run")]
|
||||
|
||||
setup_params_general = {
|
||||
|
||||
@@ -56,9 +56,6 @@ class TestThroughputVsPktWpaBridge2G(object):
|
||||
['directions: DUT Transmit;DUT Receive'],
|
||||
['traffic_types: UDP;TCP'], ["show_3s: 1"],
|
||||
["show_ll_graphs: 1"], ["show_log: 1"]]
|
||||
# if ssid_name not in get_vif_state:
|
||||
# allure.attach(name="retest,vif state ssid not available:", body=str(get_vif_state))
|
||||
# pytest.xfail("SSID NOT AVAILABLE IN VIF STATE")
|
||||
station = lf_test.Client_Connect(ssid=ssid_name, security=security, passkey=security_key,
|
||||
mode=mode, band=band,
|
||||
station_name=station_names_twog, vlan_id=vlan)
|
||||
|
||||
@@ -58,9 +58,6 @@ class TestThroughputVsPktWpaNat2G(object):
|
||||
['directions: DUT Transmit;DUT Receive'],
|
||||
['traffic_types: UDP;TCP'], ["show_3s: 1"],
|
||||
["show_ll_graphs: 1"], ["show_log: 1"]]
|
||||
# if ssid_name not in get_vif_state:
|
||||
# allure.attach(name="retest,vif state ssid not available:", body=str(get_vif_state))
|
||||
# pytest.xfail("SSID NOT AVAILABLE IN VIF STATE")
|
||||
station = lf_test.Client_Connect(ssid=ssid_name, security=security, passkey=security_key,
|
||||
mode=mode, band=band,
|
||||
station_name=station_names_twog, vlan_id=vlan)
|
||||
@@ -107,9 +104,6 @@ class TestThroughputVsPktWpaNat2G(object):
|
||||
['directions: DUT Transmit;DUT Receive'],
|
||||
['traffic_types: UDP;TCP'], ["show_3s: 1"],
|
||||
["show_ll_graphs: 1"], ["show_log: 1"]]
|
||||
# if ssid_name not in get_vif_state:
|
||||
# allure.attach(name="retest,vif state ssid not available:", body=str(get_vif_state))
|
||||
# pytest.xfail("SSID NOT AVAILABLE IN VIF STATE")
|
||||
station = lf_test.Client_Connect(ssid=ssid_name, security=security, passkey=security_key,
|
||||
mode=mode, band=band,
|
||||
station_name=station_names_twog, vlan_id=vlan)
|
||||
@@ -156,9 +150,6 @@ class TestThroughputVsPktWpaNat2G(object):
|
||||
['directions: DUT Transmit;DUT Receive'],
|
||||
['traffic_types: UDP;TCP'], ["show_3s: 1"],
|
||||
["show_ll_graphs: 1"], ["show_log: 1"]]
|
||||
# if ssid_name not in get_vif_state:
|
||||
# allure.attach(name="retest,vif state ssid not available:", body=str(get_vif_state))
|
||||
# pytest.xfail("SSID NOT AVAILABLE IN VIF STATE")
|
||||
station = lf_test.Client_Connect(ssid=ssid_name, security=security, passkey=security_key,
|
||||
mode=mode, band=band,
|
||||
station_name=station_names_twog, vlan_id=vlan)
|
||||
@@ -205,9 +196,6 @@ class TestThroughputVsPktWpaNat2G(object):
|
||||
['directions: DUT Transmit;DUT Receive'],
|
||||
['traffic_types: UDP;TCP'], ["show_3s: 1"],
|
||||
["show_ll_graphs: 1"], ["show_log: 1"]]
|
||||
# if ssid_name not in get_vif_state:
|
||||
# allure.attach(name="retest,vif state ssid not available:", body=str(get_vif_state))
|
||||
# pytest.xfail("SSID NOT AVAILABLE IN VIF STATE")
|
||||
station = lf_test.Client_Connect(ssid=ssid_name, security=security, passkey=security_key,
|
||||
mode=mode, band=band,
|
||||
station_name=station_names_twog, vlan_id=vlan)
|
||||
|
||||
@@ -47,7 +47,7 @@ class TestWifiCapacityBRIDGEModeDualBand(object):
|
||||
@pytest.mark.open
|
||||
@pytest.mark.tcp_download
|
||||
@pytest.mark.dual_band
|
||||
def test_client_open_bridge_tcp_dl(self, get_vif_state, lf_tools, setup_profiles,
|
||||
def test_client_open_bridge_tcp_dl(self, lf_tools, setup_profiles,
|
||||
lf_test, station_names_twog, create_lanforge_chamberview_dut,
|
||||
get_configuration):
|
||||
""" Wifi Capacity Test BRIDGE mode
|
||||
@@ -58,10 +58,6 @@ class TestWifiCapacityBRIDGEModeDualBand(object):
|
||||
ssid_name = profile_data["ssid_name"]
|
||||
mode = "BRIDGE"
|
||||
vlan = 1
|
||||
get_vif_state.append(ssid_name)
|
||||
if ssid_name not in get_vif_state:
|
||||
allure.attach(name="retest,vif state ssid not available:", body=str(get_vif_state))
|
||||
pytest.xfail("SSID NOT AVAILABLE IN VIF STATE")
|
||||
lf_tools.add_stations(band="2G", num_stations="max", dut=lf_tools.dut_name, ssid_name=ssid_name)
|
||||
lf_tools.add_stations(band="5G", num_stations="max", dut=lf_tools.dut_name, ssid_name=ssid_name)
|
||||
# lf_tools.add_stations(band="ax", num_stations="max", dut=lf_tools.dut_name, ssid_name=ssid_name)
|
||||
@@ -81,7 +77,7 @@ class TestWifiCapacityBRIDGEModeDualBand(object):
|
||||
@allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-3696", name="WIFI-3696")
|
||||
@pytest.mark.open
|
||||
@pytest.mark.udp_download
|
||||
def test_client_open_bridge_udp_dl(self, get_vif_state, lf_tools,
|
||||
def test_client_open_bridge_udp_dl(self, lf_tools,
|
||||
lf_test, station_names_twog, create_lanforge_chamberview_dut,
|
||||
get_configuration):
|
||||
""" Wifi Capacity Test BRIDGE mode
|
||||
@@ -92,10 +88,6 @@ class TestWifiCapacityBRIDGEModeDualBand(object):
|
||||
ssid_name = profile_data["ssid_name"]
|
||||
mode = "BRIDGE"
|
||||
vlan = 1
|
||||
get_vif_state.append(ssid_name)
|
||||
if ssid_name not in get_vif_state:
|
||||
allure.attach(name="retest,vif state ssid not available:", body=str(get_vif_state))
|
||||
pytest.xfail("SSID NOT AVAILABLE IN VIF STATE")
|
||||
lf_tools.add_stations(band="2G", num_stations="max", dut=lf_tools.dut_name, ssid_name=ssid_name)
|
||||
lf_tools.add_stations(band="5G", num_stations="max", dut=lf_tools.dut_name, ssid_name=ssid_name)
|
||||
# lf_tools.add_stations(band="ax", num_stations="max", dut=lf_tools.dut_name, ssid_name=ssid_name)
|
||||
@@ -114,7 +106,7 @@ class TestWifiCapacityBRIDGEModeDualBand(object):
|
||||
@allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-3698", name="WIFI-3698")
|
||||
@pytest.mark.open
|
||||
@pytest.mark.tcp_bidirectional
|
||||
def test_client_open_bridge_tcp_bidirectional(self, get_vif_state, lf_tools,
|
||||
def test_client_open_bridge_tcp_bidirectional(self, lf_tools,
|
||||
lf_test, station_names_twog, create_lanforge_chamberview_dut,
|
||||
get_configuration):
|
||||
""" Wifi Capacity Test BRIDGE mode
|
||||
@@ -125,9 +117,6 @@ class TestWifiCapacityBRIDGEModeDualBand(object):
|
||||
ssid_name = profile_data["ssid_name"]
|
||||
mode = "BRIDGE"
|
||||
vlan = 1
|
||||
if ssid_name not in get_vif_state:
|
||||
allure.attach(name="retest,vif state ssid not available:", body=str(get_vif_state))
|
||||
pytest.xfail("SSID NOT AVAILABLE IN VIF STATE")
|
||||
lf_tools.add_stations(band="2G", num_stations="max", dut=lf_tools.dut_name, ssid_name=ssid_name)
|
||||
lf_tools.add_stations(band="5G", num_stations="max", dut=lf_tools.dut_name, ssid_name=ssid_name)
|
||||
# lf_tools.add_stations(band="ax", num_stations="max", dut=lf_tools.dut_name, ssid_name=ssid_name)
|
||||
@@ -146,7 +135,7 @@ class TestWifiCapacityBRIDGEModeDualBand(object):
|
||||
@allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-3697", name="WIFI-3697")
|
||||
@pytest.mark.open
|
||||
@pytest.mark.udp_bidirectional
|
||||
def test_client_open_bridge_udp_bidirectional(self, get_vif_state, lf_tools,
|
||||
def test_client_open_bridge_udp_bidirectional(self, lf_tools,
|
||||
lf_test, station_names_twog, create_lanforge_chamberview_dut,
|
||||
get_configuration):
|
||||
""" Wifi Capacity Test BRIDGE mode
|
||||
@@ -157,9 +146,6 @@ class TestWifiCapacityBRIDGEModeDualBand(object):
|
||||
ssid_name = profile_data["ssid_name"]
|
||||
mode = "BRIDGE"
|
||||
vlan = 1
|
||||
if ssid_name not in get_vif_state:
|
||||
allure.attach(name="retest,vif state ssid not available:", body=str(get_vif_state))
|
||||
pytest.xfail("SSID NOT AVAILABLE IN VIF STATE")
|
||||
lf_tools.add_stations(band="2G", num_stations="max", dut=lf_tools.dut_name, ssid_name=ssid_name)
|
||||
lf_tools.add_stations(band="5G", num_stations="max", dut=lf_tools.dut_name, ssid_name=ssid_name)
|
||||
# lf_tools.add_stations(band="ax", num_stations="max", dut=lf_tools.dut_name, ssid_name=ssid_name)
|
||||
|
||||
@@ -44,7 +44,7 @@ class TestWifiCapacityNATModeDualBand(object):
|
||||
@allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-3695", name="WIFI-3695")
|
||||
@pytest.mark.open
|
||||
@pytest.mark.tcp_download
|
||||
def test_client_open_nat_tcp_dl(self, get_vif_state, lf_tools, setup_profiles,
|
||||
def test_client_open_nat_tcp_dl(self, lf_tools, setup_profiles,
|
||||
lf_test, station_names_twog, create_lanforge_chamberview_dut,
|
||||
get_configuration):
|
||||
""" Wifi Capacity Test NAT mode
|
||||
@@ -54,9 +54,6 @@ class TestWifiCapacityNATModeDualBand(object):
|
||||
ssid_name = profile_data["ssid_name"]
|
||||
mode = "NAT"
|
||||
vlan = 1
|
||||
if ssid_name not in get_vif_state:
|
||||
allure.attach(name="retest,vif state ssid not available:", body=str(get_vif_state))
|
||||
pytest.xfail("SSID NOT AVAILABLE IN VIF STATE")
|
||||
lf_tools.add_stations(band="2G", num_stations="max", dut=lf_tools.dut_name, ssid_name=ssid_name)
|
||||
lf_tools.add_stations(band="5G", num_stations="max", dut=lf_tools.dut_name, ssid_name=ssid_name)
|
||||
lf_tools.add_stations(band="ax", num_stations="max", dut=lf_tools.dut_name, ssid_name=ssid_name)
|
||||
@@ -74,7 +71,7 @@ class TestWifiCapacityNATModeDualBand(object):
|
||||
@allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-3696", name="WIFI-3696")
|
||||
@pytest.mark.open
|
||||
@pytest.mark.udp_download
|
||||
def test_client_open_nat_udp_dl(self, get_vif_state, lf_tools,
|
||||
def test_client_open_nat_udp_dl(self, lf_tools,
|
||||
lf_test, station_names_twog, create_lanforge_chamberview_dut,
|
||||
get_configuration):
|
||||
""" Wifi Capacity Test NAT mode
|
||||
@@ -84,9 +81,6 @@ class TestWifiCapacityNATModeDualBand(object):
|
||||
ssid_name = profile_data["ssid_name"]
|
||||
mode = "NAT"
|
||||
vlan = 1
|
||||
if ssid_name not in get_vif_state:
|
||||
allure.attach(name="retest,vif state ssid not available:", body=str(get_vif_state))
|
||||
pytest.xfail("SSID NOT AVAILABLE IN VIF STATE")
|
||||
lf_tools.add_stations(band="2G", num_stations="max", dut=lf_tools.dut_name, ssid_name=ssid_name)
|
||||
lf_tools.add_stations(band="5G", num_stations="max", dut=lf_tools.dut_name, ssid_name=ssid_name)
|
||||
lf_tools.add_stations(band="ax", num_stations="max", dut=lf_tools.dut_name, ssid_name=ssid_name)
|
||||
@@ -104,7 +98,7 @@ class TestWifiCapacityNATModeDualBand(object):
|
||||
@allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-3698", name="WIFI-3698")
|
||||
@pytest.mark.open
|
||||
@pytest.mark.tcp_bidirectional
|
||||
def test_client_open_nat_tcp_bidirectional(self, get_vif_state, lf_tools,
|
||||
def test_client_open_nat_tcp_bidirectional(self, lf_tools,
|
||||
lf_test, station_names_twog, create_lanforge_chamberview_dut,
|
||||
get_configuration):
|
||||
""" Wifi Capacity Test NAT mode
|
||||
@@ -114,9 +108,6 @@ class TestWifiCapacityNATModeDualBand(object):
|
||||
ssid_name = profile_data["ssid_name"]
|
||||
mode = "NAT"
|
||||
vlan = 1
|
||||
if ssid_name not in get_vif_state:
|
||||
allure.attach(name="retest,vif state ssid not available:", body=str(get_vif_state))
|
||||
pytest.xfail("SSID NOT AVAILABLE IN VIF STATE")
|
||||
lf_tools.add_stations(band="2G", num_stations="max", dut=lf_tools.dut_name, ssid_name=ssid_name)
|
||||
lf_tools.add_stations(band="5G", num_stations="max", dut=lf_tools.dut_name, ssid_name=ssid_name)
|
||||
lf_tools.add_stations(band="ax", num_stations="max", dut=lf_tools.dut_name, ssid_name=ssid_name)
|
||||
@@ -134,7 +125,7 @@ class TestWifiCapacityNATModeDualBand(object):
|
||||
@allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-3697", name="WIFI-3697")
|
||||
@pytest.mark.open
|
||||
@pytest.mark.udp_bidirectional
|
||||
def test_client_open_nat_udp_bidirectional(self, get_vif_state, lf_tools,
|
||||
def test_client_open_nat_udp_bidirectional(self, lf_tools,
|
||||
lf_test, station_names_twog, create_lanforge_chamberview_dut,
|
||||
get_configuration):
|
||||
""" Wifi Capacity Test NAT mode
|
||||
@@ -144,9 +135,6 @@ class TestWifiCapacityNATModeDualBand(object):
|
||||
ssid_name = profile_data["ssid_name"]
|
||||
mode = "NAT"
|
||||
vlan = 1
|
||||
if ssid_name not in get_vif_state:
|
||||
allure.attach(name="retest,vif state ssid not available:", body=str(get_vif_state))
|
||||
pytest.xfail("SSID NOT AVAILABLE IN VIF STATE")
|
||||
lf_tools.add_stations(band="2G", num_stations="max", dut=lf_tools.dut_name, ssid_name=ssid_name)
|
||||
lf_tools.add_stations(band="5G", num_stations="max", dut=lf_tools.dut_name, ssid_name=ssid_name)
|
||||
lf_tools.add_stations(band="ax", num_stations="max", dut=lf_tools.dut_name, ssid_name=ssid_name)
|
||||
|
||||
@@ -4,9 +4,11 @@
|
||||
pytest -m "wifi_capacity_test and BRIDGE"
|
||||
|
||||
"""
|
||||
import os
|
||||
import pytest
|
||||
import logging
|
||||
import allure
|
||||
import pytest
|
||||
|
||||
LOGGER = logging.getLogger(__name__)
|
||||
|
||||
pytestmark = [pytest.mark.performance, pytest.mark.bridge]
|
||||
# """pytest.mark.usefixtures("setup_test_run")"""]
|
||||
@@ -24,7 +26,7 @@ setup_params_general_dual_band = {
|
||||
}
|
||||
|
||||
|
||||
@allure.feature("BRIDGE MODE CLIENT CONNECTIVITY")
|
||||
@allure.feature("BRIDGE MODE WIFI CAPACITY TEST")
|
||||
@pytest.mark.parametrize(
|
||||
'setup_profiles',
|
||||
[setup_params_general_dual_band],
|
||||
@@ -44,21 +46,24 @@ class TestWifiCapacityBRIDGEModeDualBand(object):
|
||||
"""
|
||||
|
||||
@allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-3926", name="WIFI-3926")
|
||||
@pytest.mark.tcp_download_wct
|
||||
def test_client_wpa2_BRIDGE_tcp_dl(self, lf_tools, setup_profiles,
|
||||
@pytest.mark.tcp_download
|
||||
@pytest.mark.uc_sanity
|
||||
def test_client_wpa2_BRIDGE_tcp_dl(self, lf_tools, get_apnos_max_clients,
|
||||
lf_test, station_names_twog, create_lanforge_chamberview_dut,
|
||||
get_configuration):
|
||||
""" Wifi Capacity Test BRIDGE mode
|
||||
pytest -m "wifi_capacity_test and BRIDGE and wpa2_personal and twog"
|
||||
"""
|
||||
LOGGER.info('test_client_wpa2_BRIDGE_tcp_dl Test Setup Finished, Starting test now...')
|
||||
lf_tools.reset_scenario()
|
||||
profile_data = setup_params_general_dual_band["ssid_modes"]["wpa2_personal"][0]
|
||||
ssid_name = profile_data["ssid_name"]
|
||||
mode = "BRIDGE"
|
||||
vlan = 1
|
||||
lf_tools.add_stations(band="2G", num_stations="max", dut=lf_tools.dut_name, ssid_name=ssid_name)
|
||||
lf_tools.add_stations(band="5G", num_stations="max", dut=lf_tools.dut_name, ssid_name=ssid_name)
|
||||
lf_tools.add_stations(band="ax", num_stations="max", dut=lf_tools.dut_name, ssid_name=ssid_name)
|
||||
max = int(get_apnos_max_clients[0])
|
||||
lf_tools.add_stations(band="2G", num_stations=max, dut=lf_tools.dut_name, ssid_name=ssid_name)
|
||||
lf_tools.add_stations(band="5G", num_stations=max, dut=lf_tools.dut_name, ssid_name=ssid_name)
|
||||
# lf_tools.add_stations(band="ax", num_stations="max", dut=lf_tools.dut_name, ssid_name=ssid_name)
|
||||
lf_tools.Chamber_View()
|
||||
influx_tags = ["tcp", "download", "2.4G-5G Combined"]
|
||||
wct_obj = lf_test.wifi_capacity(instance_name="test_client_wpa2_BRIDGE_tcp_dl", mode=mode, vlan_id=vlan,
|
||||
@@ -69,12 +74,12 @@ class TestWifiCapacityBRIDGEModeDualBand(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")
|
||||
LOGGER.info('test_client_wpa2_BRIDGE_tcp_dl Test Finished')
|
||||
assert True
|
||||
|
||||
@allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-3927", name="WIFI-3927")
|
||||
@pytest.mark.udp_download
|
||||
def test_client_wpa2_BRIDGE_udp_dl(self, lf_tools,
|
||||
def test_client_wpa2_BRIDGE_udp_dl(self, lf_tools, get_apnos_max_clients,
|
||||
lf_test, station_names_twog, create_lanforge_chamberview_dut,
|
||||
get_configuration):
|
||||
""" Wifi Capacity Test BRIDGE mode
|
||||
@@ -85,9 +90,10 @@ class TestWifiCapacityBRIDGEModeDualBand(object):
|
||||
ssid_name = profile_data["ssid_name"]
|
||||
mode = "BRIDGE"
|
||||
vlan = 1
|
||||
lf_tools.add_stations(band="2G", num_stations="max", dut=lf_tools.dut_name, ssid_name=ssid_name)
|
||||
lf_tools.add_stations(band="5G", num_stations="max", dut=lf_tools.dut_name, ssid_name=ssid_name)
|
||||
lf_tools.add_stations(band="ax", num_stations="max", dut=lf_tools.dut_name, ssid_name=ssid_name)
|
||||
max = int(get_apnos_max_clients[0])
|
||||
lf_tools.add_stations(band="2G", num_stations=max, dut=lf_tools.dut_name, ssid_name=ssid_name)
|
||||
lf_tools.add_stations(band="5G", num_stations=max, dut=lf_tools.dut_name, ssid_name=ssid_name)
|
||||
# lf_tools.add_stations(band="ax", num_stations="max", dut=lf_tools.dut_name, ssid_name=ssid_name)
|
||||
lf_tools.Chamber_View()
|
||||
influx_tags = ["udp", "download", "2.4G-5G Combined"]
|
||||
wct_obj = lf_test.wifi_capacity(instance_name="test_client_wpa2_BRIDGE_udp_dl", mode=mode, vlan_id=vlan,
|
||||
@@ -103,7 +109,8 @@ class TestWifiCapacityBRIDGEModeDualBand(object):
|
||||
|
||||
@allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-3932", name="WIFI-3932")
|
||||
@pytest.mark.tcp_bidirectional
|
||||
def test_client_wpa2_BRIDGE_tcp_bidirectional(self, lf_tools,
|
||||
@pytest.mark.uc_sanity
|
||||
def test_client_wpa2_BRIDGE_tcp_bidirectional(self, lf_tools, get_apnos_max_clients,
|
||||
lf_test, station_names_twog, create_lanforge_chamberview_dut,
|
||||
get_configuration):
|
||||
""" Wifi Capacity Test BRIDGE mode
|
||||
@@ -114,9 +121,10 @@ class TestWifiCapacityBRIDGEModeDualBand(object):
|
||||
ssid_name = profile_data["ssid_name"]
|
||||
mode = "BRIDGE"
|
||||
vlan = 1
|
||||
lf_tools.add_stations(band="2G", num_stations="max", dut=lf_tools.dut_name, ssid_name=ssid_name)
|
||||
lf_tools.add_stations(band="5G", num_stations="max", dut=lf_tools.dut_name, ssid_name=ssid_name)
|
||||
lf_tools.add_stations(band="ax", num_stations="max", dut=lf_tools.dut_name, ssid_name=ssid_name)
|
||||
max = int(get_apnos_max_clients[0])
|
||||
lf_tools.add_stations(band="2G", num_stations=max, dut=lf_tools.dut_name, ssid_name=ssid_name)
|
||||
lf_tools.add_stations(band="5G", num_stations=max, dut=lf_tools.dut_name, ssid_name=ssid_name)
|
||||
# lf_tools.add_stations(band="ax", num_stations="max", dut=lf_tools.dut_name, ssid_name=ssid_name)
|
||||
lf_tools.Chamber_View()
|
||||
influx_tags = ["tcp", "bidirectional", "2.4G-5G Combined"]
|
||||
wct_obj = lf_test.wifi_capacity(instance_name="test_client_wpa2_BRIDGE_tcp_bi", mode=mode, vlan_id=vlan,
|
||||
@@ -132,7 +140,7 @@ class TestWifiCapacityBRIDGEModeDualBand(object):
|
||||
|
||||
@allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-3933", name="WIFI-3933")
|
||||
@pytest.mark.udp_bidirectional
|
||||
def test_client_wpa2_BRIDGE_udp_bidirectional(self, lf_tools,
|
||||
def test_client_wpa2_BRIDGE_udp_bidirectional(self, lf_tools, get_apnos_max_clients,
|
||||
lf_test, station_names_twog, create_lanforge_chamberview_dut,
|
||||
get_configuration):
|
||||
""" Wifi Capacity Test BRIDGE mode
|
||||
@@ -143,9 +151,10 @@ class TestWifiCapacityBRIDGEModeDualBand(object):
|
||||
ssid_name = profile_data["ssid_name"]
|
||||
mode = "BRIDGE"
|
||||
vlan = 1
|
||||
lf_tools.add_stations(band="2G", num_stations="max", dut=lf_tools.dut_name, ssid_name=ssid_name)
|
||||
lf_tools.add_stations(band="5G", num_stations="max", dut=lf_tools.dut_name, ssid_name=ssid_name)
|
||||
lf_tools.add_stations(band="ax", num_stations="max", dut=lf_tools.dut_name, ssid_name=ssid_name)
|
||||
max = int(get_apnos_max_clients[0])
|
||||
lf_tools.add_stations(band="2G", num_stations=max, dut=lf_tools.dut_name, ssid_name=ssid_name)
|
||||
lf_tools.add_stations(band="5G", num_stations=max, dut=lf_tools.dut_name, ssid_name=ssid_name)
|
||||
# lf_tools.add_stations(band="ax", num_stations="max", dut=lf_tools.dut_name, ssid_name=ssid_name)
|
||||
lf_tools.Chamber_View()
|
||||
influx_tags = ["udp", "bidirectional", "2.4G-5G Combined"]
|
||||
wct_obj = lf_test.wifi_capacity(instance_name="test_client_wpa2_BRIDGE_udp_bi", mode=mode, vlan_id=vlan,
|
||||
@@ -161,7 +170,7 @@ class TestWifiCapacityBRIDGEModeDualBand(object):
|
||||
|
||||
@allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-7127", name="WIFI-7127")
|
||||
@pytest.mark.tcp_upload
|
||||
def test_client_wpa2_bridge_tcp_ul(self, get_vif_state, lf_tools, setup_profiles,
|
||||
def test_client_wpa2_bridge_tcp_ul(self, lf_tools, get_apnos_max_clients,
|
||||
lf_test, station_names_twog, create_lanforge_chamberview_dut,
|
||||
get_configuration):
|
||||
""" Wifi Capacity Test BRIDGE mode
|
||||
@@ -172,13 +181,10 @@ class TestWifiCapacityBRIDGEModeDualBand(object):
|
||||
ssid_name = profile_data["ssid_name"]
|
||||
mode = "BRIDGE"
|
||||
vlan = 1
|
||||
get_vif_state.append(ssid_name)
|
||||
if ssid_name not in get_vif_state:
|
||||
allure.attach(name="retest,vif state ssid not available:", body=str(get_vif_state))
|
||||
pytest.xfail("SSID NOT AVAILABLE IN VIF STATE")
|
||||
lf_tools.add_stations(band="2G", num_stations="max", dut=lf_tools.dut_name, ssid_name=ssid_name)
|
||||
lf_tools.add_stations(band="5G", num_stations="max", dut=lf_tools.dut_name, ssid_name=ssid_name)
|
||||
lf_tools.add_stations(band="ax", num_stations="max", dut=lf_tools.dut_name, ssid_name=ssid_name)
|
||||
max = int(get_apnos_max_clients[0])
|
||||
lf_tools.add_stations(band="2G", num_stations=max, dut=lf_tools.dut_name, ssid_name=ssid_name)
|
||||
lf_tools.add_stations(band="5G", num_stations=max, dut=lf_tools.dut_name, ssid_name=ssid_name)
|
||||
# lf_tools.add_stations(band="ax", num_stations="max", dut=lf_tools.dut_name, ssid_name=ssid_name)
|
||||
lf_tools.Chamber_View()
|
||||
influx_tags = ["tcp", "download", "2.4G-5G Combined"]
|
||||
wct_obj = lf_test.wifi_capacity(instance_name="test_client_wpa2_BRIDGE_tcp_ul", mode=mode, vlan_id=vlan,
|
||||
@@ -194,7 +200,7 @@ class TestWifiCapacityBRIDGEModeDualBand(object):
|
||||
|
||||
@allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-7128", name="WIFI-7128")
|
||||
@pytest.mark.udp_upload
|
||||
def test_client_wpa2_bridge_udp_ul(self, get_vif_state, lf_tools,
|
||||
def test_client_wpa2_bridge_udp_ul(self, lf_tools, get_apnos_max_clients,
|
||||
lf_test, station_names_twog, create_lanforge_chamberview_dut,
|
||||
get_configuration):
|
||||
""" Wifi Capacity Test BRIDGE mode
|
||||
@@ -205,13 +211,10 @@ class TestWifiCapacityBRIDGEModeDualBand(object):
|
||||
ssid_name = profile_data["ssid_name"]
|
||||
mode = "BRIDGE"
|
||||
vlan = 1
|
||||
get_vif_state.append(ssid_name)
|
||||
if ssid_name not in get_vif_state:
|
||||
allure.attach(name="retest,vif state ssid not available:", body=str(get_vif_state))
|
||||
pytest.xfail("SSID NOT AVAILABLE IN VIF STATE")
|
||||
lf_tools.add_stations(band="2G", num_stations="max", dut=lf_tools.dut_name, ssid_name=ssid_name)
|
||||
lf_tools.add_stations(band="5G", num_stations="max", dut=lf_tools.dut_name, ssid_name=ssid_name)
|
||||
lf_tools.add_stations(band="ax", num_stations="max", dut=lf_tools.dut_name, ssid_name=ssid_name)
|
||||
max = int(get_apnos_max_clients[0])
|
||||
lf_tools.add_stations(band="2G", num_stations=max, dut=lf_tools.dut_name, ssid_name=ssid_name)
|
||||
lf_tools.add_stations(band="5G", num_stations=max, dut=lf_tools.dut_name, ssid_name=ssid_name)
|
||||
# lf_tools.add_stations(band="ax", num_stations="max", dut=lf_tools.dut_name, ssid_name=ssid_name)
|
||||
lf_tools.Chamber_View()
|
||||
influx_tags = ["udp", "download", "2.4G-5G Combined"]
|
||||
wct_obj = lf_test.wifi_capacity(instance_name="test_client_wpa2_BRIDGE_udp_ul", mode=mode, vlan_id=vlan,
|
||||
@@ -225,6 +228,7 @@ class TestWifiCapacityBRIDGEModeDualBand(object):
|
||||
print("Test Completed... Cleaning up Stations")
|
||||
assert True
|
||||
|
||||
|
||||
setup_params_general_2G = {
|
||||
"mode": "BRIDGE",
|
||||
"ssid_modes": {
|
||||
@@ -237,7 +241,7 @@ setup_params_general_2G = {
|
||||
}
|
||||
|
||||
|
||||
@allure.feature("BRIDGE MODE CLIENT CONNECTIVITY")
|
||||
@allure.feature("BRIDGE MODE Wifi Capacity")
|
||||
@pytest.mark.parametrize(
|
||||
'setup_profiles',
|
||||
[setup_params_general_2G],
|
||||
@@ -255,7 +259,7 @@ class TestWifiCapacityBRIDGEMode2G(object):
|
||||
|
||||
@allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-3928", name="WIFI-3928")
|
||||
@pytest.mark.tcp_download
|
||||
def test_client_wpa2_BRIDGE_tcp_dl(self, lf_tools, setup_profiles,
|
||||
def test_client_wpa2_BRIDGE_tcp_dl(self, lf_tools, get_apnos_max_clients,
|
||||
lf_test, station_names_twog, create_lanforge_chamberview_dut,
|
||||
get_configuration):
|
||||
""" Wifi Capacity Test BRIDGE mode
|
||||
@@ -265,11 +269,14 @@ class TestWifiCapacityBRIDGEMode2G(object):
|
||||
ssid_name = profile_data["ssid_name"]
|
||||
mode = "BRIDGE"
|
||||
vlan = 1
|
||||
lf_tools.add_stations(band="2G", num_stations="max", dut=lf_tools.dut_name, ssid_name=ssid_name)
|
||||
lf_tools.add_stations(band="5G", num_stations="max", dut=lf_tools.dut_name, ssid_name=ssid_name)
|
||||
max = int(get_apnos_max_clients[0])
|
||||
lf_tools.add_stations(band="2G", num_stations=max, dut=lf_tools.dut_name, ssid_name=ssid_name)
|
||||
lf_tools.add_stations(band="5G", num_stations=max, dut=lf_tools.dut_name, ssid_name=ssid_name)
|
||||
# lf_tools.add_stations(band="ax", num_stations="max", dut=lf_tools.dut_name, ssid_name=ssid_name)
|
||||
lf_tools.Chamber_View()
|
||||
influx_tags = ["tcp", "download", "2.4G"]
|
||||
wct_obj = lf_test.wifi_capacity(instance_name="test_client_wpa2_BRIDGE_tcp_dl", mode=mode, vlan_id=vlan,
|
||||
download_rate="1Gbps",
|
||||
download_rate="1Gbps", influx_tags=influx_tags,
|
||||
upload_rate="0", protocol="TCP-IPv4", duration="60000")
|
||||
|
||||
report_name = wct_obj.report_name[0]['LAST']["response"].split(":::")[1].split("/")[-1]
|
||||
@@ -280,7 +287,7 @@ class TestWifiCapacityBRIDGEMode2G(object):
|
||||
|
||||
@allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-3930", name="WIFI-3930")
|
||||
@pytest.mark.udp_download
|
||||
def test_client_wpa2_BRIDGE_udp_dl(self, lf_tools,
|
||||
def test_client_wpa2_BRIDGE_udp_dl(self, lf_tools, get_apnos_max_clients,
|
||||
lf_test, station_names_twog, create_lanforge_chamberview_dut,
|
||||
get_configuration):
|
||||
""" Wifi Capacity Test BRIDGE mode
|
||||
@@ -290,11 +297,14 @@ class TestWifiCapacityBRIDGEMode2G(object):
|
||||
ssid_name = profile_data["ssid_name"]
|
||||
mode = "BRIDGE"
|
||||
vlan = 1
|
||||
lf_tools.add_stations(band="2G", num_stations="max", dut=lf_tools.dut_name, ssid_name=ssid_name)
|
||||
lf_tools.add_stations(band="5G", num_stations="max", dut=lf_tools.dut_name, ssid_name=ssid_name)
|
||||
max = int(get_apnos_max_clients[0])
|
||||
lf_tools.add_stations(band="2G", num_stations=max, dut=lf_tools.dut_name, ssid_name=ssid_name)
|
||||
# lf_tools.add_stations(band="5G", num_stations=max, dut=lf_tools.dut_name, ssid_name=ssid_name)
|
||||
# lf_tools.add_stations(band="ax", num_stations="max", dut=lf_tools.dut_name, ssid_name=ssid_name)
|
||||
lf_tools.Chamber_View()
|
||||
influx_tags = ["udp", "download", "2.4G"]
|
||||
wct_obj = lf_test.wifi_capacity(instance_name="test_client_wpa2_BRIDGE_udp_dl", mode=mode, vlan_id=vlan,
|
||||
download_rate="1Gbps",
|
||||
download_rate="1Gbps", influx_tags=influx_tags,
|
||||
upload_rate="0", protocol="UDP-IPv4", duration="60000")
|
||||
|
||||
report_name = wct_obj.report_name[0]['LAST']["response"].split(":::")[1].split("/")[-1]
|
||||
@@ -305,7 +315,7 @@ class TestWifiCapacityBRIDGEMode2G(object):
|
||||
|
||||
@allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-3934", name="WIFI-3934")
|
||||
@pytest.mark.tcp_bidirectional
|
||||
def test_client_wpa2_BRIDGE_tcp_bidirectional(self, lf_tools,
|
||||
def test_client_wpa2_BRIDGE_tcp_bidirectional(self, lf_tools, get_apnos_max_clients,
|
||||
lf_test, station_names_twog, create_lanforge_chamberview_dut,
|
||||
get_configuration):
|
||||
""" Wifi Capacity Test BRIDGE mode
|
||||
@@ -315,11 +325,14 @@ class TestWifiCapacityBRIDGEMode2G(object):
|
||||
ssid_name = profile_data["ssid_name"]
|
||||
mode = "BRIDGE"
|
||||
vlan = 1
|
||||
lf_tools.add_stations(band="2G", num_stations="max", dut=lf_tools.dut_name, ssid_name=ssid_name)
|
||||
lf_tools.add_stations(band="5G", num_stations="max", dut=lf_tools.dut_name, ssid_name=ssid_name)
|
||||
max = int(get_apnos_max_clients[0])
|
||||
lf_tools.add_stations(band="2G", num_stations=max, dut=lf_tools.dut_name, ssid_name=ssid_name)
|
||||
# lf_tools.add_stations(band="5G", num_stations=max, dut=lf_tools.dut_name, ssid_name=ssid_name)
|
||||
# lf_tools.add_stations(band="ax", num_stations="max", dut=lf_tools.dut_name, ssid_name=ssid_name)
|
||||
lf_tools.Chamber_View()
|
||||
influx_tags = ["udp", "bidirectional", "2.4G"]
|
||||
wct_obj = lf_test.wifi_capacity(instance_name="test_client_wpa2_BRIDGE_tcp_bi", mode=mode, vlan_id=vlan,
|
||||
download_rate="1Gbps",
|
||||
download_rate="1Gbps", influx_tags=influx_tags,
|
||||
upload_rate="1Gbps", protocol="TCP-IPv4", duration="60000")
|
||||
|
||||
report_name = wct_obj.report_name[0]['LAST']["response"].split(":::")[1].split("/")[-1]
|
||||
@@ -330,7 +343,7 @@ class TestWifiCapacityBRIDGEMode2G(object):
|
||||
|
||||
@allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-3935", name="WIFI-3935")
|
||||
@pytest.mark.udp_bidirectional
|
||||
def test_client_wpa2_BRIDGE_udp_bidirectional(self, lf_tools,
|
||||
def test_client_wpa2_BRIDGE_udp_bidirectional(self, lf_tools, get_apnos_max_clients,
|
||||
lf_test, station_names_twog, create_lanforge_chamberview_dut,
|
||||
get_configuration):
|
||||
""" Wifi Capacity Test BRIDGE mode
|
||||
@@ -340,11 +353,74 @@ class TestWifiCapacityBRIDGEMode2G(object):
|
||||
ssid_name = profile_data["ssid_name"]
|
||||
mode = "BRIDGE"
|
||||
vlan = 1
|
||||
lf_tools.add_stations(band="2G", num_stations="max", dut=lf_tools.dut_name, ssid_name=ssid_name)
|
||||
lf_tools.add_stations(band="5G", num_stations="max", dut=lf_tools.dut_name, ssid_name=ssid_name)
|
||||
max = int(get_apnos_max_clients[0])
|
||||
lf_tools.add_stations(band="2G", num_stations=max, dut=lf_tools.dut_name, ssid_name=ssid_name)
|
||||
# lf_tools.add_stations(band="5G", num_stations=max, dut=lf_tools.dut_name, ssid_name=ssid_name)
|
||||
# lf_tools.add_stations(band="ax", num_stations="max", dut=lf_tools.dut_name, ssid_name=ssid_name)
|
||||
lf_tools.Chamber_View()
|
||||
influx_tags = ["tcp", "bidirectional", "2.4G"]
|
||||
wct_obj = lf_test.wifi_capacity(instance_name="test_client_wpa2_BRIDGE_udp_bi", mode=mode, vlan_id=vlan,
|
||||
download_rate="1Gbps",
|
||||
download_rate="1Gbps", influx_tags=influx_tags,
|
||||
upload_rate="1Gbps", protocol="UDP-IPv4", duration="60000")
|
||||
|
||||
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
|
||||
|
||||
@allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-7127", name="WIFI-7127")
|
||||
@pytest.mark.tcp_upload
|
||||
def test_client_wpa2_bridge_tcp_ul(self, lf_tools, get_apnos_max_clients,
|
||||
lf_test, station_names_twog, create_lanforge_chamberview_dut,
|
||||
get_configuration):
|
||||
""" Wifi Capacity Test BRIDGE mode
|
||||
pytest -m "wifi_capacity_test and BRIDGE and wpa2_personal and twog"
|
||||
"""
|
||||
lf_tools.reset_scenario()
|
||||
profile_data = setup_params_general_dual_band["ssid_modes"]["wpa2_personal"][0]
|
||||
ssid_name = profile_data["ssid_name"]
|
||||
mode = "BRIDGE"
|
||||
vlan = 1
|
||||
max = int(get_apnos_max_clients[0])
|
||||
lf_tools.add_stations(band="2G", num_stations=max, dut=lf_tools.dut_name, ssid_name=ssid_name)
|
||||
# lf_tools.add_stations(band="5G", num_stations=max, dut=lf_tools.dut_name, ssid_name=ssid_name)
|
||||
# lf_tools.add_stations(band="ax", num_stations="max", dut=lf_tools.dut_name, ssid_name=ssid_name)
|
||||
lf_tools.Chamber_View()
|
||||
influx_tags = ["tcp", "upload", "2.4G"]
|
||||
wct_obj = lf_test.wifi_capacity(instance_name="test_client_wpa2_BRIDGE_tcp_ul", mode=mode, vlan_id=vlan,
|
||||
download_rate="0", batch_size="1,5,10,20,40,64,128,256",
|
||||
influx_tags=influx_tags,
|
||||
upload_rate="1Gbps", protocol="TCP-IPv4", duration="60000")
|
||||
|
||||
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
|
||||
|
||||
@allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-7128", name="WIFI-7128")
|
||||
@pytest.mark.udp_upload
|
||||
def test_client_wpa2_bridge_udp_ul(self, lf_tools, get_apnos_max_clients,
|
||||
lf_test, station_names_twog, create_lanforge_chamberview_dut,
|
||||
get_configuration):
|
||||
""" Wifi Capacity Test BRIDGE mode
|
||||
pytest -m "wifi_capacity_test and BRIDGE and wpa2_personal and twog"
|
||||
"""
|
||||
lf_tools.reset_scenario()
|
||||
profile_data = setup_params_general_dual_band["ssid_modes"]["wpa2_personal"][0]
|
||||
ssid_name = profile_data["ssid_name"]
|
||||
mode = "BRIDGE"
|
||||
vlan = 1
|
||||
max = int(get_apnos_max_clients[0])
|
||||
lf_tools.add_stations(band="2G", num_stations=max, dut=lf_tools.dut_name, ssid_name=ssid_name)
|
||||
# lf_tools.add_stations(band="5G", num_stations=max, dut=lf_tools.dut_name, ssid_name=ssid_name)
|
||||
# lf_tools.add_stations(band="ax", num_stations="max", dut=lf_tools.dut_name, ssid_name=ssid_name)
|
||||
lf_tools.Chamber_View()
|
||||
influx_tags = ["udp", "upload", "2.4G"]
|
||||
wct_obj = lf_test.wifi_capacity(instance_name="test_client_wpa2_BRIDGE_udp_ul", mode=mode, vlan_id=vlan,
|
||||
download_rate="0", batch_size="1,5,10,20,40,64,128,256",
|
||||
influx_tags=influx_tags,
|
||||
upload_rate="1Gbps", protocol="UDP-IPv4", duration="60000")
|
||||
|
||||
report_name = wct_obj.report_name[0]['LAST']["response"].split(":::")[1].split("/")[-1]
|
||||
@@ -384,7 +460,7 @@ class TestWifiCapacityBRIDGEMode5G(object):
|
||||
|
||||
@allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-3929", name="WIFI-3929")
|
||||
@pytest.mark.tcp_download
|
||||
def test_client_wpa2_BRIDGE_tcp_dl(self, lf_tools, setup_profiles,
|
||||
def test_client_wpa2_BRIDGE_tcp_dl(self, lf_tools, get_apnos_max_clients,
|
||||
lf_test, station_names_twog, create_lanforge_chamberview_dut,
|
||||
get_configuration):
|
||||
""" Wifi Capacity Test BRIDGE mode
|
||||
@@ -409,7 +485,7 @@ class TestWifiCapacityBRIDGEMode5G(object):
|
||||
|
||||
@allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-3931", name="WIFI-3931")
|
||||
@pytest.mark.udp_download
|
||||
def test_client_wpa2_BRIDGE_udp_dl(self, lf_tools,
|
||||
def test_client_wpa2_BRIDGE_udp_dl(self, lf_tools,
|
||||
lf_test, station_names_twog, create_lanforge_chamberview_dut,
|
||||
get_configuration):
|
||||
""" Wifi Capacity Test BRIDGE mode
|
||||
@@ -434,7 +510,7 @@ class TestWifiCapacityBRIDGEMode5G(object):
|
||||
|
||||
@allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-3936", name="WIFI-3936")
|
||||
@pytest.mark.tcp_bidirectional
|
||||
def test_client_wpa2_BRIDGE_tcp_bidirectional(self, lf_tools,
|
||||
def test_client_wpa2_BRIDGE_tcp_bidirectional(self, lf_tools,
|
||||
lf_test, station_names_twog, create_lanforge_chamberview_dut,
|
||||
get_configuration):
|
||||
""" Wifi Capacity Test BRIDGE mode
|
||||
@@ -459,7 +535,7 @@ class TestWifiCapacityBRIDGEMode5G(object):
|
||||
|
||||
@allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-3937", name="WIFI-3937")
|
||||
@pytest.mark.udp_bidirectional
|
||||
def test_client_wpa2_BRIDGE_udp_bidirectional(self, lf_tools,
|
||||
def test_client_wpa2_BRIDGE_udp_bidirectional(self, lf_tools,
|
||||
lf_test, station_names_twog, create_lanforge_chamberview_dut,
|
||||
get_configuration):
|
||||
""" Wifi Capacity Test BRIDGE mode
|
||||
|
||||
@@ -4,9 +4,11 @@
|
||||
pytest -m "wifi_capacity_test and NAT"
|
||||
|
||||
"""
|
||||
import os
|
||||
import pytest
|
||||
import logging
|
||||
import allure
|
||||
import pytest
|
||||
|
||||
LOGGER = logging.getLogger(__name__)
|
||||
|
||||
pytestmark = [pytest.mark.performance, pytest.mark.nat]
|
||||
# """pytest.mark.usefixtures("setup_test_run")"""]
|
||||
@@ -24,7 +26,7 @@ setup_params_general_dual_band = {
|
||||
}
|
||||
|
||||
|
||||
@allure.feature("NAT MODE CLIENT CONNECTIVITY")
|
||||
@allure.feature("NAT MODE WIFI CAPACITY TEST")
|
||||
@pytest.mark.parametrize(
|
||||
'setup_profiles',
|
||||
[setup_params_general_dual_band],
|
||||
@@ -32,58 +34,70 @@ setup_params_general_dual_band = {
|
||||
scope="class"
|
||||
)
|
||||
@pytest.mark.usefixtures("setup_profiles")
|
||||
@pytest.mark.wpa2_personal
|
||||
@pytest.mark.bridge
|
||||
@pytest.mark.twog
|
||||
@pytest.mark.fiveg
|
||||
@pytest.mark.dual_band
|
||||
@pytest.mark.wpa2_personal
|
||||
@pytest.mark.wifi_capacity_test
|
||||
class TestWifiCapacityNATModeDualBand(object):
|
||||
""" Wifi Capacity Test NAT mode
|
||||
pytest -m "wifi_capacity_test and NAT"
|
||||
"""
|
||||
|
||||
@allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-3926", name="WIFI-3926")
|
||||
@pytest.mark.tcp_download
|
||||
def test_client_wpa2_NAT_tcp_dl(self, lf_tools, setup_profiles,
|
||||
@pytest.mark.tcp_download_wct
|
||||
def test_client_wpa2_NAT_tcp_dl(self, lf_tools, get_apnos_max_clients,
|
||||
lf_test, station_names_twog, create_lanforge_chamberview_dut,
|
||||
get_configuration):
|
||||
""" Wifi Capacity Test NAT mode
|
||||
pytest -m "wifi_capacity_test and NAT and wpa2_personal and twog"
|
||||
"""
|
||||
LOGGER.info('test_client_wpa2_NAT_tcp_dl Test Setup Finished, Starting test now...')
|
||||
lf_tools.reset_scenario()
|
||||
profile_data = setup_params_general_dual_band["ssid_modes"]["wpa2_personal"][0]
|
||||
ssid_name = profile_data["ssid_name"]
|
||||
mode = "NAT"
|
||||
vlan = 1
|
||||
lf_tools.add_stations(band="2G", num_stations="max", dut=lf_tools.dut_name, ssid_name=ssid_name)
|
||||
lf_tools.add_stations(band="5G", num_stations="max", dut=lf_tools.dut_name, ssid_name=ssid_name)
|
||||
lf_tools.add_stations(band="ax", num_stations="max", dut=lf_tools.dut_name, ssid_name=ssid_name)
|
||||
max = int(get_apnos_max_clients[0])
|
||||
lf_tools.add_stations(band="2G", num_stations=max, dut=lf_tools.dut_name, ssid_name=ssid_name)
|
||||
lf_tools.add_stations(band="5G", num_stations=max, dut=lf_tools.dut_name, ssid_name=ssid_name)
|
||||
# lf_tools.add_stations(band="ax", num_stations="max", dut=lf_tools.dut_name, ssid_name=ssid_name)
|
||||
lf_tools.Chamber_View()
|
||||
influx_tags = ["tcp", "download", "2.4G-5G Combined"]
|
||||
wct_obj = lf_test.wifi_capacity(instance_name="test_client_wpa2_NAT_tcp_dl", mode=mode, vlan_id=vlan,
|
||||
download_rate="1Gbps",
|
||||
download_rate="1Gbps", batch_size="1,5,10,20,40,64,128,256",
|
||||
influx_tags=influx_tags,
|
||||
upload_rate="0", protocol="TCP-IPv4", duration="60000")
|
||||
|
||||
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")
|
||||
LOGGER.info('test_client_wpa2_NAT_tcp_dl Test Finished')
|
||||
assert True
|
||||
|
||||
@allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-3927", name="WIFI-3927")
|
||||
@pytest.mark.udp_download
|
||||
def test_client_wpa2_NAT_udp_dl(self, lf_tools,
|
||||
def test_client_wpa2_NAT_udp_dl(self, lf_tools, get_apnos_max_clients,
|
||||
lf_test, station_names_twog, create_lanforge_chamberview_dut,
|
||||
get_configuration):
|
||||
""" Wifi Capacity Test NAT mode
|
||||
pytest -m "wifi_capacity_test and NAT and wpa2_personal and twog"
|
||||
"""
|
||||
lf_tools.reset_scenario()
|
||||
profile_data = setup_params_general_dual_band["ssid_modes"]["wpa2_personal"][0]
|
||||
ssid_name = profile_data["ssid_name"]
|
||||
mode = "NAT"
|
||||
vlan = 1
|
||||
lf_tools.add_stations(band="2G", num_stations="max", dut=lf_tools.dut_name, ssid_name=ssid_name)
|
||||
lf_tools.add_stations(band="5G", num_stations="max", dut=lf_tools.dut_name, ssid_name=ssid_name)
|
||||
lf_tools.add_stations(band="ax", num_stations="max", dut=lf_tools.dut_name, ssid_name=ssid_name)
|
||||
max = int(get_apnos_max_clients[0])
|
||||
lf_tools.add_stations(band="2G", num_stations=max, dut=lf_tools.dut_name, ssid_name=ssid_name)
|
||||
lf_tools.add_stations(band="5G", num_stations=max, dut=lf_tools.dut_name, ssid_name=ssid_name)
|
||||
# lf_tools.add_stations(band="ax", num_stations="max", dut=lf_tools.dut_name, ssid_name=ssid_name)
|
||||
lf_tools.Chamber_View()
|
||||
influx_tags = ["udp", "download", "2.4G-5G Combined"]
|
||||
wct_obj = lf_test.wifi_capacity(instance_name="test_client_wpa2_NAT_udp_dl", mode=mode, vlan_id=vlan,
|
||||
download_rate="1Gbps",
|
||||
download_rate="1Gbps", batch_size="1,5,10,20,40,64,128,256",
|
||||
influx_tags=influx_tags,
|
||||
upload_rate="0", protocol="UDP-IPv4", duration="60000")
|
||||
|
||||
report_name = wct_obj.report_name[0]['LAST']["response"].split(":::")[1].split("/")[-1]
|
||||
@@ -94,22 +108,26 @@ class TestWifiCapacityNATModeDualBand(object):
|
||||
|
||||
@allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-3932", name="WIFI-3932")
|
||||
@pytest.mark.tcp_bidirectional
|
||||
def test_client_wpa2_NAT_tcp_bidirectional(self, get_vif_state, lf_tools,
|
||||
def test_client_wpa2_NAT_tcp_bidirectional(self, lf_tools, get_apnos_max_clients,
|
||||
lf_test, station_names_twog, create_lanforge_chamberview_dut,
|
||||
get_configuration):
|
||||
""" Wifi Capacity Test NAT mode
|
||||
pytest -m "wifi_capacity_test and NAT and wpa2_personal and twog"
|
||||
"""
|
||||
lf_tools.reset_scenario()
|
||||
profile_data = setup_params_general_dual_band["ssid_modes"]["wpa2_personal"][0]
|
||||
ssid_name = profile_data["ssid_name"]
|
||||
mode = "NAT"
|
||||
vlan = 1
|
||||
lf_tools.add_stations(band="2G", num_stations="max", dut=lf_tools.dut_name, ssid_name=ssid_name)
|
||||
lf_tools.add_stations(band="5G", num_stations="max", dut=lf_tools.dut_name, ssid_name=ssid_name)
|
||||
lf_tools.add_stations(band="ax", num_stations="max", dut=lf_tools.dut_name, ssid_name=ssid_name)
|
||||
max = int(get_apnos_max_clients[0])
|
||||
lf_tools.add_stations(band="2G", num_stations=max, dut=lf_tools.dut_name, ssid_name=ssid_name)
|
||||
lf_tools.add_stations(band="5G", num_stations=max, dut=lf_tools.dut_name, ssid_name=ssid_name)
|
||||
# lf_tools.add_stations(band="ax", num_stations="max", dut=lf_tools.dut_name, ssid_name=ssid_name)
|
||||
lf_tools.Chamber_View()
|
||||
influx_tags = ["tcp", "bidirectional", "2.4G-5G Combined"]
|
||||
wct_obj = lf_test.wifi_capacity(instance_name="test_client_wpa2_NAT_tcp_bi", mode=mode, vlan_id=vlan,
|
||||
download_rate="1Gbps",
|
||||
download_rate="1Gbps", batch_size="1,5,10,20,40,64,128,256",
|
||||
influx_tags=influx_tags,
|
||||
upload_rate="1Gbps", protocol="TCP-IPv4", duration="60000")
|
||||
|
||||
report_name = wct_obj.report_name[0]['LAST']["response"].split(":::")[1].split("/")[-1]
|
||||
@@ -120,22 +138,86 @@ class TestWifiCapacityNATModeDualBand(object):
|
||||
|
||||
@allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-3933", name="WIFI-3933")
|
||||
@pytest.mark.udp_bidirectional
|
||||
def test_client_wpa2_NAT_udp_bidirectional(self, get_vif_state, lf_tools,
|
||||
def test_client_wpa2_NAT_udp_bidirectional(self, lf_tools, get_apnos_max_clients,
|
||||
lf_test, station_names_twog, create_lanforge_chamberview_dut,
|
||||
get_configuration):
|
||||
""" Wifi Capacity Test NAT mode
|
||||
pytest -m "wifi_capacity_test and NAT and wpa2_personal and twog"
|
||||
"""
|
||||
lf_tools.reset_scenario()
|
||||
profile_data = setup_params_general_dual_band["ssid_modes"]["wpa2_personal"][0]
|
||||
ssid_name = profile_data["ssid_name"]
|
||||
mode = "NAT"
|
||||
vlan = 1
|
||||
lf_tools.add_stations(band="2G", num_stations="max", dut=lf_tools.dut_name, ssid_name=ssid_name)
|
||||
lf_tools.add_stations(band="5G", num_stations="max", dut=lf_tools.dut_name, ssid_name=ssid_name)
|
||||
lf_tools.add_stations(band="ax", num_stations="max", dut=lf_tools.dut_name, ssid_name=ssid_name)
|
||||
max = int(get_apnos_max_clients[0])
|
||||
lf_tools.add_stations(band="2G", num_stations=max, dut=lf_tools.dut_name, ssid_name=ssid_name)
|
||||
lf_tools.add_stations(band="5G", num_stations=max, dut=lf_tools.dut_name, ssid_name=ssid_name)
|
||||
# lf_tools.add_stations(band="ax", num_stations="max", dut=lf_tools.dut_name, ssid_name=ssid_name)
|
||||
lf_tools.Chamber_View()
|
||||
influx_tags = ["udp", "bidirectional", "2.4G-5G Combined"]
|
||||
wct_obj = lf_test.wifi_capacity(instance_name="test_client_wpa2_NAT_udp_bi", mode=mode, vlan_id=vlan,
|
||||
download_rate="1Gbps",
|
||||
download_rate="1Gbps", batch_size="1,5,10,20,40,64,128,256",
|
||||
influx_tags=influx_tags,
|
||||
upload_rate="1Gbps", protocol="UDP-IPv4", duration="60000")
|
||||
|
||||
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
|
||||
|
||||
@allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-7127", name="WIFI-7127")
|
||||
@pytest.mark.tcp_upload
|
||||
def test_client_wpa2_bridge_tcp_ul(self, lf_tools, get_apnos_max_clients,
|
||||
lf_test, station_names_twog, create_lanforge_chamberview_dut,
|
||||
get_configuration):
|
||||
""" Wifi Capacity Test NAT mode
|
||||
pytest -m "wifi_capacity_test and NAT and wpa2_personal and twog"
|
||||
"""
|
||||
lf_tools.reset_scenario()
|
||||
profile_data = setup_params_general_dual_band["ssid_modes"]["wpa2_personal"][0]
|
||||
ssid_name = profile_data["ssid_name"]
|
||||
mode = "NAT"
|
||||
vlan = 1
|
||||
max = int(get_apnos_max_clients[0])
|
||||
lf_tools.add_stations(band="2G", num_stations=max, dut=lf_tools.dut_name, ssid_name=ssid_name)
|
||||
lf_tools.add_stations(band="5G", num_stations=max, dut=lf_tools.dut_name, ssid_name=ssid_name)
|
||||
# lf_tools.add_stations(band="ax", num_stations="max", dut=lf_tools.dut_name, ssid_name=ssid_name)
|
||||
lf_tools.Chamber_View()
|
||||
influx_tags = ["tcp", "download", "2.4G-5G Combined"]
|
||||
wct_obj = lf_test.wifi_capacity(instance_name="test_client_wpa2_NAT_tcp_ul", mode=mode, vlan_id=vlan,
|
||||
download_rate="0", batch_size="1,5,10,20,40,64,128,256",
|
||||
influx_tags=influx_tags,
|
||||
upload_rate="1Gbps", protocol="TCP-IPv4", duration="60000")
|
||||
|
||||
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
|
||||
|
||||
@allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-7128", name="WIFI-7128")
|
||||
@pytest.mark.udp_upload
|
||||
def test_client_wpa2_bridge_udp_ul(self, lf_tools, get_apnos_max_clients,
|
||||
lf_test, station_names_twog, create_lanforge_chamberview_dut,
|
||||
get_configuration):
|
||||
""" Wifi Capacity Test NAT mode
|
||||
pytest -m "wifi_capacity_test and NAT and wpa2_personal and twog"
|
||||
"""
|
||||
lf_tools.reset_scenario()
|
||||
profile_data = setup_params_general_dual_band["ssid_modes"]["wpa2_personal"][0]
|
||||
ssid_name = profile_data["ssid_name"]
|
||||
mode = "NAT"
|
||||
vlan = 1
|
||||
max = int(get_apnos_max_clients[0])
|
||||
lf_tools.add_stations(band="2G", num_stations=max, dut=lf_tools.dut_name, ssid_name=ssid_name)
|
||||
lf_tools.add_stations(band="5G", num_stations=max, dut=lf_tools.dut_name, ssid_name=ssid_name)
|
||||
# lf_tools.add_stations(band="ax", num_stations="max", dut=lf_tools.dut_name, ssid_name=ssid_name)
|
||||
lf_tools.Chamber_View()
|
||||
influx_tags = ["udp", "download", "2.4G-5G Combined"]
|
||||
wct_obj = lf_test.wifi_capacity(instance_name="test_client_wpa2_NAT_udp_ul", mode=mode, vlan_id=vlan,
|
||||
download_rate="0", batch_size="1,5,10,20,40,64,128,256",
|
||||
influx_tags=influx_tags,
|
||||
upload_rate="1Gbps", protocol="UDP-IPv4", duration="60000")
|
||||
|
||||
report_name = wct_obj.report_name[0]['LAST']["response"].split(":::")[1].split("/")[-1]
|
||||
@@ -157,7 +239,7 @@ setup_params_general_2G = {
|
||||
}
|
||||
|
||||
|
||||
@allure.feature("NAT MODE CLIENT CONNECTIVITY")
|
||||
@allure.feature("NAT MODE Wifi Capacity")
|
||||
@pytest.mark.parametrize(
|
||||
'setup_profiles',
|
||||
[setup_params_general_2G],
|
||||
@@ -172,9 +254,10 @@ class TestWifiCapacityNATMode2G(object):
|
||||
""" Wifi Capacity Test NAT mode
|
||||
pytest -m "wifi_capacity_test and NAT"
|
||||
"""
|
||||
|
||||
@allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-3928", name="WIFI-3928")
|
||||
@pytest.mark.tcp_download
|
||||
def test_client_wpa2_NAT_tcp_dl(self, get_vif_state, lf_tools, setup_profiles,
|
||||
def test_client_wpa2_NAT_tcp_dl(self, lf_tools, get_apnos_max_clients,
|
||||
lf_test, station_names_twog, create_lanforge_chamberview_dut,
|
||||
get_configuration):
|
||||
""" Wifi Capacity Test NAT mode
|
||||
@@ -184,11 +267,14 @@ class TestWifiCapacityNATMode2G(object):
|
||||
ssid_name = profile_data["ssid_name"]
|
||||
mode = "NAT"
|
||||
vlan = 1
|
||||
lf_tools.add_stations(band="2G", num_stations="max", dut=lf_tools.dut_name, ssid_name=ssid_name)
|
||||
lf_tools.add_stations(band="ax", num_stations="max", dut=lf_tools.dut_name, ssid_name=ssid_name)
|
||||
max = int(get_apnos_max_clients[0])
|
||||
lf_tools.add_stations(band="2G", num_stations=max, dut=lf_tools.dut_name, ssid_name=ssid_name)
|
||||
lf_tools.add_stations(band="5G", num_stations=max, dut=lf_tools.dut_name, ssid_name=ssid_name)
|
||||
# lf_tools.add_stations(band="ax", num_stations="max", dut=lf_tools.dut_name, ssid_name=ssid_name)
|
||||
lf_tools.Chamber_View()
|
||||
influx_tags = ["tcp", "download", "2.4G"]
|
||||
wct_obj = lf_test.wifi_capacity(instance_name="test_client_wpa2_NAT_tcp_dl", mode=mode, vlan_id=vlan,
|
||||
download_rate="1Gbps",
|
||||
download_rate="1Gbps", influx_tags=influx_tags,
|
||||
upload_rate="0", protocol="TCP-IPv4", duration="60000")
|
||||
|
||||
report_name = wct_obj.report_name[0]['LAST']["response"].split(":::")[1].split("/")[-1]
|
||||
@@ -199,7 +285,7 @@ class TestWifiCapacityNATMode2G(object):
|
||||
|
||||
@allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-3930", name="WIFI-3930")
|
||||
@pytest.mark.udp_download
|
||||
def test_client_wpa2_NAT_udp_dl(self, get_vif_state, lf_tools,
|
||||
def test_client_wpa2_NAT_udp_dl(self, lf_tools, get_apnos_max_clients,
|
||||
lf_test, station_names_twog, create_lanforge_chamberview_dut,
|
||||
get_configuration):
|
||||
""" Wifi Capacity Test NAT mode
|
||||
@@ -209,11 +295,14 @@ class TestWifiCapacityNATMode2G(object):
|
||||
ssid_name = profile_data["ssid_name"]
|
||||
mode = "NAT"
|
||||
vlan = 1
|
||||
lf_tools.add_stations(band="2G", num_stations="max", dut=lf_tools.dut_name, ssid_name=ssid_name)
|
||||
lf_tools.add_stations(band="ax", num_stations="max", dut=lf_tools.dut_name, ssid_name=ssid_name)
|
||||
max = int(get_apnos_max_clients[0])
|
||||
lf_tools.add_stations(band="2G", num_stations=max, dut=lf_tools.dut_name, ssid_name=ssid_name)
|
||||
# lf_tools.add_stations(band="5G", num_stations=max, dut=lf_tools.dut_name, ssid_name=ssid_name)
|
||||
# lf_tools.add_stations(band="ax", num_stations="max", dut=lf_tools.dut_name, ssid_name=ssid_name)
|
||||
lf_tools.Chamber_View()
|
||||
influx_tags = ["udp", "download", "2.4G"]
|
||||
wct_obj = lf_test.wifi_capacity(instance_name="test_client_wpa2_NAT_udp_dl", mode=mode, vlan_id=vlan,
|
||||
download_rate="1Gbps",
|
||||
download_rate="1Gbps", influx_tags=influx_tags,
|
||||
upload_rate="0", protocol="UDP-IPv4", duration="60000")
|
||||
|
||||
report_name = wct_obj.report_name[0]['LAST']["response"].split(":::")[1].split("/")[-1]
|
||||
@@ -224,7 +313,7 @@ class TestWifiCapacityNATMode2G(object):
|
||||
|
||||
@allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-3934", name="WIFI-3934")
|
||||
@pytest.mark.tcp_bidirectional
|
||||
def test_client_wpa2_NAT_tcp_bidirectional(self, get_vif_state, lf_tools,
|
||||
def test_client_wpa2_NAT_tcp_bidirectional(self, lf_tools, get_apnos_max_clients,
|
||||
lf_test, station_names_twog, create_lanforge_chamberview_dut,
|
||||
get_configuration):
|
||||
""" Wifi Capacity Test NAT mode
|
||||
@@ -234,11 +323,14 @@ class TestWifiCapacityNATMode2G(object):
|
||||
ssid_name = profile_data["ssid_name"]
|
||||
mode = "NAT"
|
||||
vlan = 1
|
||||
lf_tools.add_stations(band="2G", num_stations="max", dut=lf_tools.dut_name, ssid_name=ssid_name)
|
||||
lf_tools.add_stations(band="ax", num_stations="max", dut=lf_tools.dut_name, ssid_name=ssid_name)
|
||||
max = int(get_apnos_max_clients[0])
|
||||
lf_tools.add_stations(band="2G", num_stations=max, dut=lf_tools.dut_name, ssid_name=ssid_name)
|
||||
# lf_tools.add_stations(band="5G", num_stations=max, dut=lf_tools.dut_name, ssid_name=ssid_name)
|
||||
# lf_tools.add_stations(band="ax", num_stations="max", dut=lf_tools.dut_name, ssid_name=ssid_name)
|
||||
lf_tools.Chamber_View()
|
||||
influx_tags = ["udp", "bidirectional", "2.4G"]
|
||||
wct_obj = lf_test.wifi_capacity(instance_name="test_client_wpa2_NAT_tcp_bi", mode=mode, vlan_id=vlan,
|
||||
download_rate="1Gbps",
|
||||
download_rate="1Gbps", influx_tags=influx_tags,
|
||||
upload_rate="1Gbps", protocol="TCP-IPv4", duration="60000")
|
||||
|
||||
report_name = wct_obj.report_name[0]['LAST']["response"].split(":::")[1].split("/")[-1]
|
||||
@@ -249,7 +341,7 @@ class TestWifiCapacityNATMode2G(object):
|
||||
|
||||
@allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-3935", name="WIFI-3935")
|
||||
@pytest.mark.udp_bidirectional
|
||||
def test_client_wpa2_NAT_udp_bidirectional(self, get_vif_state, lf_tools,
|
||||
def test_client_wpa2_NAT_udp_bidirectional(self, lf_tools, get_apnos_max_clients,
|
||||
lf_test, station_names_twog, create_lanforge_chamberview_dut,
|
||||
get_configuration):
|
||||
""" Wifi Capacity Test NAT mode
|
||||
@@ -259,11 +351,74 @@ class TestWifiCapacityNATMode2G(object):
|
||||
ssid_name = profile_data["ssid_name"]
|
||||
mode = "NAT"
|
||||
vlan = 1
|
||||
lf_tools.add_stations(band="2G", num_stations="max", dut=lf_tools.dut_name, ssid_name=ssid_name)
|
||||
lf_tools.add_stations(band="ax", num_stations="max", dut=lf_tools.dut_name, ssid_name=ssid_name)
|
||||
max = int(get_apnos_max_clients[0])
|
||||
lf_tools.add_stations(band="2G", num_stations=max, dut=lf_tools.dut_name, ssid_name=ssid_name)
|
||||
# lf_tools.add_stations(band="5G", num_stations=max, dut=lf_tools.dut_name, ssid_name=ssid_name)
|
||||
# lf_tools.add_stations(band="ax", num_stations="max", dut=lf_tools.dut_name, ssid_name=ssid_name)
|
||||
lf_tools.Chamber_View()
|
||||
influx_tags = ["tcp", "bidirectional", "2.4G"]
|
||||
wct_obj = lf_test.wifi_capacity(instance_name="test_client_wpa2_NAT_udp_bi", mode=mode, vlan_id=vlan,
|
||||
download_rate="1Gbps",
|
||||
download_rate="1Gbps", influx_tags=influx_tags,
|
||||
upload_rate="1Gbps", protocol="UDP-IPv4", duration="60000")
|
||||
|
||||
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
|
||||
|
||||
@allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-7127", name="WIFI-7127")
|
||||
@pytest.mark.tcp_upload
|
||||
def test_client_wpa2_bridge_tcp_ul(self, lf_tools, get_apnos_max_clients,
|
||||
lf_test, station_names_twog, create_lanforge_chamberview_dut,
|
||||
get_configuration):
|
||||
""" Wifi Capacity Test NAT mode
|
||||
pytest -m "wifi_capacity_test and NAT and wpa2_personal and twog"
|
||||
"""
|
||||
lf_tools.reset_scenario()
|
||||
profile_data = setup_params_general_dual_band["ssid_modes"]["wpa2_personal"][0]
|
||||
ssid_name = profile_data["ssid_name"]
|
||||
mode = "NAT"
|
||||
vlan = 1
|
||||
max = int(get_apnos_max_clients[0])
|
||||
lf_tools.add_stations(band="2G", num_stations=max, dut=lf_tools.dut_name, ssid_name=ssid_name)
|
||||
# lf_tools.add_stations(band="5G", num_stations=max, dut=lf_tools.dut_name, ssid_name=ssid_name)
|
||||
# lf_tools.add_stations(band="ax", num_stations="max", dut=lf_tools.dut_name, ssid_name=ssid_name)
|
||||
lf_tools.Chamber_View()
|
||||
influx_tags = ["tcp", "upload", "2.4G"]
|
||||
wct_obj = lf_test.wifi_capacity(instance_name="test_client_wpa2_NAT_tcp_ul", mode=mode, vlan_id=vlan,
|
||||
download_rate="0", batch_size="1,5,10,20,40,64,128,256",
|
||||
influx_tags=influx_tags,
|
||||
upload_rate="1Gbps", protocol="TCP-IPv4", duration="60000")
|
||||
|
||||
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
|
||||
|
||||
@allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-7128", name="WIFI-7128")
|
||||
@pytest.mark.udp_upload
|
||||
def test_client_wpa2_bridge_udp_ul(self, lf_tools, get_apnos_max_clients,
|
||||
lf_test, station_names_twog, create_lanforge_chamberview_dut,
|
||||
get_configuration):
|
||||
""" Wifi Capacity Test NAT mode
|
||||
pytest -m "wifi_capacity_test and NAT and wpa2_personal and twog"
|
||||
"""
|
||||
lf_tools.reset_scenario()
|
||||
profile_data = setup_params_general_dual_band["ssid_modes"]["wpa2_personal"][0]
|
||||
ssid_name = profile_data["ssid_name"]
|
||||
mode = "NAT"
|
||||
vlan = 1
|
||||
max = int(get_apnos_max_clients[0])
|
||||
lf_tools.add_stations(band="2G", num_stations=max, dut=lf_tools.dut_name, ssid_name=ssid_name)
|
||||
# lf_tools.add_stations(band="5G", num_stations=max, dut=lf_tools.dut_name, ssid_name=ssid_name)
|
||||
# lf_tools.add_stations(band="ax", num_stations="max", dut=lf_tools.dut_name, ssid_name=ssid_name)
|
||||
lf_tools.Chamber_View()
|
||||
influx_tags = ["udp", "upload", "2.4G"]
|
||||
wct_obj = lf_test.wifi_capacity(instance_name="test_client_wpa2_NAT_udp_ul", mode=mode, vlan_id=vlan,
|
||||
download_rate="0", batch_size="1,5,10,20,40,64,128,256",
|
||||
influx_tags=influx_tags,
|
||||
upload_rate="1Gbps", protocol="UDP-IPv4", duration="60000")
|
||||
|
||||
report_name = wct_obj.report_name[0]['LAST']["response"].split(":::")[1].split("/")[-1]
|
||||
@@ -300,9 +455,10 @@ class TestWifiCapacityNATMode5G(object):
|
||||
""" Wifi Capacity Test NAT mode
|
||||
pytest -m "wifi_capacity_test and NAT"
|
||||
"""
|
||||
|
||||
@allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-3929", name="WIFI-3929")
|
||||
@pytest.mark.tcp_download
|
||||
def test_client_wpa2_NAT_tcp_dl(self, get_vif_state, lf_tools, setup_profiles,
|
||||
def test_client_wpa2_NAT_tcp_dl(self, lf_tools, get_apnos_max_clients,
|
||||
lf_test, station_names_twog, create_lanforge_chamberview_dut,
|
||||
get_configuration):
|
||||
""" Wifi Capacity Test NAT mode
|
||||
@@ -312,8 +468,8 @@ class TestWifiCapacityNATMode5G(object):
|
||||
ssid_name = profile_data["ssid_name"]
|
||||
mode = "NAT"
|
||||
vlan = 1
|
||||
lf_tools.add_stations(band="2G", num_stations="max", dut=lf_tools.dut_name, ssid_name=ssid_name)
|
||||
lf_tools.add_stations(band="5G", num_stations="max", dut=lf_tools.dut_name, ssid_name=ssid_name)
|
||||
lf_tools.add_stations(band="ax", num_stations="max", dut=lf_tools.dut_name, ssid_name=ssid_name)
|
||||
lf_tools.Chamber_View()
|
||||
wct_obj = lf_test.wifi_capacity(instance_name="test_client_wpa2_NAT_tcp_dl", mode=mode, vlan_id=vlan,
|
||||
download_rate="1Gbps",
|
||||
@@ -327,7 +483,7 @@ class TestWifiCapacityNATMode5G(object):
|
||||
|
||||
@allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-3931", name="WIFI-3931")
|
||||
@pytest.mark.udp_download
|
||||
def test_client_wpa2_NAT_udp_dl(self, get_vif_state, lf_tools,
|
||||
def test_client_wpa2_NAT_udp_dl(self, lf_tools,
|
||||
lf_test, station_names_twog, create_lanforge_chamberview_dut,
|
||||
get_configuration):
|
||||
""" Wifi Capacity Test NAT mode
|
||||
@@ -337,8 +493,8 @@ class TestWifiCapacityNATMode5G(object):
|
||||
ssid_name = profile_data["ssid_name"]
|
||||
mode = "NAT"
|
||||
vlan = 1
|
||||
lf_tools.add_stations(band="2G", num_stations="max", dut=lf_tools.dut_name, ssid_name=ssid_name)
|
||||
lf_tools.add_stations(band="5G", num_stations="max", dut=lf_tools.dut_name, ssid_name=ssid_name)
|
||||
lf_tools.add_stations(band="ax", num_stations="max", dut=lf_tools.dut_name, ssid_name=ssid_name)
|
||||
lf_tools.Chamber_View()
|
||||
wct_obj = lf_test.wifi_capacity(instance_name="test_client_wpa2_NAT_udp_dl", mode=mode, vlan_id=vlan,
|
||||
download_rate="1Gbps",
|
||||
@@ -352,7 +508,7 @@ class TestWifiCapacityNATMode5G(object):
|
||||
|
||||
@allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-3936", name="WIFI-3936")
|
||||
@pytest.mark.tcp_bidirectional
|
||||
def test_client_wpa2_NAT_tcp_bidirectional(self, get_vif_state, lf_tools,
|
||||
def test_client_wpa2_NAT_tcp_bidirectional(self, lf_tools,
|
||||
lf_test, station_names_twog, create_lanforge_chamberview_dut,
|
||||
get_configuration):
|
||||
""" Wifi Capacity Test NAT mode
|
||||
@@ -362,8 +518,8 @@ class TestWifiCapacityNATMode5G(object):
|
||||
ssid_name = profile_data["ssid_name"]
|
||||
mode = "NAT"
|
||||
vlan = 1
|
||||
lf_tools.add_stations(band="2G", num_stations="max", dut=lf_tools.dut_name, ssid_name=ssid_name)
|
||||
lf_tools.add_stations(band="5G", num_stations="max", dut=lf_tools.dut_name, ssid_name=ssid_name)
|
||||
lf_tools.add_stations(band="ax", num_stations="max", dut=lf_tools.dut_name, ssid_name=ssid_name)
|
||||
lf_tools.Chamber_View()
|
||||
wct_obj = lf_test.wifi_capacity(instance_name="test_client_wpa2_NAT_tcp_bi", mode=mode, vlan_id=vlan,
|
||||
download_rate="1Gbps",
|
||||
@@ -377,7 +533,7 @@ class TestWifiCapacityNATMode5G(object):
|
||||
|
||||
@allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-3937", name="WIFI-3937")
|
||||
@pytest.mark.udp_bidirectional
|
||||
def test_client_wpa2_NAT_udp_bidirectional(self, get_vif_state, lf_tools,
|
||||
def test_client_wpa2_NAT_udp_bidirectional(self, lf_tools,
|
||||
lf_test, station_names_twog, create_lanforge_chamberview_dut,
|
||||
get_configuration):
|
||||
""" Wifi Capacity Test NAT mode
|
||||
@@ -387,8 +543,8 @@ class TestWifiCapacityNATMode5G(object):
|
||||
ssid_name = profile_data["ssid_name"]
|
||||
mode = "NAT"
|
||||
vlan = 1
|
||||
lf_tools.add_stations(band="2G", num_stations="max", dut=lf_tools.dut_name, ssid_name=ssid_name)
|
||||
lf_tools.add_stations(band="5G", num_stations="max", dut=lf_tools.dut_name, ssid_name=ssid_name)
|
||||
lf_tools.add_stations(band="ax", num_stations="max", dut=lf_tools.dut_name, ssid_name=ssid_name)
|
||||
lf_tools.Chamber_View()
|
||||
wct_obj = lf_test.wifi_capacity(instance_name="test_client_wpa2_NAT_udp_bi", mode=mode, vlan_id=vlan,
|
||||
download_rate="1Gbps",
|
||||
|
||||
@@ -45,7 +45,7 @@ class TestWifiCapacityBRIDGEModeDualBand(object):
|
||||
@allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-3687", name="WIFI-3687")
|
||||
@pytest.mark.wpa_personal
|
||||
@pytest.mark.tcp_download
|
||||
def test_client_wpa_bridge_tcp_dl(self, get_vif_state, lf_tools, setup_profiles,
|
||||
def test_client_wpa_bridge_tcp_dl(self, lf_tools, setup_profiles,
|
||||
lf_test, station_names_twog, create_lanforge_chamberview_dut,
|
||||
get_configuration):
|
||||
""" Wifi Capacity Test BRIDGE mode
|
||||
@@ -56,10 +56,6 @@ class TestWifiCapacityBRIDGEModeDualBand(object):
|
||||
ssid_name = profile_data["ssid_name"]
|
||||
mode = "BRIDGE"
|
||||
vlan = 1
|
||||
get_vif_state.append(ssid_name)
|
||||
if ssid_name not in get_vif_state:
|
||||
allure.attach(name="retest,vif state ssid not available:", body=str(get_vif_state))
|
||||
pytest.xfail("SSID NOT AVAILABLE IN VIF STATE")
|
||||
lf_tools.add_stations(band="2G", num_stations="max", dut=lf_tools.dut_name, ssid_name=ssid_name)
|
||||
lf_tools.add_stations(band="5G", num_stations="max", dut=lf_tools.dut_name, ssid_name=ssid_name)
|
||||
# lf_tools.add_stations(band="ax", num_stations="max", dut=lf_tools.dut_name, ssid_name=ssid_name)
|
||||
|
||||
@@ -33,7 +33,7 @@ class TestNATModeEnterpriseTTLSSuiteOne(object):
|
||||
|
||||
@pytest.mark.wpa_enterprise
|
||||
@pytest.mark.twog
|
||||
def test_wpa_enterprise_2g(self, get_vif_state, get_ap_logs, get_lf_logs,
|
||||
def test_wpa_enterprise_2g(self, get_ap_logs, get_lf_logs,
|
||||
station_names_twog, setup_profiles, lf_test, update_report,
|
||||
test_cases, radius_info, exit_on_fail):
|
||||
profile_data = setup_params_enterprise["ssid_modes"]["wpa_enterprise"][0]
|
||||
@@ -46,9 +46,6 @@ class TestNATModeEnterpriseTTLSSuiteOne(object):
|
||||
ttls_passwd = radius_info["password"]
|
||||
eap = "TTLS"
|
||||
identity = radius_info['user']
|
||||
if ssid_name not in get_vif_state:
|
||||
allure.attach(name="retest,vif state ssid not available:", body=str(get_vif_state))
|
||||
pytest.xfail("SSID NOT AVAILABLE IN VIF STATE")
|
||||
passes = lf_test.EAP_Connect(ssid=ssid_name, security=security, extra_securities=extra_secu,
|
||||
mode=mode, band=band,
|
||||
eap=eap, ttls_passwd=ttls_passwd, identity=identity,
|
||||
@@ -58,7 +55,7 @@ class TestNATModeEnterpriseTTLSSuiteOne(object):
|
||||
|
||||
@pytest.mark.wpa_enterprise
|
||||
@pytest.mark.fiveg
|
||||
def test_wpa_enterprise_5g(self, get_vif_state, get_ap_logs, get_lf_logs,
|
||||
def test_wpa_enterprise_5g(self, get_ap_logs, get_lf_logs,
|
||||
station_names_fiveg, setup_profiles, lf_test, update_report,
|
||||
test_cases, radius_info, exit_on_fail):
|
||||
profile_data = setup_params_enterprise["ssid_modes"]["wpa_enterprise"][1]
|
||||
@@ -71,9 +68,6 @@ class TestNATModeEnterpriseTTLSSuiteOne(object):
|
||||
ttls_passwd = radius_info["password"]
|
||||
eap = "TTLS"
|
||||
identity = radius_info['user']
|
||||
if ssid_name not in get_vif_state:
|
||||
allure.attach(name="retest,vif state ssid not available:", body=str(get_vif_state))
|
||||
pytest.xfail("SSID NOT AVAILABLE IN VIF STATE")
|
||||
passes = lf_test.EAP_Connect(ssid=ssid_name, security=security, extra_securities=extra_secu,
|
||||
mode=mode, band=band,
|
||||
eap=eap, ttls_passwd=ttls_passwd, identity=identity,
|
||||
@@ -84,7 +78,7 @@ class TestNATModeEnterpriseTTLSSuiteOne(object):
|
||||
@pytest.mark.sanity_light
|
||||
@pytest.mark.wpa2_enterprise
|
||||
@pytest.mark.twog
|
||||
def test_wpa2_enterprise_2g(self, get_vif_state, get_ap_logs, get_lf_logs,
|
||||
def test_wpa2_enterprise_2g(self, get_ap_logs, get_lf_logs,
|
||||
station_names_twog, setup_profiles, lf_test, update_report,
|
||||
test_cases, radius_info, exit_on_fail):
|
||||
profile_data = setup_params_enterprise["ssid_modes"]["wpa2_enterprise"][0]
|
||||
@@ -96,10 +90,6 @@ class TestNATModeEnterpriseTTLSSuiteOne(object):
|
||||
ttls_passwd = radius_info["password"]
|
||||
eap = "TTLS"
|
||||
identity = radius_info['user']
|
||||
get_vif_state.append(ssid_name)
|
||||
if ssid_name not in get_vif_state:
|
||||
allure.attach(name="retest,vif state ssid not available:", body=str(get_vif_state))
|
||||
pytest.xfail("SSID NOT AVAILABLE IN VIF STATE")
|
||||
passes = lf_test.EAP_Connect(ssid=ssid_name, security=security,
|
||||
mode=mode, band=band,
|
||||
eap=eap, ttls_passwd=ttls_passwd, identity=identity,
|
||||
@@ -110,7 +100,7 @@ class TestNATModeEnterpriseTTLSSuiteOne(object):
|
||||
@pytest.mark.sanity_light
|
||||
@pytest.mark.wpa2_enterprise
|
||||
@pytest.mark.fiveg
|
||||
def test_wpa2_enterprise_5g(self, get_vif_state, get_ap_logs, get_lf_logs,
|
||||
def test_wpa2_enterprise_5g(self, get_ap_logs, get_lf_logs,
|
||||
station_names_fiveg, setup_profiles, lf_test, update_report,
|
||||
test_cases, radius_info, exit_on_fail):
|
||||
profile_data = setup_params_enterprise["ssid_modes"]["wpa2_enterprise"][1]
|
||||
@@ -122,10 +112,6 @@ class TestNATModeEnterpriseTTLSSuiteOne(object):
|
||||
ttls_passwd = radius_info["password"]
|
||||
eap = "TTLS"
|
||||
identity = radius_info['user']
|
||||
get_vif_state.append(ssid_name)
|
||||
if ssid_name not in get_vif_state:
|
||||
allure.attach(name="retest,vif state ssid not available:", body=str(get_vif_state))
|
||||
pytest.xfail("SSID NOT AVAILABLE IN VIF STATE")
|
||||
passes = lf_test.EAP_Connect(ssid=ssid_name, security=security,
|
||||
mode=mode, band=band,
|
||||
eap=eap, ttls_passwd=ttls_passwd, identity=identity,
|
||||
|
||||
@@ -7,6 +7,7 @@ log_date_format = %Y-%m-%d %H:%M:%S
|
||||
;norecursedirs=out build
|
||||
num_stations=1
|
||||
|
||||
|
||||
# Cloud SDK settings
|
||||
sdk-customer-id=2
|
||||
|
||||
|
||||
Reference in New Issue
Block a user