Merge branch 'master' into WIFI-3623

This commit is contained in:
Sushant Bawiskar
2021-09-14 15:42:56 +05:30
committed by GitHub
9 changed files with 192 additions and 104 deletions

View File

@@ -10,6 +10,9 @@ Currently Having Methods:
""" """
import json import json
import string
import time
import random
import paramiko import paramiko
from scp import SCPClient from scp import SCPClient
@@ -51,7 +54,7 @@ class APNOS:
client = self.ssh_cli_connect() client = self.ssh_cli_connect()
cmd = '[ -f ~/cicd-git/ ] && echo "True" || echo "False"' cmd = '[ -f ~/cicd-git/ ] && echo "True" || echo "False"'
stdin, stdout, stderr = client.exec_command(cmd) stdin, stdout, stderr = client.exec_command(cmd)
output = str(stdout.read()) output = str(stdout.read())
print(output) print(output)
if output.__contains__("False"): if output.__contains__("False"):
cmd = 'mkdir ~/cicd-git/' cmd = 'mkdir ~/cicd-git/'
@@ -137,7 +140,6 @@ class APNOS:
output = stdout.read() output = stdout.read()
client.close() client.close()
return output return output
# Method to get the vif_state of AP using AP-CLI/ JUMPHOST-CLI # Method to get the vif_state of AP using AP-CLI/ JUMPHOST-CLI
@@ -305,15 +307,12 @@ class APNOS:
f"cmd --value \"{cmd}\" " f"cmd --value \"{cmd}\" "
stdin, stdout, stderr = client.exec_command(cmd) stdin, stdout, stderr = client.exec_command(cmd)
output = stdout.read() output = stdout.read()
print(output, stderr.read())
status = output.decode('utf-8').splitlines() status = output.decode('utf-8').splitlines()
error = stderr
stdin = stdin
client.close() client.close()
except Exception as e: except Exception as e:
print(e) print(e)
stdin, status, error = "Error", "Error", "Error" status = "Error"
return stdin, status, error return status
def get_ucentral_status(self): def get_ucentral_status(self):
try: try:
@@ -452,7 +451,7 @@ class APNOS:
band = "2G" band = "2G"
else: else:
band = "5G" band = "5G"
iwinfo_bssid_data[o[i - 1]] = [o[i+1].replace('"', ''), o[i + 4], band] iwinfo_bssid_data[o[i - 1]] = [o[i + 1].replace('"', ''), o[i + 4], band]
client.close() client.close()
except Exception as e: except Exception as e:
iwinfo_bssid_data = False iwinfo_bssid_data = False
@@ -492,6 +491,20 @@ class APNOS:
name.pop(-1) name.pop(-1)
return tx_power, name return tx_power, name
def get_logread(self, start_ref="", stop_ref=""):
data = self.logread()
log_data = []
data = data.split("\n")
flag = 0
for logs in data:
if logs.__contains__(start_ref):
flag = 1
if flag == 1:
log_data.append(logs)
if logs.__contains__(stop_ref):
flag = 0
ap_logs = "\n".join(log_data)
return ap_logs
def logread(self): def logread(self):
try: try:
@@ -561,19 +574,25 @@ class APNOS:
if __name__ == '__main__': if __name__ == '__main__':
obj = { obj = {
'model': 'ecw5211', 'model': 'wf188n',
'mode': 'wifi5', 'mode': 'wifi6',
'serial': '001122090801', 'serial': '0000c1018812',
'jumphost': True, 'jumphost': True,
'ip': "10.28.3.100", 'ip': "10.28.3.103",
'username': "lanforge", 'username': "lanforge",
'password': "pumpkin77", 'password': "pumpkin77",
'port': 22, 'port': 22,
'jumphost_tty': '/dev/ttyAP3', 'jumphost_tty': '/dev/ttyAP1',
'version': "https://tip.jfrog.io/artifactory/tip-wlan-ap-firmware/uCentral/edgecore_eap102/20210625-edgecore_eap102-uCentral-trunk-4225122-upgrade.bin" 'version': "https://tip.jfrog.io/artifactory/tip-wlan-ap-firmware/uCentral/cig_wf188/20210729-cig_wf188-v2.0.0-rc2-ec3662e-upgrade.bin"
} }
var = APNOS(credentials=obj, sdk="2.x") var = APNOS(credentials=obj, sdk="2.x")
tx_power, name = var.iwinfo() a = var.get_wifi_status()
allure.attach(name="interface name: ", body=str(name))
allure.attach(name="tx power: ", body=str(tx_power))
print(tx_power, name) # S = 9
# instance_name = ''.join(random.choices(string.ascii_uppercase + string.digits, k=S))
# var.run_generic_command(cmd="logger start testcase: " + instance_name)
# time.sleep(60)
# var.run_generic_command(cmd="logger stop testcase: " + instance_name)
# var.get_logread(start_ref="start testcase: " + instance_name,
# stop_ref="stop testcase: " + instance_name)

View File

