Skip to content

Commit

Permalink
Sanity suite completed
Browse files Browse the repository at this point in the history
Signed-off-by: shivamcandela <[email protected]>
  • Loading branch information
shivamcandela committed Apr 14, 2021
1 parent 8d1af93 commit 6b1917e
Show file tree
Hide file tree
Showing 18 changed files with 442 additions and 344 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@ All code must be written in python 3 and conform to PEP 8 style guide. The test

## Proposed Directory Structure
```bash
├── tests
├── old_pytest
├── libs
│ ├── cloudsdk_tests
│ ├── cloud_controller_tests
│ ├── apnos
│ ├── lanforge
│ ├── perfecto
Expand Down
Empty file added __init__.py
Empty file.
Empty file added tests/_e2e_setup/__init__.py
Empty file.
Empty file.
101 changes: 101 additions & 0 deletions tests/_e2e_setup/setup_e2e_bridge.py
Original file line number Diff line number Diff line change
@@ -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 changes: 107 additions & 0 deletions tests/_e2e_setup/setup_e2e_nat.py
Original file line number Diff line number Diff line change
@@ -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 changes: 107 additions & 0 deletions tests/_e2e_setup/setup_e2e_vlan.py
Original file line number Diff line number Diff line change
@@ -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
16 changes: 8 additions & 8 deletions tests/configuration.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
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': '[email protected]',
'password': 'support',
'version': '1.0.0-SNAPSHOT',
Expand All @@ -24,7 +24,7 @@
'model': 'ecw5410',
'serial number': 'serial-number',
'jumphost': True,
'ip': "192.168.200.80",
'ip': "192.168.200.81",
'username': "lanforge",
'password': "lanforge",
'port': 22,
Expand All @@ -35,7 +35,7 @@
'model': 'ecw5410',
'serial number' : 'serial-number',
'jumphost': True,
'ip': "192.168.200.80",
'ip': "192.168.200.81",
'username': "lanforge",
'password': "lanforge",
'port': 22,
Expand All @@ -47,7 +47,7 @@
CLOUDSDK_VERSION = {}
TrafficGenerator = {
"lanforge": {
"ip": "192.168.200.80",
"ip": "192.168.200.81",
"port": 8080,
"2.4G-Radio": "wihpy0",
"5G-Radio": "wiphy1",
Expand All @@ -71,7 +71,7 @@

LAB_INFO = {
"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": {
"serial_number_1": {
"ip": "",
Expand All @@ -91,7 +91,7 @@


APNOS_CREDENTIAL_DATA = {
'ip': "192.168.200.80",
'ip': "192.168.200.81",
'username': "lanforge",
'password': "lanforge",
'port': 22,
Expand All @@ -110,9 +110,9 @@
NOLA = {
# It is in NOLA-01 equipment 4 lab-ctlr minicom ap1
"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,
"equipment_id": 24
"equipment_id": 21
},
"ecw5211": {
"cloudsdk_url": "",
Expand Down
Loading

0 comments on commit 6b1917e

Please sign in to comment.