mirror of
https://github.com/Telecominfraproject/wlan-testing.git
synced 2025-11-02 20:07:57 +00:00
fixture rearrangements and test case refactorization
Signed-off-by: shivamcandela <shivam.thakur@candelatech.com>
This commit is contained in:
@@ -35,27 +35,27 @@ Now your cloud sdk code is downloaded with all of the dependencies and you can s
|
|||||||
Alternatively you can use provided dockerfiles to develop\lint your code:
|
Alternatively you can use provided dockerfiles to develop\lint your code:
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
docker build -t wlan-cloud-test -f dockerfile .
|
docker build -t wlan-cloud-test -f Dockerfile .
|
||||||
docker build -t wlan-cloud-lint -f dockerfile-lint .
|
docker build -t wlan-cloud-lint -f Dockerfile-lint .
|
||||||
```
|
```
|
||||||
|
|
||||||
and then you can do something like this to lint your code:
|
and then you can do something like this to lint your code:
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
docker run -it --rm -v %path_to_this_dir%/tests wlan-tip-lint -d protected-access *py # for now
|
docker run -it --rm -v %path_to_this_dir%/old_pytest wlan-tip-lint -d protected-access *py # for now
|
||||||
docker run -it --rm -v %path_to_this_dir%/tests wlan-tip-lint *py # for future
|
docker run -it --rm -v %path_to_this_dir%/old_pytest wlan-tip-lint *py # for future
|
||||||
```
|
```
|
||||||
|
|
||||||
to have a better output (sorted by line numbers) you can do something like this:
|
to have a better output (sorted by line numbers) you can do something like this:
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
docker run -it --rm --entrypoint sh -v %path_to_this_dir%/tests wlan-tip-lint -- -c 'pylint *py | sort -t ":" -k 2,2n'
|
docker run -it --rm --entrypoint sh -v %path_to_this_dir%/old_pytest wlan-tip-lint -- -c 'pylint *py | sort -t ":" -k 2,2n'
|
||||||
```
|
```
|
||||||
|
|
||||||
and you can use something like this to develop your code:
|
and you can use something like this to develop your code:
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
docker run -it -v %path_to_this_dir%/tests wlan-tip-test
|
docker run -it -v %path_to_this_dir%/old_pytest wlan-tip-test
|
||||||
```
|
```
|
||||||
|
|
||||||
### General guidelines
|
### General guidelines
|
||||||
|
|||||||
@@ -61,14 +61,14 @@ class ConfigureCloudSDK:
|
|||||||
|
|
||||||
|
|
||||||
"""
|
"""
|
||||||
Library for cloudsdk_tests generic usages, it instantiate the bearer and credentials.
|
Library for cloud_controller_tests generic usages, it instantiate the bearer and credentials.
|
||||||
It provides the connectivity to the cloud.
|
It provides the connectivity to the cloud.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
|
||||||
class CloudSDK(ConfigureCloudSDK):
|
class CloudSDK(ConfigureCloudSDK):
|
||||||
"""
|
"""
|
||||||
constructor for cloudsdk_tests library : can be used from pytest framework
|
constructor for cloud_controller_tests library : can be used from pytest framework
|
||||||
"""
|
"""
|
||||||
|
|
||||||
def __init__(self, testbed=None, customer_id=None):
|
def __init__(self, testbed=None, customer_id=None):
|
||||||
|
|||||||
@@ -26,6 +26,7 @@ import logging
|
|||||||
from configuration import APNOS_CREDENTIAL_DATA
|
from configuration import APNOS_CREDENTIAL_DATA
|
||||||
from configuration import RADIUS_SERVER_DATA
|
from configuration import RADIUS_SERVER_DATA
|
||||||
from configuration import TEST_CASES
|
from configuration import TEST_CASES
|
||||||
|
from configuration import Controller
|
||||||
from configuration import NOLA
|
from configuration import NOLA
|
||||||
from testrail_api import APIClient
|
from testrail_api import APIClient
|
||||||
from reporting import Reporting
|
from reporting import Reporting
|
||||||
@@ -138,17 +139,23 @@ Instantiate Objects for Test session
|
|||||||
|
|
||||||
|
|
||||||
@pytest.fixture(scope="session")
|
@pytest.fixture(scope="session")
|
||||||
def instantiate_cloudsdk(testrun_session):
|
def instantiate_cloudsdk(request, testrun_session):
|
||||||
try:
|
try:
|
||||||
sdk_client = CloudSDK(testbed=NOLA[testrun_session]["cloudsdk_url"],
|
sdk_client = CloudSDK(testbed=Controller["url"],
|
||||||
customer_id=NOLA[testrun_session]["customer_id"])
|
customer_id=2)
|
||||||
|
|
||||||
|
def teardown_session():
|
||||||
|
print("\nTest session Completed")
|
||||||
|
sdk_client.disconnect_cloudsdk()
|
||||||
|
|
||||||
|
request.addfinalizer(teardown_session)
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
print(e)
|
print(e)
|
||||||
sdk_client = False
|
sdk_client = False
|
||||||
yield sdk_client
|
yield sdk_client
|
||||||
|
|
||||||
|
|
||||||
@pytest.fixture(scope="session")
|
@pytest.fixture(scope="class")
|
||||||
def instantiate_profile(instantiate_cloudsdk):
|
def instantiate_profile(instantiate_cloudsdk):
|
||||||
try:
|
try:
|
||||||
profile_object = ProfileUtility(sdk_client=instantiate_cloudsdk)
|
profile_object = ProfileUtility(sdk_client=instantiate_cloudsdk)
|
||||||
@@ -157,6 +164,61 @@ def instantiate_profile(instantiate_cloudsdk):
|
|||||||
yield profile_object
|
yield profile_object
|
||||||
|
|
||||||
|
|
||||||
|
@pytest.fixture(scope="session")
|
||||||
|
def instantiate_testrail(request):
|
||||||
|
if request.config.getoption("--skip-testrail"):
|
||||||
|
tr_client = Reporting()
|
||||||
|
else:
|
||||||
|
tr_client = APIClient(request.config.getini("tr_url"), request.config.getini("tr_user"),
|
||||||
|
request.config.getini("tr_pass"), request.config.getini("tr_project_id"))
|
||||||
|
yield tr_client
|
||||||
|
|
||||||
|
|
||||||
|
@pytest.fixture(scope="session")
|
||||||
|
def instantiate_firmware(instantiate_cloudsdk, instantiate_jFrog):
|
||||||
|
try:
|
||||||
|
firmware_client = FirmwareUtility(jfrog_credentials=instantiate_jFrog, sdk_client=instantiate_cloudsdk)
|
||||||
|
except:
|
||||||
|
firmware_client = False
|
||||||
|
yield firmware_client
|
||||||
|
|
||||||
|
|
||||||
|
@pytest.fixture(scope="session")
|
||||||
|
def instantiate_jFrog(request):
|
||||||
|
jfrog_cred = {
|
||||||
|
"user": request.config.getini("jfrog-user-id"),
|
||||||
|
"password": request.config.getini("jfrog-user-password")
|
||||||
|
}
|
||||||
|
yield jfrog_cred
|
||||||
|
|
||||||
|
|
||||||
|
@pytest.fixture(scope="session")
|
||||||
|
def instantiate_project(request, instantiate_testrail, testrun_session, get_latest_firmware):
|
||||||
|
if request.config.getoption("--skip-testrail"):
|
||||||
|
rid = "skip testrails"
|
||||||
|
else:
|
||||||
|
projId = instantiate_testrail.get_project_id(project_name=request.config.getini("tr_project_id"))
|
||||||
|
test_run_name = request.config.getini("tr_prefix") + testrun_session + "_" + str(
|
||||||
|
datetime.date.today()) + "_" + get_latest_firmware
|
||||||
|
instantiate_testrail.create_testrun(name=test_run_name, case_ids=list(TEST_CASES.values()), project_id=projId,
|
||||||
|
milestone_id=request.config.getini("milestone"),
|
||||||
|
description="Automated Nightly Sanity test run for new firmware build")
|
||||||
|
rid = instantiate_testrail.get_run_id(
|
||||||
|
test_run_name=request.config.getini("tr_prefix") + testrun_session + "_" + str(
|
||||||
|
datetime.date.today()) + "_" + get_latest_firmware)
|
||||||
|
yield rid
|
||||||
|
|
||||||
|
|
||||||
|
@pytest.fixture(scope="session")
|
||||||
|
def setup_lanforge(request):
|
||||||
|
yield True
|
||||||
|
|
||||||
|
|
||||||
|
@pytest.fixture(scope="session")
|
||||||
|
def setup_perfecto_devices(request):
|
||||||
|
yield True
|
||||||
|
|
||||||
|
|
||||||
@pytest.fixture(scope="session")
|
@pytest.fixture(scope="session")
|
||||||
def setup_profile_data(testrun_session):
|
def setup_profile_data(testrun_session):
|
||||||
profile_data = {}
|
profile_data = {}
|
||||||
@@ -216,9 +278,39 @@ def get_equipment_id(testrun_session):
|
|||||||
|
|
||||||
|
|
||||||
@pytest.fixture(scope="class")
|
@pytest.fixture(scope="class")
|
||||||
def setup_profiles(create_profiles, instantiate_profile, get_equipment_id):
|
def get_current_profile_cloud(instantiate_profile):
|
||||||
|
ssid_names = []
|
||||||
|
print(instantiate_profile.profile_creation_ids["ssid"])
|
||||||
|
for i in instantiate_profile.profile_creation_ids["ssid"]:
|
||||||
|
ssid_names.append(instantiate_profile.get_ssid_name_by_profile_id(profile_id=i))
|
||||||
|
yield ssid_names
|
||||||
|
|
||||||
|
|
||||||
|
@pytest.fixture(scope="class")
|
||||||
|
def setup_profiles(create_profiles, instantiate_profile, get_equipment_id, get_current_profile_cloud):
|
||||||
instantiate_profile.push_profile_old_method(equipment_id=get_equipment_id)
|
instantiate_profile.push_profile_old_method(equipment_id=get_equipment_id)
|
||||||
print(create_profiles)
|
print(create_profiles)
|
||||||
|
ap_ssh = APNOS(APNOS_CREDENTIAL_DATA)
|
||||||
|
get_current_profile_cloud.sort()
|
||||||
|
for i in range(0, 18):
|
||||||
|
vif_config = list(ap_ssh.get_vif_config_ssids())
|
||||||
|
vif_config.sort()
|
||||||
|
print(vif_config)
|
||||||
|
print(get_current_profile_cloud)
|
||||||
|
if get_current_profile_cloud == vif_config:
|
||||||
|
break
|
||||||
|
time.sleep(10)
|
||||||
|
ap_ssh = APNOS(APNOS_CREDENTIAL_DATA)
|
||||||
|
for i in range(0, 18):
|
||||||
|
vif_state = list(ap_ssh.get_vif_state_ssids())
|
||||||
|
vif_state.sort()
|
||||||
|
vif_config = list(ap_ssh.get_vif_config_ssids())
|
||||||
|
vif_config.sort()
|
||||||
|
print(vif_config)
|
||||||
|
print(vif_state)
|
||||||
|
if vif_state == vif_config:
|
||||||
|
break
|
||||||
|
time.sleep(10)
|
||||||
yield "set(markers)"
|
yield "set(markers)"
|
||||||
|
|
||||||
|
|
||||||
@@ -226,7 +318,12 @@ def setup_profiles(create_profiles, instantiate_profile, get_equipment_id):
|
|||||||
def create_profiles(request, get_security_flags, get_markers, instantiate_profile, setup_profile_data):
|
def create_profiles(request, get_security_flags, get_markers, instantiate_profile, setup_profile_data):
|
||||||
profile_id = {"ssid": [], "rf": None, "radius": None, "equipment_ap": None}
|
profile_id = {"ssid": [], "rf": None, "radius": None, "equipment_ap": None}
|
||||||
mode = str(request._parent_request.param)
|
mode = str(request._parent_request.param)
|
||||||
instantiate_profile.cleanup_profiles()
|
instantiate_profile.delete_profile_by_name(profile_name="Equipment-AP-" + mode)
|
||||||
|
for i in setup_profile_data[mode]:
|
||||||
|
for j in setup_profile_data[mode][i]:
|
||||||
|
instantiate_profile.delete_profile_by_name(
|
||||||
|
profile_name=setup_profile_data[mode][i][j]['profile_name'])
|
||||||
|
instantiate_profile.delete_profile_by_name(profile_name="Automation-Radius-Profile-" + mode)
|
||||||
instantiate_profile.get_default_profiles()
|
instantiate_profile.get_default_profiles()
|
||||||
# if get_markers["wifi5"]:
|
# if get_markers["wifi5"]:
|
||||||
# # Create Radius Profile
|
# # Create Radius Profile
|
||||||
@@ -239,7 +336,7 @@ def create_profiles(request, get_security_flags, get_markers, instantiate_profil
|
|||||||
instantiate_profile.set_rf_profile()
|
instantiate_profile.set_rf_profile()
|
||||||
if get_markers["radius"]:
|
if get_markers["radius"]:
|
||||||
radius_info = RADIUS_SERVER_DATA
|
radius_info = RADIUS_SERVER_DATA
|
||||||
radius_info["name"] = "Automation-Radius-Profile"
|
radius_info["name"] = "Automation-Radius-Profile-" + mode
|
||||||
instantiate_profile.create_radius_profile(radius_info=radius_info)
|
instantiate_profile.create_radius_profile(radius_info=radius_info)
|
||||||
for i in get_security_flags:
|
for i in get_security_flags:
|
||||||
if get_markers[i] and i == "open":
|
if get_markers[i] and i == "open":
|
||||||
@@ -289,3 +386,46 @@ def create_profiles(request, get_security_flags, get_markers, instantiate_profil
|
|||||||
}
|
}
|
||||||
instantiate_profile.set_ap_profile(profile_data=profile_data)
|
instantiate_profile.set_ap_profile(profile_data=profile_data)
|
||||||
yield profile_id
|
yield profile_id
|
||||||
|
|
||||||
|
|
||||||
|
@pytest.fixture(scope="function")
|
||||||
|
def get_lanforge_data(request):
|
||||||
|
lanforge_data = {
|
||||||
|
"lanforge_ip": request.config.getini("lanforge-ip-address"),
|
||||||
|
"lanforge-port-number": request.config.getini("lanforge-port-number"),
|
||||||
|
"lanforge_2dot4g": request.config.getini("lanforge-2dot4g-radio"),
|
||||||
|
"lanforge_5g": request.config.getini("lanforge-5g-radio"),
|
||||||
|
"lanforge_2dot4g_prefix": request.config.getini("lanforge-2dot4g-prefix"),
|
||||||
|
"lanforge_5g_prefix": request.config.getini("lanforge-5g-prefix"),
|
||||||
|
"lanforge_2dot4g_station": request.config.getini("lanforge-2dot4g-station"),
|
||||||
|
"lanforge_5g_station": request.config.getini("lanforge-5g-station"),
|
||||||
|
"lanforge_bridge_port": request.config.getini("lanforge-bridge-port"),
|
||||||
|
"lanforge_vlan_port": "eth1.100",
|
||||||
|
"vlan": 100
|
||||||
|
}
|
||||||
|
yield lanforge_data
|
||||||
|
|
||||||
|
|
||||||
|
@pytest.fixture(scope="session")
|
||||||
|
def get_latest_firmware(testrun_session, instantiate_firmware):
|
||||||
|
try:
|
||||||
|
latest_firmware = instantiate_firmware.get_latest_fw_version(testrun_session)
|
||||||
|
except:
|
||||||
|
latest_firmware = False
|
||||||
|
yield latest_firmware
|
||||||
|
|
||||||
|
|
||||||
|
@pytest.fixture(scope="function")
|
||||||
|
def update_ssid(request, instantiate_profile, setup_profile_data):
|
||||||
|
requested_profile = str(request.param).replace(" ", "").split(",")
|
||||||
|
profile = setup_profile_data[requested_profile[0]][requested_profile[1]][requested_profile[2]]
|
||||||
|
status = instantiate_profile.update_ssid_name(profile_name=profile["profile_name"],
|
||||||
|
new_profile_name=requested_profile[3])
|
||||||
|
setup_profile_data[requested_profile[0]][requested_profile[1]][requested_profile[2]]["profile_name"] = \
|
||||||
|
requested_profile[3]
|
||||||
|
setup_profile_data[requested_profile[0]][requested_profile[1]][requested_profile[2]]["ssid_name"] = \
|
||||||
|
requested_profile[3]
|
||||||
|
time.sleep(90)
|
||||||
|
yield status
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -0,0 +1 @@
|
|||||||
|
|
||||||
|
|||||||
@@ -1,11 +0,0 @@
|
|||||||
FROM python:alpine3.12
|
|
||||||
WORKDIR /tests
|
|
||||||
COPY . /tests
|
|
||||||
|
|
||||||
RUN mkdir ~/.pip \
|
|
||||||
&& echo "[global]" > ~/.pip/pip.conf \
|
|
||||||
&& echo "index-url = https://pypi.org/simple" >> ~/.pip/pip.conf \
|
|
||||||
&& echo "extra-index-url = https://tip-read:tip-read@tip.jfrog.io/artifactory/api/pypi/tip-wlan-python-pypi-local/simple" >> ~/.pip/pip.conf
|
|
||||||
RUN pip3 install -r requirements.txt
|
|
||||||
|
|
||||||
ENTRYPOINT [ "/bin/sh" ]
|
|
||||||
@@ -1,3 +0,0 @@
|
|||||||
FROM wlan-tip-tests
|
|
||||||
RUN pip3 install pylint
|
|
||||||
ENTRYPOINT [ "pylint" ]
|
|
||||||
0
tests/e2e/advanced/ap_co-existence/__init__.py
Normal file
0
tests/e2e/advanced/ap_co-existence/__init__.py
Normal file
0
tests/e2e/advanced/maximum_connection/__init__.py
Normal file
0
tests/e2e/advanced/maximum_connection/__init__.py
Normal file
0
tests/e2e/advanced/rate_vs_range/__init__.py
Normal file
0
tests/e2e/advanced/rate_vs_range/__init__.py
Normal file
0
tests/e2e/advanced/receiver_sensitivity/__init__.py
Normal file
0
tests/e2e/advanced/receiver_sensitivity/__init__.py
Normal file
0
tests/e2e/advanced/spatial_consistency/__init__.py
Normal file
0
tests/e2e/advanced/spatial_consistency/__init__.py
Normal file
@@ -25,7 +25,7 @@ import time
|
|||||||
|
|
||||||
|
|
||||||
@pytest.mark.sanity
|
@pytest.mark.sanity
|
||||||
@pytest.mark.bridges
|
@pytest.mark.bridge
|
||||||
@pytest.mark.parametrize(
|
@pytest.mark.parametrize(
|
||||||
'setup_profiles',
|
'setup_profiles',
|
||||||
(["BRIDGE"]),
|
(["BRIDGE"]),
|
||||||
@@ -36,335 +36,333 @@ class TestBridgeModeClientConnectivity(object):
|
|||||||
|
|
||||||
@pytest.mark.wpa
|
@pytest.mark.wpa
|
||||||
@pytest.mark.twog
|
@pytest.mark.twog
|
||||||
def test_everything(self):
|
def test_client_wpa_2g(self, request, get_lanforge_data, setup_profile_data, instantiate_testrail,
|
||||||
assert True
|
instantiate_project):
|
||||||
# @pytest.mark.wpa
|
profile_data = setup_profile_data["BRIDGE"]["WPA"]["2G"]
|
||||||
# @pytest.mark.twog
|
station_names = []
|
||||||
# def test_client_wpa_2g(self, request, get_lanforge_data, setup_profile_data, instantiate_testrail,
|
for i in range(0, int(request.config.getini("num_stations"))):
|
||||||
# instantiate_project):
|
station_names.append(get_lanforge_data["lanforge_2dot4g_prefix"] + "0" + str(i))
|
||||||
# profile_data = setup_profile_data["BRIDGE"]["WPA"]["2G"]
|
print(profile_data, get_lanforge_data)
|
||||||
# station_names = []
|
staConnect = StaConnect2(get_lanforge_data["lanforge_ip"], int(get_lanforge_data["lanforge-port-number"]),
|
||||||
# for i in range(0, int(request.config.getini("num_stations"))):
|
debug_=False)
|
||||||
# station_names.append(get_lanforge_data["lanforge_2dot4g_prefix"] + "0" + str(i))
|
staConnect.sta_mode = 0
|
||||||
# print(profile_data, get_lanforge_data)
|
staConnect.upstream_resource = 1
|
||||||
# staConnect = StaConnect2(get_lanforge_data["lanforge_ip"], int(get_lanforge_data["lanforge-port-number"]),
|
staConnect.upstream_port = get_lanforge_data["lanforge_bridge_port"]
|
||||||
# debug_=False)
|
staConnect.radio = get_lanforge_data["lanforge_2dot4g"]
|
||||||
# staConnect.sta_mode = 0
|
staConnect.resource = 1
|
||||||
# staConnect.upstream_resource = 1
|
staConnect.dut_ssid = profile_data["ssid_name"]
|
||||||
# staConnect.upstream_port = get_lanforge_data["lanforge_bridge_port"]
|
staConnect.dut_passwd = profile_data["security_key"]
|
||||||
# staConnect.radio = get_lanforge_data["lanforge_2dot4g"]
|
staConnect.dut_security = "wpa"
|
||||||
# staConnect.resource = 1
|
staConnect.station_names = station_names
|
||||||
# staConnect.dut_ssid = profile_data["ssid_name"]
|
staConnect.sta_prefix = get_lanforge_data["lanforge_2dot4g_prefix"]
|
||||||
# staConnect.dut_passwd = profile_data["security_key"]
|
staConnect.runtime_secs = 10
|
||||||
# staConnect.dut_security = "wpa"
|
staConnect.bringup_time_sec = 60
|
||||||
# staConnect.station_names = station_names
|
staConnect.cleanup_on_exit = True
|
||||||
# staConnect.sta_prefix = get_lanforge_data["lanforge_2dot4g_prefix"]
|
# staConnect.cleanup()
|
||||||
# staConnect.runtime_secs = 10
|
staConnect.setup()
|
||||||
# staConnect.bringup_time_sec = 60
|
staConnect.start()
|
||||||
# staConnect.cleanup_on_exit = True
|
print("napping %f sec" % staConnect.runtime_secs)
|
||||||
# # staConnect.cleanup()
|
time.sleep(staConnect.runtime_secs)
|
||||||
# staConnect.setup()
|
staConnect.stop()
|
||||||
# staConnect.start()
|
staConnect.cleanup()
|
||||||
# print("napping %f sec" % staConnect.runtime_secs)
|
run_results = staConnect.get_result_list()
|
||||||
# time.sleep(staConnect.runtime_secs)
|
for result in run_results:
|
||||||
# staConnect.stop()
|
print("test result: " + result)
|
||||||
# staConnect.cleanup()
|
# result = 'pass'
|
||||||
# run_results = staConnect.get_result_list()
|
print("Single Client Connectivity :", staConnect.passes)
|
||||||
# for result in run_results:
|
if staConnect.passes():
|
||||||
# print("test result: " + result)
|
instantiate_testrail.update_testrail(case_id=TEST_CASES["2g_wpa_bridge"], run_id=instantiate_project,
|
||||||
# # result = 'pass'
|
status_id=1,
|
||||||
# print("Single Client Connectivity :", staConnect.passes)
|
msg='2G WPA Client Connectivity Passed successfully - bridge mode')
|
||||||
# if staConnect.passes():
|
else:
|
||||||
# instantiate_testrail.update_testrail(case_id=TEST_CASES["2g_wpa_bridge"], run_id=instantiate_project,
|
instantiate_testrail.update_testrail(case_id=TEST_CASES["2g_wpa_bridge"], run_id=instantiate_project,
|
||||||
# status_id=1,
|
status_id=5,
|
||||||
# msg='2G WPA Client Connectivity Passed successfully - bridge mode')
|
msg='2G WPA Client Connectivity Failed - bridge mode')
|
||||||
# else:
|
assert staConnect.passes()
|
||||||
# instantiate_testrail.update_testrail(case_id=TEST_CASES["2g_wpa_bridge"], run_id=instantiate_project,
|
# C2420
|
||||||
# status_id=5,
|
|
||||||
# msg='2G WPA Client Connectivity Failed - bridge mode')
|
@pytest.mark.wpa
|
||||||
# assert staConnect.passes()
|
@pytest.mark.fiveg
|
||||||
# # C2420
|
def test_client_wpa_5g(self, request, get_lanforge_data, setup_profile_data, instantiate_project,
|
||||||
#
|
instantiate_testrail):
|
||||||
# @pytest.mark.wpa
|
profile_data = setup_profile_data["BRIDGE"]["WPA"]["5G"]
|
||||||
# @pytest.mark.fiveg
|
station_names = []
|
||||||
# def test_client_wpa_5g(self, request, get_lanforge_data, setup_profile_data, instantiate_project,
|
for i in range(0, int(request.config.getini("num_stations"))):
|
||||||
# instantiate_testrail):
|
station_names.append(get_lanforge_data["lanforge_5g_prefix"] + "0" + str(i))
|
||||||
# profile_data = setup_profile_data["BRIDGE"]["WPA"]["5G"]
|
staConnect = StaConnect2(get_lanforge_data["lanforge_ip"], int(get_lanforge_data["lanforge-port-number"]),
|
||||||
# station_names = []
|
debug_=False)
|
||||||
# for i in range(0, int(request.config.getini("num_stations"))):
|
staConnect.sta_mode = 0
|
||||||
# station_names.append(get_lanforge_data["lanforge_5g_prefix"] + "0" + str(i))
|
staConnect.upstream_resource = 1
|
||||||
# staConnect = StaConnect2(get_lanforge_data["lanforge_ip"], int(get_lanforge_data["lanforge-port-number"]),
|
staConnect.upstream_port = get_lanforge_data["lanforge_bridge_port"]
|
||||||
# debug_=False)
|
staConnect.radio = get_lanforge_data["lanforge_5g"]
|
||||||
# staConnect.sta_mode = 0
|
staConnect.resource = 1
|
||||||
# staConnect.upstream_resource = 1
|
staConnect.dut_ssid = profile_data["ssid_name"]
|
||||||
# staConnect.upstream_port = get_lanforge_data["lanforge_bridge_port"]
|
staConnect.dut_passwd = profile_data["security_key"]
|
||||||
# staConnect.radio = get_lanforge_data["lanforge_5g"]
|
staConnect.dut_security = "wpa"
|
||||||
# staConnect.resource = 1
|
staConnect.station_names = station_names
|
||||||
# staConnect.dut_ssid = profile_data["ssid_name"]
|
staConnect.sta_prefix = get_lanforge_data["lanforge_5g_prefix"]
|
||||||
# staConnect.dut_passwd = profile_data["security_key"]
|
staConnect.runtime_secs = 10
|
||||||
# staConnect.dut_security = "wpa"
|
staConnect.bringup_time_sec = 60
|
||||||
# staConnect.station_names = station_names
|
staConnect.cleanup_on_exit = True
|
||||||
# staConnect.sta_prefix = get_lanforge_data["lanforge_5g_prefix"]
|
# staConnect.cleanup()
|
||||||
# staConnect.runtime_secs = 10
|
staConnect.setup()
|
||||||
# staConnect.bringup_time_sec = 60
|
staConnect.start()
|
||||||
# staConnect.cleanup_on_exit = True
|
print("napping %f sec" % staConnect.runtime_secs)
|
||||||
# # staConnect.cleanup()
|
time.sleep(staConnect.runtime_secs)
|
||||||
# staConnect.setup()
|
staConnect.stop()
|
||||||
# staConnect.start()
|
staConnect.cleanup()
|
||||||
# print("napping %f sec" % staConnect.runtime_secs)
|
run_results = staConnect.get_result_list()
|
||||||
# time.sleep(staConnect.runtime_secs)
|
for result in run_results:
|
||||||
# staConnect.stop()
|
print("test result: " + result)
|
||||||
# staConnect.cleanup()
|
# result = 'pass'
|
||||||
# run_results = staConnect.get_result_list()
|
print("Single Client Connectivity :", staConnect.passes)
|
||||||
# for result in run_results:
|
if staConnect.passes():
|
||||||
# print("test result: " + result)
|
instantiate_testrail.update_testrail(case_id=TEST_CASES["5g_wpa_bridge"], run_id=instantiate_project,
|
||||||
# # result = 'pass'
|
status_id=1,
|
||||||
# print("Single Client Connectivity :", staConnect.passes)
|
msg='5G WPA Client Connectivity Passed successfully - bridge mode')
|
||||||
# if staConnect.passes():
|
else:
|
||||||
# instantiate_testrail.update_testrail(case_id=TEST_CASES["5g_wpa_bridge"], run_id=instantiate_project,
|
instantiate_testrail.update_testrail(case_id=TEST_CASES["5g_wpa_bridge"], run_id=instantiate_project,
|
||||||
# status_id=1,
|
status_id=5,
|
||||||
# msg='5G WPA Client Connectivity Passed successfully - bridge mode')
|
msg='5G WPA Client Connectivity Failed - bridge mode')
|
||||||
# else:
|
assert staConnect.passes()
|
||||||
# instantiate_testrail.update_testrail(case_id=TEST_CASES["5g_wpa_bridge"], run_id=instantiate_project,
|
# C2419
|
||||||
# status_id=5,
|
|
||||||
# msg='5G WPA Client Connectivity Failed - bridge mode')
|
@pytest.mark.wpa2_personal
|
||||||
# assert staConnect.passes()
|
@pytest.mark.twog
|
||||||
# # C2419
|
def test_client_wpa2_personal_2g(self, request, get_lanforge_data, setup_profile_data, instantiate_project,
|
||||||
#
|
instantiate_testrail):
|
||||||
# @pytest.mark.wpa2_personal
|
profile_data = setup_profile_data["BRIDGE"]["WPA2_P"]["2G"]
|
||||||
# @pytest.mark.twog
|
station_names = []
|
||||||
# def test_client_wpa2_personal_2g(self, request, get_lanforge_data, setup_profile_data, instantiate_project,
|
for i in range(0, int(request.config.getini("num_stations"))):
|
||||||
# instantiate_testrail):
|
station_names.append(get_lanforge_data["lanforge_2dot4g_prefix"] + "0" + str(i))
|
||||||
# profile_data = setup_profile_data["BRIDGE"]["WPA2_P"]["2G"]
|
staConnect = StaConnect2(get_lanforge_data["lanforge_ip"], int(get_lanforge_data["lanforge-port-number"]),
|
||||||
# station_names = []
|
debug_=False)
|
||||||
# for i in range(0, int(request.config.getini("num_stations"))):
|
staConnect.sta_mode = 0
|
||||||
# station_names.append(get_lanforge_data["lanforge_2dot4g_prefix"] + "0" + str(i))
|
staConnect.upstream_resource = 1
|
||||||
# staConnect = StaConnect2(get_lanforge_data["lanforge_ip"], int(get_lanforge_data["lanforge-port-number"]),
|
staConnect.upstream_port = get_lanforge_data["lanforge_bridge_port"]
|
||||||
# debug_=False)
|
staConnect.radio = get_lanforge_data["lanforge_2dot4g"]
|
||||||
# staConnect.sta_mode = 0
|
staConnect.resource = 1
|
||||||
# staConnect.upstream_resource = 1
|
staConnect.dut_ssid = profile_data["ssid_name"]
|
||||||
# staConnect.upstream_port = get_lanforge_data["lanforge_bridge_port"]
|
staConnect.dut_passwd = profile_data["security_key"]
|
||||||
# staConnect.radio = get_lanforge_data["lanforge_2dot4g"]
|
staConnect.dut_security = "wpa2"
|
||||||
# staConnect.resource = 1
|
staConnect.station_names = station_names
|
||||||
# staConnect.dut_ssid = profile_data["ssid_name"]
|
staConnect.sta_prefix = get_lanforge_data["lanforge_2dot4g_prefix"]
|
||||||
# staConnect.dut_passwd = profile_data["security_key"]
|
staConnect.runtime_secs = 10
|
||||||
# staConnect.dut_security = "wpa2"
|
staConnect.bringup_time_sec = 60
|
||||||
# staConnect.station_names = station_names
|
staConnect.cleanup_on_exit = True
|
||||||
# staConnect.sta_prefix = get_lanforge_data["lanforge_2dot4g_prefix"]
|
# staConnect.cleanup()
|
||||||
# staConnect.runtime_secs = 10
|
staConnect.setup()
|
||||||
# staConnect.bringup_time_sec = 60
|
staConnect.start()
|
||||||
# staConnect.cleanup_on_exit = True
|
print("napping %f sec" % staConnect.runtime_secs)
|
||||||
# # staConnect.cleanup()
|
time.sleep(staConnect.runtime_secs)
|
||||||
# staConnect.setup()
|
staConnect.stop()
|
||||||
# staConnect.start()
|
staConnect.cleanup()
|
||||||
# print("napping %f sec" % staConnect.runtime_secs)
|
run_results = staConnect.get_result_list()
|
||||||
# time.sleep(staConnect.runtime_secs)
|
for result in run_results:
|
||||||
# staConnect.stop()
|
print("test result: " + result)
|
||||||
# staConnect.cleanup()
|
# result = 'pass'
|
||||||
# run_results = staConnect.get_result_list()
|
print("Single Client Connectivity :", staConnect.passes)
|
||||||
# for result in run_results:
|
if staConnect.passes():
|
||||||
# print("test result: " + result)
|
instantiate_testrail.update_testrail(case_id=TEST_CASES["2g_wpa2_bridge"], run_id=instantiate_project,
|
||||||
# # result = 'pass'
|
status_id=1,
|
||||||
# print("Single Client Connectivity :", staConnect.passes)
|
msg='2G WPA2 Client Connectivity Passed successfully - bridge mode')
|
||||||
# if staConnect.passes():
|
else:
|
||||||
# instantiate_testrail.update_testrail(case_id=TEST_CASES["2g_wpa2_bridge"], run_id=instantiate_project,
|
instantiate_testrail.update_testrail(case_id=TEST_CASES["2g_wpa2_bridge"], run_id=instantiate_project,
|
||||||
# status_id=1,
|
status_id=5,
|
||||||
# msg='2G WPA2 Client Connectivity Passed successfully - bridge mode')
|
msg='2G WPA2 Client Connectivity Failed - bridge mode')
|
||||||
# else:
|
assert staConnect.passes()
|
||||||
# instantiate_testrail.update_testrail(case_id=TEST_CASES["2g_wpa2_bridge"], run_id=instantiate_project,
|
# C2237
|
||||||
# status_id=5,
|
|
||||||
# msg='2G WPA2 Client Connectivity Failed - bridge mode')
|
@pytest.mark.wpa2_personal
|
||||||
# assert staConnect.passes()
|
@pytest.mark.fiveg
|
||||||
# # C2237
|
def test_client_wpa2_personal_5g(self, request, get_lanforge_data, setup_profile_data, instantiate_project,
|
||||||
#
|
instantiate_testrail):
|
||||||
# @pytest.mark.wpa2_personal
|
profile_data = setup_profile_data["BRIDGE"]["WPA2_P"]["5G"]
|
||||||
# @pytest.mark.fiveg
|
station_names = []
|
||||||
# def test_client_wpa2_personal_5g(self, request, get_lanforge_data, setup_profile_data, instantiate_project,
|
for i in range(0, int(request.config.getini("num_stations"))):
|
||||||
# instantiate_testrail):
|
station_names.append(get_lanforge_data["lanforge_5g_prefix"] + "0" + str(i))
|
||||||
# profile_data = setup_profile_data["BRIDGE"]["WPA2_P"]["5G"]
|
staConnect = StaConnect2(get_lanforge_data["lanforge_ip"], int(get_lanforge_data["lanforge-port-number"]),
|
||||||
# station_names = []
|
debug_=False)
|
||||||
# for i in range(0, int(request.config.getini("num_stations"))):
|
staConnect.sta_mode = 0
|
||||||
# station_names.append(get_lanforge_data["lanforge_5g_prefix"] + "0" + str(i))
|
staConnect.upstream_resource = 1
|
||||||
# staConnect = StaConnect2(get_lanforge_data["lanforge_ip"], int(get_lanforge_data["lanforge-port-number"]),
|
staConnect.upstream_port = get_lanforge_data["lanforge_bridge_port"]
|
||||||
# debug_=False)
|
staConnect.radio = get_lanforge_data["lanforge_5g"]
|
||||||
# staConnect.sta_mode = 0
|
staConnect.resource = 1
|
||||||
# staConnect.upstream_resource = 1
|
staConnect.dut_ssid = profile_data["ssid_name"]
|
||||||
# staConnect.upstream_port = get_lanforge_data["lanforge_bridge_port"]
|
staConnect.dut_passwd = profile_data["security_key"]
|
||||||
# staConnect.radio = get_lanforge_data["lanforge_5g"]
|
staConnect.dut_security = "wpa2"
|
||||||
# staConnect.resource = 1
|
staConnect.station_names = station_names
|
||||||
# staConnect.dut_ssid = profile_data["ssid_name"]
|
staConnect.sta_prefix = get_lanforge_data["lanforge_5g_prefix"]
|
||||||
# staConnect.dut_passwd = profile_data["security_key"]
|
staConnect.runtime_secs = 10
|
||||||
# staConnect.dut_security = "wpa2"
|
staConnect.bringup_time_sec = 60
|
||||||
# staConnect.station_names = station_names
|
staConnect.cleanup_on_exit = True
|
||||||
# staConnect.sta_prefix = get_lanforge_data["lanforge_5g_prefix"]
|
# staConnect.cleanup()
|
||||||
# staConnect.runtime_secs = 10
|
staConnect.setup()
|
||||||
# staConnect.bringup_time_sec = 60
|
staConnect.start()
|
||||||
# staConnect.cleanup_on_exit = True
|
print("napping %f sec" % staConnect.runtime_secs)
|
||||||
# # staConnect.cleanup()
|
time.sleep(staConnect.runtime_secs)
|
||||||
# staConnect.setup()
|
staConnect.stop()
|
||||||
# staConnect.start()
|
staConnect.cleanup()
|
||||||
# print("napping %f sec" % staConnect.runtime_secs)
|
run_results = staConnect.get_result_list()
|
||||||
# time.sleep(staConnect.runtime_secs)
|
for result in run_results:
|
||||||
# staConnect.stop()
|
print("test result: " + result)
|
||||||
# staConnect.cleanup()
|
# result = 'pass'
|
||||||
# run_results = staConnect.get_result_list()
|
print("Single Client Connectivity :", staConnect.passes)
|
||||||
# for result in run_results:
|
if staConnect.passes():
|
||||||
# print("test result: " + result)
|
instantiate_testrail.update_testrail(case_id=TEST_CASES["5g_wpa2_bridge"], run_id=instantiate_project,
|
||||||
# # result = 'pass'
|
status_id=1,
|
||||||
# print("Single Client Connectivity :", staConnect.passes)
|
msg='5G WPA2 Client Connectivity Passed successfully - bridge mode')
|
||||||
# if staConnect.passes():
|
else:
|
||||||
# instantiate_testrail.update_testrail(case_id=TEST_CASES["5g_wpa2_bridge"], run_id=instantiate_project,
|
instantiate_testrail.update_testrail(case_id=TEST_CASES["5g_wpa2_bridge"], run_id=instantiate_project,
|
||||||
# status_id=1,
|
status_id=5,
|
||||||
# msg='5G WPA2 Client Connectivity Passed successfully - bridge mode')
|
msg='5G WPA2 Client Connectivity Failed - bridge mode')
|
||||||
# else:
|
assert staConnect.passes()
|
||||||
# instantiate_testrail.update_testrail(case_id=TEST_CASES["5g_wpa2_bridge"], run_id=instantiate_project,
|
# C2236
|
||||||
# status_id=5,
|
|
||||||
# msg='5G WPA2 Client Connectivity Failed - bridge mode')
|
@pytest.mark.wpa2_enterprise
|
||||||
# assert staConnect.passes()
|
@pytest.mark.twog
|
||||||
# # C2236
|
@pytest.mark.radius
|
||||||
#
|
def test_client_wpa2_enterprise_2g(self, request, get_lanforge_data, setup_profile_data, instantiate_project,
|
||||||
# @pytest.mark.wpa2_enterprise
|
instantiate_testrail):
|
||||||
# @pytest.mark.twog
|
profile_data = setup_profile_data["BRIDGE"]["WPA2_E"]["2G"]
|
||||||
# def test_client_wpa2_enterprise_2g(self, request, get_lanforge_data, setup_profile_data, instantiate_project,
|
station_names = []
|
||||||
# instantiate_testrail):
|
for i in range(0, int(request.config.getini("num_stations"))):
|
||||||
# profile_data = setup_profile_data["BRIDGE"]["WPA2_E"]["2G"]
|
station_names.append(get_lanforge_data["lanforge_2dot4g_prefix"] + "0" + str(i))
|
||||||
# station_names = []
|
eap_connect = EAPConnect(get_lanforge_data["lanforge_ip"], get_lanforge_data["lanforge-port-number"])
|
||||||
# for i in range(0, int(request.config.getini("num_stations"))):
|
eap_connect.upstream_resource = 1
|
||||||
# station_names.append(get_lanforge_data["lanforge_2dot4g_prefix"] + "0" + str(i))
|
eap_connect.upstream_port = get_lanforge_data["lanforge_bridge_port"]
|
||||||
# eap_connect = EAPConnect(get_lanforge_data["lanforge_ip"], get_lanforge_data["lanforge-port-number"])
|
eap_connect.security = "wpa2"
|
||||||
# eap_connect.upstream_resource = 1
|
eap_connect.sta_list = station_names
|
||||||
# eap_connect.upstream_port = get_lanforge_data["lanforge_bridge_port"]
|
eap_connect.station_names = station_names
|
||||||
# eap_connect.security = "wpa2"
|
eap_connect.sta_prefix = get_lanforge_data["lanforge_2dot4g_prefix"]
|
||||||
# eap_connect.sta_list = station_names
|
eap_connect.ssid = profile_data["ssid_name"]
|
||||||
# eap_connect.station_names = station_names
|
eap_connect.radio = get_lanforge_data["lanforge_2dot4g"]
|
||||||
# eap_connect.sta_prefix = get_lanforge_data["lanforge_2dot4g_prefix"]
|
eap_connect.eap = "TTLS"
|
||||||
# eap_connect.ssid = profile_data["ssid_name"]
|
eap_connect.identity = "nolaradius"
|
||||||
# eap_connect.radio = get_lanforge_data["lanforge_2dot4g"]
|
eap_connect.ttls_passwd = "nolastart"
|
||||||
# eap_connect.eap = "TTLS"
|
eap_connect.runtime_secs = 10
|
||||||
# eap_connect.identity = "nolaradius"
|
eap_connect.setup()
|
||||||
# eap_connect.ttls_passwd = "nolastart"
|
eap_connect.start()
|
||||||
# eap_connect.runtime_secs = 10
|
print("napping %f sec" % eap_connect.runtime_secs)
|
||||||
# eap_connect.setup()
|
time.sleep(eap_connect.runtime_secs)
|
||||||
# eap_connect.start()
|
eap_connect.stop()
|
||||||
# print("napping %f sec" % eap_connect.runtime_secs)
|
try:
|
||||||
# time.sleep(eap_connect.runtime_secs)
|
eap_connect.cleanup()
|
||||||
# eap_connect.stop()
|
eap_connect.cleanup()
|
||||||
# try:
|
except:
|
||||||
# eap_connect.cleanup()
|
pass
|
||||||
# eap_connect.cleanup()
|
run_results = eap_connect.get_result_list()
|
||||||
# except:
|
for result in run_results:
|
||||||
# pass
|
print("test result: " + result)
|
||||||
# run_results = eap_connect.get_result_list()
|
# result = 'pass'
|
||||||
# for result in run_results:
|
print("Single Client Connectivity :", eap_connect.passes)
|
||||||
# print("test result: " + result)
|
if eap_connect.passes():
|
||||||
# # result = 'pass'
|
instantiate_testrail.update_testrail(case_id=TEST_CASES["2g_eap_bridge"], run_id=instantiate_project,
|
||||||
# print("Single Client Connectivity :", eap_connect.passes)
|
status_id=1,
|
||||||
# if eap_connect.passes():
|
msg='5G WPA2 ENTERPRISE Client Connectivity Passed successfully - '
|
||||||
# instantiate_testrail.update_testrail(case_id=TEST_CASES["2g_eap_bridge"], run_id=instantiate_project,
|
'bridge mode')
|
||||||
# status_id=1,
|
else:
|
||||||
# msg='5G WPA2 ENTERPRISE Client Connectivity Passed successfully - '
|
instantiate_testrail.update_testrail(case_id=TEST_CASES["2g_eap_bridge"], run_id=instantiate_project,
|
||||||
# 'bridge mode')
|
status_id=5,
|
||||||
# else:
|
msg='5G WPA2 ENTERPRISE Client Connectivity Failed - bridge mode')
|
||||||
# instantiate_testrail.update_testrail(case_id=TEST_CASES["2g_eap_bridge"], run_id=instantiate_project,
|
assert eap_connect.passes()
|
||||||
# status_id=5,
|
# C5214
|
||||||
# msg='5G WPA2 ENTERPRISE Client Connectivity Failed - bridge mode')
|
|
||||||
# assert eap_connect.passes()
|
@pytest.mark.wpa2_enterprise
|
||||||
# # C5214
|
@pytest.mark.fiveg
|
||||||
#
|
@pytest.mark.radius
|
||||||
# @pytest.mark.wpa2_enterprise
|
def test_client_wpa2_enterprise_5g(self, request, get_lanforge_data, setup_profile_data, instantiate_project,
|
||||||
# @pytest.mark.fiveg
|
instantiate_testrail):
|
||||||
# def test_client_wpa2_enterprise_5g(self, request, get_lanforge_data, setup_profile_data, instantiate_project,
|
profile_data = setup_profile_data["BRIDGE"]["WPA2_E"]["5G"]
|
||||||
# instantiate_testrail):
|
station_names = []
|
||||||
# profile_data = setup_profile_data["BRIDGE"]["WPA2_E"]["5G"]
|
for i in range(0, int(request.config.getini("num_stations"))):
|
||||||
# station_names = []
|
station_names.append(get_lanforge_data["lanforge_5g_prefix"] + "0" + str(i))
|
||||||
# for i in range(0, int(request.config.getini("num_stations"))):
|
eap_connect = EAPConnect(get_lanforge_data["lanforge_ip"], get_lanforge_data["lanforge-port-number"])
|
||||||
# station_names.append(get_lanforge_data["lanforge_5g_prefix"] + "0" + str(i))
|
eap_connect.upstream_resource = 1
|
||||||
# eap_connect = EAPConnect(get_lanforge_data["lanforge_ip"], get_lanforge_data["lanforge-port-number"])
|
eap_connect.upstream_port = get_lanforge_data["lanforge_bridge_port"]
|
||||||
# eap_connect.upstream_resource = 1
|
eap_connect.security = "wpa2"
|
||||||
# eap_connect.upstream_port = get_lanforge_data["lanforge_bridge_port"]
|
eap_connect.sta_list = station_names
|
||||||
# eap_connect.security = "wpa2"
|
eap_connect.station_names = station_names
|
||||||
# eap_connect.sta_list = station_names
|
eap_connect.sta_prefix = get_lanforge_data["lanforge_5g_prefix"]
|
||||||
# eap_connect.station_names = station_names
|
eap_connect.ssid = profile_data["ssid_name"]
|
||||||
# eap_connect.sta_prefix = get_lanforge_data["lanforge_5g_prefix"]
|
eap_connect.radio = get_lanforge_data["lanforge_5g"]
|
||||||
# eap_connect.ssid = profile_data["ssid_name"]
|
eap_connect.eap = "TTLS"
|
||||||
# eap_connect.radio = get_lanforge_data["lanforge_5g"]
|
eap_connect.identity = "nolaradius"
|
||||||
# eap_connect.eap = "TTLS"
|
eap_connect.ttls_passwd = "nolastart"
|
||||||
# eap_connect.identity = "nolaradius"
|
eap_connect.runtime_secs = 10
|
||||||
# eap_connect.ttls_passwd = "nolastart"
|
eap_connect.setup()
|
||||||
# eap_connect.runtime_secs = 10
|
eap_connect.start()
|
||||||
# eap_connect.setup()
|
print("napping %f sec" % eap_connect.runtime_secs)
|
||||||
# eap_connect.start()
|
time.sleep(eap_connect.runtime_secs)
|
||||||
# print("napping %f sec" % eap_connect.runtime_secs)
|
eap_connect.stop()
|
||||||
# time.sleep(eap_connect.runtime_secs)
|
try:
|
||||||
# eap_connect.stop()
|
eap_connect.cleanup()
|
||||||
# try:
|
eap_connect.cleanup()
|
||||||
# eap_connect.cleanup()
|
except:
|
||||||
# eap_connect.cleanup()
|
pass
|
||||||
# except:
|
run_results = eap_connect.get_result_list()
|
||||||
# pass
|
for result in run_results:
|
||||||
# run_results = eap_connect.get_result_list()
|
print("test result: " + result)
|
||||||
# for result in run_results:
|
# result = 'pass'
|
||||||
# print("test result: " + result)
|
print("Single Client Connectivity :", eap_connect.passes)
|
||||||
# # result = 'pass'
|
if eap_connect.passes():
|
||||||
# print("Single Client Connectivity :", eap_connect.passes)
|
instantiate_testrail.update_testrail(case_id=TEST_CASES["5g_eap_bridge"], run_id=instantiate_project,
|
||||||
# if eap_connect.passes():
|
status_id=1,
|
||||||
# instantiate_testrail.update_testrail(case_id=TEST_CASES["5g_eap_bridge"], run_id=instantiate_project,
|
msg='5G WPA2 ENTERPRISE Client Connectivity Passed successfully - '
|
||||||
# status_id=1,
|
'bridge mode')
|
||||||
# msg='5G WPA2 ENTERPRISE Client Connectivity Passed successfully - '
|
else:
|
||||||
# 'bridge mode')
|
instantiate_testrail.update_testrail(case_id=TEST_CASES["5g_eap_bridge"], run_id=instantiate_project,
|
||||||
# else:
|
status_id=5,
|
||||||
# instantiate_testrail.update_testrail(case_id=TEST_CASES["5g_eap_bridge"], run_id=instantiate_project,
|
msg='5G WPA2 ENTERPRISE Client Connectivity Failed - bridge mode')
|
||||||
# status_id=5,
|
assert eap_connect.passes()
|
||||||
# msg='5G WPA2 ENTERPRISE Client Connectivity Failed - bridge mode')
|
|
||||||
# assert eap_connect.passes()
|
@pytest.mark.modify_ssid
|
||||||
#
|
@pytest.mark.parametrize(
|
||||||
# @pytest.mark.modify_ssid
|
'update_ssid',
|
||||||
# @pytest.mark.parametrize(
|
(["BRIDGE, WPA, 5G, Sanity-updated-5G-WPA-BRIDGE"]),
|
||||||
# 'update_ssid',
|
indirect=True
|
||||||
# (["BRIDGE, WPA, 5G, Sanity-updated-5G-WPA-BRIDGE"]),
|
)
|
||||||
# indirect=True
|
def test_modify_ssid(self, request, update_ssid, get_lanforge_data, setup_profile_data, instantiate_testrail,
|
||||||
# )
|
instantiate_project):
|
||||||
# def test_modify_ssid(self, request, update_ssid, get_lanforge_data, setup_profile_data, instantiate_testrail,
|
profile_data = setup_profile_data["BRIDGE"]["WPA"]["5G"]
|
||||||
# instantiate_project):
|
station_names = []
|
||||||
# profile_data = setup_profile_data["BRIDGE"]["WPA"]["5G"]
|
for i in range(0, int(request.config.getini("num_stations"))):
|
||||||
# station_names = []
|
station_names.append(get_lanforge_data["lanforge_5g_prefix"] + "0" + str(i))
|
||||||
# for i in range(0, int(request.config.getini("num_stations"))):
|
staConnect = StaConnect2(get_lanforge_data["lanforge_ip"], int(get_lanforge_data["lanforge-port-number"]),
|
||||||
# station_names.append(get_lanforge_data["lanforge_5g_prefix"] + "0" + str(i))
|
debug_=False)
|
||||||
# staConnect = StaConnect2(get_lanforge_data["lanforge_ip"], int(get_lanforge_data["lanforge-port-number"]),
|
staConnect.sta_mode = 0
|
||||||
# debug_=False)
|
staConnect.upstream_resource = 1
|
||||||
# staConnect.sta_mode = 0
|
staConnect.upstream_port = get_lanforge_data["lanforge_bridge_port"]
|
||||||
# staConnect.upstream_resource = 1
|
staConnect.radio = get_lanforge_data["lanforge_5g"]
|
||||||
# staConnect.upstream_port = get_lanforge_data["lanforge_bridge_port"]
|
staConnect.resource = 1
|
||||||
# staConnect.radio = get_lanforge_data["lanforge_5g"]
|
staConnect.dut_ssid = profile_data["ssid_name"]
|
||||||
# staConnect.resource = 1
|
staConnect.dut_passwd = profile_data["security_key"]
|
||||||
# staConnect.dut_ssid = profile_data["ssid_name"]
|
staConnect.dut_security = "wpa"
|
||||||
# staConnect.dut_passwd = profile_data["security_key"]
|
staConnect.station_names = station_names
|
||||||
# staConnect.dut_security = "wpa"
|
staConnect.sta_prefix = get_lanforge_data["lanforge_5g_prefix"]
|
||||||
# staConnect.station_names = station_names
|
staConnect.runtime_secs = 10
|
||||||
# staConnect.sta_prefix = get_lanforge_data["lanforge_5g_prefix"]
|
staConnect.bringup_time_sec = 60
|
||||||
# staConnect.runtime_secs = 10
|
staConnect.cleanup_on_exit = True
|
||||||
# staConnect.bringup_time_sec = 60
|
# staConnect.cleanup()
|
||||||
# staConnect.cleanup_on_exit = True
|
staConnect.setup()
|
||||||
# # staConnect.cleanup()
|
staConnect.start()
|
||||||
# staConnect.setup()
|
print("napping %f sec" % staConnect.runtime_secs)
|
||||||
# staConnect.start()
|
time.sleep(staConnect.runtime_secs)
|
||||||
# print("napping %f sec" % staConnect.runtime_secs)
|
staConnect.stop()
|
||||||
# time.sleep(staConnect.runtime_secs)
|
staConnect.cleanup()
|
||||||
# staConnect.stop()
|
run_results = staConnect.get_result_list()
|
||||||
# staConnect.cleanup()
|
for result in run_results:
|
||||||
# run_results = staConnect.get_result_list()
|
print("test result: " + result)
|
||||||
# for result in run_results:
|
# result = 'pass'
|
||||||
# print("test result: " + result)
|
print("Single Client Connectivity :", staConnect.passes)
|
||||||
# # result = 'pass'
|
if staConnect.passes():
|
||||||
# print("Single Client Connectivity :", staConnect.passes)
|
instantiate_testrail.update_testrail(case_id=TEST_CASES["bridge_ssid_update"], run_id=instantiate_project,
|
||||||
# if staConnect.passes():
|
status_id=1,
|
||||||
# instantiate_testrail.update_testrail(case_id=TEST_CASES["bridge_ssid_update"], run_id=instantiate_project,
|
msg='5G WPA Client Connectivity Passed successfully - bridge mode '
|
||||||
# status_id=1,
|
'updated ssid')
|
||||||
# msg='5G WPA Client Connectivity Passed successfully - bridge mode '
|
else:
|
||||||
# 'updated ssid')
|
instantiate_testrail.update_testrail(case_id=TEST_CASES["bridge_ssid_update"], run_id=instantiate_project,
|
||||||
# else:
|
status_id=5,
|
||||||
# instantiate_testrail.update_testrail(case_id=TEST_CASES["bridge_ssid_update"], run_id=instantiate_project,
|
msg='5G WPA Client Connectivity Failed - bridge mode updated ssid')
|
||||||
# status_id=5,
|
assert staConnect.passes()
|
||||||
# msg='5G WPA Client Connectivity Failed - bridge mode updated ssid')
|
|
||||||
# assert staConnect.passes()
|
|
||||||
#
|
|
||||||
|
|||||||
@@ -220,6 +220,7 @@ class TestNatModeClientConnectivity(object):
|
|||||||
|
|
||||||
@pytest.mark.wpa2_enterprise
|
@pytest.mark.wpa2_enterprise
|
||||||
@pytest.mark.twog
|
@pytest.mark.twog
|
||||||
|
@pytest.mark.radius
|
||||||
def test_client_wpa2_enterprise_2g(self, request, get_lanforge_data, setup_profile_data, instantiate_project,
|
def test_client_wpa2_enterprise_2g(self, request, get_lanforge_data, setup_profile_data, instantiate_project,
|
||||||
instantiate_testrail):
|
instantiate_testrail):
|
||||||
profile_data = setup_profile_data["NAT"]["WPA2_E"]["2G"]
|
profile_data = setup_profile_data["NAT"]["WPA2_E"]["2G"]
|
||||||
@@ -268,6 +269,7 @@ class TestNatModeClientConnectivity(object):
|
|||||||
|
|
||||||
@pytest.mark.wpa2_enterprise
|
@pytest.mark.wpa2_enterprise
|
||||||
@pytest.mark.fiveg
|
@pytest.mark.fiveg
|
||||||
|
@pytest.mark.radius
|
||||||
def test_client_wpa2_enterprise_5g(self, request, get_lanforge_data, setup_profile_data, instantiate_project,
|
def test_client_wpa2_enterprise_5g(self, request, get_lanforge_data, setup_profile_data, instantiate_project,
|
||||||
instantiate_testrail):
|
instantiate_testrail):
|
||||||
profile_data = setup_profile_data["NAT"]["WPA2_E"]["5G"]
|
profile_data = setup_profile_data["NAT"]["WPA2_E"]["5G"]
|
||||||
|
|||||||
@@ -215,6 +215,7 @@ class TestVlanModeClientConnectivity(object):
|
|||||||
|
|
||||||
@pytest.mark.wpa2_enterprise
|
@pytest.mark.wpa2_enterprise
|
||||||
@pytest.mark.twog
|
@pytest.mark.twog
|
||||||
|
@pytest.mark.radius
|
||||||
def test_client_wpa2_enterprise_2g(self, request, get_lanforge_data, setup_profile_data, instantiate_project, instantiate_testrail):
|
def test_client_wpa2_enterprise_2g(self, request, get_lanforge_data, setup_profile_data, instantiate_project, instantiate_testrail):
|
||||||
profile_data = setup_profile_data["VLAN"]["WPA2_E"]["2G"]
|
profile_data = setup_profile_data["VLAN"]["WPA2_E"]["2G"]
|
||||||
station_names = []
|
station_names = []
|
||||||
@@ -262,6 +263,7 @@ class TestVlanModeClientConnectivity(object):
|
|||||||
|
|
||||||
@pytest.mark.wpa2_enterprise
|
@pytest.mark.wpa2_enterprise
|
||||||
@pytest.mark.fiveg
|
@pytest.mark.fiveg
|
||||||
|
@pytest.mark.radius
|
||||||
def test_client_wpa2_enterprise_5g(self, request, get_lanforge_data, setup_profile_data, instantiate_project, instantiate_testrail):
|
def test_client_wpa2_enterprise_5g(self, request, get_lanforge_data, setup_profile_data, instantiate_project, instantiate_testrail):
|
||||||
profile_data = setup_profile_data["VLAN"]["WPA2_E"]["5G"]
|
profile_data = setup_profile_data["VLAN"]["WPA2_E"]["5G"]
|
||||||
station_names = []
|
station_names = []
|
||||||
|
|||||||
0
tests/e2e/interOp/client_connectivity/__init__.py
Normal file
0
tests/e2e/interOp/client_connectivity/__init__.py
Normal file
@@ -1,8 +1,9 @@
|
|||||||
import pytest
|
import pytest
|
||||||
|
|
||||||
|
|
||||||
@pytest.mark.order(1)
|
@pytest.mark.sanity
|
||||||
class TestConnection:
|
class TestConnection:
|
||||||
|
|
||||||
@pytest.mark.test_cloud_connectivity
|
@pytest.mark.test_cloud_connectivity
|
||||||
def test_cloud_connectivity(self, instantiate_cloudsdk):
|
def test_cloud_connectivity(self, instantiate_cloudsdk):
|
||||||
assert instantiate_cloudsdk
|
assert instantiate_cloudsdk
|
||||||
@@ -12,9 +13,9 @@ class TestConnection:
|
|||||||
assert instantiate_cloudsdk
|
assert instantiate_cloudsdk
|
||||||
|
|
||||||
@pytest.mark.test_lanforge_connectivity
|
@pytest.mark.test_lanforge_connectivity
|
||||||
def test_lanforge_connectivity(self):
|
def test_lanforge_connectivity(self, setup_lanforge):
|
||||||
assert "instantiate_cloudsdk"
|
assert "instantiate_cloudsdk"
|
||||||
|
|
||||||
@pytest.mark.test_perfecto_connectivity
|
@pytest.mark.test_perfecto_connectivity
|
||||||
def test_perfecto_connectivity(self):
|
def test_perfecto_connectivity(self, setup_perfecto_devices):
|
||||||
assert "instantiate_cloudsdk"
|
assert "instantiate_cloudsdk"
|
||||||
|
|||||||
@@ -1,322 +1,322 @@
|
|||||||
import pytest
|
# import pytest
|
||||||
|
#
|
||||||
|
#
|
||||||
@pytest.mark.sanity
|
# @pytest.mark.sanity
|
||||||
@pytest.mark.bridge
|
# @pytest.mark.bridge
|
||||||
class TestSetupBridge:
|
# class TestSetupBridge:
|
||||||
|
#
|
||||||
@pytest.mark.fiveg
|
# @pytest.mark.fiveg
|
||||||
@pytest.mark.radius
|
# @pytest.mark.radius
|
||||||
@pytest.mark.twog
|
# @pytest.mark.twog
|
||||||
@pytest.mark.wpa2_enterprise
|
# @pytest.mark.wpa2_enterprise
|
||||||
@pytest.mark.wpa2_personal
|
# @pytest.mark.wpa2_personal
|
||||||
@pytest.mark.wpa
|
# @pytest.mark.wpa
|
||||||
@pytest.mark.open
|
# @pytest.mark.open
|
||||||
def test_setup_rf_profile(self, cleanup_profile):
|
# def test_setup_rf_profile(self, cleanup_profile):
|
||||||
assert True
|
# assert True
|
||||||
|
#
|
||||||
@pytest.mark.fiveg
|
# @pytest.mark.fiveg
|
||||||
@pytest.mark.radius
|
# @pytest.mark.radius
|
||||||
@pytest.mark.twog
|
# @pytest.mark.twog
|
||||||
@pytest.mark.wpa2_enterprise
|
# @pytest.mark.wpa2_enterprise
|
||||||
@pytest.mark.wpa2_personal
|
# @pytest.mark.wpa2_personal
|
||||||
@pytest.mark.wpa
|
# @pytest.mark.wpa
|
||||||
@pytest.mark.open
|
# @pytest.mark.open
|
||||||
def test_setup_radius_profile(self, cleanup_profile):
|
# def test_setup_radius_profile(self, cleanup_profile):
|
||||||
assert True
|
# assert True
|
||||||
|
#
|
||||||
@pytest.mark.open
|
# @pytest.mark.open
|
||||||
@pytest.mark.twog
|
# @pytest.mark.twog
|
||||||
def test_setup_open_2g_ssid_profile(self, cleanup_profile):
|
# def test_setup_open_2g_ssid_profile(self, cleanup_profile):
|
||||||
assert True
|
# assert True
|
||||||
|
#
|
||||||
@pytest.mark.open
|
# @pytest.mark.open
|
||||||
@pytest.mark.fiveg
|
# @pytest.mark.fiveg
|
||||||
def test_setup_open_5g_ssid_profile(self, cleanup_profile):
|
# def test_setup_open_5g_ssid_profile(self, cleanup_profile):
|
||||||
assert True
|
# assert True
|
||||||
|
#
|
||||||
@pytest.mark.wpa
|
# @pytest.mark.wpa
|
||||||
@pytest.mark.twog
|
# @pytest.mark.twog
|
||||||
def test_setup_wpa_2g_ssid_profile(self, cleanup_profile):
|
# def test_setup_wpa_2g_ssid_profile(self, cleanup_profile):
|
||||||
assert True
|
# assert True
|
||||||
|
#
|
||||||
@pytest.mark.wpa
|
# @pytest.mark.wpa
|
||||||
@pytest.mark.fiveg
|
# @pytest.mark.fiveg
|
||||||
def test_setup_wpa_5g_ssid_profile(self, cleanup_profile):
|
# def test_setup_wpa_5g_ssid_profile(self, cleanup_profile):
|
||||||
assert True
|
# assert True
|
||||||
|
#
|
||||||
@pytest.mark.wpa2_personal
|
# @pytest.mark.wpa2_personal
|
||||||
@pytest.mark.twog
|
# @pytest.mark.twog
|
||||||
def test_setup_wpa2_personal_2g_ssid_profile(self, cleanup_profile):
|
# def test_setup_wpa2_personal_2g_ssid_profile(self, cleanup_profile):
|
||||||
assert True
|
# assert True
|
||||||
|
#
|
||||||
@pytest.mark.wpa2_personal
|
# @pytest.mark.wpa2_personal
|
||||||
@pytest.mark.fiveg
|
# @pytest.mark.fiveg
|
||||||
def test_setup_wpa2_personal_5g_ssid_profile(self, cleanup_profile):
|
# def test_setup_wpa2_personal_5g_ssid_profile(self, cleanup_profile):
|
||||||
assert True
|
# assert True
|
||||||
|
#
|
||||||
@pytest.mark.wpa2_enterprise
|
# @pytest.mark.wpa2_enterprise
|
||||||
@pytest.mark.twog
|
# @pytest.mark.twog
|
||||||
@pytest.mark.radius
|
# @pytest.mark.radius
|
||||||
def test_setup_wpa2_enterprise_2g_ssid_profile(self, cleanup_profile):
|
# def test_setup_wpa2_enterprise_2g_ssid_profile(self, cleanup_profile):
|
||||||
assert True
|
# assert True
|
||||||
|
#
|
||||||
@pytest.mark.wpa2_enterprise
|
# @pytest.mark.wpa2_enterprise
|
||||||
@pytest.mark.fiveg
|
# @pytest.mark.fiveg
|
||||||
@pytest.mark.radius
|
# @pytest.mark.radius
|
||||||
def test_setup_wpa2_enterprise_5g_ssid_profile(self, cleanup_profile):
|
# def test_setup_wpa2_enterprise_5g_ssid_profile(self, cleanup_profile):
|
||||||
assert True
|
# assert True
|
||||||
|
#
|
||||||
@pytest.mark.fiveg
|
# @pytest.mark.fiveg
|
||||||
@pytest.mark.radius
|
# @pytest.mark.radius
|
||||||
@pytest.mark.twog
|
# @pytest.mark.twog
|
||||||
@pytest.mark.wpa2_enterprise
|
# @pytest.mark.wpa2_enterprise
|
||||||
@pytest.mark.wpa2_personal
|
# @pytest.mark.wpa2_personal
|
||||||
@pytest.mark.wpa
|
# @pytest.mark.wpa
|
||||||
@pytest.mark.open
|
# @pytest.mark.open
|
||||||
def test_setup_equipment_ap_profile(self):
|
# def test_setup_equipment_ap_profile(self):
|
||||||
assert True
|
# assert True
|
||||||
|
#
|
||||||
@pytest.mark.fiveg
|
# @pytest.mark.fiveg
|
||||||
@pytest.mark.radius
|
# @pytest.mark.radius
|
||||||
@pytest.mark.twog
|
# @pytest.mark.twog
|
||||||
@pytest.mark.wpa2_enterprise
|
# @pytest.mark.wpa2_enterprise
|
||||||
@pytest.mark.wpa2_personal
|
# @pytest.mark.wpa2_personal
|
||||||
@pytest.mark.wpa
|
# @pytest.mark.wpa
|
||||||
@pytest.mark.open
|
# @pytest.mark.open
|
||||||
def test_push_profile(self):
|
# def test_push_profile(self):
|
||||||
assert True
|
# assert True
|
||||||
|
#
|
||||||
@pytest.mark.fiveg
|
# @pytest.mark.fiveg
|
||||||
@pytest.mark.radius
|
# @pytest.mark.radius
|
||||||
@pytest.mark.twog
|
# @pytest.mark.twog
|
||||||
@pytest.mark.wpa2_enterprise
|
# @pytest.mark.wpa2_enterprise
|
||||||
@pytest.mark.wpa2_personal
|
# @pytest.mark.wpa2_personal
|
||||||
@pytest.mark.wpa
|
# @pytest.mark.wpa
|
||||||
@pytest.mark.open
|
# @pytest.mark.open
|
||||||
def test_verify_vif_config(self):
|
# def test_verify_vif_config(self):
|
||||||
assert True
|
# assert True
|
||||||
|
#
|
||||||
@pytest.mark.fiveg
|
# @pytest.mark.fiveg
|
||||||
@pytest.mark.radius
|
# @pytest.mark.radius
|
||||||
@pytest.mark.twog
|
# @pytest.mark.twog
|
||||||
@pytest.mark.wpa2_enterprise
|
# @pytest.mark.wpa2_enterprise
|
||||||
@pytest.mark.wpa2_personal
|
# @pytest.mark.wpa2_personal
|
||||||
@pytest.mark.wpa
|
# @pytest.mark.wpa
|
||||||
@pytest.mark.open
|
# @pytest.mark.open
|
||||||
def test_verify_vif_state(self):
|
# def test_verify_vif_state(self):
|
||||||
assert True
|
# assert True
|
||||||
|
#
|
||||||
|
#
|
||||||
@pytest.mark.sanity
|
# @pytest.mark.sanity
|
||||||
@pytest.mark.nat
|
# @pytest.mark.nat
|
||||||
class TestSetupNAT:
|
# class TestSetupNAT:
|
||||||
|
#
|
||||||
@pytest.mark.fiveg
|
# @pytest.mark.fiveg
|
||||||
@pytest.mark.radius
|
# @pytest.mark.radius
|
||||||
@pytest.mark.twog
|
# @pytest.mark.twog
|
||||||
@pytest.mark.wpa2_enterprise
|
# @pytest.mark.wpa2_enterprise
|
||||||
@pytest.mark.wpa2_personal
|
# @pytest.mark.wpa2_personal
|
||||||
@pytest.mark.wpa
|
# @pytest.mark.wpa
|
||||||
@pytest.mark.open
|
# @pytest.mark.open
|
||||||
def test_setup_rf_profile(self, cleanup_profile):
|
# def test_setup_rf_profile(self, cleanup_profile):
|
||||||
assert True
|
# assert True
|
||||||
|
#
|
||||||
@pytest.mark.fiveg
|
# @pytest.mark.fiveg
|
||||||
@pytest.mark.radius
|
# @pytest.mark.radius
|
||||||
@pytest.mark.twog
|
# @pytest.mark.twog
|
||||||
@pytest.mark.wpa2_enterprise
|
# @pytest.mark.wpa2_enterprise
|
||||||
@pytest.mark.wpa2_personal
|
# @pytest.mark.wpa2_personal
|
||||||
@pytest.mark.wpa
|
# @pytest.mark.wpa
|
||||||
@pytest.mark.open
|
# @pytest.mark.open
|
||||||
def test_setup_radius_profile(self, cleanup_profile):
|
# def test_setup_radius_profile(self, cleanup_profile):
|
||||||
assert True
|
# assert True
|
||||||
|
#
|
||||||
@pytest.mark.open
|
# @pytest.mark.open
|
||||||
@pytest.mark.twog
|
# @pytest.mark.twog
|
||||||
def test_setup_open_2g_ssid_profile(self, cleanup_profile):
|
# def test_setup_open_2g_ssid_profile(self, cleanup_profile):
|
||||||
assert True
|
# assert True
|
||||||
|
#
|
||||||
@pytest.mark.open
|
# @pytest.mark.open
|
||||||
@pytest.mark.fiveg
|
# @pytest.mark.fiveg
|
||||||
def test_setup_open_5g_ssid_profile(self, cleanup_profile):
|
# def test_setup_open_5g_ssid_profile(self, cleanup_profile):
|
||||||
assert True
|
# assert True
|
||||||
|
#
|
||||||
@pytest.mark.wpa
|
# @pytest.mark.wpa
|
||||||
@pytest.mark.twog
|
# @pytest.mark.twog
|
||||||
def test_setup_wpa_2g_ssid_profile(self, cleanup_profile):
|
# def test_setup_wpa_2g_ssid_profile(self, cleanup_profile):
|
||||||
assert True
|
# assert True
|
||||||
|
#
|
||||||
@pytest.mark.wpa
|
# @pytest.mark.wpa
|
||||||
@pytest.mark.fiveg
|
# @pytest.mark.fiveg
|
||||||
def test_setup_wpa_5g_ssid_profile(self, cleanup_profile):
|
# def test_setup_wpa_5g_ssid_profile(self, cleanup_profile):
|
||||||
assert True
|
# assert True
|
||||||
|
#
|
||||||
@pytest.mark.wpa2_personal
|
# @pytest.mark.wpa2_personal
|
||||||
@pytest.mark.twog
|
# @pytest.mark.twog
|
||||||
def test_setup_wpa2_personal_2g_ssid_profile(self, cleanup_profile):
|
# def test_setup_wpa2_personal_2g_ssid_profile(self, cleanup_profile):
|
||||||
assert True
|
# assert True
|
||||||
|
#
|
||||||
@pytest.mark.wpa2_personal
|
# @pytest.mark.wpa2_personal
|
||||||
@pytest.mark.fiveg
|
# @pytest.mark.fiveg
|
||||||
def test_setup_wpa2_personal_5g_ssid_profile(self, cleanup_profile):
|
# def test_setup_wpa2_personal_5g_ssid_profile(self, cleanup_profile):
|
||||||
assert True
|
# assert True
|
||||||
|
#
|
||||||
@pytest.mark.wpa2_enterprise
|
# @pytest.mark.wpa2_enterprise
|
||||||
@pytest.mark.twog
|
# @pytest.mark.twog
|
||||||
@pytest.mark.radius
|
# @pytest.mark.radius
|
||||||
def test_setup_wpa2_enterprise_2g_ssid_profile(self, cleanup_profile):
|
# def test_setup_wpa2_enterprise_2g_ssid_profile(self, cleanup_profile):
|
||||||
assert True
|
# assert True
|
||||||
|
#
|
||||||
@pytest.mark.wpa2_enterprise
|
# @pytest.mark.wpa2_enterprise
|
||||||
@pytest.mark.fiveg
|
# @pytest.mark.fiveg
|
||||||
@pytest.mark.radius
|
# @pytest.mark.radius
|
||||||
def test_setup_wpa2_enterprise_5g_ssid_profile(self, cleanup_profile):
|
# def test_setup_wpa2_enterprise_5g_ssid_profile(self, cleanup_profile):
|
||||||
assert True
|
# assert True
|
||||||
|
#
|
||||||
@pytest.mark.fiveg
|
# @pytest.mark.fiveg
|
||||||
@pytest.mark.radius
|
# @pytest.mark.radius
|
||||||
@pytest.mark.twog
|
# @pytest.mark.twog
|
||||||
@pytest.mark.wpa2_enterprise
|
# @pytest.mark.wpa2_enterprise
|
||||||
@pytest.mark.wpa2_personal
|
# @pytest.mark.wpa2_personal
|
||||||
@pytest.mark.wpa
|
# @pytest.mark.wpa
|
||||||
@pytest.mark.open
|
# @pytest.mark.open
|
||||||
def test_setup_equipment_ap_profile(self):
|
# def test_setup_equipment_ap_profile(self):
|
||||||
assert True
|
# assert True
|
||||||
|
#
|
||||||
@pytest.mark.fiveg
|
# @pytest.mark.fiveg
|
||||||
@pytest.mark.radius
|
# @pytest.mark.radius
|
||||||
@pytest.mark.twog
|
# @pytest.mark.twog
|
||||||
@pytest.mark.wpa2_enterprise
|
# @pytest.mark.wpa2_enterprise
|
||||||
@pytest.mark.wpa2_personal
|
# @pytest.mark.wpa2_personal
|
||||||
@pytest.mark.wpa
|
# @pytest.mark.wpa
|
||||||
@pytest.mark.open
|
# @pytest.mark.open
|
||||||
def test_push_profile(self):
|
# def test_push_profile(self):
|
||||||
assert True
|
# assert True
|
||||||
|
#
|
||||||
@pytest.mark.fiveg
|
# @pytest.mark.fiveg
|
||||||
@pytest.mark.radius
|
# @pytest.mark.radius
|
||||||
@pytest.mark.twog
|
# @pytest.mark.twog
|
||||||
@pytest.mark.wpa2_enterprise
|
# @pytest.mark.wpa2_enterprise
|
||||||
@pytest.mark.wpa2_personal
|
# @pytest.mark.wpa2_personal
|
||||||
@pytest.mark.wpa
|
# @pytest.mark.wpa
|
||||||
@pytest.mark.open
|
# @pytest.mark.open
|
||||||
def test_verify_vif_config(self):
|
# def test_verify_vif_config(self):
|
||||||
assert True
|
# assert True
|
||||||
|
#
|
||||||
@pytest.mark.fiveg
|
# @pytest.mark.fiveg
|
||||||
@pytest.mark.radius
|
# @pytest.mark.radius
|
||||||
@pytest.mark.twog
|
# @pytest.mark.twog
|
||||||
@pytest.mark.wpa2_enterprise
|
# @pytest.mark.wpa2_enterprise
|
||||||
@pytest.mark.wpa2_personal
|
# @pytest.mark.wpa2_personal
|
||||||
@pytest.mark.wpa
|
# @pytest.mark.wpa
|
||||||
@pytest.mark.open
|
# @pytest.mark.open
|
||||||
def test_verify_vif_state(self):
|
# def test_verify_vif_state(self):
|
||||||
assert True
|
# assert True
|
||||||
|
#
|
||||||
|
#
|
||||||
@pytest.mark.sanity
|
# @pytest.mark.sanity
|
||||||
@pytest.mark.vlan
|
# @pytest.mark.vlan
|
||||||
class TestSetupVLAN:
|
# class TestSetupVLAN:
|
||||||
|
#
|
||||||
@pytest.mark.fiveg
|
# @pytest.mark.fiveg
|
||||||
@pytest.mark.radius
|
# @pytest.mark.radius
|
||||||
@pytest.mark.twog
|
# @pytest.mark.twog
|
||||||
@pytest.mark.wpa2_enterprise
|
# @pytest.mark.wpa2_enterprise
|
||||||
@pytest.mark.wpa2_personal
|
# @pytest.mark.wpa2_personal
|
||||||
@pytest.mark.wpa
|
# @pytest.mark.wpa
|
||||||
@pytest.mark.open
|
# @pytest.mark.open
|
||||||
def test_setup_rf_profile(self, cleanup_profile):
|
# def test_setup_rf_profile(self, cleanup_profile):
|
||||||
assert True
|
# assert True
|
||||||
|
#
|
||||||
@pytest.mark.fiveg
|
# @pytest.mark.fiveg
|
||||||
@pytest.mark.radius
|
# @pytest.mark.radius
|
||||||
@pytest.mark.twog
|
# @pytest.mark.twog
|
||||||
@pytest.mark.wpa2_enterprise
|
# @pytest.mark.wpa2_enterprise
|
||||||
@pytest.mark.wpa2_personal
|
# @pytest.mark.wpa2_personal
|
||||||
@pytest.mark.wpa
|
# @pytest.mark.wpa
|
||||||
@pytest.mark.open
|
# @pytest.mark.open
|
||||||
def test_setup_radius_profile(self, cleanup_profile):
|
# def test_setup_radius_profile(self, cleanup_profile):
|
||||||
assert True
|
# assert True
|
||||||
|
#
|
||||||
@pytest.mark.open
|
# @pytest.mark.open
|
||||||
@pytest.mark.twog
|
# @pytest.mark.twog
|
||||||
def test_setup_open_2g_ssid_profile(self, cleanup_profile):
|
# def test_setup_open_2g_ssid_profile(self, cleanup_profile):
|
||||||
assert True
|
# assert True
|
||||||
|
#
|
||||||
@pytest.mark.open
|
# @pytest.mark.open
|
||||||
@pytest.mark.fiveg
|
# @pytest.mark.fiveg
|
||||||
def test_setup_open_5g_ssid_profile(self, cleanup_profile):
|
# def test_setup_open_5g_ssid_profile(self, cleanup_profile):
|
||||||
assert True
|
# assert True
|
||||||
|
#
|
||||||
@pytest.mark.wpa
|
# @pytest.mark.wpa
|
||||||
@pytest.mark.twog
|
# @pytest.mark.twog
|
||||||
def test_setup_wpa_2g_ssid_profile(self, cleanup_profile):
|
# def test_setup_wpa_2g_ssid_profile(self, cleanup_profile):
|
||||||
assert True
|
# assert True
|
||||||
|
#
|
||||||
@pytest.mark.wpa
|
# @pytest.mark.wpa
|
||||||
@pytest.mark.fiveg
|
# @pytest.mark.fiveg
|
||||||
def test_setup_wpa_5g_ssid_profile(self, cleanup_profile):
|
# def test_setup_wpa_5g_ssid_profile(self, cleanup_profile):
|
||||||
assert True
|
# assert True
|
||||||
|
#
|
||||||
@pytest.mark.wpa2_personal
|
# @pytest.mark.wpa2_personal
|
||||||
@pytest.mark.twog
|
# @pytest.mark.twog
|
||||||
def test_setup_wpa2_personal_2g_ssid_profile(self, cleanup_profile):
|
# def test_setup_wpa2_personal_2g_ssid_profile(self, cleanup_profile):
|
||||||
assert True
|
# assert True
|
||||||
|
#
|
||||||
@pytest.mark.wpa2_personal
|
# @pytest.mark.wpa2_personal
|
||||||
@pytest.mark.fiveg
|
# @pytest.mark.fiveg
|
||||||
def test_setup_wpa2_personal_5g_ssid_profile(self, cleanup_profile):
|
# def test_setup_wpa2_personal_5g_ssid_profile(self, cleanup_profile):
|
||||||
assert True
|
# assert True
|
||||||
|
#
|
||||||
@pytest.mark.wpa2_enterprise
|
# @pytest.mark.wpa2_enterprise
|
||||||
@pytest.mark.twog
|
# @pytest.mark.twog
|
||||||
@pytest.mark.radius
|
# @pytest.mark.radius
|
||||||
def test_setup_wpa2_enterprise_2g_ssid_profile(self, cleanup_profile):
|
# def test_setup_wpa2_enterprise_2g_ssid_profile(self, cleanup_profile):
|
||||||
assert True
|
# assert True
|
||||||
|
#
|
||||||
@pytest.mark.wpa2_enterprise
|
# @pytest.mark.wpa2_enterprise
|
||||||
@pytest.mark.fiveg
|
# @pytest.mark.fiveg
|
||||||
@pytest.mark.radius
|
# @pytest.mark.radius
|
||||||
def test_setup_wpa2_enterprise_5g_ssid_profile(self, cleanup_profile):
|
# def test_setup_wpa2_enterprise_5g_ssid_profile(self, cleanup_profile):
|
||||||
assert True
|
# assert True
|
||||||
|
#
|
||||||
@pytest.mark.fiveg
|
# @pytest.mark.fiveg
|
||||||
@pytest.mark.radius
|
# @pytest.mark.radius
|
||||||
@pytest.mark.twog
|
# @pytest.mark.twog
|
||||||
@pytest.mark.wpa2_enterprise
|
# @pytest.mark.wpa2_enterprise
|
||||||
@pytest.mark.wpa2_personal
|
# @pytest.mark.wpa2_personal
|
||||||
@pytest.mark.wpa
|
# @pytest.mark.wpa
|
||||||
@pytest.mark.open
|
# @pytest.mark.open
|
||||||
def test_setup_equipment_ap_profile(self):
|
# def test_setup_equipment_ap_profile(self):
|
||||||
assert True
|
# assert True
|
||||||
|
#
|
||||||
@pytest.mark.fiveg
|
# @pytest.mark.fiveg
|
||||||
@pytest.mark.radius
|
# @pytest.mark.radius
|
||||||
@pytest.mark.twog
|
# @pytest.mark.twog
|
||||||
@pytest.mark.wpa2_enterprise
|
# @pytest.mark.wpa2_enterprise
|
||||||
@pytest.mark.wpa2_personal
|
# @pytest.mark.wpa2_personal
|
||||||
@pytest.mark.wpa
|
# @pytest.mark.wpa
|
||||||
@pytest.mark.open
|
# @pytest.mark.open
|
||||||
def test_push_profile(self):
|
# def test_push_profile(self):
|
||||||
assert True
|
# assert True
|
||||||
|
#
|
||||||
@pytest.mark.fiveg
|
# @pytest.mark.fiveg
|
||||||
@pytest.mark.radius
|
# @pytest.mark.radius
|
||||||
@pytest.mark.twog
|
# @pytest.mark.twog
|
||||||
@pytest.mark.wpa2_enterprise
|
# @pytest.mark.wpa2_enterprise
|
||||||
@pytest.mark.wpa2_personal
|
# @pytest.mark.wpa2_personal
|
||||||
@pytest.mark.wpa
|
# @pytest.mark.wpa
|
||||||
@pytest.mark.open
|
# @pytest.mark.open
|
||||||
def test_verify_vif_config(self):
|
# def test_verify_vif_config(self):
|
||||||
assert True
|
# assert True
|
||||||
|
#
|
||||||
@pytest.mark.fiveg
|
# @pytest.mark.fiveg
|
||||||
@pytest.mark.radius
|
# @pytest.mark.radius
|
||||||
@pytest.mark.twog
|
# @pytest.mark.twog
|
||||||
@pytest.mark.wpa2_enterprise
|
# @pytest.mark.wpa2_enterprise
|
||||||
@pytest.mark.wpa2_personal
|
# @pytest.mark.wpa2_personal
|
||||||
@pytest.mark.wpa
|
# @pytest.mark.wpa
|
||||||
@pytest.mark.open
|
# @pytest.mark.open
|
||||||
def test_verify_vif_state(self):
|
# def test_verify_vif_state(self):
|
||||||
assert True
|
# assert True
|
||||||
|
|||||||
Reference in New Issue
Block a user