@@ -2,6 +2,8 @@
Pytest fixtures: High level Resource Management and base setup fixtures Pytest fixtures: High level Resource Management and base setup fixtures
""" """
import datetime import datetime
import random
import string
import sys import sys
import os import os
import time import time
@@ -652,3 +654,27 @@ def fixtures_ver(request, get_configuration):
print("1.x") print("1.x")
obj = Fixtures_1x(configuration=get_configuration) obj = Fixtures_1x(configuration=get_configuration)
yield obj yield obj
"""
Logs related Fixtures
"""
@pytest.fixture(scope="function")
def get_ap_logs(request, get_apnos, get_configuration):
S = 9
instance_name = ''.join(random.choices(string.ascii_uppercase + string.digits, k=S))
for ap in get_configuration['access_point']:
ap_ssh = get_apnos(ap, pwd="../libs/apnos/", sdk="2.x")
ap_ssh.run_generic_command(cmd="logger start testcase: " + instance_name)
def collect_logs():
for ap in get_configuration['access_point']:
ap_ssh = get_apnos(ap, pwd="../libs/apnos/", sdk="2.x")
ap_ssh.run_generic_command(cmd="logger stop testcase: " + instance_name)
ap_logs = ap_ssh.get_logread(start_ref="start testcase: " + instance_name,
stop_ref="stop testcase: " + instance_name)
allure.attach(name='logread', body=str(ap_logs))
pass
request.addfinalizer(collect_logs)

View File

