mirror of
https://github.com/Telecominfraproject/wlan-testing.git
synced 2025-11-02 20:07:57 +00:00
uci vlan library
Signed-off-by: shivamcandela <shivam.thakur@candelatech.com>
This commit is contained in:
@@ -256,29 +256,26 @@ class APNOS:
|
|||||||
allure.attach(name="get_redirector ", body=redirector)
|
allure.attach(name="get_redirector ", body=redirector)
|
||||||
return redirector
|
return redirector
|
||||||
|
|
||||||
def run_generic_command(self, cmd=""):
|
def run_generic_cmd(self):
|
||||||
allure.attach(name="run_generic_command ", body=cmd)
|
|
||||||
try:
|
try:
|
||||||
client = self.ssh_cli_connect()
|
client = self.ssh_cli_connect()
|
||||||
cmd = cmd
|
cmd = "ubus call ucentral status"
|
||||||
if self.mode:
|
if self.mode:
|
||||||
cmd = f"cd ~/cicd-git/ && ./openwrt_ctl.py {self.owrt_args} -t {self.tty} --action " \
|
cmd = f"cd ~/cicd-git/ && ./openwrt_ctl.py {self.owrt_args} -t {self.tty} --action " \
|
||||||
f"cmd --value \"{cmd}\" "
|
f"cmd --value \"{cmd}\" "
|
||||||
stdin, stdout, stderr = client.exec_command(cmd)
|
stdin, stdout, stderr = client.exec_command(cmd)
|
||||||
input = stdin.read().decode('utf-8').splitlines()
|
output = stdout.read()
|
||||||
output = stdout.read().decode('utf-8').splitlines()
|
output = output.decode('utf-8').splitlines()
|
||||||
error = stderr.read().decode('utf-8').splitlines()
|
allure.attach(name="get_serial_number output ", body=str(stderr))
|
||||||
|
print(output)
|
||||||
|
# serial = output[1].replace(" ", "").split("|")[1]
|
||||||
client.close()
|
client.close()
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
print(e)
|
print(e)
|
||||||
allure.attach(name="run_generic_command - Exception ", body=str(e))
|
allure.attach(name="get_serial_number - Exception ", body=str(e))
|
||||||
input = "Error"
|
serial = "Error"
|
||||||
output = "Error"
|
allure.attach(name="get_serial_number ", body=str(serial))
|
||||||
error = "Error"
|
return serial
|
||||||
allure.attach(name="run_generic_command ", body=input)
|
|
||||||
allure.attach(name="run_generic_command ", body=str(output))
|
|
||||||
allure.attach(name="run_generic_command ", body=error)
|
|
||||||
return [input, output, error]
|
|
||||||
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
@@ -292,17 +289,17 @@ if __name__ == '__main__':
|
|||||||
|
|
||||||
}
|
}
|
||||||
abc = {
|
abc = {
|
||||||
'model': 'r160',
|
'model': 'eap102',
|
||||||
'mode': 'wifi5',
|
'mode': 'wifi6',
|
||||||
'serial': 'c4411ef53f23',
|
'serial': '903cb39d6918',
|
||||||
'jumphost': True,
|
'jumphost': True,
|
||||||
'ip': "192.168.100.164", # localhost
|
'ip': "localhost", # 10.28.3.103
|
||||||
'username': "lanforge",
|
'username': "lanforge",
|
||||||
'password': "lanforge",
|
'password': "pumpkin77",
|
||||||
'port': 22, # 22,
|
'port': 8863, # 22
|
||||||
'jumphost_tty': '/dev/ttyUSB0',
|
'jumphost_tty': '/dev/ttyAP2',
|
||||||
'version': "https://tip.jfrog.io/artifactory/tip-wlan-ap-firmware/ecw5410/trunk/ecw5410-1.1.0.tar.gz"
|
'version': "https://tip.jfrog.io/artifactory/tip-wlan-ap-firmware/uCentral/edgecore_eap102/20210625-edgecore_eap102-uCentral-trunk-4225122-upgrade.bin"
|
||||||
}
|
}
|
||||||
var = APNOS(credentials=abc)
|
var = APNOS(credentials=abc)
|
||||||
# r = var.run_generic_command(cmd="ubus call wifi iface")
|
r = var.run_generic_cmd()
|
||||||
# print(r)
|
print(r)
|
||||||
@@ -204,6 +204,7 @@ class UProfileUtility:
|
|||||||
elif mode == "VLAN":
|
elif mode == "VLAN":
|
||||||
del self.base_profile_config['interfaces'][1]
|
del self.base_profile_config['interfaces'][1]
|
||||||
self.base_profile_config['interfaces'][0]['ssids'] = []
|
self.base_profile_config['interfaces'][0]['ssids'] = []
|
||||||
|
self.base_profile_config['interfaces'] = []
|
||||||
else:
|
else:
|
||||||
print("Invalid Mode")
|
print("Invalid Mode")
|
||||||
return 0
|
return 0
|
||||||
@@ -222,7 +223,6 @@ class UProfileUtility:
|
|||||||
elif self.mode == "BRIDGE":
|
elif self.mode == "BRIDGE":
|
||||||
self.base_profile_config['interfaces'][0]['ssids'].append(ssid_info)
|
self.base_profile_config['interfaces'][0]['ssids'].append(ssid_info)
|
||||||
elif self.mode == "VLAN":
|
elif self.mode == "VLAN":
|
||||||
self.base_profile_config['interfaces'] = []
|
|
||||||
vid = ssid_data["vlan"]
|
vid = ssid_data["vlan"]
|
||||||
self.vlan_section = {
|
self.vlan_section = {
|
||||||
"name": "WAN100",
|
"name": "WAN100",
|
||||||
@@ -243,21 +243,23 @@ class UProfileUtility:
|
|||||||
}
|
}
|
||||||
vlan_section = self.vlan_section
|
vlan_section = self.vlan_section
|
||||||
if vid in self.vlan_ids:
|
if vid in self.vlan_ids:
|
||||||
|
print("sss", self.vlan_ids)
|
||||||
for i in self.base_profile_config['interfaces']:
|
for i in self.base_profile_config['interfaces']:
|
||||||
if i["name"] == "WANv%s" % (vid):
|
if i["name"] == "WANv%s" % (vid):
|
||||||
i["ssids"].append(ssid_info)
|
i["ssids"].append(ssid_info)
|
||||||
else:
|
else:
|
||||||
|
print(self.vlan_ids)
|
||||||
self.vlan_ids.append(vid)
|
self.vlan_ids.append(vid)
|
||||||
vlan_section['name'] = "WANv%s" % (vid)
|
vlan_section['name'] = "WANv%s" % (vid)
|
||||||
vlan_section['vlan']['id'] = int(vid)
|
vlan_section['vlan']['id'] = int(vid)
|
||||||
vlan_section["ssids"] = []
|
vlan_section["ssids"] = []
|
||||||
self.base_profile_config['interfaces'].append(vlan_section)
|
|
||||||
vlan_section["ssids"].append(ssid_info)
|
vlan_section["ssids"].append(ssid_info)
|
||||||
# print(vlan_section)
|
self.base_profile_config['interfaces'].append(vlan_section)
|
||||||
|
print(vlan_section)
|
||||||
vsection = 0
|
vsection = 0
|
||||||
# Add to the ssid section
|
# Add to the ssid section
|
||||||
# print(self.base_profile_config)
|
# print(self.base_profile_config)
|
||||||
self.base_profile_config['interfaces'][vsection]['vlan'] = {'id': int(vid)}
|
# self.base_profile_config['interfaces'][vsection]['vlan'] = {'id': int(vid)}
|
||||||
# self.base_profile_config['interfaces'][vsection]['ssids'].append(ssid_info)
|
# self.base_profile_config['interfaces'][vsection]['ssids'].append(ssid_info)
|
||||||
else:
|
else:
|
||||||
print("invalid mode")
|
print("invalid mode")
|
||||||
@@ -269,11 +271,11 @@ class UProfileUtility:
|
|||||||
payload['serialNumber'] = serial_number
|
payload['serialNumber'] = serial_number
|
||||||
payload['UUID'] = 0
|
payload['UUID'] = 0
|
||||||
print(payload)
|
print(payload)
|
||||||
# uri = self.sdk_client.build_uri("device/" + serial_number + "/configure")
|
uri = self.sdk_client.build_uri("device/" + serial_number + "/configure")
|
||||||
# basic_cfg_str = json.dumps(payload)
|
basic_cfg_str = json.dumps(payload)
|
||||||
# resp = requests.post(uri, data=basic_cfg_str, headers=self.sdk_client.make_headers(), verify=False)
|
resp = requests.post(uri, data=basic_cfg_str, headers=self.sdk_client.make_headers(), verify=False)
|
||||||
# self.sdk_client.check_response("POST", resp, self.sdk_client.make_headers(), basic_cfg_str, uri)
|
self.sdk_client.check_response("POST", resp, self.sdk_client.make_headers(), basic_cfg_str, uri)
|
||||||
# print(resp)
|
print(resp)
|
||||||
|
|
||||||
|
|
||||||
# UCENTRAL_BASE_CFG = {
|
# UCENTRAL_BASE_CFG = {
|
||||||
@@ -424,19 +426,19 @@ controller = {
|
|||||||
# "rf": {},
|
# "rf": {},
|
||||||
# "radius": False
|
# "radius": False
|
||||||
# }
|
# }
|
||||||
obj = UController(controller_data=controller)
|
# obj = UController(controller_data=controller)
|
||||||
# # # print(obj.get_devices())
|
# # # # # print(obj.get_devices())
|
||||||
# # # print(obj.get_device_uuid(serial_number="903cb3944873"))
|
# # # # # print(obj.get_device_uuid(serial_number="903cb3944873"))
|
||||||
# # # obj.get_device_uuid(serial_number="c4411ef53f23")
|
# # # # # obj.get_device_uuid(serial_number="c4411ef53f23")
|
||||||
profile_client = UProfileUtility(sdk_client=obj)
|
# profile_client = UProfileUtility(sdk_client=obj)
|
||||||
profile_client.set_radio_config()
|
# profile_client.set_radio_config()
|
||||||
profile_client.set_mode(mode="VLAN")
|
# profile_client.set_mode(mode="VLAN")
|
||||||
ssid_data = {"ssid_name": "ssid_wpa_test_3_vlan", "vlan": 100, "appliedRadios": ["2G", "5G"], "security_key": "something", "security": "none"}
|
# ssid_data = {"ssid_name": "ssid_wpa_test_3_vlan", "vlan": 100, "appliedRadios": ["2G", "5G"], "security_key": "something", "security": "none"}
|
||||||
profile_client.add_ssid(ssid_data=ssid_data)
|
# profile_client.add_ssid(ssid_data=ssid_data)
|
||||||
ssid_data = {"ssid_name": "ssid_wpa_test_4_vlan", "vlan": 200, "appliedRadios": ["2G", "5G"], "security_key": "something", "security": "none"}
|
# ssid_data = {"ssid_name": "ssid_wpa_test_4_vlan", "vlan": 100, "appliedRadios": ["2G", "5G"], "security_key": "something", "security": "none"}
|
||||||
profile_client.add_ssid(ssid_data=ssid_data)
|
# profile_client.add_ssid(ssid_data=ssid_data)
|
||||||
# print(profile_client.base_profile_config)
|
# # # print(profile_client.base_profile_config)
|
||||||
profile_client.push_config(serial_number="903cb39d6918")
|
# profile_client.push_config(serial_number="903cb39d6918")
|
||||||
# print(profile_client.base_profile_config)
|
# print(profile_client.base_profile_config)
|
||||||
# equipments = obj.get_devices()
|
# equipments = obj.get_devices()
|
||||||
# print(equipments)
|
# print(equipments)
|
||||||
|
|||||||
@@ -14,15 +14,15 @@ pytestmark = [pytest.mark.client_connectivity, pytest.mark.bridge, pytest.mark.g
|
|||||||
setup_params_general = {
|
setup_params_general = {
|
||||||
"mode": "BRIDGE",
|
"mode": "BRIDGE",
|
||||||
"ssid_modes": {
|
"ssid_modes": {
|
||||||
"open": [{"ssid_name": "ssid_open_2g", "appliedRadios": ["is2dot4GHz"], "security_key": "something", },
|
"open": [{"ssid_name": "ssid_open_2g_br", "appliedRadios": ["is2dot4GHz"], "security_key": "something", },
|
||||||
{"ssid_name": "ssid_open_5g", "appliedRadios": ["is5GHzU", "is5GHz", "is5GHzL"],
|
{"ssid_name": "ssid_open_5g_br", "appliedRadios": ["is5GHzU", "is5GHz", "is5GHzL"],
|
||||||
"security_key": "something", }],
|
"security_key": "something", }],
|
||||||
"wpa": [{"ssid_name": "ssid_wpa_2g", "appliedRadios": ["is2dot4GHz"], "security_key": "something"},
|
"wpa": [{"ssid_name": "ssid_wpa_2g_br", "appliedRadios": ["is2dot4GHz"], "security_key": "something"},
|
||||||
{"ssid_name": "ssid_wpa_5g", "appliedRadios": ["is5GHzU", "is5GHz", "is5GHzL"],
|
{"ssid_name": "ssid_wpa_5g_br", "appliedRadios": ["is5GHzU", "is5GHz", "is5GHzL"],
|
||||||
"security_key": "something"}],
|
"security_key": "something"}],
|
||||||
"wpa2_personal": [
|
"wpa2_personal": [
|
||||||
{"ssid_name": "ssid_wpa2_2g", "appliedRadios": ["is2dot4GHz"], "security_key": "something"},
|
{"ssid_name": "ssid_wpa2_2g_br", "appliedRadios": ["is2dot4GHz"], "security_key": "something"},
|
||||||
{"ssid_name": "ssid_wpa2_5g", "appliedRadios": ["is5GHzU", "is5GHz", "is5GHzL"],
|
{"ssid_name": "ssid_wpa2_5g_br", "appliedRadios": ["is5GHzU", "is5GHz", "is5GHzL"],
|
||||||
"security_key": "something"}]},
|
"security_key": "something"}]},
|
||||||
"rf": {},
|
"rf": {},
|
||||||
"radius": False
|
"radius": False
|
||||||
|
|||||||
@@ -13,20 +13,21 @@ pytestmark = [pytest.mark.client_connectivity, pytest.mark.nat, pytest.mark.gene
|
|||||||
setup_params_general = {
|
setup_params_general = {
|
||||||
"mode": "NAT",
|
"mode": "NAT",
|
||||||
"ssid_modes": {
|
"ssid_modes": {
|
||||||
"open": [{"ssid_name": "ssid_open_2g", "appliedRadios": ["is2dot4GHz"], "security_key": "something"},
|
"open": [{"ssid_name": "ssid_open_2g_nat", "appliedRadios": ["is2dot4GHz"], "security_key": "something"},
|
||||||
{"ssid_name": "ssid_open_5g", "appliedRadios": ["is5GHzU", "is5GHz", "is5GHzL"],
|
{"ssid_name": "ssid_open_5g_nat", "appliedRadios": ["is5GHzU", "is5GHz", "is5GHzL"],
|
||||||
"security_key": "something"}],
|
"security_key": "something"}],
|
||||||
"wpa": [{"ssid_name": "ssid_wpa_2g", "appliedRadios": ["is2dot4GHz"], "security_key": "something"},
|
"wpa": [{"ssid_name": "ssid_wpa_2g_nat", "appliedRadios": ["is2dot4GHz"], "security_key": "something"},
|
||||||
{"ssid_name": "ssid_wpa_5g", "appliedRadios": ["is5GHzU", "is5GHz", "is5GHzL"],
|
{"ssid_name": "ssid_wpa_5g_nat", "appliedRadios": ["is5GHzU", "is5GHz", "is5GHzL"],
|
||||||
"security_key": "something"}],
|
"security_key": "something"}],
|
||||||
"wpa2_personal": [
|
"wpa2_personal": [
|
||||||
{"ssid_name": "ssid_wpa2_2g", "appliedRadios": ["is2dot4GHz"], "security_key": "something"},
|
{"ssid_name": "ssid_wpa2_2g_nat", "appliedRadios": ["is2dot4GHz"], "security_key": "something"},
|
||||||
{"ssid_name": "ssid_wpa2_5g", "appliedRadios": ["is5GHzU", "is5GHz", "is5GHzL"],
|
{"ssid_name": "ssid_wpa2_5g_nat", "appliedRadios": ["is5GHzU", "is5GHz", "is5GHzL"],
|
||||||
"security_key": "something"}]},
|
"security_key": "something"}]},
|
||||||
"rf": {},
|
"rf": {},
|
||||||
"radius": False
|
"radius": False
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@pytest.mark.uc_sanity
|
@pytest.mark.uc_sanity
|
||||||
@pytest.mark.suiteA
|
@pytest.mark.suiteA
|
||||||
@pytest.mark.sanity_ucentral
|
@pytest.mark.sanity_ucentral
|
||||||
@@ -46,7 +47,8 @@ class TestNATModeConnectivitySuiteA(object):
|
|||||||
@pytest.mark.open
|
@pytest.mark.open
|
||||||
@pytest.mark.twog
|
@pytest.mark.twog
|
||||||
@allure.story('open 2.4 GHZ Band')
|
@allure.story('open 2.4 GHZ Band')
|
||||||
def test_open_ssid_2g(self, get_vif_state,setup_profiles, get_lanforge_data, lf_test, update_report, station_names_twog,
|
def test_open_ssid_2g(self, get_vif_state, setup_profiles, get_lanforge_data, lf_test, update_report,
|
||||||
|
station_names_twog,
|
||||||
test_cases):
|
test_cases):
|
||||||
"""Client Connectivity open ssid 2.4G
|
"""Client Connectivity open ssid 2.4G
|
||||||
pytest -m "client_connectivity and nat and general and open and twog"
|
pytest -m "client_connectivity and nat and general and open and twog"
|
||||||
@@ -81,7 +83,8 @@ class TestNATModeConnectivitySuiteA(object):
|
|||||||
@pytest.mark.open
|
@pytest.mark.open
|
||||||
@pytest.mark.fiveg
|
@pytest.mark.fiveg
|
||||||
@allure.story('open 5 GHZ Band')
|
@allure.story('open 5 GHZ Band')
|
||||||
def test_open_ssid_5g(self, get_vif_state,get_lanforge_data, lf_test, test_cases, station_names_fiveg, update_report):
|
def test_open_ssid_5g(self, get_vif_state, get_lanforge_data, lf_test, test_cases, station_names_fiveg,
|
||||||
|
update_report):
|
||||||
"""Client Connectivity open ssid 5G
|
"""Client Connectivity open ssid 5G
|
||||||
pytest -m "client_connectivity and bridge and general and open and fiveg"
|
pytest -m "client_connectivity and bridge and general and open and fiveg"
|
||||||
"""
|
"""
|
||||||
@@ -116,7 +119,7 @@ class TestNATModeConnectivitySuiteA(object):
|
|||||||
@pytest.mark.wpa
|
@pytest.mark.wpa
|
||||||
@pytest.mark.twog
|
@pytest.mark.twog
|
||||||
@allure.story('wpa 2.4 GHZ Band')
|
@allure.story('wpa 2.4 GHZ Band')
|
||||||
def test_wpa_ssid_2g(self, get_vif_state,get_lanforge_data, update_report,
|
def test_wpa_ssid_2g(self, get_vif_state, get_lanforge_data, update_report,
|
||||||
lf_test, test_cases, station_names_twog):
|
lf_test, test_cases, station_names_twog):
|
||||||
"""Client Connectivity wpa ssid 2.4G
|
"""Client Connectivity wpa ssid 2.4G
|
||||||
pytest -m "client_connectivity and bridge and general and wpa and twog"
|
pytest -m "client_connectivity and bridge and general and wpa and twog"
|
||||||
@@ -152,7 +155,8 @@ class TestNATModeConnectivitySuiteA(object):
|
|||||||
@pytest.mark.wpa
|
@pytest.mark.wpa
|
||||||
@pytest.mark.fiveg
|
@pytest.mark.fiveg
|
||||||
@allure.story('wpa 5 GHZ Band')
|
@allure.story('wpa 5 GHZ Band')
|
||||||
def test_wpa_ssid_5g(self, get_vif_state,lf_test, update_report, test_cases, station_names_fiveg, get_lanforge_data):
|
def test_wpa_ssid_5g(self, get_vif_state, lf_test, update_report, test_cases, station_names_fiveg,
|
||||||
|
get_lanforge_data):
|
||||||
"""Client Connectivity wpa ssid 5G
|
"""Client Connectivity wpa ssid 5G
|
||||||
pytest -m "client_connectivity and bridge and general and wpa and fiveg"
|
pytest -m "client_connectivity and bridge and general and wpa and fiveg"
|
||||||
"""
|
"""
|
||||||
@@ -187,7 +191,7 @@ class TestNATModeConnectivitySuiteA(object):
|
|||||||
@pytest.mark.wpa2_personal
|
@pytest.mark.wpa2_personal
|
||||||
@pytest.mark.twog
|
@pytest.mark.twog
|
||||||
@allure.story('wpa2_personal 2.4 GHZ Band')
|
@allure.story('wpa2_personal 2.4 GHZ Band')
|
||||||
def test_wpa2_personal_ssid_2g(self, get_vif_state,get_lanforge_data, lf_test, update_report, test_cases,
|
def test_wpa2_personal_ssid_2g(self, get_vif_state, get_lanforge_data, lf_test, update_report, test_cases,
|
||||||
station_names_twog):
|
station_names_twog):
|
||||||
"""Client Connectivity wpa2_personal ssid 2.4G
|
"""Client Connectivity wpa2_personal ssid 2.4G
|
||||||
pytest -m "client_connectivity and bridge and general and wpa2_personal and twog"
|
pytest -m "client_connectivity and bridge and general and wpa2_personal and twog"
|
||||||
@@ -223,7 +227,8 @@ class TestNATModeConnectivitySuiteA(object):
|
|||||||
@pytest.mark.wpa2_personal
|
@pytest.mark.wpa2_personal
|
||||||
@pytest.mark.fiveg
|
@pytest.mark.fiveg
|
||||||
@allure.story('wpa2_personal 5 GHZ Band')
|
@allure.story('wpa2_personal 5 GHZ Band')
|
||||||
def test_wpa2_personal_ssid_5g(self, get_vif_state,get_lanforge_data, update_report, test_cases, station_names_fiveg,
|
def test_wpa2_personal_ssid_5g(self, get_vif_state, get_lanforge_data, update_report, test_cases,
|
||||||
|
station_names_fiveg,
|
||||||
lf_test):
|
lf_test):
|
||||||
"""Client Connectivity wpa2_personal ssid 5G
|
"""Client Connectivity wpa2_personal ssid 5G
|
||||||
pytest -m "client_connectivity and bridge and general and wpa2_personal and fiveg"
|
pytest -m "client_connectivity and bridge and general and wpa2_personal and fiveg"
|
||||||
@@ -294,7 +299,8 @@ class TestBridgeModeConnectivitySuiteB(object):
|
|||||||
@pytest.mark.wpa3_personal
|
@pytest.mark.wpa3_personal
|
||||||
@pytest.mark.twog
|
@pytest.mark.twog
|
||||||
@allure.story('open 2.4 GHZ Band')
|
@allure.story('open 2.4 GHZ Band')
|
||||||
def test_wpa3_personal_ssid_2g(self, get_vif_state,station_names_twog, setup_profiles, get_lanforge_data, lf_test, update_report,
|
def test_wpa3_personal_ssid_2g(self, get_vif_state, station_names_twog, setup_profiles, get_lanforge_data, lf_test,
|
||||||
|
update_report,
|
||||||
test_cases):
|
test_cases):
|
||||||
"""Client Connectivity open ssid 2.4G
|
"""Client Connectivity open ssid 2.4G
|
||||||
pytest -m "client_connectivity and bridge and general and wpa3_personal and twog"
|
pytest -m "client_connectivity and bridge and general and wpa3_personal and twog"
|
||||||
@@ -328,7 +334,8 @@ class TestBridgeModeConnectivitySuiteB(object):
|
|||||||
@pytest.mark.wpa3_personal
|
@pytest.mark.wpa3_personal
|
||||||
@pytest.mark.fiveg
|
@pytest.mark.fiveg
|
||||||
@allure.story('open 5 GHZ Band')
|
@allure.story('open 5 GHZ Band')
|
||||||
def test_wpa3_personal_ssid_5g(self, get_vif_state,station_names_fiveg, get_lanforge_data, lf_test, test_cases, update_report):
|
def test_wpa3_personal_ssid_5g(self, get_vif_state, station_names_fiveg, get_lanforge_data, lf_test, test_cases,
|
||||||
|
update_report):
|
||||||
"""Client Connectivity open ssid 2.4G
|
"""Client Connectivity open ssid 2.4G
|
||||||
pytest -m "client_connectivity and bridge and general and wpa3_personal and fiveg"
|
pytest -m "client_connectivity and bridge and general and wpa3_personal and fiveg"
|
||||||
"""
|
"""
|
||||||
@@ -361,7 +368,8 @@ class TestBridgeModeConnectivitySuiteB(object):
|
|||||||
@pytest.mark.wpa3_personal_mixed
|
@pytest.mark.wpa3_personal_mixed
|
||||||
@pytest.mark.twog
|
@pytest.mark.twog
|
||||||
@allure.story('open 2.4 GHZ Band')
|
@allure.story('open 2.4 GHZ Band')
|
||||||
def test_wpa3_personal_mixed_ssid_2g(self, get_vif_state,station_names_twog, setup_profiles, get_lanforge_data, lf_test,
|
def test_wpa3_personal_mixed_ssid_2g(self, get_vif_state, station_names_twog, setup_profiles, get_lanforge_data,
|
||||||
|
lf_test,
|
||||||
update_report,
|
update_report,
|
||||||
test_cases):
|
test_cases):
|
||||||
"""Client Connectivity open ssid 2.4G
|
"""Client Connectivity open ssid 2.4G
|
||||||
@@ -396,7 +404,8 @@ class TestBridgeModeConnectivitySuiteB(object):
|
|||||||
@pytest.mark.wpa3_personal_mixed
|
@pytest.mark.wpa3_personal_mixed
|
||||||
@pytest.mark.fiveg
|
@pytest.mark.fiveg
|
||||||
@allure.story('open 5 GHZ Band')
|
@allure.story('open 5 GHZ Band')
|
||||||
def test_wpa3_personal_mixed_ssid_5g(self, get_vif_state,station_names_fiveg, get_lanforge_data, lf_test, test_cases,
|
def test_wpa3_personal_mixed_ssid_5g(self, get_vif_state, station_names_fiveg, get_lanforge_data, lf_test,
|
||||||
|
test_cases,
|
||||||
update_report):
|
update_report):
|
||||||
"""Client Connectivity open ssid 2.4G
|
"""Client Connectivity open ssid 2.4G
|
||||||
pytest -m "client_connectivity and bridge and general and wpa3_personal_mixed and fiveg"
|
pytest -m "client_connectivity and bridge and general and wpa3_personal_mixed and fiveg"
|
||||||
@@ -430,7 +439,8 @@ class TestBridgeModeConnectivitySuiteB(object):
|
|||||||
@pytest.mark.wpa_wpa2_personal_mixed
|
@pytest.mark.wpa_wpa2_personal_mixed
|
||||||
@pytest.mark.twog
|
@pytest.mark.twog
|
||||||
@allure.story('wpa wpa2 personal mixed 2.4 GHZ Band')
|
@allure.story('wpa wpa2 personal mixed 2.4 GHZ Band')
|
||||||
def test_wpa_wpa2_personal_ssid_2g(self, get_vif_state,station_names_twog, setup_profiles, get_lanforge_data, lf_test,
|
def test_wpa_wpa2_personal_ssid_2g(self, get_vif_state, station_names_twog, setup_profiles, get_lanforge_data,
|
||||||
|
lf_test,
|
||||||
update_report,
|
update_report,
|
||||||
test_cases):
|
test_cases):
|
||||||
"""Client Connectivity open ssid 2.4G
|
"""Client Connectivity open ssid 2.4G
|
||||||
@@ -466,7 +476,7 @@ class TestBridgeModeConnectivitySuiteB(object):
|
|||||||
@pytest.mark.wpa_wpa2_personal_mixed
|
@pytest.mark.wpa_wpa2_personal_mixed
|
||||||
@pytest.mark.fiveg
|
@pytest.mark.fiveg
|
||||||
@allure.story('wpa wpa2 personal mixed 5 GHZ Band')
|
@allure.story('wpa wpa2 personal mixed 5 GHZ Band')
|
||||||
def test_wpa_wpa2_personal_ssid_5g(self, get_vif_state,station_names_fiveg, get_lanforge_data, lf_test, test_cases,
|
def test_wpa_wpa2_personal_ssid_5g(self, get_vif_state, station_names_fiveg, get_lanforge_data, lf_test, test_cases,
|
||||||
update_report):
|
update_report):
|
||||||
"""Client Connectivity open ssid 2.4G
|
"""Client Connectivity open ssid 2.4G
|
||||||
pytest -m "client_connectivity and bridge and general and wpa_wpa2_personal_mixed and fiveg"
|
pytest -m "client_connectivity and bridge and general and wpa_wpa2_personal_mixed and fiveg"
|
||||||
@@ -580,17 +590,12 @@ class TestBridgeModeConnectivitySuiteB(object):
|
|||||||
# assert passes
|
# assert passes
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
setup_params_general = {
|
setup_params_general = {
|
||||||
"mode": "NAT",
|
"mode": "NAT",
|
||||||
"ssid_modes": {
|
"ssid_modes": {
|
||||||
"open": [{"ssid_name": "ssid_open_2g", "appliedRadios": ["is2dot4GHz"], "security_key": "something"},
|
"open": [{"ssid_name": "ssid_open_2g", "appliedRadios": ["is2dot4GHz"], "security_key": "something"},
|
||||||
{"ssid_name": "ssid_open_5g", "appliedRadios": ["is5GHzU", "is5GHz", "is5GHzL"], "security_key": "something"}],
|
{"ssid_name": "ssid_open_5g", "appliedRadios": ["is5GHzU", "is5GHz", "is5GHzL"],
|
||||||
|
"security_key": "something"}],
|
||||||
"wpa": [{"ssid_name": "ssid_wpa_2g", "appliedRadios": ["is2dot4GHz"], "security_key": "something"},
|
"wpa": [{"ssid_name": "ssid_wpa_2g", "appliedRadios": ["is2dot4GHz"], "security_key": "something"},
|
||||||
{"ssid_name": "ssid_wpa_5g", "appliedRadios": ["is5GHzU", "is5GHz", "is5GHzL"],
|
{"ssid_name": "ssid_wpa_5g", "appliedRadios": ["is5GHzU", "is5GHz", "is5GHzL"],
|
||||||
"security_key": "something"}],
|
"security_key": "something"}],
|
||||||
@@ -642,4 +647,4 @@ class TestSomthing(object):
|
|||||||
@pytest.mark.wpa2_personal
|
@pytest.mark.wpa2_personal
|
||||||
@pytest.mark.fiveg
|
@pytest.mark.fiveg
|
||||||
def test_wpa2_personal_5g(self):
|
def test_wpa2_personal_5g(self):
|
||||||
assert True
|
assert True
|
||||||
|
|||||||
@@ -14,14 +14,14 @@ pytestmark = [pytest.mark.client_connectivity, pytest.mark.vlan, pytest.mark.gen
|
|||||||
setup_params_general = {
|
setup_params_general = {
|
||||||
"mode": "VLAN",
|
"mode": "VLAN",
|
||||||
"ssid_modes": {
|
"ssid_modes": {
|
||||||
"open": [{"ssid_name": "ssid_open_2g", "appliedRadios": ["is2dot4GHz"], "security_key": "something", "vlan": 100},
|
"open": [{"ssid_name": "ssid_open_2g_vlan", "appliedRadios": ["is2dot4GHz"], "security_key": "something", "vlan": 100},
|
||||||
{"ssid_name": "ssid_open_5g", "appliedRadios": ["is5GHzU", "is5GHz", "is5GHzL"], "security_key": "something", "vlan": 100}],
|
{"ssid_name": "ssid_open_5g_vlan", "appliedRadios": ["is5GHzU", "is5GHz", "is5GHzL"], "security_key": "something", "vlan": 100}],
|
||||||
"wpa": [{"ssid_name": "ssid_wpa_2g", "appliedRadios": ["is2dot4GHz"], "security_key": "something", "vlan": 100},
|
"wpa": [{"ssid_name": "ssid_wpa_2g_vlan", "appliedRadios": ["is2dot4GHz"], "security_key": "something", "vlan": 100},
|
||||||
{"ssid_name": "ssid_wpa_5g", "appliedRadios": ["is5GHzU", "is5GHz", "is5GHzL"],
|
{"ssid_name": "ssid_wpa_5g_vlan", "appliedRadios": ["is5GHzU", "is5GHz", "is5GHzL"],
|
||||||
"security_key": "something", "vlan": 100}],
|
"security_key": "something", "vlan": 100}],
|
||||||
"wpa2_personal": [
|
"wpa2_personal": [
|
||||||
{"ssid_name": "ssid_wpa2_2g", "appliedRadios": ["is2dot4GHz"], "security_key": "something", "vlan": 100},
|
{"ssid_name": "ssid_wpa2_2g_vlan", "appliedRadios": ["is2dot4GHz"], "security_key": "something", "vlan": 100},
|
||||||
{"ssid_name": "ssid_wpa2_5g", "appliedRadios": ["is5GHzU", "is5GHz", "is5GHzL"],
|
{"ssid_name": "ssid_wpa2_5g_vlan", "appliedRadios": ["is5GHzU", "is5GHz", "is5GHzL"],
|
||||||
"security_key": "something", "vlan": 100}]},
|
"security_key": "something", "vlan": 100}]},
|
||||||
"rf": {},
|
"rf": {},
|
||||||
"radius": False
|
"radius": False
|
||||||
|
|||||||
Reference in New Issue
Block a user