usanity vlan code improvements

Signed-off-by: shivamcandela <shivam.thakur@candelatech.com>
This commit is contained in:
shivamcandela
2021-06-28 08:17:33 +05:30
parent 83c02b3b9f
commit 34fbf7adf3
5 changed files with 144 additions and 106 deletions

View File

@@ -189,6 +189,7 @@ class UProfileUtility:
"channel-width": 80,
# "channel": 36
})
self.vlan_ids = []
def set_mode(self, mode):
self.mode = mode
@@ -206,6 +207,7 @@ class UProfileUtility:
return 0
def add_ssid(self, ssid_data):
print("ssid data : ", ssid_data)
ssid_info = {'name': ssid_data["ssid_name"], "bss-mode": "ap", "wifi-bands": []}
for i in ssid_data["appliedRadios"]:
ssid_info["wifi-bands"].append(i)
@@ -219,22 +221,8 @@ class UProfileUtility:
self.base_profile_config['interfaces'][0]['ssids'].append(ssid_info)
elif self.mode == "VLAN":
vid = ssid_data["vlan"]
vlan_section = {
"role": "upstream",
"vlan": {
"id": 100
},
"ethernet": [
{
"select-ports": [
"WAN*"
]
}
],
"ipv4": {
"addressing": "dynamic"
}
}
self.vlan_ids.append(vid)
vlan_section = self.vlan_section
vlan_section['name'] = "WANv%s" % (vid)
vlan_section['vlan']['id'] = int(vid)
self.base_profile_config['interfaces'].append(vlan_section)
@@ -243,7 +231,6 @@ class UProfileUtility:
print(self.base_profile_config)
self.base_profile_config['interfaces'][vsection]['vlan'] = {'id': int(vid)}
self.base_profile_config['interfaces'][0]['ssids'].append(ssid_info)
pass
else:
print("invalid mode")
pytest.exit("invalid Operating Mode")
@@ -391,14 +378,14 @@ class UProfileUtility:
# }
# }
#
# controller = {
# # 'url': "https://tip-f34.candelatech.com:16001/api/v1/oauth2", # API base url for the controller
# 'url': 'https://sdk-ucentral-2.cicd.lab.wlan.tip.build:16001/api/v1/oauth2',
# 'username': "tip@ucentral.com",
# 'password': 'openwifi',
# # 'version': "1.1.0-SNAPSHOT",
# # 'commit_date': "2021-04-27"
# }
controller = {
# 'url': "https://tip-f34.candelatech.com:16001/api/v1/oauth2", # API base url for the controller
'url': 'https://sdk-ucentral-2.cicd.lab.wlan.tip.build:16001/api/v1/oauth2',
'username': "tip@ucentral.com",
'password': 'openwifi',
# 'version': "1.1.0-SNAPSHOT",
# 'commit_date': "2021-04-27"
}
# profile_data = {
# "mode": "BRIDGE",
# "ssid_modes": {
@@ -410,16 +397,18 @@ class UProfileUtility:
# "radius": False
# }
# obj = UController(controller_data=controller)
# print(obj.get_devices())
# print(obj.get_device_uuid(serial_number="903cb3944873"))
# obj.get_device_uuid(serial_number="c4411ef53f23")
# # # print(obj.get_devices())
# # # print(obj.get_device_uuid(serial_number="903cb3944873"))
# # # obj.get_device_uuid(serial_number="c4411ef53f23")
# profile_client = UProfileUtility(sdk_client=obj)
# profile_client.set_radio_config()
# 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"}
# profile_client.add_ssid(ssid_data=ssid_data)
# 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)
# print(profile_client.base_profile_config)
# profile_client.push_config(serial_number="903cb3944873")
# profile_client.push_config(serial_number="903cb39d6918")
# print(profile_client.base_profile_config)
# equipments = obj.get_devices()
# print(equipments)

View File

