mirror of
https://github.com/Telecominfraproject/wlan-testing.git
synced 2025-10-29 01:52:40 +00:00
Sanity suite completed
Signed-off-by: shivamcandela <shivam.thakur@candelatech.com>
This commit is contained in:
@@ -27,9 +27,9 @@ All code must be written in python 3 and conform to PEP 8 style guide. The test
|
|||||||
|
|
||||||
## Proposed Directory Structure
|
## Proposed Directory Structure
|
||||||
```bash
|
```bash
|
||||||
├── tests
|
├── old_pytest
|
||||||
├── libs
|
├── libs
|
||||||
│ ├── cloudsdk_tests
|
│ ├── cloud_controller_tests
|
||||||
│ ├── apnos
|
│ ├── apnos
|
||||||
│ ├── lanforge
|
│ ├── lanforge
|
||||||
│ ├── perfecto
|
│ ├── perfecto
|
||||||
|
|||||||
0
__init__.py
Normal file
0
__init__.py
Normal file
0
tests/_e2e_setup/__init__.py
Normal file
0
tests/_e2e_setup/__init__.py
Normal file
0
tests/_e2e_setup/setup__e2e_resources.py
Normal file
0
tests/_e2e_setup/setup__e2e_resources.py
Normal file
101
tests/_e2e_setup/setup_e2e_bridge.py
Normal file
101
tests/_e2e_setup/setup_e2e_bridge.py
Normal file
@@ -0,0 +1,101 @@
|
|||||||
|
import pytest
|
||||||
|
|
||||||
|
|
||||||
|
@pytest.mark.sanity
|
||||||
|
@pytest.mark.bridge
|
||||||
|
class TestSetupRF:
|
||||||
|
|
||||||
|
@pytest.mark.wifi5
|
||||||
|
def test_setup_rf_profile_wifi5(self, get_markers):
|
||||||
|
assert True
|
||||||
|
|
||||||
|
@pytest.mark.wifi6
|
||||||
|
def test_setup_rf_profile_wifi6(self):
|
||||||
|
pytest.skip("hello")
|
||||||
|
assert True
|
||||||
|
|
||||||
|
|
||||||
|
@pytest.mark.sanity
|
||||||
|
@pytest.mark.bridge
|
||||||
|
@pytest.mark.wifi5
|
||||||
|
@pytest.mark.wifi6
|
||||||
|
class TestSetupRadius:
|
||||||
|
|
||||||
|
@pytest.mark.radius
|
||||||
|
def test_setup_radius_profile(self):
|
||||||
|
assert True
|
||||||
|
|
||||||
|
|
||||||
|
@pytest.mark.sanity
|
||||||
|
@pytest.mark.bridge
|
||||||
|
@pytest.mark.wifi5
|
||||||
|
@pytest.mark.wifi6
|
||||||
|
class TestSetupSSIDProfiles:
|
||||||
|
|
||||||
|
@pytest.mark.open
|
||||||
|
@pytest.mark.twog
|
||||||
|
def test_setup_open_2g_ssid_profile(self):
|
||||||
|
assert True
|
||||||
|
|
||||||
|
@pytest.mark.open
|
||||||
|
@pytest.mark.fiveg
|
||||||
|
def test_setup_open_5g_ssid_profile(self):
|
||||||
|
assert True
|
||||||
|
|
||||||
|
@pytest.mark.wpa
|
||||||
|
@pytest.mark.twog
|
||||||
|
def test_setup_wpa_2g_ssid_profile(self):
|
||||||
|
assert True
|
||||||
|
|
||||||
|
@pytest.mark.wpa
|
||||||
|
@pytest.mark.fiveg
|
||||||
|
def test_setup_wpa_5g_ssid_profile(self):
|
||||||
|
assert True
|
||||||
|
|
||||||
|
@pytest.mark.wpa2_personal
|
||||||
|
@pytest.mark.twog
|
||||||
|
def test_setup_wpa2_personal_2g_ssid_profile(self):
|
||||||
|
assert True
|
||||||
|
|
||||||
|
@pytest.mark.wpa2_personal
|
||||||
|
@pytest.mark.fiveg
|
||||||
|
def test_setup_wpa2_personal_5g_ssid_profile(self):
|
||||||
|
assert True
|
||||||
|
|
||||||
|
@pytest.mark.wpa2_enterprise
|
||||||
|
@pytest.mark.twog
|
||||||
|
@pytest.mark.radius
|
||||||
|
def test_setup_wpa2_enterprise_2g_ssid_profile(self):
|
||||||
|
assert True
|
||||||
|
|
||||||
|
@pytest.mark.wpa2_enterprise
|
||||||
|
@pytest.mark.fiveg
|
||||||
|
@pytest.mark.radius
|
||||||
|
def test_setup_wpa2_enterprise_5g_ssid_profile(self):
|
||||||
|
assert True
|
||||||
|
|
||||||
|
|
||||||
|
@pytest.mark.sanity
|
||||||
|
@pytest.mark.bridge
|
||||||
|
@pytest.mark.wifi5
|
||||||
|
@pytest.mark.wifi6
|
||||||
|
class TestEquipmentAPProfileBridge:
|
||||||
|
|
||||||
|
def test_setup_equipment_ap_profile(self):
|
||||||
|
assert True
|
||||||
|
|
||||||
|
|
||||||
|
@pytest.mark.sanity
|
||||||
|
@pytest.mark.bridge
|
||||||
|
@pytest.mark.wifi5
|
||||||
|
@pytest.mark.wifi6
|
||||||
|
class TestProfilePush:
|
||||||
|
|
||||||
|
def test_push_profile(self):
|
||||||
|
assert True
|
||||||
|
|
||||||
|
def test_verify_vif_config(self):
|
||||||
|
assert True
|
||||||
|
|
||||||
|
def test_verify_vif_state(self):
|
||||||
|
assert True
|
||||||
107
tests/_e2e_setup/setup_e2e_nat.py
Normal file
107
tests/_e2e_setup/setup_e2e_nat.py
Normal file
@@ -0,0 +1,107 @@
|
|||||||
|
import pytest
|
||||||
|
|
||||||
|
|
||||||
|
@pytest.mark.sanity
|
||||||
|
@pytest.mark.nat
|
||||||
|
class TestSetupRF:
|
||||||
|
|
||||||
|
@pytest.mark.wifi5
|
||||||
|
def test_setup_rf_profile_wifi5(self, get_markers):
|
||||||
|
assert True
|
||||||
|
|
||||||
|
@pytest.mark.wifi6
|
||||||
|
def test_setup_rf_profile_wifi6(self):
|
||||||
|
assert True
|
||||||
|
|
||||||
|
|
||||||
|
@pytest.mark.sanity
|
||||||
|
@pytest.mark.nat
|
||||||
|
@pytest.mark.wifi5
|
||||||
|
@pytest.mark.wifi6
|
||||||
|
class TestSetupRadius:
|
||||||
|
|
||||||
|
@pytest.mark.radius
|
||||||
|
def test_setup_radius_profile(self):
|
||||||
|
assert True
|
||||||
|
|
||||||
|
|
||||||
|
@pytest.mark.sanity
|
||||||
|
@pytest.mark.nat
|
||||||
|
@pytest.mark.wifi5
|
||||||
|
@pytest.mark.wifi6
|
||||||
|
class TestSetupSSIDProfiles:
|
||||||
|
|
||||||
|
@pytest.mark.open
|
||||||
|
@pytest.mark.twog
|
||||||
|
def test_setup_open_2g_ssid_profile(self):
|
||||||
|
assert True
|
||||||
|
|
||||||
|
@pytest.mark.open
|
||||||
|
@pytest.mark.fiveg
|
||||||
|
def test_setup_open_5g_ssid_profile(self):
|
||||||
|
assert True
|
||||||
|
|
||||||
|
@pytest.mark.wpa
|
||||||
|
@pytest.mark.twog
|
||||||
|
def test_setup_wpa_2g_ssid_profile(self):
|
||||||
|
assert True
|
||||||
|
|
||||||
|
@pytest.mark.wpa
|
||||||
|
@pytest.mark.fiveg
|
||||||
|
def test_setup_wpa_5g_ssid_profile(self):
|
||||||
|
assert True
|
||||||
|
|
||||||
|
@pytest.mark.wpa2_personal
|
||||||
|
@pytest.mark.twog
|
||||||
|
def test_setup_wpa2_personal_2g_ssid_profile(self):
|
||||||
|
assert True
|
||||||
|
|
||||||
|
@pytest.mark.wpa2_personal
|
||||||
|
@pytest.mark.fiveg
|
||||||
|
def test_setup_wpa2_personal_5g_ssid_profile(self):
|
||||||
|
assert True
|
||||||
|
|
||||||
|
@pytest.mark.wpa2_enterprise
|
||||||
|
@pytest.mark.twog
|
||||||
|
@pytest.mark.radius
|
||||||
|
def test_setup_wpa2_enterprise_2g_ssid_profile(self):
|
||||||
|
assert True
|
||||||
|
|
||||||
|
@pytest.mark.wpa2_enterprise
|
||||||
|
@pytest.mark.fiveg
|
||||||
|
@pytest.mark.radius
|
||||||
|
def test_setup_wpa2_enterprise_5g_ssid_profile(self):
|
||||||
|
assert True
|
||||||
|
|
||||||
|
|
||||||
|
@pytest.mark.equipment_ap
|
||||||
|
@pytest.mark.nat
|
||||||
|
@pytest.mark.wifi5
|
||||||
|
@pytest.mark.wifi6
|
||||||
|
class TestEquipmentAPProfilenat:
|
||||||
|
|
||||||
|
@pytest.mark.fiveg
|
||||||
|
@pytest.mark.radius
|
||||||
|
@pytest.mark.twog
|
||||||
|
@pytest.mark.wpa2_enterprise
|
||||||
|
@pytest.mark.wpa2_personal
|
||||||
|
@pytest.mark.wpa
|
||||||
|
@pytest.mark.open
|
||||||
|
def test_setup_equipment_ap_profile(self):
|
||||||
|
assert True
|
||||||
|
|
||||||
|
|
||||||
|
@pytest.mark.sanity
|
||||||
|
@pytest.mark.nat
|
||||||
|
@pytest.mark.wifi5
|
||||||
|
@pytest.mark.wifi6
|
||||||
|
class TestProfilePush:
|
||||||
|
|
||||||
|
def test_push_profile(self):
|
||||||
|
assert True
|
||||||
|
|
||||||
|
def test_verify_vif_config(self):
|
||||||
|
assert True
|
||||||
|
|
||||||
|
def test_verify_vif_state(self):
|
||||||
|
assert True
|
||||||
107
tests/_e2e_setup/setup_e2e_vlan.py
Normal file
107
tests/_e2e_setup/setup_e2e_vlan.py
Normal file
@@ -0,0 +1,107 @@
|
|||||||
|
import pytest
|
||||||
|
|
||||||
|
|
||||||
|
@pytest.mark.sanity
|
||||||
|
@pytest.mark.vlan
|
||||||
|
class TestSetupRF:
|
||||||
|
|
||||||
|
@pytest.mark.wifi5
|
||||||
|
def test_setup_rf_profile_wifi5(self, get_markers):
|
||||||
|
assert True
|
||||||
|
|
||||||
|
@pytest.mark.wifi6
|
||||||
|
def test_setup_rf_profile_wifi6(self):
|
||||||
|
assert True
|
||||||
|
|
||||||
|
|
||||||
|
@pytest.mark.sanity
|
||||||
|
@pytest.mark.vlan
|
||||||
|
@pytest.mark.wifi5
|
||||||
|
@pytest.mark.wifi6
|
||||||
|
class TestSetupRadius:
|
||||||
|
|
||||||
|
@pytest.mark.radius
|
||||||
|
def test_setup_radius_profile(self):
|
||||||
|
assert True
|
||||||
|
|
||||||
|
|
||||||
|
@pytest.mark.sanity
|
||||||
|
@pytest.mark.vlan
|
||||||
|
@pytest.mark.wifi5
|
||||||
|
@pytest.mark.wifi6
|
||||||
|
class TestSetupSSIDProfiles:
|
||||||
|
|
||||||
|
@pytest.mark.open
|
||||||
|
@pytest.mark.twog
|
||||||
|
def test_setup_open_2g_ssid_profile(self):
|
||||||
|
assert True
|
||||||
|
|
||||||
|
@pytest.mark.open
|
||||||
|
@pytest.mark.fiveg
|
||||||
|
def test_setup_open_5g_ssid_profile(self):
|
||||||
|
assert True
|
||||||
|
|
||||||
|
@pytest.mark.wpa
|
||||||
|
@pytest.mark.twog
|
||||||
|
def test_setup_wpa_2g_ssid_profile(self):
|
||||||
|
assert True
|
||||||
|
|
||||||
|
@pytest.mark.wpa
|
||||||
|
@pytest.mark.fiveg
|
||||||
|
def test_setup_wpa_5g_ssid_profile(self):
|
||||||
|
assert True
|
||||||
|
|
||||||
|
@pytest.mark.wpa2_personal
|
||||||
|
@pytest.mark.twog
|
||||||
|
def test_setup_wpa2_personal_2g_ssid_profile(self):
|
||||||
|
assert True
|
||||||
|
|
||||||
|
@pytest.mark.wpa2_personal
|
||||||
|
@pytest.mark.fiveg
|
||||||
|
def test_setup_wpa2_personal_5g_ssid_profile(self):
|
||||||
|
assert True
|
||||||
|
|
||||||
|
@pytest.mark.wpa2_enterprise
|
||||||
|
@pytest.mark.twog
|
||||||
|
@pytest.mark.radius
|
||||||
|
def test_setup_wpa2_enterprise_2g_ssid_profile(self):
|
||||||
|
assert True
|
||||||
|
|
||||||
|
@pytest.mark.wpa2_enterprise
|
||||||
|
@pytest.mark.fiveg
|
||||||
|
@pytest.mark.radius
|
||||||
|
def test_setup_wpa2_enterprise_5g_ssid_profile(self):
|
||||||
|
assert True
|
||||||
|
|
||||||
|
|
||||||
|
@pytest.mark.equipment_ap
|
||||||
|
@pytest.mark.vlan
|
||||||
|
@pytest.mark.wifi5
|
||||||
|
@pytest.mark.wifi6
|
||||||
|
class TestEquipmentAPProfilevlan:
|
||||||
|
|
||||||
|
@pytest.mark.fiveg
|
||||||
|
@pytest.mark.radius
|
||||||
|
@pytest.mark.twog
|
||||||
|
@pytest.mark.wpa2_enterprise
|
||||||
|
@pytest.mark.wpa2_personal
|
||||||
|
@pytest.mark.wpa
|
||||||
|
@pytest.mark.open
|
||||||
|
def test_setup_equipment_ap_profile(self):
|
||||||
|
assert True
|
||||||
|
|
||||||
|
|
||||||
|
@pytest.mark.sanity
|
||||||
|
@pytest.mark.vlan
|
||||||
|
@pytest.mark.wifi5
|
||||||
|
@pytest.mark.wifi6
|
||||||
|
class TestProfilePush:
|
||||||
|
|
||||||
|
def test_push_profile(self):
|
||||||
|
assert True
|
||||||
|
|
||||||
|
def test_verify_vif_config(self):
|
||||||
|
assert True
|
||||||
|
|
||||||
|
def test_verify_vif_state(self):
|
||||||
|
assert True
|
||||||
@@ -1,5 +1,5 @@
|
|||||||
Controller = {
|
Controller = {
|
||||||
'url': "https://wlan-portal-svc-nola-ext-03.cicd.lab.wlan.tip.build", # API base url for the controller
|
'url': "https://wlan-portal-svc-nola-ext-04.cicd.lab.wlan.tip.build", # API base url for the controller
|
||||||
'username': 'support@example.com',
|
'username': 'support@example.com',
|
||||||
'password': 'support',
|
'password': 'support',
|
||||||
'version': '1.0.0-SNAPSHOT',
|
'version': '1.0.0-SNAPSHOT',
|
||||||
@@ -24,7 +24,7 @@ AccessPoints = [
|
|||||||
'model': 'ecw5410',
|
'model': 'ecw5410',
|
||||||
'serial number': 'serial-number',
|
'serial number': 'serial-number',
|
||||||
'jumphost': True,
|
'jumphost': True,
|
||||||
'ip': "192.168.200.80",
|
'ip': "192.168.200.81",
|
||||||
'username': "lanforge",
|
'username': "lanforge",
|
||||||
'password': "lanforge",
|
'password': "lanforge",
|
||||||
'port': 22,
|
'port': 22,
|
||||||
@@ -35,7 +35,7 @@ AccessPoints = [
|
|||||||
'model': 'ecw5410',
|
'model': 'ecw5410',
|
||||||
'serial number' : 'serial-number',
|
'serial number' : 'serial-number',
|
||||||
'jumphost': True,
|
'jumphost': True,
|
||||||
'ip': "192.168.200.80",
|
'ip': "192.168.200.81",
|
||||||
'username': "lanforge",
|
'username': "lanforge",
|
||||||
'password': "lanforge",
|
'password': "lanforge",
|
||||||
'port': 22,
|
'port': 22,
|
||||||
@@ -47,7 +47,7 @@ AccessPoints = [
|
|||||||
CLOUDSDK_VERSION = {}
|
CLOUDSDK_VERSION = {}
|
||||||
TrafficGenerator = {
|
TrafficGenerator = {
|
||||||
"lanforge": {
|
"lanforge": {
|
||||||
"ip": "192.168.200.80",
|
"ip": "192.168.200.81",
|
||||||
"port": 8080,
|
"port": 8080,
|
||||||
"2.4G-Radio": "wihpy0",
|
"2.4G-Radio": "wihpy0",
|
||||||
"5G-Radio": "wiphy1",
|
"5G-Radio": "wiphy1",
|
||||||
@@ -71,7 +71,7 @@ RADIUS_SERVER_DATA = {
|
|||||||
|
|
||||||
LAB_INFO = {
|
LAB_INFO = {
|
||||||
"ap_model": "ecw5410",
|
"ap_model": "ecw5410",
|
||||||
"cloudsdk_url": "https://wlan-portal-svc-nola-ext-03.cicd.lab.wlan.tip.build",
|
"cloudsdk_url": "https://wlan-portal-svc-nola-ext-04.cicd.lab.wlan.tip.build",
|
||||||
"equipment_details": {
|
"equipment_details": {
|
||||||
"serial_number_1": {
|
"serial_number_1": {
|
||||||
"ip": "",
|
"ip": "",
|
||||||
@@ -91,7 +91,7 @@ LAB_INFO = {
|
|||||||
|
|
||||||
|
|
||||||
APNOS_CREDENTIAL_DATA = {
|
APNOS_CREDENTIAL_DATA = {
|
||||||
'ip': "192.168.200.80",
|
'ip': "192.168.200.81",
|
||||||
'username': "lanforge",
|
'username': "lanforge",
|
||||||
'password': "lanforge",
|
'password': "lanforge",
|
||||||
'port': 22,
|
'port': 22,
|
||||||
@@ -110,9 +110,9 @@ ssh tunnel --- localhost:8800
|
|||||||
NOLA = {
|
NOLA = {
|
||||||
# It is in NOLA-01 equipment 4 lab-ctlr minicom ap1
|
# It is in NOLA-01 equipment 4 lab-ctlr minicom ap1
|
||||||
"ecw5410": {
|
"ecw5410": {
|
||||||
"cloudsdk_url": "https://wlan-portal-svc-nola-ext-03.cicd.lab.wlan.tip.build",
|
"cloudsdk_url": "https://wlan-portal-svc-nola-ext-04.cicd.lab.wlan.tip.build",
|
||||||
"customer_id": 2,
|
"customer_id": 2,
|
||||||
"equipment_id": 24
|
"equipment_id": 21
|
||||||
},
|
},
|
||||||
"ecw5211": {
|
"ecw5211": {
|
||||||
"cloudsdk_url": "",
|
"cloudsdk_url": "",
|
||||||
|
|||||||
@@ -155,7 +155,7 @@ def instantiate_cloudsdk(request, testrun_session):
|
|||||||
yield sdk_client
|
yield sdk_client
|
||||||
|
|
||||||
|
|
||||||
@pytest.fixture(scope="class")
|
@pytest.fixture(scope="module")
|
||||||
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)
|
||||||
@@ -261,6 +261,7 @@ def get_markers(request, get_security_flags):
|
|||||||
security_dict = dict().fromkeys(security)
|
security_dict = dict().fromkeys(security)
|
||||||
for item in session.items:
|
for item in session.items:
|
||||||
for j in item.iter_markers():
|
for j in item.iter_markers():
|
||||||
|
print(j)
|
||||||
markers.append(j.name)
|
markers.append(j.name)
|
||||||
print(set(markers))
|
print(set(markers))
|
||||||
for i in security:
|
for i in security:
|
||||||
@@ -277,7 +278,7 @@ def get_equipment_id(testrun_session):
|
|||||||
yield NOLA[testrun_session]["equipment_id"]
|
yield NOLA[testrun_session]["equipment_id"]
|
||||||
|
|
||||||
|
|
||||||
@pytest.fixture(scope="class")
|
@pytest.fixture(scope="module")
|
||||||
def get_current_profile_cloud(instantiate_profile):
|
def get_current_profile_cloud(instantiate_profile):
|
||||||
ssid_names = []
|
ssid_names = []
|
||||||
print(instantiate_profile.profile_creation_ids["ssid"])
|
print(instantiate_profile.profile_creation_ids["ssid"])
|
||||||
@@ -286,7 +287,7 @@ def get_current_profile_cloud(instantiate_profile):
|
|||||||
yield ssid_names
|
yield ssid_names
|
||||||
|
|
||||||
|
|
||||||
@pytest.fixture(scope="class")
|
@pytest.fixture(scope="module")
|
||||||
def setup_profiles(create_profiles, instantiate_profile, get_equipment_id, get_current_profile_cloud):
|
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)
|
||||||
@@ -314,7 +315,7 @@ def setup_profiles(create_profiles, instantiate_profile, get_equipment_id, get_c
|
|||||||
yield "set(markers)"
|
yield "set(markers)"
|
||||||
|
|
||||||
|
|
||||||
@pytest.fixture(scope="class")
|
@pytest.fixture(scope="module")
|
||||||
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)
|
||||||
|
|||||||
@@ -0,0 +1,75 @@
|
|||||||
|
import pytest
|
||||||
|
|
||||||
|
|
||||||
|
@pytest.mark.rf
|
||||||
|
class TestRFProfiles:
|
||||||
|
|
||||||
|
def test_rf_profile(self):
|
||||||
|
assert True
|
||||||
|
|
||||||
|
|
||||||
|
@pytest.mark.radius
|
||||||
|
class TestRadiusProfile:
|
||||||
|
|
||||||
|
def test_radius_profile(self):
|
||||||
|
assert True
|
||||||
|
|
||||||
|
|
||||||
|
@pytest.mark.ssid
|
||||||
|
class TestSSIDProfile:
|
||||||
|
|
||||||
|
@pytest.mark.open
|
||||||
|
@pytest.mark.twog
|
||||||
|
def test_open_ssid_2g(self):
|
||||||
|
assert True
|
||||||
|
|
||||||
|
@pytest.mark.open
|
||||||
|
@pytest.mark.fiveg
|
||||||
|
def test_open_ssid_5g(self):
|
||||||
|
assert True
|
||||||
|
|
||||||
|
@pytest.mark.wpa
|
||||||
|
@pytest.mark.twog
|
||||||
|
def test_wpa_ssid_2g(self):
|
||||||
|
assert True
|
||||||
|
|
||||||
|
@pytest.mark.wpa
|
||||||
|
@pytest.mark.fiveg
|
||||||
|
def test_wpa_ssid_5g(self):
|
||||||
|
assert True
|
||||||
|
|
||||||
|
@pytest.mark.wpa2_personal
|
||||||
|
@pytest.mark.twog
|
||||||
|
def test_wpa2_personal_ssid_2g(self):
|
||||||
|
assert True
|
||||||
|
|
||||||
|
@pytest.mark.wpa2_personal
|
||||||
|
@pytest.mark.fiveg
|
||||||
|
def test_wpa2_personal_ssid_5g(self):
|
||||||
|
assert True
|
||||||
|
|
||||||
|
@pytest.mark.wpa2_enterprise
|
||||||
|
@pytest.mark.twog
|
||||||
|
def test_wpa2_enterprise_ssid_2g(self):
|
||||||
|
assert True
|
||||||
|
|
||||||
|
@pytest.mark.wpa2_enterprise
|
||||||
|
@pytest.mark.fiveg
|
||||||
|
def test_wpa2_enterprise_ssid_5g(self):
|
||||||
|
assert True
|
||||||
|
|
||||||
|
|
||||||
|
@pytest.mark.equipment_ap_profile
|
||||||
|
class TestEquipmentAPProfile:
|
||||||
|
|
||||||
|
@pytest.mark.bridge
|
||||||
|
def test_equipment_ap_profile_bridge(self):
|
||||||
|
assert True
|
||||||
|
|
||||||
|
@pytest.mark.nat
|
||||||
|
def test_equipment_ap_profile_nat(self):
|
||||||
|
assert True
|
||||||
|
|
||||||
|
@pytest.mark.vlan
|
||||||
|
def test_equipment_ap_profile_vlan(self):
|
||||||
|
assert True
|
||||||
|
|||||||
@@ -25,7 +25,9 @@ import time
|
|||||||
|
|
||||||
|
|
||||||
@pytest.mark.sanity
|
@pytest.mark.sanity
|
||||||
@pytest.mark.bridge
|
@pytest.mark.client_connectivity
|
||||||
|
@pytest.mark.wifi5
|
||||||
|
@pytest.mark.wifi6
|
||||||
@pytest.mark.parametrize(
|
@pytest.mark.parametrize(
|
||||||
'setup_profiles',
|
'setup_profiles',
|
||||||
(["BRIDGE"]),
|
(["BRIDGE"]),
|
||||||
@@ -36,6 +38,7 @@ class TestBridgeModeClientConnectivity(object):
|
|||||||
|
|
||||||
@pytest.mark.wpa
|
@pytest.mark.wpa
|
||||||
@pytest.mark.twog
|
@pytest.mark.twog
|
||||||
|
@pytest.mark.test_client_wpa_2g
|
||||||
def test_client_wpa_2g(self, request, get_lanforge_data, setup_profile_data, instantiate_testrail,
|
def test_client_wpa_2g(self, request, get_lanforge_data, setup_profile_data, instantiate_testrail,
|
||||||
instantiate_project):
|
instantiate_project):
|
||||||
profile_data = setup_profile_data["BRIDGE"]["WPA"]["2G"]
|
profile_data = setup_profile_data["BRIDGE"]["WPA"]["2G"]
|
||||||
|
|||||||
@@ -21,14 +21,18 @@ from sta_connect2 import StaConnect2
|
|||||||
import eap_connect
|
import eap_connect
|
||||||
from eap_connect import EAPConnect
|
from eap_connect import EAPConnect
|
||||||
import time
|
import time
|
||||||
|
|
||||||
|
|
||||||
#
|
#
|
||||||
|
|
||||||
@pytest.mark.sanity
|
@pytest.mark.sanity
|
||||||
@pytest.mark.nat
|
@pytest.mark.nat
|
||||||
|
@pytest.mark.wifi5
|
||||||
|
@pytest.mark.wifi6
|
||||||
@pytest.mark.parametrize(
|
@pytest.mark.parametrize(
|
||||||
'setup_profiles',
|
'setup_profiles',
|
||||||
(["NAT"]),
|
(["NAT"]),
|
||||||
indirect=True
|
indirect=True
|
||||||
)
|
)
|
||||||
@pytest.mark.usefixtures("setup_profiles")
|
@pytest.mark.usefixtures("setup_profiles")
|
||||||
class TestNatModeClientConnectivity(object):
|
class TestNatModeClientConnectivity(object):
|
||||||
|
|||||||
@@ -24,6 +24,8 @@ import time
|
|||||||
|
|
||||||
@pytest.mark.sanity
|
@pytest.mark.sanity
|
||||||
@pytest.mark.vlan
|
@pytest.mark.vlan
|
||||||
|
@pytest.mark.wifi5
|
||||||
|
@pytest.mark.wifi6
|
||||||
@pytest.mark.parametrize(
|
@pytest.mark.parametrize(
|
||||||
'setup_profiles',
|
'setup_profiles',
|
||||||
(["VLAN"]),
|
(["VLAN"]),
|
||||||
|
|||||||
19
tests/e2e/basic/wifi_capacity_test/test_bridge_mode.py
Normal file
19
tests/e2e/basic/wifi_capacity_test/test_bridge_mode.py
Normal file
@@ -0,0 +1,19 @@
|
|||||||
|
import pytest
|
||||||
|
|
||||||
|
|
||||||
|
@pytest.mark.sanity
|
||||||
|
@pytest.mark.wifi_capacity_test
|
||||||
|
@pytest.mark.wifi5
|
||||||
|
@pytest.mark.wifi6
|
||||||
|
@pytest.mark.parametrize(
|
||||||
|
'setup_profiles',
|
||||||
|
(["BRIDGE"]),
|
||||||
|
indirect=True
|
||||||
|
)
|
||||||
|
@pytest.mark.usefixtures("setup_profiles")
|
||||||
|
class TestBridgeModeClientConnectivity(object):
|
||||||
|
|
||||||
|
@pytest.mark.wpa
|
||||||
|
@pytest.mark.twog
|
||||||
|
def test_client_wpa_2g(self, request, get_lanforge_data, setup_profile_data):
|
||||||
|
assert True
|
||||||
0
tests/e2e/basic/wifi_capacity_test/test_nat_mode.py
Normal file
0
tests/e2e/basic/wifi_capacity_test/test_nat_mode.py
Normal file
@@ -2,20 +2,21 @@ import pytest
|
|||||||
|
|
||||||
|
|
||||||
@pytest.mark.sanity
|
@pytest.mark.sanity
|
||||||
|
@pytest.mark.bridge
|
||||||
|
@pytest.mark.nat
|
||||||
|
@pytest.mark.vlan
|
||||||
|
@pytest.mark.wifi5
|
||||||
|
@pytest.mark.wifi6
|
||||||
class TestConnection:
|
class TestConnection:
|
||||||
|
|
||||||
@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
|
||||||
|
|
||||||
@pytest.mark.test_access_points_connectivity
|
|
||||||
def test_access_points_connectivity(self, instantiate_cloudsdk):
|
def test_access_points_connectivity(self, instantiate_cloudsdk):
|
||||||
assert instantiate_cloudsdk
|
assert instantiate_cloudsdk
|
||||||
|
|
||||||
@pytest.mark.test_lanforge_connectivity
|
|
||||||
def test_lanforge_connectivity(self, setup_lanforge):
|
def test_lanforge_connectivity(self, setup_lanforge):
|
||||||
assert "instantiate_cloudsdk"
|
assert "instantiate_cloudsdk"
|
||||||
|
|
||||||
@pytest.mark.test_perfecto_connectivity
|
|
||||||
def test_perfecto_connectivity(self, setup_perfecto_devices):
|
def test_perfecto_connectivity(self, setup_perfecto_devices):
|
||||||
assert "instantiate_cloudsdk"
|
assert "instantiate_cloudsdk"
|
||||||
|
|||||||
@@ -1,322 +0,0 @@
|
|||||||
# import pytest
|
|
||||||
#
|
|
||||||
#
|
|
||||||
# @pytest.mark.sanity
|
|
||||||
# @pytest.mark.bridge
|
|
||||||
# class TestSetupBridge:
|
|
||||||
#
|
|
||||||
# @pytest.mark.fiveg
|
|
||||||
# @pytest.mark.radius
|
|
||||||
# @pytest.mark.twog
|
|
||||||
# @pytest.mark.wpa2_enterprise
|
|
||||||
# @pytest.mark.wpa2_personal
|
|
||||||
# @pytest.mark.wpa
|
|
||||||
# @pytest.mark.open
|
|
||||||
# def test_setup_rf_profile(self, cleanup_profile):
|
|
||||||
# assert True
|
|
||||||
#
|
|
||||||
# @pytest.mark.fiveg
|
|
||||||
# @pytest.mark.radius
|
|
||||||
# @pytest.mark.twog
|
|
||||||
# @pytest.mark.wpa2_enterprise
|
|
||||||
# @pytest.mark.wpa2_personal
|
|
||||||
# @pytest.mark.wpa
|
|
||||||
# @pytest.mark.open
|
|
||||||
# def test_setup_radius_profile(self, cleanup_profile):
|
|
||||||
# assert True
|
|
||||||
#
|
|
||||||
# @pytest.mark.open
|
|
||||||
# @pytest.mark.twog
|
|
||||||
# def test_setup_open_2g_ssid_profile(self, cleanup_profile):
|
|
||||||
# assert True
|
|
||||||
#
|
|
||||||
# @pytest.mark.open
|
|
||||||
# @pytest.mark.fiveg
|
|
||||||
# def test_setup_open_5g_ssid_profile(self, cleanup_profile):
|
|
||||||
# assert True
|
|
||||||
#
|
|
||||||
# @pytest.mark.wpa
|
|
||||||
# @pytest.mark.twog
|
|
||||||
# def test_setup_wpa_2g_ssid_profile(self, cleanup_profile):
|
|
||||||
# assert True
|
|
||||||
#
|
|
||||||
# @pytest.mark.wpa
|
|
||||||
# @pytest.mark.fiveg
|
|
||||||
# def test_setup_wpa_5g_ssid_profile(self, cleanup_profile):
|
|
||||||
# assert True
|
|
||||||
#
|
|
||||||
# @pytest.mark.wpa2_personal
|
|
||||||
# @pytest.mark.twog
|
|
||||||
# def test_setup_wpa2_personal_2g_ssid_profile(self, cleanup_profile):
|
|
||||||
# assert True
|
|
||||||
#
|
|
||||||
# @pytest.mark.wpa2_personal
|
|
||||||
# @pytest.mark.fiveg
|
|
||||||
# def test_setup_wpa2_personal_5g_ssid_profile(self, cleanup_profile):
|
|
||||||
# assert True
|
|
||||||
#
|
|
||||||
# @pytest.mark.wpa2_enterprise
|
|
||||||
# @pytest.mark.twog
|
|
||||||
# @pytest.mark.radius
|
|
||||||
# def test_setup_wpa2_enterprise_2g_ssid_profile(self, cleanup_profile):
|
|
||||||
# assert True
|
|
||||||
#
|
|
||||||
# @pytest.mark.wpa2_enterprise
|
|
||||||
# @pytest.mark.fiveg
|
|
||||||
# @pytest.mark.radius
|
|
||||||
# def test_setup_wpa2_enterprise_5g_ssid_profile(self, cleanup_profile):
|
|
||||||
# assert True
|
|
||||||
#
|
|
||||||
# @pytest.mark.fiveg
|
|
||||||
# @pytest.mark.radius
|
|
||||||
# @pytest.mark.twog
|
|
||||||
# @pytest.mark.wpa2_enterprise
|
|
||||||
# @pytest.mark.wpa2_personal
|
|
||||||
# @pytest.mark.wpa
|
|
||||||
# @pytest.mark.open
|
|
||||||
# def test_setup_equipment_ap_profile(self):
|
|
||||||
# assert True
|
|
||||||
#
|
|
||||||
# @pytest.mark.fiveg
|
|
||||||
# @pytest.mark.radius
|
|
||||||
# @pytest.mark.twog
|
|
||||||
# @pytest.mark.wpa2_enterprise
|
|
||||||
# @pytest.mark.wpa2_personal
|
|
||||||
# @pytest.mark.wpa
|
|
||||||
# @pytest.mark.open
|
|
||||||
# def test_push_profile(self):
|
|
||||||
# assert True
|
|
||||||
#
|
|
||||||
# @pytest.mark.fiveg
|
|
||||||
# @pytest.mark.radius
|
|
||||||
# @pytest.mark.twog
|
|
||||||
# @pytest.mark.wpa2_enterprise
|
|
||||||
# @pytest.mark.wpa2_personal
|
|
||||||
# @pytest.mark.wpa
|
|
||||||
# @pytest.mark.open
|
|
||||||
# def test_verify_vif_config(self):
|
|
||||||
# assert True
|
|
||||||
#
|
|
||||||
# @pytest.mark.fiveg
|
|
||||||
# @pytest.mark.radius
|
|
||||||
# @pytest.mark.twog
|
|
||||||
# @pytest.mark.wpa2_enterprise
|
|
||||||
# @pytest.mark.wpa2_personal
|
|
||||||
# @pytest.mark.wpa
|
|
||||||
# @pytest.mark.open
|
|
||||||
# def test_verify_vif_state(self):
|
|
||||||
# assert True
|
|
||||||
#
|
|
||||||
#
|
|
||||||
# @pytest.mark.sanity
|
|
||||||
# @pytest.mark.nat
|
|
||||||
# class TestSetupNAT:
|
|
||||||
#
|
|
||||||
# @pytest.mark.fiveg
|
|
||||||
# @pytest.mark.radius
|
|
||||||
# @pytest.mark.twog
|
|
||||||
# @pytest.mark.wpa2_enterprise
|
|
||||||
# @pytest.mark.wpa2_personal
|
|
||||||
# @pytest.mark.wpa
|
|
||||||
# @pytest.mark.open
|
|
||||||
# def test_setup_rf_profile(self, cleanup_profile):
|
|
||||||
# assert True
|
|
||||||
#
|
|
||||||
# @pytest.mark.fiveg
|
|
||||||
# @pytest.mark.radius
|
|
||||||
# @pytest.mark.twog
|
|
||||||
# @pytest.mark.wpa2_enterprise
|
|
||||||
# @pytest.mark.wpa2_personal
|
|
||||||
# @pytest.mark.wpa
|
|
||||||
# @pytest.mark.open
|
|
||||||
# def test_setup_radius_profile(self, cleanup_profile):
|
|
||||||
# assert True
|
|
||||||
#
|
|
||||||
# @pytest.mark.open
|
|
||||||
# @pytest.mark.twog
|
|
||||||
# def test_setup_open_2g_ssid_profile(self, cleanup_profile):
|
|
||||||
# assert True
|
|
||||||
#
|
|
||||||
# @pytest.mark.open
|
|
||||||
# @pytest.mark.fiveg
|
|
||||||
# def test_setup_open_5g_ssid_profile(self, cleanup_profile):
|
|
||||||
# assert True
|
|
||||||
#
|
|
||||||
# @pytest.mark.wpa
|
|
||||||
# @pytest.mark.twog
|
|
||||||
# def test_setup_wpa_2g_ssid_profile(self, cleanup_profile):
|
|
||||||
# assert True
|
|
||||||
#
|
|
||||||
# @pytest.mark.wpa
|
|
||||||
# @pytest.mark.fiveg
|
|
||||||
# def test_setup_wpa_5g_ssid_profile(self, cleanup_profile):
|
|
||||||
# assert True
|
|
||||||
#
|
|
||||||
# @pytest.mark.wpa2_personal
|
|
||||||
# @pytest.mark.twog
|
|
||||||
# def test_setup_wpa2_personal_2g_ssid_profile(self, cleanup_profile):
|
|
||||||
# assert True
|
|
||||||
#
|
|
||||||
# @pytest.mark.wpa2_personal
|
|
||||||
# @pytest.mark.fiveg
|
|
||||||
# def test_setup_wpa2_personal_5g_ssid_profile(self, cleanup_profile):
|
|
||||||
# assert True
|
|
||||||
#
|
|
||||||
# @pytest.mark.wpa2_enterprise
|
|
||||||
# @pytest.mark.twog
|
|
||||||
# @pytest.mark.radius
|
|
||||||
# def test_setup_wpa2_enterprise_2g_ssid_profile(self, cleanup_profile):
|
|
||||||
# assert True
|
|
||||||
#
|
|
||||||
# @pytest.mark.wpa2_enterprise
|
|
||||||
# @pytest.mark.fiveg
|
|
||||||
# @pytest.mark.radius
|
|
||||||
# def test_setup_wpa2_enterprise_5g_ssid_profile(self, cleanup_profile):
|
|
||||||
# assert True
|
|
||||||
#
|
|
||||||
# @pytest.mark.fiveg
|
|
||||||
# @pytest.mark.radius
|
|
||||||
# @pytest.mark.twog
|
|
||||||
# @pytest.mark.wpa2_enterprise
|
|
||||||
# @pytest.mark.wpa2_personal
|
|
||||||
# @pytest.mark.wpa
|
|
||||||
# @pytest.mark.open
|
|
||||||
# def test_setup_equipment_ap_profile(self):
|
|
||||||
# assert True
|
|
||||||
#
|
|
||||||
# @pytest.mark.fiveg
|
|
||||||
# @pytest.mark.radius
|
|
||||||
# @pytest.mark.twog
|
|
||||||
# @pytest.mark.wpa2_enterprise
|
|
||||||
# @pytest.mark.wpa2_personal
|
|
||||||
# @pytest.mark.wpa
|
|
||||||
# @pytest.mark.open
|
|
||||||
# def test_push_profile(self):
|
|
||||||
# assert True
|
|
||||||
#
|
|
||||||
# @pytest.mark.fiveg
|
|
||||||
# @pytest.mark.radius
|
|
||||||
# @pytest.mark.twog
|
|
||||||
# @pytest.mark.wpa2_enterprise
|
|
||||||
# @pytest.mark.wpa2_personal
|
|
||||||
# @pytest.mark.wpa
|
|
||||||
# @pytest.mark.open
|
|
||||||
# def test_verify_vif_config(self):
|
|
||||||
# assert True
|
|
||||||
#
|
|
||||||
# @pytest.mark.fiveg
|
|
||||||
# @pytest.mark.radius
|
|
||||||
# @pytest.mark.twog
|
|
||||||
# @pytest.mark.wpa2_enterprise
|
|
||||||
# @pytest.mark.wpa2_personal
|
|
||||||
# @pytest.mark.wpa
|
|
||||||
# @pytest.mark.open
|
|
||||||
# def test_verify_vif_state(self):
|
|
||||||
# assert True
|
|
||||||
#
|
|
||||||
#
|
|
||||||
# @pytest.mark.sanity
|
|
||||||
# @pytest.mark.vlan
|
|
||||||
# class TestSetupVLAN:
|
|
||||||
#
|
|
||||||
# @pytest.mark.fiveg
|
|
||||||
# @pytest.mark.radius
|
|
||||||
# @pytest.mark.twog
|
|
||||||
# @pytest.mark.wpa2_enterprise
|
|
||||||
# @pytest.mark.wpa2_personal
|
|
||||||
# @pytest.mark.wpa
|
|
||||||
# @pytest.mark.open
|
|
||||||
# def test_setup_rf_profile(self, cleanup_profile):
|
|
||||||
# assert True
|
|
||||||
#
|
|
||||||
# @pytest.mark.fiveg
|
|
||||||
# @pytest.mark.radius
|
|
||||||
# @pytest.mark.twog
|
|
||||||
# @pytest.mark.wpa2_enterprise
|
|
||||||
# @pytest.mark.wpa2_personal
|
|
||||||
# @pytest.mark.wpa
|
|
||||||
# @pytest.mark.open
|
|
||||||
# def test_setup_radius_profile(self, cleanup_profile):
|
|
||||||
# assert True
|
|
||||||
#
|
|
||||||
# @pytest.mark.open
|
|
||||||
# @pytest.mark.twog
|
|
||||||
# def test_setup_open_2g_ssid_profile(self, cleanup_profile):
|
|
||||||
# assert True
|
|
||||||
#
|
|
||||||
# @pytest.mark.open
|
|
||||||
# @pytest.mark.fiveg
|
|
||||||
# def test_setup_open_5g_ssid_profile(self, cleanup_profile):
|
|
||||||
# assert True
|
|
||||||
#
|
|
||||||
# @pytest.mark.wpa
|
|
||||||
# @pytest.mark.twog
|
|
||||||
# def test_setup_wpa_2g_ssid_profile(self, cleanup_profile):
|
|
||||||
# assert True
|
|
||||||
#
|
|
||||||
# @pytest.mark.wpa
|
|
||||||
# @pytest.mark.fiveg
|
|
||||||
# def test_setup_wpa_5g_ssid_profile(self, cleanup_profile):
|
|
||||||
# assert True
|
|
||||||
#
|
|
||||||
# @pytest.mark.wpa2_personal
|
|
||||||
# @pytest.mark.twog
|
|
||||||
# def test_setup_wpa2_personal_2g_ssid_profile(self, cleanup_profile):
|
|
||||||
# assert True
|
|
||||||
#
|
|
||||||
# @pytest.mark.wpa2_personal
|
|
||||||
# @pytest.mark.fiveg
|
|
||||||
# def test_setup_wpa2_personal_5g_ssid_profile(self, cleanup_profile):
|
|
||||||
# assert True
|
|
||||||
#
|
|
||||||
# @pytest.mark.wpa2_enterprise
|
|
||||||
# @pytest.mark.twog
|
|
||||||
# @pytest.mark.radius
|
|
||||||
# def test_setup_wpa2_enterprise_2g_ssid_profile(self, cleanup_profile):
|
|
||||||
# assert True
|
|
||||||
#
|
|
||||||
# @pytest.mark.wpa2_enterprise
|
|
||||||
# @pytest.mark.fiveg
|
|
||||||
# @pytest.mark.radius
|
|
||||||
# def test_setup_wpa2_enterprise_5g_ssid_profile(self, cleanup_profile):
|
|
||||||
# assert True
|
|
||||||
#
|
|
||||||
# @pytest.mark.fiveg
|
|
||||||
# @pytest.mark.radius
|
|
||||||
# @pytest.mark.twog
|
|
||||||
# @pytest.mark.wpa2_enterprise
|
|
||||||
# @pytest.mark.wpa2_personal
|
|
||||||
# @pytest.mark.wpa
|
|
||||||
# @pytest.mark.open
|
|
||||||
# def test_setup_equipment_ap_profile(self):
|
|
||||||
# assert True
|
|
||||||
#
|
|
||||||
# @pytest.mark.fiveg
|
|
||||||
# @pytest.mark.radius
|
|
||||||
# @pytest.mark.twog
|
|
||||||
# @pytest.mark.wpa2_enterprise
|
|
||||||
# @pytest.mark.wpa2_personal
|
|
||||||
# @pytest.mark.wpa
|
|
||||||
# @pytest.mark.open
|
|
||||||
# def test_push_profile(self):
|
|
||||||
# assert True
|
|
||||||
#
|
|
||||||
# @pytest.mark.fiveg
|
|
||||||
# @pytest.mark.radius
|
|
||||||
# @pytest.mark.twog
|
|
||||||
# @pytest.mark.wpa2_enterprise
|
|
||||||
# @pytest.mark.wpa2_personal
|
|
||||||
# @pytest.mark.wpa
|
|
||||||
# @pytest.mark.open
|
|
||||||
# def test_verify_vif_config(self):
|
|
||||||
# assert True
|
|
||||||
#
|
|
||||||
# @pytest.mark.fiveg
|
|
||||||
# @pytest.mark.radius
|
|
||||||
# @pytest.mark.twog
|
|
||||||
# @pytest.mark.wpa2_enterprise
|
|
||||||
# @pytest.mark.wpa2_personal
|
|
||||||
# @pytest.mark.wpa
|
|
||||||
# @pytest.mark.open
|
|
||||||
# def test_verify_vif_state(self):
|
|
||||||
# assert True
|
|
||||||
Reference in New Issue
Block a user