mirror of
https://github.com/Telecominfraproject/wlan-testing.git
synced 2025-11-03 04:18:15 +00:00
allure integration with logs
Signed-off-by: shivamcandela <shivam.thakur@candelatech.com>
This commit is contained in:
@@ -121,6 +121,7 @@ class Controller(ConfigureController):
|
|||||||
if time.time() - self.token_timestamp > self.token_expiry:
|
if time.time() - self.token_timestamp > self.token_expiry:
|
||||||
self.token_timestamp = time.time()
|
self.token_timestamp = time.time()
|
||||||
print("Refreshing the controller API token")
|
print("Refreshing the controller API token")
|
||||||
|
self.disconnect_Controller()
|
||||||
self.api_client = swagger_client.ApiClient(self.configuration)
|
self.api_client = swagger_client.ApiClient(self.configuration)
|
||||||
self.login_client = swagger_client.LoginApi(api_client=self.api_client)
|
self.login_client = swagger_client.LoginApi(api_client=self.api_client)
|
||||||
self.bearer = self.get_bearer_token()
|
self.bearer = self.get_bearer_token()
|
||||||
@@ -1013,7 +1014,7 @@ class FirmwareUtility:
|
|||||||
# This is for Unit tests on Controller Library
|
# This is for Unit tests on Controller Library
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
controller = {
|
controller = {
|
||||||
'url': "http://wlan-portal-svc-digicert.cicd.lab.wlan.tip.build", # API base url for the controller
|
'url': "https://wlan-portal-svc-nola-ext-04.cicd.lab.wlan.tip.build", # API base url for the controller
|
||||||
'username': 'support@example.com',
|
'username': 'support@example.com',
|
||||||
'password': 'support',
|
'password': 'support',
|
||||||
'version': "1.1.0-SNAPSHOT",
|
'version': "1.1.0-SNAPSHOT",
|
||||||
|
|||||||
@@ -34,7 +34,7 @@ CONFIGURATION = {
|
|||||||
"upstream_subnet": "10.28.2.1/24",
|
"upstream_subnet": "10.28.2.1/24",
|
||||||
"uplink": "1.1.eth3",
|
"uplink": "1.1.eth3",
|
||||||
"2.4G-Station-Name": "wlan0",
|
"2.4G-Station-Name": "wlan0",
|
||||||
"5G-Station-Name": "wlan1",
|
"5G-Station-Name": "wlan0",
|
||||||
"AX-Station-Name": "ax"
|
"AX-Station-Name": "ax"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -272,21 +272,21 @@ TEST_CASES = {
|
|||||||
"5g_wpa3_mixed_wpa3_vlan": 9781,
|
"5g_wpa3_mixed_wpa3_vlan": 9781,
|
||||||
"ssid_2g_wpa3_enterprise_mixed_bridge": 9782,
|
"ssid_2g_wpa3_enterprise_mixed_bridge": 9782,
|
||||||
"ssid_5g_wpa3_enterprise_mixed_bridge": 9783,
|
"ssid_5g_wpa3_enterprise_mixed_bridge": 9783,
|
||||||
# "2g_wpa3_mixed_eap_wpa2_bridge": 9784,
|
"2g_wpa2_mixed_eap_wpa2_bridge": 9784,
|
||||||
# "2g_wpa3_mixed_eap_wpa3_bridge": 9785,
|
"2g_wpa3_mixed_eap_wpa3_bridge": 9785,
|
||||||
# "5g_wpa3_mixed_eap_wpa2_bridge": 9786,
|
"5g_wpa3_mixed_eap_wpa2_bridge": 9786,
|
||||||
# "5g_wpa3_mixed_eap_wpa3_bridge": 9787,
|
"5g_wpa3_mixed_eap_wpa3_bridge": 9787,
|
||||||
"ssid_2g_wpa3_enterprise_mixed_nat": 9788,
|
"ssid_2g_wpa3_enterprise_mixed_nat": 9788,
|
||||||
"ssid_5g_wpa3_enterprise_mixed_nat": 9789,
|
"ssid_5g_wpa3_enterprise_mixed_nat": 9789,
|
||||||
# "2g_wpa3_mixed_eap_wpa2_nat": 9790,
|
"2g_wpa3_mixed_eap_wpa2_nat": 9790,
|
||||||
# "2g_wpa3_mixed_eap_ttls_wpa3_nat": 9791,
|
"2g_wpa3_mixed_eap_ttls_wpa3_nat": 9791,
|
||||||
# "5g_wpa3_mixed_eap_wpa2_nat": 9792,
|
"5g_wpa3_mixed_eap_wpa2_nat": 9792,
|
||||||
"5g_wpa3_mixed_eap_ttls_wpa3_nat": 9793,
|
"5g_wpa3_mixed_eap_ttls_wpa3_nat": 9793,
|
||||||
"ssid_2g_wpa3_enterprise_mixed_vlan": 9794,
|
"ssid_2g_wpa3_enterprise_mixed_vlan": 9794,
|
||||||
"ssid_5g_wpa3_enterprise_mixed_vlan": 9795,
|
"ssid_5g_wpa3_enterprise_mixed_vlan": 9795,
|
||||||
# "2g_wpa3_mixed_eap_wpa2_vlan": 9796,
|
"2g_wpa3_mixed_eap_wpa2_vlan": 9796,
|
||||||
"2g_wpa3_mixed_eap_ttls_wpa3_vlan": 9797,
|
"2g_wpa3_mixed_eap_ttls_wpa3_vlan": 9797,
|
||||||
# "5g_wpa3_mixed_eap_wpa2_vlan": 9798,
|
"5g_wpa3_mixed_eap_wpa2_vlan": 9798,
|
||||||
"5g_wpa3_mixed_eap_ttls_wpa3_vlan": 9799,
|
"5g_wpa3_mixed_eap_ttls_wpa3_vlan": 9799,
|
||||||
"ssid_2g_open_bridge": 9805,
|
"ssid_2g_open_bridge": 9805,
|
||||||
"ssid_5g_open_bridge": 9806,
|
"ssid_5g_open_bridge": 9806,
|
||||||
|
|||||||
@@ -55,6 +55,7 @@ def pytest_addoption(parser):
|
|||||||
parser.addini("influx_token", "Influx Token", default="TCkdATXAbHmNbn4QyNaj43WpGBYxFrzV")
|
parser.addini("influx_token", "Influx Token", default="TCkdATXAbHmNbn4QyNaj43WpGBYxFrzV")
|
||||||
parser.addini("influx_bucket", "influx bucket", default="tip-cicd")
|
parser.addini("influx_bucket", "influx bucket", default="tip-cicd")
|
||||||
parser.addini("influx_org", "influx organization", default="tip")
|
parser.addini("influx_org", "influx organization", default="tip")
|
||||||
|
parser.addini("build", "AP Firmware build URL", default="0")
|
||||||
|
|
||||||
parser.addini("num_stations", "Number of Stations/Clients for testing")
|
parser.addini("num_stations", "Number of Stations/Clients for testing")
|
||||||
|
|
||||||
@@ -238,13 +239,17 @@ def setup_controller(request, get_configuration, instantiate_access_point):
|
|||||||
|
|
||||||
|
|
||||||
@pytest.fixture(scope="session")
|
@pytest.fixture(scope="session")
|
||||||
def instantiate_firmware(setup_controller, get_configuration):
|
def instantiate_firmware(request, setup_controller, get_configuration):
|
||||||
"""sets up firmware utility and yields the object for firmware upgrade"""
|
"""sets up firmware utility and yields the object for firmware upgrade"""
|
||||||
firmware_client_obj = []
|
firmware_client_obj = []
|
||||||
|
|
||||||
for access_point_info in get_configuration['access_point']:
|
for access_point_info in get_configuration['access_point']:
|
||||||
|
version = access_point_info["version"]
|
||||||
|
if request.config.getini("build") != "0":
|
||||||
|
version = request.config.getini("build")
|
||||||
firmware_client = FirmwareUtility(sdk_client=setup_controller,
|
firmware_client = FirmwareUtility(sdk_client=setup_controller,
|
||||||
model=access_point_info["model"],
|
model=access_point_info["model"],
|
||||||
version_url=access_point_info["version"])
|
version_url=version)
|
||||||
firmware_client_obj.append(firmware_client)
|
firmware_client_obj.append(firmware_client)
|
||||||
yield firmware_client_obj
|
yield firmware_client_obj
|
||||||
|
|
||||||
@@ -291,12 +296,14 @@ def upgrade_firmware(request, instantiate_firmware, get_equipment_id, check_ap_f
|
|||||||
for i in range(0, len(instantiate_firmware)):
|
for i in range(0, len(instantiate_firmware)):
|
||||||
status = instantiate_firmware[i].upgrade_fw(equipment_id=get_equipment_id[i], force_upload=True,
|
status = instantiate_firmware[i].upgrade_fw(equipment_id=get_equipment_id[i], force_upload=True,
|
||||||
force_upgrade=should_upgrade_firmware)
|
force_upgrade=should_upgrade_firmware)
|
||||||
|
allure.attach(name="Firmware Upgrade Request", body=str(status))
|
||||||
status_list.append(status)
|
status_list.append(status)
|
||||||
else:
|
else:
|
||||||
if should_upgrade_firmware:
|
if should_upgrade_firmware:
|
||||||
for i in range(0, len(instantiate_firmware)):
|
for i in range(0, len(instantiate_firmware)):
|
||||||
status = instantiate_firmware[i].upgrade_fw(equipment_id=get_equipment_id[i], force_upload=False,
|
status = instantiate_firmware[i].upgrade_fw(equipment_id=get_equipment_id[i], force_upload=False,
|
||||||
force_upgrade=should_upgrade_firmware)
|
force_upgrade=should_upgrade_firmware)
|
||||||
|
allure.attach(name="Firmware Upgrade Request", body=str(status))
|
||||||
status_list.append(status)
|
status_list.append(status)
|
||||||
else:
|
else:
|
||||||
status = "skip-upgrade Version Already Available"
|
status = "skip-upgrade Version Already Available"
|
||||||
|
|||||||
@@ -7,6 +7,7 @@ from configuration import CONFIGURATION
|
|||||||
|
|
||||||
|
|
||||||
@pytest.mark.sanity
|
@pytest.mark.sanity
|
||||||
|
@pytest.mark.sanity_55
|
||||||
@pytest.mark.sdk_version_check
|
@pytest.mark.sdk_version_check
|
||||||
def test_cloud_sdk_version(setup_controller, testbed, test_cases, update_report):
|
def test_cloud_sdk_version(setup_controller, testbed, test_cases, update_report):
|
||||||
try:
|
try:
|
||||||
|
|||||||
@@ -71,6 +71,7 @@ class TestSetupBridgeEnterpriseSuiteA(object):
|
|||||||
msg='Failed to create profile')
|
msg='Failed to create profile')
|
||||||
assert False
|
assert False
|
||||||
|
|
||||||
|
@pytest.mark.sanity_55
|
||||||
@pytest.mark.wpa2_enterprise
|
@pytest.mark.wpa2_enterprise
|
||||||
@pytest.mark.twog
|
@pytest.mark.twog
|
||||||
def test_setup_wpa2_enterprise_2g_ssid_profile(self, setup_profiles, update_report, test_cases):
|
def test_setup_wpa2_enterprise_2g_ssid_profile(self, setup_profiles, update_report, test_cases):
|
||||||
@@ -86,6 +87,7 @@ class TestSetupBridgeEnterpriseSuiteA(object):
|
|||||||
msg='Failed to create profile')
|
msg='Failed to create profile')
|
||||||
assert False
|
assert False
|
||||||
|
|
||||||
|
@pytest.mark.sanity_55
|
||||||
@pytest.mark.wpa2_enterprise
|
@pytest.mark.wpa2_enterprise
|
||||||
@pytest.mark.fiveg
|
@pytest.mark.fiveg
|
||||||
def test_setup_wpa2_enterprise_5g_ssid_profile(self, setup_profiles, update_report, test_cases):
|
def test_setup_wpa2_enterprise_5g_ssid_profile(self, setup_profiles, update_report, test_cases):
|
||||||
@@ -165,7 +167,7 @@ class TestSetupBridgeEnterpriseSuiteA(object):
|
|||||||
def test_verify_vif_state(self, setup_profiles, update_report,
|
def test_verify_vif_state(self, setup_profiles, update_report,
|
||||||
test_cases):
|
test_cases):
|
||||||
""" VIF Config Suite B Enterprise """
|
""" VIF Config Suite B Enterprise """
|
||||||
time.sleep(180)
|
time.sleep(200)
|
||||||
if setup_profiles['vifs']:
|
if setup_profiles['vifs']:
|
||||||
update_report.update_testrail(case_id=test_cases["bridge_vifs"],
|
update_report.update_testrail(case_id=test_cases["bridge_vifs"],
|
||||||
status_id=1,
|
status_id=1,
|
||||||
@@ -299,7 +301,7 @@ class TestSetupBridgeEnterpriseSuiteB(object):
|
|||||||
def test_verify_vif_state(self, setup_profiles, update_report,
|
def test_verify_vif_state(self, setup_profiles, update_report,
|
||||||
test_cases):
|
test_cases):
|
||||||
""" VIF State Suite B Enterprise """
|
""" VIF State Suite B Enterprise """
|
||||||
time.sleep(180)
|
time.sleep(200)
|
||||||
if setup_profiles['vifs']:
|
if setup_profiles['vifs']:
|
||||||
update_report.update_testrail(case_id=test_cases["bridge_vifs"],
|
update_report.update_testrail(case_id=test_cases["bridge_vifs"],
|
||||||
status_id=1,
|
status_id=1,
|
||||||
|
|||||||
@@ -78,6 +78,7 @@ class TestSetupBridgeSuiteA(object):
|
|||||||
msg='Failed to create profile')
|
msg='Failed to create profile')
|
||||||
assert False
|
assert False
|
||||||
|
|
||||||
|
@pytest.mark.sanity_55
|
||||||
@pytest.mark.wpa
|
@pytest.mark.wpa
|
||||||
@pytest.mark.twog
|
@pytest.mark.twog
|
||||||
def test_setup_wpa_2g_ssid_profile(self, setup_profiles, update_report, test_cases):
|
def test_setup_wpa_2g_ssid_profile(self, setup_profiles, update_report, test_cases):
|
||||||
@@ -95,6 +96,7 @@ class TestSetupBridgeSuiteA(object):
|
|||||||
msg='Failed to create profile')
|
msg='Failed to create profile')
|
||||||
assert False
|
assert False
|
||||||
|
|
||||||
|
@pytest.mark.sanity_55
|
||||||
@pytest.mark.wpa
|
@pytest.mark.wpa
|
||||||
@pytest.mark.fiveg
|
@pytest.mark.fiveg
|
||||||
def test_setup_wpa_5g_ssid_profile(self, setup_profiles, update_report, test_cases):
|
def test_setup_wpa_5g_ssid_profile(self, setup_profiles, update_report, test_cases):
|
||||||
@@ -112,6 +114,7 @@ class TestSetupBridgeSuiteA(object):
|
|||||||
msg='Failed to create profile')
|
msg='Failed to create profile')
|
||||||
assert False
|
assert False
|
||||||
|
|
||||||
|
@pytest.mark.sanity_55
|
||||||
@pytest.mark.wpa2_personal
|
@pytest.mark.wpa2_personal
|
||||||
@pytest.mark.twog
|
@pytest.mark.twog
|
||||||
def test_setup_wpa2_personal_2g_ssid_profile(self, setup_profiles, update_report,
|
def test_setup_wpa2_personal_2g_ssid_profile(self, setup_profiles, update_report,
|
||||||
@@ -130,6 +133,7 @@ class TestSetupBridgeSuiteA(object):
|
|||||||
msg='Failed to create profile')
|
msg='Failed to create profile')
|
||||||
assert False
|
assert False
|
||||||
|
|
||||||
|
@pytest.mark.sanity_55
|
||||||
@pytest.mark.wpa2_personal
|
@pytest.mark.wpa2_personal
|
||||||
@pytest.mark.fiveg
|
@pytest.mark.fiveg
|
||||||
def test_setup_wpa2_personal_5g_ssid_profile(self, setup_profiles, update_report,
|
def test_setup_wpa2_personal_5g_ssid_profile(self, setup_profiles, update_report,
|
||||||
@@ -148,6 +152,7 @@ class TestSetupBridgeSuiteA(object):
|
|||||||
msg='Failed to create profile')
|
msg='Failed to create profile')
|
||||||
assert False
|
assert False
|
||||||
|
|
||||||
|
@pytest.mark.sanity_55
|
||||||
def test_setup_equipment_ap_profile(self, setup_profiles, update_report,
|
def test_setup_equipment_ap_profile(self, setup_profiles, update_report,
|
||||||
test_cases):
|
test_cases):
|
||||||
""" Equipment AP Profile SuiteA General """
|
""" Equipment AP Profile SuiteA General """
|
||||||
@@ -162,6 +167,7 @@ class TestSetupBridgeSuiteA(object):
|
|||||||
msg='Failed to create profile')
|
msg='Failed to create profile')
|
||||||
assert False
|
assert False
|
||||||
|
|
||||||
|
@pytest.mark.sanity_55
|
||||||
def test_verify_vif_config(self, setup_profiles, update_report,
|
def test_verify_vif_config(self, setup_profiles, update_report,
|
||||||
test_cases):
|
test_cases):
|
||||||
""" vifc SuiteA General """
|
""" vifc SuiteA General """
|
||||||
@@ -176,11 +182,12 @@ class TestSetupBridgeSuiteA(object):
|
|||||||
msg='Failed to push profile')
|
msg='Failed to push profile')
|
||||||
assert False
|
assert False
|
||||||
|
|
||||||
|
@pytest.mark.sanity_55
|
||||||
@allure.severity(allure.severity_level.BLOCKER)
|
@allure.severity(allure.severity_level.BLOCKER)
|
||||||
def test_verify_vif_state(self, setup_profiles, update_report,
|
def test_verify_vif_state(self, setup_profiles, update_report,
|
||||||
test_cases):
|
test_cases):
|
||||||
""" vifs SuiteA General """
|
""" vifs SuiteA General """
|
||||||
time.sleep(180)
|
time.sleep(200)
|
||||||
if setup_profiles['vifs']:
|
if setup_profiles['vifs']:
|
||||||
update_report.update_testrail(case_id=test_cases["bridge_vifs"],
|
update_report.update_testrail(case_id=test_cases["bridge_vifs"],
|
||||||
status_id=1,
|
status_id=1,
|
||||||
@@ -366,7 +373,7 @@ class TestBridgeModeConnectivitySuiteB(object):
|
|||||||
def test_verify_vif_state(self, setup_profiles, update_report,
|
def test_verify_vif_state(self, setup_profiles, update_report,
|
||||||
test_cases):
|
test_cases):
|
||||||
""" vif state Suite B """
|
""" vif state Suite B """
|
||||||
time.sleep(180)
|
time.sleep(200)
|
||||||
if setup_profiles['vifs']:
|
if setup_profiles['vifs']:
|
||||||
update_report.update_testrail(case_id=test_cases["bridge_vifs"],
|
update_report.update_testrail(case_id=test_cases["bridge_vifs"],
|
||||||
status_id=1,
|
status_id=1,
|
||||||
|
|||||||
@@ -71,6 +71,7 @@ class TestSetupNATEnterpriseSuiteA(object):
|
|||||||
msg='Failed to create profile')
|
msg='Failed to create profile')
|
||||||
assert False
|
assert False
|
||||||
|
|
||||||
|
@pytest.mark.sanity_55
|
||||||
@pytest.mark.wpa2_enterprise
|
@pytest.mark.wpa2_enterprise
|
||||||
@pytest.mark.twog
|
@pytest.mark.twog
|
||||||
def test_setup_wpa2_enterprise_2g_ssid_profile(self, setup_profiles, update_report, test_cases):
|
def test_setup_wpa2_enterprise_2g_ssid_profile(self, setup_profiles, update_report, test_cases):
|
||||||
@@ -86,6 +87,7 @@ class TestSetupNATEnterpriseSuiteA(object):
|
|||||||
msg='Failed to create profile')
|
msg='Failed to create profile')
|
||||||
assert False
|
assert False
|
||||||
|
|
||||||
|
@pytest.mark.sanity_55
|
||||||
@pytest.mark.wpa2_enterprise
|
@pytest.mark.wpa2_enterprise
|
||||||
@pytest.mark.fiveg
|
@pytest.mark.fiveg
|
||||||
def test_setup_wpa2_enterprise_5g_ssid_profile(self, setup_profiles, update_report, test_cases):
|
def test_setup_wpa2_enterprise_5g_ssid_profile(self, setup_profiles, update_report, test_cases):
|
||||||
@@ -133,6 +135,7 @@ class TestSetupNATEnterpriseSuiteA(object):
|
|||||||
msg='Failed to create profile')
|
msg='Failed to create profile')
|
||||||
assert False
|
assert False
|
||||||
|
|
||||||
|
@pytest.mark.sanity_55
|
||||||
def test_setup_equipment_ap_profile(self, setup_profiles, update_report,
|
def test_setup_equipment_ap_profile(self, setup_profiles, update_report,
|
||||||
test_cases):
|
test_cases):
|
||||||
""" Equipment AP Profile Suite A Enterprise """
|
""" Equipment AP Profile Suite A Enterprise """
|
||||||
@@ -147,6 +150,7 @@ class TestSetupNATEnterpriseSuiteA(object):
|
|||||||
msg='Failed to create profile')
|
msg='Failed to create profile')
|
||||||
assert False
|
assert False
|
||||||
|
|
||||||
|
@pytest.mark.sanity_55
|
||||||
def test_verify_vif_config(self, setup_profiles, update_report,
|
def test_verify_vif_config(self, setup_profiles, update_report,
|
||||||
test_cases):
|
test_cases):
|
||||||
""" VIF Config Suite A Enterprise """
|
""" VIF Config Suite A Enterprise """
|
||||||
@@ -161,11 +165,12 @@ class TestSetupNATEnterpriseSuiteA(object):
|
|||||||
msg='Failed to push profile')
|
msg='Failed to push profile')
|
||||||
assert False
|
assert False
|
||||||
|
|
||||||
|
@pytest.mark.sanity_55
|
||||||
@allure.severity(allure.severity_level.BLOCKER)
|
@allure.severity(allure.severity_level.BLOCKER)
|
||||||
def test_verify_vif_state(self, setup_profiles, update_report,
|
def test_verify_vif_state(self, setup_profiles, update_report,
|
||||||
test_cases):
|
test_cases):
|
||||||
""" VIF Config Suite B Enterprise """
|
""" VIF Config Suite B Enterprise """
|
||||||
time.sleep(180)
|
time.sleep(200)
|
||||||
if setup_profiles['vifs']:
|
if setup_profiles['vifs']:
|
||||||
update_report.update_testrail(case_id=test_cases["nat_vifs"],
|
update_report.update_testrail(case_id=test_cases["nat_vifs"],
|
||||||
status_id=1,
|
status_id=1,
|
||||||
@@ -299,7 +304,7 @@ class TestSetupNATEnterpriseSuiteB(object):
|
|||||||
def test_verify_vif_state(self, setup_profiles, update_report,
|
def test_verify_vif_state(self, setup_profiles, update_report,
|
||||||
test_cases):
|
test_cases):
|
||||||
""" VIF State Suite B Enterprise """
|
""" VIF State Suite B Enterprise """
|
||||||
time.sleep(180)
|
time.sleep(200)
|
||||||
if setup_profiles['vifs']:
|
if setup_profiles['vifs']:
|
||||||
update_report.update_testrail(case_id=test_cases["nat_vifs"],
|
update_report.update_testrail(case_id=test_cases["nat_vifs"],
|
||||||
status_id=1,
|
status_id=1,
|
||||||
|
|||||||
@@ -78,6 +78,7 @@ class TestSetupNATSuiteA(object):
|
|||||||
msg='Failed to create profile')
|
msg='Failed to create profile')
|
||||||
assert False
|
assert False
|
||||||
|
|
||||||
|
@pytest.mark.sanity_55
|
||||||
@pytest.mark.wpa
|
@pytest.mark.wpa
|
||||||
@pytest.mark.twog
|
@pytest.mark.twog
|
||||||
def test_setup_wpa_2g_ssid_profile(self, setup_profiles, update_report, test_cases):
|
def test_setup_wpa_2g_ssid_profile(self, setup_profiles, update_report, test_cases):
|
||||||
@@ -95,6 +96,7 @@ class TestSetupNATSuiteA(object):
|
|||||||
msg='Failed to create profile')
|
msg='Failed to create profile')
|
||||||
assert False
|
assert False
|
||||||
|
|
||||||
|
@pytest.mark.sanity_55
|
||||||
@pytest.mark.wpa
|
@pytest.mark.wpa
|
||||||
@pytest.mark.fiveg
|
@pytest.mark.fiveg
|
||||||
def test_setup_wpa_5g_ssid_profile(self, setup_profiles, update_report, test_cases):
|
def test_setup_wpa_5g_ssid_profile(self, setup_profiles, update_report, test_cases):
|
||||||
@@ -112,6 +114,7 @@ class TestSetupNATSuiteA(object):
|
|||||||
msg='Failed to create profile')
|
msg='Failed to create profile')
|
||||||
assert False
|
assert False
|
||||||
|
|
||||||
|
@pytest.mark.sanity_55
|
||||||
@pytest.mark.wpa2_personal
|
@pytest.mark.wpa2_personal
|
||||||
@pytest.mark.twog
|
@pytest.mark.twog
|
||||||
def test_setup_wpa2_personal_2g_ssid_profile(self, setup_profiles, update_report,
|
def test_setup_wpa2_personal_2g_ssid_profile(self, setup_profiles, update_report,
|
||||||
@@ -130,6 +133,7 @@ class TestSetupNATSuiteA(object):
|
|||||||
msg='Failed to create profile')
|
msg='Failed to create profile')
|
||||||
assert False
|
assert False
|
||||||
|
|
||||||
|
@pytest.mark.sanity_55
|
||||||
@pytest.mark.wpa2_personal
|
@pytest.mark.wpa2_personal
|
||||||
@pytest.mark.fiveg
|
@pytest.mark.fiveg
|
||||||
def test_setup_wpa2_personal_5g_ssid_profile(self, setup_profiles, update_report,
|
def test_setup_wpa2_personal_5g_ssid_profile(self, setup_profiles, update_report,
|
||||||
@@ -148,6 +152,7 @@ class TestSetupNATSuiteA(object):
|
|||||||
msg='Failed to create profile')
|
msg='Failed to create profile')
|
||||||
assert False
|
assert False
|
||||||
|
|
||||||
|
@pytest.mark.sanity_55
|
||||||
def test_setup_equipment_ap_profile(self, setup_profiles, update_report,
|
def test_setup_equipment_ap_profile(self, setup_profiles, update_report,
|
||||||
test_cases):
|
test_cases):
|
||||||
""" Equipment AP Profile SuiteA General """
|
""" Equipment AP Profile SuiteA General """
|
||||||
@@ -162,6 +167,7 @@ class TestSetupNATSuiteA(object):
|
|||||||
msg='Failed to create profile')
|
msg='Failed to create profile')
|
||||||
assert False
|
assert False
|
||||||
|
|
||||||
|
@pytest.mark.sanity_55
|
||||||
def test_verify_vif_config(self, setup_profiles, update_report,
|
def test_verify_vif_config(self, setup_profiles, update_report,
|
||||||
test_cases):
|
test_cases):
|
||||||
""" vifc SuiteA General """
|
""" vifc SuiteA General """
|
||||||
@@ -176,11 +182,12 @@ class TestSetupNATSuiteA(object):
|
|||||||
msg='Failed to push profile')
|
msg='Failed to push profile')
|
||||||
assert False
|
assert False
|
||||||
|
|
||||||
|
@pytest.mark.sanity_55
|
||||||
@allure.severity(allure.severity_level.BLOCKER)
|
@allure.severity(allure.severity_level.BLOCKER)
|
||||||
def test_verify_vif_state(self, setup_profiles, update_report,
|
def test_verify_vif_state(self, setup_profiles, update_report,
|
||||||
test_cases):
|
test_cases):
|
||||||
""" vifs SuiteA General """
|
""" vifs SuiteA General """
|
||||||
time.sleep(180)
|
time.sleep(200)
|
||||||
if setup_profiles['vifs']:
|
if setup_profiles['vifs']:
|
||||||
update_report.update_testrail(case_id=test_cases["nat_vifs"],
|
update_report.update_testrail(case_id=test_cases["nat_vifs"],
|
||||||
status_id=1,
|
status_id=1,
|
||||||
@@ -366,7 +373,7 @@ class TestNATModeConnectivitySuiteB(object):
|
|||||||
def test_verify_vif_state(self, setup_profiles, update_report,
|
def test_verify_vif_state(self, setup_profiles, update_report,
|
||||||
test_cases):
|
test_cases):
|
||||||
""" vif state Suite B """
|
""" vif state Suite B """
|
||||||
time.sleep(180)
|
time.sleep(200)
|
||||||
if setup_profiles['vifs']:
|
if setup_profiles['vifs']:
|
||||||
update_report.update_testrail(case_id=test_cases["nat_vifs"],
|
update_report.update_testrail(case_id=test_cases["nat_vifs"],
|
||||||
status_id=1,
|
status_id=1,
|
||||||
|
|||||||
@@ -71,6 +71,7 @@ class TestSetupVLANEnterpriseSuiteA(object):
|
|||||||
msg='Failed to create profile')
|
msg='Failed to create profile')
|
||||||
assert False
|
assert False
|
||||||
|
|
||||||
|
@pytest.mark.sanity_55
|
||||||
@pytest.mark.wpa2_enterprise
|
@pytest.mark.wpa2_enterprise
|
||||||
@pytest.mark.twog
|
@pytest.mark.twog
|
||||||
def test_setup_wpa2_enterprise_2g_ssid_profile(self, setup_profiles, update_report, test_cases):
|
def test_setup_wpa2_enterprise_2g_ssid_profile(self, setup_profiles, update_report, test_cases):
|
||||||
@@ -86,6 +87,7 @@ class TestSetupVLANEnterpriseSuiteA(object):
|
|||||||
msg='Failed to create profile')
|
msg='Failed to create profile')
|
||||||
assert False
|
assert False
|
||||||
|
|
||||||
|
@pytest.mark.sanity_55
|
||||||
@pytest.mark.wpa2_enterprise
|
@pytest.mark.wpa2_enterprise
|
||||||
@pytest.mark.fiveg
|
@pytest.mark.fiveg
|
||||||
def test_setup_wpa2_enterprise_5g_ssid_profile(self, setup_profiles, update_report, test_cases):
|
def test_setup_wpa2_enterprise_5g_ssid_profile(self, setup_profiles, update_report, test_cases):
|
||||||
@@ -133,6 +135,7 @@ class TestSetupVLANEnterpriseSuiteA(object):
|
|||||||
msg='Failed to create profile')
|
msg='Failed to create profile')
|
||||||
assert False
|
assert False
|
||||||
|
|
||||||
|
@pytest.mark.sanity_55
|
||||||
def test_setup_equipment_ap_profile(self, setup_profiles, update_report,
|
def test_setup_equipment_ap_profile(self, setup_profiles, update_report,
|
||||||
test_cases):
|
test_cases):
|
||||||
""" Equipment AP Profile Suite A Enterprise """
|
""" Equipment AP Profile Suite A Enterprise """
|
||||||
@@ -147,6 +150,7 @@ class TestSetupVLANEnterpriseSuiteA(object):
|
|||||||
msg='Failed to create profile')
|
msg='Failed to create profile')
|
||||||
assert False
|
assert False
|
||||||
|
|
||||||
|
@pytest.mark.sanity_55
|
||||||
def test_verify_vif_config(self, setup_profiles, update_report,
|
def test_verify_vif_config(self, setup_profiles, update_report,
|
||||||
test_cases):
|
test_cases):
|
||||||
""" VIF Config Suite A Enterprise """
|
""" VIF Config Suite A Enterprise """
|
||||||
@@ -161,11 +165,12 @@ class TestSetupVLANEnterpriseSuiteA(object):
|
|||||||
msg='Failed to push profile')
|
msg='Failed to push profile')
|
||||||
assert False
|
assert False
|
||||||
|
|
||||||
|
@pytest.mark.sanity_55
|
||||||
@allure.severity(allure.severity_level.BLOCKER)
|
@allure.severity(allure.severity_level.BLOCKER)
|
||||||
def test_verify_vif_state(self, setup_profiles, update_report,
|
def test_verify_vif_state(self, setup_profiles, update_report,
|
||||||
test_cases):
|
test_cases):
|
||||||
""" VIF Config Suite B Enterprise """
|
""" VIF Config Suite B Enterprise """
|
||||||
time.sleep(180)
|
time.sleep(200)
|
||||||
if setup_profiles['vifs']:
|
if setup_profiles['vifs']:
|
||||||
update_report.update_testrail(case_id=test_cases["vlan_vifs"],
|
update_report.update_testrail(case_id=test_cases["vlan_vifs"],
|
||||||
status_id=1,
|
status_id=1,
|
||||||
@@ -299,7 +304,7 @@ class TestSetupVLANEnterpriseSuiteB(object):
|
|||||||
def test_verify_vif_state(self, setup_profiles, update_report,
|
def test_verify_vif_state(self, setup_profiles, update_report,
|
||||||
test_cases):
|
test_cases):
|
||||||
""" VIF State Suite B Enterprise """
|
""" VIF State Suite B Enterprise """
|
||||||
time.sleep(180)
|
time.sleep(200)
|
||||||
if setup_profiles['vifs']:
|
if setup_profiles['vifs']:
|
||||||
update_report.update_testrail(case_id=test_cases["vlan_vifs"],
|
update_report.update_testrail(case_id=test_cases["vlan_vifs"],
|
||||||
status_id=1,
|
status_id=1,
|
||||||
|
|||||||
@@ -78,6 +78,7 @@ class TestSetupVLANSuiteA(object):
|
|||||||
msg='Failed to create profile')
|
msg='Failed to create profile')
|
||||||
assert False
|
assert False
|
||||||
|
|
||||||
|
@pytest.mark.sanity_55
|
||||||
@pytest.mark.wpa
|
@pytest.mark.wpa
|
||||||
@pytest.mark.twog
|
@pytest.mark.twog
|
||||||
def test_setup_wpa_2g_ssid_profile(self, setup_profiles, update_report, test_cases):
|
def test_setup_wpa_2g_ssid_profile(self, setup_profiles, update_report, test_cases):
|
||||||
@@ -95,6 +96,7 @@ class TestSetupVLANSuiteA(object):
|
|||||||
msg='Failed to create profile')
|
msg='Failed to create profile')
|
||||||
assert False
|
assert False
|
||||||
|
|
||||||
|
@pytest.mark.sanity_55
|
||||||
@pytest.mark.wpa
|
@pytest.mark.wpa
|
||||||
@pytest.mark.fiveg
|
@pytest.mark.fiveg
|
||||||
def test_setup_wpa_5g_ssid_profile(self, setup_profiles, update_report, test_cases):
|
def test_setup_wpa_5g_ssid_profile(self, setup_profiles, update_report, test_cases):
|
||||||
@@ -112,6 +114,7 @@ class TestSetupVLANSuiteA(object):
|
|||||||
msg='Failed to create profile')
|
msg='Failed to create profile')
|
||||||
assert False
|
assert False
|
||||||
|
|
||||||
|
@pytest.mark.sanity_55
|
||||||
@pytest.mark.wpa2_personal
|
@pytest.mark.wpa2_personal
|
||||||
@pytest.mark.twog
|
@pytest.mark.twog
|
||||||
def test_setup_wpa2_personal_2g_ssid_profile(self, setup_profiles, update_report,
|
def test_setup_wpa2_personal_2g_ssid_profile(self, setup_profiles, update_report,
|
||||||
@@ -130,6 +133,7 @@ class TestSetupVLANSuiteA(object):
|
|||||||
msg='Failed to create profile')
|
msg='Failed to create profile')
|
||||||
assert False
|
assert False
|
||||||
|
|
||||||
|
@pytest.mark.sanity_55
|
||||||
@pytest.mark.wpa2_personal
|
@pytest.mark.wpa2_personal
|
||||||
@pytest.mark.fiveg
|
@pytest.mark.fiveg
|
||||||
def test_setup_wpa2_personal_5g_ssid_profile(self, setup_profiles, update_report,
|
def test_setup_wpa2_personal_5g_ssid_profile(self, setup_profiles, update_report,
|
||||||
@@ -148,6 +152,7 @@ class TestSetupVLANSuiteA(object):
|
|||||||
msg='Failed to create profile')
|
msg='Failed to create profile')
|
||||||
assert False
|
assert False
|
||||||
|
|
||||||
|
@pytest.mark.sanity_55
|
||||||
def test_setup_equipment_ap_profile(self, setup_profiles, update_report,
|
def test_setup_equipment_ap_profile(self, setup_profiles, update_report,
|
||||||
test_cases):
|
test_cases):
|
||||||
""" Equipment AP Profile SuiteA General """
|
""" Equipment AP Profile SuiteA General """
|
||||||
@@ -162,6 +167,7 @@ class TestSetupVLANSuiteA(object):
|
|||||||
msg='Failed to create profile')
|
msg='Failed to create profile')
|
||||||
assert False
|
assert False
|
||||||
|
|
||||||
|
@pytest.mark.sanity_55
|
||||||
def test_verify_vif_config(self, setup_profiles, update_report,
|
def test_verify_vif_config(self, setup_profiles, update_report,
|
||||||
test_cases):
|
test_cases):
|
||||||
""" vifc SuiteA General """
|
""" vifc SuiteA General """
|
||||||
@@ -176,11 +182,12 @@ class TestSetupVLANSuiteA(object):
|
|||||||
msg='Failed to push profile')
|
msg='Failed to push profile')
|
||||||
assert False
|
assert False
|
||||||
|
|
||||||
|
@pytest.mark.sanity_55
|
||||||
@allure.severity(allure.severity_level.BLOCKER)
|
@allure.severity(allure.severity_level.BLOCKER)
|
||||||
def test_verify_vif_state(self, setup_profiles, update_report,
|
def test_verify_vif_state(self, setup_profiles, update_report,
|
||||||
test_cases):
|
test_cases):
|
||||||
""" vifs SuiteA General """
|
""" vifs SuiteA General """
|
||||||
time.sleep(180)
|
time.sleep(200)
|
||||||
if setup_profiles['vifs']:
|
if setup_profiles['vifs']:
|
||||||
update_report.update_testrail(case_id=test_cases["vlan_vifs"],
|
update_report.update_testrail(case_id=test_cases["vlan_vifs"],
|
||||||
status_id=1,
|
status_id=1,
|
||||||
@@ -366,7 +373,7 @@ class TestVLANModeConnectivitySuiteB(object):
|
|||||||
def test_verify_vif_state(self, setup_profiles, update_report,
|
def test_verify_vif_state(self, setup_profiles, update_report,
|
||||||
test_cases):
|
test_cases):
|
||||||
""" vif state Suite B """
|
""" vif state Suite B """
|
||||||
time.sleep(180)
|
time.sleep(200)
|
||||||
if setup_profiles['vifs']:
|
if setup_profiles['vifs']:
|
||||||
update_report.update_testrail(case_id=test_cases["vlan_vifs"],
|
update_report.update_testrail(case_id=test_cases["vlan_vifs"],
|
||||||
status_id=1,
|
status_id=1,
|
||||||
|
|||||||
@@ -629,3 +629,12 @@ def station_names_fiveg(request, get_configuration):
|
|||||||
def num_stations(request):
|
def num_stations(request):
|
||||||
num_sta = int(request.config.getini("num_stations"))
|
num_sta = int(request.config.getini("num_stations"))
|
||||||
yield num_sta
|
yield num_sta
|
||||||
|
|
||||||
|
|
||||||
|
@pytest.fixture(scope="class")
|
||||||
|
def get_vif_state(get_apnos, get_configuration):
|
||||||
|
ap_ssh = get_apnos(get_configuration['access_point'][0], pwd="../libs/apnos/")
|
||||||
|
vif_state = list(ap_ssh.get_vif_state_ssids())
|
||||||
|
vif_state.sort()
|
||||||
|
allure.attach(name="vif_state", body=str(vif_state))
|
||||||
|
yield vif_state
|
||||||
|
|||||||
@@ -3,11 +3,13 @@
|
|||||||
Details: Firmware Upgrade
|
Details: Firmware Upgrade
|
||||||
|
|
||||||
"""
|
"""
|
||||||
|
import allure
|
||||||
import pytest
|
import pytest
|
||||||
|
|
||||||
pytestmark = [pytest.mark.firmware, pytest.mark.sanity]
|
pytestmark = [pytest.mark.firmware, pytest.mark.sanity, pytest.mark.sanity_55]
|
||||||
|
|
||||||
|
|
||||||
|
@allure.testcase("firmware upgrade from Cloud")
|
||||||
@pytest.mark.firmware_cloud
|
@pytest.mark.firmware_cloud
|
||||||
class TestFirmware(object):
|
class TestFirmware(object):
|
||||||
|
|
||||||
|
|||||||
@@ -1,3 +1,9 @@
|
|||||||
|
"""
|
||||||
|
|
||||||
|
Client Connectivity Enterprise TTLS
|
||||||
|
pytest -m "client_connectivity and bridge and enterprise and ttls"
|
||||||
|
|
||||||
|
"""
|
||||||
import allure
|
import allure
|
||||||
import pytest
|
import pytest
|
||||||
|
|
||||||
@@ -22,6 +28,7 @@ setup_params_enterprise = {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@pytest.mark.suiteA
|
||||||
@pytest.mark.parametrize(
|
@pytest.mark.parametrize(
|
||||||
'setup_profiles',
|
'setup_profiles',
|
||||||
[setup_params_enterprise],
|
[setup_params_enterprise],
|
||||||
@@ -29,12 +36,19 @@ setup_params_enterprise = {
|
|||||||
scope="class"
|
scope="class"
|
||||||
)
|
)
|
||||||
@pytest.mark.usefixtures("setup_profiles")
|
@pytest.mark.usefixtures("setup_profiles")
|
||||||
class TestBridgeModeEnterpriseTTLSSuiteOne(object):
|
class TestBridgeModeEnterpriseTTLSSuiteA(object):
|
||||||
|
""" SuiteA Enterprise Test Cases
|
||||||
|
pytest -m "client_connectivity and bridge and enterprise and ttls and suiteA"
|
||||||
|
"""
|
||||||
|
|
||||||
@pytest.mark.wpa_enterprise
|
@pytest.mark.wpa_enterprise
|
||||||
@pytest.mark.twog
|
@pytest.mark.twog
|
||||||
def test_wpa_enterprise_2g(self, station_names_twog, setup_profiles, get_lanforge_data, lf_test, update_report,
|
def test_wpa_enterprise_2g(self, get_vif_state,
|
||||||
|
station_names_twog, setup_profiles, get_lanforge_data, lf_test, update_report,
|
||||||
test_cases, radius_info, exit_on_fail):
|
test_cases, radius_info, exit_on_fail):
|
||||||
|
""" wpa enterprise 2g
|
||||||
|
pytest -m "client_connectivity and bridge and enterprise and ttls and wpa_enterprise and twog"
|
||||||
|
"""
|
||||||
profile_data = setup_params_enterprise["ssid_modes"]["wpa_enterprise"][0]
|
profile_data = setup_params_enterprise["ssid_modes"]["wpa_enterprise"][0]
|
||||||
ssid_name = profile_data["ssid_name"]
|
ssid_name = profile_data["ssid_name"]
|
||||||
security = "wpa"
|
security = "wpa"
|
||||||
@@ -45,6 +59,8 @@ class TestBridgeModeEnterpriseTTLSSuiteOne(object):
|
|||||||
ttls_passwd = radius_info["password"]
|
ttls_passwd = radius_info["password"]
|
||||||
eap = "TTLS"
|
eap = "TTLS"
|
||||||
identity = radius_info['user']
|
identity = radius_info['user']
|
||||||
|
if ssid_name not in get_vif_state:
|
||||||
|
allure.attach(name="retest,vif state ssid not available:", body=str(get_vif_state))
|
||||||
passes = lf_test.EAP_Connect(ssid=ssid_name, security=security, extra_securities=extra_secu,
|
passes = lf_test.EAP_Connect(ssid=ssid_name, security=security, extra_securities=extra_secu,
|
||||||
mode=mode, band=band,
|
mode=mode, band=band,
|
||||||
eap=eap, ttls_passwd=ttls_passwd, identity=identity,
|
eap=eap, ttls_passwd=ttls_passwd, identity=identity,
|
||||||
@@ -68,6 +84,9 @@ class TestBridgeModeEnterpriseTTLSSuiteOne(object):
|
|||||||
@pytest.mark.fiveg
|
@pytest.mark.fiveg
|
||||||
def test_wpa_enterprise_5g(self, station_names_fiveg, setup_profiles, get_lanforge_data, lf_test, update_report,
|
def test_wpa_enterprise_5g(self, station_names_fiveg, setup_profiles, get_lanforge_data, lf_test, update_report,
|
||||||
test_cases, radius_info, exit_on_fail):
|
test_cases, radius_info, exit_on_fail):
|
||||||
|
""" wpa enterprise 2g
|
||||||
|
pytest -m "client_connectivity and bridge and enterprise and ttls and wpa_enterprise and fiveg"
|
||||||
|
"""
|
||||||
profile_data = setup_params_enterprise["ssid_modes"]["wpa_enterprise"][1]
|
profile_data = setup_params_enterprise["ssid_modes"]["wpa_enterprise"][1]
|
||||||
ssid_name = profile_data["ssid_name"]
|
ssid_name = profile_data["ssid_name"]
|
||||||
security = "wpa"
|
security = "wpa"
|
||||||
@@ -97,10 +116,15 @@ class TestBridgeModeEnterpriseTTLSSuiteOne(object):
|
|||||||
pytest.exit("Test Case Failed")
|
pytest.exit("Test Case Failed")
|
||||||
assert passes
|
assert passes
|
||||||
|
|
||||||
|
@pytest.mark.sanity_55
|
||||||
@pytest.mark.wpa2_enterprise
|
@pytest.mark.wpa2_enterprise
|
||||||
@pytest.mark.twog
|
@pytest.mark.twog
|
||||||
def test_wpa2_enterprise_2g(self, station_names_twog, setup_profiles, get_lanforge_data, lf_test, update_report,
|
def test_wpa2_enterprise_2g(self, get_vif_state,
|
||||||
|
station_names_twog, setup_profiles, get_lanforge_data, lf_test, update_report,
|
||||||
test_cases, radius_info, exit_on_fail):
|
test_cases, radius_info, exit_on_fail):
|
||||||
|
""" wpa enterprise 2g
|
||||||
|
pytest -m "client_connectivity and bridge and enterprise and ttls and wpa2_enterprise and twog"
|
||||||
|
"""
|
||||||
profile_data = setup_params_enterprise["ssid_modes"]["wpa2_enterprise"][0]
|
profile_data = setup_params_enterprise["ssid_modes"]["wpa2_enterprise"][0]
|
||||||
ssid_name = profile_data["ssid_name"]
|
ssid_name = profile_data["ssid_name"]
|
||||||
security = "wpa2"
|
security = "wpa2"
|
||||||
@@ -110,6 +134,9 @@ class TestBridgeModeEnterpriseTTLSSuiteOne(object):
|
|||||||
ttls_passwd = radius_info["password"]
|
ttls_passwd = radius_info["password"]
|
||||||
eap = "TTLS"
|
eap = "TTLS"
|
||||||
identity = radius_info['user']
|
identity = radius_info['user']
|
||||||
|
if ssid_name not in get_vif_state:
|
||||||
|
allure.attach(name="retest,vif state ssid not available:", body=str(get_vif_state))
|
||||||
|
pytest.xfail("SSID NOT AVAILABLE IN VIF STATE")
|
||||||
passes = lf_test.EAP_Connect(ssid=ssid_name, security=security,
|
passes = lf_test.EAP_Connect(ssid=ssid_name, security=security,
|
||||||
mode=mode, band=band,
|
mode=mode, band=band,
|
||||||
eap=eap, ttls_passwd=ttls_passwd, identity=identity,
|
eap=eap, ttls_passwd=ttls_passwd, identity=identity,
|
||||||
@@ -129,10 +156,15 @@ class TestBridgeModeEnterpriseTTLSSuiteOne(object):
|
|||||||
pytest.exit("Test Case Failed")
|
pytest.exit("Test Case Failed")
|
||||||
assert passes
|
assert passes
|
||||||
|
|
||||||
|
@pytest.mark.sanity_55
|
||||||
@pytest.mark.wpa2_enterprise
|
@pytest.mark.wpa2_enterprise
|
||||||
@pytest.mark.fiveg
|
@pytest.mark.fiveg
|
||||||
def test_wpa2_enterprise_5g(self, station_names_fiveg, setup_profiles, get_lanforge_data, lf_test, update_report,
|
def test_wpa2_enterprise_5g(self, get_vif_state,
|
||||||
|
station_names_fiveg, setup_profiles, get_lanforge_data, lf_test, update_report,
|
||||||
test_cases, radius_info, exit_on_fail):
|
test_cases, radius_info, exit_on_fail):
|
||||||
|
""" wpa enterprise 2g
|
||||||
|
pytest -m "client_connectivity and bridge and enterprise and ttls and wpa2_enterprise and fiveg"
|
||||||
|
"""
|
||||||
profile_data = setup_params_enterprise["ssid_modes"]["wpa2_enterprise"][1]
|
profile_data = setup_params_enterprise["ssid_modes"]["wpa2_enterprise"][1]
|
||||||
ssid_name = profile_data["ssid_name"]
|
ssid_name = profile_data["ssid_name"]
|
||||||
security = "wpa2"
|
security = "wpa2"
|
||||||
@@ -142,6 +174,9 @@ class TestBridgeModeEnterpriseTTLSSuiteOne(object):
|
|||||||
ttls_passwd = radius_info["password"]
|
ttls_passwd = radius_info["password"]
|
||||||
eap = "TTLS"
|
eap = "TTLS"
|
||||||
identity = radius_info['user']
|
identity = radius_info['user']
|
||||||
|
if ssid_name not in get_vif_state:
|
||||||
|
allure.attach(name="retest,vif state ssid not available:", body=str(get_vif_state))
|
||||||
|
pytest.xfail("SSID NOT AVAILABLE IN VIF STATE")
|
||||||
passes = lf_test.EAP_Connect(ssid=ssid_name, security=security,
|
passes = lf_test.EAP_Connect(ssid=ssid_name, security=security,
|
||||||
mode=mode, band=band,
|
mode=mode, band=band,
|
||||||
eap=eap, ttls_passwd=ttls_passwd, identity=identity,
|
eap=eap, ttls_passwd=ttls_passwd, identity=identity,
|
||||||
@@ -163,8 +198,12 @@ class TestBridgeModeEnterpriseTTLSSuiteOne(object):
|
|||||||
|
|
||||||
@pytest.mark.wpa3_enterprise
|
@pytest.mark.wpa3_enterprise
|
||||||
@pytest.mark.twog
|
@pytest.mark.twog
|
||||||
def test_wpa3_enterprise_2g(self, station_names_twog, setup_profiles, get_lanforge_data, lf_test, update_report,
|
def test_wpa3_enterprise_2g(self, get_vif_state,
|
||||||
|
station_names_twog, setup_profiles, get_lanforge_data, lf_test, update_report,
|
||||||
test_cases, radius_info, exit_on_fail):
|
test_cases, radius_info, exit_on_fail):
|
||||||
|
""" wpa enterprise 2g
|
||||||
|
pytest -m "client_connectivity and bridge and enterprise and ttls and wpa3_enterprise and twog"
|
||||||
|
"""
|
||||||
profile_data = setup_params_enterprise["ssid_modes"]["wpa3_enterprise"][0]
|
profile_data = setup_params_enterprise["ssid_modes"]["wpa3_enterprise"][0]
|
||||||
ssid_name = profile_data["ssid_name"]
|
ssid_name = profile_data["ssid_name"]
|
||||||
security = "wpa3"
|
security = "wpa3"
|
||||||
@@ -174,6 +213,9 @@ class TestBridgeModeEnterpriseTTLSSuiteOne(object):
|
|||||||
ttls_passwd = radius_info["password"]
|
ttls_passwd = radius_info["password"]
|
||||||
eap = "TTLS"
|
eap = "TTLS"
|
||||||
identity = radius_info['user']
|
identity = radius_info['user']
|
||||||
|
if ssid_name not in get_vif_state:
|
||||||
|
allure.attach(name="retest,vif state ssid not available:", body=str(get_vif_state))
|
||||||
|
pytest.xfail("SSID NOT AVAILABLE IN VIF STATE")
|
||||||
passes = lf_test.EAP_Connect(ssid=ssid_name, security=security,
|
passes = lf_test.EAP_Connect(ssid=ssid_name, security=security,
|
||||||
mode=mode, band=band,
|
mode=mode, band=band,
|
||||||
eap=eap, ttls_passwd=ttls_passwd, identity=identity,
|
eap=eap, ttls_passwd=ttls_passwd, identity=identity,
|
||||||
@@ -195,8 +237,12 @@ class TestBridgeModeEnterpriseTTLSSuiteOne(object):
|
|||||||
|
|
||||||
@pytest.mark.wpa3_enterprise
|
@pytest.mark.wpa3_enterprise
|
||||||
@pytest.mark.fiveg
|
@pytest.mark.fiveg
|
||||||
def test_wpa3_enterprise_5g(self, station_names_fiveg, setup_profiles, get_lanforge_data, lf_test, update_report,
|
def test_wpa3_enterprise_5g(self, get_vif_state,
|
||||||
|
station_names_fiveg, setup_profiles, get_lanforge_data, lf_test, update_report,
|
||||||
test_cases, radius_info, exit_on_fail):
|
test_cases, radius_info, exit_on_fail):
|
||||||
|
""" wpa enterprise 2g
|
||||||
|
pytest -m "client_connectivity and bridge and enterprise and ttls and wpa3_enterprise and fiveg"
|
||||||
|
"""
|
||||||
profile_data = setup_params_enterprise["ssid_modes"]["wpa3_enterprise"][1]
|
profile_data = setup_params_enterprise["ssid_modes"]["wpa3_enterprise"][1]
|
||||||
ssid_name = profile_data["ssid_name"]
|
ssid_name = profile_data["ssid_name"]
|
||||||
security = "wpa3"
|
security = "wpa3"
|
||||||
@@ -206,6 +252,9 @@ class TestBridgeModeEnterpriseTTLSSuiteOne(object):
|
|||||||
ttls_passwd = radius_info["password"]
|
ttls_passwd = radius_info["password"]
|
||||||
eap = "TTLS"
|
eap = "TTLS"
|
||||||
identity = radius_info['user']
|
identity = radius_info['user']
|
||||||
|
if ssid_name not in get_vif_state:
|
||||||
|
allure.attach(name="retest,vif state ssid not available:", body=str(get_vif_state))
|
||||||
|
pytest.xfail("SSID NOT AVAILABLE IN VIF STATE")
|
||||||
passes = lf_test.EAP_Connect(ssid=ssid_name, security=security,
|
passes = lf_test.EAP_Connect(ssid=ssid_name, security=security,
|
||||||
mode=mode, band=band,
|
mode=mode, band=band,
|
||||||
eap=eap, ttls_passwd=ttls_passwd, identity=identity,
|
eap=eap, ttls_passwd=ttls_passwd, identity=identity,
|
||||||
@@ -241,7 +290,7 @@ setup_params_enterprise_two = {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@pytest.mark.enterprise
|
@pytest.mark.suiteB
|
||||||
@pytest.mark.parametrize(
|
@pytest.mark.parametrize(
|
||||||
'setup_profiles',
|
'setup_profiles',
|
||||||
[setup_params_enterprise_two],
|
[setup_params_enterprise_two],
|
||||||
@@ -250,11 +299,18 @@ setup_params_enterprise_two = {
|
|||||||
)
|
)
|
||||||
@pytest.mark.usefixtures("setup_profiles")
|
@pytest.mark.usefixtures("setup_profiles")
|
||||||
class TestBridgeModeEnterpriseTTLSSuiteTwo(object):
|
class TestBridgeModeEnterpriseTTLSSuiteTwo(object):
|
||||||
|
""" SuiteA Enterprise Test Cases
|
||||||
|
pytest -m "client_connectivity and bridge and enterprise and ttls and suiteB"
|
||||||
|
"""
|
||||||
|
|
||||||
@pytest.mark.wpa_wpa2_enterprise_mixed
|
@pytest.mark.wpa_wpa2_enterprise_mixed
|
||||||
@pytest.mark.twog
|
@pytest.mark.twog
|
||||||
def test_wpa_wpa2_enterprise_2g(self, station_names_twog, setup_profiles, get_lanforge_data, lf_test, update_report,
|
def test_wpa_wpa2_enterprise_2g(self, get_vif_state,
|
||||||
|
station_names_twog, setup_profiles, get_lanforge_data, lf_test, update_report,
|
||||||
test_cases, radius_info, exit_on_fail):
|
test_cases, radius_info, exit_on_fail):
|
||||||
|
""" wpa enterprise 2g
|
||||||
|
pytest -m "client_connectivity and bridge and enterprise and ttls and wpa_wpa2_enterprise_mixed and twog"
|
||||||
|
"""
|
||||||
profile_data = setup_params_enterprise_two["ssid_modes"]["wpa_wpa2_enterprise_mixed"][0]
|
profile_data = setup_params_enterprise_two["ssid_modes"]["wpa_wpa2_enterprise_mixed"][0]
|
||||||
ssid_name = profile_data["ssid_name"]
|
ssid_name = profile_data["ssid_name"]
|
||||||
security = "wpa"
|
security = "wpa"
|
||||||
@@ -265,6 +321,9 @@ class TestBridgeModeEnterpriseTTLSSuiteTwo(object):
|
|||||||
ttls_passwd = radius_info["password"]
|
ttls_passwd = radius_info["password"]
|
||||||
eap = "TTLS"
|
eap = "TTLS"
|
||||||
identity = radius_info['user']
|
identity = radius_info['user']
|
||||||
|
if ssid_name not in get_vif_state:
|
||||||
|
allure.attach(name="retest,vif state ssid not available:", body=str(get_vif_state))
|
||||||
|
pytest.xfail("SSID NOT AVAILABLE IN VIF STATE")
|
||||||
passes = lf_test.EAP_Connect(ssid=ssid_name, security=security, extra_securities=extra_secu,
|
passes = lf_test.EAP_Connect(ssid=ssid_name, security=security, extra_securities=extra_secu,
|
||||||
mode=mode, band=band,
|
mode=mode, band=band,
|
||||||
eap=eap, ttls_passwd=ttls_passwd, identity=identity,
|
eap=eap, ttls_passwd=ttls_passwd, identity=identity,
|
||||||
@@ -286,8 +345,12 @@ class TestBridgeModeEnterpriseTTLSSuiteTwo(object):
|
|||||||
|
|
||||||
@pytest.mark.wpa_wpa2_enterprise_mixed
|
@pytest.mark.wpa_wpa2_enterprise_mixed
|
||||||
@pytest.mark.fiveg
|
@pytest.mark.fiveg
|
||||||
def test_wpa_wpa2_enterprise_5g(self, station_names_fiveg, setup_profiles, get_lanforge_data, lf_test,
|
def test_wpa_wpa2_enterprise_5g(self, get_vif_state,
|
||||||
|
station_names_fiveg, setup_profiles, get_lanforge_data, lf_test,
|
||||||
update_report, test_cases, radius_info, exit_on_fail):
|
update_report, test_cases, radius_info, exit_on_fail):
|
||||||
|
""" wpa enterprise 2g
|
||||||
|
pytest -m "client_connectivity and bridge and enterprise and ttls and wpa_wpa2_enterprise_mixed and fiveg"
|
||||||
|
"""
|
||||||
profile_data = setup_params_enterprise_two["ssid_modes"]["wpa_wpa2_enterprise_mixed"][1]
|
profile_data = setup_params_enterprise_two["ssid_modes"]["wpa_wpa2_enterprise_mixed"][1]
|
||||||
ssid_name = profile_data["ssid_name"]
|
ssid_name = profile_data["ssid_name"]
|
||||||
security = "wpa"
|
security = "wpa"
|
||||||
@@ -298,6 +361,9 @@ class TestBridgeModeEnterpriseTTLSSuiteTwo(object):
|
|||||||
ttls_passwd = radius_info["password"]
|
ttls_passwd = radius_info["password"]
|
||||||
eap = "TTLS"
|
eap = "TTLS"
|
||||||
identity = radius_info['user']
|
identity = radius_info['user']
|
||||||
|
if ssid_name not in get_vif_state:
|
||||||
|
allure.attach(name="retest,vif state ssid not available:", body=str(get_vif_state))
|
||||||
|
pytest.xfail("SSID NOT AVAILABLE IN VIF STATE")
|
||||||
passes = lf_test.EAP_Connect(ssid=ssid_name, security=security, extra_securities=extra_secu,
|
passes = lf_test.EAP_Connect(ssid=ssid_name, security=security, extra_securities=extra_secu,
|
||||||
mode=mode, band=band,
|
mode=mode, band=band,
|
||||||
eap=eap, ttls_passwd=ttls_passwd, identity=identity,
|
eap=eap, ttls_passwd=ttls_passwd, identity=identity,
|
||||||
@@ -319,8 +385,12 @@ class TestBridgeModeEnterpriseTTLSSuiteTwo(object):
|
|||||||
|
|
||||||
@pytest.mark.wpa3_enterprise_mixed
|
@pytest.mark.wpa3_enterprise_mixed
|
||||||
@pytest.mark.twog
|
@pytest.mark.twog
|
||||||
def test_wpa3_enterprise_mixed_2g(self, station_names_twog, setup_profiles, get_lanforge_data, lf_test,
|
def test_wpa3_enterprise_mixed_2g(self, get_vif_state,
|
||||||
|
station_names_twog, setup_profiles, get_lanforge_data, lf_test,
|
||||||
update_report, test_cases, radius_info, exit_on_fail):
|
update_report, test_cases, radius_info, exit_on_fail):
|
||||||
|
""" wpa enterprise 2g
|
||||||
|
pytest -m "client_connectivity and bridge and enterprise and ttls and wpa3_enterprise_mixed and twog"
|
||||||
|
"""
|
||||||
profile_data = setup_params_enterprise_two["ssid_modes"]["wpa3_enterprise_mixed"][0]
|
profile_data = setup_params_enterprise_two["ssid_modes"]["wpa3_enterprise_mixed"][0]
|
||||||
ssid_name = profile_data["ssid_name"]
|
ssid_name = profile_data["ssid_name"]
|
||||||
security = "wpa3"
|
security = "wpa3"
|
||||||
@@ -330,6 +400,9 @@ class TestBridgeModeEnterpriseTTLSSuiteTwo(object):
|
|||||||
ttls_passwd = radius_info["password"]
|
ttls_passwd = radius_info["password"]
|
||||||
eap = "TTLS"
|
eap = "TTLS"
|
||||||
identity = radius_info['user']
|
identity = radius_info['user']
|
||||||
|
if ssid_name not in get_vif_state:
|
||||||
|
allure.attach(name="retest,vif state ssid not available:", body=str(get_vif_state))
|
||||||
|
pytest.xfail("SSID NOT AVAILABLE IN VIF STATE")
|
||||||
passes = lf_test.EAP_Connect(ssid=ssid_name, security=security,
|
passes = lf_test.EAP_Connect(ssid=ssid_name, security=security,
|
||||||
mode=mode, band=band,
|
mode=mode, band=band,
|
||||||
eap=eap, ttls_passwd=ttls_passwd, identity=identity,
|
eap=eap, ttls_passwd=ttls_passwd, identity=identity,
|
||||||
@@ -351,9 +424,13 @@ class TestBridgeModeEnterpriseTTLSSuiteTwo(object):
|
|||||||
|
|
||||||
@pytest.mark.wpa3_enterprise_mixed
|
@pytest.mark.wpa3_enterprise_mixed
|
||||||
@pytest.mark.fiveg
|
@pytest.mark.fiveg
|
||||||
def test_wpa3_enterprise_mixed_5g(self, station_names_fiveg, setup_profiles, get_lanforge_data, lf_test,
|
def test_wpa3_enterprise_mixed_5g(self, get_vif_state,
|
||||||
|
station_names_fiveg, setup_profiles, get_lanforge_data, lf_test,
|
||||||
update_report, exit_on_fail,
|
update_report, exit_on_fail,
|
||||||
test_cases, radius_info):
|
test_cases, radius_info):
|
||||||
|
""" wpa enterprise 2g
|
||||||
|
pytest -m "client_connectivity and bridge and enterprise and ttls and wpa3_enterprise_mixed and fiveg"
|
||||||
|
"""
|
||||||
profile_data = setup_params_enterprise_two["ssid_modes"]["wpa3_enterprise_mixed"][1]
|
profile_data = setup_params_enterprise_two["ssid_modes"]["wpa3_enterprise_mixed"][1]
|
||||||
ssid_name = profile_data["ssid_name"]
|
ssid_name = profile_data["ssid_name"]
|
||||||
security = "wpa3"
|
security = "wpa3"
|
||||||
@@ -363,6 +440,9 @@ class TestBridgeModeEnterpriseTTLSSuiteTwo(object):
|
|||||||
ttls_passwd = radius_info["password"]
|
ttls_passwd = radius_info["password"]
|
||||||
eap = "TTLS"
|
eap = "TTLS"
|
||||||
identity = radius_info['user']
|
identity = radius_info['user']
|
||||||
|
if ssid_name not in get_vif_state:
|
||||||
|
allure.attach(name="retest,vif state ssid not available:", body=str(get_vif_state))
|
||||||
|
pytest.xfail("SSID NOT AVAILABLE IN VIF STATE")
|
||||||
passes = lf_test.EAP_Connect(ssid=ssid_name, security=security,
|
passes = lf_test.EAP_Connect(ssid=ssid_name, security=security,
|
||||||
mode=mode, band=band,
|
mode=mode, band=band,
|
||||||
eap=eap, ttls_passwd=ttls_passwd, identity=identity,
|
eap=eap, ttls_passwd=ttls_passwd, identity=identity,
|
||||||
@@ -371,7 +451,8 @@ class TestBridgeModeEnterpriseTTLSSuiteTwo(object):
|
|||||||
if passes:
|
if passes:
|
||||||
update_report.update_testrail(case_id=test_cases["5g_wpa3_mixed_eap_ttls_wpa3_vlan"],
|
update_report.update_testrail(case_id=test_cases["5g_wpa3_mixed_eap_ttls_wpa3_vlan"],
|
||||||
status_id=1,
|
status_id=1,
|
||||||
msg='5G WPA3 Mixed Enterprise Client Connectivity Passed successfully - bridge mode' + str(
|
msg='5G WPA3 Mixed Enterprise Client Connectivity Passed successfully - '
|
||||||
|
'bridge mode' + str(
|
||||||
passes))
|
passes))
|
||||||
else:
|
else:
|
||||||
update_report.update_testrail(case_id=test_cases["5g_wpa3_mixed_eap_ttls_wpa3_vlan"],
|
update_report.update_testrail(case_id=test_cases["5g_wpa3_mixed_eap_ttls_wpa3_vlan"],
|
||||||
|
|||||||
@@ -45,7 +45,7 @@ class TestBridgeModeConnectivitySuiteA(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, 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 bridge and general and open and twog"
|
pytest -m "client_connectivity and bridge and general and open and twog"
|
||||||
@@ -57,6 +57,9 @@ class TestBridgeModeConnectivitySuiteA(object):
|
|||||||
mode = "BRIDGE"
|
mode = "BRIDGE"
|
||||||
band = "twog"
|
band = "twog"
|
||||||
vlan = 1
|
vlan = 1
|
||||||
|
if ssid_name not in get_vif_state:
|
||||||
|
allure.attach(name="retest,vif state ssid not available:", body=str(get_vif_state))
|
||||||
|
pytest.xfail("SSID NOT AVAILABLE IN VIF STATE")
|
||||||
passes, result = lf_test.Client_Connectivity(ssid=ssid_name, security=security,
|
passes, result = lf_test.Client_Connectivity(ssid=ssid_name, security=security,
|
||||||
passkey=security_key, mode=mode, band=band,
|
passkey=security_key, mode=mode, band=band,
|
||||||
station_name=station_names_twog, vlan_id=vlan)
|
station_name=station_names_twog, vlan_id=vlan)
|
||||||
@@ -76,7 +79,7 @@ class TestBridgeModeConnectivitySuiteA(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_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"
|
||||||
"""
|
"""
|
||||||
@@ -87,6 +90,9 @@ class TestBridgeModeConnectivitySuiteA(object):
|
|||||||
mode = "BRIDGE"
|
mode = "BRIDGE"
|
||||||
band = "fiveg"
|
band = "fiveg"
|
||||||
vlan = 1
|
vlan = 1
|
||||||
|
if ssid_name not in get_vif_state:
|
||||||
|
allure.attach(name="retest,vif state ssid not available:", body=str(get_vif_state))
|
||||||
|
pytest.xfail("SSID NOT AVAILABLE IN VIF STATE")
|
||||||
passes, result = lf_test.Client_Connectivity(ssid=ssid_name, security=security,
|
passes, result = lf_test.Client_Connectivity(ssid=ssid_name, security=security,
|
||||||
passkey=security_key, mode=mode, band=band,
|
passkey=security_key, mode=mode, band=band,
|
||||||
station_name=station_names_fiveg, vlan_id=vlan)
|
station_name=station_names_fiveg, vlan_id=vlan)
|
||||||
@@ -103,10 +109,11 @@ class TestBridgeModeConnectivitySuiteA(object):
|
|||||||
passes))
|
passes))
|
||||||
assert result
|
assert result
|
||||||
|
|
||||||
|
@pytest.mark.sanity_55
|
||||||
@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_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"
|
||||||
@@ -118,6 +125,9 @@ class TestBridgeModeConnectivitySuiteA(object):
|
|||||||
mode = "BRIDGE"
|
mode = "BRIDGE"
|
||||||
band = "twog"
|
band = "twog"
|
||||||
vlan = 1
|
vlan = 1
|
||||||
|
if ssid_name not in get_vif_state:
|
||||||
|
allure.attach(name="retest,vif state ssid not available:", body=str(get_vif_state))
|
||||||
|
pytest.xfail("SSID NOT AVAILABLE IN VIF STATE")
|
||||||
passes, result = lf_test.Client_Connectivity(ssid=ssid_name, security=security,
|
passes, result = lf_test.Client_Connectivity(ssid=ssid_name, security=security,
|
||||||
passkey=security_key, mode=mode, band=band,
|
passkey=security_key, mode=mode, band=band,
|
||||||
station_name=station_names_twog, vlan_id=vlan)
|
station_name=station_names_twog, vlan_id=vlan)
|
||||||
@@ -134,10 +144,11 @@ class TestBridgeModeConnectivitySuiteA(object):
|
|||||||
passes))
|
passes))
|
||||||
assert result
|
assert result
|
||||||
|
|
||||||
|
@pytest.mark.sanity_55
|
||||||
@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, 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"
|
||||||
"""
|
"""
|
||||||
@@ -148,6 +159,9 @@ class TestBridgeModeConnectivitySuiteA(object):
|
|||||||
mode = "BRIDGE"
|
mode = "BRIDGE"
|
||||||
band = "fiveg"
|
band = "fiveg"
|
||||||
vlan = 1
|
vlan = 1
|
||||||
|
if ssid_name not in get_vif_state:
|
||||||
|
allure.attach(name="retest,vif state ssid not available:", body=str(get_vif_state))
|
||||||
|
pytest.xfail("SSID NOT AVAILABLE IN VIF STATE")
|
||||||
passes, result = lf_test.Client_Connectivity(ssid=ssid_name, security=security,
|
passes, result = lf_test.Client_Connectivity(ssid=ssid_name, security=security,
|
||||||
passkey=security_key, mode=mode, band=band,
|
passkey=security_key, mode=mode, band=band,
|
||||||
station_name=station_names_fiveg, vlan_id=vlan)
|
station_name=station_names_fiveg, vlan_id=vlan)
|
||||||
@@ -164,10 +178,11 @@ class TestBridgeModeConnectivitySuiteA(object):
|
|||||||
passes))
|
passes))
|
||||||
assert result
|
assert result
|
||||||
|
|
||||||
|
@pytest.mark.sanity_55
|
||||||
@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_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"
|
||||||
@@ -179,6 +194,9 @@ class TestBridgeModeConnectivitySuiteA(object):
|
|||||||
mode = "BRIDGE"
|
mode = "BRIDGE"
|
||||||
band = "twog"
|
band = "twog"
|
||||||
vlan = 1
|
vlan = 1
|
||||||
|
if ssid_name not in get_vif_state:
|
||||||
|
allure.attach(name="retest,vif state ssid not available:", body=str(get_vif_state))
|
||||||
|
pytest.xfail("SSID NOT AVAILABLE IN VIF STATE")
|
||||||
passes, result = lf_test.Client_Connectivity(ssid=ssid_name, security=security,
|
passes, result = lf_test.Client_Connectivity(ssid=ssid_name, security=security,
|
||||||
passkey=security_key, mode=mode, band=band,
|
passkey=security_key, mode=mode, band=band,
|
||||||
station_name=station_names_twog, vlan_id=vlan)
|
station_name=station_names_twog, vlan_id=vlan)
|
||||||
@@ -195,10 +213,11 @@ class TestBridgeModeConnectivitySuiteA(object):
|
|||||||
passes))
|
passes))
|
||||||
assert result
|
assert result
|
||||||
|
|
||||||
|
@pytest.mark.sanity_55
|
||||||
@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_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"
|
||||||
@@ -210,6 +229,9 @@ class TestBridgeModeConnectivitySuiteA(object):
|
|||||||
mode = "BRIDGE"
|
mode = "BRIDGE"
|
||||||
band = "fiveg"
|
band = "fiveg"
|
||||||
vlan = 1
|
vlan = 1
|
||||||
|
if ssid_name not in get_vif_state:
|
||||||
|
allure.attach(name="retest,vif state ssid not available:", body=str(get_vif_state))
|
||||||
|
pytest.xfail("SSID NOT AVAILABLE IN VIF STATE")
|
||||||
passes, result = lf_test.Client_Connectivity(ssid=ssid_name, security=security,
|
passes, result = lf_test.Client_Connectivity(ssid=ssid_name, security=security,
|
||||||
passkey=security_key, mode=mode, band=band,
|
passkey=security_key, mode=mode, band=band,
|
||||||
station_name=station_names_fiveg, vlan_id=vlan)
|
station_name=station_names_fiveg, vlan_id=vlan)
|
||||||
@@ -265,7 +287,7 @@ class TestBridgeModeConnectivitySuiteTwo(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, 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"
|
||||||
@@ -277,6 +299,9 @@ class TestBridgeModeConnectivitySuiteTwo(object):
|
|||||||
mode = "BRIDGE"
|
mode = "BRIDGE"
|
||||||
band = "twog"
|
band = "twog"
|
||||||
vlan = 1
|
vlan = 1
|
||||||
|
if ssid_name not in get_vif_state:
|
||||||
|
allure.attach(name="retest,vif state ssid not available:", body=str(get_vif_state))
|
||||||
|
pytest.xfail("SSID NOT AVAILABLE IN VIF STATE")
|
||||||
passes, result = lf_test.Client_Connectivity(ssid=ssid_name, security=security,
|
passes, result = lf_test.Client_Connectivity(ssid=ssid_name, security=security,
|
||||||
passkey=security_key, mode=mode, band=band,
|
passkey=security_key, mode=mode, band=band,
|
||||||
station_name=station_names_twog, vlan_id=vlan)
|
station_name=station_names_twog, vlan_id=vlan)
|
||||||
@@ -296,7 +321,7 @@ class TestBridgeModeConnectivitySuiteTwo(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, 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"
|
||||||
"""
|
"""
|
||||||
@@ -307,6 +332,9 @@ class TestBridgeModeConnectivitySuiteTwo(object):
|
|||||||
mode = "BRIDGE"
|
mode = "BRIDGE"
|
||||||
band = "fiveg"
|
band = "fiveg"
|
||||||
vlan = 1
|
vlan = 1
|
||||||
|
if ssid_name not in get_vif_state:
|
||||||
|
allure.attach(name="retest,vif state ssid not available:", body=str(get_vif_state))
|
||||||
|
pytest.xfail("SSID NOT AVAILABLE IN VIF STATE")
|
||||||
passes, result = lf_test.Client_Connectivity(ssid=ssid_name, security=security,
|
passes, result = lf_test.Client_Connectivity(ssid=ssid_name, security=security,
|
||||||
passkey=security_key, mode=mode, band=band,
|
passkey=security_key, mode=mode, band=band,
|
||||||
station_name=station_names_fiveg, vlan_id=vlan)
|
station_name=station_names_fiveg, vlan_id=vlan)
|
||||||
@@ -326,7 +354,7 @@ class TestBridgeModeConnectivitySuiteTwo(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, 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
|
||||||
@@ -339,6 +367,9 @@ class TestBridgeModeConnectivitySuiteTwo(object):
|
|||||||
mode = "BRIDGE"
|
mode = "BRIDGE"
|
||||||
band = "twog"
|
band = "twog"
|
||||||
vlan = 1
|
vlan = 1
|
||||||
|
if ssid_name not in get_vif_state:
|
||||||
|
allure.attach(name="retest,vif state ssid not available:", body=str(get_vif_state))
|
||||||
|
pytest.xfail("SSID NOT AVAILABLE IN VIF STATE")
|
||||||
passes, result = lf_test.Client_Connectivity(ssid=ssid_name, security=security,
|
passes, result = lf_test.Client_Connectivity(ssid=ssid_name, security=security,
|
||||||
passkey=security_key, mode=mode, band=band,
|
passkey=security_key, mode=mode, band=band,
|
||||||
station_name=station_names_twog, vlan_id=vlan)
|
station_name=station_names_twog, vlan_id=vlan)
|
||||||
@@ -358,7 +389,7 @@ class TestBridgeModeConnectivitySuiteTwo(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, 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"
|
||||||
@@ -370,6 +401,9 @@ class TestBridgeModeConnectivitySuiteTwo(object):
|
|||||||
mode = "BRIDGE"
|
mode = "BRIDGE"
|
||||||
band = "fiveg"
|
band = "fiveg"
|
||||||
vlan = 1
|
vlan = 1
|
||||||
|
if ssid_name not in get_vif_state:
|
||||||
|
allure.attach(name="retest,vif state ssid not available:", body=str(get_vif_state))
|
||||||
|
pytest.xfail("SSID NOT AVAILABLE IN VIF STATE")
|
||||||
passes, result = lf_test.Client_Connectivity(ssid=ssid_name, security=security,
|
passes, result = lf_test.Client_Connectivity(ssid=ssid_name, security=security,
|
||||||
passkey=security_key, mode=mode, band=band,
|
passkey=security_key, mode=mode, band=band,
|
||||||
station_name=station_names_fiveg, vlan_id=vlan)
|
station_name=station_names_fiveg, vlan_id=vlan)
|
||||||
@@ -389,7 +423,7 @@ class TestBridgeModeConnectivitySuiteTwo(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, 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
|
||||||
@@ -403,6 +437,9 @@ class TestBridgeModeConnectivitySuiteTwo(object):
|
|||||||
mode = "BRIDGE"
|
mode = "BRIDGE"
|
||||||
band = "twog"
|
band = "twog"
|
||||||
vlan = 1
|
vlan = 1
|
||||||
|
if ssid_name not in get_vif_state:
|
||||||
|
allure.attach(name="retest,vif state ssid not available:", body=str(get_vif_state))
|
||||||
|
pytest.xfail("SSID NOT AVAILABLE IN VIF STATE")
|
||||||
passes, result = lf_test.Client_Connectivity(ssid=ssid_name, security=security, extra_securities=extra_secu,
|
passes, result = lf_test.Client_Connectivity(ssid=ssid_name, security=security, extra_securities=extra_secu,
|
||||||
passkey=security_key, mode=mode, band=band,
|
passkey=security_key, mode=mode, band=band,
|
||||||
station_name=station_names_twog, vlan_id=vlan)
|
station_name=station_names_twog, vlan_id=vlan)
|
||||||
@@ -422,7 +459,7 @@ class TestBridgeModeConnectivitySuiteTwo(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, 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"
|
||||||
@@ -435,6 +472,9 @@ class TestBridgeModeConnectivitySuiteTwo(object):
|
|||||||
mode = "BRIDGE"
|
mode = "BRIDGE"
|
||||||
band = "fiveg"
|
band = "fiveg"
|
||||||
vlan = 1
|
vlan = 1
|
||||||
|
if ssid_name not in get_vif_state:
|
||||||
|
allure.attach(name="retest,vif state ssid not available:", body=str(get_vif_state))
|
||||||
|
pytest.xfail("SSID NOT AVAILABLE IN VIF STATE")
|
||||||
passes, result = lf_test.Client_Connectivity(ssid=ssid_name, security=security, extra_securities=extra_secu,
|
passes, result = lf_test.Client_Connectivity(ssid=ssid_name, security=security, extra_securities=extra_secu,
|
||||||
passkey=security_key, mode=mode, band=band,
|
passkey=security_key, mode=mode, band=band,
|
||||||
station_name=station_names_fiveg, vlan_id=vlan)
|
station_name=station_names_fiveg, vlan_id=vlan)
|
||||||
@@ -477,7 +517,7 @@ class TestBridgeModeConnectivitySuiteTwo(object):
|
|||||||
#
|
#
|
||||||
# @pytest.mark.wep
|
# @pytest.mark.wep
|
||||||
# @pytest.mark.twog
|
# @pytest.mark.twog
|
||||||
# def test_wep_2g(self, station_names_twog, setup_profiles, get_lanforge_data, lf_test, update_report,
|
# def test_wep_2g(self, get_vif_state,station_names_twog, setup_profiles, get_lanforge_data, lf_test, update_report,
|
||||||
# test_cases, radius_info):
|
# test_cases, radius_info):
|
||||||
# profile_data = setup_params_wep["ssid_modes"]["wep"][0]
|
# profile_data = setup_params_wep["ssid_modes"]["wep"][0]
|
||||||
# ssid_name = profile_data["ssid_name"]
|
# ssid_name = profile_data["ssid_name"]
|
||||||
@@ -505,7 +545,7 @@ class TestBridgeModeConnectivitySuiteTwo(object):
|
|||||||
#
|
#
|
||||||
# @pytest.mark.wep
|
# @pytest.mark.wep
|
||||||
# @pytest.mark.fiveg
|
# @pytest.mark.fiveg
|
||||||
# def test_wep_5g(self, station_names_fiveg, setup_profiles, get_lanforge_data, lf_test, update_report,
|
# def test_wep_5g(self, get_vif_state,station_names_fiveg, setup_profiles, get_lanforge_data, lf_test, update_report,
|
||||||
# test_cases, radius_info):
|
# test_cases, radius_info):
|
||||||
# profile_data = setup_params_wep["ssid_modes"]["wep"][1]
|
# profile_data = setup_params_wep["ssid_modes"]["wep"][1]
|
||||||
# ssid_name = profile_data["ssid_name"]
|
# ssid_name = profile_data["ssid_name"]
|
||||||
|
|||||||
@@ -33,7 +33,7 @@ class TestNATModeEnterpriseTTLSSuiteOne(object):
|
|||||||
|
|
||||||
@pytest.mark.wpa_enterprise
|
@pytest.mark.wpa_enterprise
|
||||||
@pytest.mark.twog
|
@pytest.mark.twog
|
||||||
def test_wpa_enterprise_2g(self, station_names_twog, setup_profiles, get_lanforge_data, lf_test, update_report,
|
def test_wpa_enterprise_2g(self, get_vif_state,station_names_twog, setup_profiles, get_lanforge_data, lf_test, update_report,
|
||||||
test_cases, radius_info, exit_on_fail):
|
test_cases, radius_info, exit_on_fail):
|
||||||
profile_data = setup_params_enterprise["ssid_modes"]["wpa_enterprise"][0]
|
profile_data = setup_params_enterprise["ssid_modes"]["wpa_enterprise"][0]
|
||||||
ssid_name = profile_data["ssid_name"]
|
ssid_name = profile_data["ssid_name"]
|
||||||
@@ -45,6 +45,9 @@ class TestNATModeEnterpriseTTLSSuiteOne(object):
|
|||||||
ttls_passwd = radius_info["password"]
|
ttls_passwd = radius_info["password"]
|
||||||
eap = "TTLS"
|
eap = "TTLS"
|
||||||
identity = radius_info['user']
|
identity = radius_info['user']
|
||||||
|
if ssid_name not in get_vif_state:
|
||||||
|
allure.attach(name="retest,vif state ssid not available:", body=str(get_vif_state))
|
||||||
|
pytest.xfail("SSID NOT AVAILABLE IN VIF STATE")
|
||||||
passes = lf_test.EAP_Connect(ssid=ssid_name, security=security, extra_securities=extra_secu,
|
passes = lf_test.EAP_Connect(ssid=ssid_name, security=security, extra_securities=extra_secu,
|
||||||
mode=mode, band=band,
|
mode=mode, band=band,
|
||||||
eap=eap, ttls_passwd=ttls_passwd, identity=identity,
|
eap=eap, ttls_passwd=ttls_passwd, identity=identity,
|
||||||
@@ -66,7 +69,7 @@ class TestNATModeEnterpriseTTLSSuiteOne(object):
|
|||||||
|
|
||||||
@pytest.mark.wpa_enterprise
|
@pytest.mark.wpa_enterprise
|
||||||
@pytest.mark.fiveg
|
@pytest.mark.fiveg
|
||||||
def test_wpa_enterprise_5g(self, station_names_fiveg, setup_profiles, get_lanforge_data, lf_test, update_report,
|
def test_wpa_enterprise_5g(self, get_vif_state,station_names_fiveg, setup_profiles, get_lanforge_data, lf_test, update_report,
|
||||||
test_cases, radius_info, exit_on_fail):
|
test_cases, radius_info, exit_on_fail):
|
||||||
profile_data = setup_params_enterprise["ssid_modes"]["wpa_enterprise"][1]
|
profile_data = setup_params_enterprise["ssid_modes"]["wpa_enterprise"][1]
|
||||||
ssid_name = profile_data["ssid_name"]
|
ssid_name = profile_data["ssid_name"]
|
||||||
@@ -78,6 +81,9 @@ class TestNATModeEnterpriseTTLSSuiteOne(object):
|
|||||||
ttls_passwd = radius_info["password"]
|
ttls_passwd = radius_info["password"]
|
||||||
eap = "TTLS"
|
eap = "TTLS"
|
||||||
identity = radius_info['user']
|
identity = radius_info['user']
|
||||||
|
if ssid_name not in get_vif_state:
|
||||||
|
allure.attach(name="retest,vif state ssid not available:", body=str(get_vif_state))
|
||||||
|
pytest.xfail("SSID NOT AVAILABLE IN VIF STATE")
|
||||||
passes = lf_test.EAP_Connect(ssid=ssid_name, security=security, extra_securities=extra_secu,
|
passes = lf_test.EAP_Connect(ssid=ssid_name, security=security, extra_securities=extra_secu,
|
||||||
mode=mode, band=band,
|
mode=mode, band=band,
|
||||||
eap=eap, ttls_passwd=ttls_passwd, identity=identity,
|
eap=eap, ttls_passwd=ttls_passwd, identity=identity,
|
||||||
@@ -97,9 +103,10 @@ class TestNATModeEnterpriseTTLSSuiteOne(object):
|
|||||||
pytest.exit("Test Case Failed")
|
pytest.exit("Test Case Failed")
|
||||||
assert passes
|
assert passes
|
||||||
|
|
||||||
|
@pytest.mark.sanity_55
|
||||||
@pytest.mark.wpa2_enterprise
|
@pytest.mark.wpa2_enterprise
|
||||||
@pytest.mark.twog
|
@pytest.mark.twog
|
||||||
def test_wpa2_enterprise_2g(self, station_names_twog, setup_profiles, get_lanforge_data, lf_test, update_report,
|
def test_wpa2_enterprise_2g(self, get_vif_state,station_names_twog, setup_profiles, get_lanforge_data, lf_test, update_report,
|
||||||
test_cases, radius_info, exit_on_fail):
|
test_cases, radius_info, exit_on_fail):
|
||||||
profile_data = setup_params_enterprise["ssid_modes"]["wpa2_enterprise"][0]
|
profile_data = setup_params_enterprise["ssid_modes"]["wpa2_enterprise"][0]
|
||||||
ssid_name = profile_data["ssid_name"]
|
ssid_name = profile_data["ssid_name"]
|
||||||
@@ -110,6 +117,9 @@ class TestNATModeEnterpriseTTLSSuiteOne(object):
|
|||||||
ttls_passwd = radius_info["password"]
|
ttls_passwd = radius_info["password"]
|
||||||
eap = "TTLS"
|
eap = "TTLS"
|
||||||
identity = radius_info['user']
|
identity = radius_info['user']
|
||||||
|
if ssid_name not in get_vif_state:
|
||||||
|
allure.attach(name="retest,vif state ssid not available:", body=str(get_vif_state))
|
||||||
|
pytest.xfail("SSID NOT AVAILABLE IN VIF STATE")
|
||||||
passes = lf_test.EAP_Connect(ssid=ssid_name, security=security,
|
passes = lf_test.EAP_Connect(ssid=ssid_name, security=security,
|
||||||
mode=mode, band=band,
|
mode=mode, band=band,
|
||||||
eap=eap, ttls_passwd=ttls_passwd, identity=identity,
|
eap=eap, ttls_passwd=ttls_passwd, identity=identity,
|
||||||
@@ -129,9 +139,10 @@ class TestNATModeEnterpriseTTLSSuiteOne(object):
|
|||||||
pytest.exit("Test Case Failed")
|
pytest.exit("Test Case Failed")
|
||||||
assert passes
|
assert passes
|
||||||
|
|
||||||
|
@pytest.mark.sanity_55
|
||||||
@pytest.mark.wpa2_enterprise
|
@pytest.mark.wpa2_enterprise
|
||||||
@pytest.mark.fiveg
|
@pytest.mark.fiveg
|
||||||
def test_wpa2_enterprise_5g(self, station_names_fiveg, setup_profiles, get_lanforge_data, lf_test, update_report,
|
def test_wpa2_enterprise_5g(self, get_vif_state, station_names_fiveg, setup_profiles, get_lanforge_data, lf_test, update_report,
|
||||||
test_cases, radius_info, exit_on_fail):
|
test_cases, radius_info, exit_on_fail):
|
||||||
profile_data = setup_params_enterprise["ssid_modes"]["wpa2_enterprise"][1]
|
profile_data = setup_params_enterprise["ssid_modes"]["wpa2_enterprise"][1]
|
||||||
ssid_name = profile_data["ssid_name"]
|
ssid_name = profile_data["ssid_name"]
|
||||||
@@ -142,6 +153,9 @@ class TestNATModeEnterpriseTTLSSuiteOne(object):
|
|||||||
ttls_passwd = radius_info["password"]
|
ttls_passwd = radius_info["password"]
|
||||||
eap = "TTLS"
|
eap = "TTLS"
|
||||||
identity = radius_info['user']
|
identity = radius_info['user']
|
||||||
|
if ssid_name not in get_vif_state:
|
||||||
|
allure.attach(name="retest,vif state ssid not available:", body=str(get_vif_state))
|
||||||
|
pytest.xfail("SSID NOT AVAILABLE IN VIF STATE")
|
||||||
passes = lf_test.EAP_Connect(ssid=ssid_name, security=security,
|
passes = lf_test.EAP_Connect(ssid=ssid_name, security=security,
|
||||||
mode=mode, band=band,
|
mode=mode, band=band,
|
||||||
eap=eap, ttls_passwd=ttls_passwd, identity=identity,
|
eap=eap, ttls_passwd=ttls_passwd, identity=identity,
|
||||||
@@ -163,7 +177,7 @@ class TestNATModeEnterpriseTTLSSuiteOne(object):
|
|||||||
|
|
||||||
@pytest.mark.wpa3_enterprise
|
@pytest.mark.wpa3_enterprise
|
||||||
@pytest.mark.twog
|
@pytest.mark.twog
|
||||||
def test_wpa3_enterprise_2g(self, station_names_twog, setup_profiles, get_lanforge_data, lf_test, update_report,
|
def test_wpa3_enterprise_2g(self, get_vif_state,station_names_twog, setup_profiles, get_lanforge_data, lf_test, update_report,
|
||||||
test_cases, radius_info, exit_on_fail):
|
test_cases, radius_info, exit_on_fail):
|
||||||
profile_data = setup_params_enterprise["ssid_modes"]["wpa3_enterprise"][0]
|
profile_data = setup_params_enterprise["ssid_modes"]["wpa3_enterprise"][0]
|
||||||
ssid_name = profile_data["ssid_name"]
|
ssid_name = profile_data["ssid_name"]
|
||||||
@@ -174,6 +188,9 @@ class TestNATModeEnterpriseTTLSSuiteOne(object):
|
|||||||
ttls_passwd = radius_info["password"]
|
ttls_passwd = radius_info["password"]
|
||||||
eap = "TTLS"
|
eap = "TTLS"
|
||||||
identity = radius_info['user']
|
identity = radius_info['user']
|
||||||
|
if ssid_name not in get_vif_state:
|
||||||
|
allure.attach(name="retest,vif state ssid not available:", body=str(get_vif_state))
|
||||||
|
pytest.xfail("SSID NOT AVAILABLE IN VIF STATE")
|
||||||
passes = lf_test.EAP_Connect(ssid=ssid_name, security=security,
|
passes = lf_test.EAP_Connect(ssid=ssid_name, security=security,
|
||||||
mode=mode, band=band,
|
mode=mode, band=band,
|
||||||
eap=eap, ttls_passwd=ttls_passwd, identity=identity,
|
eap=eap, ttls_passwd=ttls_passwd, identity=identity,
|
||||||
@@ -195,7 +212,7 @@ class TestNATModeEnterpriseTTLSSuiteOne(object):
|
|||||||
|
|
||||||
@pytest.mark.wpa3_enterprise
|
@pytest.mark.wpa3_enterprise
|
||||||
@pytest.mark.fiveg
|
@pytest.mark.fiveg
|
||||||
def test_wpa3_enterprise_5g(self, station_names_fiveg, setup_profiles, get_lanforge_data, lf_test, update_report,
|
def test_wpa3_enterprise_5g(self, get_vif_state,station_names_fiveg, setup_profiles, get_lanforge_data, lf_test, update_report,
|
||||||
test_cases, radius_info, exit_on_fail):
|
test_cases, radius_info, exit_on_fail):
|
||||||
profile_data = setup_params_enterprise["ssid_modes"]["wpa3_enterprise"][1]
|
profile_data = setup_params_enterprise["ssid_modes"]["wpa3_enterprise"][1]
|
||||||
ssid_name = profile_data["ssid_name"]
|
ssid_name = profile_data["ssid_name"]
|
||||||
@@ -206,6 +223,9 @@ class TestNATModeEnterpriseTTLSSuiteOne(object):
|
|||||||
ttls_passwd = radius_info["password"]
|
ttls_passwd = radius_info["password"]
|
||||||
eap = "TTLS"
|
eap = "TTLS"
|
||||||
identity = radius_info['user']
|
identity = radius_info['user']
|
||||||
|
if ssid_name not in get_vif_state:
|
||||||
|
allure.attach(name="retest,vif state ssid not available:", body=str(get_vif_state))
|
||||||
|
pytest.xfail("SSID NOT AVAILABLE IN VIF STATE")
|
||||||
passes = lf_test.EAP_Connect(ssid=ssid_name, security=security,
|
passes = lf_test.EAP_Connect(ssid=ssid_name, security=security,
|
||||||
mode=mode, band=band,
|
mode=mode, band=band,
|
||||||
eap=eap, ttls_passwd=ttls_passwd, identity=identity,
|
eap=eap, ttls_passwd=ttls_passwd, identity=identity,
|
||||||
@@ -253,7 +273,7 @@ class TestNATModeEnterpriseTTLSSuiteTwo(object):
|
|||||||
|
|
||||||
@pytest.mark.wpa_wpa2_enterprise_mixed
|
@pytest.mark.wpa_wpa2_enterprise_mixed
|
||||||
@pytest.mark.twog
|
@pytest.mark.twog
|
||||||
def test_wpa_wpa2_enterprise_2g(self, station_names_twog, setup_profiles, get_lanforge_data, lf_test, update_report,
|
def test_wpa_wpa2_enterprise_2g(self, get_vif_state,station_names_twog, setup_profiles, get_lanforge_data, lf_test, update_report,
|
||||||
test_cases, radius_info, exit_on_fail):
|
test_cases, radius_info, exit_on_fail):
|
||||||
profile_data = setup_params_enterprise_two["ssid_modes"]["wpa_wpa2_enterprise_mixed"][0]
|
profile_data = setup_params_enterprise_two["ssid_modes"]["wpa_wpa2_enterprise_mixed"][0]
|
||||||
ssid_name = profile_data["ssid_name"]
|
ssid_name = profile_data["ssid_name"]
|
||||||
@@ -265,6 +285,9 @@ class TestNATModeEnterpriseTTLSSuiteTwo(object):
|
|||||||
ttls_passwd = radius_info["password"]
|
ttls_passwd = radius_info["password"]
|
||||||
eap = "TTLS"
|
eap = "TTLS"
|
||||||
identity = radius_info['user']
|
identity = radius_info['user']
|
||||||
|
if ssid_name not in get_vif_state:
|
||||||
|
allure.attach(name="retest,vif state ssid not available:", body=str(get_vif_state))
|
||||||
|
pytest.xfail("SSID NOT AVAILABLE IN VIF STATE")
|
||||||
passes = lf_test.EAP_Connect(ssid=ssid_name, security=security, extra_securities=extra_secu,
|
passes = lf_test.EAP_Connect(ssid=ssid_name, security=security, extra_securities=extra_secu,
|
||||||
mode=mode, band=band,
|
mode=mode, band=band,
|
||||||
eap=eap, ttls_passwd=ttls_passwd, identity=identity,
|
eap=eap, ttls_passwd=ttls_passwd, identity=identity,
|
||||||
@@ -286,7 +309,7 @@ class TestNATModeEnterpriseTTLSSuiteTwo(object):
|
|||||||
|
|
||||||
@pytest.mark.wpa_wpa2_enterprise_mixed
|
@pytest.mark.wpa_wpa2_enterprise_mixed
|
||||||
@pytest.mark.fiveg
|
@pytest.mark.fiveg
|
||||||
def test_wpa_wpa2_enterprise_5g(self, station_names_fiveg, setup_profiles, get_lanforge_data, lf_test,
|
def test_wpa_wpa2_enterprise_5g(self, get_vif_state,station_names_fiveg, setup_profiles, get_lanforge_data, lf_test,
|
||||||
update_report, test_cases, radius_info, exit_on_fail):
|
update_report, test_cases, radius_info, exit_on_fail):
|
||||||
profile_data = setup_params_enterprise_two["ssid_modes"]["wpa_wpa2_enterprise_mixed"][1]
|
profile_data = setup_params_enterprise_two["ssid_modes"]["wpa_wpa2_enterprise_mixed"][1]
|
||||||
ssid_name = profile_data["ssid_name"]
|
ssid_name = profile_data["ssid_name"]
|
||||||
@@ -298,6 +321,9 @@ class TestNATModeEnterpriseTTLSSuiteTwo(object):
|
|||||||
ttls_passwd = radius_info["password"]
|
ttls_passwd = radius_info["password"]
|
||||||
eap = "TTLS"
|
eap = "TTLS"
|
||||||
identity = radius_info['user']
|
identity = radius_info['user']
|
||||||
|
if ssid_name not in get_vif_state:
|
||||||
|
allure.attach(name="retest,vif state ssid not available:", body=str(get_vif_state))
|
||||||
|
pytest.xfail("SSID NOT AVAILABLE IN VIF STATE")
|
||||||
passes = lf_test.EAP_Connect(ssid=ssid_name, security=security, extra_securities=extra_secu,
|
passes = lf_test.EAP_Connect(ssid=ssid_name, security=security, extra_securities=extra_secu,
|
||||||
mode=mode, band=band,
|
mode=mode, band=band,
|
||||||
eap=eap, ttls_passwd=ttls_passwd, identity=identity,
|
eap=eap, ttls_passwd=ttls_passwd, identity=identity,
|
||||||
@@ -319,7 +345,7 @@ class TestNATModeEnterpriseTTLSSuiteTwo(object):
|
|||||||
|
|
||||||
@pytest.mark.wpa3_enterprise_mixed
|
@pytest.mark.wpa3_enterprise_mixed
|
||||||
@pytest.mark.twog
|
@pytest.mark.twog
|
||||||
def test_wpa3_enterprise_mixed_2g(self, station_names_twog, setup_profiles, get_lanforge_data, lf_test,
|
def test_wpa3_enterprise_mixed_2g(self, get_vif_state,station_names_twog, setup_profiles, get_lanforge_data, lf_test,
|
||||||
update_report, test_cases, radius_info, exit_on_fail):
|
update_report, test_cases, radius_info, exit_on_fail):
|
||||||
profile_data = setup_params_enterprise_two["ssid_modes"]["wpa3_enterprise_mixed"][0]
|
profile_data = setup_params_enterprise_two["ssid_modes"]["wpa3_enterprise_mixed"][0]
|
||||||
ssid_name = profile_data["ssid_name"]
|
ssid_name = profile_data["ssid_name"]
|
||||||
@@ -330,6 +356,9 @@ class TestNATModeEnterpriseTTLSSuiteTwo(object):
|
|||||||
ttls_passwd = radius_info["password"]
|
ttls_passwd = radius_info["password"]
|
||||||
eap = "TTLS"
|
eap = "TTLS"
|
||||||
identity = radius_info['user']
|
identity = radius_info['user']
|
||||||
|
if ssid_name not in get_vif_state:
|
||||||
|
allure.attach(name="retest,vif state ssid not available:", body=str(get_vif_state))
|
||||||
|
pytest.xfail("SSID NOT AVAILABLE IN VIF STATE")
|
||||||
passes = lf_test.EAP_Connect(ssid=ssid_name, security=security,
|
passes = lf_test.EAP_Connect(ssid=ssid_name, security=security,
|
||||||
mode=mode, band=band,
|
mode=mode, band=band,
|
||||||
eap=eap, ttls_passwd=ttls_passwd, identity=identity,
|
eap=eap, ttls_passwd=ttls_passwd, identity=identity,
|
||||||
@@ -351,7 +380,7 @@ class TestNATModeEnterpriseTTLSSuiteTwo(object):
|
|||||||
|
|
||||||
@pytest.mark.wpa3_enterprise_mixed
|
@pytest.mark.wpa3_enterprise_mixed
|
||||||
@pytest.mark.fiveg
|
@pytest.mark.fiveg
|
||||||
def test_wpa3_enterprise_mixed_5g(self, station_names_fiveg, setup_profiles, get_lanforge_data, lf_test,
|
def test_wpa3_enterprise_mixed_5g(self, get_vif_state,station_names_fiveg, setup_profiles, get_lanforge_data, lf_test,
|
||||||
update_report, exit_on_fail,
|
update_report, exit_on_fail,
|
||||||
test_cases, radius_info):
|
test_cases, radius_info):
|
||||||
profile_data = setup_params_enterprise_two["ssid_modes"]["wpa3_enterprise_mixed"][1]
|
profile_data = setup_params_enterprise_two["ssid_modes"]["wpa3_enterprise_mixed"][1]
|
||||||
@@ -363,6 +392,9 @@ class TestNATModeEnterpriseTTLSSuiteTwo(object):
|
|||||||
ttls_passwd = radius_info["password"]
|
ttls_passwd = radius_info["password"]
|
||||||
eap = "TTLS"
|
eap = "TTLS"
|
||||||
identity = radius_info['user']
|
identity = radius_info['user']
|
||||||
|
if ssid_name not in get_vif_state:
|
||||||
|
allure.attach(name="retest,vif state ssid not available:", body=str(get_vif_state))
|
||||||
|
pytest.xfail("SSID NOT AVAILABLE IN VIF STATE")
|
||||||
passes = lf_test.EAP_Connect(ssid=ssid_name, security=security,
|
passes = lf_test.EAP_Connect(ssid=ssid_name, security=security,
|
||||||
mode=mode, band=band,
|
mode=mode, band=band,
|
||||||
eap=eap, ttls_passwd=ttls_passwd, identity=identity,
|
eap=eap, ttls_passwd=ttls_passwd, identity=identity,
|
||||||
|
|||||||
@@ -45,7 +45,7 @@ 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, 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"
|
||||||
@@ -57,6 +57,9 @@ class TestNATModeConnectivitySuiteA(object):
|
|||||||
mode = "NAT"
|
mode = "NAT"
|
||||||
band = "twog"
|
band = "twog"
|
||||||
vlan = 1
|
vlan = 1
|
||||||
|
if ssid_name not in get_vif_state:
|
||||||
|
allure.attach(name="retest,vif state ssid not available:", body=str(get_vif_state))
|
||||||
|
pytest.xfail("SSID NOT AVAILABLE IN VIF STATE")
|
||||||
passes, result = lf_test.Client_Connectivity(ssid=ssid_name, security=security,
|
passes, result = lf_test.Client_Connectivity(ssid=ssid_name, security=security,
|
||||||
passkey=security_key, mode=mode, band=band,
|
passkey=security_key, mode=mode, band=band,
|
||||||
station_name=station_names_twog, vlan_id=vlan)
|
station_name=station_names_twog, vlan_id=vlan)
|
||||||
@@ -76,7 +79,7 @@ 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_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"
|
||||||
"""
|
"""
|
||||||
@@ -87,6 +90,9 @@ class TestNATModeConnectivitySuiteA(object):
|
|||||||
mode = "NAT"
|
mode = "NAT"
|
||||||
band = "fiveg"
|
band = "fiveg"
|
||||||
vlan = 1
|
vlan = 1
|
||||||
|
if ssid_name not in get_vif_state:
|
||||||
|
allure.attach(name="retest,vif state ssid not available:", body=str(get_vif_state))
|
||||||
|
pytest.xfail("SSID NOT AVAILABLE IN VIF STATE")
|
||||||
passes, result = lf_test.Client_Connectivity(ssid=ssid_name, security=security,
|
passes, result = lf_test.Client_Connectivity(ssid=ssid_name, security=security,
|
||||||
passkey=security_key, mode=mode, band=band,
|
passkey=security_key, mode=mode, band=band,
|
||||||
station_name=station_names_fiveg, vlan_id=vlan)
|
station_name=station_names_fiveg, vlan_id=vlan)
|
||||||
@@ -103,10 +109,11 @@ class TestNATModeConnectivitySuiteA(object):
|
|||||||
passes))
|
passes))
|
||||||
assert result
|
assert result
|
||||||
|
|
||||||
|
@pytest.mark.sanity_55
|
||||||
@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_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"
|
||||||
@@ -118,6 +125,9 @@ class TestNATModeConnectivitySuiteA(object):
|
|||||||
mode = "NAT"
|
mode = "NAT"
|
||||||
band = "twog"
|
band = "twog"
|
||||||
vlan = 1
|
vlan = 1
|
||||||
|
if ssid_name not in get_vif_state:
|
||||||
|
allure.attach(name="retest,vif state ssid not available:", body=str(get_vif_state))
|
||||||
|
pytest.xfail("SSID NOT AVAILABLE IN VIF STATE")
|
||||||
passes, result = lf_test.Client_Connectivity(ssid=ssid_name, security=security,
|
passes, result = lf_test.Client_Connectivity(ssid=ssid_name, security=security,
|
||||||
passkey=security_key, mode=mode, band=band,
|
passkey=security_key, mode=mode, band=band,
|
||||||
station_name=station_names_twog, vlan_id=vlan)
|
station_name=station_names_twog, vlan_id=vlan)
|
||||||
@@ -134,10 +144,11 @@ class TestNATModeConnectivitySuiteA(object):
|
|||||||
passes))
|
passes))
|
||||||
assert result
|
assert result
|
||||||
|
|
||||||
|
@pytest.mark.sanity_55
|
||||||
@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, 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"
|
||||||
"""
|
"""
|
||||||
@@ -148,6 +159,9 @@ class TestNATModeConnectivitySuiteA(object):
|
|||||||
mode = "NAT"
|
mode = "NAT"
|
||||||
band = "fiveg"
|
band = "fiveg"
|
||||||
vlan = 1
|
vlan = 1
|
||||||
|
if ssid_name not in get_vif_state:
|
||||||
|
allure.attach(name="retest,vif state ssid not available:", body=str(get_vif_state))
|
||||||
|
pytest.xfail("SSID NOT AVAILABLE IN VIF STATE")
|
||||||
passes, result = lf_test.Client_Connectivity(ssid=ssid_name, security=security,
|
passes, result = lf_test.Client_Connectivity(ssid=ssid_name, security=security,
|
||||||
passkey=security_key, mode=mode, band=band,
|
passkey=security_key, mode=mode, band=band,
|
||||||
station_name=station_names_fiveg, vlan_id=vlan)
|
station_name=station_names_fiveg, vlan_id=vlan)
|
||||||
@@ -164,10 +178,11 @@ class TestNATModeConnectivitySuiteA(object):
|
|||||||
passes))
|
passes))
|
||||||
assert result
|
assert result
|
||||||
|
|
||||||
|
@pytest.mark.sanity_55
|
||||||
@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_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"
|
||||||
@@ -179,6 +194,9 @@ class TestNATModeConnectivitySuiteA(object):
|
|||||||
mode = "NAT"
|
mode = "NAT"
|
||||||
band = "twog"
|
band = "twog"
|
||||||
vlan = 1
|
vlan = 1
|
||||||
|
if ssid_name not in get_vif_state:
|
||||||
|
allure.attach(name="retest,vif state ssid not available:", body=str(get_vif_state))
|
||||||
|
pytest.xfail("SSID NOT AVAILABLE IN VIF STATE")
|
||||||
passes, result = lf_test.Client_Connectivity(ssid=ssid_name, security=security,
|
passes, result = lf_test.Client_Connectivity(ssid=ssid_name, security=security,
|
||||||
passkey=security_key, mode=mode, band=band,
|
passkey=security_key, mode=mode, band=band,
|
||||||
station_name=station_names_twog, vlan_id=vlan)
|
station_name=station_names_twog, vlan_id=vlan)
|
||||||
@@ -195,10 +213,11 @@ class TestNATModeConnectivitySuiteA(object):
|
|||||||
passes))
|
passes))
|
||||||
assert result
|
assert result
|
||||||
|
|
||||||
|
@pytest.mark.sanity_55
|
||||||
@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_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"
|
||||||
@@ -210,6 +229,9 @@ class TestNATModeConnectivitySuiteA(object):
|
|||||||
mode = "NAT"
|
mode = "NAT"
|
||||||
band = "fiveg"
|
band = "fiveg"
|
||||||
vlan = 1
|
vlan = 1
|
||||||
|
if ssid_name not in get_vif_state:
|
||||||
|
allure.attach(name="retest,vif state ssid not available:", body=str(get_vif_state))
|
||||||
|
pytest.xfail("SSID NOT AVAILABLE IN VIF STATE")
|
||||||
passes, result = lf_test.Client_Connectivity(ssid=ssid_name, security=security,
|
passes, result = lf_test.Client_Connectivity(ssid=ssid_name, security=security,
|
||||||
passkey=security_key, mode=mode, band=band,
|
passkey=security_key, mode=mode, band=band,
|
||||||
station_name=station_names_fiveg, vlan_id=vlan)
|
station_name=station_names_fiveg, vlan_id=vlan)
|
||||||
@@ -257,7 +279,7 @@ setup_params_general_two = {
|
|||||||
scope="class"
|
scope="class"
|
||||||
)
|
)
|
||||||
@pytest.mark.usefixtures("setup_profiles")
|
@pytest.mark.usefixtures("setup_profiles")
|
||||||
class TestBridgeModeConnectivitySuiteTwo(object):
|
class TestBridgeModeConnectivitySuiteB(object):
|
||||||
""" Client Connectivity SuiteA
|
""" Client Connectivity SuiteA
|
||||||
pytest -m "client_connectivity and bridge and suiteB"
|
pytest -m "client_connectivity and bridge and suiteB"
|
||||||
"""
|
"""
|
||||||
@@ -265,7 +287,7 @@ class TestBridgeModeConnectivitySuiteTwo(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, 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"
|
||||||
@@ -277,6 +299,9 @@ class TestBridgeModeConnectivitySuiteTwo(object):
|
|||||||
mode = "NAT"
|
mode = "NAT"
|
||||||
band = "twog"
|
band = "twog"
|
||||||
vlan = 1
|
vlan = 1
|
||||||
|
if ssid_name not in get_vif_state:
|
||||||
|
allure.attach(name="retest,vif state ssid not available:", body=str(get_vif_state))
|
||||||
|
pytest.xfail("SSID NOT AVAILABLE IN VIF STATE")
|
||||||
passes, result = lf_test.Client_Connectivity(ssid=ssid_name, security=security,
|
passes, result = lf_test.Client_Connectivity(ssid=ssid_name, security=security,
|
||||||
passkey=security_key, mode=mode, band=band,
|
passkey=security_key, mode=mode, band=band,
|
||||||
station_name=station_names_twog, vlan_id=vlan)
|
station_name=station_names_twog, vlan_id=vlan)
|
||||||
@@ -296,7 +321,7 @@ class TestBridgeModeConnectivitySuiteTwo(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, 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"
|
||||||
"""
|
"""
|
||||||
@@ -307,6 +332,9 @@ class TestBridgeModeConnectivitySuiteTwo(object):
|
|||||||
mode = "NAT"
|
mode = "NAT"
|
||||||
band = "fiveg"
|
band = "fiveg"
|
||||||
vlan = 1
|
vlan = 1
|
||||||
|
if ssid_name not in get_vif_state:
|
||||||
|
allure.attach(name="retest,vif state ssid not available:", body=str(get_vif_state))
|
||||||
|
pytest.xfail("SSID NOT AVAILABLE IN VIF STATE")
|
||||||
passes, result = lf_test.Client_Connectivity(ssid=ssid_name, security=security,
|
passes, result = lf_test.Client_Connectivity(ssid=ssid_name, security=security,
|
||||||
passkey=security_key, mode=mode, band=band,
|
passkey=security_key, mode=mode, band=band,
|
||||||
station_name=station_names_fiveg, vlan_id=vlan)
|
station_name=station_names_fiveg, vlan_id=vlan)
|
||||||
@@ -326,7 +354,7 @@ class TestBridgeModeConnectivitySuiteTwo(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, 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
|
||||||
@@ -339,6 +367,9 @@ class TestBridgeModeConnectivitySuiteTwo(object):
|
|||||||
mode = "NAT"
|
mode = "NAT"
|
||||||
band = "twog"
|
band = "twog"
|
||||||
vlan = 1
|
vlan = 1
|
||||||
|
if ssid_name not in get_vif_state:
|
||||||
|
allure.attach(name="retest,vif state ssid not available:", body=str(get_vif_state))
|
||||||
|
pytest.xfail("SSID NOT AVAILABLE IN VIF STATE")
|
||||||
passes, result = lf_test.Client_Connectivity(ssid=ssid_name, security=security,
|
passes, result = lf_test.Client_Connectivity(ssid=ssid_name, security=security,
|
||||||
passkey=security_key, mode=mode, band=band,
|
passkey=security_key, mode=mode, band=band,
|
||||||
station_name=station_names_twog, vlan_id=vlan)
|
station_name=station_names_twog, vlan_id=vlan)
|
||||||
@@ -358,7 +389,7 @@ class TestBridgeModeConnectivitySuiteTwo(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, 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"
|
||||||
@@ -370,6 +401,9 @@ class TestBridgeModeConnectivitySuiteTwo(object):
|
|||||||
mode = "NAT"
|
mode = "NAT"
|
||||||
band = "fiveg"
|
band = "fiveg"
|
||||||
vlan = 1
|
vlan = 1
|
||||||
|
if ssid_name not in get_vif_state:
|
||||||
|
allure.attach(name="retest,vif state ssid not available:", body=str(get_vif_state))
|
||||||
|
pytest.xfail("SSID NOT AVAILABLE IN VIF STATE")
|
||||||
passes, result = lf_test.Client_Connectivity(ssid=ssid_name, security=security,
|
passes, result = lf_test.Client_Connectivity(ssid=ssid_name, security=security,
|
||||||
passkey=security_key, mode=mode, band=band,
|
passkey=security_key, mode=mode, band=band,
|
||||||
station_name=station_names_fiveg, vlan_id=vlan)
|
station_name=station_names_fiveg, vlan_id=vlan)
|
||||||
@@ -389,7 +423,7 @@ class TestBridgeModeConnectivitySuiteTwo(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, 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
|
||||||
@@ -403,6 +437,9 @@ class TestBridgeModeConnectivitySuiteTwo(object):
|
|||||||
mode = "NAT"
|
mode = "NAT"
|
||||||
band = "twog"
|
band = "twog"
|
||||||
vlan = 1
|
vlan = 1
|
||||||
|
if ssid_name not in get_vif_state:
|
||||||
|
allure.attach(name="retest,vif state ssid not available:", body=str(get_vif_state))
|
||||||
|
pytest.xfail("SSID NOT AVAILABLE IN VIF STATE")
|
||||||
passes, result = lf_test.Client_Connectivity(ssid=ssid_name, security=security, extra_securities=extra_secu,
|
passes, result = lf_test.Client_Connectivity(ssid=ssid_name, security=security, extra_securities=extra_secu,
|
||||||
passkey=security_key, mode=mode, band=band,
|
passkey=security_key, mode=mode, band=band,
|
||||||
station_name=station_names_twog, vlan_id=vlan)
|
station_name=station_names_twog, vlan_id=vlan)
|
||||||
@@ -422,7 +459,7 @@ class TestBridgeModeConnectivitySuiteTwo(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, 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"
|
||||||
@@ -435,6 +472,9 @@ class TestBridgeModeConnectivitySuiteTwo(object):
|
|||||||
mode = "NAT"
|
mode = "NAT"
|
||||||
band = "fiveg"
|
band = "fiveg"
|
||||||
vlan = 1
|
vlan = 1
|
||||||
|
if ssid_name not in get_vif_state:
|
||||||
|
allure.attach(name="retest,vif state ssid not available:", body=str(get_vif_state))
|
||||||
|
pytest.xfail("SSID NOT AVAILABLE IN VIF STATE")
|
||||||
passes, result = lf_test.Client_Connectivity(ssid=ssid_name, security=security, extra_securities=extra_secu,
|
passes, result = lf_test.Client_Connectivity(ssid=ssid_name, security=security, extra_securities=extra_secu,
|
||||||
passkey=security_key, mode=mode, band=band,
|
passkey=security_key, mode=mode, band=band,
|
||||||
station_name=station_names_fiveg, vlan_id=vlan)
|
station_name=station_names_fiveg, vlan_id=vlan)
|
||||||
@@ -478,7 +518,7 @@ class TestBridgeModeConnectivitySuiteTwo(object):
|
|||||||
#
|
#
|
||||||
# @pytest.mark.wep
|
# @pytest.mark.wep
|
||||||
# @pytest.mark.twog
|
# @pytest.mark.twog
|
||||||
# def test_wep_2g(self, station_names_twog, setup_profiles, get_lanforge_data, lf_test, update_report,
|
# def test_wep_2g(self, get_vif_state,station_names_twog, setup_profiles, get_lanforge_data, lf_test, update_report,
|
||||||
# test_cases, radius_info):
|
# test_cases, radius_info):
|
||||||
# profile_data = setup_params_wep["ssid_modes"]["wep"][0]
|
# profile_data = setup_params_wep["ssid_modes"]["wep"][0]
|
||||||
# ssid_name = profile_data["ssid_name"]
|
# ssid_name = profile_data["ssid_name"]
|
||||||
@@ -506,7 +546,7 @@ class TestBridgeModeConnectivitySuiteTwo(object):
|
|||||||
#
|
#
|
||||||
# @pytest.mark.wep
|
# @pytest.mark.wep
|
||||||
# @pytest.mark.fiveg
|
# @pytest.mark.fiveg
|
||||||
# def test_wep_5g(self, station_names_fiveg, setup_profiles, get_lanforge_data, lf_test, update_report,
|
# def test_wep_5g(self, get_vif_state,station_names_fiveg, setup_profiles, get_lanforge_data, lf_test, update_report,
|
||||||
# test_cases, radius_info):
|
# test_cases, radius_info):
|
||||||
# profile_data = setup_params_wep["ssid_modes"]["wep"][1]
|
# profile_data = setup_params_wep["ssid_modes"]["wep"][1]
|
||||||
# ssid_name = profile_data["ssid_name"]
|
# ssid_name = profile_data["ssid_name"]
|
||||||
|
|||||||
@@ -35,7 +35,7 @@ class TestVLANModeEnterpriseTTLSSuiteOne(object):
|
|||||||
|
|
||||||
@pytest.mark.wpa_enterprise
|
@pytest.mark.wpa_enterprise
|
||||||
@pytest.mark.twog
|
@pytest.mark.twog
|
||||||
def test_wpa_enterprise_2g(self, station_names_twog, setup_profiles, get_lanforge_data, lf_test, update_report,
|
def test_wpa_enterprise_2g(self, get_vif_state,station_names_twog, setup_profiles, get_lanforge_data, lf_test, update_report,
|
||||||
test_cases, radius_info, exit_on_fail):
|
test_cases, radius_info, exit_on_fail):
|
||||||
profile_data = setup_params_enterprise["ssid_modes"]["wpa_enterprise"][0]
|
profile_data = setup_params_enterprise["ssid_modes"]["wpa_enterprise"][0]
|
||||||
ssid_name = profile_data["ssid_name"]
|
ssid_name = profile_data["ssid_name"]
|
||||||
@@ -43,10 +43,13 @@ class TestVLANModeEnterpriseTTLSSuiteOne(object):
|
|||||||
extra_secu = ["wpa2"]
|
extra_secu = ["wpa2"]
|
||||||
mode = "VLAN"
|
mode = "VLAN"
|
||||||
band = "twog"
|
band = "twog"
|
||||||
vlan = 1
|
vlan = 100
|
||||||
ttls_passwd = radius_info["password"]
|
ttls_passwd = radius_info["password"]
|
||||||
eap = "TTLS"
|
eap = "TTLS"
|
||||||
identity = radius_info['user']
|
identity = radius_info['user']
|
||||||
|
if ssid_name not in get_vif_state:
|
||||||
|
allure.attach(name="retest,vif state ssid not available:", body=str(get_vif_state))
|
||||||
|
pytest.xfail("SSID NOT AVAILABLE IN VIF STATE")
|
||||||
passes = lf_test.EAP_Connect(ssid=ssid_name, security=security, extra_securities=extra_secu,
|
passes = lf_test.EAP_Connect(ssid=ssid_name, security=security, extra_securities=extra_secu,
|
||||||
mode=mode, band=band,
|
mode=mode, band=band,
|
||||||
eap=eap, ttls_passwd=ttls_passwd, identity=identity,
|
eap=eap, ttls_passwd=ttls_passwd, identity=identity,
|
||||||
@@ -68,7 +71,7 @@ class TestVLANModeEnterpriseTTLSSuiteOne(object):
|
|||||||
|
|
||||||
@pytest.mark.wpa_enterprise
|
@pytest.mark.wpa_enterprise
|
||||||
@pytest.mark.fiveg
|
@pytest.mark.fiveg
|
||||||
def test_wpa_enterprise_5g(self, station_names_fiveg, setup_profiles, get_lanforge_data, lf_test, update_report,
|
def test_wpa_enterprise_5g(self, get_vif_state,station_names_fiveg, setup_profiles, get_lanforge_data, lf_test, update_report,
|
||||||
test_cases, radius_info, exit_on_fail):
|
test_cases, radius_info, exit_on_fail):
|
||||||
profile_data = setup_params_enterprise["ssid_modes"]["wpa_enterprise"][1]
|
profile_data = setup_params_enterprise["ssid_modes"]["wpa_enterprise"][1]
|
||||||
ssid_name = profile_data["ssid_name"]
|
ssid_name = profile_data["ssid_name"]
|
||||||
@@ -76,10 +79,13 @@ class TestVLANModeEnterpriseTTLSSuiteOne(object):
|
|||||||
extra_secu = ["wpa2"]
|
extra_secu = ["wpa2"]
|
||||||
mode = "VLAN"
|
mode = "VLAN"
|
||||||
band = "twog"
|
band = "twog"
|
||||||
vlan = 1
|
vlan = 100
|
||||||
ttls_passwd = radius_info["password"]
|
ttls_passwd = radius_info["password"]
|
||||||
eap = "TTLS"
|
eap = "TTLS"
|
||||||
identity = radius_info['user']
|
identity = radius_info['user']
|
||||||
|
if ssid_name not in get_vif_state:
|
||||||
|
allure.attach(name="retest,vif state ssid not available:", body=str(get_vif_state))
|
||||||
|
pytest.xfail("SSID NOT AVAILABLE IN VIF STATE")
|
||||||
passes = lf_test.EAP_Connect(ssid=ssid_name, security=security, extra_securities=extra_secu,
|
passes = lf_test.EAP_Connect(ssid=ssid_name, security=security, extra_securities=extra_secu,
|
||||||
mode=mode, band=band,
|
mode=mode, band=band,
|
||||||
eap=eap, ttls_passwd=ttls_passwd, identity=identity,
|
eap=eap, ttls_passwd=ttls_passwd, identity=identity,
|
||||||
@@ -99,19 +105,23 @@ class TestVLANModeEnterpriseTTLSSuiteOne(object):
|
|||||||
pytest.exit("Test Case Failed")
|
pytest.exit("Test Case Failed")
|
||||||
assert passes
|
assert passes
|
||||||
|
|
||||||
|
@pytest.mark.sanity_55
|
||||||
@pytest.mark.wpa2_enterprise
|
@pytest.mark.wpa2_enterprise
|
||||||
@pytest.mark.twog
|
@pytest.mark.twog
|
||||||
def test_wpa2_enterprise_2g(self, station_names_twog, setup_profiles, get_lanforge_data, lf_test, update_report,
|
def test_wpa2_enterprise_2g(self, get_vif_state,station_names_twog, setup_profiles, get_lanforge_data, lf_test, update_report,
|
||||||
test_cases, radius_info, exit_on_fail):
|
test_cases, radius_info, exit_on_fail):
|
||||||
profile_data = setup_params_enterprise["ssid_modes"]["wpa2_enterprise"][0]
|
profile_data = setup_params_enterprise["ssid_modes"]["wpa2_enterprise"][0]
|
||||||
ssid_name = profile_data["ssid_name"]
|
ssid_name = profile_data["ssid_name"]
|
||||||
security = "wpa2"
|
security = "wpa2"
|
||||||
mode = "VLAN"
|
mode = "VLAN"
|
||||||
band = "twog"
|
band = "twog"
|
||||||
vlan = 1
|
vlan = 100
|
||||||
ttls_passwd = radius_info["password"]
|
ttls_passwd = radius_info["password"]
|
||||||
eap = "TTLS"
|
eap = "TTLS"
|
||||||
identity = radius_info['user']
|
identity = radius_info['user']
|
||||||
|
if ssid_name not in get_vif_state:
|
||||||
|
allure.attach(name="retest,vif state ssid not available:", body=str(get_vif_state))
|
||||||
|
pytest.xfail("SSID NOT AVAILABLE IN VIF STATE")
|
||||||
passes = lf_test.EAP_Connect(ssid=ssid_name, security=security,
|
passes = lf_test.EAP_Connect(ssid=ssid_name, security=security,
|
||||||
mode=mode, band=band,
|
mode=mode, band=band,
|
||||||
eap=eap, ttls_passwd=ttls_passwd, identity=identity,
|
eap=eap, ttls_passwd=ttls_passwd, identity=identity,
|
||||||
@@ -131,19 +141,23 @@ class TestVLANModeEnterpriseTTLSSuiteOne(object):
|
|||||||
pytest.exit("Test Case Failed")
|
pytest.exit("Test Case Failed")
|
||||||
assert passes
|
assert passes
|
||||||
|
|
||||||
|
@pytest.mark.sanity_55
|
||||||
@pytest.mark.wpa2_enterprise
|
@pytest.mark.wpa2_enterprise
|
||||||
@pytest.mark.fiveg
|
@pytest.mark.fiveg
|
||||||
def test_wpa2_enterprise_5g(self, station_names_fiveg, setup_profiles, get_lanforge_data, lf_test, update_report,
|
def test_wpa2_enterprise_5g(self, get_vif_state,station_names_fiveg, setup_profiles, get_lanforge_data, lf_test, update_report,
|
||||||
test_cases, radius_info, exit_on_fail):
|
test_cases, radius_info, exit_on_fail):
|
||||||
profile_data = setup_params_enterprise["ssid_modes"]["wpa2_enterprise"][1]
|
profile_data = setup_params_enterprise["ssid_modes"]["wpa2_enterprise"][1]
|
||||||
ssid_name = profile_data["ssid_name"]
|
ssid_name = profile_data["ssid_name"]
|
||||||
security = "wpa2"
|
security = "wpa2"
|
||||||
mode = "VLAN"
|
mode = "VLAN"
|
||||||
band = "fiveg"
|
band = "fiveg"
|
||||||
vlan = 1
|
vlan = 100
|
||||||
ttls_passwd = radius_info["password"]
|
ttls_passwd = radius_info["password"]
|
||||||
eap = "TTLS"
|
eap = "TTLS"
|
||||||
identity = radius_info['user']
|
identity = radius_info['user']
|
||||||
|
if ssid_name not in get_vif_state:
|
||||||
|
allure.attach(name="retest,vif state ssid not available:", body=str(get_vif_state))
|
||||||
|
pytest.xfail("SSID NOT AVAILABLE IN VIF STATE")
|
||||||
passes = lf_test.EAP_Connect(ssid=ssid_name, security=security,
|
passes = lf_test.EAP_Connect(ssid=ssid_name, security=security,
|
||||||
mode=mode, band=band,
|
mode=mode, band=band,
|
||||||
eap=eap, ttls_passwd=ttls_passwd, identity=identity,
|
eap=eap, ttls_passwd=ttls_passwd, identity=identity,
|
||||||
@@ -165,17 +179,20 @@ class TestVLANModeEnterpriseTTLSSuiteOne(object):
|
|||||||
|
|
||||||
@pytest.mark.wpa3_enterprise
|
@pytest.mark.wpa3_enterprise
|
||||||
@pytest.mark.twog
|
@pytest.mark.twog
|
||||||
def test_wpa3_enterprise_2g(self, station_names_twog, setup_profiles, get_lanforge_data, lf_test, update_report,
|
def test_wpa3_enterprise_2g(self, get_vif_state,station_names_twog, setup_profiles, get_lanforge_data, lf_test, update_report,
|
||||||
test_cases, radius_info, exit_on_fail):
|
test_cases, radius_info, exit_on_fail):
|
||||||
profile_data = setup_params_enterprise["ssid_modes"]["wpa3_enterprise"][0]
|
profile_data = setup_params_enterprise["ssid_modes"]["wpa3_enterprise"][0]
|
||||||
ssid_name = profile_data["ssid_name"]
|
ssid_name = profile_data["ssid_name"]
|
||||||
security = "wpa3"
|
security = "wpa3"
|
||||||
mode = "VLAN"
|
mode = "VLAN"
|
||||||
band = "twog"
|
band = "twog"
|
||||||
vlan = 1
|
vlan = 100
|
||||||
ttls_passwd = radius_info["password"]
|
ttls_passwd = radius_info["password"]
|
||||||
eap = "TTLS"
|
eap = "TTLS"
|
||||||
identity = radius_info['user']
|
identity = radius_info['user']
|
||||||
|
if ssid_name not in get_vif_state:
|
||||||
|
allure.attach(name="retest,vif state ssid not available:", body=str(get_vif_state))
|
||||||
|
pytest.xfail("SSID NOT AVAILABLE IN VIF STATE")
|
||||||
passes = lf_test.EAP_Connect(ssid=ssid_name, security=security,
|
passes = lf_test.EAP_Connect(ssid=ssid_name, security=security,
|
||||||
mode=mode, band=band,
|
mode=mode, band=band,
|
||||||
eap=eap, ttls_passwd=ttls_passwd, identity=identity,
|
eap=eap, ttls_passwd=ttls_passwd, identity=identity,
|
||||||
@@ -197,17 +214,20 @@ class TestVLANModeEnterpriseTTLSSuiteOne(object):
|
|||||||
|
|
||||||
@pytest.mark.wpa3_enterprise
|
@pytest.mark.wpa3_enterprise
|
||||||
@pytest.mark.fiveg
|
@pytest.mark.fiveg
|
||||||
def test_wpa3_enterprise_5g(self, station_names_fiveg, setup_profiles, get_lanforge_data, lf_test, update_report,
|
def test_wpa3_enterprise_5g(self, get_vif_state,station_names_fiveg, setup_profiles, get_lanforge_data, lf_test, update_report,
|
||||||
test_cases, radius_info, exit_on_fail):
|
test_cases, radius_info, exit_on_fail):
|
||||||
profile_data = setup_params_enterprise["ssid_modes"]["wpa3_enterprise"][1]
|
profile_data = setup_params_enterprise["ssid_modes"]["wpa3_enterprise"][1]
|
||||||
ssid_name = profile_data["ssid_name"]
|
ssid_name = profile_data["ssid_name"]
|
||||||
security = "wpa3"
|
security = "wpa3"
|
||||||
mode = "VLAN"
|
mode = "VLAN"
|
||||||
band = "fiveg"
|
band = "fiveg"
|
||||||
vlan = 1
|
vlan = 100
|
||||||
ttls_passwd = radius_info["password"]
|
ttls_passwd = radius_info["password"]
|
||||||
eap = "TTLS"
|
eap = "TTLS"
|
||||||
identity = radius_info['user']
|
identity = radius_info['user']
|
||||||
|
if ssid_name not in get_vif_state:
|
||||||
|
allure.attach(name="retest,vif state ssid not available:", body=str(get_vif_state))
|
||||||
|
pytest.xfail("SSID NOT AVAILABLE IN VIF STATE")
|
||||||
passes = lf_test.EAP_Connect(ssid=ssid_name, security=security,
|
passes = lf_test.EAP_Connect(ssid=ssid_name, security=security,
|
||||||
mode=mode, band=band,
|
mode=mode, band=band,
|
||||||
eap=eap, ttls_passwd=ttls_passwd, identity=identity,
|
eap=eap, ttls_passwd=ttls_passwd, identity=identity,
|
||||||
@@ -255,7 +275,7 @@ class TestVLANModeEnterpriseTTLSSuiteTwo(object):
|
|||||||
|
|
||||||
@pytest.mark.wpa_wpa2_enterprise_mixed
|
@pytest.mark.wpa_wpa2_enterprise_mixed
|
||||||
@pytest.mark.twog
|
@pytest.mark.twog
|
||||||
def test_wpa_wpa2_enterprise_2g(self, station_names_twog, setup_profiles, get_lanforge_data, lf_test, update_report,
|
def test_wpa_wpa2_enterprise_2g(self, get_vif_state,station_names_twog, setup_profiles, get_lanforge_data, lf_test, update_report,
|
||||||
test_cases, radius_info, exit_on_fail):
|
test_cases, radius_info, exit_on_fail):
|
||||||
profile_data = setup_params_enterprise_two["ssid_modes"]["wpa_wpa2_enterprise_mixed"][0]
|
profile_data = setup_params_enterprise_two["ssid_modes"]["wpa_wpa2_enterprise_mixed"][0]
|
||||||
ssid_name = profile_data["ssid_name"]
|
ssid_name = profile_data["ssid_name"]
|
||||||
@@ -263,10 +283,13 @@ class TestVLANModeEnterpriseTTLSSuiteTwo(object):
|
|||||||
extra_secu = ["wpa2"]
|
extra_secu = ["wpa2"]
|
||||||
mode = "VLAN"
|
mode = "VLAN"
|
||||||
band = "twog"
|
band = "twog"
|
||||||
vlan = 1
|
vlan = 100
|
||||||
ttls_passwd = radius_info["password"]
|
ttls_passwd = radius_info["password"]
|
||||||
eap = "TTLS"
|
eap = "TTLS"
|
||||||
identity = radius_info['user']
|
identity = radius_info['user']
|
||||||
|
if ssid_name not in get_vif_state:
|
||||||
|
allure.attach(name="retest,vif state ssid not available:", body=str(get_vif_state))
|
||||||
|
pytest.xfail("SSID NOT AVAILABLE IN VIF STATE")
|
||||||
passes = lf_test.EAP_Connect(ssid=ssid_name, security=security, extra_securities=extra_secu,
|
passes = lf_test.EAP_Connect(ssid=ssid_name, security=security, extra_securities=extra_secu,
|
||||||
mode=mode, band=band,
|
mode=mode, band=band,
|
||||||
eap=eap, ttls_passwd=ttls_passwd, identity=identity,
|
eap=eap, ttls_passwd=ttls_passwd, identity=identity,
|
||||||
@@ -288,7 +311,7 @@ class TestVLANModeEnterpriseTTLSSuiteTwo(object):
|
|||||||
|
|
||||||
@pytest.mark.wpa_wpa2_enterprise_mixed
|
@pytest.mark.wpa_wpa2_enterprise_mixed
|
||||||
@pytest.mark.fiveg
|
@pytest.mark.fiveg
|
||||||
def test_wpa_wpa2_enterprise_5g(self, station_names_fiveg, setup_profiles, get_lanforge_data, lf_test,
|
def test_wpa_wpa2_enterprise_5g(self, get_vif_state,station_names_fiveg, setup_profiles, get_lanforge_data, lf_test,
|
||||||
update_report, test_cases, radius_info, exit_on_fail):
|
update_report, test_cases, radius_info, exit_on_fail):
|
||||||
profile_data = setup_params_enterprise_two["ssid_modes"]["wpa_wpa2_enterprise_mixed"][1]
|
profile_data = setup_params_enterprise_two["ssid_modes"]["wpa_wpa2_enterprise_mixed"][1]
|
||||||
ssid_name = profile_data["ssid_name"]
|
ssid_name = profile_data["ssid_name"]
|
||||||
@@ -296,10 +319,13 @@ class TestVLANModeEnterpriseTTLSSuiteTwo(object):
|
|||||||
extra_secu = ["wpa2"]
|
extra_secu = ["wpa2"]
|
||||||
mode = "VLAN"
|
mode = "VLAN"
|
||||||
band = "twog"
|
band = "twog"
|
||||||
vlan = 1
|
vlan = 100
|
||||||
ttls_passwd = radius_info["password"]
|
ttls_passwd = radius_info["password"]
|
||||||
eap = "TTLS"
|
eap = "TTLS"
|
||||||
identity = radius_info['user']
|
identity = radius_info['user']
|
||||||
|
if ssid_name not in get_vif_state:
|
||||||
|
allure.attach(name="retest,vif state ssid not available:", body=str(get_vif_state))
|
||||||
|
pytest.xfail("SSID NOT AVAILABLE IN VIF STATE")
|
||||||
passes = lf_test.EAP_Connect(ssid=ssid_name, security=security, extra_securities=extra_secu,
|
passes = lf_test.EAP_Connect(ssid=ssid_name, security=security, extra_securities=extra_secu,
|
||||||
mode=mode, band=band,
|
mode=mode, band=band,
|
||||||
eap=eap, ttls_passwd=ttls_passwd, identity=identity,
|
eap=eap, ttls_passwd=ttls_passwd, identity=identity,
|
||||||
@@ -321,17 +347,20 @@ class TestVLANModeEnterpriseTTLSSuiteTwo(object):
|
|||||||
|
|
||||||
@pytest.mark.wpa3_enterprise_mixed
|
@pytest.mark.wpa3_enterprise_mixed
|
||||||
@pytest.mark.twog
|
@pytest.mark.twog
|
||||||
def test_wpa3_enterprise_mixed_2g(self, station_names_twog, setup_profiles, get_lanforge_data, lf_test,
|
def test_wpa3_enterprise_mixed_2g(self, get_vif_state,station_names_twog, setup_profiles, get_lanforge_data, lf_test,
|
||||||
update_report, test_cases, radius_info, exit_on_fail):
|
update_report, test_cases, radius_info, exit_on_fail):
|
||||||
profile_data = setup_params_enterprise_two["ssid_modes"]["wpa3_enterprise_mixed"][0]
|
profile_data = setup_params_enterprise_two["ssid_modes"]["wpa3_enterprise_mixed"][0]
|
||||||
ssid_name = profile_data["ssid_name"]
|
ssid_name = profile_data["ssid_name"]
|
||||||
security = "wpa3"
|
security = "wpa3"
|
||||||
mode = "VLAN"
|
mode = "VLAN"
|
||||||
band = "twog"
|
band = "twog"
|
||||||
vlan = 1
|
vlan = 100
|
||||||
ttls_passwd = radius_info["password"]
|
ttls_passwd = radius_info["password"]
|
||||||
eap = "TTLS"
|
eap = "TTLS"
|
||||||
identity = radius_info['user']
|
identity = radius_info['user']
|
||||||
|
if ssid_name not in get_vif_state:
|
||||||
|
allure.attach(name="retest,vif state ssid not available:", body=str(get_vif_state))
|
||||||
|
pytest.xfail("SSID NOT AVAILABLE IN VIF STATE")
|
||||||
passes = lf_test.EAP_Connect(ssid=ssid_name, security=security,
|
passes = lf_test.EAP_Connect(ssid=ssid_name, security=security,
|
||||||
mode=mode, band=band,
|
mode=mode, band=band,
|
||||||
eap=eap, ttls_passwd=ttls_passwd, identity=identity,
|
eap=eap, ttls_passwd=ttls_passwd, identity=identity,
|
||||||
@@ -353,7 +382,7 @@ class TestVLANModeEnterpriseTTLSSuiteTwo(object):
|
|||||||
|
|
||||||
@pytest.mark.wpa3_enterprise_mixed
|
@pytest.mark.wpa3_enterprise_mixed
|
||||||
@pytest.mark.fiveg
|
@pytest.mark.fiveg
|
||||||
def test_wpa3_enterprise_mixed_5g(self, station_names_fiveg, setup_profiles, get_lanforge_data, lf_test,
|
def test_wpa3_enterprise_mixed_5g(self, get_vif_state,station_names_fiveg, setup_profiles, get_lanforge_data, lf_test,
|
||||||
update_report, exit_on_fail,
|
update_report, exit_on_fail,
|
||||||
test_cases, radius_info):
|
test_cases, radius_info):
|
||||||
profile_data = setup_params_enterprise_two["ssid_modes"]["wpa3_enterprise_mixed"][1]
|
profile_data = setup_params_enterprise_two["ssid_modes"]["wpa3_enterprise_mixed"][1]
|
||||||
@@ -361,10 +390,13 @@ class TestVLANModeEnterpriseTTLSSuiteTwo(object):
|
|||||||
security = "wpa3"
|
security = "wpa3"
|
||||||
mode = "VLAN"
|
mode = "VLAN"
|
||||||
band = "fiveg"
|
band = "fiveg"
|
||||||
vlan = 1
|
vlan = 100
|
||||||
ttls_passwd = radius_info["password"]
|
ttls_passwd = radius_info["password"]
|
||||||
eap = "TTLS"
|
eap = "TTLS"
|
||||||
identity = radius_info['user']
|
identity = radius_info['user']
|
||||||
|
if ssid_name not in get_vif_state:
|
||||||
|
allure.attach(name="retest,vif state ssid not available:", body=str(get_vif_state))
|
||||||
|
pytest.xfail("SSID NOT AVAILABLE IN VIF STATE")
|
||||||
passes = lf_test.EAP_Connect(ssid=ssid_name, security=security,
|
passes = lf_test.EAP_Connect(ssid=ssid_name, security=security,
|
||||||
mode=mode, band=band,
|
mode=mode, band=band,
|
||||||
eap=eap, ttls_passwd=ttls_passwd, identity=identity,
|
eap=eap, ttls_passwd=ttls_passwd, identity=identity,
|
||||||
|
|||||||
@@ -45,7 +45,7 @@ class TestvlanModeConnectivitySuiteA(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, 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 vlan and general and open and twog"
|
pytest -m "client_connectivity and vlan and general and open and twog"
|
||||||
@@ -57,6 +57,9 @@ class TestvlanModeConnectivitySuiteA(object):
|
|||||||
mode = "VLAN"
|
mode = "VLAN"
|
||||||
band = "twog"
|
band = "twog"
|
||||||
vlan = 100
|
vlan = 100
|
||||||
|
if ssid_name not in get_vif_state:
|
||||||
|
allure.attach(name="retest,vif state ssid not available:", body=str(get_vif_state))
|
||||||
|
pytest.xfail("SSID NOT AVAILABLE IN VIF STATE")
|
||||||
passes, result = lf_test.Client_Connectivity(ssid=ssid_name, security=security,
|
passes, result = lf_test.Client_Connectivity(ssid=ssid_name, security=security,
|
||||||
passkey=security_key, mode=mode, band=band,
|
passkey=security_key, mode=mode, band=band,
|
||||||
station_name=station_names_twog, vlan_id=vlan)
|
station_name=station_names_twog, vlan_id=vlan)
|
||||||
@@ -76,7 +79,7 @@ class TestvlanModeConnectivitySuiteA(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_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 vlan and general and open and fiveg"
|
pytest -m "client_connectivity and vlan and general and open and fiveg"
|
||||||
"""
|
"""
|
||||||
@@ -87,6 +90,9 @@ class TestvlanModeConnectivitySuiteA(object):
|
|||||||
mode = "VLAN"
|
mode = "VLAN"
|
||||||
band = "fiveg"
|
band = "fiveg"
|
||||||
vlan = 100
|
vlan = 100
|
||||||
|
if ssid_name not in get_vif_state:
|
||||||
|
allure.attach(name="retest,vif state ssid not available:", body=str(get_vif_state))
|
||||||
|
pytest.xfail("SSID NOT AVAILABLE IN VIF STATE")
|
||||||
passes, result = lf_test.Client_Connectivity(ssid=ssid_name, security=security,
|
passes, result = lf_test.Client_Connectivity(ssid=ssid_name, security=security,
|
||||||
passkey=security_key, mode=mode, band=band,
|
passkey=security_key, mode=mode, band=band,
|
||||||
station_name=station_names_fiveg, vlan_id=vlan)
|
station_name=station_names_fiveg, vlan_id=vlan)
|
||||||
@@ -103,10 +109,11 @@ class TestvlanModeConnectivitySuiteA(object):
|
|||||||
passes))
|
passes))
|
||||||
assert result
|
assert result
|
||||||
|
|
||||||
|
@pytest.mark.sanity_55
|
||||||
@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_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 vlan and general and wpa and twog"
|
pytest -m "client_connectivity and vlan and general and wpa and twog"
|
||||||
@@ -118,6 +125,9 @@ class TestvlanModeConnectivitySuiteA(object):
|
|||||||
mode = "VLAN"
|
mode = "VLAN"
|
||||||
band = "twog"
|
band = "twog"
|
||||||
vlan = 100
|
vlan = 100
|
||||||
|
if ssid_name not in get_vif_state:
|
||||||
|
allure.attach(name="retest,vif state ssid not available:", body=str(get_vif_state))
|
||||||
|
pytest.xfail("SSID NOT AVAILABLE IN VIF STATE")
|
||||||
passes, result = lf_test.Client_Connectivity(ssid=ssid_name, security=security,
|
passes, result = lf_test.Client_Connectivity(ssid=ssid_name, security=security,
|
||||||
passkey=security_key, mode=mode, band=band,
|
passkey=security_key, mode=mode, band=band,
|
||||||
station_name=station_names_twog, vlan_id=vlan)
|
station_name=station_names_twog, vlan_id=vlan)
|
||||||
@@ -134,10 +144,11 @@ class TestvlanModeConnectivitySuiteA(object):
|
|||||||
passes))
|
passes))
|
||||||
assert result
|
assert result
|
||||||
|
|
||||||
|
@pytest.mark.sanity_55
|
||||||
@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, 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 vlan and general and wpa and fiveg"
|
pytest -m "client_connectivity and vlan and general and wpa and fiveg"
|
||||||
"""
|
"""
|
||||||
@@ -148,6 +159,9 @@ class TestvlanModeConnectivitySuiteA(object):
|
|||||||
mode = "VLAN"
|
mode = "VLAN"
|
||||||
band = "fiveg"
|
band = "fiveg"
|
||||||
vlan = 100
|
vlan = 100
|
||||||
|
if ssid_name not in get_vif_state:
|
||||||
|
allure.attach(name="retest,vif state ssid not available:", body=str(get_vif_state))
|
||||||
|
pytest.xfail("SSID NOT AVAILABLE IN VIF STATE")
|
||||||
passes, result = lf_test.Client_Connectivity(ssid=ssid_name, security=security,
|
passes, result = lf_test.Client_Connectivity(ssid=ssid_name, security=security,
|
||||||
passkey=security_key, mode=mode, band=band,
|
passkey=security_key, mode=mode, band=band,
|
||||||
station_name=station_names_fiveg, vlan_id=vlan)
|
station_name=station_names_fiveg, vlan_id=vlan)
|
||||||
@@ -164,10 +178,11 @@ class TestvlanModeConnectivitySuiteA(object):
|
|||||||
passes))
|
passes))
|
||||||
assert result
|
assert result
|
||||||
|
|
||||||
|
@pytest.mark.sanity_55
|
||||||
@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_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 vlan and general and wpa2_personal and twog"
|
pytest -m "client_connectivity and vlan and general and wpa2_personal and twog"
|
||||||
@@ -179,6 +194,9 @@ class TestvlanModeConnectivitySuiteA(object):
|
|||||||
mode = "VLAN"
|
mode = "VLAN"
|
||||||
band = "twog"
|
band = "twog"
|
||||||
vlan = 100
|
vlan = 100
|
||||||
|
if ssid_name not in get_vif_state:
|
||||||
|
allure.attach(name="retest,vif state ssid not available:", body=str(get_vif_state))
|
||||||
|
pytest.xfail("SSID NOT AVAILABLE IN VIF STATE")
|
||||||
passes, result = lf_test.Client_Connectivity(ssid=ssid_name, security=security,
|
passes, result = lf_test.Client_Connectivity(ssid=ssid_name, security=security,
|
||||||
passkey=security_key, mode=mode, band=band,
|
passkey=security_key, mode=mode, band=band,
|
||||||
station_name=station_names_twog, vlan_id=vlan)
|
station_name=station_names_twog, vlan_id=vlan)
|
||||||
@@ -195,10 +213,11 @@ class TestvlanModeConnectivitySuiteA(object):
|
|||||||
passes))
|
passes))
|
||||||
assert result
|
assert result
|
||||||
|
|
||||||
|
@pytest.mark.sanity_55
|
||||||
@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_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 vlan and general and wpa2_personal and fiveg"
|
pytest -m "client_connectivity and vlan and general and wpa2_personal and fiveg"
|
||||||
@@ -210,6 +229,9 @@ class TestvlanModeConnectivitySuiteA(object):
|
|||||||
mode = "VLAN"
|
mode = "VLAN"
|
||||||
band = "fiveg"
|
band = "fiveg"
|
||||||
vlan = 100
|
vlan = 100
|
||||||
|
if ssid_name not in get_vif_state:
|
||||||
|
allure.attach(name="retest,vif state ssid not available:", body=str(get_vif_state))
|
||||||
|
pytest.xfail("SSID NOT AVAILABLE IN VIF STATE")
|
||||||
passes, result = lf_test.Client_Connectivity(ssid=ssid_name, security=security,
|
passes, result = lf_test.Client_Connectivity(ssid=ssid_name, security=security,
|
||||||
passkey=security_key, mode=mode, band=band,
|
passkey=security_key, mode=mode, band=band,
|
||||||
station_name=station_names_fiveg, vlan_id=vlan)
|
station_name=station_names_fiveg, vlan_id=vlan)
|
||||||
@@ -265,7 +287,7 @@ class TestvlanModeConnectivitySuiteTwo(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, 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 vlan and general and wpa3_personal and twog"
|
pytest -m "client_connectivity and vlan and general and wpa3_personal and twog"
|
||||||
@@ -277,6 +299,9 @@ class TestvlanModeConnectivitySuiteTwo(object):
|
|||||||
mode = "VLAN"
|
mode = "VLAN"
|
||||||
band = "twog"
|
band = "twog"
|
||||||
vlan = 100
|
vlan = 100
|
||||||
|
if ssid_name not in get_vif_state:
|
||||||
|
allure.attach(name="retest,vif state ssid not available:", body=str(get_vif_state))
|
||||||
|
pytest.xfail("SSID NOT AVAILABLE IN VIF STATE")
|
||||||
passes, result = lf_test.Client_Connectivity(ssid=ssid_name, security=security,
|
passes, result = lf_test.Client_Connectivity(ssid=ssid_name, security=security,
|
||||||
passkey=security_key, mode=mode, band=band,
|
passkey=security_key, mode=mode, band=band,
|
||||||
station_name=station_names_twog, vlan_id=vlan)
|
station_name=station_names_twog, vlan_id=vlan)
|
||||||
@@ -296,7 +321,7 @@ class TestvlanModeConnectivitySuiteTwo(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, 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 vlan and general and wpa3_personal and fiveg"
|
pytest -m "client_connectivity and vlan and general and wpa3_personal and fiveg"
|
||||||
"""
|
"""
|
||||||
@@ -307,6 +332,9 @@ class TestvlanModeConnectivitySuiteTwo(object):
|
|||||||
mode = "VLAN"
|
mode = "VLAN"
|
||||||
band = "fiveg"
|
band = "fiveg"
|
||||||
vlan = 100
|
vlan = 100
|
||||||
|
if ssid_name not in get_vif_state:
|
||||||
|
allure.attach(name="retest,vif state ssid not available:", body=str(get_vif_state))
|
||||||
|
pytest.xfail("SSID NOT AVAILABLE IN VIF STATE")
|
||||||
passes, result = lf_test.Client_Connectivity(ssid=ssid_name, security=security,
|
passes, result = lf_test.Client_Connectivity(ssid=ssid_name, security=security,
|
||||||
passkey=security_key, mode=mode, band=band,
|
passkey=security_key, mode=mode, band=band,
|
||||||
station_name=station_names_fiveg, vlan_id=vlan)
|
station_name=station_names_fiveg, vlan_id=vlan)
|
||||||
@@ -326,7 +354,7 @@ class TestvlanModeConnectivitySuiteTwo(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, 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
|
||||||
@@ -339,6 +367,9 @@ class TestvlanModeConnectivitySuiteTwo(object):
|
|||||||
mode = "VLAN"
|
mode = "VLAN"
|
||||||
band = "twog"
|
band = "twog"
|
||||||
vlan = 100
|
vlan = 100
|
||||||
|
if ssid_name not in get_vif_state:
|
||||||
|
allure.attach(name="retest,vif state ssid not available:", body=str(get_vif_state))
|
||||||
|
pytest.xfail("SSID NOT AVAILABLE IN VIF STATE")
|
||||||
passes, result = lf_test.Client_Connectivity(ssid=ssid_name, security=security,
|
passes, result = lf_test.Client_Connectivity(ssid=ssid_name, security=security,
|
||||||
passkey=security_key, mode=mode, band=band,
|
passkey=security_key, mode=mode, band=band,
|
||||||
station_name=station_names_twog, vlan_id=vlan)
|
station_name=station_names_twog, vlan_id=vlan)
|
||||||
@@ -358,7 +389,7 @@ class TestvlanModeConnectivitySuiteTwo(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, 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 vlan and general and wpa3_personal_mixed and fiveg"
|
pytest -m "client_connectivity and vlan and general and wpa3_personal_mixed and fiveg"
|
||||||
@@ -370,6 +401,9 @@ class TestvlanModeConnectivitySuiteTwo(object):
|
|||||||
mode = "VLAN"
|
mode = "VLAN"
|
||||||
band = "fiveg"
|
band = "fiveg"
|
||||||
vlan = 100
|
vlan = 100
|
||||||
|
if ssid_name not in get_vif_state:
|
||||||
|
allure.attach(name="retest,vif state ssid not available:", body=str(get_vif_state))
|
||||||
|
pytest.xfail("SSID NOT AVAILABLE IN VIF STATE")
|
||||||
passes, result = lf_test.Client_Connectivity(ssid=ssid_name, security=security,
|
passes, result = lf_test.Client_Connectivity(ssid=ssid_name, security=security,
|
||||||
passkey=security_key, mode=mode, band=band,
|
passkey=security_key, mode=mode, band=band,
|
||||||
station_name=station_names_fiveg, vlan_id=vlan)
|
station_name=station_names_fiveg, vlan_id=vlan)
|
||||||
@@ -389,7 +423,7 @@ class TestvlanModeConnectivitySuiteTwo(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, 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
|
||||||
@@ -403,6 +437,9 @@ class TestvlanModeConnectivitySuiteTwo(object):
|
|||||||
mode = "VLAN"
|
mode = "VLAN"
|
||||||
band = "twog"
|
band = "twog"
|
||||||
vlan = 100
|
vlan = 100
|
||||||
|
if ssid_name not in get_vif_state:
|
||||||
|
allure.attach(name="retest,vif state ssid not available:", body=str(get_vif_state))
|
||||||
|
pytest.xfail("SSID NOT AVAILABLE IN VIF STATE")
|
||||||
passes, result = lf_test.Client_Connectivity(ssid=ssid_name, security=security, extra_securities=extra_secu,
|
passes, result = lf_test.Client_Connectivity(ssid=ssid_name, security=security, extra_securities=extra_secu,
|
||||||
passkey=security_key, mode=mode, band=band,
|
passkey=security_key, mode=mode, band=band,
|
||||||
station_name=station_names_twog, vlan_id=vlan)
|
station_name=station_names_twog, vlan_id=vlan)
|
||||||
@@ -422,7 +459,7 @@ class TestvlanModeConnectivitySuiteTwo(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, 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 vlan and general and wpa_wpa2_personal_mixed and fiveg"
|
pytest -m "client_connectivity and vlan and general and wpa_wpa2_personal_mixed and fiveg"
|
||||||
@@ -435,6 +472,9 @@ class TestvlanModeConnectivitySuiteTwo(object):
|
|||||||
mode = "VLAN"
|
mode = "VLAN"
|
||||||
band = "fiveg"
|
band = "fiveg"
|
||||||
vlan = 100
|
vlan = 100
|
||||||
|
if ssid_name not in get_vif_state:
|
||||||
|
allure.attach(name="retest,vif state ssid not available:", body=str(get_vif_state))
|
||||||
|
pytest.xfail("SSID NOT AVAILABLE IN VIF STATE")
|
||||||
passes, result = lf_test.Client_Connectivity(ssid=ssid_name, security=security, extra_securities=extra_secu,
|
passes, result = lf_test.Client_Connectivity(ssid=ssid_name, security=security, extra_securities=extra_secu,
|
||||||
passkey=security_key, mode=mode, band=band,
|
passkey=security_key, mode=mode, band=band,
|
||||||
station_name=station_names_fiveg, vlan_id=vlan)
|
station_name=station_names_fiveg, vlan_id=vlan)
|
||||||
@@ -477,7 +517,7 @@ class TestvlanModeConnectivitySuiteTwo(object):
|
|||||||
#
|
#
|
||||||
# @pytest.mark.wep
|
# @pytest.mark.wep
|
||||||
# @pytest.mark.twog
|
# @pytest.mark.twog
|
||||||
# def test_wep_2g(self, station_names_twog, setup_profiles, get_lanforge_data, lf_test, update_report,
|
# def test_wep_2g(self, get_vif_state,station_names_twog, setup_profiles, get_lanforge_data, lf_test, update_report,
|
||||||
# test_cases, radius_info):
|
# test_cases, radius_info):
|
||||||
# profile_data = setup_params_wep["ssid_modes"]["wep"][0]
|
# profile_data = setup_params_wep["ssid_modes"]["wep"][0]
|
||||||
# ssid_name = profile_data["ssid_name"]
|
# ssid_name = profile_data["ssid_name"]
|
||||||
@@ -505,7 +545,7 @@ class TestvlanModeConnectivitySuiteTwo(object):
|
|||||||
#
|
#
|
||||||
# @pytest.mark.wep
|
# @pytest.mark.wep
|
||||||
# @pytest.mark.fiveg
|
# @pytest.mark.fiveg
|
||||||
# def test_wep_5g(self, station_names_fiveg, setup_profiles, get_lanforge_data, lf_test, update_report,
|
# def test_wep_5g(self, get_vif_state,station_names_fiveg, setup_profiles, get_lanforge_data, lf_test, update_report,
|
||||||
# test_cases, radius_info):
|
# test_cases, radius_info):
|
||||||
# profile_data = setup_params_wep["ssid_modes"]["wep"][1]
|
# profile_data = setup_params_wep["ssid_modes"]["wep"][1]
|
||||||
# ssid_name = profile_data["ssid_name"]
|
# ssid_name = profile_data["ssid_name"]
|
||||||
|
|||||||
@@ -10,6 +10,8 @@ num_stations=1
|
|||||||
# Cloud SDK settings
|
# Cloud SDK settings
|
||||||
sdk-customer-id=2
|
sdk-customer-id=2
|
||||||
|
|
||||||
|
#fIRMWARE Option
|
||||||
|
build=0
|
||||||
|
|
||||||
# Influx Params
|
# Influx Params
|
||||||
influx_host=influx.cicd.lab.wlan.tip.build
|
influx_host=influx.cicd.lab.wlan.tip.build
|
||||||
@@ -18,7 +20,7 @@ influx_token=TCkdATXAbHmNbn4QyNaj43WpGBYxFrzV
|
|||||||
influx_bucket=tip-cicd
|
influx_bucket=tip-cicd
|
||||||
;influx_bucket=
|
;influx_bucket=
|
||||||
influx_org=tip
|
influx_org=tip
|
||||||
=======
|
|
||||||
# Radius Settings
|
# Radius Settings
|
||||||
radius_server_ip=192.168.200.75
|
radius_server_ip=192.168.200.75
|
||||||
radius_port=1812
|
radius_port=1812
|
||||||
|
|||||||
@@ -5,7 +5,8 @@
|
|||||||
import allure
|
import allure
|
||||||
import pytest
|
import pytest
|
||||||
|
|
||||||
pytestmark = [pytest.mark.usefixtures("setup_test_run"), pytest.mark.test_resources, pytest.mark.sanity]
|
pytestmark = [pytest.mark.usefixtures("setup_test_run"), pytest.mark.test_resources, pytest.mark.sanity,
|
||||||
|
pytest.mark.sanity_55]
|
||||||
|
|
||||||
|
|
||||||
@allure.testcase(name="Test Resources", url="")
|
@allure.testcase(name="Test Resources", url="")
|
||||||
@@ -55,16 +56,10 @@ class TestResources(object):
|
|||||||
def test_traffic_generator_connectivity(self, traffic_generator_connectivity, update_report, test_cases):
|
def test_traffic_generator_connectivity(self, traffic_generator_connectivity, update_report, test_cases):
|
||||||
"""Test case to verify Traffic Generator Connectivity"""
|
"""Test case to verify Traffic Generator Connectivity"""
|
||||||
if traffic_generator_connectivity == "5.4.3":
|
if traffic_generator_connectivity == "5.4.3":
|
||||||
allure.attach(name="Access Point Connectivity Success", body=str(traffic_generator_connectivity))
|
allure.attach(name="LANforge-", body=str(traffic_generator_connectivity))
|
||||||
update_report.update_testrail(case_id=test_cases["cloud_connection"],
|
|
||||||
status_id=5,
|
|
||||||
msg='CloudSDK connectivity failed')
|
|
||||||
|
|
||||||
pytest.exit("LANforgeGUI-5.4.3 is not available")
|
|
||||||
else:
|
else:
|
||||||
allure.attach(name="Access Point Connectivity Failed", body=str(traffic_generator_connectivity))
|
allure.attach(name="LANforgeGUI-5.4.3 is not available", body=str(traffic_generator_connectivity))
|
||||||
update_report.update_testrail(case_id=test_cases["cloud_connection"],
|
pytest.exit("LANforgeGUI-5.4.3 is not available")
|
||||||
status_id=1,
|
|
||||||
msg='Manager status is Active')
|
|
||||||
|
|
||||||
assert traffic_generator_connectivity
|
assert traffic_generator_connectivity
|
||||||
|
|||||||
Reference in New Issue
Block a user