@@ -45,7 +45,7 @@ class TestBridgeModeEnterpriseTTLSSuiteA(object):
@pytest.mark.wpa_enterprise @pytest.mark.wpa_enterprise
@pytest.mark.twog @pytest.mark.twog
def test_wpa_enterprise_2g(self, get_vif_state, def test_wpa_enterprise_2g(self, get_vif_state, get_ap_logs,
station_names_twog, setup_profiles, get_lanforge_data, lf_test, update_report, 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 """ wpa enterprise 2g
@@ -72,7 +72,8 @@ class TestBridgeModeEnterpriseTTLSSuiteA(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, station_names_fiveg, get_ap_logs,
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 5g """ wpa enterprise 5g
pytest -m "client_connectivity and bridge and enterprise and ttls and wpa_enterprise and fiveg" pytest -m "client_connectivity and bridge and enterprise and ttls and wpa_enterprise and fiveg"
@@ -97,7 +98,7 @@ class TestBridgeModeEnterpriseTTLSSuiteA(object):
@pytest.mark.sanity_light @pytest.mark.sanity_light
@pytest.mark.wpa2_enterprise @pytest.mark.wpa2_enterprise
@pytest.mark.twog @pytest.mark.twog
def test_wpa2_enterprise_2g(self, get_vif_state, def test_wpa2_enterprise_2g(self, get_vif_state, get_ap_logs,
station_names_twog, setup_profiles, get_lanforge_data, lf_test, update_report, 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 """ wpa enterprise 2g
@@ -126,7 +127,7 @@ class TestBridgeModeEnterpriseTTLSSuiteA(object):
@pytest.mark.sanity_light @pytest.mark.sanity_light
@pytest.mark.wpa2_enterprise @pytest.mark.wpa2_enterprise
@pytest.mark.fiveg @pytest.mark.fiveg
def test_wpa2_enterprise_5g(self, get_vif_state, def test_wpa2_enterprise_5g(self, get_vif_state, get_ap_logs,
station_names_fiveg, setup_profiles, get_lanforge_data, lf_test, update_report, 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 """ wpa enterprise 2g
@@ -155,7 +156,7 @@ class TestBridgeModeEnterpriseTTLSSuiteA(object):
@pytest.mark.uc_sanity @pytest.mark.uc_sanity
@pytest.mark.wpa3_enterprise @pytest.mark.wpa3_enterprise
@pytest.mark.twog @pytest.mark.twog
def test_wpa3_enterprise_2g(self, get_vif_state, def test_wpa3_enterprise_2g(self, get_vif_state, get_ap_logs,
station_names_twog, setup_profiles, get_lanforge_data, lf_test, update_report, 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 """ wpa enterprise 2g
@@ -183,7 +184,7 @@ class TestBridgeModeEnterpriseTTLSSuiteA(object):
@pytest.mark.uc_sanity @pytest.mark.uc_sanity
@pytest.mark.wpa3_enterprise @pytest.mark.wpa3_enterprise
@pytest.mark.fiveg @pytest.mark.fiveg
def test_wpa3_enterprise_5g(self, get_vif_state, def test_wpa3_enterprise_5g(self, get_vif_state, get_ap_logs,
station_names_fiveg, setup_profiles, get_lanforge_data, lf_test, update_report, 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 """ wpa enterprise 2g
@@ -241,7 +242,7 @@ class TestBridgeModeEnterpriseTTLSSuiteTwo(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, get_vif_state, def test_wpa_wpa2_enterprise_2g(self, get_vif_state, get_ap_logs,
station_names_twog, setup_profiles, get_lanforge_data, lf_test, update_report, 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 """ wpa enterprise 2g
@@ -269,7 +270,7 @@ 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, get_vif_state, def test_wpa_wpa2_enterprise_5g(self, get_vif_state, get_ap_logs,
station_names_fiveg, setup_profiles, get_lanforge_data, lf_test, 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 """ wpa enterprise 2g
@@ -297,7 +298,7 @@ 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, get_vif_state, def test_wpa3_enterprise_mixed_2g(self, get_vif_state, get_ap_logs,
station_names_twog, setup_profiles, get_lanforge_data, lf_test, 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 """ wpa enterprise 2g
@@ -324,7 +325,7 @@ 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, get_vif_state, def test_wpa3_enterprise_mixed_5g(self, get_vif_state, get_ap_logs,
station_names_fiveg, setup_profiles, get_lanforge_data, lf_test, 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):

View File

@@ -49,7 +49,7 @@ class TestBridgeModeConnectivitySuiteA(object):
@pytest.mark.open @pytest.mark.open
@pytest.mark.twog @pytest.mark.twog
@allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-2809", name="JIRA LINK") @allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-2809", name="JIRA LINK")
def test_open_ssid_2g(self, get_vif_state, setup_profiles, get_lanforge_data, lf_test, update_report, def test_open_ssid_2g(self, get_vif_state, get_ap_logs, setup_profiles, get_lanforge_data, lf_test, update_report,
station_names_twog, station_names_twog,
test_cases): test_cases):
"""Client Connectivity open ssid 2.4G """Client Connectivity open ssid 2.4G
@@ -75,7 +75,7 @@ class TestBridgeModeConnectivitySuiteA(object):
@pytest.mark.open @pytest.mark.open
@pytest.mark.fiveg @pytest.mark.fiveg
@allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-2801", name="JIRA LINK") @allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-2801", name="JIRA LINK")
def test_open_ssid_5g(self, get_vif_state, get_lanforge_data, lf_test, test_cases, station_names_fiveg, def test_open_ssid_5g(self, get_vif_state, get_ap_logs, get_lanforge_data, lf_test, test_cases, station_names_fiveg,
update_report): 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"
@@ -102,7 +102,7 @@ class TestBridgeModeConnectivitySuiteA(object):
@pytest.mark.twog @pytest.mark.twog
@allure.story('wpa 2.4 GHZ Band') @allure.story('wpa 2.4 GHZ Band')
@allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-2801", name="JIRA LINK") @allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-2801", name="JIRA LINK")
def test_wpa_ssid_2g(self, get_vif_state, get_lanforge_data, update_report, def test_wpa_ssid_2g(self, get_vif_state, get_ap_logs, 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"
@@ -128,7 +128,7 @@ class TestBridgeModeConnectivitySuiteA(object):
@pytest.mark.wpa @pytest.mark.wpa
@pytest.mark.fiveg @pytest.mark.fiveg
@allure.story('wpa 5 GHZ Band') @allure.story('wpa 5 GHZ Band')
def test_wpa_ssid_5g(self, get_vif_state, lf_test, update_report, test_cases, station_names_fiveg, def test_wpa_ssid_5g(self, get_vif_state, get_ap_logs, lf_test, update_report, test_cases, station_names_fiveg,
get_lanforge_data): 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"
@@ -154,7 +154,7 @@ class TestBridgeModeConnectivitySuiteA(object):
@pytest.mark.wpa2_personal @pytest.mark.wpa2_personal
@pytest.mark.twog @pytest.mark.twog
@allure.story('wpa2_personal 2.4 GHZ Band') @allure.story('wpa2_personal 2.4 GHZ Band')
def test_wpa2_personal_ssid_2g(self, get_vif_state, get_lanforge_data, lf_test, update_report, test_cases, def test_wpa2_personal_ssid_2g(self, get_vif_state, get_ap_logs, 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"
@@ -180,7 +180,7 @@ class TestBridgeModeConnectivitySuiteA(object):
@pytest.mark.wpa2_personal @pytest.mark.wpa2_personal
@pytest.mark.fiveg @pytest.mark.fiveg
@allure.story('wpa2_personal 5 GHZ Band') @allure.story('wpa2_personal 5 GHZ Band')
def test_wpa2_personal_ssid_5g(self, get_vif_state, get_lanforge_data, update_report, test_cases, def test_wpa2_personal_ssid_5g(self, get_vif_state, get_ap_logs, get_lanforge_data, update_report, test_cases,
station_names_fiveg, station_names_fiveg,
lf_test): lf_test):
"""Client Connectivity wpa2_personal ssid 5G """Client Connectivity wpa2_personal ssid 5G
@@ -244,7 +244,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, get_vif_state, station_names_twog, setup_profiles, get_lanforge_data, lf_test, def test_wpa3_personal_ssid_2g(self, get_vif_state, get_ap_logs, 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
@@ -270,7 +270,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, get_vif_state, station_names_fiveg, get_lanforge_data, lf_test, test_cases, def test_wpa3_personal_ssid_5g(self, get_vif_state, get_ap_logs, 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 and fiveg" pytest -m "client_connectivity and bridge and general and wpa3_personal and fiveg"
@@ -295,7 +295,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, get_vif_state, station_names_twog, setup_profiles, get_lanforge_data, def test_wpa3_personal_mixed_ssid_2g(self, get_vif_state, get_ap_logs, station_names_twog, setup_profiles, get_lanforge_data,
lf_test, lf_test,
update_report, update_report,
test_cases): test_cases):
@@ -322,7 +322,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, get_vif_state, station_names_fiveg, get_lanforge_data, lf_test, def test_wpa3_personal_mixed_ssid_5g(self, get_vif_state, get_ap_logs, station_names_fiveg, get_lanforge_data, lf_test,
test_cases, test_cases,
update_report): update_report):
"""Client Connectivity open ssid 2.4G """Client Connectivity open ssid 2.4G
@@ -348,7 +348,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, get_vif_state, station_names_twog, setup_profiles, get_lanforge_data, def test_wpa_wpa2_personal_ssid_2g(self, get_vif_state, get_ap_logs, station_names_twog, setup_profiles, get_lanforge_data,
lf_test, lf_test,
update_report, update_report,
test_cases): test_cases):
@@ -376,7 +376,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, get_vif_state, station_names_fiveg, get_lanforge_data, lf_test, test_cases, def test_wpa_wpa2_personal_ssid_5g(self, get_vif_state, get_ap_logs, 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"

View File

@@ -33,7 +33,8 @@ class TestNATModeEnterpriseTTLSSuiteOne(object):
@pytest.mark.wpa_enterprise @pytest.mark.wpa_enterprise
@pytest.mark.twog @pytest.mark.twog
def test_wpa_enterprise_2g(self, get_vif_state,station_names_twog, setup_profiles, get_lanforge_data, lf_test, update_report, def test_wpa_enterprise_2g(self, get_vif_state, get_ap_logs,
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"]
@@ -57,7 +58,8 @@ class TestNATModeEnterpriseTTLSSuiteOne(object):
@pytest.mark.wpa_enterprise @pytest.mark.wpa_enterprise
@pytest.mark.fiveg @pytest.mark.fiveg
def test_wpa_enterprise_5g(self, get_vif_state,station_names_fiveg, setup_profiles, get_lanforge_data, lf_test, update_report, def test_wpa_enterprise_5g(self, get_vif_state, get_ap_logs,
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"]
@@ -83,7 +85,8 @@ class TestNATModeEnterpriseTTLSSuiteOne(object):
@pytest.mark.sanity_light @pytest.mark.sanity_light
@pytest.mark.wpa2_enterprise @pytest.mark.wpa2_enterprise
@pytest.mark.twog @pytest.mark.twog
def test_wpa2_enterprise_2g(self, get_vif_state,station_names_twog, setup_profiles, get_lanforge_data, lf_test, update_report, def test_wpa2_enterprise_2g(self, get_vif_state, get_ap_logs,
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"]
@@ -109,7 +112,8 @@ class TestNATModeEnterpriseTTLSSuiteOne(object):
@pytest.mark.sanity_light @pytest.mark.sanity_light
@pytest.mark.wpa2_enterprise @pytest.mark.wpa2_enterprise
@pytest.mark.fiveg @pytest.mark.fiveg
def test_wpa2_enterprise_5g(self, get_vif_state, station_names_fiveg, setup_profiles, get_lanforge_data, lf_test, update_report, def test_wpa2_enterprise_5g(self, get_vif_state, get_ap_logs,
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"]
@@ -134,7 +138,8 @@ class TestNATModeEnterpriseTTLSSuiteOne(object):
@pytest.mark.wpa3_enterprise @pytest.mark.wpa3_enterprise
@pytest.mark.twog @pytest.mark.twog
@pytest.mark.uc_sanity @pytest.mark.uc_sanity
def test_wpa3_enterprise_2g(self, get_vif_state,station_names_twog, setup_profiles, get_lanforge_data, lf_test, update_report, def test_wpa3_enterprise_2g(self, get_vif_state, get_ap_logs,
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"]
@@ -158,7 +163,8 @@ class TestNATModeEnterpriseTTLSSuiteOne(object):
@pytest.mark.wpa3_enterprise @pytest.mark.wpa3_enterprise
@pytest.mark.fiveg @pytest.mark.fiveg
@pytest.mark.uc_sanity @pytest.mark.uc_sanity
def test_wpa3_enterprise_5g(self, get_vif_state,station_names_fiveg, setup_profiles, get_lanforge_data, lf_test, update_report, def test_wpa3_enterprise_5g(self, get_vif_state,station_names_fiveg, get_ap_logs,
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"]
@@ -207,7 +213,8 @@ 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, get_vif_state,station_names_twog, setup_profiles, get_lanforge_data, lf_test, update_report, def test_wpa_wpa2_enterprise_2g(self, get_vif_state, get_ap_logs,
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"]
@@ -231,7 +238,8 @@ 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, get_vif_state,station_names_fiveg, setup_profiles, get_lanforge_data, lf_test, def test_wpa_wpa2_enterprise_5g(self, get_vif_state, get_ap_logs,
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"]
@@ -255,7 +263,8 @@ 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, get_vif_state,station_names_twog, setup_profiles, get_lanforge_data, lf_test, def test_wpa3_enterprise_mixed_2g(self, get_vif_state, get_ap_logs,
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"]
@@ -278,7 +287,8 @@ 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, get_vif_state,station_names_fiveg, setup_profiles, get_lanforge_data, lf_test, def test_wpa3_enterprise_mixed_5g(self, get_vif_state, get_ap_logs,
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]

View File

@@ -48,7 +48,8 @@ class TestNATModeConnectivitySuiteA(object):
@pytest.mark.open @pytest.mark.open
@pytest.mark.twog @pytest.mark.twog
@allure.story('open 2.4 GHZ Band') @allure.story('open 2.4 GHZ Band')
def test_open_ssid_2g(self, get_vif_state, setup_profiles, get_lanforge_data, lf_test, update_report, def test_open_ssid_2g(self, get_vif_state, get_ap_logs,
setup_profiles, get_lanforge_data, lf_test, update_report,
station_names_twog, station_names_twog,
test_cases): test_cases):
"""Client Connectivity open ssid 2.4G """Client Connectivity open ssid 2.4G
@@ -76,7 +77,8 @@ class TestNATModeConnectivitySuiteA(object):
@pytest.mark.open @pytest.mark.open
@pytest.mark.fiveg @pytest.mark.fiveg
@allure.story('open 5 GHZ Band') @allure.story('open 5 GHZ Band')
def test_open_ssid_5g(self, get_vif_state, get_lanforge_data, lf_test, test_cases, station_names_fiveg, def test_open_ssid_5g(self, get_vif_state, get_ap_logs,
get_lanforge_data, lf_test, test_cases, station_names_fiveg,
update_report): update_report):
"""Client Connectivity open ssid 5G """Client Connectivity open ssid 5G
pytest -m "client_connectivity and NAT and general and open and fiveg" pytest -m "client_connectivity and NAT and general and open and fiveg"
@@ -102,7 +104,7 @@ class TestNATModeConnectivitySuiteA(object):
@pytest.mark.wpa @pytest.mark.wpa
@pytest.mark.twog @pytest.mark.twog
@allure.story('wpa 2.4 GHZ Band') @allure.story('wpa 2.4 GHZ Band')
def test_wpa_ssid_2g(self, get_vif_state, get_lanforge_data, update_report, def test_wpa_ssid_2g(self, get_vif_state, get_ap_logs, 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 NAT and general and wpa and twog" pytest -m "client_connectivity and NAT and general and wpa and twog"
@@ -127,7 +129,8 @@ class TestNATModeConnectivitySuiteA(object):
@pytest.mark.wpa @pytest.mark.wpa
@pytest.mark.fiveg @pytest.mark.fiveg
@allure.story('wpa 5 GHZ Band') @allure.story('wpa 5 GHZ Band')
def test_wpa_ssid_5g(self, get_vif_state, lf_test, update_report, test_cases, station_names_fiveg, def test_wpa_ssid_5g(self, get_vif_state, get_ap_logs,
lf_test, update_report, test_cases, station_names_fiveg,
get_lanforge_data): get_lanforge_data):
"""Client Connectivity wpa ssid 5G """Client Connectivity wpa ssid 5G
pytest -m "client_connectivity and NAT and general and wpa and fiveg" pytest -m "client_connectivity and NAT and general and wpa and fiveg"
@@ -153,7 +156,8 @@ class TestNATModeConnectivitySuiteA(object):
@pytest.mark.wpa2_personal @pytest.mark.wpa2_personal
@pytest.mark.twog @pytest.mark.twog
@allure.story('wpa2_personal 2.4 GHZ Band') @allure.story('wpa2_personal 2.4 GHZ Band')
def test_wpa2_personal_ssid_2g(self, get_vif_state, get_lanforge_data, lf_test, update_report, test_cases, def test_wpa2_personal_ssid_2g(self, get_vif_state, get_ap_logs,
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 NAT and general and wpa2_personal and twog" pytest -m "client_connectivity and NAT and general and wpa2_personal and twog"
@@ -179,7 +183,8 @@ class TestNATModeConnectivitySuiteA(object):
@pytest.mark.wpa2_personal @pytest.mark.wpa2_personal
@pytest.mark.fiveg @pytest.mark.fiveg
@allure.story('wpa2_personal 5 GHZ Band') @allure.story('wpa2_personal 5 GHZ Band')
def test_wpa2_personal_ssid_5g(self, get_vif_state, get_lanforge_data, update_report, test_cases, def test_wpa2_personal_ssid_5g(self, get_vif_state, get_ap_logs,
get_lanforge_data, update_report, test_cases,
station_names_fiveg, station_names_fiveg,
lf_test): lf_test):
"""Client Connectivity wpa2_personal ssid 5G """Client Connectivity wpa2_personal ssid 5G
@@ -241,7 +246,8 @@ class TestNATModeConnectivitySuiteB(object):
@pytest.mark.wpa3_personal @pytest.mark.wpa3_personal
@pytest.mark.twog @pytest.mark.twog
@allure.story('open 2.4 GHZ Band') @allure.story('open 2.4 GHZ Band')
def test_wpa3_personal_ssid_2g(self, get_vif_state, station_names_twog, setup_profiles, get_lanforge_data, lf_test, def test_wpa3_personal_ssid_2g(self, get_vif_state, get_ap_logs,
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
@@ -267,7 +273,8 @@ class TestNATModeConnectivitySuiteB(object):
@pytest.mark.wpa3_personal @pytest.mark.wpa3_personal
@pytest.mark.fiveg @pytest.mark.fiveg
@allure.story('open 5 GHZ Band') @allure.story('open 5 GHZ Band')
def test_wpa3_personal_ssid_5g(self, get_vif_state, station_names_fiveg, get_lanforge_data, lf_test, test_cases, def test_wpa3_personal_ssid_5g(self, get_vif_state, get_ap_logs,
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 NAT and general and wpa3_personal and fiveg" pytest -m "client_connectivity and NAT and general and wpa3_personal and fiveg"
@@ -292,7 +299,8 @@ class TestNATModeConnectivitySuiteB(object):
@pytest.mark.wpa3_personal_mixed @pytest.mark.wpa3_personal_mixed
@pytest.mark.twog @pytest.mark.twog
@allure.story('open 2.4 GHZ Band') @allure.story('open 2.4 GHZ Band')
def test_wpa3_personal_mixed_ssid_2g(self, get_vif_state, station_names_twog, setup_profiles, get_lanforge_data, def test_wpa3_personal_mixed_ssid_2g(self, get_vif_state, get_ap_logs,
station_names_twog, setup_profiles, get_lanforge_data,
lf_test, lf_test,
update_report, update_report,
test_cases): test_cases):
@@ -319,7 +327,8 @@ class TestNATModeConnectivitySuiteB(object):
@pytest.mark.wpa3_personal_mixed @pytest.mark.wpa3_personal_mixed
@pytest.mark.fiveg @pytest.mark.fiveg
@allure.story('open 5 GHZ Band') @allure.story('open 5 GHZ Band')
def test_wpa3_personal_mixed_ssid_5g(self, get_vif_state, station_names_fiveg, get_lanforge_data, lf_test, def test_wpa3_personal_mixed_ssid_5g(self, get_vif_state, get_ap_logs,
station_names_fiveg, get_lanforge_data, lf_test,
test_cases, test_cases,
update_report): update_report):
"""Client Connectivity open ssid 2.4G """Client Connectivity open ssid 2.4G
@@ -345,7 +354,8 @@ class TestNATModeConnectivitySuiteB(object):
@pytest.mark.wpa_wpa2_personal_mixed @pytest.mark.wpa_wpa2_personal_mixed
@pytest.mark.twog @pytest.mark.twog
@allure.story('wpa wpa2 personal mixed 2.4 GHZ Band') @allure.story('wpa wpa2 personal mixed 2.4 GHZ Band')
def test_wpa_wpa2_personal_ssid_2g(self, get_vif_state, station_names_twog, setup_profiles, get_lanforge_data, def test_wpa_wpa2_personal_ssid_2g(self, get_vif_state, get_ap_logs,
station_names_twog, setup_profiles, get_lanforge_data,
lf_test, lf_test,
update_report, update_report,
test_cases): test_cases):
@@ -373,7 +383,8 @@ class TestNATModeConnectivitySuiteB(object):
@pytest.mark.wpa_wpa2_personal_mixed @pytest.mark.wpa_wpa2_personal_mixed
@pytest.mark.fiveg @pytest.mark.fiveg
@allure.story('wpa wpa2 personal mixed 5 GHZ Band') @allure.story('wpa wpa2 personal mixed 5 GHZ Band')
def test_wpa_wpa2_personal_ssid_5g(self, get_vif_state, station_names_fiveg, get_lanforge_data, lf_test, test_cases, def test_wpa_wpa2_personal_ssid_5g(self, get_vif_state, get_ap_logs,
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 NAT and general and wpa_wpa2_personal_mixed and fiveg" pytest -m "client_connectivity and NAT and general and wpa_wpa2_personal_mixed and fiveg"

View File

@@ -33,7 +33,8 @@ class TestVLANModeEnterpriseTTLSSuiteOne(object):
@pytest.mark.wpa_enterprise @pytest.mark.wpa_enterprise
@pytest.mark.twog @pytest.mark.twog
def test_wpa_enterprise_2g(self, get_vif_state, station_names_twog, setup_profiles, get_lanforge_data, lf_test, def test_wpa_enterprise_2g(self, get_vif_state, get_ap_logs,
station_names_twog, setup_profiles, get_lanforge_data, lf_test,
update_report, 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]
@@ -58,7 +59,8 @@ class TestVLANModeEnterpriseTTLSSuiteOne(object):
@pytest.mark.wpa_enterprise @pytest.mark.wpa_enterprise
@pytest.mark.fiveg @pytest.mark.fiveg
def test_wpa_enterprise_5g(self, get_vif_state, station_names_fiveg, setup_profiles, get_lanforge_data, lf_test, def test_wpa_enterprise_5g(self, get_vif_state, get_ap_logs,
station_names_fiveg, setup_profiles, get_lanforge_data, lf_test,
update_report, 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]
@@ -85,7 +87,8 @@ class TestVLANModeEnterpriseTTLSSuiteOne(object):
@pytest.mark.sanity_light @pytest.mark.sanity_light
@pytest.mark.wpa2_enterprise @pytest.mark.wpa2_enterprise
@pytest.mark.twog @pytest.mark.twog
def test_wpa2_enterprise_2g(self, get_vif_state, station_names_twog, setup_profiles, get_lanforge_data, lf_test, def test_wpa2_enterprise_2g(self, get_vif_state, get_ap_logs,
station_names_twog, setup_profiles, get_lanforge_data, lf_test,
update_report, 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]
@@ -112,7 +115,8 @@ class TestVLANModeEnterpriseTTLSSuiteOne(object):
@pytest.mark.sanity_light @pytest.mark.sanity_light
@pytest.mark.wpa2_enterprise @pytest.mark.wpa2_enterprise
@pytest.mark.fiveg @pytest.mark.fiveg
def test_wpa2_enterprise_5g(self, get_vif_state, station_names_fiveg, setup_profiles, get_lanforge_data, lf_test, def test_wpa2_enterprise_5g(self, get_vif_state, get_ap_logs,
station_names_fiveg, setup_profiles, get_lanforge_data, lf_test,
update_report, 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]
@@ -138,7 +142,8 @@ class TestVLANModeEnterpriseTTLSSuiteOne(object):
@pytest.mark.wpa3_enterprise @pytest.mark.wpa3_enterprise
@pytest.mark.twog @pytest.mark.twog
@pytest.mark.uc_sanity @pytest.mark.uc_sanity
def test_wpa3_enterprise_2g(self, get_vif_state, station_names_twog, setup_profiles, get_lanforge_data, lf_test, def test_wpa3_enterprise_2g(self, get_vif_state, get_ap_logs,
station_names_twog, setup_profiles, get_lanforge_data, lf_test,
update_report, 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]
@@ -163,7 +168,8 @@ class TestVLANModeEnterpriseTTLSSuiteOne(object):
@pytest.mark.wpa3_enterprise @pytest.mark.wpa3_enterprise
@pytest.mark.fiveg @pytest.mark.fiveg
@pytest.mark.uc_sanity @pytest.mark.uc_sanity
def test_wpa3_enterprise_5g(self, get_vif_state, station_names_fiveg, setup_profiles, get_lanforge_data, lf_test, def test_wpa3_enterprise_5g(self, get_vif_state, get_ap_logs,
station_names_fiveg, setup_profiles, get_lanforge_data, lf_test,
update_report, 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]
@@ -213,7 +219,8 @@ 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, get_vif_state, station_names_twog, setup_profiles, get_lanforge_data, lf_test, def test_wpa_wpa2_enterprise_2g(self, get_vif_state, get_ap_logs,
station_names_twog, setup_profiles, get_lanforge_data, lf_test,
update_report, 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]
@@ -238,7 +245,8 @@ 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, get_vif_state, station_names_fiveg, setup_profiles, get_lanforge_data, def test_wpa_wpa2_enterprise_5g(self, get_vif_state, get_ap_logs,
station_names_fiveg, setup_profiles, get_lanforge_data,
lf_test, 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]
@@ -263,7 +271,8 @@ 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, get_vif_state, station_names_twog, setup_profiles, get_lanforge_data, def test_wpa3_enterprise_mixed_2g(self, get_vif_state, get_ap_logs,
station_names_twog, setup_profiles, get_lanforge_data,
lf_test, 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]
@@ -287,7 +296,8 @@ 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, get_vif_state, station_names_fiveg, setup_profiles, get_lanforge_data, def test_wpa3_enterprise_mixed_5g(self, get_vif_state, get_ap_logs,
station_names_fiveg, setup_profiles, get_lanforge_data,
lf_test, lf_test,
update_report, exit_on_fail, update_report, exit_on_fail,
test_cases, radius_info): test_cases, radius_info):

View File

@@ -46,7 +46,8 @@ 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, get_vif_state, setup_profiles, get_lanforge_data, lf_test, update_report, def test_open_ssid_2g(self, get_vif_state, get_ap_logs,
setup_profiles, get_lanforge_data, lf_test, update_report,
station_names_twog, station_names_twog,
test_cases): test_cases):
"""Client Connectivity open ssid 2.4G """Client Connectivity open ssid 2.4G
@@ -71,7 +72,8 @@ 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_vif_state, get_lanforge_data, lf_test, test_cases, station_names_fiveg, def test_open_ssid_5g(self, get_vif_state, get_ap_logs,
get_lanforge_data, lf_test, test_cases, station_names_fiveg,
update_report): 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"
@@ -97,7 +99,8 @@ class TestvlanModeConnectivitySuiteA(object):
@pytest.mark.wpa @pytest.mark.wpa
@pytest.mark.twog @pytest.mark.twog
@allure.story('wpa 2.4 GHZ Band') @allure.story('wpa 2.4 GHZ Band')
def test_wpa_ssid_2g(self, get_vif_state, get_lanforge_data, update_report, def test_wpa_ssid_2g(self, get_vif_state, get_ap_logs,
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"
@@ -123,7 +126,8 @@ class TestvlanModeConnectivitySuiteA(object):
@pytest.mark.wpa @pytest.mark.wpa
@pytest.mark.fiveg @pytest.mark.fiveg
@allure.story('wpa 5 GHZ Band') @allure.story('wpa 5 GHZ Band')
def test_wpa_ssid_5g(self, get_vif_state, lf_test, update_report, test_cases, station_names_fiveg, def test_wpa_ssid_5g(self, get_vif_state, get_ap_logs,
lf_test, update_report, test_cases, station_names_fiveg,
get_lanforge_data): 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"
@@ -149,7 +153,8 @@ class TestvlanModeConnectivitySuiteA(object):
@pytest.mark.wpa2_personal @pytest.mark.wpa2_personal
@pytest.mark.twog @pytest.mark.twog
@allure.story('wpa2_personal 2.4 GHZ Band') @allure.story('wpa2_personal 2.4 GHZ Band')
def test_wpa2_personal_ssid_2g(self, get_vif_state, get_lanforge_data, lf_test, update_report, test_cases, def test_wpa2_personal_ssid_2g(self, get_vif_state, get_ap_logs,
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"
@@ -175,7 +180,8 @@ class TestvlanModeConnectivitySuiteA(object):
@pytest.mark.wpa2_personal @pytest.mark.wpa2_personal
@pytest.mark.fiveg @pytest.mark.fiveg
@allure.story('wpa2_personal 5 GHZ Band') @allure.story('wpa2_personal 5 GHZ Band')
def test_wpa2_personal_ssid_5g(self, get_vif_state, get_lanforge_data, update_report, test_cases, def test_wpa2_personal_ssid_5g(self, get_vif_state, get_ap_logs,
get_lanforge_data, update_report, test_cases,
station_names_fiveg, station_names_fiveg,
lf_test): lf_test):
"""Client Connectivity wpa2_personal ssid 5G """Client Connectivity wpa2_personal ssid 5G
@@ -238,7 +244,8 @@ 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, get_vif_state, station_names_twog, setup_profiles, get_lanforge_data, lf_test, def test_wpa3_personal_ssid_2g(self, get_vif_state, get_ap_logs,
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
@@ -265,7 +272,8 @@ 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, get_vif_state, station_names_fiveg, get_lanforge_data, lf_test, test_cases, def test_wpa3_personal_ssid_5g(self, get_vif_state, get_ap_logs,
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 and fiveg" pytest -m "client_connectivity and vlan and general and wpa3_personal and fiveg"
@@ -290,7 +298,8 @@ 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, get_vif_state, station_names_twog, setup_profiles, get_lanforge_data, def test_wpa3_personal_mixed_ssid_2g(self, get_vif_state, get_ap_logs,
station_names_twog, setup_profiles, get_lanforge_data,
lf_test, lf_test,
update_report, update_report,
test_cases): test_cases):
@@ -317,7 +326,8 @@ 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, get_vif_state, station_names_fiveg, get_lanforge_data, lf_test, def test_wpa3_personal_mixed_ssid_5g(self, get_vif_state, get_ap_logs,
station_names_fiveg, get_lanforge_data, lf_test,
test_cases, test_cases,
update_report): update_report):
"""Client Connectivity open ssid 2.4G """Client Connectivity open ssid 2.4G
@@ -343,7 +353,8 @@ 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, get_vif_state, station_names_twog, setup_profiles, get_lanforge_data, def test_wpa_wpa2_personal_ssid_2g(self, get_vif_state, get_ap_logs,
station_names_twog, setup_profiles, get_lanforge_data,
lf_test, lf_test,
update_report, update_report,
test_cases): test_cases):
@@ -371,7 +382,8 @@ 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, get_vif_state, station_names_fiveg, get_lanforge_data, lf_test, test_cases, def test_wpa_wpa2_personal_ssid_5g(self, get_vif_state, get_ap_logs,
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"

View File

@@ -1,4 +1,7 @@
""" Python Inbuilt Libraries """ """ Python Inbuilt Libraries """
import random
import string
import allure import allure
import pytest import pytest
import sys import sys
@@ -67,11 +70,9 @@ class Fixtures_2x:
get_security_flags, get_configuration, radius_info, get_apnos, radius_accounting_info): get_security_flags, get_configuration, radius_info, get_apnos, radius_accounting_info):
instantiate_profile_obj = instantiate_profile(sdk_client=setup_controller) instantiate_profile_obj = instantiate_profile(sdk_client=setup_controller)
print("garbage")
print(1, instantiate_profile_obj.sdk_client) print(1, instantiate_profile_obj.sdk_client)
vlan_id, mode = 0, 0 vlan_id, mode = 0, 0
parameter = dict(param) parameter = dict(param)
print("hola", parameter)
test_cases = {} test_cases = {}
profile_data = {} profile_data = {}
@@ -240,6 +241,9 @@ class Fixtures_2x:
ap_logs = ap_ssh.logread() ap_logs = ap_ssh.logread()
allure.attach(body=ap_logs, name="FAILURE: AP LOgs: ") allure.attach(body=ap_logs, name="FAILURE: AP LOgs: ")
pytest.fail("AP is disconnected from UC Gateway") pytest.fail("AP is disconnected from UC Gateway")
S = 9
instance_name = ''.join(random.choices(string.ascii_uppercase + string.digits, k=S))
ap_ssh.run_generic_command(cmd="logger start testcase: " + instance_name)
instantiate_profile_obj.push_config(serial_number=get_equipment_id[0]) instantiate_profile_obj.push_config(serial_number=get_equipment_id[0])
time_1 = time.time() time_1 = time.time()
config = json.loads(str(instantiate_profile_obj.base_profile_config).replace(" ", "").replace("'", '"')) config = json.loads(str(instantiate_profile_obj.base_profile_config).replace(" ", "").replace("'", '"'))
@@ -316,11 +320,13 @@ class Fixtures_2x:
# allure.attach(name="tx power: ", body=str(tx_power)) # allure.attach(name="tx power: ", body=str(tx_power))
except: except:
pass pass
ap_logs = ap_ssh.logread() ap_ssh.run_generic_command(cmd="logger stop testcase: " + instance_name)
allure.attach(body=ap_logs, name="AP Logs: ") ap_logs = ap_ssh.get_logread(start_ref="start testcase: " + instance_name,
stop_ref="stop testcase: " + instance_name)
allure.attach(body=ap_logs, name="AP Log: ")
wifi_status = ap_ssh.get_wifi_status()
allure.attach(name="wifi status", body=str(wifi_status))
try: try:
ssid_info_sdk = instantiate_profile_obj.get_ssid_info() ssid_info_sdk = instantiate_profile_obj.get_ssid_info()
ap_wifi_data = ap_ssh.get_iwinfo() ap_wifi_data = ap_ssh.get_iwinfo()
@@ -356,15 +362,8 @@ class Fixtures_2x:
pass pass
def teardown_session(): def teardown_session():
iwinfo = ap_ssh.iwinfo() wifi_status = ap_ssh.get_wifi_status()
allure.attach(name="iwinfo: ", body=str(iwinfo)) allure.attach(name="wifi status", body=str(wifi_status))
# tx_power, name = ap_ssh.gettxpower()
# allure.attach(name="interface name: ", body=str(name))
# allure.attach(name="tx power: ", body=str(tx_power))
ap_logs = ap_ssh.logread()
allure.attach(body=ap_logs, name="AP Logs after test completion")
print("\nTeardown") print("\nTeardown")
request.addfinalizer(teardown_session) request.addfinalizer(teardown_session)