@@ -199,6 +199,44 @@ CONFIGURATION = {
"AX-Station-Name": "ax"
}
}
},
"basic-06": {
"controller": {
'url': 'https://sdk-ucentral-2.cicd.lab.wlan.tip.build:16001/api/v1/oauth2', # API base url for the controller
'username': "tip@ucentral.com",
'password': 'openwifi',
},
'access_point': [
{
'model': 'eap102',
'mode': 'wifi6',
'serial': '903cb39d6918',
'jumphost': True,
'ip': "localhost", # 10.28.3.103
'username': "lanforge",
'password': "pumpkin77",
'port': 8863, # 22
'jumphost_tty': '/dev/ttyAP2',
'version': "https://tip.jfrog.io/artifactory/tip-wlan-ap-firmware/uCentral/edgecore_eap102/20210625-edgecore_eap102-uCentral-trunk-4225122-upgrade.bin"
}
],
"traffic_generator": {
"name": "lanforge",
"details": {
"ip": "localhost", # 10.28.3.30
"port": 8862, # 8080
"ssh_port": 8864,
"2.4G-Radio": ["wiphy4"],
"5G-Radio": ["wiphy5"],
"AX-Radio": ["wiphy0", "wiphy1", "wiphy2", "wiphy3"],
"upstream": "1.1.eth2",
"upstream_subnet": "10.28.2.1/24",
"uplink": "1.1.eth3",
"2.4G-Station-Name": "wlan0",
"5G-Station-Name": "wlan0",
"AX-Station-Name": "ax"
}
}
}
}

View File

