mirror of
https://github.com/Telecominfraproject/wlan-testing.git
synced 2025-11-02 03:48:09 +00:00
Added Bridge mode tests for client connectivity
Signed-off-by: shivam <shivam.thakur@candelatech.com>
This commit is contained in:
@@ -8,7 +8,6 @@ RUN echo "index-url = https://pypi.org/simple" >> ~/.pip/pip.conf
|
||||
RUN echo "extra-index-url = https://tip.jfrog.io/artifactory/api/pypi/tip-wlan-python-pypi-local/simple/" >> ~/.pip/pip.conf
|
||||
COPY requirements.txt requirements.txt
|
||||
RUN pip3 install -r requirements.txt
|
||||
COPY lanforge /wlan-testing/lanforge
|
||||
COPY tests /wlan-testing/tests
|
||||
COPY libs /wlan-testing/libs
|
||||
WORKDIR /wlan-testing
|
||||
|
||||
@@ -343,7 +343,7 @@ class APLIBS:
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
basic_1 = {
|
||||
basic_05 = {
|
||||
"target": "tip_2x",
|
||||
"controller": {
|
||||
"url": "https://sec-qa01.cicd.lab.wlan.tip.build:16001",
|
||||
@@ -351,17 +351,33 @@ if __name__ == '__main__':
|
||||
"password": "OpenWifi%123"
|
||||
},
|
||||
"device_under_tests": [{
|
||||
"model": "edgecore_eap101",
|
||||
"model": "cig_wf188n",
|
||||
"supported_bands": ["2G", "5G"],
|
||||
"supported_modes": ["BRIDGE", "NAT", "VLAN"],
|
||||
"wan_port": "1.1.eth2",
|
||||
"ssid": {
|
||||
"mode": "BRIDGE",
|
||||
"2g-ssid": "OpenWifi",
|
||||
"5g-ssid": "OpenWifi",
|
||||
"6g-ssid": "OpenWifi",
|
||||
"2g-password": "OpenWifi",
|
||||
"5g-password": "OpenWifi",
|
||||
"6g-password": "OpenWifi",
|
||||
"2g-encryption": "WPA2",
|
||||
"5g-encryption": "WPA2",
|
||||
"6g-encryption": "WPA3",
|
||||
"2g-bssid": "68:7d:b4:5f:5c:31",
|
||||
"5g-bssid": "68:7d:b4:5f:5c:3c",
|
||||
"6g-bssid": "68:7d:b4:5f:5c:38"
|
||||
},
|
||||
"mode": "wifi6",
|
||||
"identifier": "903cb36c44f0",
|
||||
"identifier": "0000c1018812",
|
||||
"method": "serial",
|
||||
"host_ip": "192.168.200.101",
|
||||
"host_ip": "10.28.3.103",
|
||||
"host_username": "lanforge",
|
||||
"host_password": "Endurance@123",
|
||||
"host_password": "pumpkin77",
|
||||
"host_ssh_port": 22,
|
||||
"serial_tty": "/dev/ttyUSB0",
|
||||
"serial_tty": "/dev/ttyAP1",
|
||||
"firmware_version": "next-latest"
|
||||
}],
|
||||
"traffic_generator": {
|
||||
@@ -378,22 +394,46 @@ if __name__ == '__main__':
|
||||
"lease-first": 10,
|
||||
"lease-count": 10000,
|
||||
"lease-time": "6h"
|
||||
}}
|
||||
}
|
||||
}
|
||||
},
|
||||
"lan_ports": {
|
||||
|
||||
"1.1.eth1": {"addressing": "dynamic"}
|
||||
},
|
||||
"uplink_nat_ports": {
|
||||
"1.1.eth1": {"addressing": "static", "subnet": "10.28.2.16/24", "gateway_ip": "10.28.2.1"}
|
||||
"1.1.eth1": {"addressing": "static",
|
||||
"subnet": "10.28.2.16/24",
|
||||
"gateway_ip": "10.28.2.1",
|
||||
"ip_mask": "255.255.255.0"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
logging.basicConfig(format='%(asctime)s - %(message)s', level=logging.NOTSET)
|
||||
obj = APLIBS(dut_data=basic_1["device_under_tests"])
|
||||
obj = APLIBS(dut_data=basic_05["device_under_tests"])
|
||||
# obj.exit_from_uboot()
|
||||
obj.setup_serial_environment()
|
||||
# obj.run_generic_command("uci show ucentral")
|
||||
# obj.setup_serial_environment()
|
||||
d = obj.run_generic_command("iw dev | grep channel")
|
||||
d = d.replace("\n", "").replace("\t", "").replace(" ", "").split("channel")
|
||||
d.pop(0)
|
||||
data = dict.fromkeys(["2G", "5G", "6G"])
|
||||
for i in d:
|
||||
channel = int(i.split("(")[0])
|
||||
bandwidth = int(i.split(":")[1].split("MHz")[0])
|
||||
center_freq = int(i.split(":")[-1].replace("MHz", ""))
|
||||
if 2401 < center_freq < 2495:
|
||||
data["2G"] = [channel, bandwidth, center_freq]
|
||||
elif center_freq in [5955, 5975, 5995] and channel <= 9:
|
||||
data["6G"] = [channel, bandwidth, center_freq]
|
||||
elif 5030 < center_freq < 5990:
|
||||
data["5G"] = [channel, bandwidth, center_freq]
|
||||
elif 5995 < center_freq < 7125:
|
||||
data["6G"] = [channel, bandwidth, center_freq]
|
||||
else:
|
||||
pass
|
||||
|
||||
print(data)
|
||||
# obj.verify_certificates()
|
||||
# obj.get_dut_logs()
|
||||
# l = obj.get_latest_config_recieved()
|
||||
|
||||
@@ -365,12 +365,59 @@ class tip_2x:
|
||||
"""
|
||||
return r_val
|
||||
|
||||
def get_dut_channel_data(self, idx):
|
||||
try:
|
||||
d = self.dut_library_object.run_generic_command(cmd="iw dev | grep channel", idx=idx)
|
||||
d = d.replace("\n", "").replace("\t", "").replace(" ", "").split("channel")
|
||||
d.pop(0)
|
||||
d = list(set(d))
|
||||
data = dict.fromkeys(["2G", "5G", "6G"])
|
||||
for i in d:
|
||||
channel = int(i.split("(")[0])
|
||||
bandwidth = int(i.split(":")[1].split("MHz")[0])
|
||||
center_freq = int(i.split(":")[-1].replace("MHz", ""))
|
||||
if 2401 < center_freq < 2495:
|
||||
data["2G"] = [channel, bandwidth, center_freq]
|
||||
elif center_freq in [5955, 5975, 5995] and channel <= 9:
|
||||
data["6G"] = [channel, bandwidth, center_freq]
|
||||
elif 5030 < center_freq < 5990:
|
||||
data["5G"] = [channel, bandwidth, center_freq]
|
||||
elif 5995 < center_freq < 7125:
|
||||
data["6G"] = [channel, bandwidth, center_freq]
|
||||
else:
|
||||
pass
|
||||
except Exception as e:
|
||||
logging.error("Exception in getting DUT Channel and bw data, Retrying again!")
|
||||
try:
|
||||
d = self.dut_library_object.run_generic_command(cmd="iw dev | grep channel", idx=idx)
|
||||
d = d.replace("\n", "").replace("\t", "").replace(" ", "").split("channel")
|
||||
d.pop(0)
|
||||
data = dict.fromkeys(["2G", "5G", "6G"])
|
||||
for i in d:
|
||||
channel = int(i.split("(")[0])
|
||||
bandwidth = int(i.split(":")[1].split("MHz")[0])
|
||||
center_freq = int(i.split(":")[-1].replace("MHz", ""))
|
||||
if 2401 < center_freq < 2495:
|
||||
data["2G"] = [channel, bandwidth, center_freq]
|
||||
elif center_freq in [5955, 5975, 5995] and channel <= 9:
|
||||
data["6G"] = [channel, bandwidth, center_freq]
|
||||
elif 5030 < center_freq < 5990:
|
||||
data["5G"] = [channel, bandwidth, center_freq]
|
||||
elif 5995 < center_freq < 7125:
|
||||
data["6G"] = [channel, bandwidth, center_freq]
|
||||
else:
|
||||
pass
|
||||
except Exception as e:
|
||||
logging.error("Exception in getting DUT Channel and bw data.")
|
||||
return data
|
||||
|
||||
def get_applied_ssid_info(self, profile_object=None, idx=0):
|
||||
if profile_object is None:
|
||||
logging.error("Profile object is None, Unable to fetch ssid info from AP")
|
||||
return None
|
||||
ssid_info_sdk = profile_object.get_ssid_info()
|
||||
ap_wifi_data = self.dut_library_object.get_iwinfo(idx=idx)
|
||||
channel_info = self.get_dut_channel_data(idx=idx)
|
||||
o = ap_wifi_data.split()
|
||||
iwinfo_bssid_data = {}
|
||||
for i in range(len(o)):
|
||||
@@ -384,6 +431,7 @@ class tip_2x:
|
||||
for q in ssid_info_sdk:
|
||||
if iwinfo_bssid_data[p][0] == q[0] and iwinfo_bssid_data[p][2] == q[3]:
|
||||
q.append(iwinfo_bssid_data[p][1])
|
||||
ssid_info_sdk.append(channel_info)
|
||||
return ssid_info_sdk
|
||||
|
||||
def get_dut_version(self):
|
||||
@@ -736,7 +784,7 @@ class tip_2x:
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
basic_1 = {
|
||||
basic_05 = {
|
||||
"target": "tip_2x",
|
||||
"controller": {
|
||||
"url": "https://sec-qa01.cicd.lab.wlan.tip.build:16001",
|
||||
@@ -744,26 +792,70 @@ if __name__ == '__main__':
|
||||
"password": "OpenWifi%123"
|
||||
},
|
||||
"device_under_tests": [{
|
||||
"model": "edgecore_eap101",
|
||||
"model": "cig_wf188n",
|
||||
"supported_bands": ["2G", "5G"],
|
||||
"supported_modes": ["BRIDGE", "NAT", "VLAN"],
|
||||
"wan_port": "1.1.eth2",
|
||||
"ssid": {
|
||||
"mode": "BRIDGE",
|
||||
"2g-ssid": "OpenWifi",
|
||||
"5g-ssid": "OpenWifi",
|
||||
"6g-ssid": "OpenWifi",
|
||||
"2g-password": "OpenWifi",
|
||||
"5g-password": "OpenWifi",
|
||||
"6g-password": "OpenWifi",
|
||||
"2g-encryption": "WPA2",
|
||||
"5g-encryption": "WPA2",
|
||||
"6g-encryption": "WPA3",
|
||||
"2g-bssid": "68:7d:b4:5f:5c:31",
|
||||
"5g-bssid": "68:7d:b4:5f:5c:3c",
|
||||
"6g-bssid": "68:7d:b4:5f:5c:38"
|
||||
},
|
||||
"mode": "wifi6",
|
||||
"identifier": "903cb36c44f0",
|
||||
"identifier": "0000c1018812",
|
||||
"method": "serial",
|
||||
"host_ip": "192.168.200.101",
|
||||
"host_ip": "10.28.3.103",
|
||||
"host_username": "lanforge",
|
||||
"host_password": "Endurance@123",
|
||||
"host_password": "pumpkin77",
|
||||
"host_ssh_port": 22,
|
||||
"serial_tty": "/dev/ttyUSB0",
|
||||
"serial_tty": "/dev/ttyAP1",
|
||||
"firmware_version": "next-latest"
|
||||
}],
|
||||
"traffic_generator": {}
|
||||
"traffic_generator": {
|
||||
"name": "lanforge",
|
||||
"testbed": "basic",
|
||||
"scenario": "dhcp-bridge",
|
||||
"details": {
|
||||
"manager_ip": "10.28.3.28",
|
||||
"http_port": 8080,
|
||||
"ssh_port": 22,
|
||||
"setup": {"method": "build", "DB": "Test_Scenario_Automation"},
|
||||
"wan_ports": {
|
||||
"1.1.eth2": {"addressing": "dhcp-server", "subnet": "172.16.0.1/16", "dhcp": {
|
||||
"lease-first": 10,
|
||||
"lease-count": 10000,
|
||||
"lease-time": "6h"
|
||||
}
|
||||
}
|
||||
},
|
||||
"lan_ports": {
|
||||
"1.1.eth1": {"addressing": "dynamic"}
|
||||
},
|
||||
"uplink_nat_ports": {
|
||||
"1.1.eth1": {"addressing": "static",
|
||||
"subnet": "10.28.2.16/24",
|
||||
"gateway_ip": "10.28.2.1",
|
||||
"ip_mask": "255.255.255.0"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
var = tip_2x(controller_data=basic_1["controller"],
|
||||
device_under_tests_info=basic_1["device_under_tests"],
|
||||
target=basic_1["target"])
|
||||
var = tip_2x(controller_data=basic_05["controller"],
|
||||
device_under_tests_info=basic_05["device_under_tests"],
|
||||
target=basic_05["target"])
|
||||
|
||||
var.setup_objects()
|
||||
# var.setup_objects()
|
||||
setup_params_general = {
|
||||
"mode": "BRIDGE",
|
||||
"ssid_modes": {
|
||||
@@ -780,6 +872,8 @@ if __name__ == '__main__':
|
||||
"radius": False
|
||||
}
|
||||
target = [['2G', 'wpa2_personal'], ['5G', 'wpa2_personal']]
|
||||
# var.setup_basic_configuration(configuration=setup_params_general, requested_combination=target)
|
||||
var.setup_firmware()
|
||||
var.teardown_objects()
|
||||
|
||||
d = var.setup_basic_configuration(configuration=setup_params_general, requested_combination=target)
|
||||
print(d)
|
||||
# var.setup_firmware()
|
||||
# var.teardown_objects()
|
||||
|
||||
@@ -13,6 +13,6 @@ def setup_configuration(request, get_markers, get_target_object):
|
||||
print(requested_combination)
|
||||
|
||||
# Method to setup the basic configuration
|
||||
status = get_target_object.setup_basic_configuration(configuration=configuration,
|
||||
data = get_target_object.setup_basic_configuration(configuration=configuration,
|
||||
requested_combination=requested_combination)
|
||||
yield status
|
||||
yield data
|
||||
|
||||
@@ -1,14 +1,14 @@
|
||||
"""
|
||||
|
||||
Client Connectivity and tcp-udp Traffic Test: Bridge Mode
|
||||
pytest -m "client_connectivity and bridge and general"
|
||||
Client Connectivity and tcp-udp Traffic Test: BRIDGE Mode
|
||||
pytest -m "client_connectivity and nat and general"
|
||||
|
||||
"""
|
||||
|
||||
import allure
|
||||
import pytest
|
||||
|
||||
pytestmark = [pytest.mark.ow_client_connectivity_lf, pytest.mark.bridge, pytest.mark.general]
|
||||
pytestmark = [pytest.mark.client_connectivity_tests, pytest.mark.nat, pytest.mark.general]
|
||||
|
||||
setup_params_general = {
|
||||
"mode": "BRIDGE",
|
||||
@@ -24,29 +24,30 @@ setup_params_general = {
|
||||
}
|
||||
|
||||
|
||||
@allure.suite(suite_name="OpenWifi Sanity LF")
|
||||
@allure.sub_suite(sub_suite_name="Bridge Mode Client Connectivity : Suite-A")
|
||||
@pytest.mark.suiteA
|
||||
@allure.feature("BRIDGE MODE CLIENT CONNECTIVITY")
|
||||
# @pytest.mark.parametrize(
|
||||
# 'setup_configuration',
|
||||
# [setup_params_general],
|
||||
# indirect=True,
|
||||
# scope="class"
|
||||
# )
|
||||
# @pytest.mark.usefixtures("setup_configuration")
|
||||
@allure.parent_suite("Client Connectivity Tests")
|
||||
@allure.suite(suite_name="BRIDGE Mode")
|
||||
@allure.sub_suite(sub_suite_name="General security mode Client Connectivity")
|
||||
@pytest.mark.parametrize(
|
||||
'setup_configuration',
|
||||
[setup_params_general],
|
||||
indirect=True,
|
||||
scope="class"
|
||||
)
|
||||
@pytest.mark.usefixtures("setup_configuration")
|
||||
class TestBridgeModeConnectivitySuiteA(object):
|
||||
""" Client Connectivity SuiteA
|
||||
pytest -m "client_connectivity and bridge and general and suiteA"
|
||||
pytest -m "client_connectivity and nat and general "
|
||||
"""
|
||||
|
||||
@pytest.mark.shivamt
|
||||
@pytest.mark.open
|
||||
@pytest.mark.twog
|
||||
@allure.title("Client Connectivity Test with open encryption 2.4 GHz Band")
|
||||
@allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-2809", name="JIRA LINK")
|
||||
def test_open_ssid_2g(self, get_lanforge_library):
|
||||
"""Client Connectivity open ssid 2.4G
|
||||
pytest -m "client_connectivity and bridge and general and open and twog"
|
||||
def test_bridge_open_2g_client_connectivity(self, get_test_library, setup_configuration):
|
||||
"""
|
||||
BRIDGE Mode Client Connectivity Test with open encryption 2.4 GHz Band
|
||||
pytest -m "client_connectivity and bridge and general and open and twog"
|
||||
"""
|
||||
profile_data = setup_params_general["ssid_modes"]["open"][0]
|
||||
ssid_name = profile_data["ssid_name"]
|
||||
@@ -55,162 +56,128 @@ class TestBridgeModeConnectivitySuiteA(object):
|
||||
mode = "BRIDGE"
|
||||
band = "twog"
|
||||
vlan = 1
|
||||
passes, result = get_lanforge_library.client_connectivity_test(ssid=ssid_name, security=security,
|
||||
passkey=security_key, mode=mode, band=band,
|
||||
num_sta=1, vlan_id=vlan, ssid_channel=1)
|
||||
|
||||
passes, result = get_test_library.client_connectivity_test(ssid=ssid_name, security=security,
|
||||
dut_data=setup_configuration,
|
||||
passkey=security_key, mode=mode, band=band,
|
||||
num_sta=1, vlan_id=vlan, ssid_channel=1)
|
||||
|
||||
assert passes == "PASS", result
|
||||
|
||||
@pytest.mark.open
|
||||
@pytest.mark.fiveg
|
||||
@allure.title("Client Connectivity Test with open encryption 5 GHz Band")
|
||||
@allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-2801", name="JIRA LINK")
|
||||
def test_bridge_open_5g_client_connectivity(self, get_test_library, setup_configuration):
|
||||
"""
|
||||
BRIDGE Mode Client Connectivity Test with open encryption 5 GHz Band
|
||||
pytest -m "client_connectivity and bridge and general and open and fiveg"
|
||||
"""
|
||||
profile_data = setup_params_general["ssid_modes"]["open"][1]
|
||||
ssid_name = profile_data["ssid_name"]
|
||||
security_key = "[BLANK]"
|
||||
security = "open"
|
||||
mode = "BRIDGE"
|
||||
band = "twog"
|
||||
vlan = 1
|
||||
passes, result = get_test_library.client_connectivity_test(ssid=ssid_name, security=security, dut_data=setup_configuration,
|
||||
passkey=security_key, mode=mode, band=band,
|
||||
num_sta=1, vlan_id=vlan, ssid_channel=1)
|
||||
|
||||
assert passes == "PASS", result
|
||||
|
||||
# @pytest.mark.open
|
||||
# @pytest.mark.fiveg
|
||||
# @allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-2801", name="JIRA LINK")
|
||||
# def test_open_ssid_5g(self, get_ap_logs, lf_test, test_cases, station_names_fiveg, get_lf_logs,
|
||||
# update_report, get_ap_channel):
|
||||
# """Client Connectivity open ssid 5G
|
||||
# pytest -m "client_connectivity and bridge and general and open and fiveg"
|
||||
# """
|
||||
# profile_data = setup_params_general["ssid_modes"]["open"][1]
|
||||
# ssid_name = profile_data["ssid_name"]
|
||||
# security_key = "[BLANK]"
|
||||
# security = "open"
|
||||
# mode = "BRIDGE"
|
||||
# band = "fiveg"
|
||||
# channel = get_ap_channel[0]["5G"]
|
||||
# print("ssid channel:- ", channel)
|
||||
# vlan = 1
|
||||
# passes, result = lf_test.Client_Connectivity(ssid=ssid_name, security=security,
|
||||
# passkey=security_key, mode=mode, band=band,
|
||||
# station_name=station_names_fiveg, vlan_id=vlan,
|
||||
# ssid_channel=channel)
|
||||
#
|
||||
# assert passes == "PASS", result
|
||||
|
||||
@pytest.mark.wpa
|
||||
@pytest.mark.twog
|
||||
@allure.story('wpa 2.4 GHZ Band')
|
||||
@allure.title("Client Connectivity Test with wpa encryption 2.4 GHz Band")
|
||||
@allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-2801", name="JIRA LINK")
|
||||
def test_bridge_wpa_2g_client_connectivity(self, get_test_library, setup_configuration):
|
||||
"""
|
||||
BRIDGE Mode Client Connectivity Test with wpa encryption 2.4 GHz Band
|
||||
pytest -m "client_connectivity and bridge and general and wpa and twog"
|
||||
"""
|
||||
profile_data = setup_params_general["ssid_modes"]["wpa"][0]
|
||||
ssid_name = profile_data["ssid_name"]
|
||||
security_key = profile_data["security_key"]
|
||||
security = "wpa"
|
||||
mode = "BRIDGE"
|
||||
band = "twog"
|
||||
vlan = 1
|
||||
passes, result = get_test_library.client_connectivity_test(ssid=ssid_name, security=security, dut_data=setup_configuration,
|
||||
passkey=security_key, mode=mode, band=band,
|
||||
num_sta=1, vlan_id=vlan, ssid_channel=1)
|
||||
|
||||
assert passes == "PASS", result
|
||||
|
||||
@pytest.mark.wpa
|
||||
@pytest.mark.fiveg
|
||||
@allure.story('wpa 5 GHZ Band')
|
||||
@allure.title("Client Connectivity Test with wpa encryption 5 GHz Band")
|
||||
def test_bridge_wpa_5g_client_connectivity(self, get_test_library, setup_configuration):
|
||||
"""
|
||||
BRIDGE Mode Client Connectivity Test with wpa encryption 5 GHz Band
|
||||
pytest -m "client_connectivity and bridge and general and wpa and fiveg"
|
||||
"""
|
||||
profile_data = setup_params_general["ssid_modes"]["wpa"][1]
|
||||
ssid_name = profile_data["ssid_name"]
|
||||
security_key = profile_data["security_key"]
|
||||
security = "wpa"
|
||||
mode = "BRIDGE"
|
||||
band = "fiveg"
|
||||
vlan = 1
|
||||
passes, result = get_test_library.client_connectivity_test(ssid=ssid_name, security=security, dut_data=setup_configuration,
|
||||
passkey=security_key, mode=mode, band=band,
|
||||
num_sta=1, vlan_id=vlan, ssid_channel=1)
|
||||
|
||||
assert passes == "PASS", result
|
||||
|
||||
@pytest.mark.wpa2_personal
|
||||
@pytest.mark.twog
|
||||
@allure.story('wpa2_personal 2.4 GHZ Band')
|
||||
@allure.title("Client Connectivity Test with wpa2_personal encryption 2.4 GHz Band")
|
||||
def test_bridge_wpa2_personal_2g_client_connectivity(self, get_test_library, setup_configuration):
|
||||
"""
|
||||
BRIDGE Mode Client Connectivity Test with wpa2_personal encryption 2.4 GHz Band
|
||||
pytest -m "client_connectivity and bridge and general and wpa2_personal and twog"
|
||||
"""
|
||||
profile_data = setup_params_general["ssid_modes"]["wpa2_personal"][0]
|
||||
ssid_name = profile_data["ssid_name"]
|
||||
security_key = profile_data["security_key"]
|
||||
security = "wpa2"
|
||||
mode = "BRIDGE"
|
||||
band = "twog"
|
||||
vlan = 1
|
||||
passes, result = get_test_library.client_connectivity_test(ssid=ssid_name, security=security, dut_data=setup_configuration,
|
||||
passkey=security_key, mode=mode, band=band,
|
||||
num_sta=1, vlan_id=vlan, ssid_channel=1)
|
||||
|
||||
assert passes == "PASS", result
|
||||
|
||||
#
|
||||
# @pytest.mark.open
|
||||
# @pytest.mark.sixg
|
||||
# @allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-2801", name="JIRA LINK")
|
||||
# def test_open_ssid_6g(self, get_ap_logs, lf_test, test_cases, station_names_fiveg, get_lf_logs,
|
||||
# update_report, get_ap_channel):
|
||||
# """Client Connectivity open ssid 5G
|
||||
# pytest -m "client_connectivity and bridge and general and open and fiveg"
|
||||
# """
|
||||
# profile_data = setup_params_general["ssid_modes"]["open"][1]
|
||||
# ssid_name = profile_data["ssid_name"]
|
||||
# security_key = "[BLANK]"
|
||||
# security = "open"
|
||||
# mode = "BRIDGE"
|
||||
# band = "sixg"
|
||||
# channel = get_ap_channel[0]["5G"]
|
||||
# print("ssid channel:- ", channel)
|
||||
# vlan = 1
|
||||
# passes, result = lf_test.Client_Connectivity(ssid=ssid_name, security=security,
|
||||
# passkey=security_key, mode=mode, band=band,
|
||||
# station_name=station_names_fiveg, vlan_id=vlan,
|
||||
# ssid_channel=channel)
|
||||
#
|
||||
# assert passes == "PASS", result
|
||||
#
|
||||
# @pytest.mark.sanity_light
|
||||
# @pytest.mark.wpa
|
||||
# @pytest.mark.twog
|
||||
# @allure.story('wpa 2.4 GHZ Band')
|
||||
# @allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-2801", name="JIRA LINK")
|
||||
# def test_wpa_ssid_2g(self, get_ap_logs, update_report, get_lf_logs,
|
||||
# lf_test, test_cases, station_names_twog, get_ap_channel):
|
||||
# """Client Connectivity wpa ssid 2.4G
|
||||
# pytest -m "client_connectivity and bridge and general and wpa and twog"
|
||||
# """
|
||||
# profile_data = setup_params_general["ssid_modes"]["wpa"][0]
|
||||
# ssid_name = profile_data["ssid_name"]
|
||||
# security_key = profile_data["security_key"]
|
||||
# security = "wpa"
|
||||
# mode = "BRIDGE"
|
||||
# band = "twog"
|
||||
# channel = get_ap_channel[0]["2G"]
|
||||
# print("ssid channel:- ", channel)
|
||||
# vlan = 1
|
||||
# passes, result = lf_test.Client_Connectivity(ssid=ssid_name, security=security,
|
||||
# passkey=security_key, mode=mode, band=band,
|
||||
# station_name=station_names_twog, vlan_id=vlan,
|
||||
# ssid_channel=channel)
|
||||
#
|
||||
# assert passes == "PASS", result
|
||||
#
|
||||
# @pytest.mark.sanity_light
|
||||
# @pytest.mark.wpa
|
||||
# @pytest.mark.fiveg
|
||||
# @allure.story('wpa 5 GHZ Band')
|
||||
# def test_wpa_ssid_5g(self, get_ap_logs, lf_test, update_report, get_lf_logs,
|
||||
# test_cases, station_names_fiveg, get_ap_channel):
|
||||
# """Client Connectivity wpa ssid 5G
|
||||
# pytest -m "client_connectivity and bridge and general and wpa and fiveg"
|
||||
# """
|
||||
# profile_data = setup_params_general["ssid_modes"]["wpa"][1]
|
||||
# ssid_name = profile_data["ssid_name"]
|
||||
# security_key = profile_data["security_key"]
|
||||
# security = "wpa"
|
||||
# mode = "BRIDGE"
|
||||
# band = "fiveg"
|
||||
# channel = get_ap_channel[0]["5G"]
|
||||
# print("ssid channel:- ", channel)
|
||||
# vlan = 1
|
||||
# passes, result = lf_test.Client_Connectivity(ssid=ssid_name, security=security,
|
||||
# passkey=security_key, mode=mode, band=band,
|
||||
# station_name=station_names_fiveg, vlan_id=vlan,
|
||||
# ssid_channel=channel)
|
||||
#
|
||||
# assert passes == "PASS", result
|
||||
#
|
||||
# @pytest.mark.sanity_light
|
||||
# @pytest.mark.wpa2_personal
|
||||
# @pytest.mark.twog
|
||||
# @allure.story('wpa2_personal 2.4 GHZ Band')
|
||||
# def test_wpa2_personal_ssid_2g(self, get_ap_logs, get_lf_logs,
|
||||
# lf_test, update_report, test_cases,
|
||||
# station_names_twog, get_ap_channel):
|
||||
# """Client Connectivity wpa2_personal ssid 2.4G
|
||||
# pytest -m "client_connectivity and bridge and general and wpa2_personal and twog"
|
||||
# """
|
||||
# profile_data = setup_params_general["ssid_modes"]["wpa2_personal"][0]
|
||||
# ssid_name = profile_data["ssid_name"]
|
||||
# security_key = profile_data["security_key"]
|
||||
# security = "wpa2"
|
||||
# mode = "BRIDGE"
|
||||
# band = "twog"
|
||||
# channel = get_ap_channel[0]["2G"]
|
||||
# print("ssid channel:- ", channel)
|
||||
# vlan = 1
|
||||
# passes, result = lf_test.Client_Connectivity(ssid=ssid_name, security=security,
|
||||
# passkey=security_key, mode=mode, band=band,
|
||||
# station_name=station_names_twog, vlan_id=vlan,
|
||||
# ssid_channel=channel)
|
||||
#
|
||||
# assert passes == "PASS", result
|
||||
#
|
||||
# @pytest.mark.sanity_light
|
||||
# @pytest.mark.wpa2_personal
|
||||
# @pytest.mark.fiveg
|
||||
# @allure.story('wpa2_personal 5 GHZ Band')
|
||||
# def test_wpa2_personal_ssid_5g(self, get_ap_logs, update_report, test_cases,
|
||||
# station_names_fiveg, get_lf_logs,
|
||||
# lf_test, get_ap_channel):
|
||||
# """Client Connectivity wpa2_personal ssid 5G
|
||||
# pytest -m "client_connectivity and bridge and general and wpa2_personal and fiveg"
|
||||
# """
|
||||
# profile_data = setup_params_general["ssid_modes"]["wpa2_personal"][1]
|
||||
# ssid_name = profile_data["ssid_name"]
|
||||
# security_key = profile_data["security_key"]
|
||||
# security = "wpa2"
|
||||
# mode = "BRIDGE"
|
||||
# band = "fiveg"
|
||||
# channel = get_ap_channel[0]["5G"]
|
||||
# print("ssid channel:- ", channel)
|
||||
# vlan = 1
|
||||
# passes, result = lf_test.Client_Connectivity(ssid=ssid_name, security=security,
|
||||
# passkey=security_key, mode=mode, band=band,
|
||||
# station_name=station_names_fiveg, vlan_id=vlan,
|
||||
# ssid_channel=channel)
|
||||
#
|
||||
# assert passes == "PASS", result
|
||||
|
||||
@pytest.mark.wpa2_personal
|
||||
@pytest.mark.fiveg
|
||||
@allure.story('wpa2_personal 5 GHZ Band')
|
||||
@allure.title("Client Connectivity Test with wpa2_personal encryption 5 GHz Band")
|
||||
def test_bridge_wpa2_personal_5g_client_connectivity(self, get_test_library, setup_configuration):
|
||||
"""
|
||||
BRIDGE Mode Client Connectivity Test with wpa2_personal encryption 5 GHz Band
|
||||
pytest -m "client_connectivity and bridge and general and wpa2_personal and fiveg"
|
||||
"""
|
||||
profile_data = setup_params_general["ssid_modes"]["wpa2_personal"][1]
|
||||
ssid_name = profile_data["ssid_name"]
|
||||
security_key = profile_data["security_key"]
|
||||
security = "wpa2"
|
||||
mode = "BRIDGE"
|
||||
band = "fiveg"
|
||||
vlan = 1
|
||||
passes, result = get_test_library.client_connectivity_test(ssid=ssid_name, security=security, dut_data=setup_configuration,
|
||||
passkey=security_key, mode=mode, band=band,
|
||||
num_sta=1, vlan_id=vlan, ssid_channel=1)
|
||||
|
||||
assert passes == "PASS", result
|
||||
|
||||
|
||||
setup_params_general_two = {
|
||||
@@ -232,17 +199,17 @@ setup_params_general_two = {
|
||||
}
|
||||
|
||||
|
||||
@allure.suite(suite_name="OpenWifi Sanity LF")
|
||||
@allure.sub_suite(sub_suite_name="Bridge Mode Client Connectivity : Suite-B")
|
||||
@pytest.mark.suiteB
|
||||
@allure.feature("BRIDGE MODE CLIENT CONNECTIVITY")
|
||||
@allure.parent_suite("Client Connectivity Tests")
|
||||
@allure.suite(suite_name="BRIDGE Mode")
|
||||
@allure.sub_suite(sub_suite_name="General security mode Client Connectivity")
|
||||
@pytest.mark.parametrize(
|
||||
'setup_profiles',
|
||||
'setup_configuration',
|
||||
[setup_params_general_two],
|
||||
indirect=True,
|
||||
scope="class"
|
||||
)
|
||||
@pytest.mark.usefixtures("setup_profiles")
|
||||
@pytest.mark.usefixtures("setup_configuration")
|
||||
class TestBridgeModeConnectivitySuiteTwo(object):
|
||||
""" Client Connectivity SuiteA
|
||||
pytest -m "client_connectivity and bridge and suiteB"
|
||||
@@ -250,12 +217,12 @@ class TestBridgeModeConnectivitySuiteTwo(object):
|
||||
|
||||
@pytest.mark.wpa3_personal
|
||||
@pytest.mark.twog
|
||||
@allure.story('open 2.4 GHZ Band')
|
||||
def test_wpa3_personal_ssid_2g_bridge(self, get_ap_logs, station_names_twog, lf_test,
|
||||
update_report,
|
||||
test_cases, get_ap_channel):
|
||||
"""Client Connectivity open ssid 2.4G
|
||||
pytest -m "client_connectivity and bridge and general and wpa3_personal and twog"
|
||||
@allure.story('wpa3_personal 2.4 GHZ Band')
|
||||
@allure.title("BRIDGE Mode Client Connectivity Test with wpa3_personal encryption 2.4 GHz Band")
|
||||
def test_bridge_wpa3_personal_2g_client_connectivity(self, get_test_library, setup_configuration):
|
||||
"""
|
||||
BRIDGE Mode Client Connectivity Test with wpa3_personal encryption 2.4 GHz Band
|
||||
pytest -m "client_connectivity and bridge and general and wpa3_personal and twog"
|
||||
"""
|
||||
profile_data = setup_params_general_two["ssid_modes"]["wpa3_personal"][0]
|
||||
ssid_name = profile_data["ssid_name"]
|
||||
@@ -263,24 +230,22 @@ class TestBridgeModeConnectivitySuiteTwo(object):
|
||||
security = "wpa3"
|
||||
mode = "BRIDGE"
|
||||
band = "twog"
|
||||
channel = get_ap_channel[0]["2G"]
|
||||
print("ssid channel:- ", channel)
|
||||
vlan = 1
|
||||
passes, result = lf_test.Client_Connectivity(ssid=ssid_name, security=security,
|
||||
passkey=security_key, mode=mode, band=band,
|
||||
station_name=station_names_twog, vlan_id=vlan,
|
||||
ssid_channel=channel)
|
||||
passes, result = get_test_library.client_connectivity_test(ssid=ssid_name, security=security,
|
||||
dut_data=setup_configuration,
|
||||
passkey=security_key, mode=mode, band=band,
|
||||
num_sta=1, vlan_id=vlan, ssid_channel=1)
|
||||
|
||||
assert passes == "PASS", result
|
||||
|
||||
@pytest.mark.wpa3_personal
|
||||
@pytest.mark.fiveg
|
||||
@allure.story('open 5 GHZ Band')
|
||||
def test_wpa3_personal_ssid_5g_bridge(self, get_ap_logs, station_names_fiveg,
|
||||
lf_test, test_cases, get_lf_logs,
|
||||
update_report, get_ap_channel):
|
||||
"""Client Connectivity open ssid 2.4G
|
||||
pytest -m "client_connectivity and bridge and general and wpa3_personal and fiveg"
|
||||
@allure.story('wpa3_personal 5 GHZ Band')
|
||||
@allure.title("BRIDGE Mode Client Connectivity Test with wpa3_personal encryption 5 GHz Band")
|
||||
def test_bridge_wpa3_personal_5g_client_connectivity(self, get_test_library, setup_configuration):
|
||||
"""
|
||||
BRIDGE Mode Client Connectivity Test with wpa3_personal encryption 5 GHz Band
|
||||
pytest -m "client_connectivity and bridge and general and wpa3_personal and fiveg"
|
||||
"""
|
||||
profile_data = setup_params_general_two["ssid_modes"]["wpa3_personal"][1]
|
||||
ssid_name = profile_data["ssid_name"]
|
||||
@@ -288,50 +253,45 @@ class TestBridgeModeConnectivitySuiteTwo(object):
|
||||
security = "wpa3"
|
||||
mode = "BRIDGE"
|
||||
band = "fiveg"
|
||||
channel = get_ap_channel[0]["5G"]
|
||||
print("ssid channel:- ", channel)
|
||||
vlan = 1
|
||||
passes, result = lf_test.Client_Connectivity(ssid=ssid_name, security=security,
|
||||
passkey=security_key, mode=mode, band=band,
|
||||
station_name=station_names_fiveg, vlan_id=vlan,
|
||||
ssid_channel=channel)
|
||||
passes, result = get_test_library.client_connectivity_test(ssid=ssid_name, security=security,
|
||||
dut_data=setup_configuration,
|
||||
passkey=security_key, mode=mode, band=band,
|
||||
num_sta=1, vlan_id=vlan, ssid_channel=1)
|
||||
|
||||
assert result
|
||||
assert passes == "PASS", result
|
||||
|
||||
@pytest.mark.wpa3_personal
|
||||
@pytest.mark.sixg
|
||||
@allure.story('WPA3 6 GHZ Band')
|
||||
def test_wpa3_personal_ssid_6g_bridge(self, get_ap_logs, station_names_fiveg,
|
||||
lf_test, test_cases, get_lf_logs,
|
||||
update_report, get_ap_channel):
|
||||
"""Client Connectivity open ssid 2.4G
|
||||
pytest -m "client_connectivity and bridge and general and wpa3_personal and fiveg"
|
||||
@allure.story('wpa3_personal 6 GHZ Band')
|
||||
@allure.title("BRIDGE Mode Client Connectivity Test with wpa3_personal encryption 5 GHz Band")
|
||||
def test_bridge_wpa3_personal_6g_client_connectivity(self, get_test_library, setup_configuration):
|
||||
"""
|
||||
BRIDGE Mode Client Connectivity Test with wpa3_personal encryption 6 GHz Band
|
||||
pytest -m "client_connectivity and bridge and general and wpa3_personal and sixg"
|
||||
"""
|
||||
profile_data = setup_params_general_two["ssid_modes"]["wpa3_personal"][2]
|
||||
ssid_name = profile_data["ssid_name"]
|
||||
security_key = profile_data["security_key"]
|
||||
security = "wpa3"
|
||||
mode = "BRIDGE"
|
||||
band = "sixg"
|
||||
channel = get_ap_channel[0]["6G"]
|
||||
print("ssid channel:- ", channel)
|
||||
vlan = 1
|
||||
passes, result = lf_test.Client_Connectivity(ssid=ssid_name, security=security,
|
||||
passkey=security_key, mode=mode, band=band,
|
||||
station_name=station_names_fiveg, vlan_id=vlan,
|
||||
ssid_channel=channel)
|
||||
passes, result = get_test_library.client_connectivity_test(ssid=ssid_name, security=security,
|
||||
dut_data=setup_configuration,
|
||||
passkey=security_key, mode=mode, band=band,
|
||||
num_sta=1, vlan_id=vlan, ssid_channel=1)
|
||||
|
||||
assert result
|
||||
assert passes == "PASS", result
|
||||
|
||||
@pytest.mark.wpa3_personal_mixed
|
||||
@pytest.mark.twog
|
||||
@allure.story('open 2.4 GHZ Band')
|
||||
def test_wpa3_personal_mixed_ssid_2g(self, get_ap_logs, station_names_twog,
|
||||
lf_test, get_lf_logs,
|
||||
update_report,
|
||||
test_cases, get_ap_channel):
|
||||
"""Client Connectivity open ssid 2.4G
|
||||
pytest -m "client_connectivity and bridge and general and wpa3_personal_mixed and twog"
|
||||
@allure.story('wpa3_personal_mixed 2.4 GHZ Band')
|
||||
@allure.title("BRIDGE Mode Client Connectivity Test with wpa3_personal_mixed encryption 2.4 GHz Band")
|
||||
def test_bridge_wpa3_personal_mixed_2g_client_connectivity(self, get_test_library,
|
||||
setup_configuration):
|
||||
"""
|
||||
BRIDGE Mode Client Connectivity Test with wpa3_personal_mixed encryption 2.4 GHz Band
|
||||
pytest -m "client_connectivity and bridge and general and wpa3_personal_mixed and twog"
|
||||
"""
|
||||
profile_data = setup_params_general_two["ssid_modes"]["wpa3_personal_mixed"][0]
|
||||
ssid_name = profile_data["ssid_name"]
|
||||
@@ -339,24 +299,23 @@ class TestBridgeModeConnectivitySuiteTwo(object):
|
||||
security = "wpa3"
|
||||
mode = "BRIDGE"
|
||||
band = "twog"
|
||||
channel = get_ap_channel[0]["2G"]
|
||||
print("ssid channel:- ", channel)
|
||||
vlan = 1
|
||||
passes, result = lf_test.Client_Connectivity(ssid=ssid_name, security=security,
|
||||
passkey=security_key, mode=mode, band=band,
|
||||
station_name=station_names_twog, vlan_id=vlan,
|
||||
ssid_channel=channel)
|
||||
passes, result = get_test_library.client_connectivity_test(ssid=ssid_name, security=security,
|
||||
dut_data=setup_configuration,
|
||||
passkey=security_key, mode=mode, band=band,
|
||||
num_sta=1, vlan_id=vlan, ssid_channel=1)
|
||||
|
||||
assert passes == "PASS", result
|
||||
|
||||
@pytest.mark.wpa3_personal_mixed
|
||||
@pytest.mark.fiveg
|
||||
@allure.story('open 5 GHZ Band')
|
||||
def test_wpa3_personal_mixed_ssid_5g(self, get_ap_logs, station_names_fiveg, lf_test,
|
||||
test_cases, get_lf_logs,
|
||||
update_report, get_ap_channel):
|
||||
"""Client Connectivity open ssid 2.4G
|
||||
pytest -m "client_connectivity and bridge and general and wpa3_personal_mixed and fiveg"
|
||||
@allure.story('wpa3_personal_mixed 5 GHZ Band')
|
||||
@allure.title("BRIDGE Mode Client Connectivity Test with wpa3_personal_mixed encryption 5 GHz Band")
|
||||
def test_bridge_wpa3_personal_mixed_5g_client_connectivity(self, get_test_library,
|
||||
setup_configuration):
|
||||
"""
|
||||
BRIDGE Mode Client Connectivity Test with wpa3_personal_mixed encryption 5 GHz Band
|
||||
pytest -m "client_connectivity and bridge and general and wpa3_personal_mixed and fiveg"
|
||||
"""
|
||||
profile_data = setup_params_general_two["ssid_modes"]["wpa3_personal_mixed"][1]
|
||||
ssid_name = profile_data["ssid_name"]
|
||||
@@ -364,25 +323,23 @@ class TestBridgeModeConnectivitySuiteTwo(object):
|
||||
security = "wpa3"
|
||||
mode = "BRIDGE"
|
||||
band = "fiveg"
|
||||
channel = get_ap_channel[0]["5G"]
|
||||
print("ssid channel:- ", channel)
|
||||
vlan = 1
|
||||
passes, result = lf_test.Client_Connectivity(ssid=ssid_name, security=security,
|
||||
passkey=security_key, mode=mode, band=band,
|
||||
station_name=station_names_fiveg, vlan_id=vlan,
|
||||
ssid_channel=channel)
|
||||
passes, result = get_test_library.client_connectivity_test(ssid=ssid_name, security=security,
|
||||
dut_data=setup_configuration,
|
||||
passkey=security_key, mode=mode, band=band,
|
||||
num_sta=1, vlan_id=vlan, ssid_channel=1)
|
||||
|
||||
assert passes == "PASS", result
|
||||
|
||||
@pytest.mark.wpa_wpa2_personal_mixed
|
||||
@pytest.mark.twog
|
||||
@allure.story('wpa wpa2 personal mixed 2.4 GHZ Band')
|
||||
def test_wpa_wpa2_personal_ssid_2g(self, get_ap_logs, station_names_twog,
|
||||
lf_test, get_lf_logs,
|
||||
update_report,
|
||||
test_cases, get_ap_channel):
|
||||
"""Client Connectivity open ssid 2.4G
|
||||
pytest -m "client_connectivity and bridge and general and wpa_wpa2_personal_mixed and twog"
|
||||
@allure.title("BRIDGE Mode Client Connectivity Test with wpa3_personal_mixed encryption 5 GHz Band")
|
||||
def test_bridge_wpa_wpa2_personal_mixed_2g_client_connectivity(self, get_test_library,
|
||||
setup_configuration):
|
||||
"""
|
||||
BRIDGE Mode Client Connectivity Test with wpa_wpa2_personal_mixed encryption 2.4 GHz Band
|
||||
pytest -m "client_connectivity and bridge and general and wpa_wpa2_personal_mixed and twog"
|
||||
"""
|
||||
profile_data = setup_params_general_two["ssid_modes"]["wpa_wpa2_personal_mixed"][0]
|
||||
ssid_name = profile_data["ssid_name"]
|
||||
@@ -391,24 +348,24 @@ class TestBridgeModeConnectivitySuiteTwo(object):
|
||||
extra_secu = ["wpa2"]
|
||||
mode = "BRIDGE"
|
||||
band = "twog"
|
||||
channel = get_ap_channel[0]["2G"]
|
||||
print("ssid channel:- ", channel)
|
||||
vlan = 1
|
||||
passes, result = lf_test.Client_Connectivity(ssid=ssid_name, security=security, extra_securities=extra_secu,
|
||||
passkey=security_key, mode=mode, band=band,
|
||||
station_name=station_names_twog, vlan_id=vlan,
|
||||
ssid_channel=channel)
|
||||
passes, result = get_test_library.client_connectivity_test(ssid=ssid_name, security=security,
|
||||
dut_data=setup_configuration,
|
||||
extra_securities=extra_secu,
|
||||
passkey=security_key, mode=mode, band=band,
|
||||
num_sta=1, vlan_id=vlan, ssid_channel=1)
|
||||
|
||||
assert passes == "PASS", result
|
||||
|
||||
@pytest.mark.wpa_wpa2_personal_mixed
|
||||
@pytest.mark.fiveg
|
||||
@allure.story('wpa wpa2 personal mixed 5 GHZ Band')
|
||||
def test_wpa_wpa2_personal_ssid_5g(self, get_ap_logs, station_names_fiveg, get_lf_logs,
|
||||
lf_test, test_cases,
|
||||
update_report, get_ap_channel):
|
||||
"""Client Connectivity open ssid 2.4G
|
||||
pytest -m "client_connectivity and bridge and general and wpa_wpa2_personal_mixed and fiveg"
|
||||
@allure.title("BRIDGE Mode Client Connectivity Test with wpa3_personal_mixed encryption 5 GHz Band")
|
||||
def test_bridge_wpa_wpa2_personal_mixed_5g_client_connectivity(self, get_test_library,
|
||||
setup_configuration):
|
||||
"""
|
||||
BRIDGE Mode Client Connectivity Test with wpa_wpa2_personal_mixed encryption 5 GHz Band
|
||||
pytest -m "client_connectivity and bridge and general and wpa_wpa2_personal_mixed and fiveg"
|
||||
"""
|
||||
profile_data = setup_params_general_two["ssid_modes"]["wpa_wpa2_personal_mixed"][1]
|
||||
ssid_name = profile_data["ssid_name"]
|
||||
@@ -417,91 +374,12 @@ class TestBridgeModeConnectivitySuiteTwo(object):
|
||||
extra_secu = ["wpa2"]
|
||||
mode = "BRIDGE"
|
||||
band = "fiveg"
|
||||
channel = get_ap_channel[0]["5G"]
|
||||
print("ssid channel:- ", channel)
|
||||
vlan = 1
|
||||
passes, result = lf_test.Client_Connectivity(ssid=ssid_name, security=security, extra_securities=extra_secu,
|
||||
passkey=security_key, mode=mode, band=band,
|
||||
station_name=station_names_fiveg, vlan_id=vlan,
|
||||
ssid_channel=channel)
|
||||
passes, result = get_test_library.client_connectivity_test(ssid=ssid_name, security=security,
|
||||
dut_data=setup_configuration,
|
||||
extra_securities=extra_secu,
|
||||
passkey=security_key, mode=mode, band=band,
|
||||
num_sta=1, vlan_id=vlan, ssid_channel=1)
|
||||
|
||||
assert passes == "PASS", result
|
||||
|
||||
# WEP Security Feature not available
|
||||
# setup_params_wep = {
|
||||
# "mode": "BRIDGE",
|
||||
# "ssid_modes": {
|
||||
# "wep": [ {"ssid_name": "ssid_wep_2g", "appliedRadios": ["2G"], "default_key_id": 1,
|
||||
# "wep_key": 1234567890},
|
||||
# {"ssid_name": "ssid_wep_5g", "appliedRadios": ["5G"],
|
||||
# "default_key_id": 1, "wep_key": 1234567890}]
|
||||
# },
|
||||
# "rf": {},
|
||||
# "radius": True
|
||||
# }
|
||||
#
|
||||
#
|
||||
# @pytest.mark.enterprise
|
||||
# @pytest.mark.parametrize(
|
||||
# 'setup_profiles',
|
||||
# [setup_params_wep],
|
||||
# indirect=True,
|
||||
# scope="class"
|
||||
# )
|
||||
# @pytest.mark.usefixtures("setup_profiles")
|
||||
# class TestBridgeModeWEP(object):
|
||||
#
|
||||
# @pytest.mark.wep
|
||||
# @pytest.mark.twog
|
||||
# def test_wep_2g(self, get_vif_state,station_names_twog, setup_profiles, lf_test, update_report,
|
||||
# test_cases, radius_info):
|
||||
# profile_data = setup_params_wep["ssid_modes"]["wep"][0]
|
||||
# ssid_name = profile_data["ssid_name"]
|
||||
# wep_key = "[BLANK]"
|
||||
# security = "open"
|
||||
# extra_secu = []
|
||||
# mode = "BRIDGE"
|
||||
# band = "twog"
|
||||
# vlan = 1
|
||||
# passes, result = lf_test.Client_Connectivity(ssid=ssid_name, security=security,
|
||||
# passkey=wep_key, mode=mode, band=band,
|
||||
# station_name=station_names_twog, vlan_id=vlan)
|
||||
#
|
||||
# if passes:
|
||||
# update_report.update_testrail(case_id=test_cases["2g_wpa_bridge"],
|
||||
# status_id=1,
|
||||
# msg='2G WPA Client Connectivity Passed successfully - bridge mode' + str(
|
||||
# passes))
|
||||
# else:
|
||||
# update_report.update_testrail(case_id=test_cases["2g_wpa_bridge"],
|
||||
# status_id=5,
|
||||
# msg='2G WPA Client Connectivity Failed - bridge mode' + str(
|
||||
# passes))
|
||||
# assert passes
|
||||
#
|
||||
# @pytest.mark.wep
|
||||
# @pytest.mark.fiveg
|
||||
# def test_wep_5g(self, get_vif_state,station_names_fiveg, setup_profiles, lf_test, update_report,
|
||||
# test_cases, radius_info):
|
||||
# profile_data = setup_params_wep["ssid_modes"]["wep"][1]
|
||||
# ssid_name = profile_data["ssid_name"]
|
||||
# wep_key = "[BLANK]"
|
||||
# security = "open"
|
||||
# extra_secu = []
|
||||
# mode = "BRIDGE"
|
||||
# band = "twog"
|
||||
# vlan = 1
|
||||
# passes, result = lf_test.Client_Connectivity(ssid=ssid_name, security=security,
|
||||
# passkey=wep_key, mode=mode, band=band,
|
||||
# station_name=station_names_fiveg, vlan_id=vlan)
|
||||
#
|
||||
# if passes:
|
||||
# update_report.update_testrail(case_id=test_cases["2g_wpa_bridge"],
|
||||
# status_id=1,
|
||||
# msg='2G WPA Client Connectivity Passed successfully - bridge mode' + str(
|
||||
# passes))
|
||||
# else:
|
||||
# update_report.update_testrail(case_id=test_cases["2g_wpa_bridge"],
|
||||
# status_id=5,
|
||||
# msg='2G WPA Client Connectivity Failed - bridge mode' + str(
|
||||
# passes))
|
||||
# assert passes
|
||||
|
||||
@@ -45,7 +45,7 @@ class TestBridgeModeConnectivitySuiteA(object):
|
||||
@pytest.mark.parametrize('execution_number', range(2))
|
||||
@allure.title("Client Connectivity Test with open encryption 2.4 GHz Band")
|
||||
@allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-2809", name="JIRA LINK")
|
||||
def test_nat_open_2g_client_connectivity(self, get_test_library, execution_number):
|
||||
def test_nat_open_2g_client_connectivity(self, get_test_library, execution_number, setup_configuration):
|
||||
"""
|
||||
NAT Mode Client Connectivity Test with open encryption 2.4 GHz Band
|
||||
pytest -m "client_connectivity and nat and general and open and twog"
|
||||
@@ -60,7 +60,7 @@ class TestBridgeModeConnectivitySuiteA(object):
|
||||
mode = "NAT-LAN"
|
||||
band = "twog"
|
||||
vlan = 1
|
||||
passes, result = get_test_library.client_connectivity_test(ssid=ssid_name, security=security,
|
||||
passes, result = get_test_library.client_connectivity_test(ssid=ssid_name, security=security, dut_data=setup_configuration,
|
||||
passkey=security_key, mode=mode, band=band,
|
||||
num_sta=1, vlan_id=vlan, ssid_channel=1)
|
||||
|
||||
@@ -71,7 +71,7 @@ class TestBridgeModeConnectivitySuiteA(object):
|
||||
@pytest.mark.parametrize('execution_number', range(2))
|
||||
@allure.title("Client Connectivity Test with open encryption 5 GHz Band")
|
||||
@allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-2801", name="JIRA LINK")
|
||||
def test_nat_open_5g_client_connectivity(self, get_test_library, execution_number):
|
||||
def test_nat_open_5g_client_connectivity(self, get_test_library, execution_number, setup_configuration):
|
||||
"""
|
||||
NAT Mode Client Connectivity Test with open encryption 5 GHz Band
|
||||
pytest -m "client_connectivity and nat and general and open and fiveg"
|
||||
@@ -86,7 +86,7 @@ class TestBridgeModeConnectivitySuiteA(object):
|
||||
mode = "NAT-LAN"
|
||||
band = "twog"
|
||||
vlan = 1
|
||||
passes, result = get_test_library.client_connectivity_test(ssid=ssid_name, security=security,
|
||||
passes, result = get_test_library.client_connectivity_test(ssid=ssid_name, security=security, dut_data=setup_configuration,
|
||||
passkey=security_key, mode=mode, band=band,
|
||||
num_sta=1, vlan_id=vlan, ssid_channel=1)
|
||||
|
||||
@@ -100,7 +100,7 @@ class TestBridgeModeConnectivitySuiteA(object):
|
||||
@allure.story('wpa 2.4 GHZ Band')
|
||||
@allure.title("Client Connectivity Test with wpa encryption 2.4 GHz Band")
|
||||
@allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-2801", name="JIRA LINK")
|
||||
def test_nat_wpa_2g_client_connectivity(self, get_test_library, execution_number):
|
||||
def test_nat_wpa_2g_client_connectivity(self, get_test_library, execution_number, setup_configuration):
|
||||
"""
|
||||
NAT Mode Client Connectivity Test with wpa encryption 2.4 GHz Band
|
||||
pytest -m "client_connectivity and nat and general and wpa and twog"
|
||||
@@ -115,7 +115,7 @@ class TestBridgeModeConnectivitySuiteA(object):
|
||||
mode = "NAT-LAN"
|
||||
band = "twog"
|
||||
vlan = 1
|
||||
passes, result = get_test_library.client_connectivity_test(ssid=ssid_name, security=security,
|
||||
passes, result = get_test_library.client_connectivity_test(ssid=ssid_name, security=security, dut_data=setup_configuration,
|
||||
passkey=security_key, mode=mode, band=band,
|
||||
num_sta=1, vlan_id=vlan, ssid_channel=1)
|
||||
|
||||
@@ -126,7 +126,7 @@ class TestBridgeModeConnectivitySuiteA(object):
|
||||
@pytest.mark.parametrize('execution_number', range(2))
|
||||
@allure.story('wpa 5 GHZ Band')
|
||||
@allure.title("Client Connectivity Test with wpa encryption 5 GHz Band")
|
||||
def test_nat_wpa_5g_client_connectivity(self, get_test_library, execution_number):
|
||||
def test_nat_wpa_5g_client_connectivity(self, get_test_library, execution_number, setup_configuration):
|
||||
"""
|
||||
NAT Mode Client Connectivity Test with wpa encryption 5 GHz Band
|
||||
pytest -m "client_connectivity and nat and general and wpa and fiveg"
|
||||
@@ -141,7 +141,7 @@ class TestBridgeModeConnectivitySuiteA(object):
|
||||
mode = "NAT-LAN"
|
||||
band = "fiveg"
|
||||
vlan = 1
|
||||
passes, result = get_test_library.client_connectivity_test(ssid=ssid_name, security=security,
|
||||
passes, result = get_test_library.client_connectivity_test(ssid=ssid_name, security=security, dut_data=setup_configuration,
|
||||
passkey=security_key, mode=mode, band=band,
|
||||
num_sta=1, vlan_id=vlan, ssid_channel=1)
|
||||
|
||||
@@ -152,7 +152,7 @@ class TestBridgeModeConnectivitySuiteA(object):
|
||||
@pytest.mark.parametrize('execution_number', range(2))
|
||||
@allure.story('wpa2_personal 2.4 GHZ Band')
|
||||
@allure.title("Client Connectivity Test with wpa2_personal encryption 2.4 GHz Band")
|
||||
def test_nat_wpa2_personal_2g_client_connectivity(self, get_test_library, execution_number):
|
||||
def test_nat_wpa2_personal_2g_client_connectivity(self, get_test_library, execution_number, setup_configuration):
|
||||
"""
|
||||
NAT Mode Client Connectivity Test with wpa2_personal encryption 2.4 GHz Band
|
||||
pytest -m "client_connectivity and nat and general and wpa2_personal and twog"
|
||||
@@ -167,7 +167,7 @@ class TestBridgeModeConnectivitySuiteA(object):
|
||||
mode = "NAT-LAN"
|
||||
band = "twog"
|
||||
vlan = 1
|
||||
passes, result = get_test_library.client_connectivity_test(ssid=ssid_name, security=security,
|
||||
passes, result = get_test_library.client_connectivity_test(ssid=ssid_name, security=security, dut_data=setup_configuration,
|
||||
passkey=security_key, mode=mode, band=band,
|
||||
num_sta=1, vlan_id=vlan, ssid_channel=1)
|
||||
|
||||
@@ -180,7 +180,7 @@ class TestBridgeModeConnectivitySuiteA(object):
|
||||
@pytest.mark.parametrize('execution_number', range(2))
|
||||
@allure.story('wpa2_personal 5 GHZ Band')
|
||||
@allure.title("Client Connectivity Test with wpa2_personal encryption 5 GHz Band")
|
||||
def test_nat_wpa2_personal_5g_client_connectivity(self, get_test_library, execution_number):
|
||||
def test_nat_wpa2_personal_5g_client_connectivity(self, get_test_library, execution_number, setup_configuration):
|
||||
"""
|
||||
NAT Mode Client Connectivity Test with wpa2_personal encryption 5 GHz Band
|
||||
pytest -m "client_connectivity and nat and general and wpa2_personal and fiveg"
|
||||
@@ -195,7 +195,7 @@ class TestBridgeModeConnectivitySuiteA(object):
|
||||
mode = "NAT-LAN"
|
||||
band = "fiveg"
|
||||
vlan = 1
|
||||
passes, result = get_test_library.client_connectivity_test(ssid=ssid_name, security=security,
|
||||
passes, result = get_test_library.client_connectivity_test(ssid=ssid_name, security=security, dut_data=setup_configuration,
|
||||
passkey=security_key, mode=mode, band=band,
|
||||
num_sta=1, vlan_id=vlan, ssid_channel=1)
|
||||
|
||||
@@ -242,7 +242,7 @@ class TestBridgeModeConnectivitySuiteTwo(object):
|
||||
@pytest.mark.parametrize('execution_number', range(2))
|
||||
@allure.story('wpa3_personal 2.4 GHZ Band')
|
||||
@allure.title("NAT Mode Client Connectivity Test with wpa3_personal encryption 2.4 GHz Band")
|
||||
def test_nat_wpa3_personal_2g_client_connectivity(self, get_test_library, execution_number):
|
||||
def test_nat_wpa3_personal_2g_client_connectivity(self, get_test_library, execution_number, setup_configuration):
|
||||
"""
|
||||
NAT Mode Client Connectivity Test with wpa3_personal encryption 2.4 GHz Band
|
||||
pytest -m "client_connectivity and nat and general and wpa3_personal and twog"
|
||||
@@ -258,6 +258,7 @@ class TestBridgeModeConnectivitySuiteTwo(object):
|
||||
band = "twog"
|
||||
vlan = 1
|
||||
passes, result = get_test_library.client_connectivity_test(ssid=ssid_name, security=security,
|
||||
dut_data=setup_configuration,
|
||||
passkey=security_key, mode=mode, band=band,
|
||||
num_sta=1, vlan_id=vlan, ssid_channel=1)
|
||||
|
||||
@@ -268,7 +269,7 @@ class TestBridgeModeConnectivitySuiteTwo(object):
|
||||
@pytest.mark.parametrize('execution_number', range(2))
|
||||
@allure.story('wpa3_personal 5 GHZ Band')
|
||||
@allure.title("NAT Mode Client Connectivity Test with wpa3_personal encryption 5 GHz Band")
|
||||
def test_nat_wpa3_personal_5g_client_connectivity(self, get_test_library, execution_number):
|
||||
def test_nat_wpa3_personal_5g_client_connectivity(self, get_test_library, execution_number, setup_configuration):
|
||||
"""
|
||||
NAT Mode Client Connectivity Test with wpa3_personal encryption 5 GHz Band
|
||||
pytest -m "client_connectivity and nat and general and wpa3_personal and fiveg"
|
||||
@@ -284,6 +285,7 @@ class TestBridgeModeConnectivitySuiteTwo(object):
|
||||
band = "fiveg"
|
||||
vlan = 1
|
||||
passes, result = get_test_library.client_connectivity_test(ssid=ssid_name, security=security,
|
||||
dut_data=setup_configuration,
|
||||
passkey=security_key, mode=mode, band=band,
|
||||
num_sta=1, vlan_id=vlan, ssid_channel=1)
|
||||
|
||||
@@ -294,7 +296,7 @@ class TestBridgeModeConnectivitySuiteTwo(object):
|
||||
@allure.story('wpa3_personal 6 GHZ Band')
|
||||
@pytest.mark.parametrize('execution_number', range(2))
|
||||
@allure.title("NAT Mode Client Connectivity Test with wpa3_personal encryption 5 GHz Band")
|
||||
def test_nat_wpa3_personal_6g_client_connectivity(self, get_test_library, execution_number):
|
||||
def test_nat_wpa3_personal_6g_client_connectivity(self, get_test_library, execution_number, setup_configuration):
|
||||
"""
|
||||
NAT Mode Client Connectivity Test with wpa3_personal encryption 6 GHz Band
|
||||
pytest -m "client_connectivity and nat and general and wpa3_personal and sixg"
|
||||
@@ -310,6 +312,7 @@ class TestBridgeModeConnectivitySuiteTwo(object):
|
||||
band = "sixg"
|
||||
vlan = 1
|
||||
passes, result = get_test_library.client_connectivity_test(ssid=ssid_name, security=security,
|
||||
dut_data=setup_configuration,
|
||||
passkey=security_key, mode=mode, band=band,
|
||||
num_sta=1, vlan_id=vlan, ssid_channel=1)
|
||||
|
||||
@@ -320,7 +323,8 @@ class TestBridgeModeConnectivitySuiteTwo(object):
|
||||
@allure.story('wpa3_personal_mixed 2.4 GHZ Band')
|
||||
@pytest.mark.parametrize('execution_number', range(2))
|
||||
@allure.title("NAT Mode Client Connectivity Test with wpa3_personal_mixed encryption 2.4 GHz Band")
|
||||
def test_nat_wpa3_personal_mixed_2g_client_connectivity(self, get_test_library, execution_number):
|
||||
def test_nat_wpa3_personal_mixed_2g_client_connectivity(self, get_test_library, execution_number,
|
||||
setup_configuration):
|
||||
"""
|
||||
NAT Mode Client Connectivity Test with wpa3_personal_mixed encryption 2.4 GHz Band
|
||||
pytest -m "client_connectivity and nat and general and wpa3_personal_mixed and twog"
|
||||
@@ -336,6 +340,7 @@ class TestBridgeModeConnectivitySuiteTwo(object):
|
||||
band = "twog"
|
||||
vlan = 1
|
||||
passes, result = get_test_library.client_connectivity_test(ssid=ssid_name, security=security,
|
||||
dut_data=setup_configuration,
|
||||
passkey=security_key, mode=mode, band=band,
|
||||
num_sta=1, vlan_id=vlan, ssid_channel=1)
|
||||
|
||||
@@ -346,7 +351,8 @@ class TestBridgeModeConnectivitySuiteTwo(object):
|
||||
@allure.story('wpa3_personal_mixed 5 GHZ Band')
|
||||
@pytest.mark.parametrize('execution_number', range(2))
|
||||
@allure.title("NAT Mode Client Connectivity Test with wpa3_personal_mixed encryption 5 GHz Band")
|
||||
def test_nat_wpa3_personal_mixed_5g_client_connectivity(self, get_test_library, execution_number):
|
||||
def test_nat_wpa3_personal_mixed_5g_client_connectivity(self, get_test_library, execution_number,
|
||||
setup_configuration):
|
||||
"""
|
||||
NAT Mode Client Connectivity Test with wpa3_personal_mixed encryption 5 GHz Band
|
||||
pytest -m "client_connectivity and nat and general and wpa3_personal_mixed and fiveg"
|
||||
@@ -362,6 +368,7 @@ class TestBridgeModeConnectivitySuiteTwo(object):
|
||||
band = "fiveg"
|
||||
vlan = 1
|
||||
passes, result = get_test_library.client_connectivity_test(ssid=ssid_name, security=security,
|
||||
dut_data=setup_configuration,
|
||||
passkey=security_key, mode=mode, band=band,
|
||||
num_sta=1, vlan_id=vlan, ssid_channel=1)
|
||||
|
||||
@@ -372,7 +379,8 @@ class TestBridgeModeConnectivitySuiteTwo(object):
|
||||
@allure.story('wpa wpa2 personal mixed 2.4 GHZ Band')
|
||||
@pytest.mark.parametrize('execution_number', range(2))
|
||||
@allure.title("NAT Mode Client Connectivity Test with wpa3_personal_mixed encryption 5 GHz Band")
|
||||
def test_nat_wpa_wpa2_personal_mixed_2g_client_connectivity(self, get_test_library, execution_number):
|
||||
def test_nat_wpa_wpa2_personal_mixed_2g_client_connectivity(self, get_test_library, execution_number,
|
||||
setup_configuration):
|
||||
"""
|
||||
NAT Mode Client Connectivity Test with wpa_wpa2_personal_mixed encryption 2.4 GHz Band
|
||||
pytest -m "client_connectivity and nat and general and wpa_wpa2_personal_mixed and twog"
|
||||
@@ -389,6 +397,7 @@ class TestBridgeModeConnectivitySuiteTwo(object):
|
||||
band = "twog"
|
||||
vlan = 1
|
||||
passes, result = get_test_library.client_connectivity_test(ssid=ssid_name, security=security,
|
||||
dut_data=setup_configuration,
|
||||
extra_securities=extra_secu,
|
||||
passkey=security_key, mode=mode, band=band,
|
||||
num_sta=1, vlan_id=vlan, ssid_channel=1)
|
||||
@@ -400,7 +409,8 @@ class TestBridgeModeConnectivitySuiteTwo(object):
|
||||
@allure.story('wpa wpa2 personal mixed 5 GHZ Band')
|
||||
@pytest.mark.parametrize('execution_number', range(2))
|
||||
@allure.title("NAT Mode Client Connectivity Test with wpa3_personal_mixed encryption 5 GHz Band")
|
||||
def test_nat_wpa_wpa2_personal_mixed_5g_client_connectivity(self, get_test_library, execution_number):
|
||||
def test_nat_wpa_wpa2_personal_mixed_5g_client_connectivity(self, get_test_library, execution_number,
|
||||
setup_configuration):
|
||||
"""
|
||||
NAT Mode Client Connectivity Test with wpa_wpa2_personal_mixed encryption 5 GHz Band
|
||||
pytest -m "client_connectivity and nat and general and wpa_wpa2_personal_mixed and fiveg"
|
||||
@@ -417,6 +427,7 @@ class TestBridgeModeConnectivitySuiteTwo(object):
|
||||
band = "fiveg"
|
||||
vlan = 1
|
||||
passes, result = get_test_library.client_connectivity_test(ssid=ssid_name, security=security,
|
||||
dut_data=setup_configuration,
|
||||
extra_securities=extra_secu,
|
||||
passkey=security_key, mode=mode, band=band,
|
||||
num_sta=1, vlan_id=vlan, ssid_channel=1)
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user