@@ -79,7 +79,7 @@ def setup_profiles(request, setup_controller, testbed, setup_vlan, get_equipment
instantiate_profile.set_mode(mode=mode)
vlan_id = 1
if parameter['mode'] == "VLAN":
mode = "BRIDGE"
mode = "VLAN"
instantiate_profile.set_mode(mode=mode)
vlan_id = setup_vlan
profile_data["ssid"] = {}
@@ -94,19 +94,12 @@ def setup_profiles(request, setup_controller, testbed, setup_vlan, get_equipment
for j in profile_data["ssid"][mode]:
if mode in get_markers.keys() and get_markers[mode]:
try:
print("inside wpa")
if "is2dot4GHz" in j["appliedRadios"]:
j["appliedRadios"].remove("is2dot4GHz")
j["appliedRadios"].append("2G")
if "is5GHzL" in j["appliedRadios"]:
j["appliedRadios"].remove("is5GHzL")
# list(j["appliedRadios"]).append("2G")
if "is5GHzU" in j["appliedRadios"]:
j["appliedRadios"].remove("is5GHzU")
# list(j["appliedRadios"]).append("2G")
if "is5GHz" in j["appliedRadios"]:
j["appliedRadios"].remove("is5GHz")
j["appliedRadios"].append("5G")
for i in range(len(j["appliedRadios"])):
j["appliedRadios"][i] = j["appliedRadios"][i].replace("is5GHzU", "5G")
j["appliedRadios"][i] = j["appliedRadios"][i].replace("is5GHzL", "5G")
j["appliedRadios"][i] = j["appliedRadios"][i].replace("is5GHz", "5G")
j["appliedRadios"][i] = j["appliedRadios"][i].replace("is2dot4GHz", "2G")
j["appliedRadios"] = list(set(j["appliedRadios"]))
j['security'] = 'none'
lf_dut_data.append(j)
creates_profile = instantiate_profile.add_ssid(ssid_data=j)
@@ -122,19 +115,12 @@ def setup_profiles(request, setup_controller, testbed, setup_vlan, get_equipment
for j in profile_data["ssid"][mode]:
if mode in get_markers.keys() and get_markers[mode]:
try:
print("inside wpa")
if "is2dot4GHz" in j["appliedRadios"]:
j["appliedRadios"].remove("is2dot4GHz")
j["appliedRadios"].append("2G")
if "is5GHzL" in j["appliedRadios"]:
j["appliedRadios"].remove("is5GHzL")
# list(j["appliedRadios"]).append("2G")
if "is5GHzU" in j["appliedRadios"]:
j["appliedRadios"].remove("is5GHzU")
# list(j["appliedRadios"]).append("2G")
if "is5GHz" in j["appliedRadios"]:
j["appliedRadios"].remove("is5GHz")
j["appliedRadios"].append("5G")
for i in range(len(j["appliedRadios"])):
j["appliedRadios"][i] = j["appliedRadios"][i].replace("is5GHzU", "5G")
j["appliedRadios"][i] = j["appliedRadios"][i].replace("is5GHzL", "5G")
j["appliedRadios"][i] = j["appliedRadios"][i].replace("is5GHz", "5G")
j["appliedRadios"][i] = j["appliedRadios"][i].replace("is2dot4GHz", "2G")
j["appliedRadios"] = list(set(j["appliedRadios"]))
j['security'] = 'psk'
lf_dut_data.append(j)
creates_profile = instantiate_profile.add_ssid(ssid_data=j)
@@ -150,19 +136,12 @@ def setup_profiles(request, setup_controller, testbed, setup_vlan, get_equipment
for j in profile_data["ssid"][mode]:
if mode in get_markers.keys() and get_markers[mode]:
try:
if "is2dot4GHz" in j["appliedRadios"]:
j["appliedRadios"].remove("is2dot4GHz")
j["appliedRadios"].append("2G")
if "is5GHzL" in j["appliedRadios"]:
j["appliedRadios"].remove("is5GHzL")
# list(j["appliedRadios"]).append("2G")
if "is5GHzU" in j["appliedRadios"]:
j["appliedRadios"].remove("is5GHzU")
# list(j["appliedRadios"]).append("2G")
if "is5GHz" in j["appliedRadios"]:
j["appliedRadios"].remove("is5GHz")
j["appliedRadios"].append("5G")
for i in range(len(j["appliedRadios"])):
j["appliedRadios"][i] = j["appliedRadios"][i].replace("is5GHzU", "5G")
j["appliedRadios"][i] = j["appliedRadios"][i].replace("is5GHzL", "5G")
j["appliedRadios"][i] = j["appliedRadios"][i].replace("is5GHz", "5G")
j["appliedRadios"][i] = j["appliedRadios"][i].replace("is2dot4GHz", "2G")
j["appliedRadios"] = list(set(j["appliedRadios"]))
j['security'] = 'psk2'
lf_dut_data.append(j)
print("shivam: ", j)
@@ -175,7 +154,6 @@ def setup_profiles(request, setup_controller, testbed, setup_vlan, get_equipment
test_cases["wpa2_personal"] = False
allure.attach(body=str(e),
name="SSID Profile Creation Failed")
print("sss", get_equipment_id)
instantiate_profile.push_config(serial_number=get_equipment_id[0])
yield True

View File

@@ -8,14 +8,15 @@
import allure
import pytest
pytestmark = [pytest.mark.client_connectivity, pytest.mark.bridge, pytest.mark.general, pytest.mark.sanity,
pytest.mark.usefixtures("setup_test_run")]
pytestmark = [pytest.mark.client_connectivity, pytest.mark.bridge, pytest.mark.general,
pytest.mark.sanity] # pytest.mark.usefixtures("setup_test_run")]
setup_params_general = {
"mode": "BRIDGE",
"ssid_modes": {
"open": [{"ssid_name": "ssid_open_2g", "appliedRadios": ["is2dot4GHz"]},
{"ssid_name": "ssid_open_5g", "appliedRadios": ["is5GHzU", "is5GHz", "is5GHzL"]}],
"open": [{"ssid_name": "ssid_open_2g", "appliedRadios": ["is2dot4GHz"], "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"},
{"ssid_name": "ssid_wpa_5g", "appliedRadios": ["is5GHzU", "is5GHz", "is5GHzL"],
"security_key": "something"}],
@@ -27,6 +28,7 @@ setup_params_general = {
"radius": False
}
@pytest.mark.uc_sanity
@pytest.mark.suiteA
@allure.feature("BRIDGE MODE CLIENT CONNECTIVITY")
@@ -45,7 +47,8 @@ class TestBridgeModeConnectivitySuiteA(object):
@pytest.mark.open
@pytest.mark.twog
@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):
"""Client Connectivity open ssid 2.4G
pytest -m "client_connectivity and bridge and general and open and twog"
@@ -57,6 +60,7 @@ class TestBridgeModeConnectivitySuiteA(object):
mode = "BRIDGE"
band = "twog"
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")
@@ -79,7 +83,8 @@ class TestBridgeModeConnectivitySuiteA(object):
@pytest.mark.open
@pytest.mark.fiveg
@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
pytest -m "client_connectivity and bridge and general and open and fiveg"
"""
@@ -90,6 +95,7 @@ class TestBridgeModeConnectivitySuiteA(object):
mode = "BRIDGE"
band = "fiveg"
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")
@@ -113,7 +119,7 @@ class TestBridgeModeConnectivitySuiteA(object):
@pytest.mark.wpa
@pytest.mark.twog
@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):
"""Client Connectivity wpa ssid 2.4G
pytest -m "client_connectivity and bridge and general and wpa and twog"
@@ -125,6 +131,7 @@ class TestBridgeModeConnectivitySuiteA(object):
mode = "BRIDGE"
band = "twog"
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")
@@ -148,7 +155,8 @@ class TestBridgeModeConnectivitySuiteA(object):
@pytest.mark.wpa
@pytest.mark.fiveg
@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
pytest -m "client_connectivity and bridge and general and wpa and fiveg"
"""
@@ -159,6 +167,7 @@ class TestBridgeModeConnectivitySuiteA(object):
mode = "BRIDGE"
band = "fiveg"
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")
@@ -182,7 +191,7 @@ class TestBridgeModeConnectivitySuiteA(object):
@pytest.mark.wpa2_personal
@pytest.mark.twog
@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):
"""Client Connectivity wpa2_personal ssid 2.4G
pytest -m "client_connectivity and bridge and general and wpa2_personal and twog"
@@ -194,6 +203,7 @@ class TestBridgeModeConnectivitySuiteA(object):
mode = "BRIDGE"
band = "twog"
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")
@@ -217,7 +227,8 @@ class TestBridgeModeConnectivitySuiteA(object):
@pytest.mark.wpa2_personal
@pytest.mark.fiveg
@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):
"""Client Connectivity wpa2_personal ssid 5G
pytest -m "client_connectivity and bridge and general and wpa2_personal and fiveg"
@@ -229,6 +240,7 @@ class TestBridgeModeConnectivitySuiteA(object):
mode = "BRIDGE"
band = "fiveg"
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")
@@ -287,7 +299,8 @@ class TestBridgeModeConnectivitySuiteTwo(object):
@pytest.mark.wpa3_personal
@pytest.mark.twog
@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):
"""Client Connectivity open ssid 2.4G
pytest -m "client_connectivity and bridge and general and wpa3_personal and twog"
@@ -321,7 +334,8 @@ class TestBridgeModeConnectivitySuiteTwo(object):
@pytest.mark.wpa3_personal
@pytest.mark.fiveg
@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
pytest -m "client_connectivity and bridge and general and wpa3_personal and fiveg"
"""
@@ -354,7 +368,8 @@ class TestBridgeModeConnectivitySuiteTwo(object):
@pytest.mark.wpa3_personal_mixed
@pytest.mark.twog
@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,
test_cases):
"""Client Connectivity open ssid 2.4G
@@ -389,7 +404,8 @@ class TestBridgeModeConnectivitySuiteTwo(object):
@pytest.mark.wpa3_personal_mixed
@pytest.mark.fiveg
@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):
"""Client Connectivity open ssid 2.4G
pytest -m "client_connectivity and bridge and general and wpa3_personal_mixed and fiveg"
@@ -423,7 +439,8 @@ class TestBridgeModeConnectivitySuiteTwo(object):
@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_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,
test_cases):
"""Client Connectivity open ssid 2.4G
@@ -459,7 +476,7 @@ class TestBridgeModeConnectivitySuiteTwo(object):
@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_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):
"""Client Connectivity open ssid 2.4G
pytest -m "client_connectivity and bridge and general and wpa_wpa2_personal_mixed and fiveg"

View File

@@ -8,25 +8,26 @@
import allure
import pytest
pytestmark = [pytest.mark.client_connectivity, pytest.mark.vlan, pytest.mark.general, pytest.mark.sanity,
pytest.mark.usefixtures("setup_test_run")]
pytestmark = [pytest.mark.client_connectivity, pytest.mark.vlan, pytest.mark.general,
pytest.mark.sanity] # pytest.mark.usefixtures("setup_test_run")]
setup_params_general = {
"mode": "VLAN",
"ssid_modes": {
"open": [{"ssid_name": "ssid_open_2g", "appliedRadios": ["is2dot4GHz"]},
{"ssid_name": "ssid_open_5g", "appliedRadios": ["is5GHzU", "is5GHz", "is5GHzL"]}],
"wpa": [{"ssid_name": "ssid_wpa_2g", "appliedRadios": ["is2dot4GHz"], "security_key": "something"},
"open": [{"ssid_name": "ssid_open_2g", "appliedRadios": ["is2dot4GHz"], "security_key": "something", "vlan": 100},
{"ssid_name": "ssid_open_5g", "appliedRadios": ["is5GHzU", "is5GHz", "is5GHzL"], "security_key": "something", "vlan": 100}],
"wpa": [{"ssid_name": "ssid_wpa_2g", "appliedRadios": ["is2dot4GHz"], "security_key": "something", "vlan": 100},
{"ssid_name": "ssid_wpa_5g", "appliedRadios": ["is5GHzU", "is5GHz", "is5GHzL"],
"security_key": "something"}],
"security_key": "something", "vlan": 100}],
"wpa2_personal": [
{"ssid_name": "ssid_wpa2_2g", "appliedRadios": ["is2dot4GHz"], "security_key": "something"},
{"ssid_name": "ssid_wpa2_2g", "appliedRadios": ["is2dot4GHz"], "security_key": "something", "vlan": 100},
{"ssid_name": "ssid_wpa2_5g", "appliedRadios": ["is5GHzU", "is5GHz", "is5GHzL"],
"security_key": "something"}]},
"security_key": "something", "vlan": 100}]},
"rf": {},
"radius": False
}
@pytest.mark.uc_sanity
@pytest.mark.suiteA
@allure.feature("vlan MODE CLIENT CONNECTIVITY")
@@ -45,7 +46,8 @@ class TestvlanModeConnectivitySuiteA(object):
@pytest.mark.open
@pytest.mark.twog
@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):
"""Client Connectivity open ssid 2.4G
pytest -m "client_connectivity and vlan and general and open and twog"
@@ -57,6 +59,7 @@ class TestvlanModeConnectivitySuiteA(object):
mode = "VLAN"
band = "twog"
vlan = 100
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")
@@ -79,7 +82,8 @@ class TestvlanModeConnectivitySuiteA(object):
@pytest.mark.open
@pytest.mark.fiveg
@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
pytest -m "client_connectivity and vlan and general and open and fiveg"
"""
@@ -90,6 +94,7 @@ class TestvlanModeConnectivitySuiteA(object):
mode = "VLAN"
band = "fiveg"
vlan = 100
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")
@@ -113,7 +118,7 @@ class TestvlanModeConnectivitySuiteA(object):
@pytest.mark.wpa
@pytest.mark.twog
@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):
"""Client Connectivity wpa ssid 2.4G
pytest -m "client_connectivity and vlan and general and wpa and twog"
@@ -125,6 +130,7 @@ class TestvlanModeConnectivitySuiteA(object):
mode = "VLAN"
band = "twog"
vlan = 100
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")
@@ -148,7 +154,8 @@ class TestvlanModeConnectivitySuiteA(object):
@pytest.mark.wpa
@pytest.mark.fiveg
@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
pytest -m "client_connectivity and vlan and general and wpa and fiveg"
"""
@@ -159,6 +166,7 @@ class TestvlanModeConnectivitySuiteA(object):
mode = "VLAN"
band = "fiveg"
vlan = 100
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")
@@ -182,7 +190,7 @@ class TestvlanModeConnectivitySuiteA(object):
@pytest.mark.wpa2_personal
@pytest.mark.twog
@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):
"""Client Connectivity wpa2_personal ssid 2.4G
pytest -m "client_connectivity and vlan and general and wpa2_personal and twog"
@@ -194,6 +202,7 @@ class TestvlanModeConnectivitySuiteA(object):
mode = "VLAN"
band = "twog"
vlan = 100
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")
@@ -217,7 +226,8 @@ class TestvlanModeConnectivitySuiteA(object):
@pytest.mark.wpa2_personal
@pytest.mark.fiveg
@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):
"""Client Connectivity wpa2_personal ssid 5G
pytest -m "client_connectivity and vlan and general and wpa2_personal and fiveg"
@@ -229,6 +239,7 @@ class TestvlanModeConnectivitySuiteA(object):
mode = "VLAN"
band = "fiveg"
vlan = 100
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")
@@ -287,7 +298,8 @@ class TestvlanModeConnectivitySuiteTwo(object):
@pytest.mark.wpa3_personal
@pytest.mark.twog
@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):
"""Client Connectivity open ssid 2.4G
pytest -m "client_connectivity and vlan and general and wpa3_personal and twog"
@@ -321,7 +333,8 @@ class TestvlanModeConnectivitySuiteTwo(object):
@pytest.mark.wpa3_personal
@pytest.mark.fiveg
@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
pytest -m "client_connectivity and vlan and general and wpa3_personal and fiveg"
"""
@@ -354,7 +367,8 @@ class TestvlanModeConnectivitySuiteTwo(object):
@pytest.mark.wpa3_personal_mixed
@pytest.mark.twog
@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,
test_cases):
"""Client Connectivity open ssid 2.4G
@@ -389,7 +403,8 @@ class TestvlanModeConnectivitySuiteTwo(object):
@pytest.mark.wpa3_personal_mixed
@pytest.mark.fiveg
@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):
"""Client Connectivity open ssid 2.4G
pytest -m "client_connectivity and vlan and general and wpa3_personal_mixed and fiveg"
@@ -423,7 +438,8 @@ class TestvlanModeConnectivitySuiteTwo(object):
@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_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,
test_cases):
"""Client Connectivity open ssid 2.4G
@@ -459,7 +475,7 @@ class TestvlanModeConnectivitySuiteTwo(object):
@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_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):
"""Client Connectivity open ssid 2.4G
pytest -m "client_connectivity and vlan and general and wpa_wpa2_personal_mixed and fiveg"