From d1f2a30405935461a7869b710e8c4856f500023d Mon Sep 17 00:00:00 2001 From: shivam Date: Mon, 7 Mar 2022 22:27:50 +0530 Subject: [PATCH 001/100] Added slight upload rate on udp download to work in NAT mode Signed-off-by: shivam --- .../wifi_capacity_test/wpa2_personal/test_nat_mode.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/e2e/basic/performance_tests/wifi_capacity_test/wpa2_personal/test_nat_mode.py b/tests/e2e/basic/performance_tests/wifi_capacity_test/wpa2_personal/test_nat_mode.py index 36e128bcc..e840c81f0 100644 --- a/tests/e2e/basic/performance_tests/wifi_capacity_test/wpa2_personal/test_nat_mode.py +++ b/tests/e2e/basic/performance_tests/wifi_capacity_test/wpa2_personal/test_nat_mode.py @@ -98,7 +98,7 @@ class TestWifiCapacityNATModeDualBand(object): wct_obj = lf_test.wifi_capacity(instance_name="test_client_wpa2_NAT_udp_dl", mode=mode, vlan_id=vlan, download_rate="1Gbps", batch_size="1,5,10,20,40,64,128,256", influx_tags=influx_tags, - upload_rate="0", protocol="UDP-IPv4", duration="60000") + upload_rate="100Mbps", protocol="UDP-IPv4", duration="60000") report_name = wct_obj.report_name[0]['LAST']["response"].split(":::")[1].split("/")[-1] From 942d215896c7b6f3707f6b6b9407cc8e2f7df2e3 Mon Sep 17 00:00:00 2001 From: Shivam Thakur <70829776+shivamcandela@users.noreply.github.com> Date: Wed, 9 Mar 2022 20:23:33 +0530 Subject: [PATCH 002/100] moving sanity to next --- .github/workflows/quali.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/quali.yml b/.github/workflows/quali.yml index 4fa77d09b..ed5ddf563 100644 --- a/.github/workflows/quali.yml +++ b/.github/workflows/quali.yml @@ -26,7 +26,7 @@ on: description: "the AP models to test" ap_version: required: true - default: "release-latest" + default: "next-latest" description: "revision of firmware to flash on AP, -" marker_expression: required: true @@ -55,7 +55,7 @@ jobs: run: | echo ::set-output name=openwifi::$(echo "${{ github.event.inputs.openwifi_revision || 'main' }}") echo ::set-output name=ap_models::$(echo "${{ github.event.inputs.ap_models || 'edgecore_ecw5410,edgecore_eap101,tp-link_ec420-g1,edgecore_ecw5211,cig_wf188n,edgecore_eap102,cig_wf194c,hfcl_ion4' }}") - echo ::set-output name=ap_version::$(echo "${{ github.event.inputs.ap_version || 'release-latest' }}") + echo ::set-output name=ap_version::$(echo "${{ github.event.inputs.ap_version || 'next-latest' }}") echo ::set-output name=marker_expression::$(echo "${{ github.event.inputs.marker_expression || 'uc_sanity' }}") echo ::set-output name=existing_controller::$(echo "${{ github.event.inputs.existing_controller || 'qa01' }}") From c62915807b8790012c86266c75b6701d66b904f6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E1=B4=80=E1=B4=8D=CA=80=C9=AA=E1=B4=9B=20=CA=80=E1=B4=80?= =?UTF-8?q?=E1=B4=8A?= <87319476+amrit-candela@users.noreply.github.com> Date: Thu, 10 Mar 2022 19:56:23 +0530 Subject: [PATCH 003/100] Added tls in the name of SSID for tls test cases (#424) --- .../client_connectivity/test_enterprise_tls.py | 12 ++++++------ .../client_connectivity/test_enterprise_tls.py | 12 ++++++------ .../client_connectivity/test_enterprise_tls.py | 12 ++++++------ 3 files changed, 18 insertions(+), 18 deletions(-) diff --git a/tests/e2e/basic/validation_of_operating_modes/bridge_mode/client_connectivity/test_enterprise_tls.py b/tests/e2e/basic/validation_of_operating_modes/bridge_mode/client_connectivity/test_enterprise_tls.py index 04555976a..e5019abc1 100644 --- a/tests/e2e/basic/validation_of_operating_modes/bridge_mode/client_connectivity/test_enterprise_tls.py +++ b/tests/e2e/basic/validation_of_operating_modes/bridge_mode/client_connectivity/test_enterprise_tls.py @@ -7,14 +7,14 @@ setup_params_enterprise = { "mode": "BRIDGE", "ssid_modes": { "wpa_enterprise": [ - {"ssid_name": "ssid_wpa2_eap_2g", "appliedRadios": ["2G"]}, - {"ssid_name": "ssid_wpa2_eap_5g", "appliedRadios": ["5G"]}], + {"ssid_name": "tls_ssid_wpa2_eap_2g", "appliedRadios": ["2G"]}, + {"ssid_name": "tls_ssid_wpa2_eap_5g", "appliedRadios": ["5G"]}], "wpa2_enterprise": [ - {"ssid_name": "ssid_wpa2_eap_2g", "appliedRadios": ["2G"]}, - {"ssid_name": "ssid_wpa2_eap_5g", "appliedRadios": ["5G"]}], + {"ssid_name": "tls_ssid_wpa2_eap_2g", "appliedRadios": ["2G"]}, + {"ssid_name": "tls_ssid_wpa2_eap_5g", "appliedRadios": ["5G"]}], "wpa3_enterprise": [ - {"ssid_name": "ssid_wpa3_eap_2g", "appliedRadios": ["2G"]}, - {"ssid_name": "ssid_wpa3_eap_5g", "appliedRadios": ["5G"]}] + {"ssid_name": "tls_ssid_wpa3_eap_2g", "appliedRadios": ["2G"]}, + {"ssid_name": "tls_ssid_wpa3_eap_5g", "appliedRadios": ["5G"]}] }, "rf": {}, diff --git a/tests/e2e/basic/validation_of_operating_modes/nat_mode/client_connectivity/test_enterprise_tls.py b/tests/e2e/basic/validation_of_operating_modes/nat_mode/client_connectivity/test_enterprise_tls.py index 18a708ce4..ac0baf32b 100644 --- a/tests/e2e/basic/validation_of_operating_modes/nat_mode/client_connectivity/test_enterprise_tls.py +++ b/tests/e2e/basic/validation_of_operating_modes/nat_mode/client_connectivity/test_enterprise_tls.py @@ -8,14 +8,14 @@ setup_params_enterprise = { "mode": "NAT", "ssid_modes": { "wpa_enterprise": [ - {"ssid_name": "ssid_wpa_eap_2g", "appliedRadios": ["2G"]}, - {"ssid_name": "ssid_wpa_eap_5g", "appliedRadios": ["5G"]}], + {"ssid_name": "tls_ssid_wpa_eap_2g", "appliedRadios": ["2G"]}, + {"ssid_name": "tls_ssid_wpa_eap_5g", "appliedRadios": ["5G"]}], "wpa2_enterprise": [ - {"ssid_name": "ssid_wpa2_eap_2g", "appliedRadios": ["2G"]}, - {"ssid_name": "ssid_wpa2_eap_5g", "appliedRadios": ["5G"]}], + {"ssid_name": "tls_ssid_wpa2_eap_2g", "appliedRadios": ["2G"]}, + {"ssid_name": "tls_ssid_wpa2_eap_5g", "appliedRadios": ["5G"]}], "wpa3_enterprise": [ - {"ssid_name": "ssid_wpa3_eap_2g", "appliedRadios": ["2G"]}, - {"ssid_name": "ssid_wpa3_eap_5g", "appliedRadios": ["5G"]}]}, + {"ssid_name": "tls_ssid_wpa3_eap_2g", "appliedRadios": ["2G"]}, + {"ssid_name": "tls_ssid_wpa3_eap_5g", "appliedRadios": ["5G"]}]}, "rf": {}, "radius": True diff --git a/tests/e2e/basic/validation_of_operating_modes/vlan_mode/client_connectivity/test_enterprise_tls.py b/tests/e2e/basic/validation_of_operating_modes/vlan_mode/client_connectivity/test_enterprise_tls.py index dd008f81f..4b898ca80 100644 --- a/tests/e2e/basic/validation_of_operating_modes/vlan_mode/client_connectivity/test_enterprise_tls.py +++ b/tests/e2e/basic/validation_of_operating_modes/vlan_mode/client_connectivity/test_enterprise_tls.py @@ -9,14 +9,14 @@ setup_params_enterprise = { "ssid_modes": { "wpa_enterprise": [ - {"ssid_name": "ssid_wpa_eap_2g", "appliedRadios": ["2G"], "vlan": 100}, - {"ssid_name": "ssid_wpa_eap_5g", "appliedRadios": ["5G"], "vlan": 100}], + {"ssid_name": "tls_ssid_wpa_eap_2g", "appliedRadios": ["2G"], "vlan": 100}, + {"ssid_name": "tls_ssid_wpa_eap_5g", "appliedRadios": ["5G"], "vlan": 100}], "wpa2_enterprise": [ - {"ssid_name": "ssid_wpa2_eap_2g", "appliedRadios": ["2G"], "vlan": 100}, - {"ssid_name": "ssid_wpa2_eap_5g", "appliedRadios": ["5G"], "vlan": 100}], + {"ssid_name": "tls_ssid_wpa2_eap_2g", "appliedRadios": ["2G"], "vlan": 100}, + {"ssid_name": "tls_ssid_wpa2_eap_5g", "appliedRadios": ["5G"], "vlan": 100}], "wpa3_enterprise": [ - {"ssid_name": "ssid_wpa3_eap_2g", "appliedRadios": ["2G"], "vlan": 100}, - {"ssid_name": "ssid_wpa3_eap_5g", "appliedRadios": ["5G"], "vlan": 100}]}, + {"ssid_name": "tls_ssid_wpa3_eap_2g", "appliedRadios": ["2G"], "vlan": 100}, + {"ssid_name": "tls_ssid_wpa3_eap_5g", "appliedRadios": ["5G"], "vlan": 100}]}, "rf": {}, "radius": True From 0ca33a406f1bb1b69ca35438467274b54a640406 Mon Sep 17 00:00:00 2001 From: Dmitry Dunaev <83591011+dunaev-opsfleet@users.noreply.github.com> Date: Fri, 11 Mar 2022 12:07:51 +0300 Subject: [PATCH 004/100] [WIFI-6851] Add: postgresql as DB for OWLS tests (#423) Signed-off-by: Dmitry Dunaev --- .github/workflows/uc_loadsim.yml | 4 ++-- .../values.ucentral-qa.owls-enabled.yaml | 13 +++++++++++++ helm/ucentral/values.ucentral-qa.test-nodes.yaml | 16 ++++++++++++++++ 3 files changed, 31 insertions(+), 2 deletions(-) diff --git a/.github/workflows/uc_loadsim.yml b/.github/workflows/uc_loadsim.yml index e6876133b..50edb4117 100644 --- a/.github/workflows/uc_loadsim.yml +++ b/.github/workflows/uc_loadsim.yml @@ -322,7 +322,7 @@ jobs: - name: docker-compose-deployment image: docker/compose:latest command: ["/bin/sh", "-c"] - args: ["apk add git; wget https://raw.githubusercontent.com/Telecominfraproject/wlan-testing/feature/wifi-6851--owls-parameters/docker-compose/openwifi/deploy_owls.sh; chmod +x deploy_owls.sh; sh deploy_owls.sh"] + args: ["apk add git; wget https://raw.githubusercontent.com/Telecominfraproject/wlan-testing/master/docker-compose/openwifi/deploy_owls.sh; chmod +x deploy_owls.sh; sh deploy_owls.sh"] env: - name: DOCKER_TLS_VERIFY value: "true" @@ -498,7 +498,7 @@ jobs: - name: docker-compose-deployment image: docker/compose:latest command: ["/bin/sh", "-c"] - args: ["apk add git; wget https://raw.githubusercontent.com/Telecominfraproject/wlan-testing/feature/wifi-6851--owls-parameters/docker-compose/openwifi/deploy.sh; chmod +x deploy.sh; sh deploy.sh"] + args: ["apk add git; wget https://raw.githubusercontent.com/Telecominfraproject/wlan-testing/master/docker-compose/openwifi/deploy.sh; chmod +x deploy.sh; sh deploy.sh"] env: - name: DOCKER_TLS_VERIFY value: "true" diff --git a/helm/ucentral/values.ucentral-qa.owls-enabled.yaml b/helm/ucentral/values.ucentral-qa.owls-enabled.yaml index 9031a4463..3007ad026 100644 --- a/helm/ucentral/values.ucentral-qa.owls-enabled.yaml +++ b/helm/ucentral/values.ucentral-qa.owls-enabled.yaml @@ -12,6 +12,11 @@ owgw: configProperties: simulatorid: 53494D020202 + storage.type: postgresql + storage.type.postgresql.host: owgw-pgsql + storage.type.postgresql.database: owgw + storage.type.postgresql.username: owgw + storage.type.postgresql.password: owgw resources: requests: @@ -21,6 +26,14 @@ owgw: cpu: 2000m memory: 3000Mi + postgresql: + enabled: true + fullnameOverride: owgw-pgsql + + postgresqlDatabase: owgw + postgresqlUsername: owgw + postgresqlPassword: owgw + owls: enabled: true services: diff --git a/helm/ucentral/values.ucentral-qa.test-nodes.yaml b/helm/ucentral/values.ucentral-qa.test-nodes.yaml index 0886a56c6..ccacd5345 100644 --- a/helm/ucentral/values.ucentral-qa.test-nodes.yaml +++ b/helm/ucentral/values.ucentral-qa.test-nodes.yaml @@ -70,6 +70,22 @@ owls: operator: "Exists" effect: "NoSchedule" + postgresql: + primary: + nodeSelector: + env: tests + tolerations: + - key: "tests" + operator: "Exists" + effect: "NoSchedule" + readReplicas: + nodeSelector: + env: tests + tolerations: + - key: "tests" + operator: "Exists" + effect: "NoSchedule" + owlsui: nodeSelector: env: tests From 35a9f712c7c42cde749543b9bb17d8afa205b2cb Mon Sep 17 00:00:00 2001 From: haricharan-jaka Date: Sat, 12 Mar 2022 12:27:11 +0530 Subject: [PATCH 005/100] Added Perfecto details for data retreival Signed-off-by: haricharan-jaka --- tests/configuration.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/configuration.py b/tests/configuration.py index 38a399365..d25ff8d1a 100644 --- a/tests/configuration.py +++ b/tests/configuration.py @@ -37,6 +37,7 @@ with open('lab_info.json', 'r') as f: CONFIGURATION = data["CONFIGURATION"] +PERFECTO_DETAILS = data["PERFECTO_DETAILS"] RADIUS_SERVER_DATA = data["RADIUS_SERVER_DATA"] From 8a4dbf0195853b7a07c8c7f48316ccff642856de Mon Sep 17 00:00:00 2001 From: haricharan-jaka Date: Sat, 12 Mar 2022 12:29:09 +0530 Subject: [PATCH 006/100] Added device option and a function to fetch device details from lab_info.json Signed-off-by: haricharan-jaka --- tests/conftest.py | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/tests/conftest.py b/tests/conftest.py index 1ce0f9d99..5b327413e 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -38,6 +38,7 @@ import pytest from lanforge.lf_tests import RunTest from cv_test_manager import cv_test from configuration import CONFIGURATION +from configuration import PERFECTO_DETAILS from configuration import open_flow from configuration import RADIUS_SERVER_DATA from configuration import RADIUS_ACCOUNTING_DATA @@ -146,6 +147,12 @@ def pytest_addoption(parser): default=False, help="skip cloud controller and AP, run only lanforge tests on a ssid preconfigured" ) + parser.addoption( + "--device", + default="iPhone-11", + help="Device Model which is needed to test" + ) + # Perfecto Parameters parser.addini("perfectoURL", "Cloud URL") @@ -195,6 +202,11 @@ def testbed(request): var = request.config.getoption("--testbed") yield var +@pytest.fixture(scope="session") +def device(request): + """yields the device option selection""" + var = request.config.getoption("--device") + yield var @pytest.fixture(scope="session") def should_upload_firmware(request): @@ -258,6 +270,14 @@ def get_configuration(testbed, request): LOGGER.info("Selected the lab Info data: " + str((CONFIGURATION[testbed]))) yield CONFIGURATION[testbed] +@pytest.fixture(scope="session") +def get_device_configuration(device, request): + """yields the selected device information from lab info file (configuration.py)""" + + LOGGER.info("Selected the lab Info data: " + str((PERFECTO_DETAILS[device]))) + print(PERFECTO_DETAILS[device]) + yield PERFECTO_DETAILS[device] + @pytest.fixture(scope="session") def get_apnos(): From f25109215804d290c8fd6d9739f12f53e77a53db Mon Sep 17 00:00:00 2001 From: haricharan-jaka Date: Sat, 12 Mar 2022 12:29:57 +0530 Subject: [PATCH 007/100] Added all the Interop related details Signed-off-by: haricharan-jaka --- tests/lab_info.json | 82 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 82 insertions(+) diff --git a/tests/lab_info.json b/tests/lab_info.json index 7d21d8215..2f7b241f8 100644 --- a/tests/lab_info.json +++ b/tests/lab_info.json @@ -759,6 +759,88 @@ } }, +"PERFECTO_DETAILS" : { + "securityToken":"eyJhbGciOiJIUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICI3NzkzZGM0Ni1jZmU4LTQ4ODMtYjhiOS02ZWFlZGU2OTc2MDkifQ.eyJpYXQiOjE2MzI4Mzc2NDEsImp0aSI6IjAwZGRiYWY5LWQwYjMtNDRjNS1hYjVlLTkyNzFlNzc5ZGUzNiIsImlzcyI6Imh0dHBzOi8vYXV0aDIucGVyZmVjdG9tb2JpbGUuY29tL2F1dGgvcmVhbG1zL3RpcC1wZXJmZWN0b21vYmlsZS1jb20iLCJhdWQiOiJodHRwczovL2F1dGgyLnBlcmZlY3RvbW9iaWxlLmNvbS9hdXRoL3JlYWxtcy90aXAtcGVyZmVjdG9tb2JpbGUtY29tIiwic3ViIjoiODNkNjUxMWQtNTBmZS00ZWM5LThkNzAtYTA0ZjBkNTdiZDUyIiwidHlwIjoiT2ZmbGluZSIsImF6cCI6Im9mZmxpbmUtdG9rZW4tZ2VuZXJhdG9yIiwibm9uY2UiOiI2ZjE1YzYxNy01YTU5LTQyOWEtODc2Yi1jOTQxMTQ1ZDFkZTIiLCJzZXNzaW9uX3N0YXRlIjoiYmRjZTFmYTMtMjlkYi00MmFmLWI5YWMtYjZjZmJkMDEyOTFhIiwic2NvcGUiOiJvcGVuaWQgcHJvZmlsZSBvZmZsaW5lX2FjY2VzcyBlbWFpbCJ9.5R85_1R38ZFXv_wIjjCIsj8NJm1p66dCsLJI5DBEmks", + "projectName": "TIP-PyTest-Execution", + "projectVersion": "1.0", + "jobName": "Tip-manual-test", + "jobNumber": 38, + "reportTags": "TestTag", + "perfectoURL":"tip", + "iPhone-11": { + "model-iOS": "iPhone-11", + "bundleId-iOS": "com.apple.Preferences", + "platformName-iOS": "iOS", + "bundleId-iOS-Settings": "com.apple.Preferences", + "bundleId-iOS-Ping": "com.deftapps.ping", + "browserType-iOS": "Safari", + "bundleId-iOS-Safari": "com.apple.mobilesafari", + "platformName-android": "Android", + "appPackage-android": "com.android.settings" + }, + "iPhone-12": { + "model-iOS": "iPhone-12", + "bundleId-iOS": "com.apple.Preferences", + "platformName-iOS": "iOS", + "bundleId-iOS-Settings": "com.apple.Preferences", + "bundleId-iOS-Ping": "com.deftapps.ping", + "browserType-iOS": "Safari", + "bundleId-iOS-Safari": "com.apple.mobilesafari", + "platformName-android": "Android", + "appPackage-android": "com.android.settings" + }, + "iPhone-7": { + "model-iOS": "iPhone-7", + "bundleId-iOS": "com.apple.Preferences", + "platformName-iOS": "iOS", + "bundleId-iOS-Settings": "com.apple.Preferences", + "bundleId-iOS-Ping": "com.deftapps.ping", + "browserType-iOS": "Safari", + "bundleId-iOS-Safari": "com.apple.mobilesafari", + "platformName-android": "Android", + "appPackage-android": "com.android.settings" + }, + "iPhone-XR": { + "model-iOS": "iPhone-XR", + "bundleId-iOS": "com.apple.Preferences", + "platformName-iOS": "iOS", + "bundleId-iOS-Settings": "com.apple.Preferences", + "bundleId-iOS-Ping": "com.deftapps.ping", + "browserType-iOS": "Safari", + "bundleId-iOS-Safari": "com.apple.mobilesafari", + "platformName-android": "Android", + "appPackage-android": "com.android.settings" + }, + "Galaxy S20": { + "platformName-android": "Android", + "model-android": "Galaxy S20", + "appPackage-android": "com.android.settings", + "bundleId-iOS-Settings": "com.apple.Preferences", + "bundleId-iOS-Safari": "com.apple.mobilesafari" + }, + "Galaxy S10.*": { + "platformName-android": "Android", + "model-android": "Galaxy S10.*", + "appPackage-android": "com.android.settings", + "bundleId-iOS-Settings": "com.apple.Preferences", + "bundleId-iOS-Safari": "com.apple.mobilesafari" + }, + "Galaxy S9": { + "platformName-android": "Android", + "model-android": "Galaxy S9", + "appPackage-android": "com.android.settings", + "bundleId-iOS-Settings": "com.apple.Preferences", + "bundleId-iOS-Safari": "com.apple.mobilesafari" + }, + "Pixel 4": { + "platformName-android": "Android", + "model-android": "Pixel 4", + "appPackage-android": "com.android.settings", + "bundleId-iOS-Settings": "com.apple.Preferences", + "bundleId-iOS-Safari": "com.apple.mobilesafari" + } +}, + "RADIUS_SERVER_DATA" : { "ip": "10.10.1.221", "port": 1812, From da1975a585427e9529be3a9cc0928e76fb7eaf9c Mon Sep 17 00:00:00 2001 From: haricharan-jaka Date: Sat, 12 Mar 2022 12:31:25 +0530 Subject: [PATCH 008/100] Changed all the things needed from pytest.ini to configuration Signed-off-by: haricharan-jaka --- tests/e2e/interOp/conftest.py | 109 +++++++++++++++++----------------- 1 file changed, 55 insertions(+), 54 deletions(-) diff --git a/tests/e2e/interOp/conftest.py b/tests/e2e/interOp/conftest.py index 96c5f0b5f..7dce046ee 100644 --- a/tests/e2e/interOp/conftest.py +++ b/tests/e2e/interOp/conftest.py @@ -41,6 +41,7 @@ if "tests" not in sys.path: sys.path.append(f'../tests') from configuration import CONFIGURATION +from configuration import PERFECTO_DETAILS from urllib3 import exceptions @@ -52,68 +53,68 @@ testCaseReportURL = [] @pytest.fixture(scope="function") -def get_PassPointConniOS_data(request): +def get_PassPointConniOS_data(request, get_device_configuration): passPoint_data = { "netAnalyzer-inter-Con-Xpath": "//*[@label='Network Connected']/parent::*/XCUIElementTypeButton", - "bundleId-iOS-Settings": request.config.getini("bundleId-iOS-Settings"), - "bundleId-iOS-Ping": request.config.getini("bundleId-iOS-Ping") + "bundleId-iOS-Settings": get_device_configuration["bundleId-iOS-Settings"], + "bundleId-iOS-Ping": get_device_configuration["bundleId-iOS-Ping"] } yield passPoint_data @pytest.fixture(scope="function") -def get_APToMobileDevice_data(request): +def get_APToMobileDevice_data(request, get_device_configuration): passPoint_data = { "webURL": "https://www.google.com", "lblSearch": "//*[@class='gLFyf']", "elelSearch": "(//*[@class='sbic sb43'])[1]", "BtnRunSpeedTest": "//*[text()='RUN SPEED TEST']", - "bundleId-iOS-Settings": request.config.getini("bundleId-iOS-Settings"), - "bundleId-iOS-Safari": request.config.getini("bundleId-iOS-Safari"), + "bundleId-iOS-Settings": get_device_configuration["bundleId-iOS-Settings"], + "bundleId-iOS-Safari": get_device_configuration["bundleId-iOS-Safari"], "downloadMbps": "//*[@id='knowledge-verticals-internetspeedtest__download']/P[@class='spiqle']", "UploadMbps": "//*[@id='knowledge-verticals-internetspeedtest__upload']/P[@class='spiqle']", # Android - "platformName-android": request.config.getini("platformName-android"), - "appPackage-android": request.config.getini("appPackage-android") + "platformName-android": get_device_configuration["platformName-android"], + "appPackage-android": get_device_configuration["appPackage-android"] } yield passPoint_data @pytest.fixture(scope="function") -def get_AccessPointConn_data(request): +def get_AccessPointConn_data(request, get_device_configuration): passPoint_data = { - "bundleId-iOS-Settings": request.config.getini("bundleId-iOS-Settings"), - "bundleId-iOS-Ping": request.config.getini("bundleId-iOS-Ping") + "bundleId-iOS-Settings": get_device_configuration["bundleId-iOS-Settings"], + "bundleId-iOS-Ping": get_device_configuration["bundleId-iOS-Ping"] } yield passPoint_data @pytest.fixture(scope="function") -def get_ToggleAirplaneMode_data(request): +def get_ToggleAirplaneMode_data(request, get_device_configuration): passPoint_data = { "webURL": "https://www.google.com", "lblSearch": "//*[@class='gLFyf']", "elelSearch": "(//*[@class='sbic sb43'])[1]", "BtnRunSpeedTest": "//*[text()='RUN SPEED TEST']", - "bundleId-iOS-Settings": request.config.getini("bundleId-iOS-Settings"), - "bundleId-iOS-Safari": request.config.getini("bundleId-iOS-Safari"), + "bundleId-iOS-Settings": get_device_configuration["bundleId-iOS-Settings"], + "bundleId-iOS-Safari": get_device_configuration["bundleId-iOS-Safari"], "downloadMbps": "//*[@id='knowledge-verticals-internetspeedtest__download']/P[@class='spiqle']", "UploadMbps": "//*[@id='knowledge-verticals-internetspeedtest__upload']/P[@class='spiqle']", # Android - "platformName-android": request.config.getini("platformName-android"), - "appPackage-android": request.config.getini("appPackage-android") + "platformName-android": get_device_configuration["platformName-android"], + "appPackage-android": get_device_configuration["appPackage-android"] } yield passPoint_data @pytest.fixture(scope="function") -def get_ToggleWifiMode_data(request): +def get_ToggleWifiMode_data(request,get_device_configuration): passPoint_data = { # iOS - "bundleId-iOS-Settings": request.config.getini("bundleId-iOS-Settings"), + "bundleId-iOS-Settings": get_device_configuration["bundleId-iOS-Settings"], # Android - "platformName-android": request.config.getini("platformName-android"), - "appPackage-android": request.config.getini("appPackage-android") + "platformName-android": get_device_configuration["platformName-android"], + "appPackage-android": get_device_configuration["appPackage-android"] } yield passPoint_data @@ -387,7 +388,7 @@ def pytest_sessionfinish(session, exitstatus): @pytest.fixture(scope="function") -def setup_perfectoMobile_android(request): +def setup_perfectoMobile_android(request, get_device_configuration): from appium import webdriver driver = None reporting_client = None @@ -396,11 +397,11 @@ def setup_perfectoMobile_android(request): urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning) capabilities = { - 'platformName': request.config.getini("platformName-android"), - 'model': request.config.getini("model-android"), + 'platformName': get_device_configuration["platformName-android"], + 'model': get_device_configuration["model-android"], 'browserName': 'mobileOS', # 'automationName' : 'Appium', - 'securityToken': request.config.getini("securityToken"), + 'securityToken': PERFECTO_DETAILS["securityToken"], 'useAppiumForWeb': 'false', 'useAppiumForHybrid': 'false', # 'bundleId' : request.config.getini("appPackage-android"), @@ -411,7 +412,7 @@ def setup_perfectoMobile_android(request): pytest.exit("Exiting Pytest") driver = webdriver.Remote( - 'https://' + request.config.getini("perfectoURL") + '.perfectomobile.com/nexperience/perfectomobile/wd/hub', + 'https://' + PERFECTO_DETAILS["perfectoURL"] + '.perfectomobile.com/nexperience/perfectomobile/wd/hub', capabilities) driver.implicitly_wait(2) @@ -426,11 +427,11 @@ def setup_perfectoMobile_android(request): print("\nUpgrade Python to 3.9 to avoid test_ string in your test case name, see below URL") # print("https://www.andreagrandi.it/2020/10/11/python39-introduces-removeprefix-removesuffix/") - projectname = request.config.getini("projectName") - projectversion = request.config.getini("projectVersion") - jobname = request.config.getini("jobName") - jobnumber = request.config.getini("jobNumber") - tags = request.config.getini("reportTags") + projectname = PERFECTO_DETAILS["projectName"] + projectversion = PERFECTO_DETAILS["projectVersion"] + jobname = PERFECTO_DETAILS["jobName"] + jobnumber = PERFECTO_DETAILS["jobNumber"] + tags = PERFECTO_DETAILS["reportTags"] testCaseName = TestCaseName # print("\nSetting Perfecto ReportClient....") @@ -499,7 +500,7 @@ def reportPerfecto(testCaseName, testCaseStatus, testErrorMsg, reportURL): @pytest.fixture(scope="class") -def setup_perfectoMobileWeb(request): +def setup_perfectoMobileWeb(request, get_device_configuration): from selenium import webdriver rdriver = None reporting_client = None @@ -508,10 +509,10 @@ def setup_perfectoMobileWeb(request): urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning) capabilities = { - 'platformName': request.config.getini("platformName-iOS"), - 'model': request.config.getini("model-iOS"), - 'browserName': request.config.getini("browserType-iOS"), - 'securityToken': request.config.getini("securityToken"), + 'platformName': get_device_configuration["platformName-iOS"], + 'model': get_device_configuration["model-iOS"], + 'browserName': get_device_configuration["browserType-iOS"], + 'securityToken': get_device_configuration["securityToken"], } if not is_device_Available_timeout(request, capabilities['model']): @@ -519,16 +520,16 @@ def setup_perfectoMobileWeb(request): pytest.exit("Exiting Pytest") rdriver = webdriver.Remote( - 'https://' + request.config.getini("perfectoURL") + '.perfectomobile.com/nexperience/perfectomobile/wd/hub', + 'https://' + PERFECTO_DETAILS["perfectoURL"] + '.perfectomobile.com/nexperience/perfectomobile/wd/hub', capabilities) rdriver.implicitly_wait(2) - projectname = request.config.getini("projectName") - projectversion = request.config.getini("projectVersion") - jobname = request.config.getini("jobName") - jobnumber = request.config.getini("jobNumber") - tags = request.config.getini("reportTags") - testCaseName = request.config.getini("jobName") + projectname = PERFECTO_DETAILS["projectName"] + projectversion = PERFECTO_DETAILS["projectVersion"] + jobname = PERFECTO_DETAILS["jobName"] + jobnumber = PERFECTO_DETAILS["jobNumber"] + tags = PERFECTO_DETAILS["reportTags"] + testCaseName = PERFECTO_DETAILS["jobName"] print("Setting Perfecto ReportClient....") perfecto_execution_context = PerfectoExecutionContext(rdriver, tags, Job(jobname, jobnumber), @@ -561,7 +562,7 @@ def setup_perfectoMobileWeb(request): @pytest.fixture(scope="function") -def setup_perfectoMobile_iOS(request): +def setup_perfectoMobile_iOS(request, get_device_configuration): from appium import webdriver driver = None reporting_client = None @@ -570,11 +571,11 @@ def setup_perfectoMobile_iOS(request): urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning) capabilities = { - 'platformName': request.config.getini("platformName-iOS"), - 'model': request.config.getini("model-iOS"), + 'platformName': get_device_configuration["platformName-iOS"], + 'model': get_device_configuration["model-iOS"], 'browserName': 'safari', # 'automationName' : 'Appium', - 'securityToken': request.config.getini("securityToken"), + 'securityToken': PERFECTO_DETAILS["securityToken"], 'useAppiumForWeb': 'false', 'autoAcceptAlerts': 'true', # 'bundleId' : request.config.getini("bundleId-iOS"), @@ -587,7 +588,7 @@ def setup_perfectoMobile_iOS(request): pytest.exit("Exiting Pytest") driver = webdriver.Remote( - 'https://' + request.config.getini("perfectoURL") + '.perfectomobile.com/nexperience/perfectomobile/wd/hub', + 'https://' + PERFECTO_DETAILS["perfectoURL"] + '.perfectomobile.com/nexperience/perfectomobile/wd/hub', capabilities) driver.implicitly_wait(2) @@ -602,11 +603,11 @@ def setup_perfectoMobile_iOS(request): print("\nUpgrade Python to 3.9 to avoid test_ string in your test case name, see below URL") # print("https://www.andreagrandi.it/2020/10/11/python39-introduces-removeprefix-removesuffix/") - projectname = request.config.getini("projectName") - projectversion = request.config.getini("projectVersion") - jobname = request.config.getini("jobName") - jobnumber = request.config.getini("jobNumber") - tags = request.config.getini("reportTags") + projectname = PERFECTO_DETAILS["projectName"] + projectversion = PERFECTO_DETAILS["projectVersion"] + jobname = PERFECTO_DETAILS["jobName"] + jobnumber = PERFECTO_DETAILS["jobNumber"] + tags = PERFECTO_DETAILS["reportTags"] testCaseName = TestCaseName print("\nSetting Perfecto ReportClient....") @@ -652,8 +653,8 @@ def setup_perfectoMobile_iOS(request): yield driver, reporting_client # Does a HTTP GET request to Perfecto cloud and gets response and information related to a headset def response_device(request, model): - securityToken = request.config.getini("securityToken") - perfectoURL = request.config.getini("perfectoURL") + securityToken = PERFECTO_DETAILS["securityToken"] + perfectoURL = PERFECTO_DETAILS["perfectoURL"] url = f"https://{perfectoURL}.perfectomobile.com/services/handsets?operation=list&securityToken={securityToken}&model={model}" resp = requests.get(url=url) return ET.fromstring(resp.content) From 7acbfb0c966ab962741336136b80b38d9a1aeaaa Mon Sep 17 00:00:00 2001 From: haricharan-jaka Date: Sat, 12 Mar 2022 12:32:08 +0530 Subject: [PATCH 009/100] Changed the security key for wpa2 5g ssid Signed-off-by: haricharan-jaka --- .../client_connect_test/iOS/test_general_security_mode.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/e2e/interOp/validation_of_operating_modes/vlan_mode/client_connect_test/iOS/test_general_security_mode.py b/tests/e2e/interOp/validation_of_operating_modes/vlan_mode/client_connect_test/iOS/test_general_security_mode.py index 9208e6e07..cfc90d00d 100644 --- a/tests/e2e/interOp/validation_of_operating_modes/vlan_mode/client_connect_test/iOS/test_general_security_mode.py +++ b/tests/e2e/interOp/validation_of_operating_modes/vlan_mode/client_connect_test/iOS/test_general_security_mode.py @@ -35,7 +35,7 @@ setup_params_general = { "wpa2_personal": [ {"ssid_name": "ssid_wpa2_2g_vlan", "appliedRadios": ["2G"], "security_key": "something", "vlan": 100}, {"ssid_name": "ssid_wpa2_5g_vlan", "appliedRadios": ["5G"], - "security_key": "something_vlan", "vlan": 100}]}, + "security_key": "something", "vlan": 100}]}, "rf": {}, "radius": False } From 279b613410316653212c8e6387b63b40adaae433 Mon Sep 17 00:00:00 2001 From: haricharan-jaka Date: Sat, 12 Mar 2022 12:38:20 +0530 Subject: [PATCH 010/100] Removed Interop details from pytest.ini file Signed-off-by: haricharan-jaka --- tests/pytest.ini | 32 -------------------------------- 1 file changed, 32 deletions(-) diff --git a/tests/pytest.ini b/tests/pytest.ini index 6dd1d3fb4..075e20c43 100644 --- a/tests/pytest.ini +++ b/tests/pytest.ini @@ -36,38 +36,6 @@ tr_project_id=WLAN tr_prefix=TIP_ milestone=29 -#--- Perfecto parameters ----- -perfectoURL=tip -securityToken=eyJhbGciOiJIUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICI3NzkzZGM0Ni1jZmU4LTQ4ODMtYjhiOS02ZWFlZGU2OTc2MDkifQ.eyJpYXQiOjE2MzI4Mzc2NDEsImp0aSI6IjAwZGRiYWY5LWQwYjMtNDRjNS1hYjVlLTkyNzFlNzc5ZGUzNiIsImlzcyI6Imh0dHBzOi8vYXV0aDIucGVyZmVjdG9tb2JpbGUuY29tL2F1dGgvcmVhbG1zL3RpcC1wZXJmZWN0b21vYmlsZS1jb20iLCJhdWQiOiJodHRwczovL2F1dGgyLnBlcmZlY3RvbW9iaWxlLmNvbS9hdXRoL3JlYWxtcy90aXAtcGVyZmVjdG9tb2JpbGUtY29tIiwic3ViIjoiODNkNjUxMWQtNTBmZS00ZWM5LThkNzAtYTA0ZjBkNTdiZDUyIiwidHlwIjoiT2ZmbGluZSIsImF6cCI6Im9mZmxpbmUtdG9rZW4tZ2VuZXJhdG9yIiwibm9uY2UiOiI2ZjE1YzYxNy01YTU5LTQyOWEtODc2Yi1jOTQxMTQ1ZDFkZTIiLCJzZXNzaW9uX3N0YXRlIjoiYmRjZTFmYTMtMjlkYi00MmFmLWI5YWMtYjZjZmJkMDEyOTFhIiwic2NvcGUiOiJvcGVuaWQgcHJvZmlsZSBvZmZsaW5lX2FjY2VzcyBlbWFpbCJ9.5R85_1R38ZFXv_wIjjCIsj8NJm1p66dCsLJI5DBEmks -#PS Token -#securityToken=eyJhbGciOiJIUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICIyODhhNDIyNS1jOTE1LTQwZDctOTc2YS04MDhiMWE3YTFmODYifQ.eyJpYXQiOjE2MjA4NTU1NTcsImp0aSI6IjNiMWJiNWNhLTkzOTgtNDViOC04YmZkLTAxNjdhNGZjNDY1NCIsImlzcyI6Imh0dHBzOi8vYXV0aC5wZXJmZWN0b21vYmlsZS5jb20vYXV0aC9yZWFsbXMvcHMtcGVyZmVjdG9tb2JpbGUtY29tIiwiYXVkIjoiaHR0cHM6Ly9hdXRoLnBlcmZlY3RvbW9iaWxlLmNvbS9hdXRoL3JlYWxtcy9wcy1wZXJmZWN0b21vYmlsZS1jb20iLCJzdWIiOiIzOTNiMzFhNC00MmJlLTQ2YjEtODkwZS1iZGU3NjdlYTNiNDYiLCJ0eXAiOiJPZmZsaW5lIiwiYXpwIjoib2ZmbGluZS10b2tlbi1nZW5lcmF0b3IiLCJub25jZSI6IjI3MTY4ZjBmLTdlMmItNGI3YS1hZjNjLWFhMGE1NjhkZjE2ZCIsInNlc3Npb25fc3RhdGUiOiJlOWZjZTQ5Mi05NDA3LTQ1ZDItYjU4NS02ZDFiNTAzYzM4ZTUiLCJzY29wZSI6Im9wZW5pZCBvZmZsaW5lX2FjY2VzcyJ9.Z_rJHVkrmR26fZ366yLUSkt2oZX4a8KN7IRCd_QG3qo -#demo Cloud -#securityToken=eyJhbGciOiJIUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICI4YmI4YmZmZS1kMzBjLTQ2MjctYmMxMS0zNTYyMmY1ZDkyMGYifQ.eyJpYXQiOjE2MjA5MTMzMjAsImp0aSI6ImRkOWI3OTFiLTA5NzUtNGVhMC05NDczLWU2MjEzOThhN2U0NyIsImlzcyI6Imh0dHBzOi8vYXV0aC5wZXJmZWN0b21vYmlsZS5jb20vYXV0aC9yZWFsbXMvZGVtby1wZXJmZWN0b21vYmlsZS1jb20iLCJhdWQiOiJodHRwczovL2F1dGgucGVyZmVjdG9tb2JpbGUuY29tL2F1dGgvcmVhbG1zL2RlbW8tcGVyZmVjdG9tb2JpbGUtY29tIiwic3ViIjoiZjAyNGVkZGItODZkMy00OTA5LThhZjQtOGY1OTA1Yzc5ZjA4IiwidHlwIjoiT2ZmbGluZSIsImF6cCI6Im9mZmxpbmUtdG9rZW4tZ2VuZXJhdG9yIiwibm9uY2UiOiI5ZDdkMjI5Ny1lYzk1LTQ5NjUtYmRmMC1mZWJiYTk4NzI1MzUiLCJzZXNzaW9uX3N0YXRlIjoiMTI1NjFlMDQtMGUwMS00ZTYxLWE4NjMtMGQ2N2RhNzc1NjhiIiwic2NvcGUiOiJvcGVuaWQgb2ZmbGluZV9hY2Nlc3MifQ.voz1Fca_tOlPDMbIMsoPvTmZHBioeMUetA2sVsQ_SWw - -# Perfecto CI Report -projectName=TIP-PyTest-Execution -projectVersion=1.0 -jobName=Tip-RajTest-Android -jobNumber=2 -reportTags=TestTag - -# iOS Device Capabilities -#manufacturer-iOS=Apple -model-iOS=iPhone-11 -bundleId-iOS=com.apple.Preferences -platformName-iOS=iOS -#default iOS settings app -bundleId-iOS-Settings=com.apple.Preferences -bundleId-iOS-Ping=com.deftapps.ping -#browserType-iOS=Safari -browserType-iOS=Safari -bundleId-iOS-Safari=com.apple.mobilesafari - -# Android Device Capabilities -platformName-android=Android -model-android=Galaxy S20 - -appPackage-android=com.android.settings filterwarnings=ignore::UserWarning From d12c0d4f2760e157537be3710f46496b184d5b98 Mon Sep 17 00:00:00 2001 From: haricharan-jaka Date: Sat, 12 Mar 2022 12:46:38 +0530 Subject: [PATCH 011/100] Added --device option in Additional arguments of Interop workflow Signed-off-by: haricharan-jaka --- .github/workflows/interop.yml | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/.github/workflows/interop.yml b/.github/workflows/interop.yml index 8a9d74f6f..9a063f2ba 100644 --- a/.github/workflows/interop.yml +++ b/.github/workflows/interop.yml @@ -73,7 +73,7 @@ jobs: marker_expression: "${{ needs.vars.outputs.marker_overwrite || 'interop_uc_sanity and client_connect and android and not wpa3_personal' }}" configuration: "${{ secrets.LAB_CONFIGURATION_JSON }}" testing_docker_image: tip-tip-wlan-cloud-docker-repo.jfrog.io/cloud-sdk-nightly:${{ github.run_id }} - additional_args: "-o model-android='Galaxy S9' -o 'jobName=Github-Interop-galaxy-s9' -o 'jobNumber=${{ github.run_number }}' --skip-lanforge" + additional_args: " --device='Galaxy S9' -o 'jobName=Github-Interop-galaxy-s9' -o 'jobNumber=${{ github.run_number }}' --skip-lanforge" allure_results_artifact_name: allure-results-galaxy-s9 # necessary because if conditionals in composite actions are currently not respected @@ -100,7 +100,7 @@ jobs: marker_expression: "${{ needs.vars.outputs.marker_overwrite || 'interop_uc_sanity and client_connect and ios' }}" configuration: "${{ secrets.LAB_CONFIGURATION_JSON }}" testing_docker_image: tip-tip-wlan-cloud-docker-repo.jfrog.io/cloud-sdk-nightly:${{ github.run_id }} - additional_args: "-o model-iOS='iPhone-11' -o 'jobName=Github-Interop-iphone-11' -o 'jobNumber=${{ github.run_number }}' --skip-lanforge" + additional_args: " --device='iPhone-11' -o 'jobName=Github-Interop-iphone-11' -o 'jobNumber=${{ github.run_number }}' --skip-lanforge" allure_results_artifact_name: allure-results-iphone-11 # necessary because if conditionals in composite actions are currently not respected @@ -128,7 +128,7 @@ jobs: marker_expression: "${{ needs.vars.outputs.marker_overwrite || 'interop_uc_sanity and client_connect and android' }}" configuration: "${{ secrets.LAB_CONFIGURATION_JSON }}" testing_docker_image: tip-tip-wlan-cloud-docker-repo.jfrog.io/cloud-sdk-nightly:${{ github.run_id }} - additional_args: "-o model-android='Galaxy S10.*' -o 'jobName=Github-Interop-galaxy-s10' -o 'jobNumber=${{ github.run_number }}' --skip-lanforge" + additional_args: " --device='Galaxy S10.*'-o 'jobName=Github-Interop-galaxy-s10' -o 'jobNumber=${{ github.run_number }}' --skip-lanforge" allure_results_artifact_name: allure-results-galaxy-s10 # necessary because if conditionals in composite actions are currently not respected @@ -155,7 +155,7 @@ jobs: marker_expression: "${{ needs.vars.outputs.marker_overwrite || 'interop_uc_sanity and client_connect and ios' }}" configuration: "${{ secrets.LAB_CONFIGURATION_JSON }}" testing_docker_image: tip-tip-wlan-cloud-docker-repo.jfrog.io/cloud-sdk-nightly:${{ github.run_id }} - additional_args: "-o model-iOS='iPhone-7' -o 'jobName=Github-Interop-iphone-7' -o 'jobNumber=${{ github.run_number }}' --skip-lanforge" + additional_args: " --device='iPhone-7' -o 'jobName=Github-Interop-iphone-7' -o 'jobNumber=${{ github.run_number }}' --skip-lanforge" allure_results_artifact_name: allure-results-iphone-7 # necessary because if conditionals in composite actions are currently not respected @@ -183,7 +183,7 @@ jobs: marker_expression: "${{ needs.vars.outputs.marker_overwrite || 'interop_uc_sanity and client_connect and android' }}" configuration: "${{ secrets.LAB_CONFIGURATION_JSON }}" testing_docker_image: tip-tip-wlan-cloud-docker-repo.jfrog.io/cloud-sdk-nightly:${{ github.run_id }} - additional_args: "-o model-android='Galaxy S20' -o 'jobName=Github-Interop-galaxy-s20' -o 'jobNumber=${{ github.run_number }}' --skip-lanforge" + additional_args: " --device='Galaxy S20' -o 'jobName=Github-Interop-galaxy-s20' -o 'jobNumber=${{ github.run_number }}' --skip-lanforge" allure_results_artifact_name: allure-results-galaxy-s20 # necessary because if conditionals in composite actions are currently not respected @@ -210,7 +210,7 @@ jobs: marker_expression: "${{ needs.vars.outputs.marker_overwrite || 'interop_uc_sanity and client_connect and ios' }}" configuration: "${{ secrets.LAB_CONFIGURATION_JSON }}" testing_docker_image: tip-tip-wlan-cloud-docker-repo.jfrog.io/cloud-sdk-nightly:${{ github.run_id }} - additional_args: "-o model-iOS='iPhone-XR' -o 'jobName=Github-Interop-iphone-xr' -o 'jobNumber=${{ github.run_number }}' --skip-lanforge" + additional_args: " --device='iPhone-XR' -o 'jobName=Github-Interop-iphone-xr' -o 'jobNumber=${{ github.run_number }}' --skip-lanforge" allure_results_artifact_name: allure-results-iphone-xr # necessary because if conditionals in composite actions are currently not respected @@ -238,7 +238,7 @@ jobs: marker_expression: "${{ needs.vars.outputs.marker_overwrite || 'interop_uc_sanity and client_connect and android' }}" configuration: "${{ secrets.LAB_CONFIGURATION_JSON }}" testing_docker_image: tip-tip-wlan-cloud-docker-repo.jfrog.io/cloud-sdk-nightly:${{ github.run_id }} - additional_args: "-o model-android='Pixel 4' -o 'jobName=Github-Interop-pixel-4' -o 'jobNumber=${{ github.run_number }}' --skip-lanforge" + additional_args: " --device='Pixel 4' -o 'jobName=Github-Interop-pixel-4' -o 'jobNumber=${{ github.run_number }}' --skip-lanforge" allure_results_artifact_name: allure-results-pixel-4 # necessary because if conditionals in composite actions are currently not respected @@ -265,7 +265,7 @@ jobs: marker_expression: "${{ needs.vars.outputs.marker_overwrite || 'interop_uc_sanity and client_connect and ios' }}" configuration: "${{ secrets.LAB_CONFIGURATION_JSON }}" testing_docker_image: tip-tip-wlan-cloud-docker-repo.jfrog.io/cloud-sdk-nightly:${{ github.run_id }} - additional_args: "-o model-iOS='iPhone-12' -o 'jobName=Github-Interop-iphone-12' -o 'jobNumber=${{ github.run_number }}' --skip-lanforge" + additional_args: " --device='iPhone-12' -o 'jobName=Github-Interop-iphone-12' -o 'jobNumber=${{ github.run_number }}' --skip-lanforge" allure_results_artifact_name: allure-results-iphone-12 # necessary because if conditionals in composite actions are currently not respected From 61f4ed63032bde6961c8f173cee4240febd7b911 Mon Sep 17 00:00:00 2001 From: haricharan-jaka Date: Sat, 12 Mar 2022 13:23:31 +0530 Subject: [PATCH 012/100] Added job number and name related to device specific Signed-off-by: haricharan-jaka --- tests/lab_info.json | 32 ++++++++++++++++++++++++-------- 1 file changed, 24 insertions(+), 8 deletions(-) diff --git a/tests/lab_info.json b/tests/lab_info.json index 2f7b241f8..89276f711 100644 --- a/tests/lab_info.json +++ b/tests/lab_info.json @@ -776,7 +776,9 @@ "browserType-iOS": "Safari", "bundleId-iOS-Safari": "com.apple.mobilesafari", "platformName-android": "Android", - "appPackage-android": "com.android.settings" + "appPackage-android": "com.android.settings", + "jobName": "Interop-iphone-11", + "jobNumber": 38 }, "iPhone-12": { "model-iOS": "iPhone-12", @@ -787,7 +789,9 @@ "browserType-iOS": "Safari", "bundleId-iOS-Safari": "com.apple.mobilesafari", "platformName-android": "Android", - "appPackage-android": "com.android.settings" + "appPackage-android": "com.android.settings", + "jobName": "Interop-iphone-12", + "jobNumber": 38 }, "iPhone-7": { "model-iOS": "iPhone-7", @@ -798,7 +802,9 @@ "browserType-iOS": "Safari", "bundleId-iOS-Safari": "com.apple.mobilesafari", "platformName-android": "Android", - "appPackage-android": "com.android.settings" + "appPackage-android": "com.android.settings", + "jobName": "Interop-iphone-7", + "jobNumber": 38 }, "iPhone-XR": { "model-iOS": "iPhone-XR", @@ -809,35 +815,45 @@ "browserType-iOS": "Safari", "bundleId-iOS-Safari": "com.apple.mobilesafari", "platformName-android": "Android", - "appPackage-android": "com.android.settings" + "appPackage-android": "com.android.settings", + "jobName": "Interop-iphone-XR", + "jobNumber": 38 }, "Galaxy S20": { "platformName-android": "Android", "model-android": "Galaxy S20", "appPackage-android": "com.android.settings", "bundleId-iOS-Settings": "com.apple.Preferences", - "bundleId-iOS-Safari": "com.apple.mobilesafari" + "bundleId-iOS-Safari": "com.apple.mobilesafari", + "jobName": "Interop-Galaxy-S20", + "jobNumber": 38 }, "Galaxy S10.*": { "platformName-android": "Android", "model-android": "Galaxy S10.*", "appPackage-android": "com.android.settings", "bundleId-iOS-Settings": "com.apple.Preferences", - "bundleId-iOS-Safari": "com.apple.mobilesafari" + "bundleId-iOS-Safari": "com.apple.mobilesafari", + "jobName": "Interop-Galaxy-S10", + "jobNumber": 38 }, "Galaxy S9": { "platformName-android": "Android", "model-android": "Galaxy S9", "appPackage-android": "com.android.settings", "bundleId-iOS-Settings": "com.apple.Preferences", - "bundleId-iOS-Safari": "com.apple.mobilesafari" + "bundleId-iOS-Safari": "com.apple.mobilesafari", + "jobName": "Interop-Galaxy-S9", + "jobNumber": 38 }, "Pixel 4": { "platformName-android": "Android", "model-android": "Pixel 4", "appPackage-android": "com.android.settings", "bundleId-iOS-Settings": "com.apple.Preferences", - "bundleId-iOS-Safari": "com.apple.mobilesafari" + "bundleId-iOS-Safari": "com.apple.mobilesafari", + "jobName": "Interop-pixel-4", + "jobNumber": 38 } }, From 3480e049d5d2075111e11f2fc88fbd1d02911552 Mon Sep 17 00:00:00 2001 From: haricharan-jaka Date: Sat, 12 Mar 2022 13:24:39 +0530 Subject: [PATCH 013/100] changed the report to device specific for job number and name Signed-off-by: haricharan-jaka --- tests/e2e/interOp/conftest.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/tests/e2e/interOp/conftest.py b/tests/e2e/interOp/conftest.py index 7dce046ee..c39989db1 100644 --- a/tests/e2e/interOp/conftest.py +++ b/tests/e2e/interOp/conftest.py @@ -429,8 +429,8 @@ def setup_perfectoMobile_android(request, get_device_configuration): projectname = PERFECTO_DETAILS["projectName"] projectversion = PERFECTO_DETAILS["projectVersion"] - jobname = PERFECTO_DETAILS["jobName"] - jobnumber = PERFECTO_DETAILS["jobNumber"] + jobname = get_device_configuration["jobName"] + jobnumber = get_device_configuration["jobNumber"] tags = PERFECTO_DETAILS["reportTags"] testCaseName = TestCaseName @@ -526,10 +526,10 @@ def setup_perfectoMobileWeb(request, get_device_configuration): projectname = PERFECTO_DETAILS["projectName"] projectversion = PERFECTO_DETAILS["projectVersion"] - jobname = PERFECTO_DETAILS["jobName"] - jobnumber = PERFECTO_DETAILS["jobNumber"] + jobname = get_device_configuration["jobName"] + jobnumber = get_device_configuration["jobNumber"] tags = PERFECTO_DETAILS["reportTags"] - testCaseName = PERFECTO_DETAILS["jobName"] + testCaseName = get_device_configuration["jobName"] print("Setting Perfecto ReportClient....") perfecto_execution_context = PerfectoExecutionContext(rdriver, tags, Job(jobname, jobnumber), @@ -605,8 +605,8 @@ def setup_perfectoMobile_iOS(request, get_device_configuration): projectname = PERFECTO_DETAILS["projectName"] projectversion = PERFECTO_DETAILS["projectVersion"] - jobname = PERFECTO_DETAILS["jobName"] - jobnumber = PERFECTO_DETAILS["jobNumber"] + jobname = get_device_configuration["jobName"] + jobnumber = get_device_configuration["jobNumber"] tags = PERFECTO_DETAILS["reportTags"] testCaseName = TestCaseName From 2108336bc8af561a7beed4cb4e12e82a392db5c6 Mon Sep 17 00:00:00 2001 From: haricharan-jaka Date: Sat, 12 Mar 2022 13:25:20 +0530 Subject: [PATCH 014/100] Removed the job number and name argument Signed-off-by: haricharan-jaka --- .github/workflows/interop.yml | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/.github/workflows/interop.yml b/.github/workflows/interop.yml index 9a063f2ba..961baeded 100644 --- a/.github/workflows/interop.yml +++ b/.github/workflows/interop.yml @@ -73,7 +73,7 @@ jobs: marker_expression: "${{ needs.vars.outputs.marker_overwrite || 'interop_uc_sanity and client_connect and android and not wpa3_personal' }}" configuration: "${{ secrets.LAB_CONFIGURATION_JSON }}" testing_docker_image: tip-tip-wlan-cloud-docker-repo.jfrog.io/cloud-sdk-nightly:${{ github.run_id }} - additional_args: " --device='Galaxy S9' -o 'jobName=Github-Interop-galaxy-s9' -o 'jobNumber=${{ github.run_number }}' --skip-lanforge" + additional_args: "--device='Galaxy S9' --skip-lanforge" allure_results_artifact_name: allure-results-galaxy-s9 # necessary because if conditionals in composite actions are currently not respected @@ -100,7 +100,7 @@ jobs: marker_expression: "${{ needs.vars.outputs.marker_overwrite || 'interop_uc_sanity and client_connect and ios' }}" configuration: "${{ secrets.LAB_CONFIGURATION_JSON }}" testing_docker_image: tip-tip-wlan-cloud-docker-repo.jfrog.io/cloud-sdk-nightly:${{ github.run_id }} - additional_args: " --device='iPhone-11' -o 'jobName=Github-Interop-iphone-11' -o 'jobNumber=${{ github.run_number }}' --skip-lanforge" + additional_args: "--device='iPhone-11' --skip-lanforge" allure_results_artifact_name: allure-results-iphone-11 # necessary because if conditionals in composite actions are currently not respected @@ -128,7 +128,7 @@ jobs: marker_expression: "${{ needs.vars.outputs.marker_overwrite || 'interop_uc_sanity and client_connect and android' }}" configuration: "${{ secrets.LAB_CONFIGURATION_JSON }}" testing_docker_image: tip-tip-wlan-cloud-docker-repo.jfrog.io/cloud-sdk-nightly:${{ github.run_id }} - additional_args: " --device='Galaxy S10.*'-o 'jobName=Github-Interop-galaxy-s10' -o 'jobNumber=${{ github.run_number }}' --skip-lanforge" + additional_args: "--device='Galaxy S10.*' --skip-lanforge" allure_results_artifact_name: allure-results-galaxy-s10 # necessary because if conditionals in composite actions are currently not respected @@ -155,7 +155,7 @@ jobs: marker_expression: "${{ needs.vars.outputs.marker_overwrite || 'interop_uc_sanity and client_connect and ios' }}" configuration: "${{ secrets.LAB_CONFIGURATION_JSON }}" testing_docker_image: tip-tip-wlan-cloud-docker-repo.jfrog.io/cloud-sdk-nightly:${{ github.run_id }} - additional_args: " --device='iPhone-7' -o 'jobName=Github-Interop-iphone-7' -o 'jobNumber=${{ github.run_number }}' --skip-lanforge" + additional_args: "--device='iPhone-7' --skip-lanforge" allure_results_artifact_name: allure-results-iphone-7 # necessary because if conditionals in composite actions are currently not respected @@ -183,7 +183,7 @@ jobs: marker_expression: "${{ needs.vars.outputs.marker_overwrite || 'interop_uc_sanity and client_connect and android' }}" configuration: "${{ secrets.LAB_CONFIGURATION_JSON }}" testing_docker_image: tip-tip-wlan-cloud-docker-repo.jfrog.io/cloud-sdk-nightly:${{ github.run_id }} - additional_args: " --device='Galaxy S20' -o 'jobName=Github-Interop-galaxy-s20' -o 'jobNumber=${{ github.run_number }}' --skip-lanforge" + additional_args: "--device='Galaxy S20' --skip-lanforge" allure_results_artifact_name: allure-results-galaxy-s20 # necessary because if conditionals in composite actions are currently not respected @@ -210,7 +210,7 @@ jobs: marker_expression: "${{ needs.vars.outputs.marker_overwrite || 'interop_uc_sanity and client_connect and ios' }}" configuration: "${{ secrets.LAB_CONFIGURATION_JSON }}" testing_docker_image: tip-tip-wlan-cloud-docker-repo.jfrog.io/cloud-sdk-nightly:${{ github.run_id }} - additional_args: " --device='iPhone-XR' -o 'jobName=Github-Interop-iphone-xr' -o 'jobNumber=${{ github.run_number }}' --skip-lanforge" + additional_args: "--device='iPhone-XR' --skip-lanforge" allure_results_artifact_name: allure-results-iphone-xr # necessary because if conditionals in composite actions are currently not respected @@ -238,7 +238,7 @@ jobs: marker_expression: "${{ needs.vars.outputs.marker_overwrite || 'interop_uc_sanity and client_connect and android' }}" configuration: "${{ secrets.LAB_CONFIGURATION_JSON }}" testing_docker_image: tip-tip-wlan-cloud-docker-repo.jfrog.io/cloud-sdk-nightly:${{ github.run_id }} - additional_args: " --device='Pixel 4' -o 'jobName=Github-Interop-pixel-4' -o 'jobNumber=${{ github.run_number }}' --skip-lanforge" + additional_args: "--device='Pixel 4' --skip-lanforge" allure_results_artifact_name: allure-results-pixel-4 # necessary because if conditionals in composite actions are currently not respected @@ -265,7 +265,7 @@ jobs: marker_expression: "${{ needs.vars.outputs.marker_overwrite || 'interop_uc_sanity and client_connect and ios' }}" configuration: "${{ secrets.LAB_CONFIGURATION_JSON }}" testing_docker_image: tip-tip-wlan-cloud-docker-repo.jfrog.io/cloud-sdk-nightly:${{ github.run_id }} - additional_args: " --device='iPhone-12' -o 'jobName=Github-Interop-iphone-12' -o 'jobNumber=${{ github.run_number }}' --skip-lanforge" + additional_args: " --device='iPhone-12' --skip-lanforge" allure_results_artifact_name: allure-results-iphone-12 # necessary because if conditionals in composite actions are currently not respected From f07dfe3b5647517b7762aa5c76046dae97564237 Mon Sep 17 00:00:00 2001 From: haricharan-jaka Date: Sat, 12 Mar 2022 16:34:17 +0530 Subject: [PATCH 015/100] Removed space Signed-off-by: haricharan-jaka --- .github/workflows/interop.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/interop.yml b/.github/workflows/interop.yml index 961baeded..302d25aab 100644 --- a/.github/workflows/interop.yml +++ b/.github/workflows/interop.yml @@ -265,7 +265,7 @@ jobs: marker_expression: "${{ needs.vars.outputs.marker_overwrite || 'interop_uc_sanity and client_connect and ios' }}" configuration: "${{ secrets.LAB_CONFIGURATION_JSON }}" testing_docker_image: tip-tip-wlan-cloud-docker-repo.jfrog.io/cloud-sdk-nightly:${{ github.run_id }} - additional_args: " --device='iPhone-12' --skip-lanforge" + additional_args: "--device='iPhone-12' --skip-lanforge" allure_results_artifact_name: allure-results-iphone-12 # necessary because if conditionals in composite actions are currently not respected From 71547db78af93e307f9ecadd3435e04e9c3a5d17 Mon Sep 17 00:00:00 2001 From: haricharan-jaka Date: Mon, 14 Mar 2022 12:55:11 +0530 Subject: [PATCH 016/100] Removed Job name and number from Perfecto Details Signed-off-by: haricharan-jaka --- tests/lab_info.json | 2 -- 1 file changed, 2 deletions(-) diff --git a/tests/lab_info.json b/tests/lab_info.json index 89276f711..7a05ba9a1 100644 --- a/tests/lab_info.json +++ b/tests/lab_info.json @@ -763,8 +763,6 @@ "securityToken":"eyJhbGciOiJIUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICI3NzkzZGM0Ni1jZmU4LTQ4ODMtYjhiOS02ZWFlZGU2OTc2MDkifQ.eyJpYXQiOjE2MzI4Mzc2NDEsImp0aSI6IjAwZGRiYWY5LWQwYjMtNDRjNS1hYjVlLTkyNzFlNzc5ZGUzNiIsImlzcyI6Imh0dHBzOi8vYXV0aDIucGVyZmVjdG9tb2JpbGUuY29tL2F1dGgvcmVhbG1zL3RpcC1wZXJmZWN0b21vYmlsZS1jb20iLCJhdWQiOiJodHRwczovL2F1dGgyLnBlcmZlY3RvbW9iaWxlLmNvbS9hdXRoL3JlYWxtcy90aXAtcGVyZmVjdG9tb2JpbGUtY29tIiwic3ViIjoiODNkNjUxMWQtNTBmZS00ZWM5LThkNzAtYTA0ZjBkNTdiZDUyIiwidHlwIjoiT2ZmbGluZSIsImF6cCI6Im9mZmxpbmUtdG9rZW4tZ2VuZXJhdG9yIiwibm9uY2UiOiI2ZjE1YzYxNy01YTU5LTQyOWEtODc2Yi1jOTQxMTQ1ZDFkZTIiLCJzZXNzaW9uX3N0YXRlIjoiYmRjZTFmYTMtMjlkYi00MmFmLWI5YWMtYjZjZmJkMDEyOTFhIiwic2NvcGUiOiJvcGVuaWQgcHJvZmlsZSBvZmZsaW5lX2FjY2VzcyBlbWFpbCJ9.5R85_1R38ZFXv_wIjjCIsj8NJm1p66dCsLJI5DBEmks", "projectName": "TIP-PyTest-Execution", "projectVersion": "1.0", - "jobName": "Tip-manual-test", - "jobNumber": 38, "reportTags": "TestTag", "perfectoURL":"tip", "iPhone-11": { From a2e1cef5f61576090cef441da2cbe699c4f80e71 Mon Sep 17 00:00:00 2001 From: Shivam Thakur <70829776+shivamcandela@users.noreply.github.com> Date: Mon, 14 Mar 2022 16:31:47 +0530 Subject: [PATCH 017/100] added regression and advance counts --- .github/workflows/update-badges.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/update-badges.yml b/.github/workflows/update-badges.yml index 5bb6a1835..8105497f1 100644 --- a/.github/workflows/update-badges.yml +++ b/.github/workflows/update-badges.yml @@ -41,6 +41,8 @@ jobs: wget https://img.shields.io/badge/interop_tests-$(pytest --collect-only -m "interop" -q | tail -1 | cut -d '/' -f 1)-green?style=flat-square -O ../badges/interop-count.svg wget https://img.shields.io/badge/sanity_tests-$(pytest --collect-only -m "uc_sanity and not interop" -q | tail -1 | cut -d '/' -f 1)-green?style=flat-square -O ../badges/sanity-count.svg wget https://img.shields.io/badge/performance_tests-$(pytest --collect-only -m "performance" -q | tail -1 | cut -d '/' -f 1)-green?style=flat-square -O ../badges/performance-count.svg + wget https://img.shields.io/badge/performance_tests-$(pytest --collect-only -m "advance" -q | tail -1 | cut -d '/' -f 1)-green?style=flat-square -O ../badges/advance-count.svg + wget https://img.shields.io/badge/performance_tests-$(pytest --collect-only -m "regression" -q | tail -1 | cut -d '/' -f 1)-green?style=flat-square -O ../badges/regression-count.svg - name: commit changes working-directory: badges From 7858ecac8a881ca8d3ab4132d6b3b449d977baa0 Mon Sep 17 00:00:00 2001 From: Shivam Thakur <70829776+shivamcandela@users.noreply.github.com> Date: Mon, 14 Mar 2022 16:33:57 +0530 Subject: [PATCH 018/100] added badges for advance and regression in readme file --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index 936b12eb0..dc19a9ebd 100644 --- a/README.md +++ b/README.md @@ -78,8 +78,10 @@ http://pythontesting.net/framework/pytest/pytest-introduction/ ![performance test count](https://raw.githubusercontent.com/Telecominfraproject/wlan-testing/badges/performance-count.svg) [![Quali advanced testing](https://github.com/Telecominfraproject/wlan-testing/actions/workflows/quali-advanced.yml/badge.svg)](https://github.com/Telecominfraproject/wlan-testing/actions/workflows/quali-advanced.yml) +![Advance test count](https://raw.githubusercontent.com/Telecominfraproject/wlan-testing/badges/advance-count.svg) [![regression testing](https://github.com/Telecominfraproject/wlan-testing/actions/workflows/regression.yml/badge.svg)](https://github.com/Telecominfraproject/wlan-testing/actions/workflows/regression.yml) +![Regression test count](https://raw.githubusercontent.com/Telecominfraproject/wlan-testing/badges/regression-count.svg) ### Best Practice From 5d8251014aa0316cb7a9e0eb42783724f9540992 Mon Sep 17 00:00:00 2001 From: Shivam Thakur <70829776+shivamcandela@users.noreply.github.com> Date: Mon, 14 Mar 2022 16:39:09 +0530 Subject: [PATCH 019/100] added advance and regression text --- .github/workflows/update-badges.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/update-badges.yml b/.github/workflows/update-badges.yml index 8105497f1..aeb17542c 100644 --- a/.github/workflows/update-badges.yml +++ b/.github/workflows/update-badges.yml @@ -41,8 +41,8 @@ jobs: wget https://img.shields.io/badge/interop_tests-$(pytest --collect-only -m "interop" -q | tail -1 | cut -d '/' -f 1)-green?style=flat-square -O ../badges/interop-count.svg wget https://img.shields.io/badge/sanity_tests-$(pytest --collect-only -m "uc_sanity and not interop" -q | tail -1 | cut -d '/' -f 1)-green?style=flat-square -O ../badges/sanity-count.svg wget https://img.shields.io/badge/performance_tests-$(pytest --collect-only -m "performance" -q | tail -1 | cut -d '/' -f 1)-green?style=flat-square -O ../badges/performance-count.svg - wget https://img.shields.io/badge/performance_tests-$(pytest --collect-only -m "advance" -q | tail -1 | cut -d '/' -f 1)-green?style=flat-square -O ../badges/advance-count.svg - wget https://img.shields.io/badge/performance_tests-$(pytest --collect-only -m "regression" -q | tail -1 | cut -d '/' -f 1)-green?style=flat-square -O ../badges/regression-count.svg + wget https://img.shields.io/badge/advance_tests-$(pytest --collect-only -m "advance" -q | tail -1 | cut -d '/' -f 1)-green?style=flat-square -O ../badges/advance-count.svg + wget https://img.shields.io/badge/regression_tests-$(pytest --collect-only -m "regression" -q | tail -1 | cut -d '/' -f 1)-green?style=flat-square -O ../badges/regression-count.svg - name: commit changes working-directory: badges From a736796794e49bb073db1f6a20170bd892ef7332 Mon Sep 17 00:00:00 2001 From: Shivam Thakur <70829776+shivamcandela@users.noreply.github.com> Date: Mon, 14 Mar 2022 16:45:47 +0530 Subject: [PATCH 020/100] added interop and lanforge side regression counts --- .github/workflows/update-badges.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/update-badges.yml b/.github/workflows/update-badges.yml index aeb17542c..0cb83a9c6 100644 --- a/.github/workflows/update-badges.yml +++ b/.github/workflows/update-badges.yml @@ -42,7 +42,8 @@ jobs: wget https://img.shields.io/badge/sanity_tests-$(pytest --collect-only -m "uc_sanity and not interop" -q | tail -1 | cut -d '/' -f 1)-green?style=flat-square -O ../badges/sanity-count.svg wget https://img.shields.io/badge/performance_tests-$(pytest --collect-only -m "performance" -q | tail -1 | cut -d '/' -f 1)-green?style=flat-square -O ../badges/performance-count.svg wget https://img.shields.io/badge/advance_tests-$(pytest --collect-only -m "advance" -q | tail -1 | cut -d '/' -f 1)-green?style=flat-square -O ../badges/advance-count.svg - wget https://img.shields.io/badge/regression_tests-$(pytest --collect-only -m "regression" -q | tail -1 | cut -d '/' -f 1)-green?style=flat-square -O ../badges/regression-count.svg + wget https://img.shields.io/badge/regression_tests-$(pytest --collect-only -m "regression and not interop" -q | tail -1 | cut -d '/' -f 1)-green?style=flat-square -O ../badges/regression-count.svg + wget https://img.shields.io/badge/interop_regression_tests-$(pytest --collect-only -m "regression and interop" -q | tail -1 | cut -d '/' -f 1)-green?style=flat-square -O ../badges/regression-interop-count.svg - name: commit changes working-directory: badges From e19d54d7d558fce9a109e4b5811973bd68eceebf Mon Sep 17 00:00:00 2001 From: Shivam Thakur <70829776+shivamcandela@users.noreply.github.com> Date: Mon, 14 Mar 2022 16:50:20 +0530 Subject: [PATCH 021/100] Added Interop Regression and its count in readme --- README.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/README.md b/README.md index dc19a9ebd..36598744a 100644 --- a/README.md +++ b/README.md @@ -83,6 +83,9 @@ http://pythontesting.net/framework/pytest/pytest-introduction/ [![regression testing](https://github.com/Telecominfraproject/wlan-testing/actions/workflows/regression.yml/badge.svg)](https://github.com/Telecominfraproject/wlan-testing/actions/workflows/regression.yml) ![Regression test count](https://raw.githubusercontent.com/Telecominfraproject/wlan-testing/badges/regression-count.svg) +[![interop regression testing](https://github.com/Telecominfraproject/wlan-testing/actions/workflows/interop_regression.yml/badge.svg)](https://github.com/Telecominfraproject/wlan-testing/actions/workflows/interop_regression.yml) +![Interop Regression test count](https://raw.githubusercontent.com/Telecominfraproject/wlan-testing/badges/interop_regression-count.svg) + ### Best Practice 1. Ensure to have a python version > 3 From 7d19d9e1dd185a8efd3ecffcba4a7607a3fa8594 Mon Sep 17 00:00:00 2001 From: Shivam Thakur <70829776+shivamcandela@users.noreply.github.com> Date: Mon, 14 Mar 2022 16:52:18 +0530 Subject: [PATCH 022/100] updated the name for interop Regression badge name --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 36598744a..bdf28c84a 100644 --- a/README.md +++ b/README.md @@ -84,7 +84,7 @@ http://pythontesting.net/framework/pytest/pytest-introduction/ ![Regression test count](https://raw.githubusercontent.com/Telecominfraproject/wlan-testing/badges/regression-count.svg) [![interop regression testing](https://github.com/Telecominfraproject/wlan-testing/actions/workflows/interop_regression.yml/badge.svg)](https://github.com/Telecominfraproject/wlan-testing/actions/workflows/interop_regression.yml) -![Interop Regression test count](https://raw.githubusercontent.com/Telecominfraproject/wlan-testing/badges/interop_regression-count.svg) +![Interop Regression test count](https://raw.githubusercontent.com/Telecominfraproject/wlan-testing/badges/regression-interop-count.svg) ### Best Practice From 89c4b8089851396d8a8da2abc6e39b314cc550db Mon Sep 17 00:00:00 2001 From: Johann Hoffmann Date: Mon, 14 Mar 2022 15:53:39 +0100 Subject: [PATCH 023/100] [WIFI-7229] Integrate virtual AP in Docker Compose testing workflow (#426) * Integrate virtual AP in Docker Compose testing workflow and switch to CLI testing Signed-off-by: Johann Hoffmann * Fix syntax error Signed-off-by: Johann Hoffmann * Fix another syntax error Signed-off-by: Johann Hoffmann * Execute command over SSH and fix CLI permissions Signed-off-by: Johann Hoffmann * Add shared AWS variables and try to escape secret Signed-off-by: Johann Hoffmann * Auto-accept new SSH host keys Signed-off-by: Johann Hoffmann * Fix SSH key permissions Signed-off-by: Johann Hoffmann * Use curl and switch to raw repository files Signed-off-by: Johann Hoffmann * Add serial to CLI calls Signed-off-by: Johann Hoffmann * Get mac address of virtual AP dynamically Signed-off-by: Johann Hoffmann * Fix step condition syntax Signed-off-by: Johann Hoffmann * Add silent option to curl Signed-off-by: Johann Hoffmann * Re-apply AP config after starting firstcontact service Signed-off-by: Johann Hoffmann * Remove duplicate quotes Signed-off-by: Johann Hoffmann * Use local AP config file and add choice to test all microservices Signed-off-by: Johann Hoffmann * Wait before re-applying config modifications to avoid overwrite Signed-off-by: Johann Hoffmann --- .github/workflows/ow_docker-compose.yml | 711 +++++++++++------------- 1 file changed, 340 insertions(+), 371 deletions(-) diff --git a/.github/workflows/ow_docker-compose.yml b/.github/workflows/ow_docker-compose.yml index 6f063618f..b0c0acc37 100644 --- a/.github/workflows/ow_docker-compose.yml +++ b/.github/workflows/ow_docker-compose.yml @@ -1,26 +1,14 @@ name: 2.x testing with Docker Compose deployment + env: - # AWS credentials AWS_EKS_NAME: tip-wlan-main - AWS_DEFAULT_OUTPUT: json - AWS_DEFAULT_REGION: us-east-2 AWS_ACCOUNT_ID: ${{ secrets.AWS_ACCOUNT_ID }} AWS_ACCESS_KEY_ID: ${{ secrets.AWS_CLIENT_ID }} AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_CLIENT_KEY }} on: - repository_dispatch: - types: [openwifi-sdk-pr] workflow_dispatch: inputs: - testbeds: - default: 'basic-05' - description: 'Testbed(s) to test' - required: false - marker_expression: - default: 'sdk_restapi' - description: 'Markers expression that will be passed to the pytest command.' - required: false owgw_version: default: 'master' description: 'OpenWIFI Gateway version to be deployed.' @@ -48,6 +36,15 @@ on: id: description: 'run identifier' required: false + microservice: + description: 'OpenWIFI microservice to be tested' + required: true + type: choice + options: + - owgw + - owsec + - owfms + - all defaults: run: @@ -58,23 +55,14 @@ jobs: name: Workflow ID Provider runs-on: ubuntu-latest steps: - - name: ${{github.event.inputs.id}} + - name: ${{ github.event.inputs.id }} run: echo run identifier ${{ inputs.id }} - build: - runs-on: ubuntu-latest - needs: id - steps: - - uses: actions/checkout@v2 - - name: build and push Docker image - uses: ./.github/actions/build-and-push-docker - with: - registry: tip-tip-wlan-cloud-docker-repo.jfrog.io - registry_user: wlan-testing-cicd - registry_password: ${{ secrets.DOCKER_USER_PASSWORD }} - deploy-controller: name: Deploy OpenWIFI Cloud SDK + env: + AWS_DEFAULT_OUTPUT: json + AWS_DEFAULT_REGION: us-east-2 runs-on: ubuntu-latest needs: id outputs: @@ -82,371 +70,352 @@ jobs: sec_url: ${{ steps.sec_url.outputs.value }} namespace: ${{ steps.namespace.outputs.value }} steps: - - name: Checkout wlan-testing repo - uses: actions/checkout@v2 - with: - path: wlan-testing + - name: Checkout wlan-testing repo + uses: actions/checkout@v2 + with: + path: wlan-testing - - name: Prepare certificates from secrets - working-directory: wlan-testing/docker-compose/openwifi - run: | - echo "${{ secrets.DIGICERT_CERT }}" | base64 -d > websocket-cert.pem - echo "${{ secrets.DIGICERT_KEY }}" | base64 -d > websocket-key.pem + - name: Prepare certificates from secrets + working-directory: wlan-testing/docker-compose/openwifi + run: | + echo "${{ secrets.DIGICERT_CERT }}" | base64 -d > websocket-cert.pem + echo "${{ secrets.DIGICERT_KEY }}" | base64 -d > websocket-key.pem - - name: Fetch kubeconfig - run: | - aws eks update-kubeconfig --name ${{ env.AWS_EKS_NAME }} + - name: Fetch kubeconfig + run: | + aws eks update-kubeconfig --name ${{ env.AWS_EKS_NAME }} - - name: Set namespace output - id: namespace - run: echo "::set-output name=value::ow-docker-compose-${{ github.run_id }}" + - name: Set namespace output + id: namespace + run: echo "::set-output name=value::ow-docker-compose-${{ github.run_id }}" - - name: Set gateway URL output - id: gateway_url - run: echo "::set-output name=value::ow-docker-compose-${{ github.run_id }}.cicd.lab.wlan.tip.build" + - name: Set gateway URL output + id: gateway_url + run: echo "::set-output name=value::ow-docker-compose-${{ github.run_id }}.cicd.lab.wlan.tip.build" - - name: Set sec service URL output - id: sec_url - run: echo "::set-output name=value::ow-docker-compose-${{ github.run_id }}.cicd.lab.wlan.tip.build" + - name: Set sec service URL output + id: sec_url + run: echo "::set-output name=value::ow-docker-compose-${{ github.run_id }}.cicd.lab.wlan.tip.build" - - name: Create Kubernetes namespace and secret - working-directory: wlan-testing/docker-compose/openwifi - run: | - kubectl create ns ow-docker-compose-${{ github.run_id }} - kubectl create secret generic tip-cicd-wildcard-certs --from-file=websocket-cert.pem=websocket-cert.pem --from-file=websocket-key.pem=websocket-key.pem -n ow-docker-compose-${{ github.run_id }} + - name: Create Kubernetes namespace and secret + working-directory: wlan-testing/docker-compose/openwifi + run: | + kubectl create ns ow-docker-compose-${{ github.run_id }} + kubectl create secret generic tip-cicd-wildcard-certs --from-file=websocket-cert.pem=websocket-cert.pem --from-file=websocket-key.pem=websocket-key.pem -n ow-docker-compose-${{ github.run_id }} - - name: Deploy OpenWIFI Cloud SDK - working-directory: wlan-testing/docker-compose/openwifi - env: - RTTY_TOKEN: ${{ secrets.RTTY_TOKEN }} - OWSEC_AUTHENTICATION_DEFAULT_USERNAME: ${{ secrets.UCENTRALGW_AUTH_USERNAME }} - OWSEC_AUTHENTICATION_DEFAULT_PASSWORD: ${{ secrets.UCENTRALGW_AUTH_PASSWORD }} - OWFMS_S3_SECRET: ${{ secrets.UCENTRALFMS_S3_SECRET }} - OWFMS_S3_KEY: ${{ secrets.UCENTRALFMS_S3_KEY }} - run: | - cat < openwifi-virtual-ap.pem + chmod 600 openwifi-virtual-ap.pem + ssh -o StrictHostKeyChecking=accept-new -i openwifi-virtual-ap.pem root@${{ steps.get_virtual_ap_public_ip.outputs.ip }} '/etc/init.d/firstcontact start; sleep 10; /usr/share/ucentral/ucentral.uc /root/config.json' test: - runs-on: ubuntu-latest - needs: [ build, deploy-controller ] - steps: - - uses: actions/checkout@v2 - - name: get EKS access credentials - run: aws eks update-kubeconfig --name ${{ env.AWS_EKS_NAME }} + name: Test specified microservice + needs: [deploy-controller, set-redirector-url] + runs-on: ubuntu-latest + env: + OWSEC: "${{ needs.deploy-controller.outputs.sec_url }}:16001" + OWSEC_USERNAME: ${{ secrets.OWSEC_DEFAULT_USERNAME }} + OWSEC_PASSWORD: ${{ secrets.OWSEC_NEW_PASSWORD }} + steps: + - name: Checkout wlan-cloud-ucentralgw repo and test OWGW + if: github.event.inputs.microservice == 'owgw' || github.event.inputs.microservice == 'all' + run: | + curl -s https://raw.githubusercontent.com/Telecominfraproject/wlan-cloud-ucentralgw/master/test_scripts/curl/cli -o cli + chmod +x cli + ./cli test_service ${{ needs.set-redirector-url.outputs.mac_address }} - - name: prepare namespace - id: namespace - run: | - NAMESPACE="testing-${{ github.run_id }}" - echo "::set-output name=name::${NAMESPACE}" + - name: Checkout wlan-cloud-ucentralsec repo and test OWSec + if: github.event.inputs.microservice == 'owsec' || github.event.inputs.microservice == 'all' + run: | + curl -s https://raw.githubusercontent.com/Telecominfraproject/wlan-cloud-ucentralsec/main/test_scripts/curl/cli -o cli + chmod +x cli + ./cli test_service - - name: create configuration secret - run: | - cat << EOF > lab_info.json - ${{ secrets.LAB_CONFIGURATION_JSON }} - EOF - jq '.CONFIGURATION["${{ github.event.inputs.testbeds || 'basic-05' }}"].controller.url="https://${{ needs.deploy-controller.outputs.sec_url }}:16001"' lab_info.json > lab_info.json.tmp && mv lab_info.json.tmp lab_info.json - jq '.CONFIGURATION["${{ github.event.inputs.testbeds || 'basic-05' }}"].controller.password="${{ secrets.OWSEC_NEW_PASSWORD }}"' lab_info.json > lab_info.json.tmp && mv lab_info.json.tmp lab_info.json - - - name: run tests - uses: ./.github/actions/run-tests - with: - namespace: ${{ steps.namespace.outputs.name }} - testbed: "${{ github.event.inputs.testbeds || 'basic-05' }}" - marker_expression: "${{ github.event.inputs.marker_expression || 'sdk_restapi' }}" - configuration_file: "./lab_info.json" - testing_docker_image: tip-tip-wlan-cloud-docker-repo.jfrog.io/cloud-sdk-nightly:${{ github.run_id }} - allure_results_artifact_name: allure-results-docker-compose-${{ github.event.inputs.marker_expression || 'sdk_restapi' }} - - report: - runs-on: ubuntu-latest - needs: [ test ] - if: always() - steps: - - name: checkout testing repo - uses: actions/checkout@v2 - - - uses: actions/download-artifact@v2 - with: - name: allure-results-docker-compose-${{ github.event.inputs.marker_expression || 'sdk_restapi' }} - path: allure-results - - - name: download history of previous run - continue-on-error: true - run: | - LAST_RUN_ID=$(aws s3api head-object --bucket openwifi-allure-reports --key docker-compose-${{ github.event.inputs.marker_expression || 'sdk_restapi' }}/latest/index.html | jq -r .Metadata.latest) - aws s3 cp --recursive s3://openwifi-allure-reports/docker-compose-${{ github.event.inputs.marker_expression || 'sdk_restapi' }}/$LAST_RUN_ID/history history - - - name: generate Allure report - uses: ./.github/actions/generate-allure-report - with: - results_path: ./allure-results - history_path: ./history - - - name: upload Allure report as artifact - uses: actions/upload-artifact@v2 - with: - name: allure-report-docker-compose-${{ github.event.inputs.marker_expression || 'sdk_restapi' }} - path: allure-report - - # doing this to be able to aggregate multiple reports together later on - - name: copy results into report - run: | - cp -r allure-results allure-report/results - - - name: upload to S3 - if: github.ref == 'refs/heads/master' - uses: ./.github/actions/allure-report-to-s3 - with: - test_type: docker-compose-${{ github.event.inputs.marker_expression || 'sdk_restapi' }} - testbed: ${{ github.event.inputs.testbeds || 'basic-05' }} - report_path: allure-report - s3_access_key_id: ${{ secrets.ALLURE_S3_ACCESS_KEY_ID }} - s3_access_key_secret: ${{ secrets.ALLURE_S3_ACCESS_KEY_SECRET }} - - delete-docker-image: - needs: [ test ] - runs-on: ubuntu-latest - if: always() - steps: - - uses: actions/checkout@v2 - - name: cleanup Docker image - uses: ./.github/actions/cleanup-docker - with: - registry_user: wlan-testing-cicd - registry_password: ${{ secrets.DOCKER_USER_PASSWORD }} + - name: Checkout wlan-cloud-ucentralfms repo and test OWFms + if: github.event.inputs.microservice == 'owfms' || github.event.inputs.microservice == 'all' + run: | + curl -s https://raw.githubusercontent.com/Telecominfraproject/wlan-cloud-ucentralfms/main/test_scripts/curl/cli -o cli + chmod +x cli + ./cli test_service ${{ needs.set-redirector-url.outputs.mac_address }} destroy-controller: - needs: [ test ] + name: Destroy controller namespace + needs: [deploy-controller, test] runs-on: ubuntu-latest + env: + AWS_DEFAULT_REGION: us-east-2 if: always() steps: - - name: Checkout wlan-testing repo - uses: actions/checkout@v2 - with: - path: wlan-testing + - name: Checkout wlan-testing repo + uses: actions/checkout@v2 + with: + path: wlan-testing - - name: Fetch kubeconfig - run: | - aws eks update-kubeconfig --name ${{ env.AWS_EKS_NAME }} + - name: Fetch kubeconfig + run: | + aws eks update-kubeconfig --name ${{ env.AWS_EKS_NAME }} - - name: Delete namespace - run: kubectl delete ns --ignore-not-found=true "ow-docker-compose-${{ github.run_id }}" + - name: Delete namespace + run: kubectl delete ns --ignore-not-found=true ${{ needs.deploy-controller.outputs.namespace }} From 0735f1b53827425549bea9bdb49c71e00a526214 Mon Sep 17 00:00:00 2001 From: karthika <78941121+karthikaeyetea@users.noreply.github.com> Date: Mon, 14 Mar 2022 22:46:45 +0530 Subject: [PATCH 024/100] Wifi 6731 (#421) * Created a local variable for upstream_port to prevent appending of vlan_id to previous upstream_port * corrected vlan_id --- libs/lanforge/lf_tests.py | 9 ++++--- .../wpa2_security/test_vlan_mode.py | 26 +++++++++---------- .../wpa_security/test_vlan_mode.py | 12 ++++----- 3 files changed, 24 insertions(+), 23 deletions(-) diff --git a/libs/lanforge/lf_tests.py b/libs/lanforge/lf_tests.py index e732e5bc0..714c5cdda 100644 --- a/libs/lanforge/lf_tests.py +++ b/libs/lanforge/lf_tests.py @@ -498,15 +498,16 @@ class RunTest: self.upstream_port = self.upstream_port elif mode == "VLAN": - self.upstream_port = self.upstream_port + "." + str(vlan_id) + # self.upstream_port = self.upstream_port + "." + str(vlan_id) + upstream_port = self.upstream_port + "." + str(vlan_id) if raw_lines is None: raw_lines = [['pkts: 60;142;256;512;1024;MTU;4000'], ['directions: DUT Transmit;DUT Receive'], ['traffic_types: UDP;TCP'], ["show_3s: 1"], ["show_ll_graphs: 1"], ["show_log: 1"]] - self.client_connect.upstream_port = self.upstream_port + self.client_connect.upstream_port = upstream_port elif mode == "VLAN": - self.client_connect.upstream_port = self.upstream_port + "." + str(vlan_id) + self.client_connect.upstream_port = upstream_port + "." + str(vlan_id) if raw_lines is None: raw_lines = [['pkts: 60;142;256;512;1024;MTU;4000'], ['directions: DUT Transmit;DUT Receive'], @@ -521,7 +522,7 @@ class RunTest: lf_password="lanforge", instance_name=instance_name, config_name="dpt_config", - upstream="1.1." + self.upstream_port, + upstream="1.1." + upstream_port, pull_report=True, load_old_cfg=False, download_speed=download_rate, diff --git a/tests/e2e/basic/performance_tests/throughput_benchmark/throughput_vs_various_pkt_sizes/wpa2_security/test_vlan_mode.py b/tests/e2e/basic/performance_tests/throughput_benchmark/throughput_vs_various_pkt_sizes/wpa2_security/test_vlan_mode.py index 0be0038d1..2cfb2ee4d 100644 --- a/tests/e2e/basic/performance_tests/throughput_benchmark/throughput_vs_various_pkt_sizes/wpa2_security/test_vlan_mode.py +++ b/tests/e2e/basic/performance_tests/throughput_benchmark/throughput_vs_various_pkt_sizes/wpa2_security/test_vlan_mode.py @@ -43,13 +43,13 @@ class TestThroughputVsPktWpa2Vlan2G(object): """Throughput Vs Pkt Sizes Vlan Mode pytest -m "throughput_vs_pkt and Vlan and wpa2 and twog and pkt60" """ - profile_data = setup_params_5g["ssid_modes"]["wpa2_personal"][1] + profile_data = setup_params_general["ssid_modes"]["wpa2_personal"][0] ssid_name = profile_data["ssid_name"] security_key = profile_data["security_key"] security = "wpa2" mode = "VLAN" band = "twog" - vlan = 1 + vlan = 100 dut_name = create_lanforge_chamberview_dut raw_lines = [['pkts: 60'], ['directions: DUT Transmit;DUT Receive'], @@ -98,7 +98,7 @@ class TestThroughputVsPktWpa2Vlan2G(object): security = "wpa2" mode = "VLAN" band = "twog" - vlan = 1 + vlan = 100 dut_name = create_lanforge_chamberview_dut raw_lines = [['pkts: 142'], ['directions: DUT Transmit;DUT Receive'], @@ -147,7 +147,7 @@ class TestThroughputVsPktWpa2Vlan2G(object): security = "wpa2" mode = "VLAN" band = "twog" - vlan = 1 + vlan = 100 dut_name = create_lanforge_chamberview_dut raw_lines = [['pkts: 256'], ['directions: DUT Transmit;DUT Receive'], @@ -196,7 +196,7 @@ class TestThroughputVsPktWpa2Vlan2G(object): security = "wpa2" mode = "VLAN" band = "twog" - vlan = 1 + vlan = 100 dut_name = create_lanforge_chamberview_dut raw_lines = [['pkts: 512'], ['directions: DUT Transmit;DUT Receive'], @@ -245,7 +245,7 @@ class TestThroughputVsPktWpa2Vlan2G(object): security = "wpa2" mode = "VLAN" band = "twog" - vlan = 1 + vlan = 100 dut_name = create_lanforge_chamberview_dut raw_lines = [['pkts: 1024'], ['directions: DUT Transmit;DUT Receive'], @@ -294,7 +294,7 @@ class TestThroughputVsPktWpa2Vlan2G(object): security = "wpa2" mode = "VLAN" band = "twog" - vlan = 1 + vlan = 100 dut_name = create_lanforge_chamberview_dut raw_lines = [['pkts: MTU'], ['directions: DUT Transmit;DUT Receive'], @@ -367,7 +367,7 @@ class TestThroughputVsPktWpa2Vlan5g(object): security = "wpa2" mode = "VLAN" band = "fiveg" - vlan = 1 + vlan = 100 dut_name = create_lanforge_chamberview_dut raw_lines = [['pkts: 60'], ['directions: DUT Transmit;DUT Receive'], @@ -416,7 +416,7 @@ class TestThroughputVsPktWpa2Vlan5g(object): security = "wpa2" mode = "VLAN" band = "fiveg" - vlan = 1 + vlan = 100 dut_name = create_lanforge_chamberview_dut raw_lines = [['pkts: 142'], ['directions: DUT Transmit;DUT Receive'], @@ -465,7 +465,7 @@ class TestThroughputVsPktWpa2Vlan5g(object): security = "wpa2" mode = "VLAN" band = "fiveg" - vlan = 1 + vlan = 100 dut_name = create_lanforge_chamberview_dut raw_lines = [['pkts: 256'], ['directions: DUT Transmit;DUT Receive'], @@ -514,7 +514,7 @@ class TestThroughputVsPktWpa2Vlan5g(object): security = "wpa2" mode = "VLAN" band = "fiveg" - vlan = 1 + vlan = 100 dut_name = create_lanforge_chamberview_dut raw_lines = [['pkts: 512'], ['directions: DUT Transmit;DUT Receive'], @@ -563,7 +563,7 @@ class TestThroughputVsPktWpa2Vlan5g(object): security = "wpa2" mode = "VLAN" band = "fiveg" - vlan = 1 + vlan = 100 dut_name = create_lanforge_chamberview_dut raw_lines = [['pkts: 1024'], ['directions: DUT Transmit;DUT Receive'], @@ -612,7 +612,7 @@ class TestThroughputVsPktWpa2Vlan5g(object): security = "wpa2" mode = "VLAN" band = "fiveg" - vlan = 1 + vlan = 100 dut_name = create_lanforge_chamberview_dut raw_lines = [['pkts: MTU'], ['directions: DUT Transmit;DUT Receive'], diff --git a/tests/e2e/basic/performance_tests/throughput_benchmark/throughput_vs_various_pkt_sizes/wpa_security/test_vlan_mode.py b/tests/e2e/basic/performance_tests/throughput_benchmark/throughput_vs_various_pkt_sizes/wpa_security/test_vlan_mode.py index 761ee2bca..8f634a645 100644 --- a/tests/e2e/basic/performance_tests/throughput_benchmark/throughput_vs_various_pkt_sizes/wpa_security/test_vlan_mode.py +++ b/tests/e2e/basic/performance_tests/throughput_benchmark/throughput_vs_various_pkt_sizes/wpa_security/test_vlan_mode.py @@ -366,7 +366,7 @@ class TestThroughputVsPktVLANWpa5G(object): security = "wpa" mode = "VLAN" band = "fiveg" - vlan = 1 + vlan = 100 dut_name = create_lanforge_chamberview_dut raw_lines = [['pkts: 60'], ['directions: DUT Transmit;DUT Receive'], @@ -415,7 +415,7 @@ class TestThroughputVsPktVLANWpa5G(object): security = "wpa" mode = "VLAN" band = "fiveg" - vlan = 1 + vlan = 100 dut_name = create_lanforge_chamberview_dut raw_lines = [['pkts: 142'], ['directions: DUT Transmit;DUT Receive'], @@ -464,7 +464,7 @@ class TestThroughputVsPktVLANWpa5G(object): security = "wpa" mode = "VLAN" band = "fiveg" - vlan = 1 + vlan = 100 dut_name = create_lanforge_chamberview_dut raw_lines = [['pkts: 256'], ['directions: DUT Transmit;DUT Receive'], @@ -513,7 +513,7 @@ class TestThroughputVsPktVLANWpa5G(object): security = "wpa" mode = "VLAN" band = "fiveg" - vlan = 1 + vlan = 100 dut_name = create_lanforge_chamberview_dut raw_lines = [['pkts: 512'], ['directions: DUT Transmit;DUT Receive'], @@ -562,7 +562,7 @@ class TestThroughputVsPktVLANWpa5G(object): security = "wpa" mode = "VLAN" band = "fiveg" - vlan = 1 + vlan = 100 dut_name = create_lanforge_chamberview_dut raw_lines = [['pkts: 1024'], ['directions: DUT Transmit;DUT Receive'], @@ -611,7 +611,7 @@ class TestThroughputVsPktVLANWpa5G(object): security = "wpa" mode = "VLAN" band = "fiveg" - vlan = 1 + vlan = 100 dut_name = create_lanforge_chamberview_dut raw_lines = [['pkts: MTU'], ['directions: DUT Transmit;DUT Receive'], From 2d277bfeb7680ab9a21b5d82ebbeb05b9b82c465 Mon Sep 17 00:00:00 2001 From: karthika <78941121+karthikaeyetea@users.noreply.github.com> Date: Mon, 14 Mar 2022 23:11:37 +0530 Subject: [PATCH 025/100] Wifi 6938 (#404) * Country code with channel division: 2Ghz,20Mhz, US and channel 1 * change in testcase execution * created country_code-US, with channel_width-20Mhz, channel_no-1 for 2G band * missed git_configuration param * checking from setup_params_general 'rf' to set radio config * added country_code_channel_division funtion * added radio config using radio_config * corrected allure report * changed function name * check allure report * Added comment * allure report corrected * Created testcase for channel 2 in 2G band * checking allure report * added channel mode VHT in AP configuration which is common for both wifi-5 and wifi-6 AP, without channel-mode always getting channel mode HE * checking allure report * corrected json_get url * testcase for channel-2 in 20Mhz, US, 2G * corrected channel overwritten on second testcase * testcases for channels from 3 to 13 with US, 20Mhz, 2G * US have 2G channels from 1 to 11 * added print statement to verify IP and channel no * Checking again if client not assigned with IP * Testcases: US, 40Mhz, 2G, channels 1-11 * Testcases: US, 40Mhz, 5G, channels (36,44,52,60,100,108,132,140) * removed wrong testcases * Testcases: IN, (20Mhz, 40Mhz), 2G, channels 1-11 * Testcases: IN, 40Mhz, 5G, channels (36,44,52,60,100,108,132,140) * Testcases: CA, 20Mhz,40Mhz, 2G,5G, channels (1-11) (36,44,52,60,100,108,132,140) * Testcases: CA, 40Mhz, 5G, channels (36,44,52,60,100,108,132,140) * Testcases: CA, 5G, 80Mhz, channel (36, 52, 100, 132) * Testcases: IN, 5G, 80Mhz, channel (36, 52, 100, 132) * Testcases: US, 5G, 80Mhz, channel (36, 52, 100, 132) * Testcases: CA, 20Mhz, 5G, channel (36,40,44,48,52,56,60, 64, 100, 104, 108, 112, 116,132, 136, 140, 144) * Testcases: IN, 20Mhz, 5G, channel (36,40,44,48,52,56,60, 64, 100, 104, 108, 112, 116,132, 136, 140, 144) * Testcases: US, 20Mhz, 5G, channel (36,40,44,48,52,56,60, 64, 100, 104, 108, 112, 116,132, 136, 140, 144) * Added rf config improvements Signed-off-by: shivam * Testcases: JP, 20Mhz, 40Mhz (2G+5G), 80Mhz (5G) * Testcases: JP, 20Mhz, 40Mhz (2G+5G), 80Mhz (5G) * Called json_post to change country of lanforge-radio * Edited print message * corrected cli command * Testcases:GB(united kingdom) 20Mhz, 40Mhz, 80Mhz * added cleanup to clear station before creating next station * corrected radio-bands * Added US country code to change lanforge-radio country * Added IN country code to change lanforge-radio country * corrected radio-bands * Added US country code to change lanforge-radio country Co-authored-by: shivam Co-authored-by: Shivam Thakur <70829776+shivamcandela@users.noreply.github.com> --- libs/controller/controller_2x/controller.py | 59 +- libs/lanforge/lf_tests.py | 39 +- .../open_security/test_bridge_mode.py | 4 +- .../country_code_channel_division/__init__.py | 0 .../country_code_CA/__init__.py | 0 .../channel_width_20Mhz/__init__.py | 0 .../fiveg_band/__init__.py | 0 .../fiveg_band/test_CA_20Mhz_5g.py | 1073 ++++++++++++ .../channel_width_20Mhz/twog_band/__init__.py | 0 .../twog_band/test_CA_20Mhz_2g.py | 805 +++++++++ .../channel_width_40Mhz/__init__.py | 0 .../fiveg_band/__init__.py | 0 .../fiveg_band/test_CA_40Mhz_5g.py | 512 ++++++ .../channel_width_40Mhz/twog_band/__init__.py | 0 .../twog_band/test_CA_40Mhz_2g.py | 820 +++++++++ .../channel_width_80Mhz/__init__.py | 0 .../fiveg_band/__init__.py | 0 .../fiveg_band/test_CA_80Mhz_5g.py | 257 +++ .../country_code_GB/__init__.py | 0 .../channel_width_20Mhz/__init__.py | 0 .../fiveg_band/__init__.py | 0 .../fiveg_band/test_GB_20Mhz_5g.py | 1545 +++++++++++++++++ .../channel_width_20Mhz/twog_band/__init__.py | 0 .../twog_band/test_GB_20Mhz_2g.py | 821 +++++++++ .../channel_width_40Mhz/__init__.py | 0 .../fiveg_band/__init__.py | 0 .../fiveg_band/test_GB_40Mhz_5g.py | 758 ++++++++ .../channel_width_40Mhz/twog_band/__init__.py | 0 .../twog_band/test_GB_40Mhz_2g.py | 821 +++++++++ .../channel_width_80Mhz/__init__.py | 0 .../fiveg_band/__init__.py | 0 .../fiveg_band/test_GB_80Mhz_5g.py | 382 ++++ .../country_code_IN/__init__.py | 0 .../channel_width_20Mhz/__init__.py | 0 .../fiveg_band/__init__.py | 0 .../fiveg_band/test_IN_20Mhz_5g.py | 1056 +++++++++++ .../channel_width_20Mhz/twog_band/__init__.py | 0 .../twog_band/test_IN_20Mhz_2g.py | 794 +++++++++ .../channel_width_40Mhz/__init__.py | 0 .../fiveg_band/__init__.py | 0 .../fiveg_band/test_IN_40Mhz_5g.py | 505 ++++++ .../channel_width_40Mhz/twog_band/__init__.py | 0 .../twog_band/test_IN_40Mhz_2g.py | 794 +++++++++ .../channel_width_80Mhz/__init__.py | 0 .../fiveg_band/__init__.py | 0 .../fiveg_band/test_IN_80Mhz_5g.py | 257 +++ .../country_code_JP/__init__.py | 0 .../channel_width_20Mhz/__init__.py | 0 .../fiveg_band/__init__.py | 0 .../fiveg_band/test_JP_20Mhz_5g.py | 1240 +++++++++++++ .../channel_width_20Mhz/twog_band/__init__.py | 0 .../twog_band/test_JP_20Mhz_2g.py | 821 +++++++++ .../channel_width_40Mhz/__init__.py | 0 .../fiveg_band/__init__.py | 0 .../fiveg_band/test_JP_40Mhz_5g.py | 634 +++++++ .../channel_width_40Mhz/twog_band/__init__.py | 0 .../twog_band/test_JP_40Mhz_2g.py | 821 +++++++++ .../channel_width_80Mhz/__init__.py | 0 .../fiveg_band/__init__.py | 0 .../fiveg_band/test_JP_80Mhz_5g.py | 257 +++ .../country_code_US/__init__.py | 0 .../channel_width_20Mhz/__init__.py | 0 .../fiveg_band/__init__.py | 0 .../fiveg_band/test_US_20Mhz_5g.py | 1056 +++++++++++ .../channel_width_20Mhz/twog_band/__init__.py | 0 .../twog_band/test_US_20Mhz_2g.py | 796 +++++++++ .../fiveg_band/test_US_40Mhz_5g.py | 504 ++++++ .../twog_band/test_US_40Mhz_2g.py | 794 +++++++++ .../channel_width_80Mhz/__init__.py | 0 .../fiveg_band/__init__.py | 0 .../fiveg_band/test_US_80Mhz_5g.py | 257 +++ tests/fixtures_2x.py | 5 + 72 files changed, 18457 insertions(+), 30 deletions(-) create mode 100644 tests/e2e/basic/validation_of_operating_modes/country_code_channel_division/__init__.py create mode 100644 tests/e2e/basic/validation_of_operating_modes/country_code_channel_division/country_code_CA/__init__.py create mode 100644 tests/e2e/basic/validation_of_operating_modes/country_code_channel_division/country_code_CA/channel_width_20Mhz/__init__.py create mode 100644 tests/e2e/basic/validation_of_operating_modes/country_code_channel_division/country_code_CA/channel_width_20Mhz/fiveg_band/__init__.py create mode 100644 tests/e2e/basic/validation_of_operating_modes/country_code_channel_division/country_code_CA/channel_width_20Mhz/fiveg_band/test_CA_20Mhz_5g.py create mode 100644 tests/e2e/basic/validation_of_operating_modes/country_code_channel_division/country_code_CA/channel_width_20Mhz/twog_band/__init__.py create mode 100644 tests/e2e/basic/validation_of_operating_modes/country_code_channel_division/country_code_CA/channel_width_20Mhz/twog_band/test_CA_20Mhz_2g.py create mode 100644 tests/e2e/basic/validation_of_operating_modes/country_code_channel_division/country_code_CA/channel_width_40Mhz/__init__.py create mode 100644 tests/e2e/basic/validation_of_operating_modes/country_code_channel_division/country_code_CA/channel_width_40Mhz/fiveg_band/__init__.py create mode 100644 tests/e2e/basic/validation_of_operating_modes/country_code_channel_division/country_code_CA/channel_width_40Mhz/fiveg_band/test_CA_40Mhz_5g.py create mode 100644 tests/e2e/basic/validation_of_operating_modes/country_code_channel_division/country_code_CA/channel_width_40Mhz/twog_band/__init__.py create mode 100644 tests/e2e/basic/validation_of_operating_modes/country_code_channel_division/country_code_CA/channel_width_40Mhz/twog_band/test_CA_40Mhz_2g.py create mode 100644 tests/e2e/basic/validation_of_operating_modes/country_code_channel_division/country_code_CA/channel_width_80Mhz/__init__.py create mode 100644 tests/e2e/basic/validation_of_operating_modes/country_code_channel_division/country_code_CA/channel_width_80Mhz/fiveg_band/__init__.py create mode 100644 tests/e2e/basic/validation_of_operating_modes/country_code_channel_division/country_code_CA/channel_width_80Mhz/fiveg_band/test_CA_80Mhz_5g.py create mode 100644 tests/e2e/basic/validation_of_operating_modes/country_code_channel_division/country_code_GB/__init__.py create mode 100644 tests/e2e/basic/validation_of_operating_modes/country_code_channel_division/country_code_GB/channel_width_20Mhz/__init__.py create mode 100644 tests/e2e/basic/validation_of_operating_modes/country_code_channel_division/country_code_GB/channel_width_20Mhz/fiveg_band/__init__.py create mode 100644 tests/e2e/basic/validation_of_operating_modes/country_code_channel_division/country_code_GB/channel_width_20Mhz/fiveg_band/test_GB_20Mhz_5g.py create mode 100644 tests/e2e/basic/validation_of_operating_modes/country_code_channel_division/country_code_GB/channel_width_20Mhz/twog_band/__init__.py create mode 100644 tests/e2e/basic/validation_of_operating_modes/country_code_channel_division/country_code_GB/channel_width_20Mhz/twog_band/test_GB_20Mhz_2g.py create mode 100644 tests/e2e/basic/validation_of_operating_modes/country_code_channel_division/country_code_GB/channel_width_40Mhz/__init__.py create mode 100644 tests/e2e/basic/validation_of_operating_modes/country_code_channel_division/country_code_GB/channel_width_40Mhz/fiveg_band/__init__.py create mode 100644 tests/e2e/basic/validation_of_operating_modes/country_code_channel_division/country_code_GB/channel_width_40Mhz/fiveg_band/test_GB_40Mhz_5g.py create mode 100644 tests/e2e/basic/validation_of_operating_modes/country_code_channel_division/country_code_GB/channel_width_40Mhz/twog_band/__init__.py create mode 100644 tests/e2e/basic/validation_of_operating_modes/country_code_channel_division/country_code_GB/channel_width_40Mhz/twog_band/test_GB_40Mhz_2g.py create mode 100644 tests/e2e/basic/validation_of_operating_modes/country_code_channel_division/country_code_GB/channel_width_80Mhz/__init__.py create mode 100644 tests/e2e/basic/validation_of_operating_modes/country_code_channel_division/country_code_GB/channel_width_80Mhz/fiveg_band/__init__.py create mode 100644 tests/e2e/basic/validation_of_operating_modes/country_code_channel_division/country_code_GB/channel_width_80Mhz/fiveg_band/test_GB_80Mhz_5g.py create mode 100644 tests/e2e/basic/validation_of_operating_modes/country_code_channel_division/country_code_IN/__init__.py create mode 100644 tests/e2e/basic/validation_of_operating_modes/country_code_channel_division/country_code_IN/channel_width_20Mhz/__init__.py create mode 100644 tests/e2e/basic/validation_of_operating_modes/country_code_channel_division/country_code_IN/channel_width_20Mhz/fiveg_band/__init__.py create mode 100644 tests/e2e/basic/validation_of_operating_modes/country_code_channel_division/country_code_IN/channel_width_20Mhz/fiveg_band/test_IN_20Mhz_5g.py create mode 100644 tests/e2e/basic/validation_of_operating_modes/country_code_channel_division/country_code_IN/channel_width_20Mhz/twog_band/__init__.py create mode 100644 tests/e2e/basic/validation_of_operating_modes/country_code_channel_division/country_code_IN/channel_width_20Mhz/twog_band/test_IN_20Mhz_2g.py create mode 100644 tests/e2e/basic/validation_of_operating_modes/country_code_channel_division/country_code_IN/channel_width_40Mhz/__init__.py create mode 100644 tests/e2e/basic/validation_of_operating_modes/country_code_channel_division/country_code_IN/channel_width_40Mhz/fiveg_band/__init__.py create mode 100644 tests/e2e/basic/validation_of_operating_modes/country_code_channel_division/country_code_IN/channel_width_40Mhz/fiveg_band/test_IN_40Mhz_5g.py create mode 100644 tests/e2e/basic/validation_of_operating_modes/country_code_channel_division/country_code_IN/channel_width_40Mhz/twog_band/__init__.py create mode 100644 tests/e2e/basic/validation_of_operating_modes/country_code_channel_division/country_code_IN/channel_width_40Mhz/twog_band/test_IN_40Mhz_2g.py create mode 100644 tests/e2e/basic/validation_of_operating_modes/country_code_channel_division/country_code_IN/channel_width_80Mhz/__init__.py create mode 100644 tests/e2e/basic/validation_of_operating_modes/country_code_channel_division/country_code_IN/channel_width_80Mhz/fiveg_band/__init__.py create mode 100644 tests/e2e/basic/validation_of_operating_modes/country_code_channel_division/country_code_IN/channel_width_80Mhz/fiveg_band/test_IN_80Mhz_5g.py create mode 100644 tests/e2e/basic/validation_of_operating_modes/country_code_channel_division/country_code_JP/__init__.py create mode 100644 tests/e2e/basic/validation_of_operating_modes/country_code_channel_division/country_code_JP/channel_width_20Mhz/__init__.py create mode 100644 tests/e2e/basic/validation_of_operating_modes/country_code_channel_division/country_code_JP/channel_width_20Mhz/fiveg_band/__init__.py create mode 100644 tests/e2e/basic/validation_of_operating_modes/country_code_channel_division/country_code_JP/channel_width_20Mhz/fiveg_band/test_JP_20Mhz_5g.py create mode 100644 tests/e2e/basic/validation_of_operating_modes/country_code_channel_division/country_code_JP/channel_width_20Mhz/twog_band/__init__.py create mode 100644 tests/e2e/basic/validation_of_operating_modes/country_code_channel_division/country_code_JP/channel_width_20Mhz/twog_band/test_JP_20Mhz_2g.py create mode 100644 tests/e2e/basic/validation_of_operating_modes/country_code_channel_division/country_code_JP/channel_width_40Mhz/__init__.py create mode 100644 tests/e2e/basic/validation_of_operating_modes/country_code_channel_division/country_code_JP/channel_width_40Mhz/fiveg_band/__init__.py create mode 100644 tests/e2e/basic/validation_of_operating_modes/country_code_channel_division/country_code_JP/channel_width_40Mhz/fiveg_band/test_JP_40Mhz_5g.py create mode 100644 tests/e2e/basic/validation_of_operating_modes/country_code_channel_division/country_code_JP/channel_width_40Mhz/twog_band/__init__.py create mode 100644 tests/e2e/basic/validation_of_operating_modes/country_code_channel_division/country_code_JP/channel_width_40Mhz/twog_band/test_JP_40Mhz_2g.py create mode 100644 tests/e2e/basic/validation_of_operating_modes/country_code_channel_division/country_code_JP/channel_width_80Mhz/__init__.py create mode 100644 tests/e2e/basic/validation_of_operating_modes/country_code_channel_division/country_code_JP/channel_width_80Mhz/fiveg_band/__init__.py create mode 100644 tests/e2e/basic/validation_of_operating_modes/country_code_channel_division/country_code_JP/channel_width_80Mhz/fiveg_band/test_JP_80Mhz_5g.py create mode 100644 tests/e2e/basic/validation_of_operating_modes/country_code_channel_division/country_code_US/__init__.py create mode 100644 tests/e2e/basic/validation_of_operating_modes/country_code_channel_division/country_code_US/channel_width_20Mhz/__init__.py create mode 100644 tests/e2e/basic/validation_of_operating_modes/country_code_channel_division/country_code_US/channel_width_20Mhz/fiveg_band/__init__.py create mode 100644 tests/e2e/basic/validation_of_operating_modes/country_code_channel_division/country_code_US/channel_width_20Mhz/fiveg_band/test_US_20Mhz_5g.py create mode 100644 tests/e2e/basic/validation_of_operating_modes/country_code_channel_division/country_code_US/channel_width_20Mhz/twog_band/__init__.py create mode 100644 tests/e2e/basic/validation_of_operating_modes/country_code_channel_division/country_code_US/channel_width_20Mhz/twog_band/test_US_20Mhz_2g.py create mode 100644 tests/e2e/basic/validation_of_operating_modes/country_code_channel_division/country_code_US/channel_width_40Mhz/fiveg_band/test_US_40Mhz_5g.py create mode 100644 tests/e2e/basic/validation_of_operating_modes/country_code_channel_division/country_code_US/channel_width_40Mhz/twog_band/test_US_40Mhz_2g.py create mode 100644 tests/e2e/basic/validation_of_operating_modes/country_code_channel_division/country_code_US/channel_width_80Mhz/__init__.py create mode 100644 tests/e2e/basic/validation_of_operating_modes/country_code_channel_division/country_code_US/channel_width_80Mhz/fiveg_band/__init__.py create mode 100644 tests/e2e/basic/validation_of_operating_modes/country_code_channel_division/country_code_US/channel_width_80Mhz/fiveg_band/test_US_80Mhz_5g.py diff --git a/libs/controller/controller_2x/controller.py b/libs/controller/controller_2x/controller.py index 507319cbb..61ae5d20c 100644 --- a/libs/controller/controller_2x/controller.py +++ b/libs/controller/controller_2x/controller.py @@ -258,7 +258,6 @@ class FMSUtils: else: return {} - def get_firmwares(self, limit="10000", model="", latestonly="", branch="", commit_id="", offset="3000"): deviceType = self.ap_model_lookup(model=model) @@ -285,8 +284,6 @@ class FMSUtils: return "error" - - class UProfileUtility: def __init__(self, sdk_client=None, controller_data=None): @@ -393,16 +390,16 @@ class UProfileUtility: var = { "filters": ["probe", "auth"] - } + } self.base_profile_config["metrics"]['wifi-frames'] = var del self.base_profile_config['services'] var2 = { - "lldp":{ + "lldp": { "describe": "uCentral", "location": "universe" }, - "ssh" : { - "port" : 22 + "ssh": { + "port": 22 } } self.base_profile_config['services'] = var2 @@ -435,8 +432,6 @@ class UProfileUtility: # print(self.base_profile_config, file=sourceFile) # sourceFile.close() - - def encryption_lookup(self, encryption="psk"): encryption_mapping = { "none": "open", @@ -473,7 +468,31 @@ class UProfileUtility: ssid_info.append(temp) return ssid_info - def set_radio_config(self, radio_config=None, DFS = False, channel=None, bw=None): + def set_radio_config(self, radio_config=None, DFS=False, channel=None, bw=None): + base_radio_config_2g = { + "band": "2G", + "country": "CA", + "channel-mode": "HE", + "channel": "auto" + } + base_radio_config_5g = { + "band": "5G", + "country": "CA", + "allow-dfs": True, + "channel-mode": "HE", + "channel": "auto" + } + for band in radio_config: + if band == "2G": + for keys in radio_config[band]: + base_radio_config_2g[keys] = radio_config[band][keys] + if band == "5G": + for keys in radio_config[band]: + base_radio_config_5g[keys] = radio_config[band][keys] + # if band == "6G": + # for keys in radio_config[band]: + # base_radio_config_6g[keys] = radio_config[band][keys] + if DFS: self.base_profile_config["radios"].append({ "band": "5G", @@ -483,22 +502,9 @@ class UProfileUtility: "channel": channel }) else: - self.base_profile_config["radios"].append({ - "band": "2G", - "country": "US", - # "channel-mode": "HE", - "channel-width": 40, - # "channel": 11 - }) - self.base_profile_config["radios"].append({ - "band": "5G", - "country": "US", - "allow-dfs": True, - # "channel-mode": "HE", - "channel-width": 80, - # "channel": "auto" - }) - + self.base_profile_config["radios"].append(base_radio_config_2g) + self.base_profile_config["radios"].append(base_radio_config_5g) + print(self.base_profile_config) self.vlan_section["ssids"] = [] self.vlan_ids = [] @@ -660,7 +666,6 @@ if __name__ == '__main__': # print(i) # print(len(new)) - # print(profile.get_ssid_info()) # # print(obj.get_devices()) # obj.logout() diff --git a/libs/lanforge/lf_tests.py b/libs/lanforge/lf_tests.py index 714c5cdda..2d620a675 100644 --- a/libs/lanforge/lf_tests.py +++ b/libs/lanforge/lf_tests.py @@ -996,7 +996,44 @@ class RunTest: self.Client_disconnect(station_name=station_name) return atten_serial_radio - + def country_code_channel_division(self, ssid = "[BLANK]", passkey='[BLANK]', security="wpa2", mode="BRIDGE", + band='2G', station_name=[], vlan_id=100, channel='1',country=392): + self.local_realm = realm.Realm(lfclient_host=self.lanforge_ip, lfclient_port=self.lanforge_port) + radio = (self.fiveg_radios[0] if band == "fiveg" else self.twog_radios[0]).split('.') + data = { + "shelf": radio[0], + "resource": radio[1], + "radio": radio[2], + "mode": "NA", + "channel": "NA", + "country": country + } + print(f"Lanforge-radio Country changed {country}") + self.local_realm.json_post("/cli-json/set_wifi_radio", _data=data) + station = self.Client_Connect(ssid=ssid, passkey=passkey, security=security, mode=mode, band=band, + station_name=station_name, vlan_id=vlan_id) + if station: + for i in range(10): + station_info = station.json_get(f"/port/1/1/{station_name[0]}") + if station_info['interface']['ip'] == '0.0.0.0': + time.sleep(5) + else: + break + print(f"station {station_name[0]} IP: {station_info['interface']['ip']}\n" + f"connected channel: {station_info['interface']['channel']}\n" + f"and expected channel: {channel}") + station_data_str = "" + for i in station_info["interface"]: + try: + station_data_str += i + " : " + str(station_info["interface"][i]) + "\n" + except Exception as e: + print(e) + allure.attach(name=str(station_name[0]), body=str(station_data_str)) + station.station_profile.cleanup() + if station_info['interface']['ip'] and station_info['interface']['channel'] == str(channel): + return True + else: + return False if __name__ == '__main__': influx_host = "influx.cicd.lab.wlan.tip.build" diff --git a/tests/e2e/basic/performance_tests/throughput_benchmark/throughput_vs_various_pkt_sizes/open_security/test_bridge_mode.py b/tests/e2e/basic/performance_tests/throughput_benchmark/throughput_vs_various_pkt_sizes/open_security/test_bridge_mode.py index 402b111d4..ad2ee1bd0 100644 --- a/tests/e2e/basic/performance_tests/throughput_benchmark/throughput_vs_various_pkt_sizes/open_security/test_bridge_mode.py +++ b/tests/e2e/basic/performance_tests/throughput_benchmark/throughput_vs_various_pkt_sizes/open_security/test_bridge_mode.py @@ -38,8 +38,8 @@ class TestThroughputVsPktBridge2G(object): @pytest.mark.twog @pytest.mark.pkt60 - def test_client_open_pkt_60_2g(self, lf_tools, lf_test, station_names_twog, create_lanforge_chamberview_dut): - + def test_client_open_pkt_60_2g(self, lf_tools, lf_test, station_names_twog, create_lanforge_chamberview_dut, + get_configuration): """Throughput Vs Pkt Sizes Bridge Mode pytest -m "throughput_vs_pkt and Bridge and open and twog and pkt60" """ diff --git a/tests/e2e/basic/validation_of_operating_modes/country_code_channel_division/__init__.py b/tests/e2e/basic/validation_of_operating_modes/country_code_channel_division/__init__.py new file mode 100644 index 000000000..e69de29bb diff --git a/tests/e2e/basic/validation_of_operating_modes/country_code_channel_division/country_code_CA/__init__.py b/tests/e2e/basic/validation_of_operating_modes/country_code_channel_division/country_code_CA/__init__.py new file mode 100644 index 000000000..e69de29bb diff --git a/tests/e2e/basic/validation_of_operating_modes/country_code_channel_division/country_code_CA/channel_width_20Mhz/__init__.py b/tests/e2e/basic/validation_of_operating_modes/country_code_channel_division/country_code_CA/channel_width_20Mhz/__init__.py new file mode 100644 index 000000000..e69de29bb diff --git a/tests/e2e/basic/validation_of_operating_modes/country_code_channel_division/country_code_CA/channel_width_20Mhz/fiveg_band/__init__.py b/tests/e2e/basic/validation_of_operating_modes/country_code_channel_division/country_code_CA/channel_width_20Mhz/fiveg_band/__init__.py new file mode 100644 index 000000000..e69de29bb diff --git a/tests/e2e/basic/validation_of_operating_modes/country_code_channel_division/country_code_CA/channel_width_20Mhz/fiveg_band/test_CA_20Mhz_5g.py b/tests/e2e/basic/validation_of_operating_modes/country_code_channel_division/country_code_CA/channel_width_20Mhz/fiveg_band/test_CA_20Mhz_5g.py new file mode 100644 index 000000000..1f494700e --- /dev/null +++ b/tests/e2e/basic/validation_of_operating_modes/country_code_channel_division/country_code_CA/channel_width_20Mhz/fiveg_band/test_CA_20Mhz_5g.py @@ -0,0 +1,1073 @@ +""" + + Performance Test: Country code along with Channel and Channel-width Test: Bridge Mode + pytest -m "country_code and Bridge" + +""" + + +import os +import pytest +import allure + +pytestmark = [pytest.mark.country_code, pytest.mark.Bridge, pytest.mark.wpa2, pytest.mark.CA] + +setup_params_general1 = { + "mode": "BRIDGE", + "ssid_modes": { + "wpa2_personal": [{"ssid_name": "ssid_wpa2_2g", "appliedRadios": ["2G"], "security_key": "something"}, + {"ssid_name": "ssid_wpa2_5g", "appliedRadios": ["5G"], "security_key": "something"} + ]}, + "rf": { + "5G":{ + 'band': '5G', + 'country': 'CA', + "channel-mode": "VHT", + 'channel-width': 20, + "channel": 36}, + "2G":{ + 'band': '2G', + 'country': 'CA', + "channel-mode": "VHT", + 'channel-width': 20, + "channel": 1} + }, + "radius": False +} + + +@allure.feature("BRIDGE MODE CLIENT CONNECTIVITY") +@pytest.mark.parametrize( + 'setup_profiles', + [setup_params_general1], + indirect=True, + scope="class" +) +@pytest.mark.usefixtures("setup_profiles") +class TestCountryCA20Mhz5GChannel36(object): + """Country code along with Channel and Channel-width Test Bridge mode + pytest -m "country_code and Bridge" + """ + @allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-2546", name="WIFI-6938") + @pytest.mark.wpa2_personal + @pytest.mark.twentyMhz + @pytest.mark.fiveg + @pytest.mark.channel36 + def test_client_bridge_wpa2_chn36_20Mhz_CA_5g(self, lf_test, station_names_fiveg, get_configuration): + """Country code Bridge Mode + pytest -m "country_code and twentyMhz and wpa2 and fiveg and channel36" + """ + profile_data = setup_params_general1["ssid_modes"]["wpa2_personal"][1] + ssid = profile_data["ssid_name"] + security_key = profile_data["security_key"] + security = "wpa2" + mode = "BRIDGE" + band = "fiveg" + vlan = 1 + channel = setup_params_general1['rf']['5G']['channel'] + + result = lf_test.country_code_channel_division(ssid=ssid, security=security, passkey=security_key, mode=mode, + band=band, station_name=station_names_fiveg, vlan_id=vlan, + channel=channel,country=124) + if result: + assert True + else: + assert False + + +setup_params_general2 = { + "mode": "BRIDGE", + "ssid_modes": { + "wpa2_personal": [{"ssid_name": "ssid_wpa2_2g", "appliedRadios": ["2G"], "security_key": "something"}, + {"ssid_name": "ssid_wpa2_5g", "appliedRadios": ["5G"], "security_key": "something"} + ]}, + "rf":{ + "5G":{ + 'band': '5G', + 'country': 'CA', + "channel-mode": "VHT", + 'channel-width': 20, + "channel": 40}, + "2G":{ + 'band': '2G', + 'country': 'CA', + "channel-mode": "VHT", + 'channel-width': 20, + "channel": 1} + }, + "radius": False +} + + +@allure.feature("BRIDGE MODE CLIENT CONNECTIVITY") +@pytest.mark.parametrize( + 'setup_profiles', + [setup_params_general2], + indirect=True, + scope="class" +) +@pytest.mark.usefixtures("setup_profiles") +class TestCountryCA20Mhz5GChannel40(object): + """Country code along with Channel and Channel-width Test Bridge mode + pytest -m "country_code and Bridge" + """ + @allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-2546", name="WIFI-6938") + @pytest.mark.wpa2_personal + @pytest.mark.twentyMhz + @pytest.mark.fiveg + @pytest.mark.channel40 + def test_client_bridge_wpa2_chn40_20Mhz_CA_5g(self, lf_test, station_names_fiveg, get_configuration): + """Country code Bridge Mode + pytest -m "country_code and twentyMhz and wpa2 and fiveg and channel40" + """ + profile_data = setup_params_general2["ssid_modes"]["wpa2_personal"][1] + ssid = profile_data["ssid_name"] + security_key = profile_data["security_key"] + security = "wpa2" + mode = "BRIDGE" + band = "fiveg" + vlan = 1 + channel = setup_params_general2['rf']['5G']['channel'] + + result = lf_test.country_code_channel_division(ssid=ssid, security=security, passkey=security_key, mode=mode, + band=band, station_name=station_names_fiveg, vlan_id=vlan, + channel=channel,country=124) + if result: + assert True + else: + assert False + +setup_params_general3 = { + "mode": "BRIDGE", + "ssid_modes": { + "wpa2_personal": [{"ssid_name": "ssid_wpa2_2g", "appliedRadios": ["2G"], "security_key": "something"}, + {"ssid_name": "ssid_wpa2_5g", "appliedRadios": ["5G"], "security_key": "something"} + ]}, + "rf": { + "5G":{ + 'band': '5G', + 'country': 'CA', + 'channel-mode': 'VHT', + 'channel-width': 20, + "channel": 44}, + "2G":{ + 'band': '2G', + 'country': 'CA', + "channel-mode": "VHT", + 'channel-width': 20, + "channel": 1} + }, + "radius": False +} + + +@allure.feature("BRIDGE MODE CLIENT CONNECTIVITY") +@pytest.mark.parametrize( + 'setup_profiles', + [setup_params_general3], + indirect=True, + scope="class" +) +@pytest.mark.usefixtures("setup_profiles") +class TestCountryCA20Mhz5GChannel44(object): + """Country code along with Channel and Channel-width Test Bridge mode + pytest -m "country_code and Bridge" + """ + @allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-2546", name="WIFI-6938") + @pytest.mark.wpa2_personal + @pytest.mark.twentyMhz + @pytest.mark.fiveg + @pytest.mark.channel44 + def test_client_bridge_wpa2_chn44_20Mhz_CA_5g(self, lf_test, station_names_fiveg, get_configuration): + """Country code Bridge Mode + pytest -m "country_code and twentyMhz and wpa2 and fiveg and channel44" + """ + profile_data = setup_params_general3["ssid_modes"]["wpa2_personal"][1] + ssid = profile_data["ssid_name"] + security_key = profile_data["security_key"] + security = "wpa2" + mode = "BRIDGE" + band = "fiveg" + vlan = 1 + channel = setup_params_general3['rf']['5G']['channel'] + + result = lf_test.country_code_channel_division(ssid=ssid, security=security, passkey=security_key, mode=mode, + band=band, station_name=station_names_fiveg, vlan_id=vlan, + channel=channel,country=124) + if result: + assert True + else: + assert False + + +setup_params_general4 = { + "mode": "BRIDGE", + "ssid_modes": { + "wpa2_personal": [{"ssid_name": "ssid_wpa2_2g", "appliedRadios": ["2G"], "security_key": "something"}, + {"ssid_name": "ssid_wpa2_5g", "appliedRadios": ["5G"], "security_key": "something"} + ]}, + "rf": { + "5G":{ + 'band': '5G', + 'country': 'CA', + "channel-mode": "VHT", + 'channel-width': 20, + "channel": 48}, + "2G":{ + 'band': '2G', + 'country': 'CA', + "channel-mode": "VHT", + 'channel-width': 20, + "channel": 1} + }, + "radius": False +} + + +@allure.feature("BRIDGE MODE CLIENT CONNECTIVITY") +@pytest.mark.parametrize( + 'setup_profiles', + [setup_params_general4], + indirect=True, + scope="class" +) +@pytest.mark.usefixtures("setup_profiles") +class TestCountryCA20Mhz5GChannel48(object): + """Country code along with Channel and Channel-width Test Bridge mode + pytest -m "country_code and Bridge" + """ + @allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-2546", name="WIFI-6938") + @pytest.mark.wpa2_personal + @pytest.mark.twentyMhz + @pytest.mark.fiveg + @pytest.mark.channel48 + def test_client_bridge_wpa2_chn48_20Mhz_CA_5g(self, lf_test, station_names_fiveg, get_configuration): + """Country code Bridge Mode + pytest -m "country_code and twentyMhz and wpa2 and fiveg and channel48" + """ + profile_data = setup_params_general4["ssid_modes"]["wpa2_personal"][1] + ssid = profile_data["ssid_name"] + security_key = profile_data["security_key"] + security = "wpa2" + mode = "BRIDGE" + band = "fiveg" + vlan = 1 + channel = setup_params_general4['rf']['5G']['channel'] + + result = lf_test.country_code_channel_division(ssid=ssid, security=security, passkey=security_key, mode=mode, + band=band, station_name=station_names_fiveg, vlan_id=vlan, + channel=channel,country=124) + if result: + assert True + else: + assert False + + +setup_params_general5 = { + "mode": "BRIDGE", + "ssid_modes": { + "wpa2_personal": [{"ssid_name": "ssid_wpa2_2g", "appliedRadios": ["2G"], "security_key": "something"}, + {"ssid_name": "ssid_wpa2_5g", "appliedRadios": ["5G"], "security_key": "something"} + ]}, + "rf": { + "5G":{ + 'band': '5G', + 'country': 'CA', + 'channel-mode': 'VHT', + 'channel-width': 20, + "channel": 52}, + "2G":{ + 'band': '2G', + 'country': 'CA', + "channel-mode": "VHT", + 'channel-width': 20, + "channel": 1} + }, + "radius": False +} + + +@allure.feature("BRIDGE MODE CLIENT CONNECTIVITY") +@pytest.mark.parametrize( + 'setup_profiles', + [setup_params_general5], + indirect=True, + scope="class" +) +@pytest.mark.usefixtures("setup_profiles") +class TestCountryCA20Mhz5GChannel52(object): + """Country code along with Channel and Channel-width Test Bridge mode + pytest -m "country_code and Bridge" + """ + @allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-2546", name="WIFI-6938") + @pytest.mark.wpa2_personal + @pytest.mark.twentyMhz + @pytest.mark.fiveg + @pytest.mark.channel52 + def test_client_bridge_wpa2_chn52_20Mhz_CA_5g(self, lf_test, station_names_fiveg, get_configuration): + """Country code Bridge Mode + pytest -m "country_code and twentyMhz and wpa2 and fiveg and channel52" + """ + profile_data = setup_params_general5["ssid_modes"]["wpa2_personal"][1] + ssid = profile_data["ssid_name"] + security_key = profile_data["security_key"] + security = "wpa2" + mode = "BRIDGE" + band = "fiveg" + vlan = 1 + channel = setup_params_general5['rf']['5G']['channel'] + + result = lf_test.country_code_channel_division(ssid=ssid, security=security, passkey=security_key, mode=mode, + band=band, station_name=station_names_fiveg, vlan_id=vlan, + channel=channel,country=124) + if result: + assert True + else: + assert False + + +setup_params_general6 = { + "mode": "BRIDGE", + "ssid_modes": { + "wpa2_personal": [{"ssid_name": "ssid_wpa2_2g", "appliedRadios": ["2G"], "security_key": "something"}, + {"ssid_name": "ssid_wpa2_5g", "appliedRadios": ["5G"], "security_key": "something"} + ]}, + "rf": { + "5G":{ + 'band': '5G', + 'country': 'CA', + "channel-mode": "VHT", + 'channel-width': 20, + "channel": 56}, + "2G":{ + 'band': '2G', + 'country': 'CA', + "channel-mode": "VHT", + 'channel-width': 20, + "channel": 1} + }, + "radius": False +} + + +@allure.feature("BRIDGE MODE CLIENT CONNECTIVITY") +@pytest.mark.parametrize( + 'setup_profiles', + [setup_params_general6], + indirect=True, + scope="class" +) +@pytest.mark.usefixtures("setup_profiles") +class TestCountryCA20Mhz5GChannel56(object): + """Country code along with Channel and Channel-width Test Bridge mode + pytest -m "country_code and Bridge" + """ + @allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-2546", name="WIFI-6938") + @pytest.mark.wpa2_personal + @pytest.mark.twentyMhz + @pytest.mark.fiveg + @pytest.mark.channel56 + def test_client_bridge_wpa2_chn56_20Mhz_CA_5g(self, lf_test, station_names_fiveg, get_configuration): + """Country code Bridge Mode + pytest -m "country_code and twentyMhz and wpa2 and fiveg and channel56" + """ + profile_data = setup_params_general6["ssid_modes"]["wpa2_personal"][1] + ssid = profile_data["ssid_name"] + security_key = profile_data["security_key"] + security = "wpa2" + mode = "BRIDGE" + band = "fiveg" + vlan = 1 + channel = setup_params_general6['rf']['5G']['channel'] + + result = lf_test.country_code_channel_division(ssid=ssid, security=security, passkey=security_key, mode=mode, + band=band, station_name=station_names_fiveg, vlan_id=vlan, + channel=channel,country=124) + if result: + assert True + else: + assert False + + +setup_params_general7 = { + "mode": "BRIDGE", + "ssid_modes": { + "wpa2_personal": [{"ssid_name": "ssid_wpa2_2g", "appliedRadios": ["2G"], "security_key": "something"}, + {"ssid_name": "ssid_wpa2_5g", "appliedRadios": ["5G"], "security_key": "something"} + ]}, + "rf": { + "5G":{ + 'band': '5G', + 'country': 'CA', + 'channel-mode': 'VHT', + 'channel-width': 20, + "channel": 60}, + "2G":{ + 'band': '2G', + 'country': 'CA', + "channel-mode": "VHT", + 'channel-width': 20, + "channel": 1} + }, + "radius": False +} + +@allure.feature("BRIDGE MODE CLIENT CONNECTIVITY") +@pytest.mark.parametrize( + 'setup_profiles', + [setup_params_general7], + indirect=True, + scope="class" +) +@pytest.mark.usefixtures("setup_profiles") +class TestCountryCA20Mhz5GChannel60(object): + """Country code along with Channel and Channel-width Test Bridge mode + pytest -m "country_code and Bridge" + """ + @allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-2546", name="WIFI-6938") + @pytest.mark.wpa2_personal + @pytest.mark.twentyMhz + @pytest.mark.fiveg + @pytest.mark.channel60 + def test_client_bridge_wpa2_chn60_20Mhz_CA_5g(self, lf_test, station_names_fiveg, get_configuration): + """Country code Bridge Mode + pytest -m "country_code and twentyMhz and wpa2 and fiveg and channel60" + """ + profile_data = setup_params_general7["ssid_modes"]["wpa2_personal"][1] + ssid = profile_data["ssid_name"] + security_key = profile_data["security_key"] + security = "wpa2" + mode = "BRIDGE" + band = "fiveg" + vlan = 1 + channel = setup_params_general7['rf']['5G']['channel'] + + result = lf_test.country_code_channel_division(ssid=ssid, security=security, passkey=security_key, mode=mode, + band=band, station_name=station_names_fiveg, vlan_id=vlan, + channel=channel,country=124) + if result: + assert True + else: + assert False + + +setup_params_general8 = { + "mode": "BRIDGE", + "ssid_modes": { + "wpa2_personal": [{"ssid_name": "ssid_wpa2_2g", "appliedRadios": ["2G"], "security_key": "something"}, + {"ssid_name": "ssid_wpa2_5g", "appliedRadios": ["5G"], "security_key": "something"} + ]}, + "rf": { + "5G":{ + 'band': '5G', + 'country': 'CA', + "channel-mode": "VHT", + 'channel-width': 20, + "channel": 64}, + "2G":{ + 'band': '2G', + 'country': 'CA', + "channel-mode": "VHT", + 'channel-width': 20, + "channel": 1} + }, + "radius": False +} + + +@allure.feature("BRIDGE MODE CLIENT CONNECTIVITY") +@pytest.mark.parametrize( + 'setup_profiles', + [setup_params_general8], + indirect=True, + scope="class" +) +@pytest.mark.usefixtures("setup_profiles") +class TestCountryCA20Mhz5GChannel64(object): + """Country code along with Channel and Channel-width Test Bridge mode + pytest -m "country_code and Bridge" + """ + @allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-2546", name="WIFI-6938") + @pytest.mark.wpa2_personal + @pytest.mark.twentyMhz + @pytest.mark.fiveg + @pytest.mark.channel64 + def test_client_bridge_wpa2_chn64_20Mhz_CA_5g(self, lf_test, station_names_fiveg, get_configuration): + """Country code Bridge Mode + pytest -m "country_code and twentyMhz and wpa2 and fiveg and channel64" + """ + profile_data = setup_params_general8["ssid_modes"]["wpa2_personal"][1] + ssid = profile_data["ssid_name"] + security_key = profile_data["security_key"] + security = "wpa2" + mode = "BRIDGE" + band = "fiveg" + vlan = 1 + channel = setup_params_general8['rf']['5G']['channel'] + + result = lf_test.country_code_channel_division(ssid=ssid, security=security, passkey=security_key, mode=mode, + band=band, station_name=station_names_fiveg, vlan_id=vlan, + channel=channel,country=124) + if result: + assert True + else: + assert False + + +setup_params_general9 = { + "mode": "BRIDGE", + "ssid_modes": { + "wpa2_personal": [{"ssid_name": "ssid_wpa2_2g", "appliedRadios": ["2G"], "security_key": "something"}, + {"ssid_name": "ssid_wpa2_5g", "appliedRadios": ["5G"], "security_key": "something"} + ]}, + "rf": { + "5G":{ + 'band': '5G', + 'country': 'CA', + 'channel-mode': 'VHT', + 'channel-width': 20, + "channel": 100}, + "2G":{ + 'band': '2G', + 'country': 'CA', + "channel-mode": "VHT", + 'channel-width': 20, + "channel": 1} + }, + "radius": False +} + +@allure.feature("BRIDGE MODE CLIENT CONNECTIVITY") +@pytest.mark.parametrize( + 'setup_profiles', + [setup_params_general9], + indirect=True, + scope="class" +) +@pytest.mark.usefixtures("setup_profiles") +class TestCountryCA20Mhz5GChannel100(object): + """Country code along with Channel and Channel-width Test Bridge mode + pytest -m "country_code and Bridge" + """ + @allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-2546", name="WIFI-6938") + @pytest.mark.wpa2_personal + @pytest.mark.twentyMhz + @pytest.mark.fiveg + @pytest.mark.channel100 + def test_client_bridge_wpa2_chn100_20Mhz_CA_5g(self, lf_test, station_names_fiveg, get_configuration): + """Country code Bridge Mode + pytest -m "country_code and twentyMhz and wpa2 and fiveg and channel100" + """ + profile_data = setup_params_general9["ssid_modes"]["wpa2_personal"][1] + ssid = profile_data["ssid_name"] + security_key = profile_data["security_key"] + security = "wpa2" + mode = "BRIDGE" + band = "fiveg" + vlan = 1 + channel = setup_params_general9['rf']['5G']['channel'] + + result = lf_test.country_code_channel_division(ssid=ssid, security=security, passkey=security_key, mode=mode, + band=band, station_name=station_names_fiveg, vlan_id=vlan, + channel=channel,country=124) + if result: + assert True + else: + assert False + + +setup_params_general10 = { + "mode": "BRIDGE", + "ssid_modes": { + "wpa2_personal": [{"ssid_name": "ssid_wpa2_2g", "appliedRadios": ["2G"], "security_key": "something"}, + {"ssid_name": "ssid_wpa2_5g", "appliedRadios": ["5G"], "security_key": "something"} + ]}, + "rf": { + "5G":{ + 'band': '5G', + 'country': 'CA', + 'channel-mode': 'VHT', + 'channel-width': 20, + "channel": 104}, + "2G":{ + 'band': '2G', + 'country': 'CA', + "channel-mode": "VHT", + 'channel-width': 20, + "channel": 1} + }, + "radius": False +} + +@allure.feature("BRIDGE MODE CLIENT CONNECTIVITY") +@pytest.mark.parametrize( + 'setup_profiles', + [setup_params_general10], + indirect=True, + scope="class" +) +@pytest.mark.usefixtures("setup_profiles") +class TestCountryCA20Mhz5GChannel104(object): + """Country code along with Channel and Channel-width Test Bridge mode + pytest -m "country_code and Bridge" + """ + @allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-2546", name="WIFI-6938") + @pytest.mark.wpa2_personal + @pytest.mark.twentyMhz + @pytest.mark.fiveg + @pytest.mark.channel104 + def test_client_bridge_wpa2_chn104_20Mhz_CA_5g(self, lf_test, station_names_fiveg, get_configuration): + """Country code Bridge Mode + pytest -m "country_code and twentyMhz and wpa2 and fiveg and channel104" + """ + profile_data = setup_params_general10["ssid_modes"]["wpa2_personal"][1] + ssid = profile_data["ssid_name"] + security_key = profile_data["security_key"] + security = "wpa2" + mode = "BRIDGE" + band = "fiveg" + vlan = 1 + channel = setup_params_general10['rf']['5G']['channel'] + + result = lf_test.country_code_channel_division(ssid=ssid, security=security, passkey=security_key, mode=mode, + band=band, station_name=station_names_fiveg, vlan_id=vlan, + channel=channel,country=124) + if result: + assert True + else: + assert False + + +setup_params_general11 = { + "mode": "BRIDGE", + "ssid_modes": { + "wpa2_personal": [{"ssid_name": "ssid_wpa2_2g", "appliedRadios": ["2G"], "security_key": "something"}, + {"ssid_name": "ssid_wpa2_5g", "appliedRadios": ["5G"], "security_key": "something"} + ]}, + "rf": { + "5G":{ + 'band': '5G', + 'country': 'CA', + 'channel-mode': 'VHT', + 'channel-width': 20, + "channel": 108}, + "2G":{ + 'band': '2G', + 'country': 'CA', + "channel-mode": "VHT", + 'channel-width': 20, + "channel": 1} + }, + "radius": False +} + +@allure.feature("BRIDGE MODE CLIENT CONNECTIVITY") +@pytest.mark.parametrize( + 'setup_profiles', + [setup_params_general11], + indirect=True, + scope="class" +) +@pytest.mark.usefixtures("setup_profiles") +class TestCountryCA20Mhz5GChannel108(object): + """Country code along with Channel and Channel-width Test Bridge mode + pytest -m "country_code and Bridge" + """ + @allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-2546", name="WIFI-6938") + @pytest.mark.wpa2_personal + @pytest.mark.twentyMhz + @pytest.mark.fiveg + @pytest.mark.channel108 + def test_client_bridge_wpa2_chn108_20Mhz_CA_5g(self, lf_test, station_names_fiveg, get_configuration): + """Country code Bridge Mode + pytest -m "country_code and twentyMhz and wpa2 and fiveg and channel108" + """ + profile_data = setup_params_general11["ssid_modes"]["wpa2_personal"][1] + ssid = profile_data["ssid_name"] + security_key = profile_data["security_key"] + security = "wpa2" + mode = "BRIDGE" + band = "fiveg" + vlan = 1 + channel = setup_params_general11['rf']['5G']['channel'] + + result = lf_test.country_code_channel_division(ssid=ssid, security=security, passkey=security_key, mode=mode, + band=band, station_name=station_names_fiveg, vlan_id=vlan, + channel=channel,country=124) + if result: + assert True + else: + assert False + + +setup_params_general12 = { + "mode": "BRIDGE", + "ssid_modes": { + "wpa2_personal": [{"ssid_name": "ssid_wpa2_2g", "appliedRadios": ["2G"], "security_key": "something"}, + {"ssid_name": "ssid_wpa2_5g", "appliedRadios": ["5G"], "security_key": "something"} + ]}, + "rf": { + "5G":{ + 'band': '5G', + 'country': 'CA', + 'channel-mode': 'VHT', + 'channel-width': 20, + "channel": 112}, + "2G":{ + 'band': '2G', + 'country': 'CA', + "channel-mode": "VHT", + 'channel-width': 20, + "channel": 1} + }, + "radius": False +} + +@allure.feature("BRIDGE MODE CLIENT CONNECTIVITY") +@pytest.mark.parametrize( + 'setup_profiles', + [setup_params_general12], + indirect=True, + scope="class" +) +@pytest.mark.usefixtures("setup_profiles") +class TestCountryCA20Mhz5GChannel112(object): + """Country code along with Channel and Channel-width Test Bridge mode + pytest -m "country_code and Bridge" + """ + @allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-2546", name="WIFI-6938") + @pytest.mark.wpa2_personal + @pytest.mark.twentyMhz + @pytest.mark.fiveg + @pytest.mark.channel112 + def test_client_bridge_wpa2_chn112_20Mhz_CA_5g(self, lf_test, station_names_fiveg, get_configuration): + """Country code Bridge Mode + pytest -m "country_code and twentyMhz and wpa2 and fiveg and channel112" + """ + profile_data = setup_params_general12["ssid_modes"]["wpa2_personal"][1] + ssid = profile_data["ssid_name"] + security_key = profile_data["security_key"] + security = "wpa2" + mode = "BRIDGE" + band = "fiveg" + vlan = 1 + channel = setup_params_general12['rf']['5G']['channel'] + + result = lf_test.country_code_channel_division(ssid=ssid, security=security, passkey=security_key, mode=mode, + band=band, station_name=station_names_fiveg, vlan_id=vlan, + channel=channel,country=124) + if result: + assert True + else: + assert False + + +setup_params_general13 = { + "mode": "BRIDGE", + "ssid_modes": { + "wpa2_personal": [{"ssid_name": "ssid_wpa2_2g", "appliedRadios": ["2G"], "security_key": "something"}, + {"ssid_name": "ssid_wpa2_5g", "appliedRadios": ["5G"], "security_key": "something"} + ]}, + "rf": { + "5G":{ + 'band': '5G', + 'country': 'CA', + 'channel-mode': 'VHT', + 'channel-width': 20, + "channel": 116}, + "2G":{ + 'band': '2G', + 'country': 'CA', + "channel-mode": "VHT", + 'channel-width': 20, + "channel": 1} + }, + "radius": False +} + +@allure.feature("BRIDGE MODE CLIENT CONNECTIVITY") +@pytest.mark.parametrize( + 'setup_profiles', + [setup_params_general13], + indirect=True, + scope="class" +) +@pytest.mark.usefixtures("setup_profiles") +class TestCountryCA20Mhz5GChannel116(object): + """Country code along with Channel and Channel-width Test Bridge mode + pytest -m "country_code and Bridge" + """ + @allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-2546", name="WIFI-6938") + @pytest.mark.wpa2_personal + @pytest.mark.twentyMhz + @pytest.mark.fiveg + @pytest.mark.channel116 + def test_client_bridge_wpa2_chn116_20Mhz_CA_5g(self, lf_test, station_names_fiveg, get_configuration): + """Country code Bridge Mode + pytest -m "country_code and twentyMhz and wpa2 and fiveg and channel116" + """ + profile_data = setup_params_general13["ssid_modes"]["wpa2_personal"][1] + ssid = profile_data["ssid_name"] + security_key = profile_data["security_key"] + security = "wpa2" + mode = "BRIDGE" + band = "fiveg" + vlan = 1 + channel = setup_params_general13['rf']['5G']['channel'] + + result = lf_test.country_code_channel_division(ssid=ssid, security=security, passkey=security_key, mode=mode, + band=band, station_name=station_names_fiveg, vlan_id=vlan, + channel=channel,country=124) + if result: + assert True + else: + assert False + + +setup_params_general14 = { + "mode": "BRIDGE", + "ssid_modes": { + "wpa2_personal": [{"ssid_name": "ssid_wpa2_2g", "appliedRadios": ["2G"], "security_key": "something"}, + {"ssid_name": "ssid_wpa2_5g", "appliedRadios": ["5G"], "security_key": "something"} + ]}, + "rf": { + "5G":{ + 'band': '5G', + 'country': 'CA', + 'channel-mode': 'VHT', + 'channel-width': 20, + "channel": 132}, + "2G":{ + 'band': '2G', + 'country': 'CA', + "channel-mode": "VHT", + 'channel-width': 20, + "channel": 1} + }, + "radius": False +} + +@allure.feature("BRIDGE MODE CLIENT CONNECTIVITY") +@pytest.mark.parametrize( + 'setup_profiles', + [setup_params_general14], + indirect=True, + scope="class" +) +@pytest.mark.usefixtures("setup_profiles") +class TestCountryCA20Mhz5GChannel132(object): + """Country code along with Channel and Channel-width Test Bridge mode + pytest -m "country_code and Bridge" + """ + @allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-2546", name="WIFI-6938") + @pytest.mark.wpa2_personal + @pytest.mark.twentyMhz + @pytest.mark.fiveg + @pytest.mark.channel132 + def test_client_bridge_wpa2_chn132_20Mhz_CA_5g(self, lf_test, station_names_fiveg, get_configuration): + """Country code Bridge Mode + pytest -m "country_code and twentyMhz and wpa2 and fiveg and channel132" + """ + profile_data = setup_params_general14["ssid_modes"]["wpa2_personal"][1] + ssid = profile_data["ssid_name"] + security_key = profile_data["security_key"] + security = "wpa2" + mode = "BRIDGE" + band = "fiveg" + vlan = 1 + channel = setup_params_general14['rf']['5G']['channel'] + + result = lf_test.country_code_channel_division(ssid=ssid, security=security, passkey=security_key, mode=mode, + band=band, station_name=station_names_fiveg, vlan_id=vlan, + channel=channel,country=124) + if result: + assert True + else: + assert False + + +setup_params_general15 = { + "mode": "BRIDGE", + "ssid_modes": { + "wpa2_personal": [{"ssid_name": "ssid_wpa2_2g", "appliedRadios": ["2G"], "security_key": "something"}, + {"ssid_name": "ssid_wpa2_5g", "appliedRadios": ["5G"], "security_key": "something"} + ]}, + "rf": { + "5G":{ + 'band': '5G', + 'country': 'CA', + 'channel-mode': 'VHT', + 'channel-width': 20, + "channel": 136}, + "2G":{ + 'band': '2G', + 'country': 'CA', + "channel-mode": "VHT", + 'channel-width': 20, + "channel": 1} + }, + "radius": False +} + +@allure.feature("BRIDGE MODE CLIENT CONNECTIVITY") +@pytest.mark.parametrize( + 'setup_profiles', + [setup_params_general15], + indirect=True, + scope="class" +) +@pytest.mark.usefixtures("setup_profiles") +class TestCountryCA20Mhz5GChannel136(object): + """Country code along with Channel and Channel-width Test Bridge mode + pytest -m "country_code and Bridge" + """ + @allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-2546", name="WIFI-6938") + @pytest.mark.wpa2_personal + @pytest.mark.twentyMhz + @pytest.mark.fiveg + @pytest.mark.channel136 + def test_client_bridge_wpa2_chn136_20Mhz_CA_5g(self, lf_test, station_names_fiveg, get_configuration): + """Country code Bridge Mode + pytest -m "country_code and twentyMhz and wpa2 and fiveg and channel136" + """ + profile_data = setup_params_general15["ssid_modes"]["wpa2_personal"][1] + ssid = profile_data["ssid_name"] + security_key = profile_data["security_key"] + security = "wpa2" + mode = "BRIDGE" + band = "fiveg" + vlan = 1 + channel = setup_params_general15['rf']['5G']['channel'] + + result = lf_test.country_code_channel_division(ssid=ssid, security=security, passkey=security_key, mode=mode, + band=band, station_name=station_names_fiveg, vlan_id=vlan, + channel=channel,country=124) + if result: + assert True + else: + assert False + + +setup_params_general16 = { + "mode": "BRIDGE", + "ssid_modes": { + "wpa2_personal": [{"ssid_name": "ssid_wpa2_2g", "appliedRadios": ["2G"], "security_key": "something"}, + {"ssid_name": "ssid_wpa2_5g", "appliedRadios": ["5G"], "security_key": "something"} + ]}, + "rf": { + "5G":{ + 'band': '5G', + 'country': 'CA', + 'channel-mode': 'VHT', + 'channel-width': 20, + "channel": 140}, + "2G":{ + 'band': '2G', + 'country': 'CA', + "channel-mode": "VHT", + 'channel-width': 20, + "channel": 1} + }, + "radius": False +} + +@allure.feature("BRIDGE MODE CLIENT CONNECTIVITY") +@pytest.mark.parametrize( + 'setup_profiles', + [setup_params_general16], + indirect=True, + scope="class" +) +@pytest.mark.usefixtures("setup_profiles") +class TestCountryCA20Mhz5GChannel140(object): + """Country code along with Channel and Channel-width Test Bridge mode + pytest -m "country_code and Bridge" + """ + @allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-2546", name="WIFI-6938") + @pytest.mark.wpa2_personal + @pytest.mark.twentyMhz + @pytest.mark.fiveg + @pytest.mark.channel140 + def test_client_bridge_wpa2_chn140_20Mhz_CA_5g(self, lf_test, station_names_fiveg, get_configuration): + """Country code Bridge Mode + pytest -m "country_code and twentyMhz and wpa2 and fiveg and channel140" + """ + profile_data = setup_params_general16["ssid_modes"]["wpa2_personal"][1] + ssid = profile_data["ssid_name"] + security_key = profile_data["security_key"] + security = "wpa2" + mode = "BRIDGE" + band = "fiveg" + vlan = 1 + channel = setup_params_general16['rf']['5G']['channel'] + + result = lf_test.country_code_channel_division(ssid=ssid, security=security, passkey=security_key, mode=mode, + band=band, station_name=station_names_fiveg, vlan_id=vlan, + channel=channel,country=124) + if result: + assert True + else: + assert False + + +setup_params_general17 = { + "mode": "BRIDGE", + "ssid_modes": { + "wpa2_personal": [{"ssid_name": "ssid_wpa2_2g", "appliedRadios": ["2G"], "security_key": "something"}, + {"ssid_name": "ssid_wpa2_5g", "appliedRadios": ["5G"], "security_key": "something"} + ]}, + "rf": { + "5G":{ + 'band': '5G', + 'country': 'CA', + 'channel-mode': 'VHT', + 'channel-width': 20, + "channel": 144}, + "2G":{ + 'band': '2G', + 'country': 'CA', + "channel-mode": "VHT", + 'channel-width': 20, + "channel": 1} + }, + "radius": False +} + +@allure.feature("BRIDGE MODE CLIENT CONNECTIVITY") +@pytest.mark.parametrize( + 'setup_profiles', + [setup_params_general17], + indirect=True, + scope="class" +) +@pytest.mark.usefixtures("setup_profiles") +class TestCountryCA20Mhz5GChannel144(object): + """Country code along with Channel and Channel-width Test Bridge mode + pytest -m "country_code and Bridge" + """ + @allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-2546", name="WIFI-6938") + @pytest.mark.wpa2_personal + @pytest.mark.twentyMhz + @pytest.mark.fiveg + @pytest.mark.channel144 + def test_client_bridge_wpa2_chn144_20Mhz_CA_5g(self, lf_test, station_names_fiveg, get_configuration): + """Country code Bridge Mode + pytest -m "country_code and twentyMhz and wpa2 and fiveg and channel144" + """ + profile_data = setup_params_general17["ssid_modes"]["wpa2_personal"][1] + ssid = profile_data["ssid_name"] + security_key = profile_data["security_key"] + security = "wpa2" + mode = "BRIDGE" + band = "fiveg" + vlan = 1 + channel = setup_params_general17['rf']['5G']['channel'] + + result = lf_test.country_code_channel_division(ssid=ssid, security=security, passkey=security_key, mode=mode, + band=band, station_name=station_names_fiveg, vlan_id=vlan, + channel=channel,country=124) + if result: + assert True + else: + assert False + diff --git a/tests/e2e/basic/validation_of_operating_modes/country_code_channel_division/country_code_CA/channel_width_20Mhz/twog_band/__init__.py b/tests/e2e/basic/validation_of_operating_modes/country_code_channel_division/country_code_CA/channel_width_20Mhz/twog_band/__init__.py new file mode 100644 index 000000000..e69de29bb diff --git a/tests/e2e/basic/validation_of_operating_modes/country_code_channel_division/country_code_CA/channel_width_20Mhz/twog_band/test_CA_20Mhz_2g.py b/tests/e2e/basic/validation_of_operating_modes/country_code_channel_division/country_code_CA/channel_width_20Mhz/twog_band/test_CA_20Mhz_2g.py new file mode 100644 index 000000000..66759835e --- /dev/null +++ b/tests/e2e/basic/validation_of_operating_modes/country_code_channel_division/country_code_CA/channel_width_20Mhz/twog_band/test_CA_20Mhz_2g.py @@ -0,0 +1,805 @@ +""" + + Performance Test: Country code along with Channel and Channel-width Test: Bridge Mode + pytest -m "country_code and Bridge" + +""" + + +import os +import pytest +import allure + +pytestmark = [pytest.mark.country_code, pytest.mark.Bridge, pytest.mark.wpa2, pytest.mark.CA] + +setup_params_general1 = { + "mode": "BRIDGE", + "ssid_modes": { + "wpa2_personal": [{"ssid_name": "ssid_wpa2_2g", "appliedRadios": ["2G"], "security_key": "something"}, + {"ssid_name": "ssid_wpa2_5g", "appliedRadios": ["5G"], "security_key": "something"} + ]}, + "rf": { + "5G": + {'band': '5G', + 'country': 'CA', + "channel-mode": "VHT", + 'channel-width': 20, + "channel": 36}, + "2G": + {'band': '2G', + 'country': 'CA', + "channel-mode": "VHT", + 'channel-width': 20, + "channel": 1} + }, + "radius": False +} + + +@allure.feature("BRIDGE MODE CLIENT CONNECTIVITY") +@pytest.mark.parametrize( + 'setup_profiles', + [setup_params_general1], + indirect=True, + scope="class" +) +@pytest.mark.usefixtures("setup_profiles") +class TestCountryCA20Mhz2GChannel1(object): + """Country code along with Channel and Channel-width Test Bridge mode + pytest -m "country_code and Bridge" + """ + @allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-2546", name="WIFI-6938") + @pytest.mark.wpa2_personal + @pytest.mark.twentyMhz + @pytest.mark.twog + @pytest.mark.channel1 + def test_client_bridge_wpa2_chn1_20Mhz_CA_2g(self, lf_test, station_names_twog, get_configuration): + """Country code Bridge Mode + pytest -m "country_code and twentyMhz and wpa2 and twog and channel1" + """ + profile_data = setup_params_general1["ssid_modes"]["wpa2_personal"][0] + ssid = profile_data["ssid_name"] + security_key = profile_data["security_key"] + security = "wpa2" + mode = "BRIDGE" + band = "twog" + vlan = 1 + channel = setup_params_general1['rf']['2G']['channel'] + + result = lf_test.country_code_channel_division(ssid=ssid, security=security, passkey=security_key, mode=mode, + band=band, station_name=station_names_twog, vlan_id=vlan, + channel=channel,country=124) + if result: + assert True + else: + assert False + + +setup_params_general2 = { + "mode": "BRIDGE", + "ssid_modes": { + "wpa2_personal": [{"ssid_name": "ssid_wpa2_2g", "appliedRadios": ["2G"], "security_key": "something"}, + {"ssid_name": "ssid_wpa2_5g", "appliedRadios": ["5G"], "security_key": "something"} + ]}, + "rf": { + "5G": + {'band': '5G', + 'country': 'CA', + "channel-mode": "VHT", + 'channel-width': 20, + "channel": 36}, + "2G": + {'band': '2G', + 'country': 'CA', + 'channel-mode': 'VHT', + 'channel-width': 20, + "channel": 2} + }, + "radius": False +} + + +@allure.feature("BRIDGE MODE CLIENT CONNECTIVITY") +@pytest.mark.parametrize( + 'setup_profiles', + [setup_params_general2], + indirect=True, + scope="class" +) +@pytest.mark.usefixtures("setup_profiles") +class TestCountryCA20Mhz2GChannel2(object): + """Country code along with Channel and Channel-width Test Bridge mode + pytest -m "country_code and Bridge" + """ + @allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-2546", name="WIFI-6938") + @pytest.mark.wpa2_personal + @pytest.mark.twentyMhz + @pytest.mark.twog + @pytest.mark.channel2 + def test_client_bridge_wpa2_chn2_20Mhz_CA_2g(self, lf_test, station_names_twog, get_configuration): + """Country code Bridge Mode + pytest -m "country_code and twentyMhz and wpa2 and twog and channel2" + """ + profile_data = setup_params_general2["ssid_modes"]["wpa2_personal"][0] + ssid = profile_data["ssid_name"] + security_key = profile_data["security_key"] + security = "wpa2" + mode = "BRIDGE" + band = "twog" + vlan = 1 + channel = setup_params_general2['rf']['2G']['channel'] + + result = lf_test.country_code_channel_division(ssid=ssid, security=security, passkey=security_key, mode=mode, + band=band, station_name=station_names_twog, vlan_id=vlan, + channel=channel,country=124) + if result: + assert True + else: + assert False + + +setup_params_general3 = { + "mode": "BRIDGE", + "ssid_modes": { + "wpa2_personal": [{"ssid_name": "ssid_wpa2_2g", "appliedRadios": ["2G"], "security_key": "something"}, + {"ssid_name": "ssid_wpa2_5g", "appliedRadios": ["5G"], "security_key": "something"} + ]}, + "rf": { + "5G": + {'band': '5G', + 'country': 'CA', + "channel-mode": "VHT", + 'channel-width': 20, + "channel": 36}, + "2G": + {'band': '2G', + 'country': 'CA', + 'channel-mode': 'VHT', + 'channel-width': 20, + "channel": 3} + }, + "radius": False +} + + +@allure.feature("BRIDGE MODE CLIENT CONNECTIVITY") +@pytest.mark.parametrize( + 'setup_profiles', + [setup_params_general3], + indirect=True, + scope="class" +) +@pytest.mark.usefixtures("setup_profiles") +class TestCountryCA20Mhz2GChannel3(object): + """Country code along with Channel and Channel-width Test Bridge mode + pytest -m "country_code and Bridge" + """ + @allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-2546", name="WIFI-6938") + @pytest.mark.wpa2_personal + @pytest.mark.twentyMhz + @pytest.mark.twog + @pytest.mark.channel3 + def test_client_bridge_wpa2_chn3_20Mhz_CA_2g(self, lf_test, station_names_twog, get_configuration): + """Country code Bridge Mode + pytest -m "country_code and twentyMhz and wpa2 and twog and channel3" + """ + profile_data = setup_params_general3["ssid_modes"]["wpa2_personal"][0] + ssid = profile_data["ssid_name"] + security_key = profile_data["security_key"] + security = "wpa2" + mode = "BRIDGE" + band = "twog" + vlan = 1 + channel = setup_params_general3['rf']['2G']['channel'] + + result = lf_test.country_code_channel_division(ssid=ssid, security=security, passkey=security_key, mode=mode, + band=band, station_name=station_names_twog, vlan_id=vlan, + channel=channel,country=124) + if result: + assert True + else: + assert False + + +setup_params_general4 = { + "mode": "BRIDGE", + "ssid_modes": { + "wpa2_personal": [{"ssid_name": "ssid_wpa2_2g", "appliedRadios": ["2G"], "security_key": "something"}, + {"ssid_name": "ssid_wpa2_5g", "appliedRadios": ["5G"], "security_key": "something"} + ]}, + "rf": { + "5G": + {'band': '5G', + 'country': 'CA', + "channel-mode": "VHT", + 'channel-width': 20, + "channel": 36}, + "2G": + {'band': '2G', + 'country': 'CA', + 'channel-mode': 'VHT', + 'channel-width': 20, + "channel": 4} + }, + "radius": False +} + +@allure.feature("BRIDGE MODE CLIENT CONNECTIVITY") +@pytest.mark.parametrize( + 'setup_profiles', + [setup_params_general4], + indirect=True, + scope="class" +) +@pytest.mark.usefixtures("setup_profiles") +class TestCountryCA20Mhz2GChannel4(object): + """Country code along with Channel and Channel-width Test Bridge mode + pytest -m "country_code and Bridge" + """ + @allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-2546", name="WIFI-6938") + @pytest.mark.wpa2_personal + @pytest.mark.twentyMhz + @pytest.mark.twog + @pytest.mark.channel4 + def test_client_bridge_wpa2_chn4_20Mhz_CA_2g(self, lf_test, station_names_twog, get_configuration): + """Country code Bridge Mode + pytest -m "country_code and twentyMhz and wpa2 and twog and channel4" + """ + profile_data = setup_params_general4["ssid_modes"]["wpa2_personal"][0] + ssid = profile_data["ssid_name"] + security_key = profile_data["security_key"] + security = "wpa2" + mode = "BRIDGE" + band = "twog" + vlan = 1 + channel = setup_params_general4['rf']['2G']['channel'] + + result = lf_test.country_code_channel_division(ssid=ssid, security=security, passkey=security_key, mode=mode, + band=band, station_name=station_names_twog, vlan_id=vlan, + channel=channel,country=124) + if result: + assert True + else: + assert False + + +setup_params_general5 = { + "mode": "BRIDGE", + "ssid_modes": { + "wpa2_personal": [{"ssid_name": "ssid_wpa2_2g", "appliedRadios": ["2G"], "security_key": "something"}, + {"ssid_name": "ssid_wpa2_5g", "appliedRadios": ["5G"], "security_key": "something"} + ]}, + "rf": { + "5G": + {'band': '5G', + 'country': 'CA', + "channel-mode": "VHT", + 'channel-width': 20, + "channel": 36}, + "2G": + {'band': '2G', + 'country': 'CA', + 'channel-mode': 'VHT', + 'channel-width': 20, + "channel": 5} + }, + "radius": False +} + +@allure.feature("BRIDGE MODE CLIENT CONNECTIVITY") +@pytest.mark.parametrize( + 'setup_profiles', + [setup_params_general5], + indirect=True, + scope="class" +) +@pytest.mark.usefixtures("setup_profiles") +class TestCountryCA20Mhz2GChannel5(object): + """Country code along with Channel and Channel-width Test Bridge mode + pytest -m "country_code and Bridge" + """ + @allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-2546", name="WIFI-6938") + @pytest.mark.wpa2_personal + @pytest.mark.twentyMhz + @pytest.mark.twog + @pytest.mark.channel5 + def test_client_bridge_wpa2_chn5_20Mhz_CA_2g(self, lf_test, station_names_twog, get_configuration): + """Country code Bridge Mode + pytest -m "country_code and twentyMhz and wpa2 and twog and channel5" + """ + profile_data = setup_params_general5["ssid_modes"]["wpa2_personal"][0] + ssid = profile_data["ssid_name"] + security_key = profile_data["security_key"] + security = "wpa2" + mode = "BRIDGE" + band = "twog" + vlan = 1 + channel = setup_params_general5['rf']['2G']['channel'] + + result = lf_test.country_code_channel_division(ssid=ssid, security=security, passkey=security_key, mode=mode, + band=band, station_name=station_names_twog, vlan_id=vlan, + channel=channel,country=124) + if result: + assert True + else: + assert False + + +setup_params_general6 = { + "mode": "BRIDGE", + "ssid_modes": { + "wpa2_personal": [{"ssid_name": "ssid_wpa2_2g", "appliedRadios": ["2G"], "security_key": "something"}, + {"ssid_name": "ssid_wpa2_5g", "appliedRadios": ["5G"], "security_key": "something"} + ]}, + "rf": { + "5G": + {'band': '5G', + 'country': 'CA', + "channel-mode": "VHT", + 'channel-width': 20, + "channel": 36}, + "2G": + {'band': '2G', + 'country': 'CA', + 'channel-mode': 'VHT', + 'channel-width': 20, + "channel": 6} + }, + "radius": False +} + +@allure.feature("BRIDGE MODE CLIENT CONNECTIVITY") +@pytest.mark.parametrize( + 'setup_profiles', + [setup_params_general6], + indirect=True, + scope="class" +) +@pytest.mark.usefixtures("setup_profiles") +class TestCountryCA20Mhz2GChannel6(object): + """Country code along with Channel and Channel-width Test Bridge mode + pytest -m "country_code and Bridge" + """ + @allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-2546", name="WIFI-6938") + @pytest.mark.wpa2_personal + @pytest.mark.twentyMhz + @pytest.mark.twog + @pytest.mark.channel6 + def test_client_bridge_wpa2_chn6_20Mhz_CA_2g(self, lf_test, station_names_twog, get_configuration): + """Country code Bridge Mode + pytest -m "country_code and twentyMhz and wpa2 and twog and channel6" + """ + profile_data = setup_params_general6["ssid_modes"]["wpa2_personal"][0] + ssid = profile_data["ssid_name"] + security_key = profile_data["security_key"] + security = "wpa2" + mode = "BRIDGE" + band = "twog" + vlan = 1 + channel = setup_params_general6['rf']['2G']['channel'] + + result = lf_test.country_code_channel_division(ssid=ssid, security=security, passkey=security_key, mode=mode, + band=band, station_name=station_names_twog, vlan_id=vlan, + channel=channel,country=124) + if result: + assert True + else: + assert False + + +setup_params_general7 = { + "mode": "BRIDGE", + "ssid_modes": { + "wpa2_personal": [{"ssid_name": "ssid_wpa2_2g", "appliedRadios": ["2G"], "security_key": "something"}, + {"ssid_name": "ssid_wpa2_5g", "appliedRadios": ["5G"], "security_key": "something"} + ]}, + "rf": { + "5G": + {'band': '5G', + 'country': 'CA', + "channel-mode": "VHT", + 'channel-width': 20, + "channel": 36}, + "2G": + {'band': '2G', + 'country': 'CA', + 'channel-mode': 'VHT', + 'channel-width': 20, + "channel": 7} + }, + "radius": False +} + +@allure.feature("BRIDGE MODE CLIENT CONNECTIVITY") +@pytest.mark.parametrize( + 'setup_profiles', + [setup_params_general7], + indirect=True, + scope="class" +) +@pytest.mark.usefixtures("setup_profiles") +class TestCountryCA20Mhz2GChannel7(object): + """Country code along with Channel and Channel-width Test Bridge mode + pytest -m "country_code and Bridge" + """ + @allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-2546", name="WIFI-6938") + @pytest.mark.wpa2_personal + @pytest.mark.twentyMhz + @pytest.mark.twog + @pytest.mark.channel7 + def test_client_bridge_wpa2_chn7_20Mhz_CA_2g(self, lf_test, station_names_twog, get_configuration): + """Country code Bridge Mode + pytest -m "country_code and twentyMhz and wpa2 and twog and channel7" + """ + profile_data = setup_params_general7["ssid_modes"]["wpa2_personal"][0] + ssid = profile_data["ssid_name"] + security_key = profile_data["security_key"] + security = "wpa2" + mode = "BRIDGE" + band = "twog" + vlan = 1 + channel = setup_params_general7['rf']['2G']['channel'] + + result = lf_test.country_code_channel_division(ssid=ssid, security=security, passkey=security_key, mode=mode, + band=band, station_name=station_names_twog, vlan_id=vlan, + channel=channel,country=124) + if result: + assert True + else: + assert False + + +setup_params_general8 = { + "mode": "BRIDGE", + "ssid_modes": { + "wpa2_personal": [{"ssid_name": "ssid_wpa2_2g", "appliedRadios": ["2G"], "security_key": "something"}, + {"ssid_name": "ssid_wpa2_5g", "appliedRadios": ["5G"], "security_key": "something"} + ]}, + "rf": { + "5G": + {'band': '5G', + 'country': 'CA', + "channel-mode": "VHT", + 'channel-width': 20, + "channel": 36}, + "2G": + {'band': '2G', + 'country': 'CA', + 'channel-mode': 'VHT', + 'channel-width': 20, + "channel": 8} + }, + "radius": False +} + +@allure.feature("BRIDGE MODE CLIENT CONNECTIVITY") +@pytest.mark.parametrize( + 'setup_profiles', + [setup_params_general8], + indirect=True, + scope="class" +) +@pytest.mark.usefixtures("setup_profiles") +class TestCountryCA20Mhz2GChannel8(object): + """Country code along with Channel and Channel-width Test Bridge mode + pytest -m "country_code and Bridge" + """ + @allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-2546", name="WIFI-6938") + @pytest.mark.wpa2_personal + @pytest.mark.twentyMhz + @pytest.mark.twog + @pytest.mark.channel8 + def test_client_bridge_wpa2_chn8_20Mhz_CA_2g(self, lf_test, station_names_twog, get_configuration): + """Country code Bridge Mode + pytest -m "country_code and twentyMhz and wpa2 and twog and channel8" + """ + profile_data = setup_params_general8["ssid_modes"]["wpa2_personal"][0] + ssid = profile_data["ssid_name"] + security_key = profile_data["security_key"] + security = "wpa2" + mode = "BRIDGE" + band = "twog" + vlan = 1 + channel = setup_params_general8['rf']['2G']['channel'] + + result = lf_test.country_code_channel_division(ssid=ssid, security=security, passkey=security_key, mode=mode, + band=band, station_name=station_names_twog, vlan_id=vlan, + channel=channel,country=124) + if result: + assert True + else: + assert False + + +setup_params_general9 = { + "mode": "BRIDGE", + "ssid_modes": { + "wpa2_personal": [{"ssid_name": "ssid_wpa2_2g", "appliedRadios": ["2G"], "security_key": "something"}, + {"ssid_name": "ssid_wpa2_5g", "appliedRadios": ["5G"], "security_key": "something"} + ]}, + "rf": { + "5G": + {'band': '5G', + 'country': 'CA', + "channel-mode": "VHT", + 'channel-width': 20, + "channel": 36}, + "2G": + {'band': '2G', + 'country': 'CA', + 'channel-mode': 'VHT', + 'channel-width': 20, + "channel": 9} + }, + "radius": False +} + +@allure.feature("BRIDGE MODE CLIENT CONNECTIVITY") +@pytest.mark.parametrize( + 'setup_profiles', + [setup_params_general9], + indirect=True, + scope="class" +) +@pytest.mark.usefixtures("setup_profiles") +class TestCountryCA20Mhz2GChannel9(object): + """Country code along with Channel and Channel-width Test Bridge mode + pytest -m "country_code and Bridge" + """ + @allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-2546", name="WIFI-6938") + @pytest.mark.wpa2_personal + @pytest.mark.twentyMhz + @pytest.mark.twog + @pytest.mark.channel9 + def test_client_bridge_wpa2_chn9_20Mhz_CA_2g(self, lf_test, station_names_twog, get_configuration): + """Country code Bridge Mode + pytest -m "country_code and twentyMhz and wpa2 and twog and channel9" + """ + profile_data = setup_params_general9["ssid_modes"]["wpa2_personal"][0] + ssid = profile_data["ssid_name"] + security_key = profile_data["security_key"] + security = "wpa2" + mode = "BRIDGE" + band = "twog" + vlan = 1 + channel = setup_params_general9['rf']['2G']['channel'] + + result = lf_test.country_code_channel_division(ssid=ssid, security=security, passkey=security_key, mode=mode, + band=band, station_name=station_names_twog, vlan_id=vlan, + channel=channel,country=124) + if result: + assert True + else: + assert False + + +setup_params_general10 = { + "mode": "BRIDGE", + "ssid_modes": { + "wpa2_personal": [{"ssid_name": "ssid_wpa2_2g", "appliedRadios": ["2G"], "security_key": "something"}, + {"ssid_name": "ssid_wpa2_5g", "appliedRadios": ["5G"], "security_key": "something"} + ]}, + "rf": { + "5G": + {'band': '5G', + 'country': 'CA', + "channel-mode": "VHT", + 'channel-width': 20, + "channel": 36}, + "2G": + {'band': '2G', + 'country': 'CA', + 'channel-mode': 'VHT', + 'channel-width': 20, + "channel": 10} + }, + "radius": False +} + +@allure.feature("BRIDGE MODE CLIENT CONNECTIVITY") +@pytest.mark.parametrize( + 'setup_profiles', + [setup_params_general10], + indirect=True, + scope="class" +) +@pytest.mark.usefixtures("setup_profiles") +class TestCountryCA20Mhz2GChannel10(object): + """Country code along with Channel and Channel-width Test Bridge mode + pytest -m "country_code and Bridge" + """ + @allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-2546", name="WIFI-6938") + @pytest.mark.wpa2_personal + @pytest.mark.twentyMhz + @pytest.mark.twog + @pytest.mark.channel10 + def test_client_bridge_wpa2_chn10_20Mhz_CA_2g(self, lf_test, station_names_twog, get_configuration): + """Country code Bridge Mode + pytest -m "country_code and twentyMhz and wpa2 and twog and channel10" + """ + profile_data = setup_params_general10["ssid_modes"]["wpa2_personal"][0] + ssid = profile_data["ssid_name"] + security_key = profile_data["security_key"] + security = "wpa2" + mode = "BRIDGE" + band = "twog" + vlan = 1 + channel = setup_params_general10['rf']['2G']['channel'] + + result = lf_test.country_code_channel_division(ssid=ssid, security=security, passkey=security_key, mode=mode, + band=band, station_name=station_names_twog, vlan_id=vlan, + channel=channel,country=124) + if result: + assert True + else: + assert False + + +setup_params_general11 = { + "mode": "BRIDGE", + "ssid_modes": { + "wpa2_personal": [{"ssid_name": "ssid_wpa2_2g", "appliedRadios": ["2G"], "security_key": "something"}, + {"ssid_name": "ssid_wpa2_5g", "appliedRadios": ["5G"], "security_key": "something"} + ]}, + "rf": { + "5G": + {'band': '5G', + 'country': 'CA', + "channel-mode": "VHT", + 'channel-width': 20, + "channel": 36}, + "2G": + {'band': '2G', + 'country': 'CA', + 'channel-mode': 'VHT', + 'channel-width': 20, + "channel": 11} + }, + "radius": False +} + +@allure.feature("BRIDGE MODE CLIENT CONNECTIVITY") +@pytest.mark.parametrize( + 'setup_profiles', + [setup_params_general11], + indirect=True, + scope="class" +) +@pytest.mark.usefixtures("setup_profiles") +class TestCountryCA20Mhz2GChannel11(object): + """Country code along with Channel and Channel-width Test Bridge mode + pytest -m "country_code and Bridge" + """ + @allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-2546", name="WIFI-6938") + @pytest.mark.wpa2_personal + @pytest.mark.twentyMhz + @pytest.mark.twog + @pytest.mark.channel11 + def test_client_bridge_wpa2_chn11_20Mhz_CA_2g(self, lf_test, station_names_twog, get_configuration): + """Country code Bridge Mode + pytest -m "country_code and twentyMhz and wpa2 and twog and channel11" + """ + profile_data = setup_params_general11["ssid_modes"]["wpa2_personal"][0] + ssid = profile_data["ssid_name"] + security_key = profile_data["security_key"] + security = "wpa2" + mode = "BRIDGE" + band = "twog" + vlan = 1 + channel = setup_params_general11['rf']['2G']['channel'] + + result = lf_test.country_code_channel_division(ssid=ssid, security=security, passkey=security_key, mode=mode, + band=band, station_name=station_names_twog, vlan_id=vlan, + channel=channel,country=124) + if result: + assert True + else: + assert False + + +# setup_params_general12 = { +# "mode": "BRIDGE", +# "ssid_modes": { +# "wpa2_personal": [{"ssid_name": "ssid_wpa2_2g", "appliedRadios": ["2G"], "security_key": "something"}, +# ]}, +# "rf": {"2G": +# {'band': '2G', +# 'country': 'CA', +# 'channel-mode': 'VHT', +# 'channel-width': 20, +# "channel": 12} +# }, +# "radius": False +# } +# +# @allure.feature("BRIDGE MODE CLIENT CONNECTIVITY") +# @pytest.mark.parametrize( +# 'setup_profiles', +# [setup_params_general12], +# indirect=True, +# scope="class" +# ) +# @pytest.mark.usefixtures("setup_profiles") +# class TestCountryCA20Mhz2GChannel12(object): +# """Country code along with Channel and Channel-width Test Bridge mode +# pytest -m "country_code and Bridge" +# """ +# @allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-2546", name="WIFI-6938") +# @pytest.mark.wpa2_personal +# @pytest.mark.twentyMhz +# @pytest.mark.twog +# @pytest.mark.channel12 +# def test_client_bridge_wpa2_chn12_20Mhz_CA_2g(self, lf_test, station_names_twog, get_configuration): +# """Country code Bridge Mode +# pytest -m "country_code and twentyMhz and wpa2 and twog and channel12" +# """ +# profile_data = setup_params_general12["ssid_modes"]["wpa2_personal"][0] +# ssid = profile_data["ssid_name"] +# security_key = profile_data["security_key"] +# security = "wpa2" +# mode = "BRIDGE" +# band = "twog" +# vlan = 1 +# channel = setup_params_general12['rf']['2G']['channel'] +# +# result = lf_test.country_code_channel_division(ssid=ssid, security=security, passkey=security_key, mode=mode, +# band=band, station_name=station_names_twog, vlan_id=vlan, +# channel=channel) +# if result: +# assert True +# else: +# assert False +# +# +# setup_params_general13 = { +# "mode": "BRIDGE", +# "ssid_modes": { +# "wpa2_personal": [{"ssid_name": "ssid_wpa2_2g", "appliedRadios": ["2G"], "security_key": "something"}, +# ]}, +# "rf": {"2G": +# {'band': '2G', +# 'country': 'CA', +# 'channel-mode': 'VHT', +# 'channel-width': 20, +# "channel": 13} +# }, +# "radius": False +# } +# +# @allure.feature("BRIDGE MODE CLIENT CONNECTIVITY") +# @pytest.mark.parametrize( +# 'setup_profiles', +# [setup_params_general13], +# indirect=True, +# scope="class" +# ) +# @pytest.mark.usefixtures("setup_profiles") +# class TestCountryCA20Mhz2GChannel13(object): +# """Country code along with Channel and Channel-width Test Bridge mode +# pytest -m "country_code and Bridge" +# """ +# @allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-2546", name="WIFI-6938") +# @pytest.mark.wpa2_personal +# @pytest.mark.twentyMhz +# @pytest.mark.twog +# @pytest.mark.channel13 +# def test_client_bridge_wpa2_chn13_20Mhz_CA_2g(self, lf_test, station_names_twog, get_configuration): +# """Country code Bridge Mode +# pytest -m "country_code and twentyMhz and wpa2 and twog and channel13" +# """ +# profile_data = setup_params_general13["ssid_modes"]["wpa2_personal"][0] +# ssid = profile_data["ssid_name"] +# security_key = profile_data["security_key"] +# security = "wpa2" +# mode = "BRIDGE" +# band = "twog" +# vlan = 1 +# channel = setup_params_general13['rf']['2G']['channel'] +# +# result = lf_test.country_code_channel_division(ssid=ssid, security=security, passkey=security_key, mode=mode, +# band=band, station_name=station_names_twog, vlan_id=vlan, +# channel=channel) +# if result: +# assert True +# else: +# assert False \ No newline at end of file diff --git a/tests/e2e/basic/validation_of_operating_modes/country_code_channel_division/country_code_CA/channel_width_40Mhz/__init__.py b/tests/e2e/basic/validation_of_operating_modes/country_code_channel_division/country_code_CA/channel_width_40Mhz/__init__.py new file mode 100644 index 000000000..e69de29bb diff --git a/tests/e2e/basic/validation_of_operating_modes/country_code_channel_division/country_code_CA/channel_width_40Mhz/fiveg_band/__init__.py b/tests/e2e/basic/validation_of_operating_modes/country_code_channel_division/country_code_CA/channel_width_40Mhz/fiveg_band/__init__.py new file mode 100644 index 000000000..e69de29bb diff --git a/tests/e2e/basic/validation_of_operating_modes/country_code_channel_division/country_code_CA/channel_width_40Mhz/fiveg_band/test_CA_40Mhz_5g.py b/tests/e2e/basic/validation_of_operating_modes/country_code_channel_division/country_code_CA/channel_width_40Mhz/fiveg_band/test_CA_40Mhz_5g.py new file mode 100644 index 000000000..1342d7098 --- /dev/null +++ b/tests/e2e/basic/validation_of_operating_modes/country_code_channel_division/country_code_CA/channel_width_40Mhz/fiveg_band/test_CA_40Mhz_5g.py @@ -0,0 +1,512 @@ +""" + + Performance Test: Country code along with Channel and Channel-width Test: Bridge Mode + pytest -m "country_code and Bridge" + +""" + + +import os +import pytest +import allure + +pytestmark = [pytest.mark.country_code, pytest.mark.Bridge, pytest.mark.wpa2, pytest.mark.CA] + +setup_params_general1 = { + "mode": "BRIDGE", + "ssid_modes": { + "wpa2_personal": [{"ssid_name": "ssid_wpa2_2g", "appliedRadios": ["2G"], "security_key": "something"}, + {"ssid_name": "ssid_wpa2_5g", "appliedRadios": ["5G"], "security_key": "something"} + ]}, + "rf": { + "5G": + {'band': '5G', + 'country': 'CA', + "channel-mode": "VHT", + 'channel-width': 40, + "channel": 36}, + "2G": + {'band': '2G', + 'country': 'CA', + "channel-mode": "VHT", + 'channel-width': 40, + "channel": 1} + }, + "radius": False +} + + +@allure.feature("BRIDGE MODE CLIENT CONNECTIVITY") +@pytest.mark.parametrize( + 'setup_profiles', + [setup_params_general1], + indirect=True, + scope="class" +) +@pytest.mark.usefixtures("setup_profiles") +class TestCountryCA40Mhz5GChannel36(object): + """Country code along with Channel and Channel-width Test Bridge mode + pytest -m "country_code and Bridge" + """ + @allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-2546", name="WIFI-6938") + @pytest.mark.wpa2_personal + @pytest.mark.fourtyMhz + @pytest.mark.fiveg + @pytest.mark.channel36 + def test_client_bridge_wpa2_chn36_40Mhz_CA_5g(self, lf_test, station_names_fiveg, get_configuration): + """Country code Bridge Mode + pytest -m "country_code and fourtyMhz and wpa2 and fiveg and channel36" + """ + profile_data = setup_params_general1["ssid_modes"]["wpa2_personal"][1] + ssid = profile_data["ssid_name"] + security_key = profile_data["security_key"] + security = "wpa2" + mode = "BRIDGE" + band = "fiveg" + vlan = 1 + channel = setup_params_general1['rf']['5G']['channel'] + + result = lf_test.country_code_channel_division(ssid=ssid, security=security, passkey=security_key, mode=mode, + band=band, station_name=station_names_fiveg, vlan_id=vlan, + channel=channel,country=124) + if result: + assert True + else: + assert False + + +setup_params_general2 = { + "mode": "BRIDGE", + "ssid_modes": { + "wpa2_personal": [{"ssid_name": "ssid_wpa2_2g", "appliedRadios": ["2G"], "security_key": "something"}, + {"ssid_name": "ssid_wpa2_5g", "appliedRadios": ["5G"], "security_key": "something"} + ]}, + "rf": { + "5G": + {'band': '5G', + 'country': 'CA', + 'channel-mode': 'VHT', + 'channel-width': 40, + "channel": 44}, + "2G": + {'band': '2G', + 'country': 'CA', + "channel-mode": "VHT", + 'channel-width': 40, + "channel": 1} + }, + "radius": False +} + + +@allure.feature("BRIDGE MODE CLIENT CONNECTIVITY") +@pytest.mark.parametrize( + 'setup_profiles', + [setup_params_general2], + indirect=True, + scope="class" +) +@pytest.mark.usefixtures("setup_profiles") +class TestCountryCA40Mhz5GChannel44(object): + """Country code along with Channel and Channel-width Test Bridge mode + pytest -m "country_code and Bridge" + """ + @allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-2546", name="WIFI-6938") + @pytest.mark.wpa2_personal + @pytest.mark.fourtyMhz + @pytest.mark.fiveg + @pytest.mark.channel44 + def test_client_bridge_wpa2_chn44_40Mhz_CA_5g(self, lf_test, station_names_fiveg, get_configuration): + """Country code Bridge Mode + pytest -m "country_code and fourtyMhz and wpa2 and fiveg and channel44" + """ + profile_data = setup_params_general2["ssid_modes"]["wpa2_personal"][1] + ssid = profile_data["ssid_name"] + security_key = profile_data["security_key"] + security = "wpa2" + mode = "BRIDGE" + band = "fiveg" + vlan = 1 + channel = setup_params_general2['rf']['5G']['channel'] + + result = lf_test.country_code_channel_division(ssid=ssid, security=security, passkey=security_key, mode=mode, + band=band, station_name=station_names_fiveg, vlan_id=vlan, + channel=channel,country=124) + if result: + assert True + else: + assert False + + +setup_params_general3 = { + "mode": "BRIDGE", + "ssid_modes": { + "wpa2_personal": [{"ssid_name": "ssid_wpa2_2g", "appliedRadios": ["2G"], "security_key": "something"}, + {"ssid_name": "ssid_wpa2_5g", "appliedRadios": ["5G"], "security_key": "something"} + ]}, + "rf": { + "5G": + {'band': '5G', + 'country': 'CA', + 'channel-mode': 'VHT', + 'channel-width': 40, + "channel": 52}, + "2G": + {'band': '2G', + 'country': 'CA', + "channel-mode": "VHT", + 'channel-width': 40, + "channel": 1} + }, + "radius": False +} + + +@allure.feature("BRIDGE MODE CLIENT CONNECTIVITY") +@pytest.mark.parametrize( + 'setup_profiles', + [setup_params_general3], + indirect=True, + scope="class" +) +@pytest.mark.usefixtures("setup_profiles") +class TestCountryCA40Mhz5GChannel52(object): + """Country code along with Channel and Channel-width Test Bridge mode + pytest -m "country_code and Bridge" + """ + @allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-2546", name="WIFI-6938") + @pytest.mark.wpa2_personal + @pytest.mark.fourtyMhz + @pytest.mark.fiveg + @pytest.mark.channel52 + def test_client_bridge_wpa2_chn52_40Mhz_CA_5g(self, lf_test, station_names_fiveg, get_configuration): + """Country code Bridge Mode + pytest -m "country_code and fourtyMhz and wpa2 and fiveg and channel52" + """ + profile_data = setup_params_general3["ssid_modes"]["wpa2_personal"][1] + ssid = profile_data["ssid_name"] + security_key = profile_data["security_key"] + security = "wpa2" + mode = "BRIDGE" + band = "fiveg" + vlan = 1 + channel = setup_params_general3['rf']['5G']['channel'] + + result = lf_test.country_code_channel_division(ssid=ssid, security=security, passkey=security_key, mode=mode, + band=band, station_name=station_names_fiveg, vlan_id=vlan, + channel=channel,country=124) + if result: + assert True + else: + assert False + + +setup_params_general4 = { + "mode": "BRIDGE", + "ssid_modes": { + "wpa2_personal": [{"ssid_name": "ssid_wpa2_2g", "appliedRadios": ["2G"], "security_key": "something"}, + {"ssid_name": "ssid_wpa2_5g", "appliedRadios": ["5G"], "security_key": "something"} + ]}, + "rf": {"5G": + {'band': '5G', + 'country': 'CA', + 'channel-mode': 'VHT', + 'channel-width': 40, + "channel": 60}, + "2G": + {'band': '2G', + 'country': 'CA', + "channel-mode": "VHT", + 'channel-width': 40, + "channel": 1} + }, + "radius": False +} + +@allure.feature("BRIDGE MODE CLIENT CONNECTIVITY") +@pytest.mark.parametrize( + 'setup_profiles', + [setup_params_general4], + indirect=True, + scope="class" +) +@pytest.mark.usefixtures("setup_profiles") +class TestCountryCA40Mhz5GChannel60(object): + """Country code along with Channel and Channel-width Test Bridge mode + pytest -m "country_code and Bridge" + """ + @allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-2546", name="WIFI-6938") + @pytest.mark.wpa2_personal + @pytest.mark.fourtyMhz + @pytest.mark.fiveg + @pytest.mark.channel60 + def test_client_bridge_wpa2_chn60_40Mhz_CA_5g(self, lf_test, station_names_fiveg, get_configuration): + """Country code Bridge Mode + pytest -m "country_code and fourtyMhz and wpa2 and fiveg and channel60" + """ + profile_data = setup_params_general4["ssid_modes"]["wpa2_personal"][1] + ssid = profile_data["ssid_name"] + security_key = profile_data["security_key"] + security = "wpa2" + mode = "BRIDGE" + band = "fiveg" + vlan = 1 + channel = setup_params_general4['rf']['5G']['channel'] + + result = lf_test.country_code_channel_division(ssid=ssid, security=security, passkey=security_key, mode=mode, + band=band, station_name=station_names_fiveg, vlan_id=vlan, + channel=channel,country=124) + if result: + assert True + else: + assert False + + +setup_params_general5 = { + "mode": "BRIDGE", + "ssid_modes": { + "wpa2_personal": [{"ssid_name": "ssid_wpa2_2g", "appliedRadios": ["2G"], "security_key": "something"}, + {"ssid_name": "ssid_wpa2_5g", "appliedRadios": ["5G"], "security_key": "something"} + ]}, + "rf": { + "5G": + {'band': '5G', + 'country': 'CA', + 'channel-mode': 'VHT', + 'channel-width': 40, + "channel": 100}, + "2G": + {'band': '2G', + 'country': 'CA', + "channel-mode": "VHT", + 'channel-width': 40, + "channel": 1} + }, + "radius": False +} + +@allure.feature("BRIDGE MODE CLIENT CONNECTIVITY") +@pytest.mark.parametrize( + 'setup_profiles', + [setup_params_general5], + indirect=True, + scope="class" +) +@pytest.mark.usefixtures("setup_profiles") +class TestCountryCA40Mhz5GChannel100(object): + """Country code along with Channel and Channel-width Test Bridge mode + pytest -m "country_code and Bridge" + """ + @allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-2546", name="WIFI-6938") + @pytest.mark.wpa2_personal + @pytest.mark.fourtyMhz + @pytest.mark.fiveg + @pytest.mark.channel100 + def test_client_bridge_wpa2_chn100_40Mhz_CA_5g(self, lf_test, station_names_fiveg, get_configuration): + """Country code Bridge Mode + pytest -m "country_code and fourtyMhz and wpa2 and fiveg and channel100" + """ + profile_data = setup_params_general5["ssid_modes"]["wpa2_personal"][1] + ssid = profile_data["ssid_name"] + security_key = profile_data["security_key"] + security = "wpa2" + mode = "BRIDGE" + band = "fiveg" + vlan = 1 + channel = setup_params_general5['rf']['5G']['channel'] + + result = lf_test.country_code_channel_division(ssid=ssid, security=security, passkey=security_key, mode=mode, + band=band, station_name=station_names_fiveg, vlan_id=vlan, + channel=channel,country=124) + if result: + assert True + else: + assert False + + +setup_params_general6 = { + "mode": "BRIDGE", + "ssid_modes": { + "wpa2_personal": [{"ssid_name": "ssid_wpa2_2g", "appliedRadios": ["2G"], "security_key": "something"}, + {"ssid_name": "ssid_wpa2_5g", "appliedRadios": ["5G"], "security_key": "something"} + ]}, + "rf": { + "5G": + {'band': '5G', + 'country': 'CA', + 'channel-mode': 'VHT', + 'channel-width': 40, + "channel": 108}, + "2G": + {'band': '2G', + 'country': 'CA', + "channel-mode": "VHT", + 'channel-width': 40, + "channel": 1} + }, + "radius": False +} + +@allure.feature("BRIDGE MODE CLIENT CONNECTIVITY") +@pytest.mark.parametrize( + 'setup_profiles', + [setup_params_general6], + indirect=True, + scope="class" +) +@pytest.mark.usefixtures("setup_profiles") +class TestCountryCA40Mhz5GChannel108(object): + """Country code along with Channel and Channel-width Test Bridge mode + pytest -m "country_code and Bridge" + """ + @allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-2546", name="WIFI-6938") + @pytest.mark.wpa2_personal + @pytest.mark.fourtyMhz + @pytest.mark.fiveg + @pytest.mark.channel108 + def test_client_bridge_wpa2_chn108_40Mhz_CA_5g(self, lf_test, station_names_fiveg, get_configuration): + """Country code Bridge Mode + pytest -m "country_code and fourtyMhz and wpa2 and fiveg and channel108" + """ + profile_data = setup_params_general6["ssid_modes"]["wpa2_personal"][1] + ssid = profile_data["ssid_name"] + security_key = profile_data["security_key"] + security = "wpa2" + mode = "BRIDGE" + band = "fiveg" + vlan = 1 + channel = setup_params_general6['rf']['5G']['channel'] + + result = lf_test.country_code_channel_division(ssid=ssid, security=security, passkey=security_key, mode=mode, + band=band, station_name=station_names_fiveg, vlan_id=vlan, + channel=channel,country=124) + if result: + assert True + else: + assert False + + +setup_params_general7 = { + "mode": "BRIDGE", + "ssid_modes": { + "wpa2_personal": [{"ssid_name": "ssid_wpa2_2g", "appliedRadios": ["2G"], "security_key": "something"}, + {"ssid_name": "ssid_wpa2_5g", "appliedRadios": ["5G"], "security_key": "something"} + ]}, + "rf": { + "5G": + {'band': '5G', + 'country': 'CA', + 'channel-mode': 'VHT', + 'channel-width': 40, + "channel": 132}, + "2G": + {'band': '2G', + 'country': 'CA', + "channel-mode": "VHT", + 'channel-width': 40, + "channel": 1} + }, + "radius": False +} + +@allure.feature("BRIDGE MODE CLIENT CONNECTIVITY") +@pytest.mark.parametrize( + 'setup_profiles', + [setup_params_general7], + indirect=True, + scope="class" +) +@pytest.mark.usefixtures("setup_profiles") +class TestCountryCA40Mhz5GChannel132(object): + """Country code along with Channel and Channel-width Test Bridge mode + pytest -m "country_code and Bridge" + """ + @allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-2546", name="WIFI-6938") + @pytest.mark.wpa2_personal + @pytest.mark.fourtyMhz + @pytest.mark.fiveg + @pytest.mark.channel132 + def test_client_bridge_wpa2_chn132_40Mhz_CA_5g(self, lf_test, station_names_fiveg, get_configuration): + """Country code Bridge Mode + pytest -m "country_code and fourtyMhz and wpa2 and fiveg and channel132" + """ + profile_data = setup_params_general7["ssid_modes"]["wpa2_personal"][1] + ssid = profile_data["ssid_name"] + security_key = profile_data["security_key"] + security = "wpa2" + mode = "BRIDGE" + band = "fiveg" + vlan = 1 + channel = setup_params_general7['rf']['5G']['channel'] + + result = lf_test.country_code_channel_division(ssid=ssid, security=security, passkey=security_key, mode=mode, + band=band, station_name=station_names_fiveg, vlan_id=vlan, + channel=channel,country=124) + if result: + assert True + else: + assert False + + +setup_params_general8 = { + "mode": "BRIDGE", + "ssid_modes": { + "wpa2_personal": [{"ssid_name": "ssid_wpa2_2g", "appliedRadios": ["2G"], "security_key": "something"}, + {"ssid_name": "ssid_wpa2_5g", "appliedRadios": ["5G"], "security_key": "something"} + ]}, + "rf": { + "5G": + {'band': '5G', + 'country': 'CA', + 'channel-mode': 'VHT', + 'channel-width': 40, + "channel": 140}, + "2G": + {'band': '2G', + 'country': 'CA', + "channel-mode": "VHT", + 'channel-width': 40, + "channel": 1} + }, + "radius": False +} + +@allure.feature("BRIDGE MODE CLIENT CONNECTIVITY") +@pytest.mark.parametrize( + 'setup_profiles', + [setup_params_general8], + indirect=True, + scope="class" +) +@pytest.mark.usefixtures("setup_profiles") +class TestCountryCA40Mhz5GChannel140(object): + """Country code along with Channel and Channel-width Test Bridge mode + pytest -m "country_code and Bridge" + """ + @allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-2546", name="WIFI-6938") + @pytest.mark.wpa2_personal + @pytest.mark.fourtyMhz + @pytest.mark.fiveg + @pytest.mark.channel140 + def test_client_bridge_wpa2_chn140_40Mhz_CA_5g(self, lf_test, station_names_fiveg, get_configuration): + """Country code Bridge Mode + pytest -m "country_code and fourtyMhz and wpa2 and fiveg and channel140" + """ + profile_data = setup_params_general8["ssid_modes"]["wpa2_personal"][1] + ssid = profile_data["ssid_name"] + security_key = profile_data["security_key"] + security = "wpa2" + mode = "BRIDGE" + band = "fiveg" + vlan = 1 + channel = setup_params_general8['rf']['5G']['channel'] + + result = lf_test.country_code_channel_division(ssid=ssid, security=security, passkey=security_key, mode=mode, + band=band, station_name=station_names_fiveg, vlan_id=vlan, + channel=channel,country=124) + if result: + assert True + else: + assert False + + diff --git a/tests/e2e/basic/validation_of_operating_modes/country_code_channel_division/country_code_CA/channel_width_40Mhz/twog_band/__init__.py b/tests/e2e/basic/validation_of_operating_modes/country_code_channel_division/country_code_CA/channel_width_40Mhz/twog_band/__init__.py new file mode 100644 index 000000000..e69de29bb diff --git a/tests/e2e/basic/validation_of_operating_modes/country_code_channel_division/country_code_CA/channel_width_40Mhz/twog_band/test_CA_40Mhz_2g.py b/tests/e2e/basic/validation_of_operating_modes/country_code_channel_division/country_code_CA/channel_width_40Mhz/twog_band/test_CA_40Mhz_2g.py new file mode 100644 index 000000000..0a35fe437 --- /dev/null +++ b/tests/e2e/basic/validation_of_operating_modes/country_code_channel_division/country_code_CA/channel_width_40Mhz/twog_band/test_CA_40Mhz_2g.py @@ -0,0 +1,820 @@ +""" + + Performance Test: Country code along with Channel and Channel-width Test: Bridge Mode + pytest -m "country_code and Bridge" + +""" + + +import os +import pytest +import allure + +pytestmark = [pytest.mark.country_code, pytest.mark.Bridge, pytest.mark.wpa2, pytest.mark.CA] + +setup_params_general1 = { + "mode": "BRIDGE", + "ssid_modes": { + "wpa2_personal": [{"ssid_name": "ssid_wpa2_2g", "appliedRadios": ["2G"], "security_key": "something"}, + {"ssid_name": "ssid_wpa2_5g", "appliedRadios": ["5G"], "security_key": "something"} + ]}, + "rf": { + "5G": + { + 'band': '5G', + 'country': 'CA', + "channel-mode": "VHT", + 'channel-width': 40, + "channel": 36 + }, + "2G": + { + 'band': '2G', + 'country': 'CA', + "channel-mode": "VHT", + 'channel-width': 40, + "channel": 1 + } + }, + "radius": False +} + + +@allure.feature("BRIDGE MODE CLIENT CONNECTIVITY") +@pytest.mark.parametrize( + 'setup_profiles', + [setup_params_general1], + indirect=True, + scope="class" +) +@pytest.mark.usefixtures("setup_profiles") +class TestCountryCA40Mhz2GChannel1(object): + """Country code along with Channel and Channel-width Test Bridge mode + pytest -m "country_code and Bridge" + """ + @allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-2546", name="WIFI-6938") + @pytest.mark.wpa2_personal + @pytest.mark.fourtyMhz + @pytest.mark.twog + @pytest.mark.channel1 + @pytest.mark.shivamth + def test_client_bridge_wpa2_chn1_40Mhz_CA_2g(self, lf_test, station_names_twog, get_configuration): + """Country code Bridge Mode + pytest -m "country_code and fourtyMhz and wpa2 and twog and channel1" + """ + profile_data = setup_params_general1["ssid_modes"]["wpa2_personal"][0] + ssid = profile_data["ssid_name"] + security_key = profile_data["security_key"] + security = "wpa2" + mode = "BRIDGE" + band = "twog" + vlan = 1 + channel = setup_params_general1['rf']['2G']['channel'] + + result = lf_test.country_code_channel_division(ssid=ssid, security=security, passkey=security_key, mode=mode, + band=band, station_name=station_names_twog, vlan_id=vlan, + channel=channel,country=124) + if result: + assert True + else: + assert False + + +setup_params_general2 = { + "mode": "BRIDGE", + "ssid_modes": { + "wpa2_personal": [{"ssid_name": "ssid_wpa2_2g", "appliedRadios": ["2G"], "security_key": "something"}, + {"ssid_name": "ssid_wpa2_5g", "appliedRadios": ["5G"], "security_key": "something"} + ]}, + "rf": {"5G": + { + 'band': '5G', + 'country': 'CA', + "channel-mode": "VHT", + 'channel-width': 40, + "channel": 36 + }, + "2G": + {'band': '2G', + 'country': 'CA', + 'channel-mode': 'VHT', + 'channel-width': 40, + "channel": 2} + }, + "radius": False +} + + +@allure.feature("BRIDGE MODE CLIENT CONNECTIVITY") +@pytest.mark.parametrize( + 'setup_profiles', + [setup_params_general2], + indirect=True, + scope="class" +) +@pytest.mark.usefixtures("setup_profiles") +class TestCountryCA40Mhz2GChannel2(object): + """Country code along with Channel and Channel-width Test Bridge mode + pytest -m "country_code and Bridge" + """ + @allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-2546", name="WIFI-6938") + @pytest.mark.wpa2_personal + @pytest.mark.fourtyMhz + @pytest.mark.twog + @pytest.mark.channel2 + def test_client_bridge_wpa2_chn2_40Mhz_CA_2g(self, lf_test, station_names_twog, get_configuration): + """Country code Bridge Mode + pytest -m "country_code and fourtyMhz and wpa2 and twog and channel2" + """ + profile_data = setup_params_general2["ssid_modes"]["wpa2_personal"][0] + ssid = profile_data["ssid_name"] + security_key = profile_data["security_key"] + security = "wpa2" + mode = "BRIDGE" + band = "twog" + vlan = 1 + channel = setup_params_general2['rf']['2G']['channel'] + + result = lf_test.country_code_channel_division(ssid=ssid, security=security, passkey=security_key, mode=mode, + band=band, station_name=station_names_twog, vlan_id=vlan, + channel=channel,country=124) + if result: + assert True + else: + assert False + + +setup_params_general3 = { + "mode": "BRIDGE", + "ssid_modes": { + "wpa2_personal": [{"ssid_name": "ssid_wpa2_2g", "appliedRadios": ["2G"], "security_key": "something"}, + {"ssid_name": "ssid_wpa2_5g", "appliedRadios": ["5G"], "security_key": "something"} + ]}, + "rf": {"5G": + { + 'band': '5G', + 'country': 'CA', + "channel-mode": "VHT", + 'channel-width': 40, + "channel": 36 + }, + "2G": + {'band': '2G', + 'country': 'CA', + 'channel-mode': 'VHT', + 'channel-width': 40, + "channel": 3} + }, + "radius": False +} + + +@allure.feature("BRIDGE MODE CLIENT CONNECTIVITY") +@pytest.mark.parametrize( + 'setup_profiles', + [setup_params_general3], + indirect=True, + scope="class" +) +@pytest.mark.usefixtures("setup_profiles") +class TestCountryCA40Mhz2GChannel3(object): + """Country code along with Channel and Channel-width Test Bridge mode + pytest -m "country_code and Bridge" + """ + @allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-2546", name="WIFI-6938") + @pytest.mark.wpa2_personal + @pytest.mark.fourtyMhz + @pytest.mark.twog + @pytest.mark.channel3 + def test_client_bridge_wpa2_chn3_40Mhz_CA_2g(self, lf_test, station_names_twog, get_configuration): + """Country code Bridge Mode + pytest -m "country_code and fourtyMhz and wpa2 and twog and channel3" + """ + profile_data = setup_params_general3["ssid_modes"]["wpa2_personal"][0] + ssid = profile_data["ssid_name"] + security_key = profile_data["security_key"] + security = "wpa2" + mode = "BRIDGE" + band = "twog" + vlan = 1 + channel = setup_params_general3['rf']['2G']['channel'] + + result = lf_test.country_code_channel_division(ssid=ssid, security=security, passkey=security_key, mode=mode, + band=band, station_name=station_names_twog, vlan_id=vlan, + channel=channel,country=124) + if result: + assert True + else: + assert False + + +setup_params_general4 = { + "mode": "BRIDGE", + "ssid_modes": { + "wpa2_personal": [{"ssid_name": "ssid_wpa2_2g", "appliedRadios": ["2G"], "security_key": "something"}, + {"ssid_name": "ssid_wpa2_5g", "appliedRadios": ["5G"], "security_key": "something"} + ]}, + "rf": {"5G": + { + 'band': '5G', + 'country': 'CA', + "channel-mode": "VHT", + 'channel-width': 40, + "channel": 36 + }, + "2G": + {'band': '2G', + 'country': 'CA', + 'channel-mode': 'VHT', + 'channel-width': 40, + "channel": 4} + }, + "radius": False +} + +@allure.feature("BRIDGE MODE CLIENT CONNECTIVITY") +@pytest.mark.parametrize( + 'setup_profiles', + [setup_params_general4], + indirect=True, + scope="class" +) +@pytest.mark.usefixtures("setup_profiles") +class TestCountryCA40Mhz2GChannel4(object): + """Country code along with Channel and Channel-width Test Bridge mode + pytest -m "country_code and Bridge" + """ + @allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-2546", name="WIFI-6938") + @pytest.mark.wpa2_personal + @pytest.mark.fourtyMhz + @pytest.mark.twog + @pytest.mark.channel4 + def test_client_bridge_wpa2_chn4_40Mhz_CA_2g(self, lf_test, station_names_twog, get_configuration): + """Country code Bridge Mode + pytest -m "country_code and fourtyMhz and wpa2 and twog and channel4" + """ + profile_data = setup_params_general4["ssid_modes"]["wpa2_personal"][0] + ssid = profile_data["ssid_name"] + security_key = profile_data["security_key"] + security = "wpa2" + mode = "BRIDGE" + band = "twog" + vlan = 1 + channel = setup_params_general4['rf']['2G']['channel'] + + result = lf_test.country_code_channel_division(ssid=ssid, security=security, passkey=security_key, mode=mode, + band=band, station_name=station_names_twog, vlan_id=vlan, + channel=channel,country=124) + if result: + assert True + else: + assert False + + +setup_params_general5 = { + "mode": "BRIDGE", + "ssid_modes": { + "wpa2_personal": [{"ssid_name": "ssid_wpa2_2g", "appliedRadios": ["2G"], "security_key": "something"}, + {"ssid_name": "ssid_wpa2_5g", "appliedRadios": ["5G"], "security_key": "something"} + ]}, + "rf": {"5G": + { + 'band': '5G', + 'country': 'CA', + "channel-mode": "VHT", + 'channel-width': 40, + "channel": 36 + }, + "2G": + {'band': '2G', + 'country': 'CA', + 'channel-mode': 'VHT', + 'channel-width': 40, + "channel": 5} + }, + "radius": False +} + +@allure.feature("BRIDGE MODE CLIENT CONNECTIVITY") +@pytest.mark.parametrize( + 'setup_profiles', + [setup_params_general5], + indirect=True, + scope="class" +) +@pytest.mark.usefixtures("setup_profiles") +class TestCountryCA40Mhz2GChannel5(object): + """Country code along with Channel and Channel-width Test Bridge mode + pytest -m "country_code and Bridge" + """ + @allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-2546", name="WIFI-6938") + @pytest.mark.wpa2_personal + @pytest.mark.fourtyMhz + @pytest.mark.twog + @pytest.mark.channel5 + def test_client_bridge_wpa2_chn5_40Mhz_CA_2g(self, lf_test, station_names_twog, get_configuration): + """Country code Bridge Mode + pytest -m "country_code and fourtyMhz and wpa2 and twog and channel5" + """ + profile_data = setup_params_general5["ssid_modes"]["wpa2_personal"][0] + ssid = profile_data["ssid_name"] + security_key = profile_data["security_key"] + security = "wpa2" + mode = "BRIDGE" + band = "twog" + vlan = 1 + channel = setup_params_general5['rf']['2G']['channel'] + + result = lf_test.country_code_channel_division(ssid=ssid, security=security, passkey=security_key, mode=mode, + band=band, station_name=station_names_twog, vlan_id=vlan, + channel=channel,country=124) + if result: + assert True + else: + assert False + + +setup_params_general6 = { + "mode": "BRIDGE", + "ssid_modes": { + "wpa2_personal": [{"ssid_name": "ssid_wpa2_2g", "appliedRadios": ["2G"], "security_key": "something"}, + {"ssid_name": "ssid_wpa2_5g", "appliedRadios": ["5G"], "security_key": "something"} + ]}, + "rf": {"5G": + { + 'band': '5G', + 'country': 'CA', + "channel-mode": "VHT", + 'channel-width': 40, + "channel": 36 + }, + "2G": + {'band': '2G', + 'country': 'CA', + 'channel-mode': 'VHT', + 'channel-width': 40, + "channel": 6} + }, + "radius": False +} + +@allure.feature("BRIDGE MODE CLIENT CONNECTIVITY") +@pytest.mark.parametrize( + 'setup_profiles', + [setup_params_general6], + indirect=True, + scope="class" +) +@pytest.mark.usefixtures("setup_profiles") +class TestCountryCA40Mhz2GChannel6(object): + """Country code along with Channel and Channel-width Test Bridge mode + pytest -m "country_code and Bridge" + """ + @allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-2546", name="WIFI-6938") + @pytest.mark.wpa2_personal + @pytest.mark.fourtyMhz + @pytest.mark.twog + @pytest.mark.channel6 + def test_client_bridge_wpa2_chn6_40Mhz_CA_2g(self, lf_test, station_names_twog, get_configuration): + """Country code Bridge Mode + pytest -m "country_code and fourtyMhz and wpa2 and twog and channel6" + """ + profile_data = setup_params_general6["ssid_modes"]["wpa2_personal"][0] + ssid = profile_data["ssid_name"] + security_key = profile_data["security_key"] + security = "wpa2" + mode = "BRIDGE" + band = "twog" + vlan = 1 + channel = setup_params_general6['rf']['2G']['channel'] + + result = lf_test.country_code_channel_division(ssid=ssid, security=security, passkey=security_key, mode=mode, + band=band, station_name=station_names_twog, vlan_id=vlan, + channel=channel,country=124) + if result: + assert True + else: + assert False + + +setup_params_general7 = { + "mode": "BRIDGE", + "ssid_modes": { + "wpa2_personal": [{"ssid_name": "ssid_wpa2_2g", "appliedRadios": ["2G"], "security_key": "something"}, + {"ssid_name": "ssid_wpa2_5g", "appliedRadios": ["5G"], "security_key": "something"} + ]}, + "rf": {"5G": + { + 'band': '5G', + 'country': 'CA', + "channel-mode": "VHT", + 'channel-width': 40, + "channel": 36 + }, + "2G": + {'band': '2G', + 'country': 'CA', + 'channel-mode': 'VHT', + 'channel-width': 40, + "channel": 7} + }, + "radius": False +} + +@allure.feature("BRIDGE MODE CLIENT CONNECTIVITY") +@pytest.mark.parametrize( + 'setup_profiles', + [setup_params_general7], + indirect=True, + scope="class" +) +@pytest.mark.usefixtures("setup_profiles") +class TestCountryCA40Mhz2GChannel7(object): + """Country code along with Channel and Channel-width Test Bridge mode + pytest -m "country_code and Bridge" + """ + @allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-2546", name="WIFI-6938") + @pytest.mark.wpa2_personal + @pytest.mark.fourtyMhz + @pytest.mark.twog + @pytest.mark.channel7 + def test_client_bridge_wpa2_chn7_40Mhz_CA_2g(self, lf_test, station_names_twog, get_configuration): + """Country code Bridge Mode + pytest -m "country_code and fourtyMhz and wpa2 and twog and channel7" + """ + profile_data = setup_params_general7["ssid_modes"]["wpa2_personal"][0] + ssid = profile_data["ssid_name"] + security_key = profile_data["security_key"] + security = "wpa2" + mode = "BRIDGE" + band = "twog" + vlan = 1 + channel = setup_params_general7['rf']['2G']['channel'] + + result = lf_test.country_code_channel_division(ssid=ssid, security=security, passkey=security_key, mode=mode, + band=band, station_name=station_names_twog, vlan_id=vlan, + channel=channel,country=124) + if result: + assert True + else: + assert False + + +setup_params_general8 = { + "mode": "BRIDGE", + "ssid_modes": { + "wpa2_personal": [{"ssid_name": "ssid_wpa2_2g", "appliedRadios": ["2G"], "security_key": "something"}, + {"ssid_name": "ssid_wpa2_5g", "appliedRadios": ["5G"], "security_key": "something"} + ]}, + "rf": {"5G": + { + 'band': '5G', + 'country': 'CA', + "channel-mode": "VHT", + 'channel-width': 40, + "channel": 36 + }, + "2G": + {'band': '2G', + 'country': 'CA', + 'channel-mode': 'VHT', + 'channel-width': 40, + "channel": 8} + }, + "radius": False +} + +@allure.feature("BRIDGE MODE CLIENT CONNECTIVITY") +@pytest.mark.parametrize( + 'setup_profiles', + [setup_params_general8], + indirect=True, + scope="class" +) +@pytest.mark.usefixtures("setup_profiles") +class TestCountryCA40Mhz2GChannel8(object): + """Country code along with Channel and Channel-width Test Bridge mode + pytest -m "country_code and Bridge" + """ + @allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-2546", name="WIFI-6938") + @pytest.mark.wpa2_personal + @pytest.mark.fourtyMhz + @pytest.mark.twog + @pytest.mark.channel8 + def test_client_bridge_wpa2_chn8_40Mhz_CA_2g(self, lf_test, station_names_twog, get_configuration): + """Country code Bridge Mode + pytest -m "country_code and fourtyMhz and wpa2 and twog and channel8" + """ + profile_data = setup_params_general8["ssid_modes"]["wpa2_personal"][0] + ssid = profile_data["ssid_name"] + security_key = profile_data["security_key"] + security = "wpa2" + mode = "BRIDGE" + band = "twog" + vlan = 1 + channel = setup_params_general8['rf']['2G']['channel'] + + result = lf_test.country_code_channel_division(ssid=ssid, security=security, passkey=security_key, mode=mode, + band=band, station_name=station_names_twog, vlan_id=vlan, + channel=channel,country=124) + if result: + assert True + else: + assert False + + +setup_params_general9 = { + "mode": "BRIDGE", + "ssid_modes": { + "wpa2_personal": [{"ssid_name": "ssid_wpa2_2g", "appliedRadios": ["2G"], "security_key": "something"}, + {"ssid_name": "ssid_wpa2_5g", "appliedRadios": ["5G"], "security_key": "something"} + ]}, + "rf": {"5G": + { + 'band': '5G', + 'country': 'CA', + "channel-mode": "VHT", + 'channel-width': 40, + "channel": 36 + }, + "2G": + {'band': '2G', + 'country': 'CA', + 'channel-mode': 'VHT', + 'channel-width': 40, + "channel": 9} + }, + "radius": False +} + +@allure.feature("BRIDGE MODE CLIENT CONNECTIVITY") +@pytest.mark.parametrize( + 'setup_profiles', + [setup_params_general9], + indirect=True, + scope="class" +) +@pytest.mark.usefixtures("setup_profiles") +class TestCountryCA40Mhz2GChannel9(object): + """Country code along with Channel and Channel-width Test Bridge mode + pytest -m "country_code and Bridge" + """ + @allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-2546", name="WIFI-6938") + @pytest.mark.wpa2_personal + @pytest.mark.fourtyMhz + @pytest.mark.twog + @pytest.mark.channel9 + def test_client_bridge_wpa2_chn9_40Mhz_CA_2g(self, lf_test, station_names_twog, get_configuration): + """Country code Bridge Mode + pytest -m "country_code and fourtyMhz and wpa2 and twog and channel9" + """ + profile_data = setup_params_general9["ssid_modes"]["wpa2_personal"][0] + ssid = profile_data["ssid_name"] + security_key = profile_data["security_key"] + security = "wpa2" + mode = "BRIDGE" + band = "twog" + vlan = 1 + channel = setup_params_general9['rf']['2G']['channel'] + + result = lf_test.country_code_channel_division(ssid=ssid, security=security, passkey=security_key, mode=mode, + band=band, station_name=station_names_twog, vlan_id=vlan, + channel=channel,country=124) + if result: + assert True + else: + assert False + + +setup_params_general10 = { + "mode": "BRIDGE", + "ssid_modes": { + "wpa2_personal": [{"ssid_name": "ssid_wpa2_2g", "appliedRadios": ["2G"], "security_key": "something"}, + {"ssid_name": "ssid_wpa2_5g", "appliedRadios": ["5G"], "security_key": "something"} + ]}, + "rf": {"5G": + { + 'band': '5G', + 'country': 'CA', + "channel-mode": "VHT", + 'channel-width': 40, + "channel": 36 + }, + "2G": + {'band': '2G', + 'country': 'CA', + 'channel-mode': 'VHT', + 'channel-width': 40, + "channel": 10} + }, + "radius": False +} + +@allure.feature("BRIDGE MODE CLIENT CONNECTIVITY") +@pytest.mark.parametrize( + 'setup_profiles', + [setup_params_general10], + indirect=True, + scope="class" +) +@pytest.mark.usefixtures("setup_profiles") +class TestCountryCA40Mhz2GChannel10(object): + """Country code along with Channel and Channel-width Test Bridge mode + pytest -m "country_code and Bridge" + """ + @allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-2546", name="WIFI-6938") + @pytest.mark.wpa2_personal + @pytest.mark.fourtyMhz + @pytest.mark.twog + @pytest.mark.channel10 + def test_client_bridge_wpa2_chn10_40Mhz_CA_2g(self, lf_test, station_names_twog, get_configuration): + """Country code Bridge Mode + pytest -m "country_code and fourtyMhz and wpa2 and twog and channel10" + """ + profile_data = setup_params_general10["ssid_modes"]["wpa2_personal"][0] + ssid = profile_data["ssid_name"] + security_key = profile_data["security_key"] + security = "wpa2" + mode = "BRIDGE" + band = "twog" + vlan = 1 + channel = setup_params_general10['rf']['2G']['channel'] + + result = lf_test.country_code_channel_division(ssid=ssid, security=security, passkey=security_key, mode=mode, + band=band, station_name=station_names_twog, vlan_id=vlan, + channel=channel,country=124) + if result: + assert True + else: + assert False + + +setup_params_general11 = { + "mode": "BRIDGE", + "ssid_modes": { + "wpa2_personal": [{"ssid_name": "ssid_wpa2_2g", "appliedRadios": ["2G"], "security_key": "something"}, + {"ssid_name": "ssid_wpa2_5g", "appliedRadios": ["5G"], "security_key": "something"} + ]}, + "rf": {"5G": + { + 'band': '5G', + 'country': 'CA', + "channel-mode": "VHT", + 'channel-width': 40, + "channel": 36 + }, + "2G": + {'band': '2G', + 'country': 'CA', + 'channel-mode': 'VHT', + 'channel-width': 40, + "channel": 11} + }, + "radius": False +} + +@allure.feature("BRIDGE MODE CLIENT CONNECTIVITY") +@pytest.mark.parametrize( + 'setup_profiles', + [setup_params_general11], + indirect=True, + scope="class" +) +@pytest.mark.usefixtures("setup_profiles") +class TestCountryCA40Mhz2GChannel11(object): + """Country code along with Channel and Channel-width Test Bridge mode + pytest -m "country_code and Bridge" + """ + @allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-2546", name="WIFI-6938") + @pytest.mark.wpa2_personal + @pytest.mark.fourtyMhz + @pytest.mark.twog + @pytest.mark.channel11 + def test_client_bridge_wpa2_chn11_40Mhz_CA_2g(self, lf_test, station_names_twog, get_configuration): + """Country code Bridge Mode + pytest -m "country_code and fourtyMhz and wpa2 and twog and channel11" + """ + profile_data = setup_params_general11["ssid_modes"]["wpa2_personal"][0] + ssid = profile_data["ssid_name"] + security_key = profile_data["security_key"] + security = "wpa2" + mode = "BRIDGE" + band = "twog" + vlan = 1 + channel = setup_params_general11['rf']['2G']['channel'] + + result = lf_test.country_code_channel_division(ssid=ssid, security=security, passkey=security_key, mode=mode, + band=band, station_name=station_names_twog, vlan_id=vlan, + channel=channel,country=124) + if result: + assert True + else: + assert False + + +# setup_params_general12 = { +# "mode": "BRIDGE", +# "ssid_modes": { +# "wpa2_personal": [{"ssid_name": "ssid_wpa2_2g", "appliedRadios": ["2G"], "security_key": "something"}, +# ]}, +# "rf": {"2G": +# {'band': '2G', +# 'country': 'CA', +# 'channel-mode': 'VHT', +# 'channel-width': 40, +# "channel": 12} +# }, +# "radius": False +# } +# +# @allure.feature("BRIDGE MODE CLIENT CONNECTIVITY") +# @pytest.mark.parametrize( +# 'setup_profiles', +# [setup_params_general12], +# indirect=True, +# scope="class" +# ) +# @pytest.mark.usefixtures("setup_profiles") +# class TestCountryCA40Mhz2GChannel12(object): +# """Country code along with Channel and Channel-width Test Bridge mode +# pytest -m "country_code and Bridge" +# """ +# @allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-2546", name="WIFI-6938") +# @pytest.mark.wpa2_personal +# @pytest.mark.fourtyMhz +# @pytest.mark.twog +# @pytest.mark.channel12 +# def test_client_bridge_wpa2_chn12_40Mhz_CA_2g(self, lf_test, station_names_twog, get_configuration): +# """Country code Bridge Mode +# pytest -m "country_code and fourtyMhz and wpa2 and twog and channel12" +# """ +# profile_data = setup_params_general12["ssid_modes"]["wpa2_personal"][0] +# ssid = profile_data["ssid_name"] +# security_key = profile_data["security_key"] +# security = "wpa2" +# mode = "BRIDGE" +# band = "twog" +# vlan = 1 +# channel = setup_params_general12['rf']['2G']['channel'] +# +# result = lf_test.country_code_channel_division(ssid=ssid, security=security, passkey=security_key, mode=mode, +# band=band, station_name=station_names_twog, vlan_id=vlan, +# channel=channel) +# if result: +# assert True +# else: +# assert False +# +# +# setup_params_general13 = { +# "mode": "BRIDGE", +# "ssid_modes": { +# "wpa2_personal": [{"ssid_name": "ssid_wpa2_2g", "appliedRadios": ["2G"], "security_key": "something"}, +# ]}, +# "rf": {"2G": +# {'band': '2G', +# 'country': 'CA', +# 'channel-mode': 'VHT', +# 'channel-width': 40, +# "channel": 13} +# }, +# "radius": False +# } +# +# @allure.feature("BRIDGE MODE CLIENT CONNECTIVITY") +# @pytest.mark.parametrize( +# 'setup_profiles', +# [setup_params_general13], +# indirect=True, +# scope="class" +# ) +# @pytest.mark.usefixtures("setup_profiles") +# class TestCountryCA40Mhz2GChannel13(object): +# """Country code along with Channel and Channel-width Test Bridge mode +# pytest -m "country_code and Bridge" +# """ +# @allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-2546", name="WIFI-6938") +# @pytest.mark.wpa2_personal +# @pytest.mark.fourtyMhz +# @pytest.mark.twog +# @pytest.mark.channel13 +# def test_client_bridge_wpa2_chn13_40Mhz_CA_2g(self, lf_test, station_names_twog, get_configuration): +# """Country code Bridge Mode +# pytest -m "country_code and fourtyMhz and wpa2 and twog and channel13" +# """ +# profile_data = setup_params_general13["ssid_modes"]["wpa2_personal"][0] +# ssid = profile_data["ssid_name"] +# security_key = profile_data["security_key"] +# security = "wpa2" +# mode = "BRIDGE" +# band = "twog" +# vlan = 1 +# channel = setup_params_general13['rf']['2G']['channel'] +# +# result = lf_test.country_code_channel_division(ssid=ssid, security=security, passkey=security_key, mode=mode, +# band=band, station_name=station_names_twog, vlan_id=vlan, +# channel=channel) +# if result: +# assert True +# else: +# assert False \ No newline at end of file diff --git a/tests/e2e/basic/validation_of_operating_modes/country_code_channel_division/country_code_CA/channel_width_80Mhz/__init__.py b/tests/e2e/basic/validation_of_operating_modes/country_code_channel_division/country_code_CA/channel_width_80Mhz/__init__.py new file mode 100644 index 000000000..e69de29bb diff --git a/tests/e2e/basic/validation_of_operating_modes/country_code_channel_division/country_code_CA/channel_width_80Mhz/fiveg_band/__init__.py b/tests/e2e/basic/validation_of_operating_modes/country_code_channel_division/country_code_CA/channel_width_80Mhz/fiveg_band/__init__.py new file mode 100644 index 000000000..e69de29bb diff --git a/tests/e2e/basic/validation_of_operating_modes/country_code_channel_division/country_code_CA/channel_width_80Mhz/fiveg_band/test_CA_80Mhz_5g.py b/tests/e2e/basic/validation_of_operating_modes/country_code_channel_division/country_code_CA/channel_width_80Mhz/fiveg_band/test_CA_80Mhz_5g.py new file mode 100644 index 000000000..e4bdef608 --- /dev/null +++ b/tests/e2e/basic/validation_of_operating_modes/country_code_channel_division/country_code_CA/channel_width_80Mhz/fiveg_band/test_CA_80Mhz_5g.py @@ -0,0 +1,257 @@ +""" + + Performance Test: Country code along with Channel and Channel-width Test: Bridge Mode + pytest -m "country_code and Bridge" + +""" + + +import os +import pytest +import allure + +pytestmark = [pytest.mark.country_code, pytest.mark.Bridge, pytest.mark.wpa2, pytest.mark.CA] + +setup_params_general1 = { + "mode": "BRIDGE", + "ssid_modes": { + "wpa2_personal": [{"ssid_name": "ssid_wpa2_2g", "appliedRadios": ["2G"], "security_key": "something"}, + {"ssid_name": "ssid_wpa2_5g", "appliedRadios": ["5G"], "security_key": "something"} + ]}, + "rf": {"5G": + {'band': '5G', + 'country': 'CA', + "channel-mode": "VHT", + 'channel-width': 80, + "channel": 36}, + "2G": + {'band': '2G', + 'country': 'CA', + "channel-mode": "VHT", + 'channel-width': 20, + "channel": 1} + }, + "radius": False +} + +@allure.feature("BRIDGE MODE CLIENT CONNECTIVITY") +@pytest.mark.parametrize( + 'setup_profiles', + [setup_params_general1], + indirect=True, + scope="class" +) +@pytest.mark.usefixtures("setup_profiles") +class TestCountryCA80Mhz5GChannel36(object): + """Country code along with Channel and Channel-width Test Bridge mode + pytest -m "country_code and Bridge" + """ + @allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-2546", name="WIFI-6938") + @pytest.mark.wpa2_personal + @pytest.mark.eightyMhz + @pytest.mark.fiveg + @pytest.mark.channel36 + def test_client_bridge_wpa2_chn36_80Mhz_CA_5g(self, lf_test, station_names_fiveg, get_configuration): + """Country code Bridge Mode + pytest -m "country_code and eightyMhz and wpa2 and fiveg and channel36" + """ + profile_data = setup_params_general1["ssid_modes"]["wpa2_personal"][1] + ssid = profile_data["ssid_name"] + security_key = profile_data["security_key"] + security = "wpa2" + mode = "BRIDGE" + band = "fiveg" + vlan = 1 + channel = setup_params_general1['rf']['5G']['channel'] + + result = lf_test.country_code_channel_division(ssid=ssid, security=security, passkey=security_key, mode=mode, + band=band, station_name=station_names_fiveg, vlan_id=vlan, + channel=channel,country=124) + if result: + assert True + else: + assert False + + +setup_params_general2 = { + "mode": "BRIDGE", + "ssid_modes": { + "wpa2_personal": [{"ssid_name": "ssid_wpa2_2g", "appliedRadios": ["2G"], "security_key": "something"}, + {"ssid_name": "ssid_wpa2_5g", "appliedRadios": ["5G"], "security_key": "something"} + ]}, + "rf": {"5G": + {'band': '5G', + 'country': 'CA', + 'channel-mode': 'VHT', + 'channel-width': 80, + "channel": 52}, + "2G": + {'band': '2G', + 'country': 'CA', + "channel-mode": "VHT", + 'channel-width': 20, + "channel": 1} + }, + "radius": False +} + + +@allure.feature("BRIDGE MODE CLIENT CONNECTIVITY") +@pytest.mark.parametrize( + 'setup_profiles', + [setup_params_general2], + indirect=True, + scope="class" +) +@pytest.mark.usefixtures("setup_profiles") +class TestCountryCA80Mhz5GChannel52(object): + """Country code along with Channel and Channel-width Test Bridge mode + pytest -m "country_code and Bridge" + """ + @allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-2546", name="WIFI-6938") + @pytest.mark.wpa2_personal + @pytest.mark.eightyMhz + @pytest.mark.fiveg + @pytest.mark.channel52 + def test_client_bridge_wpa2_chn52_80Mhz_CA_5g(self, lf_test, station_names_fiveg, get_configuration): + """Country code Bridge Mode + pytest -m "country_code and eightyMhz and wpa2 and fiveg and channel52" + """ + profile_data = setup_params_general2["ssid_modes"]["wpa2_personal"][1] + ssid = profile_data["ssid_name"] + security_key = profile_data["security_key"] + security = "wpa2" + mode = "BRIDGE" + band = "fiveg" + vlan = 1 + channel = setup_params_general2['rf']['5G']['channel'] + + result = lf_test.country_code_channel_division(ssid=ssid, security=security, passkey=security_key, mode=mode, + band=band, station_name=station_names_fiveg, vlan_id=vlan, + channel=channel,country=124) + if result: + assert True + else: + assert False + + +setup_params_general3 = { + "mode": "BRIDGE", + "ssid_modes": { + "wpa2_personal": [{"ssid_name": "ssid_wpa2_2g", "appliedRadios": ["2G"], "security_key": "something"}, + {"ssid_name": "ssid_wpa2_5g", "appliedRadios": ["5G"], "security_key": "something"} + ]}, + "rf": {"5G": + {'band': '5G', + 'country': 'CA', + 'channel-mode': 'VHT', + 'channel-width': 80, + "channel": 100}, + "2G": + {'band': '2G', + 'country': 'CA', + "channel-mode": "VHT", + 'channel-width': 20, + "channel": 1} + }, + "radius": False +} + +@allure.feature("BRIDGE MODE CLIENT CONNECTIVITY") +@pytest.mark.parametrize( + 'setup_profiles', + [setup_params_general3], + indirect=True, + scope="class" +) +@pytest.mark.usefixtures("setup_profiles") +class TestCountryCA80Mhz5GChannel100(object): + """Country code along with Channel and Channel-width Test Bridge mode + pytest -m "country_code and Bridge" + """ + @allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-2546", name="WIFI-6938") + @pytest.mark.wpa2_personal + @pytest.mark.eightyMhz + @pytest.mark.fiveg + @pytest.mark.channel100 + def test_client_bridge_wpa2_chn100_80Mhz_CA_5g(self, lf_test, station_names_fiveg, get_configuration): + """Country code Bridge Mode + pytest -m "country_code and eightyMhz and wpa2 and fiveg and channel100" + """ + profile_data = setup_params_general3["ssid_modes"]["wpa2_personal"][1] + ssid = profile_data["ssid_name"] + security_key = profile_data["security_key"] + security = "wpa2" + mode = "BRIDGE" + band = "fiveg" + vlan = 1 + channel = setup_params_general3['rf']['5G']['channel'] + + result = lf_test.country_code_channel_division(ssid=ssid, security=security, passkey=security_key, mode=mode, + band=band, station_name=station_names_fiveg, vlan_id=vlan, + channel=channel,country=124) + if result: + assert True + else: + assert False + + +setup_params_general4 = { + "mode": "BRIDGE", + "ssid_modes": { + "wpa2_personal": [{"ssid_name": "ssid_wpa2_2g", "appliedRadios": ["2G"], "security_key": "something"}, + {"ssid_name": "ssid_wpa2_5g", "appliedRadios": ["5G"], "security_key": "something"} + ]}, + "rf": {"5G": + {'band': '5G', + 'country': 'CA', + 'channel-mode': 'VHT', + 'channel-width': 80, + "channel": 132}, + "2G": + {'band': '2G', + 'country': 'CA', + "channel-mode": "VHT", + 'channel-width': 20, + "channel": 1} + }, + "radius": False +} + +@allure.feature("BRIDGE MODE CLIENT CONNECTIVITY") +@pytest.mark.parametrize( + 'setup_profiles', + [setup_params_general4], + indirect=True, + scope="class" +) +@pytest.mark.usefixtures("setup_profiles") +class TestCountryCA80Mhz5GChannel132(object): + """Country code along with Channel and Channel-width Test Bridge mode + pytest -m "country_code and Bridge" + """ + @allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-2546", name="WIFI-6938") + @pytest.mark.wpa2_personal + @pytest.mark.eightyMhz + @pytest.mark.fiveg + @pytest.mark.channel132 + def test_client_bridge_wpa2_chn132_80Mhz_CA_5g(self, lf_test, station_names_fiveg, get_configuration): + """Country code Bridge Mode + pytest -m "country_code and eightyMhz and wpa2 and fiveg and channel132" + """ + profile_data = setup_params_general4["ssid_modes"]["wpa2_personal"][1] + ssid = profile_data["ssid_name"] + security_key = profile_data["security_key"] + security = "wpa2" + mode = "BRIDGE" + band = "fiveg" + vlan = 1 + channel = setup_params_general4['rf']['5G']['channel'] + + result = lf_test.country_code_channel_division(ssid=ssid, security=security, passkey=security_key, mode=mode, + band=band, station_name=station_names_fiveg, vlan_id=vlan, + channel=channel,country=124) + if result: + assert True + else: + assert False diff --git a/tests/e2e/basic/validation_of_operating_modes/country_code_channel_division/country_code_GB/__init__.py b/tests/e2e/basic/validation_of_operating_modes/country_code_channel_division/country_code_GB/__init__.py new file mode 100644 index 000000000..e69de29bb diff --git a/tests/e2e/basic/validation_of_operating_modes/country_code_channel_division/country_code_GB/channel_width_20Mhz/__init__.py b/tests/e2e/basic/validation_of_operating_modes/country_code_channel_division/country_code_GB/channel_width_20Mhz/__init__.py new file mode 100644 index 000000000..e69de29bb diff --git a/tests/e2e/basic/validation_of_operating_modes/country_code_channel_division/country_code_GB/channel_width_20Mhz/fiveg_band/__init__.py b/tests/e2e/basic/validation_of_operating_modes/country_code_channel_division/country_code_GB/channel_width_20Mhz/fiveg_band/__init__.py new file mode 100644 index 000000000..e69de29bb diff --git a/tests/e2e/basic/validation_of_operating_modes/country_code_channel_division/country_code_GB/channel_width_20Mhz/fiveg_band/test_GB_20Mhz_5g.py b/tests/e2e/basic/validation_of_operating_modes/country_code_channel_division/country_code_GB/channel_width_20Mhz/fiveg_band/test_GB_20Mhz_5g.py new file mode 100644 index 000000000..228bc87e7 --- /dev/null +++ b/tests/e2e/basic/validation_of_operating_modes/country_code_channel_division/country_code_GB/channel_width_20Mhz/fiveg_band/test_GB_20Mhz_5g.py @@ -0,0 +1,1545 @@ +""" + + Performance Test: Country code along with Channel and Channel-width Test: Bridge Mode + pytest -m "country_code and Bridge" + +""" + + +import os +import pytest +import allure + +pytestmark = [pytest.mark.country_code, pytest.mark.Bridge, pytest.mark.wpa2, pytest.mark.GB] + +setup_params_general1 = { + "mode": "BRIDGE", + "ssid_modes": { + "wpa2_personal": [{"ssid_name": "ssid_wpa2_2g", "appliedRadios": ["2G"], "security_key": "something"}, + {"ssid_name": "ssid_wpa2_5g", "appliedRadios": ["5G"], "security_key": "something"} + ]}, + "rf": { + "5G": + {'band': '5G', + 'country': 'GB', + "channel-mode": "VHT", + 'channel-width': 20, + "channel": 36 + }, + "2G": + {'band': '2G', + 'country': 'GB', + "channel-mode": "VHT", + 'channel-width': 20, + "channel": 1} + }, + "radius": False +} + + +@allure.feature("BRIDGE MODE CLIENT CONNECTIVITY") +@pytest.mark.parametrize( + 'setup_profiles', + [setup_params_general1], + indirect=True, + scope="class" +) +@pytest.mark.usefixtures("setup_profiles") +class TestCountryGB20Mhz5GChannel36(object): + """Country code along with Channel and Channel-width Test Bridge mode + pytest -m "country_code and Bridge" + """ + @allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-2546", name="WIFI-6938") + @pytest.mark.wpa2_personal + @pytest.mark.twentyMhz + @pytest.mark.fiveg + @pytest.mark.channel36 + def test_client_bridge_wpa2_chn36_20Mhz_GB_5g(self, lf_test, station_names_fiveg, get_configuration): + """Country code Bridge Mode + pytest -m "country_code and twentyMhz and wpa2 and fiveg and channel36" + """ + profile_data = setup_params_general1["ssid_modes"]["wpa2_personal"][1] + ssid = profile_data["ssid_name"] + security_key = profile_data["security_key"] + security = "wpa2" + mode = "BRIDGE" + band = "fiveg" + vlan = 1 + channel = setup_params_general1['rf']['5G']['channel'] + + result = lf_test.country_code_channel_division(ssid=ssid, security=security, passkey=security_key, mode=mode, + band=band, station_name=station_names_fiveg, vlan_id=vlan, + channel=channel,country=826) + if result: + assert True + else: + assert False + + +setup_params_general2 = { + "mode": "BRIDGE", + "ssid_modes": { + "wpa2_personal": [{"ssid_name": "ssid_wpa2_2g", "appliedRadios": ["2G"], "security_key": "something"}, + {"ssid_name": "ssid_wpa2_5g", "appliedRadios": ["5G"], "security_key": "something"} + ]}, + "rf": {"5G": + {'band': '5G', + 'country': 'GB', + "channel-mode": "VHT", + 'channel-width': 20, + "channel": 40}, + "2G": + {'band': '2G', + 'country': 'GB', + "channel-mode": "VHT", + 'channel-width': 20, + "channel": 1} + }, + "radius": False +} + + +@allure.feature("BRIDGE MODE CLIENT CONNECTIVITY") +@pytest.mark.parametrize( + 'setup_profiles', + [setup_params_general2], + indirect=True, + scope="class" +) +@pytest.mark.usefixtures("setup_profiles") +class TestCountryGB20Mhz5GChannel40(object): + """Country code along with Channel and Channel-width Test Bridge mode + pytest -m "country_code and Bridge" + """ + @allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-2546", name="WIFI-6938") + @pytest.mark.wpa2_personal + @pytest.mark.twentyMhz + @pytest.mark.fiveg + @pytest.mark.channel40 + def test_client_bridge_wpa2_chn40_20Mhz_GB_5g(self, lf_test, station_names_fiveg, get_configuration): + """Country code Bridge Mode + pytest -m "country_code and twentyMhz and wpa2 and fiveg and channel40" + """ + profile_data = setup_params_general2["ssid_modes"]["wpa2_personal"][1] + ssid = profile_data["ssid_name"] + security_key = profile_data["security_key"] + security = "wpa2" + mode = "BRIDGE" + band = "fiveg" + vlan = 1 + channel = setup_params_general2['rf']['5G']['channel'] + + result = lf_test.country_code_channel_division(ssid=ssid, security=security, passkey=security_key, mode=mode, + band=band, station_name=station_names_fiveg, vlan_id=vlan, + channel=channel,country=826) + if result: + assert True + else: + assert False + +setup_params_general3 = { + "mode": "BRIDGE", + "ssid_modes": { + "wpa2_personal": [{"ssid_name": "ssid_wpa2_2g", "appliedRadios": ["2G"], "security_key": "something"}, + {"ssid_name": "ssid_wpa2_5g", "appliedRadios": ["5G"], "security_key": "something"} + ]}, + "rf": {"5G": + {'band': '5G', + 'country': 'GB', + 'channel-mode': 'VHT', + 'channel-width': 20, + "channel": 44}, + "2G": + {'band': '2G', + 'country': 'GB', + "channel-mode": "VHT", + 'channel-width': 20, + "channel": 1} + }, + "radius": False +} + + +@allure.feature("BRIDGE MODE CLIENT CONNECTIVITY") +@pytest.mark.parametrize( + 'setup_profiles', + [setup_params_general3], + indirect=True, + scope="class" +) +@pytest.mark.usefixtures("setup_profiles") +class TestCountryGB20Mhz5GChannel44(object): + """Country code along with Channel and Channel-width Test Bridge mode + pytest -m "country_code and Bridge" + """ + @allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-2546", name="WIFI-6938") + @pytest.mark.wpa2_personal + @pytest.mark.twentyMhz + @pytest.mark.fiveg + @pytest.mark.channel44 + def test_client_bridge_wpa2_chn44_20Mhz_GB_5g(self, lf_test, station_names_fiveg, get_configuration): + """Country code Bridge Mode + pytest -m "country_code and twentyMhz and wpa2 and fiveg and channel44" + """ + profile_data = setup_params_general3["ssid_modes"]["wpa2_personal"][1] + ssid = profile_data["ssid_name"] + security_key = profile_data["security_key"] + security = "wpa2" + mode = "BRIDGE" + band = "fiveg" + vlan = 1 + channel = setup_params_general3['rf']['5G']['channel'] + + result = lf_test.country_code_channel_division(ssid=ssid, security=security, passkey=security_key, mode=mode, + band=band, station_name=station_names_fiveg, vlan_id=vlan, + channel=channel,country=826) + if result: + assert True + else: + assert False + + +setup_params_general4 = { + "mode": "BRIDGE", + "ssid_modes": { + "wpa2_personal": [{"ssid_name": "ssid_wpa2_2g", "appliedRadios": ["2G"], "security_key": "something"}, + {"ssid_name": "ssid_wpa2_5g", "appliedRadios": ["5G"], "security_key": "something"} + ]}, + "rf": {"5G": + {'band': '5G', + 'country': 'GB', + "channel-mode": "VHT", + 'channel-width': 20, + "channel": 48}, + "2G": + {'band': '2G', + 'country': 'GB', + "channel-mode": "VHT", + 'channel-width': 20, + "channel": 1} + }, + "radius": False +} + + +@allure.feature("BRIDGE MODE CLIENT CONNECTIVITY") +@pytest.mark.parametrize( + 'setup_profiles', + [setup_params_general4], + indirect=True, + scope="class" +) +@pytest.mark.usefixtures("setup_profiles") +class TestCountryGB20Mhz5GChannel48(object): + """Country code along with Channel and Channel-width Test Bridge mode + pytest -m "country_code and Bridge" + """ + @allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-2546", name="WIFI-6938") + @pytest.mark.wpa2_personal + @pytest.mark.twentyMhz + @pytest.mark.fiveg + @pytest.mark.channel48 + def test_client_bridge_wpa2_chn48_20Mhz_GB_5g(self, lf_test, station_names_fiveg, get_configuration): + """Country code Bridge Mode + pytest -m "country_code and twentyMhz and wpa2 and fiveg and channel48" + """ + profile_data = setup_params_general4["ssid_modes"]["wpa2_personal"][1] + ssid = profile_data["ssid_name"] + security_key = profile_data["security_key"] + security = "wpa2" + mode = "BRIDGE" + band = "fiveg" + vlan = 1 + channel = setup_params_general4['rf']['5G']['channel'] + + result = lf_test.country_code_channel_division(ssid=ssid, security=security, passkey=security_key, mode=mode, + band=band, station_name=station_names_fiveg, vlan_id=vlan, + channel=channel,country=826) + if result: + assert True + else: + assert False + + +setup_params_general5 = { + "mode": "BRIDGE", + "ssid_modes": { + "wpa2_personal": [{"ssid_name": "ssid_wpa2_2g", "appliedRadios": ["2G"], "security_key": "something"}, + {"ssid_name": "ssid_wpa2_5g", "appliedRadios": ["5G"], "security_key": "something"} + ]}, + "rf": {"5G": + {'band': '5G', + 'country': 'GB', + 'channel-mode': 'VHT', + 'channel-width': 20, + "channel": 52}, + "2G": + {'band': '2G', + 'country': 'GB', + "channel-mode": "VHT", + 'channel-width': 20, + "channel": 1} + }, + "radius": False +} + + +@allure.feature("BRIDGE MODE CLIENT CONNECTIVITY") +@pytest.mark.parametrize( + 'setup_profiles', + [setup_params_general5], + indirect=True, + scope="class" +) +@pytest.mark.usefixtures("setup_profiles") +class TestCountryGB20Mhz5GChannel52(object): + """Country code along with Channel and Channel-width Test Bridge mode + pytest -m "country_code and Bridge" + """ + @allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-2546", name="WIFI-6938") + @pytest.mark.wpa2_personal + @pytest.mark.twentyMhz + @pytest.mark.fiveg + @pytest.mark.channel52 + def test_client_bridge_wpa2_chn52_20Mhz_GB_5g(self, lf_test, station_names_fiveg, get_configuration): + """Country code Bridge Mode + pytest -m "country_code and twentyMhz and wpa2 and fiveg and channel52" + """ + profile_data = setup_params_general5["ssid_modes"]["wpa2_personal"][1] + ssid = profile_data["ssid_name"] + security_key = profile_data["security_key"] + security = "wpa2" + mode = "BRIDGE" + band = "fiveg" + vlan = 1 + channel = setup_params_general5['rf']['5G']['channel'] + + result = lf_test.country_code_channel_division(ssid=ssid, security=security, passkey=security_key, mode=mode, + band=band, station_name=station_names_fiveg, vlan_id=vlan, + channel=channel,country=826) + if result: + assert True + else: + assert False + + +setup_params_general6 = { + "mode": "BRIDGE", + "ssid_modes": { + "wpa2_personal": [{"ssid_name": "ssid_wpa2_2g", "appliedRadios": ["2G"], "security_key": "something"}, + {"ssid_name": "ssid_wpa2_5g", "appliedRadios": ["5G"], "security_key": "something"} + ]}, + "rf": {"5G": + {'band': '5G', + 'country': 'GB', + "channel-mode": "VHT", + 'channel-width': 20, + "channel": 56}, + "2G": + {'band': '2G', + 'country': 'GB', + "channel-mode": "VHT", + 'channel-width': 20, + "channel": 1} + }, + "radius": False +} + + +@allure.feature("BRIDGE MODE CLIENT CONNECTIVITY") +@pytest.mark.parametrize( + 'setup_profiles', + [setup_params_general6], + indirect=True, + scope="class" +) +@pytest.mark.usefixtures("setup_profiles") +class TestCountryGB20Mhz5GChannel56(object): + """Country code along with Channel and Channel-width Test Bridge mode + pytest -m "country_code and Bridge" + """ + @allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-2546", name="WIFI-6938") + @pytest.mark.wpa2_personal + @pytest.mark.twentyMhz + @pytest.mark.fiveg + @pytest.mark.channel56 + def test_client_bridge_wpa2_chn56_20Mhz_GB_5g(self, lf_test, station_names_fiveg, get_configuration): + """Country code Bridge Mode + pytest -m "country_code and twentyMhz and wpa2 and fiveg and channel56" + """ + profile_data = setup_params_general6["ssid_modes"]["wpa2_personal"][1] + ssid = profile_data["ssid_name"] + security_key = profile_data["security_key"] + security = "wpa2" + mode = "BRIDGE" + band = "fiveg" + vlan = 1 + channel = setup_params_general6['rf']['5G']['channel'] + + result = lf_test.country_code_channel_division(ssid=ssid, security=security, passkey=security_key, mode=mode, + band=band, station_name=station_names_fiveg, vlan_id=vlan, + channel=channel,country=826) + if result: + assert True + else: + assert False + + +setup_params_general7 = { + "mode": "BRIDGE", + "ssid_modes": { + "wpa2_personal": [{"ssid_name": "ssid_wpa2_2g", "appliedRadios": ["2G"], "security_key": "something"}, + {"ssid_name": "ssid_wpa2_5g", "appliedRadios": ["5G"], "security_key": "something"} + ]}, + "rf": {"5G": + {'band': '5G', + 'country': 'GB', + 'channel-mode': 'VHT', + 'channel-width': 20, + "channel": 60}, + "2G": + {'band': '2G', + 'country': 'GB', + "channel-mode": "VHT", + 'channel-width': 20, + "channel": 1} + }, + "radius": False +} + +@allure.feature("BRIDGE MODE CLIENT CONNECTIVITY") +@pytest.mark.parametrize( + 'setup_profiles', + [setup_params_general7], + indirect=True, + scope="class" +) +@pytest.mark.usefixtures("setup_profiles") +class TestCountryGB20Mhz5GChannel60(object): + """Country code along with Channel and Channel-width Test Bridge mode + pytest -m "country_code and Bridge" + """ + @allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-2546", name="WIFI-6938") + @pytest.mark.wpa2_personal + @pytest.mark.twentyMhz + @pytest.mark.fiveg + @pytest.mark.channel60 + def test_client_bridge_wpa2_chn60_20Mhz_GB_5g(self, lf_test, station_names_fiveg, get_configuration): + """Country code Bridge Mode + pytest -m "country_code and twentyMhz and wpa2 and fiveg and channel60" + """ + profile_data = setup_params_general7["ssid_modes"]["wpa2_personal"][1] + ssid = profile_data["ssid_name"] + security_key = profile_data["security_key"] + security = "wpa2" + mode = "BRIDGE" + band = "fiveg" + vlan = 1 + channel = setup_params_general7['rf']['5G']['channel'] + + result = lf_test.country_code_channel_division(ssid=ssid, security=security, passkey=security_key, mode=mode, + band=band, station_name=station_names_fiveg, vlan_id=vlan, + channel=channel,country=826) + if result: + assert True + else: + assert False + + +setup_params_general8 = { + "mode": "BRIDGE", + "ssid_modes": { + "wpa2_personal": [{"ssid_name": "ssid_wpa2_2g", "appliedRadios": ["2G"], "security_key": "something"}, + {"ssid_name": "ssid_wpa2_5g", "appliedRadios": ["5G"], "security_key": "something"} + ]}, + "rf": {"5G": + {'band': '5G', + 'country': 'GB', + "channel-mode": "VHT", + 'channel-width': 20, + "channel": 64}, + "2G": + {'band': '2G', + 'country': 'GB', + "channel-mode": "VHT", + 'channel-width': 20, + "channel": 1} + }, + "radius": False +} + + +@allure.feature("BRIDGE MODE CLIENT CONNECTIVITY") +@pytest.mark.parametrize( + 'setup_profiles', + [setup_params_general8], + indirect=True, + scope="class" +) +@pytest.mark.usefixtures("setup_profiles") +class TestCountryGB20Mhz5GChannel64(object): + """Country code along with Channel and Channel-width Test Bridge mode + pytest -m "country_code and Bridge" + """ + @allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-2546", name="WIFI-6938") + @pytest.mark.wpa2_personal + @pytest.mark.twentyMhz + @pytest.mark.fiveg + @pytest.mark.channel64 + def test_client_bridge_wpa2_chn64_20Mhz_GB_5g(self, lf_test, station_names_fiveg, get_configuration): + """Country code Bridge Mode + pytest -m "country_code and twentyMhz and wpa2 and fiveg and channel64" + """ + profile_data = setup_params_general8["ssid_modes"]["wpa2_personal"][1] + ssid = profile_data["ssid_name"] + security_key = profile_data["security_key"] + security = "wpa2" + mode = "BRIDGE" + band = "fiveg" + vlan = 1 + channel = setup_params_general8['rf']['5G']['channel'] + + result = lf_test.country_code_channel_division(ssid=ssid, security=security, passkey=security_key, mode=mode, + band=band, station_name=station_names_fiveg, vlan_id=vlan, + channel=channel,country=826) + if result: + assert True + else: + assert False + + +setup_params_general9 = { + "mode": "BRIDGE", + "ssid_modes": { + "wpa2_personal": [{"ssid_name": "ssid_wpa2_2g", "appliedRadios": ["2G"], "security_key": "something"}, + {"ssid_name": "ssid_wpa2_5g", "appliedRadios": ["5G"], "security_key": "something"} + ]}, + "rf": {"5G": + {'band': '5G', + 'country': 'GB', + 'channel-mode': 'VHT', + 'channel-width': 20, + "channel": 100}, + "2G": + {'band': '2G', + 'country': 'GB', + "channel-mode": "VHT", + 'channel-width': 20, + "channel": 1} + }, + "radius": False +} + +@allure.feature("BRIDGE MODE CLIENT CONNECTIVITY") +@pytest.mark.parametrize( + 'setup_profiles', + [setup_params_general9], + indirect=True, + scope="class" +) +@pytest.mark.usefixtures("setup_profiles") +class TestCountryGB20Mhz5GChannel100(object): + """Country code along with Channel and Channel-width Test Bridge mode + pytest -m "country_code and Bridge" + """ + @allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-2546", name="WIFI-6938") + @pytest.mark.wpa2_personal + @pytest.mark.twentyMhz + @pytest.mark.fiveg + @pytest.mark.channel100 + def test_client_bridge_wpa2_chn100_20Mhz_GB_5g(self, lf_test, station_names_fiveg, get_configuration): + """Country code Bridge Mode + pytest -m "country_code and twentyMhz and wpa2 and fiveg and channel100" + """ + profile_data = setup_params_general9["ssid_modes"]["wpa2_personal"][1] + ssid = profile_data["ssid_name"] + security_key = profile_data["security_key"] + security = "wpa2" + mode = "BRIDGE" + band = "fiveg" + vlan = 1 + channel = setup_params_general9['rf']['5G']['channel'] + + result = lf_test.country_code_channel_division(ssid=ssid, security=security, passkey=security_key, mode=mode, + band=band, station_name=station_names_fiveg, vlan_id=vlan, + channel=channel,country=826) + if result: + assert True + else: + assert False + + +setup_params_general10 = { + "mode": "BRIDGE", + "ssid_modes": { + "wpa2_personal": [{"ssid_name": "ssid_wpa2_2g", "appliedRadios": ["2G"], "security_key": "something"}, + {"ssid_name": "ssid_wpa2_5g", "appliedRadios": ["5G"], "security_key": "something"} + ]}, + "rf": {"5G": + {'band': '5G', + 'country': 'GB', + 'channel-mode': 'VHT', + 'channel-width': 20, + "channel": 104}, + "2G": + {'band': '2G', + 'country': 'GB', + "channel-mode": "VHT", + 'channel-width': 20, + "channel": 1} + }, + "radius": False +} + +@allure.feature("BRIDGE MODE CLIENT CONNECTIVITY") +@pytest.mark.parametrize( + 'setup_profiles', + [setup_params_general10], + indirect=True, + scope="class" +) +@pytest.mark.usefixtures("setup_profiles") +class TestCountryGB20Mhz5GChannel104(object): + """Country code along with Channel and Channel-width Test Bridge mode + pytest -m "country_code and Bridge" + """ + @allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-2546", name="WIFI-6938") + @pytest.mark.wpa2_personal + @pytest.mark.twentyMhz + @pytest.mark.fiveg + @pytest.mark.channel104 + def test_client_bridge_wpa2_chn104_20Mhz_GB_5g(self, lf_test, station_names_fiveg, get_configuration): + """Country code Bridge Mode + pytest -m "country_code and twentyMhz and wpa2 and fiveg and channel104" + """ + profile_data = setup_params_general10["ssid_modes"]["wpa2_personal"][1] + ssid = profile_data["ssid_name"] + security_key = profile_data["security_key"] + security = "wpa2" + mode = "BRIDGE" + band = "fiveg" + vlan = 1 + channel = setup_params_general10['rf']['5G']['channel'] + + result = lf_test.country_code_channel_division(ssid=ssid, security=security, passkey=security_key, mode=mode, + band=band, station_name=station_names_fiveg, vlan_id=vlan, + channel=channel,country=826) + if result: + assert True + else: + assert False + + +setup_params_general11 = { + "mode": "BRIDGE", + "ssid_modes": { + "wpa2_personal": [{"ssid_name": "ssid_wpa2_2g", "appliedRadios": ["2G"], "security_key": "something"}, + {"ssid_name": "ssid_wpa2_5g", "appliedRadios": ["5G"], "security_key": "something"} + ]}, + "rf": {"5G": + {'band': '5G', + 'country': 'GB', + 'channel-mode': 'VHT', + 'channel-width': 20, + "channel": 108}, + "2G": + {'band': '2G', + 'country': 'GB', + "channel-mode": "VHT", + 'channel-width': 20, + "channel": 1} + }, + "radius": False +} + +@allure.feature("BRIDGE MODE CLIENT CONNECTIVITY") +@pytest.mark.parametrize( + 'setup_profiles', + [setup_params_general11], + indirect=True, + scope="class" +) +@pytest.mark.usefixtures("setup_profiles") +class TestCountryGB20Mhz5GChannel108(object): + """Country code along with Channel and Channel-width Test Bridge mode + pytest -m "country_code and Bridge" + """ + @allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-2546", name="WIFI-6938") + @pytest.mark.wpa2_personal + @pytest.mark.twentyMhz + @pytest.mark.fiveg + @pytest.mark.channel108 + def test_client_bridge_wpa2_chn108_20Mhz_GB_5g(self, lf_test, station_names_fiveg, get_configuration): + """Country code Bridge Mode + pytest -m "country_code and twentyMhz and wpa2 and fiveg and channel108" + """ + profile_data = setup_params_general11["ssid_modes"]["wpa2_personal"][1] + ssid = profile_data["ssid_name"] + security_key = profile_data["security_key"] + security = "wpa2" + mode = "BRIDGE" + band = "fiveg" + vlan = 1 + channel = setup_params_general11['rf']['5G']['channel'] + + result = lf_test.country_code_channel_division(ssid=ssid, security=security, passkey=security_key, mode=mode, + band=band, station_name=station_names_fiveg, vlan_id=vlan, + channel=channel,country=826) + if result: + assert True + else: + assert False + + +setup_params_general12 = { + "mode": "BRIDGE", + "ssid_modes": { + "wpa2_personal": [{"ssid_name": "ssid_wpa2_2g", "appliedRadios": ["2G"], "security_key": "something"}, + {"ssid_name": "ssid_wpa2_5g", "appliedRadios": ["5G"], "security_key": "something"} + ]}, + "rf": {"5G": + {'band': '5G', + 'country': 'GB', + 'channel-mode': 'VHT', + 'channel-width': 20, + "channel": 112}, + "2G": + {'band': '2G', + 'country': 'GB', + "channel-mode": "VHT", + 'channel-width': 20, + "channel": 1} + }, + "radius": False +} + +@allure.feature("BRIDGE MODE CLIENT CONNECTIVITY") +@pytest.mark.parametrize( + 'setup_profiles', + [setup_params_general12], + indirect=True, + scope="class" +) +@pytest.mark.usefixtures("setup_profiles") +class TestCountryGB20Mhz5GChannel112(object): + """Country code along with Channel and Channel-width Test Bridge mode + pytest -m "country_code and Bridge" + """ + @allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-2546", name="WIFI-6938") + @pytest.mark.wpa2_personal + @pytest.mark.twentyMhz + @pytest.mark.fiveg + @pytest.mark.channel112 + def test_client_bridge_wpa2_chn112_20Mhz_GB_5g(self, lf_test, station_names_fiveg, get_configuration): + """Country code Bridge Mode + pytest -m "country_code and twentyMhz and wpa2 and fiveg and channel112" + """ + profile_data = setup_params_general12["ssid_modes"]["wpa2_personal"][1] + ssid = profile_data["ssid_name"] + security_key = profile_data["security_key"] + security = "wpa2" + mode = "BRIDGE" + band = "fiveg" + vlan = 1 + channel = setup_params_general12['rf']['5G']['channel'] + + result = lf_test.country_code_channel_division(ssid=ssid, security=security, passkey=security_key, mode=mode, + band=band, station_name=station_names_fiveg, vlan_id=vlan, + channel=channel,country=826) + if result: + assert True + else: + assert False + + +setup_params_general13 = { + "mode": "BRIDGE", + "ssid_modes": { + "wpa2_personal": [{"ssid_name": "ssid_wpa2_2g", "appliedRadios": ["2G"], "security_key": "something"}, + {"ssid_name": "ssid_wpa2_5g", "appliedRadios": ["5G"], "security_key": "something"} + ]}, + "rf": {"5G": + {'band': '5G', + 'country': 'GB', + 'channel-mode': 'VHT', + 'channel-width': 20, + "channel": 116}, + "2G": + {'band': '2G', + 'country': 'GB', + "channel-mode": "VHT", + 'channel-width': 20, + "channel": 1} + }, + "radius": False +} + +@allure.feature("BRIDGE MODE CLIENT CONNECTIVITY") +@pytest.mark.parametrize( + 'setup_profiles', + [setup_params_general13], + indirect=True, + scope="class" +) +@pytest.mark.usefixtures("setup_profiles") +class TestCountryGB20Mhz5GChannel116(object): + """Country code along with Channel and Channel-width Test Bridge mode + pytest -m "country_code and Bridge" + """ + @allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-2546", name="WIFI-6938") + @pytest.mark.wpa2_personal + @pytest.mark.twentyMhz + @pytest.mark.fiveg + @pytest.mark.channel116 + def test_client_bridge_wpa2_chn116_20Mhz_GB_5g(self, lf_test, station_names_fiveg, get_configuration): + """Country code Bridge Mode + pytest -m "country_code and twentyMhz and wpa2 and fiveg and channel116" + """ + profile_data = setup_params_general13["ssid_modes"]["wpa2_personal"][1] + ssid = profile_data["ssid_name"] + security_key = profile_data["security_key"] + security = "wpa2" + mode = "BRIDGE" + band = "fiveg" + vlan = 1 + channel = setup_params_general13['rf']['5G']['channel'] + + result = lf_test.country_code_channel_division(ssid=ssid, security=security, passkey=security_key, mode=mode, + band=band, station_name=station_names_fiveg, vlan_id=vlan, + channel=channel,country=826) + if result: + assert True + else: + assert False + +setup_params_general14 = { + "mode": "BRIDGE", + "ssid_modes": { + "wpa2_personal": [{"ssid_name": "ssid_wpa2_2g", "appliedRadios": ["2G"], "security_key": "something"}, + {"ssid_name": "ssid_wpa2_5g", "appliedRadios": ["5G"], "security_key": "something"} + ]}, + "rf": {"5G": + {'band': '5G', + 'country': 'GB', + 'channel-mode': 'VHT', + 'channel-width': 20, + "channel": 120}, + "2G": + {'band': '2G', + 'country': 'GB', + "channel-mode": "VHT", + 'channel-width': 20, + "channel": 1} + }, + "radius": False +} + +@allure.feature("BRIDGE MODE CLIENT CONNECTIVITY") +@pytest.mark.parametrize( + 'setup_profiles', + [setup_params_general14], + indirect=True, + scope="class" +) +@pytest.mark.usefixtures("setup_profiles") +class TestCountryGB20Mhz5GChannel120(object): + """Country code along with Channel and Channel-width Test Bridge mode + pytest -m "country_code and Bridge" + """ + @allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-2546", name="WIFI-6938") + @pytest.mark.wpa2_personal + @pytest.mark.twentyMhz + @pytest.mark.fiveg + @pytest.mark.channel120 + def test_client_bridge_wpa2_chn120_20Mhz_GB_5g(self, lf_test, station_names_fiveg, get_configuration): + """Country code Bridge Mode + pytest -m "country_code and twentyMhz and wpa2 and fiveg and channel120" + """ + profile_data = setup_params_general14["ssid_modes"]["wpa2_personal"][1] + ssid = profile_data["ssid_name"] + security_key = profile_data["security_key"] + security = "wpa2" + mode = "BRIDGE" + band = "fiveg" + vlan = 1 + channel = setup_params_general14['rf']['5G']['channel'] + + result = lf_test.country_code_channel_division(ssid=ssid, security=security, passkey=security_key, mode=mode, + band=band, station_name=station_names_fiveg, vlan_id=vlan, + channel=channel,country=826) + if result: + assert True + else: + assert False + + +setup_params_general15 = { + "mode": "BRIDGE", + "ssid_modes": { + "wpa2_personal": [{"ssid_name": "ssid_wpa2_2g", "appliedRadios": ["2G"], "security_key": "something"}, + {"ssid_name": "ssid_wpa2_5g", "appliedRadios": ["5G"], "security_key": "something"} + ]}, + "rf": {"5G": + {'band': '5G', + 'country': 'GB', + 'channel-mode': 'VHT', + 'channel-width': 20, + "channel": 124}, + "2G": + {'band': '2G', + 'country': 'GB', + "channel-mode": "VHT", + 'channel-width': 20, + "channel": 1} + }, + "radius": False +} + +@allure.feature("BRIDGE MODE CLIENT CONNECTIVITY") +@pytest.mark.parametrize( + 'setup_profiles', + [setup_params_general15], + indirect=True, + scope="class" +) +@pytest.mark.usefixtures("setup_profiles") +class TestCountryGB20Mhz5GChannel124(object): + """Country code along with Channel and Channel-width Test Bridge mode + pytest -m "country_code and Bridge" + """ + @allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-2546", name="WIFI-6938") + @pytest.mark.wpa2_personal + @pytest.mark.twentyMhz + @pytest.mark.fiveg + @pytest.mark.channel124 + def test_client_bridge_wpa2_chn124_20Mhz_GB_5g(self, lf_test, station_names_fiveg, get_configuration): + """Country code Bridge Mode + pytest -m "country_code and twentyMhz and wpa2 and fiveg and channel124" + """ + profile_data = setup_params_general15["ssid_modes"]["wpa2_personal"][1] + ssid = profile_data["ssid_name"] + security_key = profile_data["security_key"] + security = "wpa2" + mode = "BRIDGE" + band = "fiveg" + vlan = 1 + channel = setup_params_general15['rf']['5G']['channel'] + + result = lf_test.country_code_channel_division(ssid=ssid, security=security, passkey=security_key, mode=mode, + band=band, station_name=station_names_fiveg, vlan_id=vlan, + channel=channel,country=826) + if result: + assert True + else: + assert False + + +setup_params_general16 = { + "mode": "BRIDGE", + "ssid_modes": { + "wpa2_personal": [{"ssid_name": "ssid_wpa2_2g", "appliedRadios": ["2G"], "security_key": "something"}, + {"ssid_name": "ssid_wpa2_5g", "appliedRadios": ["5G"], "security_key": "something"} + ]}, + "rf": {"5G": + {'band': '5G', + 'country': 'GB', + 'channel-mode': 'VHT', + 'channel-width': 20, + "channel": 128}, + "2G": + {'band': '2G', + 'country': 'GB', + "channel-mode": "VHT", + 'channel-width': 20, + "channel": 1} + }, + "radius": False +} + +@allure.feature("BRIDGE MODE CLIENT CONNECTIVITY") +@pytest.mark.parametrize( + 'setup_profiles', + [setup_params_general16], + indirect=True, + scope="class" +) +@pytest.mark.usefixtures("setup_profiles") +class TestCountryGB20Mhz5GChannel128(object): + """Country code along with Channel and Channel-width Test Bridge mode + pytest -m "country_code and Bridge" + """ + @allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-2546", name="WIFI-6938") + @pytest.mark.wpa2_personal + @pytest.mark.twentyMhz + @pytest.mark.fiveg + @pytest.mark.channel128 + def test_client_bridge_wpa2_chn128_20Mhz_GB_5g(self, lf_test, station_names_fiveg, get_configuration): + """Country code Bridge Mode + pytest -m "country_code and twentyMhz and wpa2 and fiveg and channel128" + """ + profile_data = setup_params_general16["ssid_modes"]["wpa2_personal"][1] + ssid = profile_data["ssid_name"] + security_key = profile_data["security_key"] + security = "wpa2" + mode = "BRIDGE" + band = "fiveg" + vlan = 1 + channel = setup_params_general16['rf']['5G']['channel'] + + result = lf_test.country_code_channel_division(ssid=ssid, security=security, passkey=security_key, mode=mode, + band=band, station_name=station_names_fiveg, vlan_id=vlan, + channel=channel,country=826) + if result: + assert True + else: + assert False + + +setup_params_general17 = { + "mode": "BRIDGE", + "ssid_modes": { + "wpa2_personal": [{"ssid_name": "ssid_wpa2_2g", "appliedRadios": ["2G"], "security_key": "something"}, + {"ssid_name": "ssid_wpa2_5g", "appliedRadios": ["5G"], "security_key": "something"} + ]}, + "rf": {"5G": + {'band': '5G', + 'country': 'GB', + 'channel-mode': 'VHT', + 'channel-width': 20, + "channel": 132}, + "2G": + {'band': '2G', + 'country': 'GB', + "channel-mode": "VHT", + 'channel-width': 20, + "channel": 1} + }, + "radius": False +} + +@allure.feature("BRIDGE MODE CLIENT CONNECTIVITY") +@pytest.mark.parametrize( + 'setup_profiles', + [setup_params_general17], + indirect=True, + scope="class" +) +@pytest.mark.usefixtures("setup_profiles") +class TestCountryGB20Mhz5GChannel132(object): + """Country code along with Channel and Channel-width Test Bridge mode + pytest -m "country_code and Bridge" + """ + @allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-2546", name="WIFI-6938") + @pytest.mark.wpa2_personal + @pytest.mark.twentyMhz + @pytest.mark.fiveg + @pytest.mark.channel132 + def test_client_bridge_wpa2_chn132_20Mhz_GB_5g(self, lf_test, station_names_fiveg, get_configuration): + """Country code Bridge Mode + pytest -m "country_code and twentyMhz and wpa2 and fiveg and channel132" + """ + profile_data = setup_params_general17["ssid_modes"]["wpa2_personal"][1] + ssid = profile_data["ssid_name"] + security_key = profile_data["security_key"] + security = "wpa2" + mode = "BRIDGE" + band = "fiveg" + vlan = 1 + channel = setup_params_general17['rf']['5G']['channel'] + + result = lf_test.country_code_channel_division(ssid=ssid, security=security, passkey=security_key, mode=mode, + band=band, station_name=station_names_fiveg, vlan_id=vlan, + channel=channel,country=826) + if result: + assert True + else: + assert False + + +setup_params_general18 = { + "mode": "BRIDGE", + "ssid_modes": { + "wpa2_personal": [{"ssid_name": "ssid_wpa2_2g", "appliedRadios": ["2G"], "security_key": "something"}, + {"ssid_name": "ssid_wpa2_5g", "appliedRadios": ["5G"], "security_key": "something"} + ]}, + "rf": {"5G": + {'band': '5G', + 'country': 'GB', + 'channel-mode': 'VHT', + 'channel-width': 20, + "channel": 136}, + "2G": + {'band': '2G', + 'country': 'GB', + "channel-mode": "VHT", + 'channel-width': 20, + "channel": 1} + }, + "radius": False +} + +@allure.feature("BRIDGE MODE CLIENT CONNECTIVITY") +@pytest.mark.parametrize( + 'setup_profiles', + [setup_params_general18], + indirect=True, + scope="class" +) +@pytest.mark.usefixtures("setup_profiles") +class TestCountryGB20Mhz5GChannel136(object): + """Country code along with Channel and Channel-width Test Bridge mode + pytest -m "country_code and Bridge" + """ + @allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-2546", name="WIFI-6938") + @pytest.mark.wpa2_personal + @pytest.mark.twentyMhz + @pytest.mark.fiveg + @pytest.mark.channel136 + def test_client_bridge_wpa2_chn136_20Mhz_GB_5g(self, lf_test, station_names_fiveg, get_configuration): + """Country code Bridge Mode + pytest -m "country_code and twentyMhz and wpa2 and fiveg and channel136" + """ + profile_data = setup_params_general18["ssid_modes"]["wpa2_personal"][1] + ssid = profile_data["ssid_name"] + security_key = profile_data["security_key"] + security = "wpa2" + mode = "BRIDGE" + band = "fiveg" + vlan = 1 + channel = setup_params_general18['rf']['5G']['channel'] + + result = lf_test.country_code_channel_division(ssid=ssid, security=security, passkey=security_key, mode=mode, + band=band, station_name=station_names_fiveg, vlan_id=vlan, + channel=channel,country=826) + if result: + assert True + else: + assert False + + +setup_params_general19 = { + "mode": "BRIDGE", + "ssid_modes": { + "wpa2_personal": [{"ssid_name": "ssid_wpa2_2g", "appliedRadios": ["2G"], "security_key": "something"}, + {"ssid_name": "ssid_wpa2_5g", "appliedRadios": ["5G"], "security_key": "something"} + ]}, + "rf": {"5G": + {'band': '5G', + 'country': 'GB', + 'channel-mode': 'VHT', + 'channel-width': 20, + "channel": 140}, + "2G": + {'band': '2G', + 'country': 'GB', + "channel-mode": "VHT", + 'channel-width': 20, + "channel": 1} + }, + "radius": False +} + +@allure.feature("BRIDGE MODE CLIENT CONNECTIVITY") +@pytest.mark.parametrize( + 'setup_profiles', + [setup_params_general19], + indirect=True, + scope="class" +) +@pytest.mark.usefixtures("setup_profiles") +class TestCountryGB20Mhz5GChannel140(object): + """Country code along with Channel and Channel-width Test Bridge mode + pytest -m "country_code and Bridge" + """ + @allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-2546", name="WIFI-6938") + @pytest.mark.wpa2_personal + @pytest.mark.twentyMhz + @pytest.mark.fiveg + @pytest.mark.channel140 + def test_client_bridge_wpa2_chn140_20Mhz_GB_5g(self, lf_test, station_names_fiveg, get_configuration): + """Country code Bridge Mode + pytest -m "country_code and twentyMhz and wpa2 and fiveg and channel140" + """ + profile_data = setup_params_general19["ssid_modes"]["wpa2_personal"][1] + ssid = profile_data["ssid_name"] + security_key = profile_data["security_key"] + security = "wpa2" + mode = "BRIDGE" + band = "fiveg" + vlan = 1 + channel = setup_params_general19['rf']['5G']['channel'] + + result = lf_test.country_code_channel_division(ssid=ssid, security=security, passkey=security_key, mode=mode, + band=band, station_name=station_names_fiveg, vlan_id=vlan, + channel=channel,country=826) + if result: + assert True + else: + assert False + + +setup_params_general20 = { + "mode": "BRIDGE", + "ssid_modes": { + "wpa2_personal": [{"ssid_name": "ssid_wpa2_2g", "appliedRadios": ["2G"], "security_key": "something"}, + {"ssid_name": "ssid_wpa2_5g", "appliedRadios": ["5G"], "security_key": "something"} + ]}, + "rf": {"5G": + {'band': '5G', + 'country': 'GB', + 'channel-mode': 'VHT', + 'channel-width': 20, + "channel": 144}, + "2G": + {'band': '2G', + 'country': 'GB', + "channel-mode": "VHT", + 'channel-width': 20, + "channel": 1} + }, + "radius": False +} + +@allure.feature("BRIDGE MODE CLIENT CONNECTIVITY") +@pytest.mark.parametrize( + 'setup_profiles', + [setup_params_general20], + indirect=True, + scope="class" +) +@pytest.mark.usefixtures("setup_profiles") +class TestCountryGB20Mhz5GChannel144(object): + """Country code along with Channel and Channel-width Test Bridge mode + pytest -m "country_code and Bridge" + """ + @allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-2546", name="WIFI-6938") + @pytest.mark.wpa2_personal + @pytest.mark.twentyMhz + @pytest.mark.fiveg + @pytest.mark.channel144 + def test_client_bridge_wpa2_chn144_20Mhz_GB_5g(self, lf_test, station_names_fiveg, get_configuration): + """Country code Bridge Mode + pytest -m "country_code and twentyMhz and wpa2 and fiveg and channel144" + """ + profile_data = setup_params_general20["ssid_modes"]["wpa2_personal"][1] + ssid = profile_data["ssid_name"] + security_key = profile_data["security_key"] + security = "wpa2" + mode = "BRIDGE" + band = "fiveg" + vlan = 1 + channel = setup_params_general20['rf']['5G']['channel'] + + result = lf_test.country_code_channel_division(ssid=ssid, security=security, passkey=security_key, mode=mode, + band=band, station_name=station_names_fiveg, vlan_id=vlan, + channel=channel,country=826) + if result: + assert True + else: + assert False + + +setup_params_general21 = { + "mode": "BRIDGE", + "ssid_modes": { + "wpa2_personal": [{"ssid_name": "ssid_wpa2_2g", "appliedRadios": ["2G"], "security_key": "something"}, + {"ssid_name": "ssid_wpa2_5g", "appliedRadios": ["5G"], "security_key": "something"} + ]}, + "rf": {"5G": + {'band': '5G', + 'country': 'GB', + 'channel-mode': 'VHT', + 'channel-width': 20, + "channel": 149}, + "2G": + {'band': '2G', + 'country': 'GB', + "channel-mode": "VHT", + 'channel-width': 20, + "channel": 1} + }, + "radius": False +} + +@allure.feature("BRIDGE MODE CLIENT CONNECTIVITY") +@pytest.mark.parametrize( + 'setup_profiles', + [setup_params_general21], + indirect=True, + scope="class" +) +@pytest.mark.usefixtures("setup_profiles") +class TestCountryGB20Mhz5GChannel149(object): + """Country code along with Channel and Channel-width Test Bridge mode + pytest -m "country_code and Bridge" + """ + @allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-2546", name="WIFI-6938") + @pytest.mark.wpa2_personal + @pytest.mark.twentyMhz + @pytest.mark.fiveg + @pytest.mark.channel149 + def test_client_bridge_wpa2_chn149_20Mhz_GB_5g(self, lf_test, station_names_fiveg, get_configuration): + """Country code Bridge Mode + pytest -m "country_code and twentyMhz and wpa2 and fiveg and channel149" + """ + profile_data = setup_params_general21["ssid_modes"]["wpa2_personal"][1] + ssid = profile_data["ssid_name"] + security_key = profile_data["security_key"] + security = "wpa2" + mode = "BRIDGE" + band = "fiveg" + vlan = 1 + channel = setup_params_general21['rf']['5G']['channel'] + + result = lf_test.country_code_channel_division(ssid=ssid, security=security, passkey=security_key, mode=mode, + band=band, station_name=station_names_fiveg, vlan_id=vlan, + channel=channel,country=826) + if result: + assert True + else: + assert False + + +setup_params_general22 = { + "mode": "BRIDGE", + "ssid_modes": { + "wpa2_personal": [{"ssid_name": "ssid_wpa2_2g", "appliedRadios": ["2G"], "security_key": "something"}, + {"ssid_name": "ssid_wpa2_5g", "appliedRadios": ["5G"], "security_key": "something"} + ]}, + "rf": {"5G": + {'band': '5G', + 'country': 'GB', + 'channel-mode': 'VHT', + 'channel-width': 20, + "channel": 153}, + "2G": + {'band': '2G', + 'country': 'GB', + "channel-mode": "VHT", + 'channel-width': 20, + "channel": 1} + }, + "radius": False +} + +@allure.feature("BRIDGE MODE CLIENT CONNECTIVITY") +@pytest.mark.parametrize( + 'setup_profiles', + [setup_params_general22], + indirect=True, + scope="class" +) +@pytest.mark.usefixtures("setup_profiles") +class TestCountryGB20Mhz5GChannel153(object): + """Country code along with Channel and Channel-width Test Bridge mode + pytest -m "country_code and Bridge" + """ + @allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-2546", name="WIFI-6938") + @pytest.mark.wpa2_personal + @pytest.mark.twentyMhz + @pytest.mark.fiveg + @pytest.mark.channel153 + def test_client_bridge_wpa2_chn153_20Mhz_GB_5g(self, lf_test, station_names_fiveg, get_configuration): + """Country code Bridge Mode + pytest -m "country_code and twentyMhz and wpa2 and fiveg and channel153" + """ + profile_data = setup_params_general22["ssid_modes"]["wpa2_personal"][1] + ssid = profile_data["ssid_name"] + security_key = profile_data["security_key"] + security = "wpa2" + mode = "BRIDGE" + band = "fiveg" + vlan = 1 + channel = setup_params_general22['rf']['5G']['channel'] + + result = lf_test.country_code_channel_division(ssid=ssid, security=security, passkey=security_key, mode=mode, + band=band, station_name=station_names_fiveg, vlan_id=vlan, + channel=channel,country=826) + if result: + assert True + else: + assert False + + +setup_params_general23 = { + "mode": "BRIDGE", + "ssid_modes": { + "wpa2_personal": [{"ssid_name": "ssid_wpa2_2g", "appliedRadios": ["2G"], "security_key": "something"}, + {"ssid_name": "ssid_wpa2_5g", "appliedRadios": ["5G"], "security_key": "something"} + ]}, + "rf": {"5G": + {'band': '5G', + 'country': 'GB', + 'channel-mode': 'VHT', + 'channel-width': 20, + "channel": 157}, + "2G": + {'band': '2G', + 'country': 'GB', + "channel-mode": "VHT", + 'channel-width': 20, + "channel": 1} + }, + "radius": False +} + +@allure.feature("BRIDGE MODE CLIENT CONNECTIVITY") +@pytest.mark.parametrize( + 'setup_profiles', + [setup_params_general23], + indirect=True, + scope="class" +) +@pytest.mark.usefixtures("setup_profiles") +class TestCountryGB20Mhz5GChannel157(object): + """Country code along with Channel and Channel-width Test Bridge mode + pytest -m "country_code and Bridge" + """ + @allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-2546", name="WIFI-6938") + @pytest.mark.wpa2_personal + @pytest.mark.twentyMhz + @pytest.mark.fiveg + @pytest.mark.channel157 + def test_client_bridge_wpa2_chn157_20Mhz_GB_5g(self, lf_test, station_names_fiveg, get_configuration): + """Country code Bridge Mode + pytest -m "country_code and twentyMhz and wpa2 and fiveg and channel157" + """ + profile_data = setup_params_general23["ssid_modes"]["wpa2_personal"][1] + ssid = profile_data["ssid_name"] + security_key = profile_data["security_key"] + security = "wpa2" + mode = "BRIDGE" + band = "fiveg" + vlan = 1 + channel = setup_params_general23['rf']['5G']['channel'] + + result = lf_test.country_code_channel_division(ssid=ssid, security=security, passkey=security_key, mode=mode, + band=band, station_name=station_names_fiveg, vlan_id=vlan, + channel=channel,country=826) + if result: + assert True + else: + assert False + + +setup_params_general24 = { + "mode": "BRIDGE", + "ssid_modes": { + "wpa2_personal": [{"ssid_name": "ssid_wpa2_2g", "appliedRadios": ["2G"], "security_key": "something"}, + {"ssid_name": "ssid_wpa2_5g", "appliedRadios": ["5G"], "security_key": "something"} + ]}, + "rf": {"5G": + {'band': '5G', + 'country': 'GB', + 'channel-mode': 'VHT', + 'channel-width': 20, + "channel": 161}, + "2G": + {'band': '2G', + 'country': 'GB', + "channel-mode": "VHT", + 'channel-width': 20, + "channel": 1} + }, + "radius": False +} + +@allure.feature("BRIDGE MODE CLIENT CONNECTIVITY") +@pytest.mark.parametrize( + 'setup_profiles', + [setup_params_general24], + indirect=True, + scope="class" +) +@pytest.mark.usefixtures("setup_profiles") +class TestCountryGB20Mhz5GChannel161(object): + """Country code along with Channel and Channel-width Test Bridge mode + pytest -m "country_code and Bridge" + """ + @allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-2546", name="WIFI-6938") + @pytest.mark.wpa2_personal + @pytest.mark.twentyMhz + @pytest.mark.fiveg + @pytest.mark.channel161 + def test_client_bridge_wpa2_chn161_20Mhz_GB_5g(self, lf_test, station_names_fiveg, get_configuration): + """Country code Bridge Mode + pytest -m "country_code and twentyMhz and wpa2 and fiveg and channel161" + """ + profile_data = setup_params_general24["ssid_modes"]["wpa2_personal"][1] + ssid = profile_data["ssid_name"] + security_key = profile_data["security_key"] + security = "wpa2" + mode = "BRIDGE" + band = "fiveg" + vlan = 1 + channel = setup_params_general24['rf']['5G']['channel'] + + result = lf_test.country_code_channel_division(ssid=ssid, security=security, passkey=security_key, mode=mode, + band=band, station_name=station_names_fiveg, vlan_id=vlan, + channel=channel,country=826) + if result: + assert True + else: + assert False + + +setup_params_general25 = { + "mode": "BRIDGE", + "ssid_modes": { + "wpa2_personal": [{"ssid_name": "ssid_wpa2_2g", "appliedRadios": ["2G"], "security_key": "something"}, + {"ssid_name": "ssid_wpa2_5g", "appliedRadios": ["5G"], "security_key": "something"} + ]}, + "rf": {"5G": + {'band': '5G', + 'country': 'GB', + 'channel-mode': 'VHT', + 'channel-width': 20, + "channel": 165}, + "2G": + {'band': '2G', + 'country': 'GB', + "channel-mode": "VHT", + 'channel-width': 20, + "channel": 1} + }, + "radius": False +} + +@allure.feature("BRIDGE MODE CLIENT CONNECTIVITY") +@pytest.mark.parametrize( + 'setup_profiles', + [setup_params_general25], + indirect=True, + scope="class" +) +@pytest.mark.usefixtures("setup_profiles") +class TestCountryGB20Mhz5GChannel165(object): + """Country code along with Channel and Channel-width Test Bridge mode + pytest -m "country_code and Bridge" + """ + @allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-2546", name="WIFI-6938") + @pytest.mark.wpa2_personal + @pytest.mark.twentyMhz + @pytest.mark.fiveg + @pytest.mark.channel165 + def test_client_bridge_wpa2_chn165_20Mhz_GB_5g(self, lf_test, station_names_fiveg, get_configuration): + """Country code Bridge Mode + pytest -m "country_code and twentyMhz and wpa2 and fiveg and channel165" + """ + profile_data = setup_params_general25["ssid_modes"]["wpa2_personal"][1] + ssid = profile_data["ssid_name"] + security_key = profile_data["security_key"] + security = "wpa2" + mode = "BRIDGE" + band = "fiveg" + vlan = 1 + channel = setup_params_general25['rf']['5G']['channel'] + + result = lf_test.country_code_channel_division(ssid=ssid, security=security, passkey=security_key, mode=mode, + band=band, station_name=station_names_fiveg, vlan_id=vlan, + channel=channel,country=826) + if result: + assert True + else: + assert False + diff --git a/tests/e2e/basic/validation_of_operating_modes/country_code_channel_division/country_code_GB/channel_width_20Mhz/twog_band/__init__.py b/tests/e2e/basic/validation_of_operating_modes/country_code_channel_division/country_code_GB/channel_width_20Mhz/twog_band/__init__.py new file mode 100644 index 000000000..e69de29bb diff --git a/tests/e2e/basic/validation_of_operating_modes/country_code_channel_division/country_code_GB/channel_width_20Mhz/twog_band/test_GB_20Mhz_2g.py b/tests/e2e/basic/validation_of_operating_modes/country_code_channel_division/country_code_GB/channel_width_20Mhz/twog_band/test_GB_20Mhz_2g.py new file mode 100644 index 000000000..20212cc35 --- /dev/null +++ b/tests/e2e/basic/validation_of_operating_modes/country_code_channel_division/country_code_GB/channel_width_20Mhz/twog_band/test_GB_20Mhz_2g.py @@ -0,0 +1,821 @@ +""" + + Performance Test: Country code along with Channel and Channel-width Test: Bridge Mode + pytest -m "country_code and Bridge" + +""" + + +import os +import pytest +import allure + +pytestmark = [pytest.mark.country_code, pytest.mark.Bridge, pytest.mark.wpa2, pytest.mark.GB] + +setup_params_general1 = { + "mode": "BRIDGE", + "ssid_modes": { + "wpa2_personal": [{"ssid_name": "ssid_wpa2_2g", "appliedRadios": ["2G"], "security_key": "something"}, + {"ssid_name": "ssid_wpa2_5g", "appliedRadios": ["5G"], "security_key": "something"} + ]}, + "rf": { + "5G": + {'band': '5G', + 'country': 'GB', + "channel-mode": "VHT", + 'channel-width': 20, + "channel": 36}, + "2G": + {'band': '2G', + 'country': 'GB', + "channel-mode": "VHT", + 'channel-width': 20, + "channel": 1} + }, + "radius": False +} + + +@allure.feature("BRIDGE MODE CLIENT CONNECTIVITY") +@pytest.mark.parametrize( + 'setup_profiles', + [setup_params_general1], + indirect=True, + scope="class" +) +@pytest.mark.usefixtures("setup_profiles") +class TestCountryGB20Mhz2GChannel1(object): + """Country code along with Channel and Channel-width Test Bridge mode + pytest -m "country_code and Bridge" + """ + @allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-2546", name="WIFI-6938") + @pytest.mark.wpa2_personal + @pytest.mark.twentyMhz + @pytest.mark.twog + @pytest.mark.channel1 + def test_client_bridge_wpa2_chn1_20Mhz_GB_2g(self, lf_test, station_names_twog, get_configuration): + """Country code Bridge Mode + pytest -m "country_code and twentyMhz and wpa2 and twog and channel1" + """ + profile_data = setup_params_general1["ssid_modes"]["wpa2_personal"][0] + ssid = profile_data["ssid_name"] + security_key = profile_data["security_key"] + security = "wpa2" + mode = "BRIDGE" + band = "twog" + vlan = 1 + channel = setup_params_general1['rf']['2G']['channel'] + + result = lf_test.country_code_channel_division(ssid=ssid, security=security, passkey=security_key, mode=mode, + band=band, station_name=station_names_twog, vlan_id=vlan, + channel=channel,country=826) + if result: + assert True + else: + assert False + + +setup_params_general2 = { + "mode": "BRIDGE", + "ssid_modes": { + "wpa2_personal": [{"ssid_name": "ssid_wpa2_2g", "appliedRadios": ["2G"], "security_key": "something"}, + {"ssid_name": "ssid_wpa2_5g", "appliedRadios": ["5G"], "security_key": "something"} + ]}, + "rf": { + "5G": + {'band': '5G', + 'country': 'GB', + "channel-mode": "VHT", + 'channel-width': 20, + "channel": 36}, + "2G": + {'band': '2G', + 'country': 'GB', + 'channel-mode': 'VHT', + 'channel-width': 20, + "channel": 2} + }, + "radius": False +} + + +@allure.feature("BRIDGE MODE CLIENT CONNECTIVITY") +@pytest.mark.parametrize( + 'setup_profiles', + [setup_params_general2], + indirect=True, + scope="class" +) +@pytest.mark.usefixtures("setup_profiles") +class TestCountryGB20Mhz2GChannel2(object): + """Country code along with Channel and Channel-width Test Bridge mode + pytest -m "country_code and Bridge" + """ + @allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-2546", name="WIFI-6938") + @pytest.mark.wpa2_personal + @pytest.mark.twentyMhz + @pytest.mark.twog + @pytest.mark.channel2 + def test_client_bridge_wpa2_chn2_20Mhz_GB_2g(self, lf_test, station_names_twog, get_configuration): + """Country code Bridge Mode + pytest -m "country_code and twentyMhz and wpa2 and twog and channel2" + """ + profile_data = setup_params_general2["ssid_modes"]["wpa2_personal"][0] + ssid = profile_data["ssid_name"] + security_key = profile_data["security_key"] + security = "wpa2" + mode = "BRIDGE" + band = "twog" + vlan = 1 + channel = setup_params_general2['rf']['2G']['channel'] + + result = lf_test.country_code_channel_division(ssid=ssid, security=security, passkey=security_key, mode=mode, + band=band, station_name=station_names_twog, vlan_id=vlan, + channel=channel,country=826) + if result: + assert True + else: + assert False + + +setup_params_general3 = { + "mode": "BRIDGE", + "ssid_modes": { + "wpa2_personal": [{"ssid_name": "ssid_wpa2_2g", "appliedRadios": ["2G"], "security_key": "something"}, + {"ssid_name": "ssid_wpa2_5g", "appliedRadios": ["5G"], "security_key": "something"} + ]}, + "rf": { + "5G": + {'band': '5G', + 'country': 'GB', + "channel-mode": "VHT", + 'channel-width': 20, + "channel": 36}, + "2G": + {'band': '2G', + 'country': 'GB', + 'channel-mode': 'VHT', + 'channel-width': 20, + "channel": 3} + }, + "radius": False +} + + +@allure.feature("BRIDGE MODE CLIENT CONNECTIVITY") +@pytest.mark.parametrize( + 'setup_profiles', + [setup_params_general3], + indirect=True, + scope="class" +) +@pytest.mark.usefixtures("setup_profiles") +class TestCountryGB20Mhz2GChannel3(object): + """Country code along with Channel and Channel-width Test Bridge mode + pytest -m "country_code and Bridge" + """ + @allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-2546", name="WIFI-6938") + @pytest.mark.wpa2_personal + @pytest.mark.twentyMhz + @pytest.mark.twog + @pytest.mark.channel3 + def test_client_bridge_wpa2_chn3_20Mhz_GB_2g(self, lf_test, station_names_twog, get_configuration): + """Country code Bridge Mode + pytest -m "country_code and twentyMhz and wpa2 and twog and channel3" + """ + profile_data = setup_params_general3["ssid_modes"]["wpa2_personal"][0] + ssid = profile_data["ssid_name"] + security_key = profile_data["security_key"] + security = "wpa2" + mode = "BRIDGE" + band = "twog" + vlan = 1 + channel = setup_params_general3['rf']['2G']['channel'] + + result = lf_test.country_code_channel_division(ssid=ssid, security=security, passkey=security_key, mode=mode, + band=band, station_name=station_names_twog, vlan_id=vlan, + channel=channel,country=826) + if result: + assert True + else: + assert False + + +setup_params_general4 = { + "mode": "BRIDGE", + "ssid_modes": { + "wpa2_personal": [{"ssid_name": "ssid_wpa2_2g", "appliedRadios": ["2G"], "security_key": "something"}, + {"ssid_name": "ssid_wpa2_5g", "appliedRadios": ["5G"], "security_key": "something"} + ]}, + "rf": { + "5G": + {'band': '5G', + 'country': 'GB', + "channel-mode": "VHT", + 'channel-width': 20, + "channel": 36}, + "2G": + {'band': '2G', + 'country': 'GB', + 'channel-mode': 'VHT', + 'channel-width': 20, + "channel": 4} + }, + "radius": False +} + +@allure.feature("BRIDGE MODE CLIENT CONNECTIVITY") +@pytest.mark.parametrize( + 'setup_profiles', + [setup_params_general4], + indirect=True, + scope="class" +) +@pytest.mark.usefixtures("setup_profiles") +class TestCountryGB20Mhz2GChannel4(object): + """Country code along with Channel and Channel-width Test Bridge mode + pytest -m "country_code and Bridge" + """ + @allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-2546", name="WIFI-6938") + @pytest.mark.wpa2_personal + @pytest.mark.twentyMhz + @pytest.mark.twog + @pytest.mark.channel4 + def test_client_bridge_wpa2_chn4_20Mhz_GB_2g(self, lf_test, station_names_twog, get_configuration): + """Country code Bridge Mode + pytest -m "country_code and twentyMhz and wpa2 and twog and channel4" + """ + profile_data = setup_params_general4["ssid_modes"]["wpa2_personal"][0] + ssid = profile_data["ssid_name"] + security_key = profile_data["security_key"] + security = "wpa2" + mode = "BRIDGE" + band = "twog" + vlan = 1 + channel = setup_params_general4['rf']['2G']['channel'] + + result = lf_test.country_code_channel_division(ssid=ssid, security=security, passkey=security_key, mode=mode, + band=band, station_name=station_names_twog, vlan_id=vlan, + channel=channel,country=826) + if result: + assert True + else: + assert False + + +setup_params_general5 = { + "mode": "BRIDGE", + "ssid_modes": { + "wpa2_personal": [{"ssid_name": "ssid_wpa2_2g", "appliedRadios": ["2G"], "security_key": "something"}, + {"ssid_name": "ssid_wpa2_5g", "appliedRadios": ["5G"], "security_key": "something"} + ]}, + "rf": { + "5G": + {'band': '5G', + 'country': 'GB', + "channel-mode": "VHT", + 'channel-width': 20, + "channel": 36}, + "2G": + {'band': '2G', + 'country': 'GB', + 'channel-mode': 'VHT', + 'channel-width': 20, + "channel": 5} + }, + "radius": False +} + +@allure.feature("BRIDGE MODE CLIENT CONNECTIVITY") +@pytest.mark.parametrize( + 'setup_profiles', + [setup_params_general5], + indirect=True, + scope="class" +) +@pytest.mark.usefixtures("setup_profiles") +class TestCountryGB20Mhz2GChannel5(object): + """Country code along with Channel and Channel-width Test Bridge mode + pytest -m "country_code and Bridge" + """ + @allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-2546", name="WIFI-6938") + @pytest.mark.wpa2_personal + @pytest.mark.twentyMhz + @pytest.mark.twog + @pytest.mark.channel5 + def test_client_bridge_wpa2_chn5_20Mhz_GB_2g(self, lf_test, station_names_twog, get_configuration): + """Country code Bridge Mode + pytest -m "country_code and twentyMhz and wpa2 and twog and channel5" + """ + profile_data = setup_params_general5["ssid_modes"]["wpa2_personal"][0] + ssid = profile_data["ssid_name"] + security_key = profile_data["security_key"] + security = "wpa2" + mode = "BRIDGE" + band = "twog" + vlan = 1 + channel = setup_params_general5['rf']['2G']['channel'] + + result = lf_test.country_code_channel_division(ssid=ssid, security=security, passkey=security_key, mode=mode, + band=band, station_name=station_names_twog, vlan_id=vlan, + channel=channel,country=826) + if result: + assert True + else: + assert False + + +setup_params_general6 = { + "mode": "BRIDGE", + "ssid_modes": { + "wpa2_personal": [{"ssid_name": "ssid_wpa2_2g", "appliedRadios": ["2G"], "security_key": "something"}, + {"ssid_name": "ssid_wpa2_5g", "appliedRadios": ["5G"], "security_key": "something"} + ]}, + "rf": { + "5G": + {'band': '5G', + 'country': 'GB', + "channel-mode": "VHT", + 'channel-width': 20, + "channel": 36}, + "2G": + {'band': '2G', + 'country': 'GB', + 'channel-mode': 'VHT', + 'channel-width': 20, + "channel": 6} + }, + "radius": False +} + +@allure.feature("BRIDGE MODE CLIENT CONNECTIVITY") +@pytest.mark.parametrize( + 'setup_profiles', + [setup_params_general6], + indirect=True, + scope="class" +) +@pytest.mark.usefixtures("setup_profiles") +class TestCountryGB20Mhz2GChannel6(object): + """Country code along with Channel and Channel-width Test Bridge mode + pytest -m "country_code and Bridge" + """ + @allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-2546", name="WIFI-6938") + @pytest.mark.wpa2_personal + @pytest.mark.twentyMhz + @pytest.mark.twog + @pytest.mark.channel6 + def test_client_bridge_wpa2_chn6_20Mhz_GB_2g(self, lf_test, station_names_twog, get_configuration): + """Country code Bridge Mode + pytest -m "country_code and twentyMhz and wpa2 and twog and channel6" + """ + profile_data = setup_params_general6["ssid_modes"]["wpa2_personal"][0] + ssid = profile_data["ssid_name"] + security_key = profile_data["security_key"] + security = "wpa2" + mode = "BRIDGE" + band = "twog" + vlan = 1 + channel = setup_params_general6['rf']['2G']['channel'] + + result = lf_test.country_code_channel_division(ssid=ssid, security=security, passkey=security_key, mode=mode, + band=band, station_name=station_names_twog, vlan_id=vlan, + channel=channel,country=826) + if result: + assert True + else: + assert False + + +setup_params_general7 = { + "mode": "BRIDGE", + "ssid_modes": { + "wpa2_personal": [{"ssid_name": "ssid_wpa2_2g", "appliedRadios": ["2G"], "security_key": "something"}, + {"ssid_name": "ssid_wpa2_5g", "appliedRadios": ["5G"], "security_key": "something"} + ]}, + "rf": { + "5G": + {'band': '5G', + 'country': 'GB', + "channel-mode": "VHT", + 'channel-width': 20, + "channel": 36}, + "2G": + {'band': '2G', + 'country': 'GB', + 'channel-mode': 'VHT', + 'channel-width': 20, + "channel": 7} + }, + "radius": False +} + +@allure.feature("BRIDGE MODE CLIENT CONNECTIVITY") +@pytest.mark.parametrize( + 'setup_profiles', + [setup_params_general7], + indirect=True, + scope="class" +) +@pytest.mark.usefixtures("setup_profiles") +class TestCountryGB20Mhz2GChannel7(object): + """Country code along with Channel and Channel-width Test Bridge mode + pytest -m "country_code and Bridge" + """ + @allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-2546", name="WIFI-6938") + @pytest.mark.wpa2_personal + @pytest.mark.twentyMhz + @pytest.mark.twog + @pytest.mark.channel7 + def test_client_bridge_wpa2_chn7_20Mhz_GB_2g(self, lf_test, station_names_twog, get_configuration): + """Country code Bridge Mode + pytest -m "country_code and twentyMhz and wpa2 and twog and channel7" + """ + profile_data = setup_params_general7["ssid_modes"]["wpa2_personal"][0] + ssid = profile_data["ssid_name"] + security_key = profile_data["security_key"] + security = "wpa2" + mode = "BRIDGE" + band = "twog" + vlan = 1 + channel = setup_params_general7['rf']['2G']['channel'] + + result = lf_test.country_code_channel_division(ssid=ssid, security=security, passkey=security_key, mode=mode, + band=band, station_name=station_names_twog, vlan_id=vlan, + channel=channel,country=826) + if result: + assert True + else: + assert False + + +setup_params_general8 = { + "mode": "BRIDGE", + "ssid_modes": { + "wpa2_personal": [{"ssid_name": "ssid_wpa2_2g", "appliedRadios": ["2G"], "security_key": "something"}, + {"ssid_name": "ssid_wpa2_5g", "appliedRadios": ["5G"], "security_key": "something"} + ]}, + "rf": { + "5G": + {'band': '5G', + 'country': 'GB', + "channel-mode": "VHT", + 'channel-width': 20, + "channel": 36}, + "2G": + {'band': '2G', + 'country': 'GB', + 'channel-mode': 'VHT', + 'channel-width': 20, + "channel": 8} + }, + "radius": False +} + +@allure.feature("BRIDGE MODE CLIENT CONNECTIVITY") +@pytest.mark.parametrize( + 'setup_profiles', + [setup_params_general8], + indirect=True, + scope="class" +) +@pytest.mark.usefixtures("setup_profiles") +class TestCountryGB20Mhz2GChannel8(object): + """Country code along with Channel and Channel-width Test Bridge mode + pytest -m "country_code and Bridge" + """ + @allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-2546", name="WIFI-6938") + @pytest.mark.wpa2_personal + @pytest.mark.twentyMhz + @pytest.mark.twog + @pytest.mark.channel8 + def test_client_bridge_wpa2_chn8_20Mhz_GB_2g(self, lf_test, station_names_twog, get_configuration): + """Country code Bridge Mode + pytest -m "country_code and twentyMhz and wpa2 and twog and channel8" + """ + profile_data = setup_params_general8["ssid_modes"]["wpa2_personal"][0] + ssid = profile_data["ssid_name"] + security_key = profile_data["security_key"] + security = "wpa2" + mode = "BRIDGE" + band = "twog" + vlan = 1 + channel = setup_params_general8['rf']['2G']['channel'] + + result = lf_test.country_code_channel_division(ssid=ssid, security=security, passkey=security_key, mode=mode, + band=band, station_name=station_names_twog, vlan_id=vlan, + channel=channel,country=826) + if result: + assert True + else: + assert False + + +setup_params_general9 = { + "mode": "BRIDGE", + "ssid_modes": { + "wpa2_personal": [{"ssid_name": "ssid_wpa2_2g", "appliedRadios": ["2G"], "security_key": "something"}, + {"ssid_name": "ssid_wpa2_5g", "appliedRadios": ["5G"], "security_key": "something"} + ]}, + "rf": { + "5G": + {'band': '5G', + 'country': 'GB', + "channel-mode": "VHT", + 'channel-width': 20, + "channel": 36}, + "2G": + {'band': '2G', + 'country': 'GB', + 'channel-mode': 'VHT', + 'channel-width': 20, + "channel": 9} + }, + "radius": False +} + +@allure.feature("BRIDGE MODE CLIENT CONNECTIVITY") +@pytest.mark.parametrize( + 'setup_profiles', + [setup_params_general9], + indirect=True, + scope="class" +) +@pytest.mark.usefixtures("setup_profiles") +class TestCountryGB20Mhz2GChannel9(object): + """Country code along with Channel and Channel-width Test Bridge mode + pytest -m "country_code and Bridge" + """ + @allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-2546", name="WIFI-6938") + @pytest.mark.wpa2_personal + @pytest.mark.twentyMhz + @pytest.mark.twog + @pytest.mark.channel9 + def test_client_bridge_wpa2_chn9_20Mhz_GB_2g(self, lf_test, station_names_twog, get_configuration): + """Country code Bridge Mode + pytest -m "country_code and twentyMhz and wpa2 and twog and channel9" + """ + profile_data = setup_params_general9["ssid_modes"]["wpa2_personal"][0] + ssid = profile_data["ssid_name"] + security_key = profile_data["security_key"] + security = "wpa2" + mode = "BRIDGE" + band = "twog" + vlan = 1 + channel = setup_params_general9['rf']['2G']['channel'] + + result = lf_test.country_code_channel_division(ssid=ssid, security=security, passkey=security_key, mode=mode, + band=band, station_name=station_names_twog, vlan_id=vlan, + channel=channel,country=826) + if result: + assert True + else: + assert False + + +setup_params_general10 = { + "mode": "BRIDGE", + "ssid_modes": { + "wpa2_personal": [{"ssid_name": "ssid_wpa2_2g", "appliedRadios": ["2G"], "security_key": "something"}, + {"ssid_name": "ssid_wpa2_5g", "appliedRadios": ["5G"], "security_key": "something"} + ]}, + "rf": { + "5G": + {'band': '5G', + 'country': 'GB', + "channel-mode": "VHT", + 'channel-width': 20, + "channel": 36}, + "2G": + {'band': '2G', + 'country': 'GB', + 'channel-mode': 'VHT', + 'channel-width': 20, + "channel": 10} + }, + "radius": False +} + +@allure.feature("BRIDGE MODE CLIENT CONNECTIVITY") +@pytest.mark.parametrize( + 'setup_profiles', + [setup_params_general10], + indirect=True, + scope="class" +) +@pytest.mark.usefixtures("setup_profiles") +class TestCountryGB20Mhz2GChannel10(object): + """Country code along with Channel and Channel-width Test Bridge mode + pytest -m "country_code and Bridge" + """ + @allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-2546", name="WIFI-6938") + @pytest.mark.wpa2_personal + @pytest.mark.twentyMhz + @pytest.mark.twog + @pytest.mark.channel10 + def test_client_bridge_wpa2_chn10_20Mhz_GB_2g(self, lf_test, station_names_twog, get_configuration): + """Country code Bridge Mode + pytest -m "country_code and twentyMhz and wpa2 and twog and channel10" + """ + profile_data = setup_params_general10["ssid_modes"]["wpa2_personal"][0] + ssid = profile_data["ssid_name"] + security_key = profile_data["security_key"] + security = "wpa2" + mode = "BRIDGE" + band = "twog" + vlan = 1 + channel = setup_params_general10['rf']['2G']['channel'] + + result = lf_test.country_code_channel_division(ssid=ssid, security=security, passkey=security_key, mode=mode, + band=band, station_name=station_names_twog, vlan_id=vlan, + channel=channel,country=826) + if result: + assert True + else: + assert False + + +setup_params_general11 = { + "mode": "BRIDGE", + "ssid_modes": { + "wpa2_personal": [{"ssid_name": "ssid_wpa2_2g", "appliedRadios": ["2G"], "security_key": "something"}, + {"ssid_name": "ssid_wpa2_5g", "appliedRadios": ["5G"], "security_key": "something"} + ]}, + "rf": { + "5G": + {'band': '5G', + 'country': 'GB', + "channel-mode": "VHT", + 'channel-width': 20, + "channel": 36}, + "2G": + {'band': '2G', + 'country': 'GB', + 'channel-mode': 'VHT', + 'channel-width': 20, + "channel": 11} + }, + "radius": False +} + +@allure.feature("BRIDGE MODE CLIENT CONNECTIVITY") +@pytest.mark.parametrize( + 'setup_profiles', + [setup_params_general11], + indirect=True, + scope="class" +) +@pytest.mark.usefixtures("setup_profiles") +class TestCountryGB20Mhz2GChannel11(object): + """Country code along with Channel and Channel-width Test Bridge mode + pytest -m "country_code and Bridge" + """ + @allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-2546", name="WIFI-6938") + @pytest.mark.wpa2_personal + @pytest.mark.twentyMhz + @pytest.mark.twog + @pytest.mark.channel11 + def test_client_bridge_wpa2_chn11_20Mhz_GB_2g(self, lf_test, station_names_twog, get_configuration): + """Country code Bridge Mode + pytest -m "country_code and twentyMhz and wpa2 and twog and channel11" + """ + profile_data = setup_params_general11["ssid_modes"]["wpa2_personal"][0] + ssid = profile_data["ssid_name"] + security_key = profile_data["security_key"] + security = "wpa2" + mode = "BRIDGE" + band = "twog" + vlan = 1 + channel = setup_params_general11['rf']['2G']['channel'] + + result = lf_test.country_code_channel_division(ssid=ssid, security=security, passkey=security_key, mode=mode, + band=band, station_name=station_names_twog, vlan_id=vlan, + channel=channel,country=826) + if result: + assert True + else: + assert False + + +setup_params_general12 = { + "mode": "BRIDGE", + "ssid_modes": { + "wpa2_personal": [{"ssid_name": "ssid_wpa2_2g", "appliedRadios": ["2G"], "security_key": "something"}, + {"ssid_name": "ssid_wpa2_5g", "appliedRadios": ["5G"], "security_key": "something"} + ]}, + "rf": { + "5G": + {'band': '5G', + 'country': 'GB', + "channel-mode": "VHT", + 'channel-width': 20, + "channel": 36}, + "2G": + {'band': '2G', + 'country': 'GB', + 'channel-mode': 'VHT', + 'channel-width': 20, + "channel": 12} + }, + "radius": False +} + +@allure.feature("BRIDGE MODE CLIENT CONNECTIVITY") +@pytest.mark.parametrize( + 'setup_profiles', + [setup_params_general12], + indirect=True, + scope="class" +) +@pytest.mark.usefixtures("setup_profiles") +class TestCountryGB20Mhz2GChannel12(object): + """Country code along with Channel and Channel-width Test Bridge mode + pytest -m "country_code and Bridge" + """ + @allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-2546", name="WIFI-6938") + @pytest.mark.wpa2_personal + @pytest.mark.twentyMhz + @pytest.mark.twog + @pytest.mark.channel12 + def test_client_bridge_wpa2_chn12_20Mhz_GB_2g(self, lf_test, station_names_twog, get_configuration): + """Country code Bridge Mode + pytest -m "country_code and twentyMhz and wpa2 and twog and channel12" + """ + profile_data = setup_params_general12["ssid_modes"]["wpa2_personal"][0] + ssid = profile_data["ssid_name"] + security_key = profile_data["security_key"] + security = "wpa2" + mode = "BRIDGE" + band = "twog" + vlan = 1 + channel = setup_params_general12['rf']['2G']['channel'] + + result = lf_test.country_code_channel_division(ssid=ssid, security=security, passkey=security_key, mode=mode, + band=band, station_name=station_names_twog, vlan_id=vlan, + channel=channel,country=826) + if result: + assert True + else: + assert False + + +setup_params_general13 = { + "mode": "BRIDGE", + "ssid_modes": { + "wpa2_personal": [{"ssid_name": "ssid_wpa2_2g", "appliedRadios": ["2G"], "security_key": "something"}, + {"ssid_name": "ssid_wpa2_5g", "appliedRadios": ["5G"], "security_key": "something"} + ]}, + "rf": { + "5G": + {'band': '5G', + 'country': 'GB', + "channel-mode": "VHT", + 'channel-width': 20, + "channel": 36}, + "2G": + {'band': '2G', + 'country': 'GB', + 'channel-mode': 'VHT', + 'channel-width': 20, + "channel": 13} + }, + "radius": False +} + +@allure.feature("BRIDGE MODE CLIENT CONNECTIVITY") +@pytest.mark.parametrize( + 'setup_profiles', + [setup_params_general13], + indirect=True, + scope="class" +) +@pytest.mark.usefixtures("setup_profiles") +class TestCountryGB20Mhz2GChannel13(object): + """Country code along with Channel and Channel-width Test Bridge mode + pytest -m "country_code and Bridge" + """ + @allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-2546", name="WIFI-6938") + @pytest.mark.wpa2_personal + @pytest.mark.twentyMhz + @pytest.mark.twog + @pytest.mark.channel13 + def test_client_bridge_wpa2_chn13_20Mhz_GB_2g(self, lf_test, station_names_twog, get_configuration): + """Country code Bridge Mode + pytest -m "country_code and twentyMhz and wpa2 and twog and channel13" + """ + profile_data = setup_params_general13["ssid_modes"]["wpa2_personal"][0] + ssid = profile_data["ssid_name"] + security_key = profile_data["security_key"] + security = "wpa2" + mode = "BRIDGE" + band = "twog" + vlan = 1 + channel = setup_params_general13['rf']['2G']['channel'] + + result = lf_test.country_code_channel_division(ssid=ssid, security=security, passkey=security_key, mode=mode, + band=band, station_name=station_names_twog, vlan_id=vlan, + channel=channel,country=826) + if result: + assert True + else: + assert False diff --git a/tests/e2e/basic/validation_of_operating_modes/country_code_channel_division/country_code_GB/channel_width_40Mhz/__init__.py b/tests/e2e/basic/validation_of_operating_modes/country_code_channel_division/country_code_GB/channel_width_40Mhz/__init__.py new file mode 100644 index 000000000..e69de29bb diff --git a/tests/e2e/basic/validation_of_operating_modes/country_code_channel_division/country_code_GB/channel_width_40Mhz/fiveg_band/__init__.py b/tests/e2e/basic/validation_of_operating_modes/country_code_channel_division/country_code_GB/channel_width_40Mhz/fiveg_band/__init__.py new file mode 100644 index 000000000..e69de29bb diff --git a/tests/e2e/basic/validation_of_operating_modes/country_code_channel_division/country_code_GB/channel_width_40Mhz/fiveg_band/test_GB_40Mhz_5g.py b/tests/e2e/basic/validation_of_operating_modes/country_code_channel_division/country_code_GB/channel_width_40Mhz/fiveg_band/test_GB_40Mhz_5g.py new file mode 100644 index 000000000..d3b7c354e --- /dev/null +++ b/tests/e2e/basic/validation_of_operating_modes/country_code_channel_division/country_code_GB/channel_width_40Mhz/fiveg_band/test_GB_40Mhz_5g.py @@ -0,0 +1,758 @@ +""" + + Performance Test: Country code along with Channel and Channel-width Test: Bridge Mode + pytest -m "country_code and Bridge" + +""" + + +import os +import pytest +import allure + +pytestmark = [pytest.mark.country_code, pytest.mark.Bridge, pytest.mark.wpa2, pytest.mark.GB] + +setup_params_general1 = { + "mode": "BRIDGE", + "ssid_modes": { + "wpa2_personal": [{"ssid_name": "ssid_wpa2_2g", "appliedRadios": ["2G"], "security_key": "something"}, + {"ssid_name": "ssid_wpa2_5g", "appliedRadios": ["5G"], "security_key": "something"} + ]}, + "rf": { + "5G": + {'band': '5G', + 'country': 'GB', + "channel-mode": "VHT", + 'channel-width': 40, + "channel": 36}, + "2G": + {'band': '2G', + 'country': 'GB', + "channel-mode": "VHT", + 'channel-width': 40, + "channel": 1} + }, + "radius": False +} + + +@allure.feature("BRIDGE MODE CLIENT CONNECTIVITY") +@pytest.mark.parametrize( + 'setup_profiles', + [setup_params_general1], + indirect=True, + scope="class" +) +@pytest.mark.usefixtures("setup_profiles") +class TestCountryGB40Mhz5GChannel36(object): + """Country code along with Channel and Channel-width Test Bridge mode + pytest -m "country_code and Bridge" + """ + @allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-2546", name="WIFI-6938") + @pytest.mark.wpa2_personal + @pytest.mark.fourtyMhz + @pytest.mark.fiveg + @pytest.mark.channel36 + def test_client_bridge_wpa2_chn36_40Mhz_GB_5g(self, lf_test, station_names_fiveg, get_configuration): + """Country code Bridge Mode + pytest -m "country_code and fourtyMhz and wpa2 and fiveg and channel36" + """ + profile_data = setup_params_general1["ssid_modes"]["wpa2_personal"][1] + ssid = profile_data["ssid_name"] + security_key = profile_data["security_key"] + security = "wpa2" + mode = "BRIDGE" + band = "fiveg" + vlan = 1 + channel = setup_params_general1['rf']['5G']['channel'] + + result = lf_test.country_code_channel_division(ssid=ssid, security=security, passkey=security_key, mode=mode, + band=band, station_name=station_names_fiveg, vlan_id=vlan, + channel=channel,country=826) + if result: + assert True + else: + assert False + + +setup_params_general2 = { + "mode": "BRIDGE", + "ssid_modes": { + "wpa2_personal": [{"ssid_name": "ssid_wpa2_2g", "appliedRadios": ["2G"], "security_key": "something"}, + {"ssid_name": "ssid_wpa2_5g", "appliedRadios": ["5G"], "security_key": "something"} + ]}, + "rf": { + "5G": + {'band': '5G', + 'country': 'GB', + 'channel-mode': 'VHT', + 'channel-width': 40, + "channel": 44}, + "2G": + {'band': '2G', + 'country': 'GB', + "channel-mode": "VHT", + 'channel-width': 40, + "channel": 1} + }, + "radius": False +} + + +@allure.feature("BRIDGE MODE CLIENT CONNECTIVITY") +@pytest.mark.parametrize( + 'setup_profiles', + [setup_params_general2], + indirect=True, + scope="class" +) +@pytest.mark.usefixtures("setup_profiles") +class TestCountryGB40Mhz5GChannel44(object): + """Country code along with Channel and Channel-width Test Bridge mode + pytest -m "country_code and Bridge" + """ + @allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-2546", name="WIFI-6938") + @pytest.mark.wpa2_personal + @pytest.mark.fourtyMhz + @pytest.mark.fiveg + @pytest.mark.channel44 + def test_client_bridge_wpa2_chn44_40Mhz_GB_5g(self, lf_test, station_names_fiveg, get_configuration): + """Country code Bridge Mode + pytest -m "country_code and fourtyMhz and wpa2 and fiveg and channel44" + """ + profile_data = setup_params_general2["ssid_modes"]["wpa2_personal"][1] + ssid = profile_data["ssid_name"] + security_key = profile_data["security_key"] + security = "wpa2" + mode = "BRIDGE" + band = "fiveg" + vlan = 1 + channel = setup_params_general2['rf']['5G']['channel'] + + result = lf_test.country_code_channel_division(ssid=ssid, security=security, passkey=security_key, mode=mode, + band=band, station_name=station_names_fiveg, vlan_id=vlan, + channel=channel,country=826) + if result: + assert True + else: + assert False + + +setup_params_general3 = { + "mode": "BRIDGE", + "ssid_modes": { + "wpa2_personal": [{"ssid_name": "ssid_wpa2_2g", "appliedRadios": ["2G"], "security_key": "something"}, + {"ssid_name": "ssid_wpa2_5g", "appliedRadios": ["5G"], "security_key": "something"} + ]}, + "rf": { + "5G": + {'band': '5G', + 'country': 'GB', + 'channel-mode': 'VHT', + 'channel-width': 40, + "channel": 52}, + "2G": + {'band': '2G', + 'country': 'GB', + "channel-mode": "VHT", + 'channel-width': 40, + "channel": 1} + }, + "radius": False +} + + +@allure.feature("BRIDGE MODE CLIENT CONNECTIVITY") +@pytest.mark.parametrize( + 'setup_profiles', + [setup_params_general3], + indirect=True, + scope="class" +) +@pytest.mark.usefixtures("setup_profiles") +class TestCountryGB40Mhz5GChannel52(object): + """Country code along with Channel and Channel-width Test Bridge mode + pytest -m "country_code and Bridge" + """ + @allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-2546", name="WIFI-6938") + @pytest.mark.wpa2_personal + @pytest.mark.fourtyMhz + @pytest.mark.fiveg + @pytest.mark.channel52 + def test_client_bridge_wpa2_chn52_40Mhz_GB_5g(self, lf_test, station_names_fiveg, get_configuration): + """Country code Bridge Mode + pytest -m "country_code and fourtyMhz and wpa2 and fiveg and channel52" + """ + profile_data = setup_params_general3["ssid_modes"]["wpa2_personal"][1] + ssid = profile_data["ssid_name"] + security_key = profile_data["security_key"] + security = "wpa2" + mode = "BRIDGE" + band = "fiveg" + vlan = 1 + channel = setup_params_general3['rf']['5G']['channel'] + + result = lf_test.country_code_channel_division(ssid=ssid, security=security, passkey=security_key, mode=mode, + band=band, station_name=station_names_fiveg, vlan_id=vlan, + channel=channel,country=826) + if result: + assert True + else: + assert False + + +setup_params_general4 = { + "mode": "BRIDGE", + "ssid_modes": { + "wpa2_personal": [{"ssid_name": "ssid_wpa2_2g", "appliedRadios": ["2G"], "security_key": "something"}, + {"ssid_name": "ssid_wpa2_5g", "appliedRadios": ["5G"], "security_key": "something"} + ]}, + "rf": {"5G": + {'band': '5G', + 'country': 'GB', + 'channel-mode': 'VHT', + 'channel-width': 40, + "channel": 60}, + "2G": + {'band': '2G', + 'country': 'GB', + "channel-mode": "VHT", + 'channel-width': 40, + "channel": 1} + }, + "radius": False +} + +@allure.feature("BRIDGE MODE CLIENT CONNECTIVITY") +@pytest.mark.parametrize( + 'setup_profiles', + [setup_params_general4], + indirect=True, + scope="class" +) +@pytest.mark.usefixtures("setup_profiles") +class TestCountryGB40Mhz5GChannel60(object): + """Country code along with Channel and Channel-width Test Bridge mode + pytest -m "country_code and Bridge" + """ + @allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-2546", name="WIFI-6938") + @pytest.mark.wpa2_personal + @pytest.mark.fourtyMhz + @pytest.mark.fiveg + @pytest.mark.channel60 + def test_client_bridge_wpa2_chn60_40Mhz_GB_5g(self, lf_test, station_names_fiveg, get_configuration): + """Country code Bridge Mode + pytest -m "country_code and fourtyMhz and wpa2 and fiveg and channel60" + """ + profile_data = setup_params_general4["ssid_modes"]["wpa2_personal"][1] + ssid = profile_data["ssid_name"] + security_key = profile_data["security_key"] + security = "wpa2" + mode = "BRIDGE" + band = "fiveg" + vlan = 1 + channel = setup_params_general4['rf']['5G']['channel'] + + result = lf_test.country_code_channel_division(ssid=ssid, security=security, passkey=security_key, mode=mode, + band=band, station_name=station_names_fiveg, vlan_id=vlan, + channel=channel,country=826) + if result: + assert True + else: + assert False + + +setup_params_general5 = { + "mode": "BRIDGE", + "ssid_modes": { + "wpa2_personal": [{"ssid_name": "ssid_wpa2_2g", "appliedRadios": ["2G"], "security_key": "something"}, + {"ssid_name": "ssid_wpa2_5g", "appliedRadios": ["5G"], "security_key": "something"} + ]}, + "rf": { + "5G": + {'band': '5G', + 'country': 'GB', + 'channel-mode': 'VHT', + 'channel-width': 40, + "channel": 100}, + "2G": + {'band': '2G', + 'country': 'GB', + "channel-mode": "VHT", + 'channel-width': 40, + "channel": 1} + }, + "radius": False +} + +@allure.feature("BRIDGE MODE CLIENT CONNECTIVITY") +@pytest.mark.parametrize( + 'setup_profiles', + [setup_params_general5], + indirect=True, + scope="class" +) +@pytest.mark.usefixtures("setup_profiles") +class TestCountryGB40Mhz5GChannel100(object): + """Country code along with Channel and Channel-width Test Bridge mode + pytest -m "country_code and Bridge" + """ + @allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-2546", name="WIFI-6938") + @pytest.mark.wpa2_personal + @pytest.mark.fourtyMhz + @pytest.mark.fiveg + @pytest.mark.channel100 + def test_client_bridge_wpa2_chn100_40Mhz_GB_5g(self, lf_test, station_names_fiveg, get_configuration): + """Country code Bridge Mode + pytest -m "country_code and fourtyMhz and wpa2 and fiveg and channel100" + """ + profile_data = setup_params_general5["ssid_modes"]["wpa2_personal"][1] + ssid = profile_data["ssid_name"] + security_key = profile_data["security_key"] + security = "wpa2" + mode = "BRIDGE" + band = "fiveg" + vlan = 1 + channel = setup_params_general5['rf']['5G']['channel'] + + result = lf_test.country_code_channel_division(ssid=ssid, security=security, passkey=security_key, mode=mode, + band=band, station_name=station_names_fiveg, vlan_id=vlan, + channel=channel,country=826) + if result: + assert True + else: + assert False + + +setup_params_general6 = { + "mode": "BRIDGE", + "ssid_modes": { + "wpa2_personal": [{"ssid_name": "ssid_wpa2_2g", "appliedRadios": ["2G"], "security_key": "something"}, + {"ssid_name": "ssid_wpa2_5g", "appliedRadios": ["5G"], "security_key": "something"} + ]}, + "rf": { + "5G": + {'band': '5G', + 'country': 'GB', + 'channel-mode': 'VHT', + 'channel-width': 40, + "channel": 108}, + "2G": + {'band': '2G', + 'country': 'GB', + "channel-mode": "VHT", + 'channel-width': 40, + "channel": 1} + }, + "radius": False +} + +@allure.feature("BRIDGE MODE CLIENT CONNECTIVITY") +@pytest.mark.parametrize( + 'setup_profiles', + [setup_params_general6], + indirect=True, + scope="class" +) +@pytest.mark.usefixtures("setup_profiles") +class TestCountryGB40Mhz5GChannel108(object): + """Country code along with Channel and Channel-width Test Bridge mode + pytest -m "country_code and Bridge" + """ + @allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-2546", name="WIFI-6938") + @pytest.mark.wpa2_personal + @pytest.mark.fourtyMhz + @pytest.mark.fiveg + @pytest.mark.channel108 + def test_client_bridge_wpa2_chn108_40Mhz_GB_5g(self, lf_test, station_names_fiveg, get_configuration): + """Country code Bridge Mode + pytest -m "country_code and fourtyMhz and wpa2 and fiveg and channel108" + """ + profile_data = setup_params_general6["ssid_modes"]["wpa2_personal"][1] + ssid = profile_data["ssid_name"] + security_key = profile_data["security_key"] + security = "wpa2" + mode = "BRIDGE" + band = "fiveg" + vlan = 1 + channel = setup_params_general6['rf']['5G']['channel'] + + result = lf_test.country_code_channel_division(ssid=ssid, security=security, passkey=security_key, mode=mode, + band=band, station_name=station_names_fiveg, vlan_id=vlan, + channel=channel,country=826) + if result: + assert True + else: + assert False + + +setup_params_general7 = { + "mode": "BRIDGE", + "ssid_modes": { + "wpa2_personal": [{"ssid_name": "ssid_wpa2_2g", "appliedRadios": ["2G"], "security_key": "something"}, + {"ssid_name": "ssid_wpa2_5g", "appliedRadios": ["5G"], "security_key": "something"} + ]}, + "rf": { + "5G": + {'band': '5G', + 'country': 'GB', + 'channel-mode': 'VHT', + 'channel-width': 40, + "channel": 116}, + "2G": + {'band': '2G', + 'country': 'GB', + "channel-mode": "VHT", + 'channel-width': 40, + "channel": 1} + }, + "radius": False +} + +@allure.feature("BRIDGE MODE CLIENT CONNECTIVITY") +@pytest.mark.parametrize( + 'setup_profiles', + [setup_params_general7], + indirect=True, + scope="class" +) +@pytest.mark.usefixtures("setup_profiles") +class TestCountryGB40Mhz5GChannel116(object): + """Country code along with Channel and Channel-width Test Bridge mode + pytest -m "country_code and Bridge" + """ + @allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-2546", name="WIFI-6938") + @pytest.mark.wpa2_personal + @pytest.mark.fourtyMhz + @pytest.mark.fiveg + @pytest.mark.channel116 + def test_client_bridge_wpa2_chn116_40Mhz_GB_5g(self, lf_test, station_names_fiveg, get_configuration): + """Country code Bridge Mode + pytest -m "country_code and fourtyMhz and wpa2 and fiveg and channel116" + """ + profile_data = setup_params_general7["ssid_modes"]["wpa2_personal"][1] + ssid = profile_data["ssid_name"] + security_key = profile_data["security_key"] + security = "wpa2" + mode = "BRIDGE" + band = "fiveg" + vlan = 1 + channel = setup_params_general7['rf']['5G']['channel'] + + result = lf_test.country_code_channel_division(ssid=ssid, security=security, passkey=security_key, mode=mode, + band=band, station_name=station_names_fiveg, vlan_id=vlan, + channel=channel,country=826) + if result: + assert True + else: + assert False + + +setup_params_general8 = { + "mode": "BRIDGE", + "ssid_modes": { + "wpa2_personal": [{"ssid_name": "ssid_wpa2_2g", "appliedRadios": ["2G"], "security_key": "something"}, + {"ssid_name": "ssid_wpa2_5g", "appliedRadios": ["5G"], "security_key": "something"} + ]}, + "rf": { + "5G": + {'band': '5G', + 'country': 'GB', + 'channel-mode': 'VHT', + 'channel-width': 40, + "channel": 124}, + "2G": + {'band': '2G', + 'country': 'GB', + "channel-mode": "VHT", + 'channel-width': 40, + "channel": 1} + }, + "radius": False +} + +@allure.feature("BRIDGE MODE CLIENT CONNECTIVITY") +@pytest.mark.parametrize( + 'setup_profiles', + [setup_params_general8], + indirect=True, + scope="class" +) +@pytest.mark.usefixtures("setup_profiles") +class TestCountryGB40Mhz5GChannel124(object): + """Country code along with Channel and Channel-width Test Bridge mode + pytest -m "country_code and Bridge" + """ + @allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-2546", name="WIFI-6938") + @pytest.mark.wpa2_personal + @pytest.mark.fourtyMhz + @pytest.mark.fiveg + @pytest.mark.channel124 + def test_client_bridge_wpa2_chn124_40Mhz_GB_5g(self, lf_test, station_names_fiveg, get_configuration): + """Country code Bridge Mode + pytest -m "country_code and fourtyMhz and wpa2 and fiveg and channel124" + """ + profile_data = setup_params_general8["ssid_modes"]["wpa2_personal"][1] + ssid = profile_data["ssid_name"] + security_key = profile_data["security_key"] + security = "wpa2" + mode = "BRIDGE" + band = "fiveg" + vlan = 1 + channel = setup_params_general8['rf']['5G']['channel'] + + result = lf_test.country_code_channel_division(ssid=ssid, security=security, passkey=security_key, mode=mode, + band=band, station_name=station_names_fiveg, vlan_id=vlan, + channel=channel,country=826) + if result: + assert True + else: + assert False + + +setup_params_general9 = { + "mode": "BRIDGE", + "ssid_modes": { + "wpa2_personal": [{"ssid_name": "ssid_wpa2_2g", "appliedRadios": ["2G"], "security_key": "something"}, + {"ssid_name": "ssid_wpa2_5g", "appliedRadios": ["5G"], "security_key": "something"} + ]}, + "rf": { + "5G": + {'band': '5G', + 'country': 'GB', + 'channel-mode': 'VHT', + 'channel-width': 40, + "channel": 132}, + "2G": + {'band': '2G', + 'country': 'GB', + "channel-mode": "VHT", + 'channel-width': 40, + "channel": 1} + }, + "radius": False +} + +@allure.feature("BRIDGE MODE CLIENT CONNECTIVITY") +@pytest.mark.parametrize( + 'setup_profiles', + [setup_params_general9], + indirect=True, + scope="class" +) +@pytest.mark.usefixtures("setup_profiles") +class TestCountryGB40Mhz5GChannel132(object): + """Country code along with Channel and Channel-width Test Bridge mode + pytest -m "country_code and Bridge" + """ + @allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-2546", name="WIFI-6938") + @pytest.mark.wpa2_personal + @pytest.mark.fourtyMhz + @pytest.mark.fiveg + @pytest.mark.channel132 + def test_client_bridge_wpa2_chn132_40Mhz_GB_5g(self, lf_test, station_names_fiveg, get_configuration): + """Country code Bridge Mode + pytest -m "country_code and fourtyMhz and wpa2 and fiveg and channel132" + """ + profile_data = setup_params_general9["ssid_modes"]["wpa2_personal"][1] + ssid = profile_data["ssid_name"] + security_key = profile_data["security_key"] + security = "wpa2" + mode = "BRIDGE" + band = "fiveg" + vlan = 1 + channel = setup_params_general9['rf']['5G']['channel'] + + result = lf_test.country_code_channel_division(ssid=ssid, security=security, passkey=security_key, mode=mode, + band=band, station_name=station_names_fiveg, vlan_id=vlan, + channel=channel,country=826) + if result: + assert True + else: + assert False + + +setup_params_general10 = { + "mode": "BRIDGE", + "ssid_modes": { + "wpa2_personal": [{"ssid_name": "ssid_wpa2_2g", "appliedRadios": ["2G"], "security_key": "something"}, + {"ssid_name": "ssid_wpa2_5g", "appliedRadios": ["5G"], "security_key": "something"} + ]}, + "rf": { + "5G": + {'band': '5G', + 'country': 'GB', + 'channel-mode': 'VHT', + 'channel-width': 40, + "channel": 140}, + "2G": + {'band': '2G', + 'country': 'GB', + "channel-mode": "VHT", + 'channel-width': 40, + "channel": 1} + }, + "radius": False +} + +@allure.feature("BRIDGE MODE CLIENT CONNECTIVITY") +@pytest.mark.parametrize( + 'setup_profiles', + [setup_params_general10], + indirect=True, + scope="class" +) +@pytest.mark.usefixtures("setup_profiles") +class TestCountryGB40Mhz5GChannel140(object): + """Country code along with Channel and Channel-width Test Bridge mode + pytest -m "country_code and Bridge" + """ + @allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-2546", name="WIFI-6938") + @pytest.mark.wpa2_personal + @pytest.mark.fourtyMhz + @pytest.mark.fiveg + @pytest.mark.channel140 + def test_client_bridge_wpa2_chn140_40Mhz_GB_5g(self, lf_test, station_names_fiveg, get_configuration): + """Country code Bridge Mode + pytest -m "country_code and fourtyMhz and wpa2 and fiveg and channel140" + """ + profile_data = setup_params_general10["ssid_modes"]["wpa2_personal"][1] + ssid = profile_data["ssid_name"] + security_key = profile_data["security_key"] + security = "wpa2" + mode = "BRIDGE" + band = "fiveg" + vlan = 1 + channel = setup_params_general10['rf']['5G']['channel'] + + result = lf_test.country_code_channel_division(ssid=ssid, security=security, passkey=security_key, mode=mode, + band=band, station_name=station_names_fiveg, vlan_id=vlan, + channel=channel,country=826) + if result: + assert True + else: + assert False + + +setup_params_general11 = { + "mode": "BRIDGE", + "ssid_modes": { + "wpa2_personal": [{"ssid_name": "ssid_wpa2_2g", "appliedRadios": ["2G"], "security_key": "something"}, + {"ssid_name": "ssid_wpa2_5g", "appliedRadios": ["5G"], "security_key": "something"} + ]}, + "rf": { + "5G": + {'band': '5G', + 'country': 'GB', + 'channel-mode': 'VHT', + 'channel-width': 40, + "channel": 149}, + "2G": + {'band': '2G', + 'country': 'GB', + "channel-mode": "VHT", + 'channel-width': 40, + "channel": 1} + }, + "radius": False +} + +@allure.feature("BRIDGE MODE CLIENT CONNECTIVITY") +@pytest.mark.parametrize( + 'setup_profiles', + [setup_params_general11], + indirect=True, + scope="class" +) +@pytest.mark.usefixtures("setup_profiles") +class TestCountryGB40Mhz5GChannel149(object): + """Country code along with Channel and Channel-width Test Bridge mode + pytest -m "country_code and Bridge" + """ + @allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-2546", name="WIFI-6938") + @pytest.mark.wpa2_personal + @pytest.mark.fourtyMhz + @pytest.mark.fiveg + @pytest.mark.channel149 + def test_client_bridge_wpa2_chn149_40Mhz_GB_5g(self, lf_test, station_names_fiveg, get_configuration): + """Country code Bridge Mode + pytest -m "country_code and fourtyMhz and wpa2 and fiveg and channel149" + """ + profile_data = setup_params_general11["ssid_modes"]["wpa2_personal"][1] + ssid = profile_data["ssid_name"] + security_key = profile_data["security_key"] + security = "wpa2" + mode = "BRIDGE" + band = "fiveg" + vlan = 1 + channel = setup_params_general11['rf']['5G']['channel'] + + result = lf_test.country_code_channel_division(ssid=ssid, security=security, passkey=security_key, mode=mode, + band=band, station_name=station_names_fiveg, vlan_id=vlan, + channel=channel,country=826) + if result: + assert True + else: + assert False + + +setup_params_general12 = { + "mode": "BRIDGE", + "ssid_modes": { + "wpa2_personal": [{"ssid_name": "ssid_wpa2_2g", "appliedRadios": ["2G"], "security_key": "something"}, + {"ssid_name": "ssid_wpa2_5g", "appliedRadios": ["5G"], "security_key": "something"} + ]}, + "rf": { + "5G": + {'band': '5G', + 'country': 'GB', + 'channel-mode': 'VHT', + 'channel-width': 40, + "channel": 157}, + "2G": + {'band': '2G', + 'country': 'GB', + "channel-mode": "VHT", + 'channel-width': 40, + "channel": 1} + }, + "radius": False +} + +@allure.feature("BRIDGE MODE CLIENT CONNECTIVITY") +@pytest.mark.parametrize( + 'setup_profiles', + [setup_params_general12], + indirect=True, + scope="class" +) +@pytest.mark.usefixtures("setup_profiles") +class TestCountryGB40Mhz5GChannel157(object): + """Country code along with Channel and Channel-width Test Bridge mode + pytest -m "country_code and Bridge" + """ + @allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-2546", name="WIFI-6938") + @pytest.mark.wpa2_personal + @pytest.mark.fourtyMhz + @pytest.mark.fiveg + @pytest.mark.channel157 + def test_client_bridge_wpa2_chn157_40Mhz_GB_5g(self, lf_test, station_names_fiveg, get_configuration): + """Country code Bridge Mode + pytest -m "country_code and fourtyMhz and wpa2 and fiveg and channel157" + """ + profile_data = setup_params_general12["ssid_modes"]["wpa2_personal"][1] + ssid = profile_data["ssid_name"] + security_key = profile_data["security_key"] + security = "wpa2" + mode = "BRIDGE" + band = "fiveg" + vlan = 1 + channel = setup_params_general12['rf']['5G']['channel'] + + result = lf_test.country_code_channel_division(ssid=ssid, security=security, passkey=security_key, mode=mode, + band=band, station_name=station_names_fiveg, vlan_id=vlan, + channel=channel,country=826) + if result: + assert True + else: + assert False diff --git a/tests/e2e/basic/validation_of_operating_modes/country_code_channel_division/country_code_GB/channel_width_40Mhz/twog_band/__init__.py b/tests/e2e/basic/validation_of_operating_modes/country_code_channel_division/country_code_GB/channel_width_40Mhz/twog_band/__init__.py new file mode 100644 index 000000000..e69de29bb diff --git a/tests/e2e/basic/validation_of_operating_modes/country_code_channel_division/country_code_GB/channel_width_40Mhz/twog_band/test_GB_40Mhz_2g.py b/tests/e2e/basic/validation_of_operating_modes/country_code_channel_division/country_code_GB/channel_width_40Mhz/twog_band/test_GB_40Mhz_2g.py new file mode 100644 index 000000000..1949e4f78 --- /dev/null +++ b/tests/e2e/basic/validation_of_operating_modes/country_code_channel_division/country_code_GB/channel_width_40Mhz/twog_band/test_GB_40Mhz_2g.py @@ -0,0 +1,821 @@ +""" + + Performance Test: Country code along with Channel and Channel-width Test: Bridge Mode + pytest -m "country_code and Bridge" + +""" + + +import os +import pytest +import allure + +pytestmark = [pytest.mark.country_code, pytest.mark.Bridge, pytest.mark.wpa2, pytest.mark.GB] + +setup_params_general1 = { + "mode": "BRIDGE", + "ssid_modes": { + "wpa2_personal": [{"ssid_name": "ssid_wpa2_2g", "appliedRadios": ["2G"], "security_key": "something"}, + {"ssid_name": "ssid_wpa2_5g", "appliedRadios": ["5G"], "security_key": "something"} + ]}, + "rf": { + "5G": + {'band': '5G', + 'country': 'GB', + "channel-mode": "VHT", + 'channel-width': 40, + "channel": 36}, + "2G": + {'band': '2G', + 'country': 'GB', + "channel-mode": "VHT", + 'channel-width': 40, + "channel": 1} + }, + "radius": False +} + + +@allure.feature("BRIDGE MODE CLIENT CONNECTIVITY") +@pytest.mark.parametrize( + 'setup_profiles', + [setup_params_general1], + indirect=True, + scope="class" +) +@pytest.mark.usefixtures("setup_profiles") +class TestCountryGB40Mhz2GChannel1(object): + """Country code along with Channel and Channel-width Test Bridge mode + pytest -m "country_code and Bridge" + """ + @allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-2546", name="WIFI-6938") + @pytest.mark.wpa2_personal + @pytest.mark.fourtyMhz + @pytest.mark.twog + @pytest.mark.channel1 + def test_client_bridge_wpa2_chn1_40Mhz_GB_2g(self, lf_test, station_names_twog, get_configuration): + """Country code Bridge Mode + pytest -m "country_code and fourtyMhz and wpa2 and twog and channel1" + """ + profile_data = setup_params_general1["ssid_modes"]["wpa2_personal"][0] + ssid = profile_data["ssid_name"] + security_key = profile_data["security_key"] + security = "wpa2" + mode = "BRIDGE" + band = "twog" + vlan = 1 + channel = setup_params_general1['rf']['2G']['channel'] + + result = lf_test.country_code_channel_division(ssid=ssid, security=security, passkey=security_key, mode=mode, + band=band, station_name=station_names_twog, vlan_id=vlan, + channel=channel,country=826) + if result: + assert True + else: + assert False + + +setup_params_general2 = { + "mode": "BRIDGE", + "ssid_modes": { + "wpa2_personal": [{"ssid_name": "ssid_wpa2_2g", "appliedRadios": ["2G"], "security_key": "something"}, + {"ssid_name": "ssid_wpa2_5g", "appliedRadios": ["5G"], "security_key": "something"} + ]}, + "rf": { + "5G": + {'band': '5G', + 'country': 'GB', + "channel-mode": "VHT", + 'channel-width': 40, + "channel": 36}, + "2G": + {'band': '2G', + 'country': 'GB', + 'channel-mode': 'VHT', + 'channel-width': 40, + "channel": 2} + }, + "radius": False +} + + +@allure.feature("BRIDGE MODE CLIENT CONNECTIVITY") +@pytest.mark.parametrize( + 'setup_profiles', + [setup_params_general2], + indirect=True, + scope="class" +) +@pytest.mark.usefixtures("setup_profiles") +class TestCountryGB40Mhz2GChannel2(object): + """Country code along with Channel and Channel-width Test Bridge mode + pytest -m "country_code and Bridge" + """ + @allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-2546", name="WIFI-6938") + @pytest.mark.wpa2_personal + @pytest.mark.fourtyMhz + @pytest.mark.twog + @pytest.mark.channel2 + def test_client_bridge_wpa2_chn2_40Mhz_GB_2g(self, lf_test, station_names_twog, get_configuration): + """Country code Bridge Mode + pytest -m "country_code and fourtyMhz and wpa2 and twog and channel2" + """ + profile_data = setup_params_general2["ssid_modes"]["wpa2_personal"][0] + ssid = profile_data["ssid_name"] + security_key = profile_data["security_key"] + security = "wpa2" + mode = "BRIDGE" + band = "twog" + vlan = 1 + channel = setup_params_general2['rf']['2G']['channel'] + + result = lf_test.country_code_channel_division(ssid=ssid, security=security, passkey=security_key, mode=mode, + band=band, station_name=station_names_twog, vlan_id=vlan, + channel=channel,country=826) + if result: + assert True + else: + assert False + + +setup_params_general3 = { + "mode": "BRIDGE", + "ssid_modes": { + "wpa2_personal": [{"ssid_name": "ssid_wpa2_2g", "appliedRadios": ["2G"], "security_key": "something"}, + {"ssid_name": "ssid_wpa2_5g", "appliedRadios": ["5G"], "security_key": "something"} + ]}, + "rf": { + "5G": + {'band': '5G', + 'country': 'GB', + "channel-mode": "VHT", + 'channel-width': 40, + "channel": 36}, + "2G": + {'band': '2G', + 'country': 'GB', + 'channel-mode': 'VHT', + 'channel-width': 40, + "channel": 3} + }, + "radius": False +} + + +@allure.feature("BRIDGE MODE CLIENT CONNECTIVITY") +@pytest.mark.parametrize( + 'setup_profiles', + [setup_params_general3], + indirect=True, + scope="class" +) +@pytest.mark.usefixtures("setup_profiles") +class TestCountryGB40Mhz2GChannel3(object): + """Country code along with Channel and Channel-width Test Bridge mode + pytest -m "country_code and Bridge" + """ + @allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-2546", name="WIFI-6938") + @pytest.mark.wpa2_personal + @pytest.mark.fourtyMhz + @pytest.mark.twog + @pytest.mark.channel3 + def test_client_bridge_wpa2_chn3_40Mhz_GB_2g(self, lf_test, station_names_twog, get_configuration): + """Country code Bridge Mode + pytest -m "country_code and fourtyMhz and wpa2 and twog and channel3" + """ + profile_data = setup_params_general3["ssid_modes"]["wpa2_personal"][0] + ssid = profile_data["ssid_name"] + security_key = profile_data["security_key"] + security = "wpa2" + mode = "BRIDGE" + band = "twog" + vlan = 1 + channel = setup_params_general3['rf']['2G']['channel'] + + result = lf_test.country_code_channel_division(ssid=ssid, security=security, passkey=security_key, mode=mode, + band=band, station_name=station_names_twog, vlan_id=vlan, + channel=channel,country=826) + if result: + assert True + else: + assert False + + +setup_params_general4 = { + "mode": "BRIDGE", + "ssid_modes": { + "wpa2_personal": [{"ssid_name": "ssid_wpa2_2g", "appliedRadios": ["2G"], "security_key": "something"}, + {"ssid_name": "ssid_wpa2_5g", "appliedRadios": ["5G"], "security_key": "something"} + ]}, + "rf": { + "5G": + {'band': '5G', + 'country': 'GB', + "channel-mode": "VHT", + 'channel-width': 40, + "channel": 36}, + "2G": + {'band': '2G', + 'country': 'GB', + 'channel-mode': 'VHT', + 'channel-width': 40, + "channel": 4} + }, + "radius": False +} + +@allure.feature("BRIDGE MODE CLIENT CONNECTIVITY") +@pytest.mark.parametrize( + 'setup_profiles', + [setup_params_general4], + indirect=True, + scope="class" +) +@pytest.mark.usefixtures("setup_profiles") +class TestCountryGB40Mhz2GChannel4(object): + """Country code along with Channel and Channel-width Test Bridge mode + pytest -m "country_code and Bridge" + """ + @allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-2546", name="WIFI-6938") + @pytest.mark.wpa2_personal + @pytest.mark.fourtyMhz + @pytest.mark.twog + @pytest.mark.channel4 + def test_client_bridge_wpa2_chn4_40Mhz_GB_2g(self, lf_test, station_names_twog, get_configuration): + """Country code Bridge Mode + pytest -m "country_code and fourtyMhz and wpa2 and twog and channel4" + """ + profile_data = setup_params_general4["ssid_modes"]["wpa2_personal"][0] + ssid = profile_data["ssid_name"] + security_key = profile_data["security_key"] + security = "wpa2" + mode = "BRIDGE" + band = "twog" + vlan = 1 + channel = setup_params_general4['rf']['2G']['channel'] + + result = lf_test.country_code_channel_division(ssid=ssid, security=security, passkey=security_key, mode=mode, + band=band, station_name=station_names_twog, vlan_id=vlan, + channel=channel,country=826) + if result: + assert True + else: + assert False + + +setup_params_general5 = { + "mode": "BRIDGE", + "ssid_modes": { + "wpa2_personal": [{"ssid_name": "ssid_wpa2_2g", "appliedRadios": ["2G"], "security_key": "something"}, + {"ssid_name": "ssid_wpa2_5g", "appliedRadios": ["5G"], "security_key": "something"} + ]}, + "rf": { + "5G": + {'band': '5G', + 'country': 'GB', + "channel-mode": "VHT", + 'channel-width': 40, + "channel": 36}, + "2G": + {'band': '2G', + 'country': 'GB', + 'channel-mode': 'VHT', + 'channel-width': 40, + "channel": 5} + }, + "radius": False +} + +@allure.feature("BRIDGE MODE CLIENT CONNECTIVITY") +@pytest.mark.parametrize( + 'setup_profiles', + [setup_params_general5], + indirect=True, + scope="class" +) +@pytest.mark.usefixtures("setup_profiles") +class TestCountryGB40Mhz2GChannel5(object): + """Country code along with Channel and Channel-width Test Bridge mode + pytest -m "country_code and Bridge" + """ + @allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-2546", name="WIFI-6938") + @pytest.mark.wpa2_personal + @pytest.mark.fourtyMhz + @pytest.mark.twog + @pytest.mark.channel5 + def test_client_bridge_wpa2_chn5_40Mhz_GB_2g(self, lf_test, station_names_twog, get_configuration): + """Country code Bridge Mode + pytest -m "country_code and fourtyMhz and wpa2 and twog and channel5" + """ + profile_data = setup_params_general5["ssid_modes"]["wpa2_personal"][0] + ssid = profile_data["ssid_name"] + security_key = profile_data["security_key"] + security = "wpa2" + mode = "BRIDGE" + band = "twog" + vlan = 1 + channel = setup_params_general5['rf']['2G']['channel'] + + result = lf_test.country_code_channel_division(ssid=ssid, security=security, passkey=security_key, mode=mode, + band=band, station_name=station_names_twog, vlan_id=vlan, + channel=channel,country=826) + if result: + assert True + else: + assert False + + +setup_params_general6 = { + "mode": "BRIDGE", + "ssid_modes": { + "wpa2_personal": [{"ssid_name": "ssid_wpa2_2g", "appliedRadios": ["2G"], "security_key": "something"}, + {"ssid_name": "ssid_wpa2_5g", "appliedRadios": ["5G"], "security_key": "something"} + ]}, + "rf": { + "5G": + {'band': '5G', + 'country': 'GB', + "channel-mode": "VHT", + 'channel-width': 40, + "channel": 36}, + "2G": + {'band': '2G', + 'country': 'GB', + 'channel-mode': 'VHT', + 'channel-width': 40, + "channel": 6} + }, + "radius": False +} + +@allure.feature("BRIDGE MODE CLIENT CONNECTIVITY") +@pytest.mark.parametrize( + 'setup_profiles', + [setup_params_general6], + indirect=True, + scope="class" +) +@pytest.mark.usefixtures("setup_profiles") +class TestCountryGB40Mhz2GChannel6(object): + """Country code along with Channel and Channel-width Test Bridge mode + pytest -m "country_code and Bridge" + """ + @allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-2546", name="WIFI-6938") + @pytest.mark.wpa2_personal + @pytest.mark.fourtyMhz + @pytest.mark.twog + @pytest.mark.channel6 + def test_client_bridge_wpa2_chn6_40Mhz_GB_2g(self, lf_test, station_names_twog, get_configuration): + """Country code Bridge Mode + pytest -m "country_code and fourtyMhz and wpa2 and twog and channel6" + """ + profile_data = setup_params_general6["ssid_modes"]["wpa2_personal"][0] + ssid = profile_data["ssid_name"] + security_key = profile_data["security_key"] + security = "wpa2" + mode = "BRIDGE" + band = "twog" + vlan = 1 + channel = setup_params_general6['rf']['2G']['channel'] + + result = lf_test.country_code_channel_division(ssid=ssid, security=security, passkey=security_key, mode=mode, + band=band, station_name=station_names_twog, vlan_id=vlan, + channel=channel,country=826) + if result: + assert True + else: + assert False + + +setup_params_general7 = { + "mode": "BRIDGE", + "ssid_modes": { + "wpa2_personal": [{"ssid_name": "ssid_wpa2_2g", "appliedRadios": ["2G"], "security_key": "something"}, + {"ssid_name": "ssid_wpa2_5g", "appliedRadios": ["5G"], "security_key": "something"} + ]}, + "rf": { + "5G": + {'band': '5G', + 'country': 'GB', + "channel-mode": "VHT", + 'channel-width': 40, + "channel": 36}, + "2G": + {'band': '2G', + 'country': 'GB', + 'channel-mode': 'VHT', + 'channel-width': 40, + "channel": 7} + }, + "radius": False +} + +@allure.feature("BRIDGE MODE CLIENT CONNECTIVITY") +@pytest.mark.parametrize( + 'setup_profiles', + [setup_params_general7], + indirect=True, + scope="class" +) +@pytest.mark.usefixtures("setup_profiles") +class TestCountryGB40Mhz2GChannel7(object): + """Country code along with Channel and Channel-width Test Bridge mode + pytest -m "country_code and Bridge" + """ + @allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-2546", name="WIFI-6938") + @pytest.mark.wpa2_personal + @pytest.mark.fourtyMhz + @pytest.mark.twog + @pytest.mark.channel7 + def test_client_bridge_wpa2_chn7_40Mhz_GB_2g(self, lf_test, station_names_twog, get_configuration): + """Country code Bridge Mode + pytest -m "country_code and fourtyMhz and wpa2 and twog and channel7" + """ + profile_data = setup_params_general7["ssid_modes"]["wpa2_personal"][0] + ssid = profile_data["ssid_name"] + security_key = profile_data["security_key"] + security = "wpa2" + mode = "BRIDGE" + band = "twog" + vlan = 1 + channel = setup_params_general7['rf']['2G']['channel'] + + result = lf_test.country_code_channel_division(ssid=ssid, security=security, passkey=security_key, mode=mode, + band=band, station_name=station_names_twog, vlan_id=vlan, + channel=channel,country=826) + if result: + assert True + else: + assert False + + +setup_params_general8 = { + "mode": "BRIDGE", + "ssid_modes": { + "wpa2_personal": [{"ssid_name": "ssid_wpa2_2g", "appliedRadios": ["2G"], "security_key": "something"}, + {"ssid_name": "ssid_wpa2_5g", "appliedRadios": ["5G"], "security_key": "something"} + ]}, + "rf": { + "5G": + {'band': '5G', + 'country': 'GB', + "channel-mode": "VHT", + 'channel-width': 40, + "channel": 36}, + "2G": + {'band': '2G', + 'country': 'GB', + 'channel-mode': 'VHT', + 'channel-width': 40, + "channel": 8} + }, + "radius": False +} + +@allure.feature("BRIDGE MODE CLIENT CONNECTIVITY") +@pytest.mark.parametrize( + 'setup_profiles', + [setup_params_general8], + indirect=True, + scope="class" +) +@pytest.mark.usefixtures("setup_profiles") +class TestCountryGB40Mhz2GChannel8(object): + """Country code along with Channel and Channel-width Test Bridge mode + pytest -m "country_code and Bridge" + """ + @allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-2546", name="WIFI-6938") + @pytest.mark.wpa2_personal + @pytest.mark.fourtyMhz + @pytest.mark.twog + @pytest.mark.channel8 + def test_client_bridge_wpa2_chn8_40Mhz_GB_2g(self, lf_test, station_names_twog, get_configuration): + """Country code Bridge Mode + pytest -m "country_code and fourtyMhz and wpa2 and twog and channel8" + """ + profile_data = setup_params_general8["ssid_modes"]["wpa2_personal"][0] + ssid = profile_data["ssid_name"] + security_key = profile_data["security_key"] + security = "wpa2" + mode = "BRIDGE" + band = "twog" + vlan = 1 + channel = setup_params_general8['rf']['2G']['channel'] + + result = lf_test.country_code_channel_division(ssid=ssid, security=security, passkey=security_key, mode=mode, + band=band, station_name=station_names_twog, vlan_id=vlan, + channel=channel,country=826) + if result: + assert True + else: + assert False + + +setup_params_general9 = { + "mode": "BRIDGE", + "ssid_modes": { + "wpa2_personal": [{"ssid_name": "ssid_wpa2_2g", "appliedRadios": ["2G"], "security_key": "something"}, + {"ssid_name": "ssid_wpa2_5g", "appliedRadios": ["5G"], "security_key": "something"} + ]}, + "rf": { + "5G": + {'band': '5G', + 'country': 'GB', + "channel-mode": "VHT", + 'channel-width': 40, + "channel": 36}, + "2G": + {'band': '2G', + 'country': 'GB', + 'channel-mode': 'VHT', + 'channel-width': 40, + "channel": 9} + }, + "radius": False +} + +@allure.feature("BRIDGE MODE CLIENT CONNECTIVITY") +@pytest.mark.parametrize( + 'setup_profiles', + [setup_params_general9], + indirect=True, + scope="class" +) +@pytest.mark.usefixtures("setup_profiles") +class TestCountryGB40Mhz2GChannel9(object): + """Country code along with Channel and Channel-width Test Bridge mode + pytest -m "country_code and Bridge" + """ + @allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-2546", name="WIFI-6938") + @pytest.mark.wpa2_personal + @pytest.mark.fourtyMhz + @pytest.mark.twog + @pytest.mark.channel9 + def test_client_bridge_wpa2_chn9_40Mhz_GB_2g(self, lf_test, station_names_twog, get_configuration): + """Country code Bridge Mode + pytest -m "country_code and fourtyMhz and wpa2 and twog and channel9" + """ + profile_data = setup_params_general9["ssid_modes"]["wpa2_personal"][0] + ssid = profile_data["ssid_name"] + security_key = profile_data["security_key"] + security = "wpa2" + mode = "BRIDGE" + band = "twog" + vlan = 1 + channel = setup_params_general9['rf']['2G']['channel'] + + result = lf_test.country_code_channel_division(ssid=ssid, security=security, passkey=security_key, mode=mode, + band=band, station_name=station_names_twog, vlan_id=vlan, + channel=channel,country=826) + if result: + assert True + else: + assert False + + +setup_params_general10 = { + "mode": "BRIDGE", + "ssid_modes": { + "wpa2_personal": [{"ssid_name": "ssid_wpa2_2g", "appliedRadios": ["2G"], "security_key": "something"}, + {"ssid_name": "ssid_wpa2_5g", "appliedRadios": ["5G"], "security_key": "something"} + ]}, + "rf": { + "5G": + {'band': '5G', + 'country': 'GB', + "channel-mode": "VHT", + 'channel-width': 40, + "channel": 36}, + "2G": + {'band': '2G', + 'country': 'GB', + 'channel-mode': 'VHT', + 'channel-width': 40, + "channel": 10} + }, + "radius": False +} + +@allure.feature("BRIDGE MODE CLIENT CONNECTIVITY") +@pytest.mark.parametrize( + 'setup_profiles', + [setup_params_general10], + indirect=True, + scope="class" +) +@pytest.mark.usefixtures("setup_profiles") +class TestCountryGB40Mhz2GChannel10(object): + """Country code along with Channel and Channel-width Test Bridge mode + pytest -m "country_code and Bridge" + """ + @allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-2546", name="WIFI-6938") + @pytest.mark.wpa2_personal + @pytest.mark.fourtyMhz + @pytest.mark.twog + @pytest.mark.channel10 + def test_client_bridge_wpa2_chn10_40Mhz_GB_2g(self, lf_test, station_names_twog, get_configuration): + """Country code Bridge Mode + pytest -m "country_code and fourtyMhz and wpa2 and twog and channel10" + """ + profile_data = setup_params_general10["ssid_modes"]["wpa2_personal"][0] + ssid = profile_data["ssid_name"] + security_key = profile_data["security_key"] + security = "wpa2" + mode = "BRIDGE" + band = "twog" + vlan = 1 + channel = setup_params_general10['rf']['2G']['channel'] + + result = lf_test.country_code_channel_division(ssid=ssid, security=security, passkey=security_key, mode=mode, + band=band, station_name=station_names_twog, vlan_id=vlan, + channel=channel,country=826) + if result: + assert True + else: + assert False + + +setup_params_general11 = { + "mode": "BRIDGE", + "ssid_modes": { + "wpa2_personal": [{"ssid_name": "ssid_wpa2_2g", "appliedRadios": ["2G"], "security_key": "something"}, + {"ssid_name": "ssid_wpa2_5g", "appliedRadios": ["5G"], "security_key": "something"} + ]}, + "rf": { + "5G": + {'band': '5G', + 'country': 'GB', + "channel-mode": "VHT", + 'channel-width': 40, + "channel": 36}, + "2G": + {'band': '2G', + 'country': 'GB', + 'channel-mode': 'VHT', + 'channel-width': 40, + "channel": 11} + }, + "radius": False +} + +@allure.feature("BRIDGE MODE CLIENT CONNECTIVITY") +@pytest.mark.parametrize( + 'setup_profiles', + [setup_params_general11], + indirect=True, + scope="class" +) +@pytest.mark.usefixtures("setup_profiles") +class TestCountryGB40Mhz2GChannel11(object): + """Country code along with Channel and Channel-width Test Bridge mode + pytest -m "country_code and Bridge" + """ + @allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-2546", name="WIFI-6938") + @pytest.mark.wpa2_personal + @pytest.mark.fourtyMhz + @pytest.mark.twog + @pytest.mark.channel11 + def test_client_bridge_wpa2_chn11_40Mhz_GB_2g(self, lf_test, station_names_twog, get_configuration): + """Country code Bridge Mode + pytest -m "country_code and fourtyMhz and wpa2 and twog and channel11" + """ + profile_data = setup_params_general11["ssid_modes"]["wpa2_personal"][0] + ssid = profile_data["ssid_name"] + security_key = profile_data["security_key"] + security = "wpa2" + mode = "BRIDGE" + band = "twog" + vlan = 1 + channel = setup_params_general11['rf']['2G']['channel'] + + result = lf_test.country_code_channel_division(ssid=ssid, security=security, passkey=security_key, mode=mode, + band=band, station_name=station_names_twog, vlan_id=vlan, + channel=channel,country=826) + if result: + assert True + else: + assert False + + +setup_params_general12 = { + "mode": "BRIDGE", + "ssid_modes": { + "wpa2_personal": [{"ssid_name": "ssid_wpa2_2g", "appliedRadios": ["2G"], "security_key": "something"}, + {"ssid_name": "ssid_wpa2_5g", "appliedRadios": ["5G"], "security_key": "something"} + ]}, + "rf": { + "5G": + {'band': '5G', + 'country': 'GB', + "channel-mode": "VHT", + 'channel-width': 40, + "channel": 36}, + "2G": + {'band': '2G', + 'country': 'GB', + 'channel-mode': 'VHT', + 'channel-width': 40, + "channel": 12} + }, + "radius": False +} + +@allure.feature("BRIDGE MODE CLIENT CONNECTIVITY") +@pytest.mark.parametrize( + 'setup_profiles', + [setup_params_general12], + indirect=True, + scope="class" +) +@pytest.mark.usefixtures("setup_profiles") +class TestCountryGB40Mhz2GChannel12(object): + """Country code along with Channel and Channel-width Test Bridge mode + pytest -m "country_code and Bridge" + """ + @allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-2546", name="WIFI-6938") + @pytest.mark.wpa2_personal + @pytest.mark.fourtyMhz + @pytest.mark.twog + @pytest.mark.channel12 + def test_client_bridge_wpa2_chn12_40Mhz_GB_2g(self, lf_test, station_names_twog, get_configuration): + """Country code Bridge Mode + pytest -m "country_code and fourtyMhz and wpa2 and twog and channel12" + """ + profile_data = setup_params_general12["ssid_modes"]["wpa2_personal"][0] + ssid = profile_data["ssid_name"] + security_key = profile_data["security_key"] + security = "wpa2" + mode = "BRIDGE" + band = "twog" + vlan = 1 + channel = setup_params_general12['rf']['2G']['channel'] + + result = lf_test.country_code_channel_division(ssid=ssid, security=security, passkey=security_key, mode=mode, + band=band, station_name=station_names_twog, vlan_id=vlan, + channel=channel,country=826) + if result: + assert True + else: + assert False + + +setup_params_general13 = { + "mode": "BRIDGE", + "ssid_modes": { + "wpa2_personal": [{"ssid_name": "ssid_wpa2_2g", "appliedRadios": ["2G"], "security_key": "something"}, + {"ssid_name": "ssid_wpa2_5g", "appliedRadios": ["5G"], "security_key": "something"} + ]}, + "rf": { + "5G": + {'band': '5G', + 'country': 'GB', + "channel-mode": "VHT", + 'channel-width': 40, + "channel": 36}, + "2G": + {'band': '2G', + 'country': 'GB', + 'channel-mode': 'VHT', + 'channel-width': 40, + "channel": 13} + }, + "radius": False +} + +@allure.feature("BRIDGE MODE CLIENT CONNECTIVITY") +@pytest.mark.parametrize( + 'setup_profiles', + [setup_params_general13], + indirect=True, + scope="class" +) +@pytest.mark.usefixtures("setup_profiles") +class TestCountryGB40Mhz2GChannel13(object): + """Country code along with Channel and Channel-width Test Bridge mode + pytest -m "country_code and Bridge" + """ + @allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-2546", name="WIFI-6938") + @pytest.mark.wpa2_personal + @pytest.mark.fourtyMhz + @pytest.mark.twog + @pytest.mark.channel13 + def test_client_bridge_wpa2_chn13_40Mhz_GB_2g(self, lf_test, station_names_twog, get_configuration): + """Country code Bridge Mode + pytest -m "country_code and fourtyMhz and wpa2 and twog and channel13" + """ + profile_data = setup_params_general13["ssid_modes"]["wpa2_personal"][0] + ssid = profile_data["ssid_name"] + security_key = profile_data["security_key"] + security = "wpa2" + mode = "BRIDGE" + band = "twog" + vlan = 1 + channel = setup_params_general13['rf']['2G']['channel'] + + result = lf_test.country_code_channel_division(ssid=ssid, security=security, passkey=security_key, mode=mode, + band=band, station_name=station_names_twog, vlan_id=vlan, + channel=channel,country=826) + if result: + assert True + else: + assert False diff --git a/tests/e2e/basic/validation_of_operating_modes/country_code_channel_division/country_code_GB/channel_width_80Mhz/__init__.py b/tests/e2e/basic/validation_of_operating_modes/country_code_channel_division/country_code_GB/channel_width_80Mhz/__init__.py new file mode 100644 index 000000000..e69de29bb diff --git a/tests/e2e/basic/validation_of_operating_modes/country_code_channel_division/country_code_GB/channel_width_80Mhz/fiveg_band/__init__.py b/tests/e2e/basic/validation_of_operating_modes/country_code_channel_division/country_code_GB/channel_width_80Mhz/fiveg_band/__init__.py new file mode 100644 index 000000000..e69de29bb diff --git a/tests/e2e/basic/validation_of_operating_modes/country_code_channel_division/country_code_GB/channel_width_80Mhz/fiveg_band/test_GB_80Mhz_5g.py b/tests/e2e/basic/validation_of_operating_modes/country_code_channel_division/country_code_GB/channel_width_80Mhz/fiveg_band/test_GB_80Mhz_5g.py new file mode 100644 index 000000000..9025787f8 --- /dev/null +++ b/tests/e2e/basic/validation_of_operating_modes/country_code_channel_division/country_code_GB/channel_width_80Mhz/fiveg_band/test_GB_80Mhz_5g.py @@ -0,0 +1,382 @@ +""" + + Performance Test: Country code along with Channel and Channel-width Test: Bridge Mode + pytest -m "country_code and Bridge" + +""" + + +import os +import pytest +import allure + +pytestmark = [pytest.mark.country_code, pytest.mark.Bridge, pytest.mark.wpa2, pytest.mark.GB] + +setup_params_general1 = { + "mode": "BRIDGE", + "ssid_modes": { + "wpa2_personal": [{"ssid_name": "ssid_wpa2_2g", "appliedRadios": ["2G"], "security_key": "something"}, + {"ssid_name": "ssid_wpa2_5g", "appliedRadios": ["5G"], "security_key": "something"} + ]}, + "rf": {"5G": + {'band': '5G', + 'country': 'GB', + "channel-mode": "VHT", + 'channel-width': 80, + "channel": 36}, + "2G": + {'band': '2G', + 'country': 'GB', + "channel-mode": "VHT", + 'channel-width': 20, + "channel": 1} + }, + "radius": False +} + +@allure.feature("BRIDGE MODE CLIENT CONNECTIVITY") +@pytest.mark.parametrize( + 'setup_profiles', + [setup_params_general1], + indirect=True, + scope="class" +) +@pytest.mark.usefixtures("setup_profiles") +class TestCountryGB80Mhz5GChannel36(object): + """Country code along with Channel and Channel-width Test Bridge mode + pytest -m "country_code and Bridge" + """ + @allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-2546", name="WIFI-6938") + @pytest.mark.wpa2_personal + @pytest.mark.eightyMhz + @pytest.mark.fiveg + @pytest.mark.channel36 + def test_client_bridge_wpa2_chn36_80Mhz_GB_5g(self, lf_test, station_names_fiveg, get_configuration): + """Country code Bridge Mode + pytest -m "country_code and eightyMhz and wpa2 and fiveg and channel36" + """ + profile_data = setup_params_general1["ssid_modes"]["wpa2_personal"][1] + ssid = profile_data["ssid_name"] + security_key = profile_data["security_key"] + security = "wpa2" + mode = "BRIDGE" + band = "fiveg" + vlan = 1 + channel = setup_params_general1['rf']['5G']['channel'] + + result = lf_test.country_code_channel_division(ssid=ssid, security=security, passkey=security_key, mode=mode, + band=band, station_name=station_names_fiveg, vlan_id=vlan, + channel=channel,country=826) + if result: + assert True + else: + assert False + + +setup_params_general2 = { + "mode": "BRIDGE", + "ssid_modes": { + "wpa2_personal": [{"ssid_name": "ssid_wpa2_2g", "appliedRadios": ["2G"], "security_key": "something"}, + {"ssid_name": "ssid_wpa2_5g", "appliedRadios": ["5G"], "security_key": "something"} + ]}, + "rf": {"5G": + {'band': '5G', + 'country': 'GB', + 'channel-mode': 'VHT', + 'channel-width': 80, + "channel": 52}, + "2G": + {'band': '2G', + 'country': 'GB', + "channel-mode": "VHT", + 'channel-width': 20, + "channel": 1} + }, + "radius": False +} + + +@allure.feature("BRIDGE MODE CLIENT CONNECTIVITY") +@pytest.mark.parametrize( + 'setup_profiles', + [setup_params_general2], + indirect=True, + scope="class" +) +@pytest.mark.usefixtures("setup_profiles") +class TestCountryGB80Mhz5GChannel52(object): + """Country code along with Channel and Channel-width Test Bridge mode + pytest -m "country_code and Bridge" + """ + @allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-2546", name="WIFI-6938") + @pytest.mark.wpa2_personal + @pytest.mark.eightyMhz + @pytest.mark.fiveg + @pytest.mark.channel52 + def test_client_bridge_wpa2_chn52_80Mhz_GB_5g(self, lf_test, station_names_fiveg, get_configuration): + """Country code Bridge Mode + pytest -m "country_code and eightyMhz and wpa2 and fiveg and channel52" + """ + profile_data = setup_params_general2["ssid_modes"]["wpa2_personal"][1] + ssid = profile_data["ssid_name"] + security_key = profile_data["security_key"] + security = "wpa2" + mode = "BRIDGE" + band = "fiveg" + vlan = 1 + channel = setup_params_general2['rf']['5G']['channel'] + + result = lf_test.country_code_channel_division(ssid=ssid, security=security, passkey=security_key, mode=mode, + band=band, station_name=station_names_fiveg, vlan_id=vlan, + channel=channel,country=826) + if result: + assert True + else: + assert False + + +setup_params_general3 = { + "mode": "BRIDGE", + "ssid_modes": { + "wpa2_personal": [{"ssid_name": "ssid_wpa2_2g", "appliedRadios": ["2G"], "security_key": "something"}, + {"ssid_name": "ssid_wpa2_5g", "appliedRadios": ["5G"], "security_key": "something"} + ]}, + "rf": {"5G": + {'band': '5G', + 'country': 'GB', + 'channel-mode': 'VHT', + 'channel-width': 80, + "channel": 100}, + "2G": + {'band': '2G', + 'country': 'GB', + "channel-mode": "VHT", + 'channel-width': 20, + "channel": 1} + }, + "radius": False +} + +@allure.feature("BRIDGE MODE CLIENT CONNECTIVITY") +@pytest.mark.parametrize( + 'setup_profiles', + [setup_params_general3], + indirect=True, + scope="class" +) +@pytest.mark.usefixtures("setup_profiles") +class TestCountryGB80Mhz5GChannel100(object): + """Country code along with Channel and Channel-width Test Bridge mode + pytest -m "country_code and Bridge" + """ + @allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-2546", name="WIFI-6938") + @pytest.mark.wpa2_personal + @pytest.mark.eightyMhz + @pytest.mark.fiveg + @pytest.mark.channel100 + def test_client_bridge_wpa2_chn100_80Mhz_GB_5g(self, lf_test, station_names_fiveg, get_configuration): + """Country code Bridge Mode + pytest -m "country_code and eightyMhz and wpa2 and fiveg and channel100" + """ + profile_data = setup_params_general3["ssid_modes"]["wpa2_personal"][1] + ssid = profile_data["ssid_name"] + security_key = profile_data["security_key"] + security = "wpa2" + mode = "BRIDGE" + band = "fiveg" + vlan = 1 + channel = setup_params_general3['rf']['5G']['channel'] + + result = lf_test.country_code_channel_division(ssid=ssid, security=security, passkey=security_key, mode=mode, + band=band, station_name=station_names_fiveg, vlan_id=vlan, + channel=channel,country=826) + if result: + assert True + else: + assert False + + +setup_params_general4 = { + "mode": "BRIDGE", + "ssid_modes": { + "wpa2_personal": [{"ssid_name": "ssid_wpa2_2g", "appliedRadios": ["2G"], "security_key": "something"}, + {"ssid_name": "ssid_wpa2_5g", "appliedRadios": ["5G"], "security_key": "something"} + ]}, + "rf": {"5G": + {'band': '5G', + 'country': 'GB', + 'channel-mode': 'VHT', + 'channel-width': 80, + "channel": 116}, + "2G": + {'band': '2G', + 'country': 'GB', + "channel-mode": "VHT", + 'channel-width': 20, + "channel": 1} + }, + "radius": False +} + +@allure.feature("BRIDGE MODE CLIENT CONNECTIVITY") +@pytest.mark.parametrize( + 'setup_profiles', + [setup_params_general4], + indirect=True, + scope="class" +) +@pytest.mark.usefixtures("setup_profiles") +class TestCountryGB80Mhz5GChannel116(object): + """Country code along with Channel and Channel-width Test Bridge mode + pytest -m "country_code and Bridge" + """ + @allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-2546", name="WIFI-6938") + @pytest.mark.wpa2_personal + @pytest.mark.eightyMhz + @pytest.mark.fiveg + @pytest.mark.channel116 + def test_client_bridge_wpa2_chn116_80Mhz_GB_5g(self, lf_test, station_names_fiveg, get_configuration): + """Country code Bridge Mode + pytest -m "country_code and eightyMhz and wpa2 and fiveg and channel116" + """ + profile_data = setup_params_general4["ssid_modes"]["wpa2_personal"][1] + ssid = profile_data["ssid_name"] + security_key = profile_data["security_key"] + security = "wpa2" + mode = "BRIDGE" + band = "fiveg" + vlan = 1 + channel = setup_params_general4['rf']['5G']['channel'] + + result = lf_test.country_code_channel_division(ssid=ssid, security=security, passkey=security_key, mode=mode, + band=band, station_name=station_names_fiveg, vlan_id=vlan, + channel=channel,country=826) + if result: + assert True + else: + assert False + + +setup_params_general5 = { + "mode": "BRIDGE", + "ssid_modes": { + "wpa2_personal": [{"ssid_name": "ssid_wpa2_2g", "appliedRadios": ["2G"], "security_key": "something"}, + {"ssid_name": "ssid_wpa2_5g", "appliedRadios": ["5G"], "security_key": "something"} + ]}, + "rf": {"5G": + {'band': '5G', + 'country': 'GB', + 'channel-mode': 'VHT', + 'channel-width': 80, + "channel": 132}, + "2G": + {'band': '2G', + 'country': 'GB', + "channel-mode": "VHT", + 'channel-width': 20, + "channel": 1} + }, + "radius": False +} + +@allure.feature("BRIDGE MODE CLIENT CONNECTIVITY") +@pytest.mark.parametrize( + 'setup_profiles', + [setup_params_general5], + indirect=True, + scope="class" +) +@pytest.mark.usefixtures("setup_profiles") +class TestCountryGB80Mhz5GChannel132(object): + """Country code along with Channel and Channel-width Test Bridge mode + pytest -m "country_code and Bridge" + """ + @allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-2546", name="WIFI-6938") + @pytest.mark.wpa2_personal + @pytest.mark.eightyMhz + @pytest.mark.fiveg + @pytest.mark.channel132 + def test_client_bridge_wpa2_chn132_80Mhz_GB_5g(self, lf_test, station_names_fiveg, get_configuration): + """Country code Bridge Mode + pytest -m "country_code and eightyMhz and wpa2 and fiveg and channel132" + """ + profile_data = setup_params_general5["ssid_modes"]["wpa2_personal"][1] + ssid = profile_data["ssid_name"] + security_key = profile_data["security_key"] + security = "wpa2" + mode = "BRIDGE" + band = "fiveg" + vlan = 1 + channel = setup_params_general5['rf']['5G']['channel'] + + result = lf_test.country_code_channel_division(ssid=ssid, security=security, passkey=security_key, mode=mode, + band=band, station_name=station_names_fiveg, vlan_id=vlan, + channel=channel,country=826) + if result: + assert True + else: + assert False + + +setup_params_general6 = { + "mode": "BRIDGE", + "ssid_modes": { + "wpa2_personal": [{"ssid_name": "ssid_wpa2_2g", "appliedRadios": ["2G"], "security_key": "something"}, + {"ssid_name": "ssid_wpa2_5g", "appliedRadios": ["5G"], "security_key": "something"} + ]}, + "rf": {"5G": + {'band': '5G', + 'country': 'GB', + 'channel-mode': 'VHT', + 'channel-width': 80, + "channel": 149}, + "2G": + {'band': '2G', + 'country': 'GB', + "channel-mode": "VHT", + 'channel-width': 20, + "channel": 1} + }, + "radius": False +} + +@allure.feature("BRIDGE MODE CLIENT CONNECTIVITY") +@pytest.mark.parametrize( + 'setup_profiles', + [setup_params_general6], + indirect=True, + scope="class" +) +@pytest.mark.usefixtures("setup_profiles") +class TestCountryGB80Mhz5GChannel149(object): + """Country code along with Channel and Channel-width Test Bridge mode + pytest -m "country_code and Bridge" + """ + @allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-2546", name="WIFI-6938") + @pytest.mark.wpa2_personal + @pytest.mark.eightyMhz + @pytest.mark.fiveg + @pytest.mark.channel149 + def test_client_bridge_wpa2_chn149_80Mhz_GB_5g(self, lf_test, station_names_fiveg, get_configuration): + """Country code Bridge Mode + pytest -m "country_code and eightyMhz and wpa2 and fiveg and channel149" + """ + profile_data = setup_params_general6["ssid_modes"]["wpa2_personal"][1] + ssid = profile_data["ssid_name"] + security_key = profile_data["security_key"] + security = "wpa2" + mode = "BRIDGE" + band = "fiveg" + vlan = 1 + channel = setup_params_general6['rf']['5G']['channel'] + + result = lf_test.country_code_channel_division(ssid=ssid, security=security, passkey=security_key, mode=mode, + band=band, station_name=station_names_fiveg, vlan_id=vlan, + channel=channel,country=826) + if result: + assert True + else: + assert False + + + diff --git a/tests/e2e/basic/validation_of_operating_modes/country_code_channel_division/country_code_IN/__init__.py b/tests/e2e/basic/validation_of_operating_modes/country_code_channel_division/country_code_IN/__init__.py new file mode 100644 index 000000000..e69de29bb diff --git a/tests/e2e/basic/validation_of_operating_modes/country_code_channel_division/country_code_IN/channel_width_20Mhz/__init__.py b/tests/e2e/basic/validation_of_operating_modes/country_code_channel_division/country_code_IN/channel_width_20Mhz/__init__.py new file mode 100644 index 000000000..e69de29bb diff --git a/tests/e2e/basic/validation_of_operating_modes/country_code_channel_division/country_code_IN/channel_width_20Mhz/fiveg_band/__init__.py b/tests/e2e/basic/validation_of_operating_modes/country_code_channel_division/country_code_IN/channel_width_20Mhz/fiveg_band/__init__.py new file mode 100644 index 000000000..e69de29bb diff --git a/tests/e2e/basic/validation_of_operating_modes/country_code_channel_division/country_code_IN/channel_width_20Mhz/fiveg_band/test_IN_20Mhz_5g.py b/tests/e2e/basic/validation_of_operating_modes/country_code_channel_division/country_code_IN/channel_width_20Mhz/fiveg_band/test_IN_20Mhz_5g.py new file mode 100644 index 000000000..6fbfaf28c --- /dev/null +++ b/tests/e2e/basic/validation_of_operating_modes/country_code_channel_division/country_code_IN/channel_width_20Mhz/fiveg_band/test_IN_20Mhz_5g.py @@ -0,0 +1,1056 @@ +""" + + Performance Test: Country code along with Channel and Channel-width Test: Bridge Mode + pytest -m "country_code and Bridge" + +""" + + +import os +import pytest +import allure + +pytestmark = [pytest.mark.country_code, pytest.mark.Bridge, pytest.mark.wpa2, pytest.mark.IN] + +setup_params_general1 = { + "mode": "BRIDGE", + "ssid_modes": { + "wpa2_personal": [{"ssid_name": "ssid_wpa2_2g", "appliedRadios": ["2G"], "security_key": "something"}, + {"ssid_name": "ssid_wpa2_5g", "appliedRadios": ["5G"], "security_key": "something"} + ]}, + "rf": {"5G": + {'band': '5G', + 'country': 'IN', + "channel-mode": "VHT", + 'channel-width': 20, + "channel": 36}, + "2G": + {'band': '2G', + 'country': 'IN', + "channel-mode": "VHT", + 'channel-width': 20, + "channel": 1} + }, + "radius": False +} + + +@allure.feature("BRIDGE MODE CLIENT CONNECTIVITY") +@pytest.mark.parametrize( + 'setup_profiles', + [setup_params_general1], + indirect=True, + scope="class" +) +@pytest.mark.usefixtures("setup_profiles") +class TestCountryIN20Mhz5GChannel36(object): + """Country code along with Channel and Channel-width Test Bridge mode + pytest -m "country_code and Bridge" + """ + @allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-2546", name="WIFI-6938") + @pytest.mark.wpa2_personal + @pytest.mark.twentyMhz + @pytest.mark.fiveg + @pytest.mark.channel36 + def test_client_bridge_wpa2_chn36_20Mhz_IN_5g(self, lf_test, station_names_fiveg, get_configuration): + """Country code Bridge Mode + pytest -m "country_code and twentyMhz and wpa2 and fiveg and channel36" + """ + profile_data = setup_params_general1["ssid_modes"]["wpa2_personal"][1] + ssid = profile_data["ssid_name"] + security_key = profile_data["security_key"] + security = "wpa2" + mode = "BRIDGE" + band = "fiveg" + vlan = 1 + channel = setup_params_general1['rf']['5G']['channel'] + + result = lf_test.country_code_channel_division(ssid=ssid, security=security, passkey=security_key, mode=mode, + band=band, station_name=station_names_fiveg, vlan_id=vlan, + channel=channel,country=356) + if result: + assert True + else: + assert False + + +setup_params_general2 = { + "mode": "BRIDGE", + "ssid_modes": { + "wpa2_personal": [{"ssid_name": "ssid_wpa2_2g", "appliedRadios": ["2G"], "security_key": "something"}, + {"ssid_name": "ssid_wpa2_5g", "appliedRadios": ["5G"], "security_key": "something"} + ]}, + "rf": {"5G": + {'band': '5G', + 'country': 'IN', + "channel-mode": "VHT", + 'channel-width': 20, + "channel": 40}, + "2G": + {'band': '2G', + 'country': 'IN', + "channel-mode": "VHT", + 'channel-width': 20, + "channel": 1} + }, + "radius": False +} + + +@allure.feature("BRIDGE MODE CLIENT CONNECTIVITY") +@pytest.mark.parametrize( + 'setup_profiles', + [setup_params_general2], + indirect=True, + scope="class" +) +@pytest.mark.usefixtures("setup_profiles") +class TestCountryIN20Mhz5GChannel40(object): + """Country code along with Channel and Channel-width Test Bridge mode + pytest -m "country_code and Bridge" + """ + @allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-2546", name="WIFI-6938") + @pytest.mark.wpa2_personal + @pytest.mark.twentyMhz + @pytest.mark.fiveg + @pytest.mark.channel40 + def test_client_bridge_wpa2_chn40_20Mhz_IN_5g(self, lf_test, station_names_fiveg, get_configuration): + """Country code Bridge Mode + pytest -m "country_code and twentyMhz and wpa2 and fiveg and channel40" + """ + profile_data = setup_params_general2["ssid_modes"]["wpa2_personal"][1] + ssid = profile_data["ssid_name"] + security_key = profile_data["security_key"] + security = "wpa2" + mode = "BRIDGE" + band = "fiveg" + vlan = 1 + channel = setup_params_general2['rf']['5G']['channel'] + + result = lf_test.country_code_channel_division(ssid=ssid, security=security, passkey=security_key, mode=mode, + band=band, station_name=station_names_fiveg, vlan_id=vlan, + channel=channel,country=356) + if result: + assert True + else: + assert False + +setup_params_general3 = { + "mode": "BRIDGE", + "ssid_modes": { + "wpa2_personal": [{"ssid_name": "ssid_wpa2_2g", "appliedRadios": ["2G"], "security_key": "something"}, + {"ssid_name": "ssid_wpa2_5g", "appliedRadios": ["5G"], "security_key": "something"} + ]}, + "rf": {"5G": + {'band': '5G', + 'country': 'IN', + 'channel-mode': 'VHT', + 'channel-width': 20, + "channel": 44}, + "2G": + {'band': '2G', + 'country': 'IN', + "channel-mode": "VHT", + 'channel-width': 20, + "channel": 1} + }, + "radius": False +} + + +@allure.feature("BRIDGE MODE CLIENT CONNECTIVITY") +@pytest.mark.parametrize( + 'setup_profiles', + [setup_params_general3], + indirect=True, + scope="class" +) +@pytest.mark.usefixtures("setup_profiles") +class TestCountryIN20Mhz5GChannel44(object): + """Country code along with Channel and Channel-width Test Bridge mode + pytest -m "country_code and Bridge" + """ + @allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-2546", name="WIFI-6938") + @pytest.mark.wpa2_personal + @pytest.mark.twentyMhz + @pytest.mark.fiveg + @pytest.mark.channel44 + def test_client_bridge_wpa2_chn44_20Mhz_IN_5g(self, lf_test, station_names_fiveg, get_configuration): + """Country code Bridge Mode + pytest -m "country_code and twentyMhz and wpa2 and fiveg and channel44" + """ + profile_data = setup_params_general3["ssid_modes"]["wpa2_personal"][1] + ssid = profile_data["ssid_name"] + security_key = profile_data["security_key"] + security = "wpa2" + mode = "BRIDGE" + band = "fiveg" + vlan = 1 + channel = setup_params_general3['rf']['5G']['channel'] + + result = lf_test.country_code_channel_division(ssid=ssid, security=security, passkey=security_key, mode=mode, + band=band, station_name=station_names_fiveg, vlan_id=vlan, + channel=channel,country=356) + if result: + assert True + else: + assert False + + +setup_params_general4 = { + "mode": "BRIDGE", + "ssid_modes": { + "wpa2_personal": [{"ssid_name": "ssid_wpa2_2g", "appliedRadios": ["2G"], "security_key": "something"}, + {"ssid_name": "ssid_wpa2_5g", "appliedRadios": ["5G"], "security_key": "something"} + ]}, + "rf": {"5G": + {'band': '5G', + 'country': 'IN', + "channel-mode": "VHT", + 'channel-width': 20, + "channel": 48}, + "2G": + {'band': '2G', + 'country': 'IN', + "channel-mode": "VHT", + 'channel-width': 20, + "channel": 1} + }, + "radius": False +} + + +@allure.feature("BRIDGE MODE CLIENT CONNECTIVITY") +@pytest.mark.parametrize( + 'setup_profiles', + [setup_params_general4], + indirect=True, + scope="class" +) +@pytest.mark.usefixtures("setup_profiles") +class TestCountryIN20Mhz5GChannel48(object): + """Country code along with Channel and Channel-width Test Bridge mode + pytest -m "country_code and Bridge" + """ + @allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-2546", name="WIFI-6938") + @pytest.mark.wpa2_personal + @pytest.mark.twentyMhz + @pytest.mark.fiveg + @pytest.mark.channel48 + def test_client_bridge_wpa2_chn48_20Mhz_IN_5g(self, lf_test, station_names_fiveg, get_configuration): + """Country code Bridge Mode + pytest -m "country_code and twentyMhz and wpa2 and fiveg and channel48" + """ + profile_data = setup_params_general4["ssid_modes"]["wpa2_personal"][1] + ssid = profile_data["ssid_name"] + security_key = profile_data["security_key"] + security = "wpa2" + mode = "BRIDGE" + band = "fiveg" + vlan = 1 + channel = setup_params_general4['rf']['5G']['channel'] + + result = lf_test.country_code_channel_division(ssid=ssid, security=security, passkey=security_key, mode=mode, + band=band, station_name=station_names_fiveg, vlan_id=vlan, + channel=channel,country=356) + if result: + assert True + else: + assert False + + +setup_params_general5 = { + "mode": "BRIDGE", + "ssid_modes": { + "wpa2_personal": [{"ssid_name": "ssid_wpa2_2g", "appliedRadios": ["2G"], "security_key": "something"}, + {"ssid_name": "ssid_wpa2_5g", "appliedRadios": ["5G"], "security_key": "something"} + ]}, + "rf": {"5G": + {'band': '5G', + 'country': 'IN', + 'channel-mode': 'VHT', + 'channel-width': 20, + "channel": 52}, + "2G": + {'band': '2G', + 'country': 'IN', + "channel-mode": "VHT", + 'channel-width': 20, + "channel": 1} + }, + "radius": False +} + + +@allure.feature("BRIDGE MODE CLIENT CONNECTIVITY") +@pytest.mark.parametrize( + 'setup_profiles', + [setup_params_general5], + indirect=True, + scope="class" +) +@pytest.mark.usefixtures("setup_profiles") +class TestCountryIN20Mhz5GChannel52(object): + """Country code along with Channel and Channel-width Test Bridge mode + pytest -m "country_code and Bridge" + """ + @allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-2546", name="WIFI-6938") + @pytest.mark.wpa2_personal + @pytest.mark.twentyMhz + @pytest.mark.fiveg + @pytest.mark.channel52 + def test_client_bridge_wpa2_chn52_20Mhz_IN_5g(self, lf_test, station_names_fiveg, get_configuration): + """Country code Bridge Mode + pytest -m "country_code and twentyMhz and wpa2 and fiveg and channel52" + """ + profile_data = setup_params_general5["ssid_modes"]["wpa2_personal"][1] + ssid = profile_data["ssid_name"] + security_key = profile_data["security_key"] + security = "wpa2" + mode = "BRIDGE" + band = "fiveg" + vlan = 1 + channel = setup_params_general5['rf']['5G']['channel'] + + result = lf_test.country_code_channel_division(ssid=ssid, security=security, passkey=security_key, mode=mode, + band=band, station_name=station_names_fiveg, vlan_id=vlan, + channel=channel,country=356) + if result: + assert True + else: + assert False + + +setup_params_general6 = { + "mode": "BRIDGE", + "ssid_modes": { + "wpa2_personal": [{"ssid_name": "ssid_wpa2_2g", "appliedRadios": ["2G"], "security_key": "something"}, + {"ssid_name": "ssid_wpa2_5g", "appliedRadios": ["5G"], "security_key": "something"} + ]}, + "rf": {"5G": + {'band': '5G', + 'country': 'IN', + "channel-mode": "VHT", + 'channel-width': 20, + "channel": 56}, + "2G": + {'band': '2G', + 'country': 'IN', + "channel-mode": "VHT", + 'channel-width': 20, + "channel": 1} + }, + "radius": False +} + + +@allure.feature("BRIDGE MODE CLIENT CONNECTIVITY") +@pytest.mark.parametrize( + 'setup_profiles', + [setup_params_general6], + indirect=True, + scope="class" +) +@pytest.mark.usefixtures("setup_profiles") +class TestCountryIN20Mhz5GChannel56(object): + """Country code along with Channel and Channel-width Test Bridge mode + pytest -m "country_code and Bridge" + """ + @allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-2546", name="WIFI-6938") + @pytest.mark.wpa2_personal + @pytest.mark.twentyMhz + @pytest.mark.fiveg + @pytest.mark.channel56 + def test_client_bridge_wpa2_chn56_20Mhz_IN_5g(self, lf_test, station_names_fiveg, get_configuration): + """Country code Bridge Mode + pytest -m "country_code and twentyMhz and wpa2 and fiveg and channel56" + """ + profile_data = setup_params_general6["ssid_modes"]["wpa2_personal"][1] + ssid = profile_data["ssid_name"] + security_key = profile_data["security_key"] + security = "wpa2" + mode = "BRIDGE" + band = "fiveg" + vlan = 1 + channel = setup_params_general6['rf']['5G']['channel'] + + result = lf_test.country_code_channel_division(ssid=ssid, security=security, passkey=security_key, mode=mode, + band=band, station_name=station_names_fiveg, vlan_id=vlan, + channel=channel,country=356) + if result: + assert True + else: + assert False + + +setup_params_general7 = { + "mode": "BRIDGE", + "ssid_modes": { + "wpa2_personal": [{"ssid_name": "ssid_wpa2_2g", "appliedRadios": ["2G"], "security_key": "something"}, + {"ssid_name": "ssid_wpa2_5g", "appliedRadios": ["5G"], "security_key": "something"} + ]}, + "rf": {"5G": + {'band': '5G', + 'country': 'IN', + 'channel-mode': 'VHT', + 'channel-width': 20, + "channel": 60}, + "2G": + {'band': '2G', + 'country': 'IN', + "channel-mode": "VHT", + 'channel-width': 20, + "channel": 1} + }, + "radius": False +} + +@allure.feature("BRIDGE MODE CLIENT CONNECTIVITY") +@pytest.mark.parametrize( + 'setup_profiles', + [setup_params_general7], + indirect=True, + scope="class" +) +@pytest.mark.usefixtures("setup_profiles") +class TestCountryIN20Mhz5GChannel60(object): + """Country code along with Channel and Channel-width Test Bridge mode + pytest -m "country_code and Bridge" + """ + @allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-2546", name="WIFI-6938") + @pytest.mark.wpa2_personal + @pytest.mark.twentyMhz + @pytest.mark.fiveg + @pytest.mark.channel60 + def test_client_bridge_wpa2_chn60_20Mhz_IN_5g(self, lf_test, station_names_fiveg, get_configuration): + """Country code Bridge Mode + pytest -m "country_code and twentyMhz and wpa2 and fiveg and channel60" + """ + profile_data = setup_params_general7["ssid_modes"]["wpa2_personal"][1] + ssid = profile_data["ssid_name"] + security_key = profile_data["security_key"] + security = "wpa2" + mode = "BRIDGE" + band = "fiveg" + vlan = 1 + channel = setup_params_general7['rf']['5G']['channel'] + + result = lf_test.country_code_channel_division(ssid=ssid, security=security, passkey=security_key, mode=mode, + band=band, station_name=station_names_fiveg, vlan_id=vlan, + channel=channel,country=356) + if result: + assert True + else: + assert False + + +setup_params_general8 = { + "mode": "BRIDGE", + "ssid_modes": { + "wpa2_personal": [{"ssid_name": "ssid_wpa2_2g", "appliedRadios": ["2G"], "security_key": "something"}, + {"ssid_name": "ssid_wpa2_5g", "appliedRadios": ["5G"], "security_key": "something"} + ]}, + "rf": {"5G": + {'band': '5G', + 'country': 'IN', + "channel-mode": "VHT", + 'channel-width': 20, + "channel": 64}, + "2G": + {'band': '2G', + 'country': 'IN', + "channel-mode": "VHT", + 'channel-width': 20, + "channel": 1} + }, + "radius": False +} + + +@allure.feature("BRIDGE MODE CLIENT CONNECTIVITY") +@pytest.mark.parametrize( + 'setup_profiles', + [setup_params_general8], + indirect=True, + scope="class" +) +@pytest.mark.usefixtures("setup_profiles") +class TestCountryIN20Mhz5GChannel64(object): + """Country code along with Channel and Channel-width Test Bridge mode + pytest -m "country_code and Bridge" + """ + @allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-2546", name="WIFI-6938") + @pytest.mark.wpa2_personal + @pytest.mark.twentyMhz + @pytest.mark.fiveg + @pytest.mark.channel64 + def test_client_bridge_wpa2_chn64_20Mhz_IN_5g(self, lf_test, station_names_fiveg, get_configuration): + """Country code Bridge Mode + pytest -m "country_code and twentyMhz and wpa2 and fiveg and channel64" + """ + profile_data = setup_params_general8["ssid_modes"]["wpa2_personal"][1] + ssid = profile_data["ssid_name"] + security_key = profile_data["security_key"] + security = "wpa2" + mode = "BRIDGE" + band = "fiveg" + vlan = 1 + channel = setup_params_general8['rf']['5G']['channel'] + + result = lf_test.country_code_channel_division(ssid=ssid, security=security, passkey=security_key, mode=mode, + band=band, station_name=station_names_fiveg, vlan_id=vlan, + channel=channel,country=356) + if result: + assert True + else: + assert False + + +setup_params_general9 = { + "mode": "BRIDGE", + "ssid_modes": { + "wpa2_personal": [{"ssid_name": "ssid_wpa2_2g", "appliedRadios": ["2G"], "security_key": "something"}, + {"ssid_name": "ssid_wpa2_5g", "appliedRadios": ["5G"], "security_key": "something"} + ]}, + "rf": {"5G": + {'band': '5G', + 'country': 'IN', + 'channel-mode': 'VHT', + 'channel-width': 20, + "channel": 100}, + "2G": + {'band': '2G', + 'country': 'IN', + "channel-mode": "VHT", + 'channel-width': 20, + "channel": 1} + }, + "radius": False +} + +@allure.feature("BRIDGE MODE CLIENT CONNECTIVITY") +@pytest.mark.parametrize( + 'setup_profiles', + [setup_params_general9], + indirect=True, + scope="class" +) +@pytest.mark.usefixtures("setup_profiles") +class TestCountryIN20Mhz5GChannel100(object): + """Country code along with Channel and Channel-width Test Bridge mode + pytest -m "country_code and Bridge" + """ + @allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-2546", name="WIFI-6938") + @pytest.mark.wpa2_personal + @pytest.mark.twentyMhz + @pytest.mark.fiveg + @pytest.mark.channel100 + def test_client_bridge_wpa2_chn100_20Mhz_IN_5g(self, lf_test, station_names_fiveg, get_configuration): + """Country code Bridge Mode + pytest -m "country_code and twentyMhz and wpa2 and fiveg and channel100" + """ + profile_data = setup_params_general9["ssid_modes"]["wpa2_personal"][1] + ssid = profile_data["ssid_name"] + security_key = profile_data["security_key"] + security = "wpa2" + mode = "BRIDGE" + band = "fiveg" + vlan = 1 + channel = setup_params_general9['rf']['5G']['channel'] + + result = lf_test.country_code_channel_division(ssid=ssid, security=security, passkey=security_key, mode=mode, + band=band, station_name=station_names_fiveg, vlan_id=vlan, + channel=channel,country=356) + if result: + assert True + else: + assert False + + +setup_params_general10 = { + "mode": "BRIDGE", + "ssid_modes": { + "wpa2_personal": [{"ssid_name": "ssid_wpa2_2g", "appliedRadios": ["2G"], "security_key": "something"}, + {"ssid_name": "ssid_wpa2_5g", "appliedRadios": ["5G"], "security_key": "something"} + ]}, + "rf": {"5G": + {'band': '5G', + 'country': 'IN', + 'channel-mode': 'VHT', + 'channel-width': 20, + "channel": 104}, + "2G": + {'band': '2G', + 'country': 'IN', + "channel-mode": "VHT", + 'channel-width': 20, + "channel": 1} + }, + "radius": False +} + +@allure.feature("BRIDGE MODE CLIENT CONNECTIVITY") +@pytest.mark.parametrize( + 'setup_profiles', + [setup_params_general10], + indirect=True, + scope="class" +) +@pytest.mark.usefixtures("setup_profiles") +class TestCountryIN20Mhz5GChannel104(object): + """Country code along with Channel and Channel-width Test Bridge mode + pytest -m "country_code and Bridge" + """ + @allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-2546", name="WIFI-6938") + @pytest.mark.wpa2_personal + @pytest.mark.twentyMhz + @pytest.mark.fiveg + @pytest.mark.channel104 + def test_client_bridge_wpa2_chn104_20Mhz_IN_5g(self, lf_test, station_names_fiveg, get_configuration): + """Country code Bridge Mode + pytest -m "country_code and twentyMhz and wpa2 and fiveg and channel104" + """ + profile_data = setup_params_general10["ssid_modes"]["wpa2_personal"][1] + ssid = profile_data["ssid_name"] + security_key = profile_data["security_key"] + security = "wpa2" + mode = "BRIDGE" + band = "fiveg" + vlan = 1 + channel = setup_params_general10['rf']['5G']['channel'] + + result = lf_test.country_code_channel_division(ssid=ssid, security=security, passkey=security_key, mode=mode, + band=band, station_name=station_names_fiveg, vlan_id=vlan, + channel=channel,country=356) + if result: + assert True + else: + assert False + + +setup_params_general11 = { + "mode": "BRIDGE", + "ssid_modes": { + "wpa2_personal": [{"ssid_name": "ssid_wpa2_2g", "appliedRadios": ["2G"], "security_key": "something"}, + {"ssid_name": "ssid_wpa2_5g", "appliedRadios": ["5G"], "security_key": "something"} + ]}, + "rf": {"5G": + {'band': '5G', + 'country': 'IN', + 'channel-mode': 'VHT', + 'channel-width': 20, + "channel": 108}, + "2G": + {'band': '2G', + 'country': 'IN', + "channel-mode": "VHT", + 'channel-width': 20, + "channel": 1} + }, + "radius": False +} + +@allure.feature("BRIDGE MODE CLIENT CONNECTIVITY") +@pytest.mark.parametrize( + 'setup_profiles', + [setup_params_general11], + indirect=True, + scope="class" +) +@pytest.mark.usefixtures("setup_profiles") +class TestCountryIN20Mhz5GChannel108(object): + """Country code along with Channel and Channel-width Test Bridge mode + pytest -m "country_code and Bridge" + """ + @allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-2546", name="WIFI-6938") + @pytest.mark.wpa2_personal + @pytest.mark.twentyMhz + @pytest.mark.fiveg + @pytest.mark.channel108 + def test_client_bridge_wpa2_chn108_20Mhz_IN_5g(self, lf_test, station_names_fiveg, get_configuration): + """Country code Bridge Mode + pytest -m "country_code and twentyMhz and wpa2 and fiveg and channel108" + """ + profile_data = setup_params_general11["ssid_modes"]["wpa2_personal"][1] + ssid = profile_data["ssid_name"] + security_key = profile_data["security_key"] + security = "wpa2" + mode = "BRIDGE" + band = "fiveg" + vlan = 1 + channel = setup_params_general11['rf']['5G']['channel'] + + result = lf_test.country_code_channel_division(ssid=ssid, security=security, passkey=security_key, mode=mode, + band=band, station_name=station_names_fiveg, vlan_id=vlan, + channel=channel,country=356) + if result: + assert True + else: + assert False + + +setup_params_general12 = { + "mode": "BRIDGE", + "ssid_modes": { + "wpa2_personal": [{"ssid_name": "ssid_wpa2_2g", "appliedRadios": ["2G"], "security_key": "something"}, + {"ssid_name": "ssid_wpa2_5g", "appliedRadios": ["5G"], "security_key": "something"} + ]}, + "rf": {"5G": + {'band': '5G', + 'country': 'IN', + 'channel-mode': 'VHT', + 'channel-width': 20, + "channel": 112}, + "2G": + {'band': '2G', + 'country': 'IN', + "channel-mode": "VHT", + 'channel-width': 20, + "channel": 1} + }, + "radius": False +} + +@allure.feature("BRIDGE MODE CLIENT CONNECTIVITY") +@pytest.mark.parametrize( + 'setup_profiles', + [setup_params_general12], + indirect=True, + scope="class" +) +@pytest.mark.usefixtures("setup_profiles") +class TestCountryIN20Mhz5GChannel112(object): + """Country code along with Channel and Channel-width Test Bridge mode + pytest -m "country_code and Bridge" + """ + @allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-2546", name="WIFI-6938") + @pytest.mark.wpa2_personal + @pytest.mark.twentyMhz + @pytest.mark.fiveg + @pytest.mark.channel112 + def test_client_bridge_wpa2_chn112_20Mhz_IN_5g(self, lf_test, station_names_fiveg, get_configuration): + """Country code Bridge Mode + pytest -m "country_code and twentyMhz and wpa2 and fiveg and channel112" + """ + profile_data = setup_params_general12["ssid_modes"]["wpa2_personal"][1] + ssid = profile_data["ssid_name"] + security_key = profile_data["security_key"] + security = "wpa2" + mode = "BRIDGE" + band = "fiveg" + vlan = 1 + channel = setup_params_general12['rf']['5G']['channel'] + + result = lf_test.country_code_channel_division(ssid=ssid, security=security, passkey=security_key, mode=mode, + band=band, station_name=station_names_fiveg, vlan_id=vlan, + channel=channel,country=356) + if result: + assert True + else: + assert False + + +setup_params_general13 = { + "mode": "BRIDGE", + "ssid_modes": { + "wpa2_personal": [{"ssid_name": "ssid_wpa2_2g", "appliedRadios": ["2G"], "security_key": "something"}, + {"ssid_name": "ssid_wpa2_5g", "appliedRadios": ["5G"], "security_key": "something"} + ]}, + "rf": {"5G": + {'band': '5G', + 'country': 'IN', + 'channel-mode': 'VHT', + 'channel-width': 20, + "channel": 116}, + "2G": + {'band': '2G', + 'country': 'IN', + "channel-mode": "VHT", + 'channel-width': 20, + "channel": 1} + }, + "radius": False +} + +@allure.feature("BRIDGE MODE CLIENT CONNECTIVITY") +@pytest.mark.parametrize( + 'setup_profiles', + [setup_params_general13], + indirect=True, + scope="class" +) +@pytest.mark.usefixtures("setup_profiles") +class TestCountryIN20Mhz5GChannel116(object): + """Country code along with Channel and Channel-width Test Bridge mode + pytest -m "country_code and Bridge" + """ + @allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-2546", name="WIFI-6938") + @pytest.mark.wpa2_personal + @pytest.mark.twentyMhz + @pytest.mark.fiveg + @pytest.mark.channel116 + def test_client_bridge_wpa2_chn116_20Mhz_IN_5g(self, lf_test, station_names_fiveg, get_configuration): + """Country code Bridge Mode + pytest -m "country_code and twentyMhz and wpa2 and fiveg and channel116" + """ + profile_data = setup_params_general13["ssid_modes"]["wpa2_personal"][1] + ssid = profile_data["ssid_name"] + security_key = profile_data["security_key"] + security = "wpa2" + mode = "BRIDGE" + band = "fiveg" + vlan = 1 + channel = setup_params_general13['rf']['5G']['channel'] + + result = lf_test.country_code_channel_division(ssid=ssid, security=security, passkey=security_key, mode=mode, + band=band, station_name=station_names_fiveg, vlan_id=vlan, + channel=channel,country=356) + if result: + assert True + else: + assert False + + +setup_params_general14 = { + "mode": "BRIDGE", + "ssid_modes": { + "wpa2_personal": [{"ssid_name": "ssid_wpa2_2g", "appliedRadios": ["2G"], "security_key": "something"}, + {"ssid_name": "ssid_wpa2_5g", "appliedRadios": ["5G"], "security_key": "something"} + ]}, + "rf": {"5G": + {'band': '5G', + 'country': 'IN', + 'channel-mode': 'VHT', + 'channel-width': 20, + "channel": 132}, + "2G": + {'band': '2G', + 'country': 'IN', + "channel-mode": "VHT", + 'channel-width': 20, + "channel": 1} + }, + "radius": False +} + +@allure.feature("BRIDGE MODE CLIENT CONNECTIVITY") +@pytest.mark.parametrize( + 'setup_profiles', + [setup_params_general14], + indirect=True, + scope="class" +) +@pytest.mark.usefixtures("setup_profiles") +class TestCountryIN20Mhz5GChannel132(object): + """Country code along with Channel and Channel-width Test Bridge mode + pytest -m "country_code and Bridge" + """ + @allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-2546", name="WIFI-6938") + @pytest.mark.wpa2_personal + @pytest.mark.twentyMhz + @pytest.mark.fiveg + @pytest.mark.channel132 + def test_client_bridge_wpa2_chn132_20Mhz_IN_5g(self, lf_test, station_names_fiveg, get_configuration): + """Country code Bridge Mode + pytest -m "country_code and twentyMhz and wpa2 and fiveg and channel132" + """ + profile_data = setup_params_general14["ssid_modes"]["wpa2_personal"][1] + ssid = profile_data["ssid_name"] + security_key = profile_data["security_key"] + security = "wpa2" + mode = "BRIDGE" + band = "fiveg" + vlan = 1 + channel = setup_params_general14['rf']['5G']['channel'] + + result = lf_test.country_code_channel_division(ssid=ssid, security=security, passkey=security_key, mode=mode, + band=band, station_name=station_names_fiveg, vlan_id=vlan, + channel=channel,country=356) + if result: + assert True + else: + assert False + + +setup_params_general15 = { + "mode": "BRIDGE", + "ssid_modes": { + "wpa2_personal": [{"ssid_name": "ssid_wpa2_2g", "appliedRadios": ["2G"], "security_key": "something"}, + {"ssid_name": "ssid_wpa2_5g", "appliedRadios": ["5G"], "security_key": "something"} + ]}, + "rf": {"5G": + {'band': '5G', + 'country': 'IN', + 'channel-mode': 'VHT', + 'channel-width': 20, + "channel": 136}, + "2G": + {'band': '2G', + 'country': 'IN', + "channel-mode": "VHT", + 'channel-width': 20, + "channel": 1} + }, + "radius": False +} + +@allure.feature("BRIDGE MODE CLIENT CONNECTIVITY") +@pytest.mark.parametrize( + 'setup_profiles', + [setup_params_general15], + indirect=True, + scope="class" +) +@pytest.mark.usefixtures("setup_profiles") +class TestCountryIN20Mhz5GChannel136(object): + """Country code along with Channel and Channel-width Test Bridge mode + pytest -m "country_code and Bridge" + """ + @allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-2546", name="WIFI-6938") + @pytest.mark.wpa2_personal + @pytest.mark.twentyMhz + @pytest.mark.fiveg + @pytest.mark.channel136 + def test_client_bridge_wpa2_chn136_20Mhz_IN_5g(self, lf_test, station_names_fiveg, get_configuration): + """Country code Bridge Mode + pytest -m "country_code and twentyMhz and wpa2 and fiveg and channel136" + """ + profile_data = setup_params_general15["ssid_modes"]["wpa2_personal"][1] + ssid = profile_data["ssid_name"] + security_key = profile_data["security_key"] + security = "wpa2" + mode = "BRIDGE" + band = "fiveg" + vlan = 1 + channel = setup_params_general15['rf']['5G']['channel'] + + result = lf_test.country_code_channel_division(ssid=ssid, security=security, passkey=security_key, mode=mode, + band=band, station_name=station_names_fiveg, vlan_id=vlan, + channel=channel,country=356) + if result: + assert True + else: + assert False + + +setup_params_general16 = { + "mode": "BRIDGE", + "ssid_modes": { + "wpa2_personal": [{"ssid_name": "ssid_wpa2_2g", "appliedRadios": ["2G"], "security_key": "something"}, + {"ssid_name": "ssid_wpa2_5g", "appliedRadios": ["5G"], "security_key": "something"} + ]}, + "rf": {"5G": + {'band': '5G', + 'country': 'IN', + 'channel-mode': 'VHT', + 'channel-width': 20, + "channel": 140}, + "2G": + {'band': '2G', + 'country': 'IN', + "channel-mode": "VHT", + 'channel-width': 20, + "channel": 1} + }, + "radius": False +} + +@allure.feature("BRIDGE MODE CLIENT CONNECTIVITY") +@pytest.mark.parametrize( + 'setup_profiles', + [setup_params_general16], + indirect=True, + scope="class" +) +@pytest.mark.usefixtures("setup_profiles") +class TestCountryIN20Mhz5GChannel140(object): + """Country code along with Channel and Channel-width Test Bridge mode + pytest -m "country_code and Bridge" + """ + @allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-2546", name="WIFI-6938") + @pytest.mark.wpa2_personal + @pytest.mark.twentyMhz + @pytest.mark.fiveg + @pytest.mark.channel140 + def test_client_bridge_wpa2_chn140_20Mhz_IN_5g(self, lf_test, station_names_fiveg, get_configuration): + """Country code Bridge Mode + pytest -m "country_code and twentyMhz and wpa2 and fiveg and channel140" + """ + profile_data = setup_params_general16["ssid_modes"]["wpa2_personal"][1] + ssid = profile_data["ssid_name"] + security_key = profile_data["security_key"] + security = "wpa2" + mode = "BRIDGE" + band = "fiveg" + vlan = 1 + channel = setup_params_general16['rf']['5G']['channel'] + + result = lf_test.country_code_channel_division(ssid=ssid, security=security, passkey=security_key, mode=mode, + band=band, station_name=station_names_fiveg, vlan_id=vlan, + channel=channel,country=356) + if result: + assert True + else: + assert False + + +setup_params_general17 = { + "mode": "BRIDGE", + "ssid_modes": { + "wpa2_personal": [{"ssid_name": "ssid_wpa2_2g", "appliedRadios": ["2G"], "security_key": "something"}, + {"ssid_name": "ssid_wpa2_5g", "appliedRadios": ["5G"], "security_key": "something"} + ]}, + "rf": {"5G": + {'band': '5G', + 'country': 'IN', + 'channel-mode': 'VHT', + 'channel-width': 20, + "channel": 144}, + "2G": + {'band': '2G', + 'country': 'IN', + "channel-mode": "VHT", + 'channel-width': 20, + "channel": 1} + }, + "radius": False +} + +@allure.feature("BRIDGE MODE CLIENT CONNECTIVITY") +@pytest.mark.parametrize( + 'setup_profiles', + [setup_params_general17], + indirect=True, + scope="class" +) +@pytest.mark.usefixtures("setup_profiles") +class TestCountryIN20Mhz5GChannel144(object): + """Country code along with Channel and Channel-width Test Bridge mode + pytest -m "country_code and Bridge" + """ + @allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-2546", name="WIFI-6938") + @pytest.mark.wpa2_personal + @pytest.mark.twentyMhz + @pytest.mark.fiveg + @pytest.mark.channel144 + def test_client_bridge_wpa2_chn144_20Mhz_IN_5g(self, lf_test, station_names_fiveg, get_configuration): + """Country code Bridge Mode + pytest -m "country_code and twentyMhz and wpa2 and fiveg and channel144" + """ + profile_data = setup_params_general17["ssid_modes"]["wpa2_personal"][1] + ssid = profile_data["ssid_name"] + security_key = profile_data["security_key"] + security = "wpa2" + mode = "BRIDGE" + band = "fiveg" + vlan = 1 + channel = setup_params_general17['rf']['5G']['channel'] + + result = lf_test.country_code_channel_division(ssid=ssid, security=security, passkey=security_key, mode=mode, + band=band, station_name=station_names_fiveg, vlan_id=vlan, + channel=channel,country=356) + if result: + assert True + else: + assert False + diff --git a/tests/e2e/basic/validation_of_operating_modes/country_code_channel_division/country_code_IN/channel_width_20Mhz/twog_band/__init__.py b/tests/e2e/basic/validation_of_operating_modes/country_code_channel_division/country_code_IN/channel_width_20Mhz/twog_band/__init__.py new file mode 100644 index 000000000..e69de29bb diff --git a/tests/e2e/basic/validation_of_operating_modes/country_code_channel_division/country_code_IN/channel_width_20Mhz/twog_band/test_IN_20Mhz_2g.py b/tests/e2e/basic/validation_of_operating_modes/country_code_channel_division/country_code_IN/channel_width_20Mhz/twog_band/test_IN_20Mhz_2g.py new file mode 100644 index 000000000..0412e1a39 --- /dev/null +++ b/tests/e2e/basic/validation_of_operating_modes/country_code_channel_division/country_code_IN/channel_width_20Mhz/twog_band/test_IN_20Mhz_2g.py @@ -0,0 +1,794 @@ +""" + + Performance Test: Country code along with Channel and Channel-width Test: Bridge Mode + pytest -m "country_code and Bridge" + +""" + + +import os +import pytest +import allure + +pytestmark = [pytest.mark.country_code, pytest.mark.Bridge, pytest.mark.wpa2, pytest.mark.IN] + +setup_params_general1 = { + "mode": "BRIDGE", + "ssid_modes": { + "wpa2_personal": [{"ssid_name": "ssid_wpa2_2g", "appliedRadios": ["2G"], "security_key": "something"}, + {"ssid_name": "ssid_wpa2_5g", "appliedRadios": ["5G"], "security_key": "something"} + ]}, + "rf": {"5G": + {'band': '5G', + 'country': 'IN', + "channel-mode": "VHT", + 'channel-width': 20, + "channel": 36}, + "2G": + {'band': '2G', + 'country': 'IN', + "channel-mode": "VHT", + 'channel-width': 20, + "channel": 1} + }, + "radius": False +} + + +@allure.feature("BRIDGE MODE CLIENT CONNECTIVITY") +@pytest.mark.parametrize( + 'setup_profiles', + [setup_params_general1], + indirect=True, + scope="class" +) +@pytest.mark.usefixtures("setup_profiles") +class TestCountryIN20Mhz2GChannel1(object): + """Country code along with Channel and Channel-width Test Bridge mode + pytest -m "country_code and Bridge" + """ + @allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-2546", name="WIFI-6938") + @pytest.mark.wpa2_personal + @pytest.mark.twentyMhz + @pytest.mark.twog + @pytest.mark.channel1 + def test_client_bridge_wpa2_chn1_20Mhz_IN_2g(self, lf_test, station_names_twog, get_configuration): + """Country code Bridge Mode + pytest -m "country_code and twentyMhz and wpa2 and twog and channel1" + """ + profile_data = setup_params_general1["ssid_modes"]["wpa2_personal"][0] + ssid = profile_data["ssid_name"] + security_key = profile_data["security_key"] + security = "wpa2" + mode = "BRIDGE" + band = "twog" + vlan = 1 + channel = setup_params_general1['rf']['2G']['channel'] + + result = lf_test.country_code_channel_division(ssid=ssid, security=security, passkey=security_key, mode=mode, + band=band, station_name=station_names_twog, vlan_id=vlan, + channel=channel,country=356) + if result: + assert True + else: + assert False + + +setup_params_general2 = { + "mode": "BRIDGE", + "ssid_modes": { + "wpa2_personal": [{"ssid_name": "ssid_wpa2_2g", "appliedRadios": ["2G"], "security_key": "something"}, + {"ssid_name": "ssid_wpa2_5g", "appliedRadios": ["5G"], "security_key": "something"} + ]}, + "rf": {"5G": + {'band': '5G', + 'country': 'IN', + "channel-mode": "VHT", + 'channel-width': 20, + "channel": 36}, + "2G": + {'band': '2G', + 'country': 'IN', + 'channel-mode': 'VHT', + 'channel-width': 20, + "channel": 2} + }, + "radius": False +} + + +@allure.feature("BRIDGE MODE CLIENT CONNECTIVITY") +@pytest.mark.parametrize( + 'setup_profiles', + [setup_params_general2], + indirect=True, + scope="class" +) +@pytest.mark.usefixtures("setup_profiles") +class TestCountryIN20Mhz2GChannel2(object): + """Country code along with Channel and Channel-width Test Bridge mode + pytest -m "country_code and Bridge" + """ + @allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-2546", name="WIFI-6938") + @pytest.mark.wpa2_personal + @pytest.mark.twentyMhz + @pytest.mark.twog + @pytest.mark.channel2 + def test_client_bridge_wpa2_chn2_20Mhz_IN_2g(self, lf_test, station_names_twog, get_configuration): + """Country code Bridge Mode + pytest -m "country_code and twentyMhz and wpa2 and twog and channel2" + """ + profile_data = setup_params_general2["ssid_modes"]["wpa2_personal"][0] + ssid = profile_data["ssid_name"] + security_key = profile_data["security_key"] + security = "wpa2" + mode = "BRIDGE" + band = "twog" + vlan = 1 + channel = setup_params_general2['rf']['2G']['channel'] + + result = lf_test.country_code_channel_division(ssid=ssid, security=security, passkey=security_key, mode=mode, + band=band, station_name=station_names_twog, vlan_id=vlan, + channel=channel,country=356) + if result: + assert True + else: + assert False + + +setup_params_general3 = { + "mode": "BRIDGE", + "ssid_modes": { + "wpa2_personal": [{"ssid_name": "ssid_wpa2_2g", "appliedRadios": ["2G"], "security_key": "something"}, + {"ssid_name": "ssid_wpa2_5g", "appliedRadios": ["5G"], "security_key": "something"} + ]}, + "rf": {"5G": + {'band': '5G', + 'country': 'IN', + "channel-mode": "VHT", + 'channel-width': 20, + "channel": 36}, + "2G": + {'band': '2G', + 'country': 'IN', + 'channel-mode': 'VHT', + 'channel-width': 20, + "channel": 3} + }, + "radius": False +} + + +@allure.feature("BRIDGE MODE CLIENT CONNECTIVITY") +@pytest.mark.parametrize( + 'setup_profiles', + [setup_params_general3], + indirect=True, + scope="class" +) +@pytest.mark.usefixtures("setup_profiles") +class TestCountryIN20Mhz2GChannel3(object): + """Country code along with Channel and Channel-width Test Bridge mode + pytest -m "country_code and Bridge" + """ + @allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-2546", name="WIFI-6938") + @pytest.mark.wpa2_personal + @pytest.mark.twentyMhz + @pytest.mark.twog + @pytest.mark.channel3 + def test_client_bridge_wpa2_chn3_20Mhz_IN_2g(self, lf_test, station_names_twog, get_configuration): + """Country code Bridge Mode + pytest -m "country_code and twentyMhz and wpa2 and twog and channel3" + """ + profile_data = setup_params_general3["ssid_modes"]["wpa2_personal"][0] + ssid = profile_data["ssid_name"] + security_key = profile_data["security_key"] + security = "wpa2" + mode = "BRIDGE" + band = "twog" + vlan = 1 + channel = setup_params_general3['rf']['2G']['channel'] + + result = lf_test.country_code_channel_division(ssid=ssid, security=security, passkey=security_key, mode=mode, + band=band, station_name=station_names_twog, vlan_id=vlan, + channel=channel,country=356) + if result: + assert True + else: + assert False + + +setup_params_general4 = { + "mode": "BRIDGE", + "ssid_modes": { + "wpa2_personal": [{"ssid_name": "ssid_wpa2_2g", "appliedRadios": ["2G"], "security_key": "something"}, + {"ssid_name": "ssid_wpa2_5g", "appliedRadios": ["5G"], "security_key": "something"} + ]}, + "rf": {"5G": + {'band': '5G', + 'country': 'IN', + "channel-mode": "VHT", + 'channel-width': 20, + "channel": 36}, + "2G": + {'band': '2G', + 'country': 'IN', + 'channel-mode': 'VHT', + 'channel-width': 20, + "channel": 4} + }, + "radius": False +} + +@allure.feature("BRIDGE MODE CLIENT CONNECTIVITY") +@pytest.mark.parametrize( + 'setup_profiles', + [setup_params_general4], + indirect=True, + scope="class" +) +@pytest.mark.usefixtures("setup_profiles") +class TestCountryIN20Mhz2GChannel4(object): + """Country code along with Channel and Channel-width Test Bridge mode + pytest -m "country_code and Bridge" + """ + @allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-2546", name="WIFI-6938") + @pytest.mark.wpa2_personal + @pytest.mark.twentyMhz + @pytest.mark.twog + @pytest.mark.channel4 + def test_client_bridge_wpa2_chn4_20Mhz_IN_2g(self, lf_test, station_names_twog, get_configuration): + """Country code Bridge Mode + pytest -m "country_code and twentyMhz and wpa2 and twog and channel4" + """ + profile_data = setup_params_general4["ssid_modes"]["wpa2_personal"][0] + ssid = profile_data["ssid_name"] + security_key = profile_data["security_key"] + security = "wpa2" + mode = "BRIDGE" + band = "twog" + vlan = 1 + channel = setup_params_general4['rf']['2G']['channel'] + + result = lf_test.country_code_channel_division(ssid=ssid, security=security, passkey=security_key, mode=mode, + band=band, station_name=station_names_twog, vlan_id=vlan, + channel=channel,country=356) + if result: + assert True + else: + assert False + + +setup_params_general5 = { + "mode": "BRIDGE", + "ssid_modes": { + "wpa2_personal": [{"ssid_name": "ssid_wpa2_2g", "appliedRadios": ["2G"], "security_key": "something"}, + {"ssid_name": "ssid_wpa2_5g", "appliedRadios": ["5G"], "security_key": "something"} + ]}, + "rf": {"5G": + {'band': '5G', + 'country': 'IN', + "channel-mode": "VHT", + 'channel-width': 20, + "channel": 36}, + "2G": + {'band': '2G', + 'country': 'IN', + 'channel-mode': 'VHT', + 'channel-width': 20, + "channel": 5} + }, + "radius": False +} + +@allure.feature("BRIDGE MODE CLIENT CONNECTIVITY") +@pytest.mark.parametrize( + 'setup_profiles', + [setup_params_general5], + indirect=True, + scope="class" +) +@pytest.mark.usefixtures("setup_profiles") +class TestCountryIN20Mhz2GChannel5(object): + """Country code along with Channel and Channel-width Test Bridge mode + pytest -m "country_code and Bridge" + """ + @allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-2546", name="WIFI-6938") + @pytest.mark.wpa2_personal + @pytest.mark.twentyMhz + @pytest.mark.twog + @pytest.mark.channel5 + def test_client_bridge_wpa2_chn5_20Mhz_IN_2g(self, lf_test, station_names_twog, get_configuration): + """Country code Bridge Mode + pytest -m "country_code and twentyMhz and wpa2 and twog and channel5" + """ + profile_data = setup_params_general5["ssid_modes"]["wpa2_personal"][0] + ssid = profile_data["ssid_name"] + security_key = profile_data["security_key"] + security = "wpa2" + mode = "BRIDGE" + band = "twog" + vlan = 1 + channel = setup_params_general5['rf']['2G']['channel'] + + result = lf_test.country_code_channel_division(ssid=ssid, security=security, passkey=security_key, mode=mode, + band=band, station_name=station_names_twog, vlan_id=vlan, + channel=channel,country=356) + if result: + assert True + else: + assert False + + +setup_params_general6 = { + "mode": "BRIDGE", + "ssid_modes": { + "wpa2_personal": [{"ssid_name": "ssid_wpa2_2g", "appliedRadios": ["2G"], "security_key": "something"}, + {"ssid_name": "ssid_wpa2_5g", "appliedRadios": ["5G"], "security_key": "something"} + ]}, + "rf": {"5G": + {'band': '5G', + 'country': 'IN', + "channel-mode": "VHT", + 'channel-width': 20, + "channel": 36}, + "2G": + {'band': '2G', + 'country': 'IN', + 'channel-mode': 'VHT', + 'channel-width': 20, + "channel": 6} + }, + "radius": False +} + +@allure.feature("BRIDGE MODE CLIENT CONNECTIVITY") +@pytest.mark.parametrize( + 'setup_profiles', + [setup_params_general6], + indirect=True, + scope="class" +) +@pytest.mark.usefixtures("setup_profiles") +class TestCountryIN20Mhz2GChannel6(object): + """Country code along with Channel and Channel-width Test Bridge mode + pytest -m "country_code and Bridge" + """ + @allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-2546", name="WIFI-6938") + @pytest.mark.wpa2_personal + @pytest.mark.twentyMhz + @pytest.mark.twog + @pytest.mark.channel6 + def test_client_bridge_wpa2_chn6_20Mhz_IN_2g(self, lf_test, station_names_twog, get_configuration): + """Country code Bridge Mode + pytest -m "country_code and twentyMhz and wpa2 and twog and channel6" + """ + profile_data = setup_params_general6["ssid_modes"]["wpa2_personal"][0] + ssid = profile_data["ssid_name"] + security_key = profile_data["security_key"] + security = "wpa2" + mode = "BRIDGE" + band = "twog" + vlan = 1 + channel = setup_params_general6['rf']['2G']['channel'] + + result = lf_test.country_code_channel_division(ssid=ssid, security=security, passkey=security_key, mode=mode, + band=band, station_name=station_names_twog, vlan_id=vlan, + channel=channel,country=356) + if result: + assert True + else: + assert False + + +setup_params_general7 = { + "mode": "BRIDGE", + "ssid_modes": { + "wpa2_personal": [{"ssid_name": "ssid_wpa2_2g", "appliedRadios": ["2G"], "security_key": "something"}, + {"ssid_name": "ssid_wpa2_5g", "appliedRadios": ["5G"], "security_key": "something"} + ]}, + "rf": {"5G": + {'band': '5G', + 'country': 'IN', + "channel-mode": "VHT", + 'channel-width': 20, + "channel": 36}, + "2G": + {'band': '2G', + 'country': 'IN', + 'channel-mode': 'VHT', + 'channel-width': 20, + "channel": 7} + }, + "radius": False +} + +@allure.feature("BRIDGE MODE CLIENT CONNECTIVITY") +@pytest.mark.parametrize( + 'setup_profiles', + [setup_params_general7], + indirect=True, + scope="class" +) +@pytest.mark.usefixtures("setup_profiles") +class TestCountryIN20Mhz2GChannel7(object): + """Country code along with Channel and Channel-width Test Bridge mode + pytest -m "country_code and Bridge" + """ + @allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-2546", name="WIFI-6938") + @pytest.mark.wpa2_personal + @pytest.mark.twentyMhz + @pytest.mark.twog + @pytest.mark.channel7 + def test_client_bridge_wpa2_chn7_20Mhz_IN_2g(self, lf_test, station_names_twog, get_configuration): + """Country code Bridge Mode + pytest -m "country_code and twentyMhz and wpa2 and twog and channel7" + """ + profile_data = setup_params_general7["ssid_modes"]["wpa2_personal"][0] + ssid = profile_data["ssid_name"] + security_key = profile_data["security_key"] + security = "wpa2" + mode = "BRIDGE" + band = "twog" + vlan = 1 + channel = setup_params_general7['rf']['2G']['channel'] + + result = lf_test.country_code_channel_division(ssid=ssid, security=security, passkey=security_key, mode=mode, + band=band, station_name=station_names_twog, vlan_id=vlan, + channel=channel,country=356) + if result: + assert True + else: + assert False + + +setup_params_general8 = { + "mode": "BRIDGE", + "ssid_modes": { + "wpa2_personal": [{"ssid_name": "ssid_wpa2_2g", "appliedRadios": ["2G"], "security_key": "something"}, + {"ssid_name": "ssid_wpa2_5g", "appliedRadios": ["5G"], "security_key": "something"} + ]}, + "rf": {"5G": + {'band': '5G', + 'country': 'IN', + "channel-mode": "VHT", + 'channel-width': 20, + "channel": 36}, + "2G": + {'band': '2G', + 'country': 'IN', + 'channel-mode': 'VHT', + 'channel-width': 20, + "channel": 8} + }, + "radius": False +} + +@allure.feature("BRIDGE MODE CLIENT CONNECTIVITY") +@pytest.mark.parametrize( + 'setup_profiles', + [setup_params_general8], + indirect=True, + scope="class" +) +@pytest.mark.usefixtures("setup_profiles") +class TestCountryIN20Mhz2GChannel8(object): + """Country code along with Channel and Channel-width Test Bridge mode + pytest -m "country_code and Bridge" + """ + @allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-2546", name="WIFI-6938") + @pytest.mark.wpa2_personal + @pytest.mark.twentyMhz + @pytest.mark.twog + @pytest.mark.channel8 + def test_client_bridge_wpa2_chn8_20Mhz_IN_2g(self, lf_test, station_names_twog, get_configuration): + """Country code Bridge Mode + pytest -m "country_code and twentyMhz and wpa2 and twog and channel8" + """ + profile_data = setup_params_general8["ssid_modes"]["wpa2_personal"][0] + ssid = profile_data["ssid_name"] + security_key = profile_data["security_key"] + security = "wpa2" + mode = "BRIDGE" + band = "twog" + vlan = 1 + channel = setup_params_general8['rf']['2G']['channel'] + + result = lf_test.country_code_channel_division(ssid=ssid, security=security, passkey=security_key, mode=mode, + band=band, station_name=station_names_twog, vlan_id=vlan, + channel=channel,country=356) + if result: + assert True + else: + assert False + + +setup_params_general9 = { + "mode": "BRIDGE", + "ssid_modes": { + "wpa2_personal": [{"ssid_name": "ssid_wpa2_2g", "appliedRadios": ["2G"], "security_key": "something"}, + {"ssid_name": "ssid_wpa2_5g", "appliedRadios": ["5G"], "security_key": "something"} + ]}, + "rf": {"5G": + {'band': '5G', + 'country': 'IN', + "channel-mode": "VHT", + 'channel-width': 20, + "channel": 36}, + "2G": + {'band': '2G', + 'country': 'IN', + 'channel-mode': 'VHT', + 'channel-width': 20, + "channel": 9} + }, + "radius": False +} + +@allure.feature("BRIDGE MODE CLIENT CONNECTIVITY") +@pytest.mark.parametrize( + 'setup_profiles', + [setup_params_general9], + indirect=True, + scope="class" +) +@pytest.mark.usefixtures("setup_profiles") +class TestCountryIN20Mhz2GChannel9(object): + """Country code along with Channel and Channel-width Test Bridge mode + pytest -m "country_code and Bridge" + """ + @allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-2546", name="WIFI-6938") + @pytest.mark.wpa2_personal + @pytest.mark.twentyMhz + @pytest.mark.twog + @pytest.mark.channel9 + def test_client_bridge_wpa2_chn9_20Mhz_IN_2g(self, lf_test, station_names_twog, get_configuration): + """Country code Bridge Mode + pytest -m "country_code and twentyMhz and wpa2 and twog and channel9" + """ + profile_data = setup_params_general9["ssid_modes"]["wpa2_personal"][0] + ssid = profile_data["ssid_name"] + security_key = profile_data["security_key"] + security = "wpa2" + mode = "BRIDGE" + band = "twog" + vlan = 1 + channel = setup_params_general9['rf']['2G']['channel'] + + result = lf_test.country_code_channel_division(ssid=ssid, security=security, passkey=security_key, mode=mode, + band=band, station_name=station_names_twog, vlan_id=vlan, + channel=channel,country=356) + if result: + assert True + else: + assert False + + +setup_params_general10 = { + "mode": "BRIDGE", + "ssid_modes": { + "wpa2_personal": [{"ssid_name": "ssid_wpa2_2g", "appliedRadios": ["2G"], "security_key": "something"}, + {"ssid_name": "ssid_wpa2_5g", "appliedRadios": ["5G"], "security_key": "something"} + ]}, + "rf": {"5G": + {'band': '5G', + 'country': 'IN', + "channel-mode": "VHT", + 'channel-width': 20, + "channel": 36}, + "2G": + {'band': '2G', + 'country': 'IN', + 'channel-mode': 'VHT', + 'channel-width': 20, + "channel": 10} + }, + "radius": False +} + +@allure.feature("BRIDGE MODE CLIENT CONNECTIVITY") +@pytest.mark.parametrize( + 'setup_profiles', + [setup_params_general10], + indirect=True, + scope="class" +) +@pytest.mark.usefixtures("setup_profiles") +class TestCountryIN20Mhz2GChannel10(object): + """Country code along with Channel and Channel-width Test Bridge mode + pytest -m "country_code and Bridge" + """ + @allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-2546", name="WIFI-6938") + @pytest.mark.wpa2_personal + @pytest.mark.twentyMhz + @pytest.mark.twog + @pytest.mark.channel10 + def test_client_bridge_wpa2_chn10_20Mhz_IN_2g(self, lf_test, station_names_twog, get_configuration): + """Country code Bridge Mode + pytest -m "country_code and twentyMhz and wpa2 and twog and channel10" + """ + profile_data = setup_params_general10["ssid_modes"]["wpa2_personal"][0] + ssid = profile_data["ssid_name"] + security_key = profile_data["security_key"] + security = "wpa2" + mode = "BRIDGE" + band = "twog" + vlan = 1 + channel = setup_params_general10['rf']['2G']['channel'] + + result = lf_test.country_code_channel_division(ssid=ssid, security=security, passkey=security_key, mode=mode, + band=band, station_name=station_names_twog, vlan_id=vlan, + channel=channel,country=356) + if result: + assert True + else: + assert False + + +setup_params_general11 = { + "mode": "BRIDGE", + "ssid_modes": { + "wpa2_personal": [{"ssid_name": "ssid_wpa2_2g", "appliedRadios": ["2G"], "security_key": "something"}, + {"ssid_name": "ssid_wpa2_5g", "appliedRadios": ["5G"], "security_key": "something"} + ]}, + "rf": {"5G": + {'band': '5G', + 'country': 'IN', + "channel-mode": "VHT", + 'channel-width': 20, + "channel": 36}, + "2G": + {'band': '2G', + 'country': 'IN', + 'channel-mode': 'VHT', + 'channel-width': 20, + "channel": 11} + }, + "radius": False +} + +@allure.feature("BRIDGE MODE CLIENT CONNECTIVITY") +@pytest.mark.parametrize( + 'setup_profiles', + [setup_params_general11], + indirect=True, + scope="class" +) +@pytest.mark.usefixtures("setup_profiles") +class TestCountryIN20Mhz2GChannel11(object): + """Country code along with Channel and Channel-width Test Bridge mode + pytest -m "country_code and Bridge" + """ + @allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-2546", name="WIFI-6938") + @pytest.mark.wpa2_personal + @pytest.mark.twentyMhz + @pytest.mark.twog + @pytest.mark.channel11 + def test_client_bridge_wpa2_chn11_20Mhz_IN_2g(self, lf_test, station_names_twog, get_configuration): + """Country code Bridge Mode + pytest -m "country_code and twentyMhz and wpa2 and twog and channel11" + """ + profile_data = setup_params_general11["ssid_modes"]["wpa2_personal"][0] + ssid = profile_data["ssid_name"] + security_key = profile_data["security_key"] + security = "wpa2" + mode = "BRIDGE" + band = "twog" + vlan = 1 + channel = setup_params_general11['rf']['2G']['channel'] + + result = lf_test.country_code_channel_division(ssid=ssid, security=security, passkey=security_key, mode=mode, + band=band, station_name=station_names_twog, vlan_id=vlan, + channel=channel,country=356) + if result: + assert True + else: + assert False + + +# setup_params_general12 = { +# "mode": "BRIDGE", +# "ssid_modes": { +# "wpa2_personal": [{"ssid_name": "ssid_wpa2_2g", "appliedRadios": ["2G"], "security_key": "something"}, +# ]}, +# "rf": {"2G": +# {'band': '2G', +# 'country': 'IN', +# 'channel-mode': 'VHT', +# 'channel-width': 20, +# "channel": 12} +# }, +# "radius": False +# } +# +# @allure.feature("BRIDGE MODE CLIENT CONNECTIVITY") +# @pytest.mark.parametrize( +# 'setup_profiles', +# [setup_params_general12], +# indirect=True, +# scope="class" +# ) +# @pytest.mark.usefixtures("setup_profiles") +# class TestCountryIN20Mhz2GChannel12(object): +# """Country code along with Channel and Channel-width Test Bridge mode +# pytest -m "country_code and Bridge" +# """ +# @allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-2546", name="WIFI-6938") +# @pytest.mark.wpa2_personal +# @pytest.mark.twentyMhz +# @pytest.mark.twog +# @pytest.mark.channel12 +# def test_client_bridge_wpa2_chn12_20Mhz_IN_2g(self, lf_test, station_names_twog, get_configuration): +# """Country code Bridge Mode +# pytest -m "country_code and twentyMhz and wpa2 and twog and channel12" +# """ +# profile_data = setup_params_general12["ssid_modes"]["wpa2_personal"][0] +# ssid = profile_data["ssid_name"] +# security_key = profile_data["security_key"] +# security = "wpa2" +# mode = "BRIDGE" +# band = "twog" +# vlan = 1 +# channel = setup_params_general12['rf']['2G']['channel'] +# +# result = lf_test.country_code_channel_division(ssid=ssid, security=security, passkey=security_key, mode=mode, +# band=band, station_name=station_names_twog, vlan_id=vlan, +# channel=channel) +# if result: +# assert True +# else: +# assert False +# +# +# setup_params_general13 = { +# "mode": "BRIDGE", +# "ssid_modes": { +# "wpa2_personal": [{"ssid_name": "ssid_wpa2_2g", "appliedRadios": ["2G"], "security_key": "something"}, +# ]}, +# "rf": {"2G": +# {'band': '2G', +# 'country': 'IN', +# 'channel-mode': 'VHT', +# 'channel-width': 20, +# "channel": 13} +# }, +# "radius": False +# } +# +# @allure.feature("BRIDGE MODE CLIENT CONNECTIVITY") +# @pytest.mark.parametrize( +# 'setup_profiles', +# [setup_params_general13], +# indirect=True, +# scope="class" +# ) +# @pytest.mark.usefixtures("setup_profiles") +# class TestCountryIN20Mhz2GChannel13(object): +# """Country code along with Channel and Channel-width Test Bridge mode +# pytest -m "country_code and Bridge" +# """ +# @allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-2546", name="WIFI-6938") +# @pytest.mark.wpa2_personal +# @pytest.mark.twentyMhz +# @pytest.mark.twog +# @pytest.mark.channel13 +# def test_client_bridge_wpa2_chn13_20Mhz_IN_2g(self, lf_test, station_names_twog, get_configuration): +# """Country code Bridge Mode +# pytest -m "country_code and twentyMhz and wpa2 and twog and channel13" +# """ +# profile_data = setup_params_general13["ssid_modes"]["wpa2_personal"][0] +# ssid = profile_data["ssid_name"] +# security_key = profile_data["security_key"] +# security = "wpa2" +# mode = "BRIDGE" +# band = "twog" +# vlan = 1 +# channel = setup_params_general13['rf']['2G']['channel'] +# +# result = lf_test.country_code_channel_division(ssid=ssid, security=security, passkey=security_key, mode=mode, +# band=band, station_name=station_names_twog, vlan_id=vlan, +# channel=channel) +# if result: +# assert True +# else: +# assert False \ No newline at end of file diff --git a/tests/e2e/basic/validation_of_operating_modes/country_code_channel_division/country_code_IN/channel_width_40Mhz/__init__.py b/tests/e2e/basic/validation_of_operating_modes/country_code_channel_division/country_code_IN/channel_width_40Mhz/__init__.py new file mode 100644 index 000000000..e69de29bb diff --git a/tests/e2e/basic/validation_of_operating_modes/country_code_channel_division/country_code_IN/channel_width_40Mhz/fiveg_band/__init__.py b/tests/e2e/basic/validation_of_operating_modes/country_code_channel_division/country_code_IN/channel_width_40Mhz/fiveg_band/__init__.py new file mode 100644 index 000000000..e69de29bb diff --git a/tests/e2e/basic/validation_of_operating_modes/country_code_channel_division/country_code_IN/channel_width_40Mhz/fiveg_band/test_IN_40Mhz_5g.py b/tests/e2e/basic/validation_of_operating_modes/country_code_channel_division/country_code_IN/channel_width_40Mhz/fiveg_band/test_IN_40Mhz_5g.py new file mode 100644 index 000000000..9a52ccc4d --- /dev/null +++ b/tests/e2e/basic/validation_of_operating_modes/country_code_channel_division/country_code_IN/channel_width_40Mhz/fiveg_band/test_IN_40Mhz_5g.py @@ -0,0 +1,505 @@ +""" + + Performance Test: Country code along with Channel and Channel-width Test: Bridge Mode + pytest -m "country_code and Bridge" + +""" + + +import os +import pytest +import allure + +pytestmark = [pytest.mark.country_code, pytest.mark.Bridge, pytest.mark.wpa2, pytest.mark.IN] + +setup_params_general1 = { + "mode": "BRIDGE", + "ssid_modes": { + "wpa2_personal": [{"ssid_name": "ssid_wpa2_2g", "appliedRadios": ["2G"], "security_key": "something"}, + {"ssid_name": "ssid_wpa2_5g", "appliedRadios": ["5G"], "security_key": "something"} + ]}, + "rf": {"5G": + {'band': '5G', + 'country': 'IN', + "channel-mode": "VHT", + 'channel-width': 40, + "channel": 36}, + "2G": + {'band': '2G', + 'country': 'IN', + "channel-mode": "VHT", + 'channel-width': 40, + "channel": 1} + }, + "radius": False +} + + +@allure.feature("BRIDGE MODE CLIENT CONNECTIVITY") +@pytest.mark.parametrize( + 'setup_profiles', + [setup_params_general1], + indirect=True, + scope="class" +) +@pytest.mark.usefixtures("setup_profiles") +class TestCountryIN40Mhz5GChannel36(object): + """Country code along with Channel and Channel-width Test Bridge mode + pytest -m "country_code and Bridge" + """ + @allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-2546", name="WIFI-6938") + @pytest.mark.wpa2_personal + @pytest.mark.fourtyMhz + @pytest.mark.fiveg + @pytest.mark.channel36 + def test_client_bridge_wpa2_chn36_40Mhz_IN_5g(self, lf_test, station_names_fiveg, get_configuration): + """Country code Bridge Mode + pytest -m "country_code and fourtyMhz and wpa2 and fiveg and channel36" + """ + profile_data = setup_params_general1["ssid_modes"]["wpa2_personal"][1] + ssid = profile_data["ssid_name"] + security_key = profile_data["security_key"] + security = "wpa2" + mode = "BRIDGE" + band = "fiveg" + vlan = 1 + channel = setup_params_general1['rf']['5G']['channel'] + + result = lf_test.country_code_channel_division(ssid=ssid, security=security, passkey=security_key, mode=mode, + band=band, station_name=station_names_fiveg, vlan_id=vlan, + channel=channel,country=356) + if result: + assert True + else: + assert False + + +setup_params_general2 = { + "mode": "BRIDGE", + "ssid_modes": { + "wpa2_personal": [{"ssid_name": "ssid_wpa2_2g", "appliedRadios": ["2G"], "security_key": "something"}, + {"ssid_name": "ssid_wpa2_5g", "appliedRadios": ["5G"], "security_key": "something"} + ]}, + "rf": {"5G": + {'band': '5G', + 'country': 'IN', + 'channel-mode': 'VHT', + 'channel-width': 40, + "channel": 44}, + "2G": + {'band': '2G', + 'country': 'IN', + "channel-mode": "VHT", + 'channel-width': 40, + "channel": 1} + }, + "radius": False +} + + +@allure.feature("BRIDGE MODE CLIENT CONNECTIVITY") +@pytest.mark.parametrize( + 'setup_profiles', + [setup_params_general2], + indirect=True, + scope="class" +) +@pytest.mark.usefixtures("setup_profiles") +class TestCountryIN40Mhz5GChannel44(object): + """Country code along with Channel and Channel-width Test Bridge mode + pytest -m "country_code and Bridge" + """ + @allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-2546", name="WIFI-6938") + @pytest.mark.wpa2_personal + @pytest.mark.fourtyMhz + @pytest.mark.fiveg + @pytest.mark.channel44 + def test_client_bridge_wpa2_chn44_40Mhz_IN_5g(self, lf_test, station_names_fiveg, get_configuration): + """Country code Bridge Mode + pytest -m "country_code and fourtyMhz and wpa2 and fiveg and channel44" + """ + profile_data = setup_params_general2["ssid_modes"]["wpa2_personal"][1] + ssid = profile_data["ssid_name"] + security_key = profile_data["security_key"] + security = "wpa2" + mode = "BRIDGE" + band = "fiveg" + vlan = 1 + channel = setup_params_general2['rf']['5G']['channel'] + + result = lf_test.country_code_channel_division(ssid=ssid, security=security, passkey=security_key, mode=mode, + band=band, station_name=station_names_fiveg, vlan_id=vlan, + channel=channel,country=356) + if result: + assert True + else: + assert False + + +setup_params_general3 = { + "mode": "BRIDGE", + "ssid_modes": { + "wpa2_personal": [{"ssid_name": "ssid_wpa2_2g", "appliedRadios": ["2G"], "security_key": "something"}, + {"ssid_name": "ssid_wpa2_5g", "appliedRadios": ["5G"], "security_key": "something"} + ]}, + "rf": {"5G": + {'band': '5G', + 'country': 'IN', + 'channel-mode': 'VHT', + 'channel-width': 40, + "channel": 52}, + "2G": + {'band': '2G', + 'country': 'IN', + "channel-mode": "VHT", + 'channel-width': 40, + "channel": 1} + }, + "radius": False +} + + +@allure.feature("BRIDGE MODE CLIENT CONNECTIVITY") +@pytest.mark.parametrize( + 'setup_profiles', + [setup_params_general3], + indirect=True, + scope="class" +) +@pytest.mark.usefixtures("setup_profiles") +class TestCountryIN40Mhz5GChannel52(object): + """Country code along with Channel and Channel-width Test Bridge mode + pytest -m "country_code and Bridge" + """ + @allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-2546", name="WIFI-6938") + @pytest.mark.wpa2_personal + @pytest.mark.fourtyMhz + @pytest.mark.fiveg + @pytest.mark.channel52 + def test_client_bridge_wpa2_chn52_40Mhz_IN_5g(self, lf_test, station_names_fiveg, get_configuration): + """Country code Bridge Mode + pytest -m "country_code and fourtyMhz and wpa2 and fiveg and channel52" + """ + profile_data = setup_params_general3["ssid_modes"]["wpa2_personal"][1] + ssid = profile_data["ssid_name"] + security_key = profile_data["security_key"] + security = "wpa2" + mode = "BRIDGE" + band = "fiveg" + vlan = 1 + channel = setup_params_general3['rf']['5G']['channel'] + + result = lf_test.country_code_channel_division(ssid=ssid, security=security, passkey=security_key, mode=mode, + band=band, station_name=station_names_fiveg, vlan_id=vlan, + channel=channel,country=356) + if result: + assert True + else: + assert False + + +setup_params_general4 = { + "mode": "BRIDGE", + "ssid_modes": { + "wpa2_personal": [{"ssid_name": "ssid_wpa2_2g", "appliedRadios": ["2G"], "security_key": "something"}, + {"ssid_name": "ssid_wpa2_5g", "appliedRadios": ["5G"], "security_key": "something"} + ]}, + "rf": {"5G": + {'band': '5G', + 'country': 'IN', + 'channel-mode': 'VHT', + 'channel-width': 40, + "channel": 60}, + "2G": + {'band': '2G', + 'country': 'IN', + "channel-mode": "VHT", + 'channel-width': 40, + "channel": 1} + }, + "radius": False +} + +@allure.feature("BRIDGE MODE CLIENT CONNECTIVITY") +@pytest.mark.parametrize( + 'setup_profiles', + [setup_params_general4], + indirect=True, + scope="class" +) +@pytest.mark.usefixtures("setup_profiles") +class TestCountryIN40Mhz5GChannel60(object): + """Country code along with Channel and Channel-width Test Bridge mode + pytest -m "country_code and Bridge" + """ + @allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-2546", name="WIFI-6938") + @pytest.mark.wpa2_personal + @pytest.mark.fourtyMhz + @pytest.mark.fiveg + @pytest.mark.channel60 + def test_client_bridge_wpa2_chn60_40Mhz_IN_5g(self, lf_test, station_names_fiveg, get_configuration): + """Country code Bridge Mode + pytest -m "country_code and fourtyMhz and wpa2 and fiveg and channel60" + """ + profile_data = setup_params_general4["ssid_modes"]["wpa2_personal"][1] + ssid = profile_data["ssid_name"] + security_key = profile_data["security_key"] + security = "wpa2" + mode = "BRIDGE" + band = "fiveg" + vlan = 1 + channel = setup_params_general4['rf']['5G']['channel'] + + result = lf_test.country_code_channel_division(ssid=ssid, security=security, passkey=security_key, mode=mode, + band=band, station_name=station_names_fiveg, vlan_id=vlan, + channel=channel,country=356) + if result: + assert True + else: + assert False + + +setup_params_general5 = { + "mode": "BRIDGE", + "ssid_modes": { + "wpa2_personal": [{"ssid_name": "ssid_wpa2_2g", "appliedRadios": ["2G"], "security_key": "something"}, + {"ssid_name": "ssid_wpa2_5g", "appliedRadios": ["5G"], "security_key": "something"} + ]}, + "rf": {"5G": + {'band': '5G', + 'country': 'IN', + 'channel-mode': 'VHT', + 'channel-width': 40, + "channel": 100}, + "2G": + {'band': '2G', + 'country': 'IN', + "channel-mode": "VHT", + 'channel-width': 40, + "channel": 1} + }, + "radius": False +} + +@allure.feature("BRIDGE MODE CLIENT CONNECTIVITY") +@pytest.mark.parametrize( + 'setup_profiles', + [setup_params_general5], + indirect=True, + scope="class" +) +@pytest.mark.usefixtures("setup_profiles") +class TestCountryIN40Mhz5GChannel100(object): + """Country code along with Channel and Channel-width Test Bridge mode + pytest -m "country_code and Bridge" + """ + @allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-2546", name="WIFI-6938") + @pytest.mark.wpa2_personal + @pytest.mark.fourtyMhz + @pytest.mark.fiveg + @pytest.mark.channel100 + def test_client_bridge_wpa2_chn100_40Mhz_IN_5g(self, lf_test, station_names_fiveg, get_configuration): + """Country code Bridge Mode + pytest -m "country_code and fourtyMhz and wpa2 and fiveg and channel100" + """ + profile_data = setup_params_general5["ssid_modes"]["wpa2_personal"][1] + ssid = profile_data["ssid_name"] + security_key = profile_data["security_key"] + security = "wpa2" + mode = "BRIDGE" + band = "fiveg" + vlan = 1 + channel = setup_params_general5['rf']['5G']['channel'] + + result = lf_test.country_code_channel_division(ssid=ssid, security=security, passkey=security_key, mode=mode, + band=band, station_name=station_names_fiveg, vlan_id=vlan, + channel=channel,country=356) + if result: + assert True + else: + assert False + + +setup_params_general6 = { + "mode": "BRIDGE", + "ssid_modes": { + "wpa2_personal": [{"ssid_name": "ssid_wpa2_2g", "appliedRadios": ["2G"], "security_key": "something"}, + {"ssid_name": "ssid_wpa2_5g", "appliedRadios": ["5G"], "security_key": "something"} + ]}, + "rf": {"5G": + {'band': '5G', + 'country': 'IN', + 'channel-mode': 'VHT', + 'channel-width': 40, + "channel": 108}, + "2G": + {'band': '2G', + 'country': 'IN', + "channel-mode": "VHT", + 'channel-width': 40, + "channel": 1} + }, + "radius": False +} + +@allure.feature("BRIDGE MODE CLIENT CONNECTIVITY") +@pytest.mark.parametrize( + 'setup_profiles', + [setup_params_general6], + indirect=True, + scope="class" +) +@pytest.mark.usefixtures("setup_profiles") +class TestCountryIN40Mhz5GChannel108(object): + """Country code along with Channel and Channel-width Test Bridge mode + pytest -m "country_code and Bridge" + """ + @allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-2546", name="WIFI-6938") + @pytest.mark.wpa2_personal + @pytest.mark.fourtyMhz + @pytest.mark.fiveg + @pytest.mark.channel108 + def test_client_bridge_wpa2_chn108_40Mhz_IN_5g(self, lf_test, station_names_fiveg, get_configuration): + """Country code Bridge Mode + pytest -m "country_code and fourtyMhz and wpa2 and fiveg and channel108" + """ + profile_data = setup_params_general6["ssid_modes"]["wpa2_personal"][1] + ssid = profile_data["ssid_name"] + security_key = profile_data["security_key"] + security = "wpa2" + mode = "BRIDGE" + band = "fiveg" + vlan = 1 + channel = setup_params_general6['rf']['5G']['channel'] + + result = lf_test.country_code_channel_division(ssid=ssid, security=security, passkey=security_key, mode=mode, + band=band, station_name=station_names_fiveg, vlan_id=vlan, + channel=channel,country=356) + if result: + assert True + else: + assert False + + +setup_params_general7 = { + "mode": "BRIDGE", + "ssid_modes": { + "wpa2_personal": [{"ssid_name": "ssid_wpa2_2g", "appliedRadios": ["2G"], "security_key": "something"}, + {"ssid_name": "ssid_wpa2_5g", "appliedRadios": ["5G"], "security_key": "something"} + ]}, + "rf": {"5G": + {'band': '5G', + 'country': 'IN', + 'channel-mode': 'VHT', + 'channel-width': 40, + "channel": 132}, + "2G": + {'band': '2G', + 'country': 'IN', + "channel-mode": "VHT", + 'channel-width': 40, + "channel": 1} + }, + "radius": False +} + +@allure.feature("BRIDGE MODE CLIENT CONNECTIVITY") +@pytest.mark.parametrize( + 'setup_profiles', + [setup_params_general7], + indirect=True, + scope="class" +) +@pytest.mark.usefixtures("setup_profiles") +class TestCountryIN40Mhz5GChannel132(object): + """Country code along with Channel and Channel-width Test Bridge mode + pytest -m "country_code and Bridge" + """ + @allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-2546", name="WIFI-6938") + @pytest.mark.wpa2_personal + @pytest.mark.fourtyMhz + @pytest.mark.fiveg + @pytest.mark.channel132 + def test_client_bridge_wpa2_chn132_40Mhz_IN_5g(self, lf_test, station_names_fiveg, get_configuration): + """Country code Bridge Mode + pytest -m "country_code and fourtyMhz and wpa2 and fiveg and channel132" + """ + profile_data = setup_params_general7["ssid_modes"]["wpa2_personal"][1] + ssid = profile_data["ssid_name"] + security_key = profile_data["security_key"] + security = "wpa2" + mode = "BRIDGE" + band = "fiveg" + vlan = 1 + channel = setup_params_general7['rf']['5G']['channel'] + + result = lf_test.country_code_channel_division(ssid=ssid, security=security, passkey=security_key, mode=mode, + band=band, station_name=station_names_fiveg, vlan_id=vlan, + channel=channel,country=356) + if result: + assert True + else: + assert False + + +setup_params_general8 = { + "mode": "BRIDGE", + "ssid_modes": { + "wpa2_personal": [{"ssid_name": "ssid_wpa2_2g", "appliedRadios": ["2G"], "security_key": "something"}, + {"ssid_name": "ssid_wpa2_5g", "appliedRadios": ["5G"], "security_key": "something"} + ]}, + "rf": {"5G": + {'band': '5G', + 'country': 'IN', + 'channel-mode': 'VHT', + 'channel-width': 40, + "channel": 140}, + "2G": + {'band': '2G', + 'country': 'IN', + "channel-mode": "VHT", + 'channel-width': 40, + "channel": 1} + }, + "radius": False +} + +@allure.feature("BRIDGE MODE CLIENT CONNECTIVITY") +@pytest.mark.parametrize( + 'setup_profiles', + [setup_params_general8], + indirect=True, + scope="class" +) +@pytest.mark.usefixtures("setup_profiles") +class TestCountryIN40Mhz5GChannel140(object): + """Country code along with Channel and Channel-width Test Bridge mode + pytest -m "country_code and Bridge" + """ + @allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-2546", name="WIFI-6938") + @pytest.mark.wpa2_personal + @pytest.mark.fourtyMhz + @pytest.mark.fiveg + @pytest.mark.channel140 + def test_client_bridge_wpa2_chn140_40Mhz_IN_5g(self, lf_test, station_names_fiveg, get_configuration): + """Country code Bridge Mode + pytest -m "country_code and fourtyMhz and wpa2 and fiveg and channel140" + """ + profile_data = setup_params_general8["ssid_modes"]["wpa2_personal"][1] + ssid = profile_data["ssid_name"] + security_key = profile_data["security_key"] + security = "wpa2" + mode = "BRIDGE" + band = "fiveg" + vlan = 1 + channel = setup_params_general8['rf']['5G']['channel'] + + result = lf_test.country_code_channel_division(ssid=ssid, security=security, passkey=security_key, mode=mode, + band=band, station_name=station_names_fiveg, vlan_id=vlan, + channel=channel,country=356) + if result: + assert True + else: + assert False + + diff --git a/tests/e2e/basic/validation_of_operating_modes/country_code_channel_division/country_code_IN/channel_width_40Mhz/twog_band/__init__.py b/tests/e2e/basic/validation_of_operating_modes/country_code_channel_division/country_code_IN/channel_width_40Mhz/twog_band/__init__.py new file mode 100644 index 000000000..e69de29bb diff --git a/tests/e2e/basic/validation_of_operating_modes/country_code_channel_division/country_code_IN/channel_width_40Mhz/twog_band/test_IN_40Mhz_2g.py b/tests/e2e/basic/validation_of_operating_modes/country_code_channel_division/country_code_IN/channel_width_40Mhz/twog_band/test_IN_40Mhz_2g.py new file mode 100644 index 000000000..5cb9909c3 --- /dev/null +++ b/tests/e2e/basic/validation_of_operating_modes/country_code_channel_division/country_code_IN/channel_width_40Mhz/twog_band/test_IN_40Mhz_2g.py @@ -0,0 +1,794 @@ +""" + + Performance Test: Country code along with Channel and Channel-width Test: Bridge Mode + pytest -m "country_code and Bridge" + +""" + + +import os +import pytest +import allure + +pytestmark = [pytest.mark.country_code, pytest.mark.Bridge, pytest.mark.wpa2, pytest.mark.IN] + +setup_params_general1 = { + "mode": "BRIDGE", + "ssid_modes": { + "wpa2_personal": [{"ssid_name": "ssid_wpa2_2g", "appliedRadios": ["2G"], "security_key": "something"}, + {"ssid_name": "ssid_wpa2_5g", "appliedRadios": ["5G"], "security_key": "something"} + ]}, + "rf": {"5G": + {'band': '5G', + 'country': 'IN', + "channel-mode": "VHT", + 'channel-width': 40, + "channel": 36}, + "2G": + {'band': '2G', + 'country': 'IN', + "channel-mode": "VHT", + 'channel-width': 40, + "channel": 1} + }, + "radius": False +} + + +@allure.feature("BRIDGE MODE CLIENT CONNECTIVITY") +@pytest.mark.parametrize( + 'setup_profiles', + [setup_params_general1], + indirect=True, + scope="class" +) +@pytest.mark.usefixtures("setup_profiles") +class TestCountryIN40Mhz2GChannel1(object): + """Country code along with Channel and Channel-width Test Bridge mode + pytest -m "country_code and Bridge" + """ + @allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-2546", name="WIFI-6938") + @pytest.mark.wpa2_personal + @pytest.mark.fourtyMhz + @pytest.mark.twog + @pytest.mark.channel1 + def test_client_bridge_wpa2_chn1_40Mhz_IN_2g(self, lf_test, station_names_twog, get_configuration): + """Country code Bridge Mode + pytest -m "country_code and fourtyMhz and wpa2 and twog and channel1" + """ + profile_data = setup_params_general1["ssid_modes"]["wpa2_personal"][0] + ssid = profile_data["ssid_name"] + security_key = profile_data["security_key"] + security = "wpa2" + mode = "BRIDGE" + band = "twog" + vlan = 1 + channel = setup_params_general1['rf']['2G']['channel'] + + result = lf_test.country_code_channel_division(ssid=ssid, security=security, passkey=security_key, mode=mode, + band=band, station_name=station_names_twog, vlan_id=vlan, + channel=channel,country=356) + if result: + assert True + else: + assert False + + +setup_params_general2 = { + "mode": "BRIDGE", + "ssid_modes": { + "wpa2_personal": [{"ssid_name": "ssid_wpa2_2g", "appliedRadios": ["2G"], "security_key": "something"}, + {"ssid_name": "ssid_wpa2_5g", "appliedRadios": ["5G"], "security_key": "something"} + ]}, + "rf": {"5G": + {'band': '5G', + 'country': 'IN', + "channel-mode": "VHT", + 'channel-width': 40, + "channel": 36}, + "2G": + {'band': '2G', + 'country': 'IN', + 'channel-mode': 'VHT', + 'channel-width': 40, + "channel": 2} + }, + "radius": False +} + + +@allure.feature("BRIDGE MODE CLIENT CONNECTIVITY") +@pytest.mark.parametrize( + 'setup_profiles', + [setup_params_general2], + indirect=True, + scope="class" +) +@pytest.mark.usefixtures("setup_profiles") +class TestCountryIN40Mhz2GChannel2(object): + """Country code along with Channel and Channel-width Test Bridge mode + pytest -m "country_code and Bridge" + """ + @allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-2546", name="WIFI-6938") + @pytest.mark.wpa2_personal + @pytest.mark.fourtyMhz + @pytest.mark.twog + @pytest.mark.channel2 + def test_client_bridge_wpa2_chn2_40Mhz_IN_2g(self, lf_test, station_names_twog, get_configuration): + """Country code Bridge Mode + pytest -m "country_code and fourtyMhz and wpa2 and twog and channel2" + """ + profile_data = setup_params_general2["ssid_modes"]["wpa2_personal"][0] + ssid = profile_data["ssid_name"] + security_key = profile_data["security_key"] + security = "wpa2" + mode = "BRIDGE" + band = "twog" + vlan = 1 + channel = setup_params_general2['rf']['2G']['channel'] + + result = lf_test.country_code_channel_division(ssid=ssid, security=security, passkey=security_key, mode=mode, + band=band, station_name=station_names_twog, vlan_id=vlan, + channel=channel,country=356) + if result: + assert True + else: + assert False + + +setup_params_general3 = { + "mode": "BRIDGE", + "ssid_modes": { + "wpa2_personal": [{"ssid_name": "ssid_wpa2_2g", "appliedRadios": ["2G"], "security_key": "something"}, + {"ssid_name": "ssid_wpa2_5g", "appliedRadios": ["5G"], "security_key": "something"} + ]}, + "rf": {"5G": + {'band': '5G', + 'country': 'IN', + "channel-mode": "VHT", + 'channel-width': 40, + "channel": 36}, + "2G": + {'band': '2G', + 'country': 'IN', + 'channel-mode': 'VHT', + 'channel-width': 40, + "channel": 3} + }, + "radius": False +} + + +@allure.feature("BRIDGE MODE CLIENT CONNECTIVITY") +@pytest.mark.parametrize( + 'setup_profiles', + [setup_params_general3], + indirect=True, + scope="class" +) +@pytest.mark.usefixtures("setup_profiles") +class TestCountryIN40Mhz2GChannel3(object): + """Country code along with Channel and Channel-width Test Bridge mode + pytest -m "country_code and Bridge" + """ + @allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-2546", name="WIFI-6938") + @pytest.mark.wpa2_personal + @pytest.mark.fourtyMhz + @pytest.mark.twog + @pytest.mark.channel3 + def test_client_bridge_wpa2_chn3_40Mhz_IN_2g(self, lf_test, station_names_twog, get_configuration): + """Country code Bridge Mode + pytest -m "country_code and fourtyMhz and wpa2 and twog and channel3" + """ + profile_data = setup_params_general3["ssid_modes"]["wpa2_personal"][0] + ssid = profile_data["ssid_name"] + security_key = profile_data["security_key"] + security = "wpa2" + mode = "BRIDGE" + band = "twog" + vlan = 1 + channel = setup_params_general3['rf']['2G']['channel'] + + result = lf_test.country_code_channel_division(ssid=ssid, security=security, passkey=security_key, mode=mode, + band=band, station_name=station_names_twog, vlan_id=vlan, + channel=channel,country=356) + if result: + assert True + else: + assert False + + +setup_params_general4 = { + "mode": "BRIDGE", + "ssid_modes": { + "wpa2_personal": [{"ssid_name": "ssid_wpa2_2g", "appliedRadios": ["2G"], "security_key": "something"}, + {"ssid_name": "ssid_wpa2_5g", "appliedRadios": ["5G"], "security_key": "something"} + ]}, + "rf": {"5G": + {'band': '5G', + 'country': 'IN', + "channel-mode": "VHT", + 'channel-width': 40, + "channel": 36}, + "2G": + {'band': '2G', + 'country': 'IN', + 'channel-mode': 'VHT', + 'channel-width': 40, + "channel": 4} + }, + "radius": False +} + +@allure.feature("BRIDGE MODE CLIENT CONNECTIVITY") +@pytest.mark.parametrize( + 'setup_profiles', + [setup_params_general4], + indirect=True, + scope="class" +) +@pytest.mark.usefixtures("setup_profiles") +class TestCountryIN40Mhz2GChannel4(object): + """Country code along with Channel and Channel-width Test Bridge mode + pytest -m "country_code and Bridge" + """ + @allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-2546", name="WIFI-6938") + @pytest.mark.wpa2_personal + @pytest.mark.fourtyMhz + @pytest.mark.twog + @pytest.mark.channel4 + def test_client_bridge_wpa2_chn4_40Mhz_IN_2g(self, lf_test, station_names_twog, get_configuration): + """Country code Bridge Mode + pytest -m "country_code and fourtyMhz and wpa2 and twog and channel4" + """ + profile_data = setup_params_general4["ssid_modes"]["wpa2_personal"][0] + ssid = profile_data["ssid_name"] + security_key = profile_data["security_key"] + security = "wpa2" + mode = "BRIDGE" + band = "twog" + vlan = 1 + channel = setup_params_general4['rf']['2G']['channel'] + + result = lf_test.country_code_channel_division(ssid=ssid, security=security, passkey=security_key, mode=mode, + band=band, station_name=station_names_twog, vlan_id=vlan, + channel=channel,country=356) + if result: + assert True + else: + assert False + + +setup_params_general5 = { + "mode": "BRIDGE", + "ssid_modes": { + "wpa2_personal": [{"ssid_name": "ssid_wpa2_2g", "appliedRadios": ["2G"], "security_key": "something"}, + {"ssid_name": "ssid_wpa2_5g", "appliedRadios": ["5G"], "security_key": "something"} + ]}, + "rf": {"5G": + {'band': '5G', + 'country': 'IN', + "channel-mode": "VHT", + 'channel-width': 40, + "channel": 36}, + "2G": + {'band': '2G', + 'country': 'IN', + 'channel-mode': 'VHT', + 'channel-width': 40, + "channel": 5} + }, + "radius": False +} + +@allure.feature("BRIDGE MODE CLIENT CONNECTIVITY") +@pytest.mark.parametrize( + 'setup_profiles', + [setup_params_general5], + indirect=True, + scope="class" +) +@pytest.mark.usefixtures("setup_profiles") +class TestCountryIN40Mhz2GChannel5(object): + """Country code along with Channel and Channel-width Test Bridge mode + pytest -m "country_code and Bridge" + """ + @allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-2546", name="WIFI-6938") + @pytest.mark.wpa2_personal + @pytest.mark.fourtyMhz + @pytest.mark.twog + @pytest.mark.channel5 + def test_client_bridge_wpa2_chn5_40Mhz_IN_2g(self, lf_test, station_names_twog, get_configuration): + """Country code Bridge Mode + pytest -m "country_code and fourtyMhz and wpa2 and twog and channel5" + """ + profile_data = setup_params_general5["ssid_modes"]["wpa2_personal"][0] + ssid = profile_data["ssid_name"] + security_key = profile_data["security_key"] + security = "wpa2" + mode = "BRIDGE" + band = "twog" + vlan = 1 + channel = setup_params_general5['rf']['2G']['channel'] + + result = lf_test.country_code_channel_division(ssid=ssid, security=security, passkey=security_key, mode=mode, + band=band, station_name=station_names_twog, vlan_id=vlan, + channel=channel,country=356) + if result: + assert True + else: + assert False + + +setup_params_general6 = { + "mode": "BRIDGE", + "ssid_modes": { + "wpa2_personal": [{"ssid_name": "ssid_wpa2_2g", "appliedRadios": ["2G"], "security_key": "something"}, + {"ssid_name": "ssid_wpa2_5g", "appliedRadios": ["5G"], "security_key": "something"} + ]}, + "rf": {"5G": + {'band': '5G', + 'country': 'IN', + "channel-mode": "VHT", + 'channel-width': 40, + "channel": 36}, + "2G": + {'band': '2G', + 'country': 'IN', + 'channel-mode': 'VHT', + 'channel-width': 40, + "channel": 6} + }, + "radius": False +} + +@allure.feature("BRIDGE MODE CLIENT CONNECTIVITY") +@pytest.mark.parametrize( + 'setup_profiles', + [setup_params_general6], + indirect=True, + scope="class" +) +@pytest.mark.usefixtures("setup_profiles") +class TestCountryIN40Mhz2GChannel6(object): + """Country code along with Channel and Channel-width Test Bridge mode + pytest -m "country_code and Bridge" + """ + @allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-2546", name="WIFI-6938") + @pytest.mark.wpa2_personal + @pytest.mark.fourtyMhz + @pytest.mark.twog + @pytest.mark.channel6 + def test_client_bridge_wpa2_chn6_40Mhz_IN_2g(self, lf_test, station_names_twog, get_configuration): + """Country code Bridge Mode + pytest -m "country_code and fourtyMhz and wpa2 and twog and channel6" + """ + profile_data = setup_params_general6["ssid_modes"]["wpa2_personal"][0] + ssid = profile_data["ssid_name"] + security_key = profile_data["security_key"] + security = "wpa2" + mode = "BRIDGE" + band = "twog" + vlan = 1 + channel = setup_params_general6['rf']['2G']['channel'] + + result = lf_test.country_code_channel_division(ssid=ssid, security=security, passkey=security_key, mode=mode, + band=band, station_name=station_names_twog, vlan_id=vlan, + channel=channel,country=356) + if result: + assert True + else: + assert False + + +setup_params_general7 = { + "mode": "BRIDGE", + "ssid_modes": { + "wpa2_personal": [{"ssid_name": "ssid_wpa2_2g", "appliedRadios": ["2G"], "security_key": "something"}, + {"ssid_name": "ssid_wpa2_5g", "appliedRadios": ["5G"], "security_key": "something"} + ]}, + "rf": {"5G": + {'band': '5G', + 'country': 'IN', + "channel-mode": "VHT", + 'channel-width': 40, + "channel": 36}, + "2G": + {'band': '2G', + 'country': 'IN', + 'channel-mode': 'VHT', + 'channel-width': 40, + "channel": 7} + }, + "radius": False +} + +@allure.feature("BRIDGE MODE CLIENT CONNECTIVITY") +@pytest.mark.parametrize( + 'setup_profiles', + [setup_params_general7], + indirect=True, + scope="class" +) +@pytest.mark.usefixtures("setup_profiles") +class TestCountryIN40Mhz2GChannel7(object): + """Country code along with Channel and Channel-width Test Bridge mode + pytest -m "country_code and Bridge" + """ + @allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-2546", name="WIFI-6938") + @pytest.mark.wpa2_personal + @pytest.mark.fourtyMhz + @pytest.mark.twog + @pytest.mark.channel7 + def test_client_bridge_wpa2_chn7_40Mhz_IN_2g(self, lf_test, station_names_twog, get_configuration): + """Country code Bridge Mode + pytest -m "country_code and fourtyMhz and wpa2 and twog and channel7" + """ + profile_data = setup_params_general7["ssid_modes"]["wpa2_personal"][0] + ssid = profile_data["ssid_name"] + security_key = profile_data["security_key"] + security = "wpa2" + mode = "BRIDGE" + band = "twog" + vlan = 1 + channel = setup_params_general7['rf']['2G']['channel'] + + result = lf_test.country_code_channel_division(ssid=ssid, security=security, passkey=security_key, mode=mode, + band=band, station_name=station_names_twog, vlan_id=vlan, + channel=channel,country=356) + if result: + assert True + else: + assert False + + +setup_params_general8 = { + "mode": "BRIDGE", + "ssid_modes": { + "wpa2_personal": [{"ssid_name": "ssid_wpa2_2g", "appliedRadios": ["2G"], "security_key": "something"}, + {"ssid_name": "ssid_wpa2_5g", "appliedRadios": ["5G"], "security_key": "something"} + ]}, + "rf": {"5G": + {'band': '5G', + 'country': 'IN', + "channel-mode": "VHT", + 'channel-width': 40, + "channel": 36}, + "2G": + {'band': '2G', + 'country': 'IN', + 'channel-mode': 'VHT', + 'channel-width': 40, + "channel": 8} + }, + "radius": False +} + +@allure.feature("BRIDGE MODE CLIENT CONNECTIVITY") +@pytest.mark.parametrize( + 'setup_profiles', + [setup_params_general8], + indirect=True, + scope="class" +) +@pytest.mark.usefixtures("setup_profiles") +class TestCountryIN40Mhz2GChannel8(object): + """Country code along with Channel and Channel-width Test Bridge mode + pytest -m "country_code and Bridge" + """ + @allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-2546", name="WIFI-6938") + @pytest.mark.wpa2_personal + @pytest.mark.fourtyMhz + @pytest.mark.twog + @pytest.mark.channel8 + def test_client_bridge_wpa2_chn8_40Mhz_IN_2g(self, lf_test, station_names_twog, get_configuration): + """Country code Bridge Mode + pytest -m "country_code and fourtyMhz and wpa2 and twog and channel8" + """ + profile_data = setup_params_general8["ssid_modes"]["wpa2_personal"][0] + ssid = profile_data["ssid_name"] + security_key = profile_data["security_key"] + security = "wpa2" + mode = "BRIDGE" + band = "twog" + vlan = 1 + channel = setup_params_general8['rf']['2G']['channel'] + + result = lf_test.country_code_channel_division(ssid=ssid, security=security, passkey=security_key, mode=mode, + band=band, station_name=station_names_twog, vlan_id=vlan, + channel=channel,country=356) + if result: + assert True + else: + assert False + + +setup_params_general9 = { + "mode": "BRIDGE", + "ssid_modes": { + "wpa2_personal": [{"ssid_name": "ssid_wpa2_2g", "appliedRadios": ["2G"], "security_key": "something"}, + {"ssid_name": "ssid_wpa2_5g", "appliedRadios": ["5G"], "security_key": "something"} + ]}, + "rf": {"5G": + {'band': '5G', + 'country': 'IN', + "channel-mode": "VHT", + 'channel-width': 40, + "channel": 36}, + "2G": + {'band': '2G', + 'country': 'IN', + 'channel-mode': 'VHT', + 'channel-width': 40, + "channel": 9} + }, + "radius": False +} + +@allure.feature("BRIDGE MODE CLIENT CONNECTIVITY") +@pytest.mark.parametrize( + 'setup_profiles', + [setup_params_general9], + indirect=True, + scope="class" +) +@pytest.mark.usefixtures("setup_profiles") +class TestCountryIN40Mhz2GChannel9(object): + """Country code along with Channel and Channel-width Test Bridge mode + pytest -m "country_code and Bridge" + """ + @allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-2546", name="WIFI-6938") + @pytest.mark.wpa2_personal + @pytest.mark.fourtyMhz + @pytest.mark.twog + @pytest.mark.channel9 + def test_client_bridge_wpa2_chn9_40Mhz_IN_2g(self, lf_test, station_names_twog, get_configuration): + """Country code Bridge Mode + pytest -m "country_code and fourtyMhz and wpa2 and twog and channel9" + """ + profile_data = setup_params_general9["ssid_modes"]["wpa2_personal"][0] + ssid = profile_data["ssid_name"] + security_key = profile_data["security_key"] + security = "wpa2" + mode = "BRIDGE" + band = "twog" + vlan = 1 + channel = setup_params_general9['rf']['2G']['channel'] + + result = lf_test.country_code_channel_division(ssid=ssid, security=security, passkey=security_key, mode=mode, + band=band, station_name=station_names_twog, vlan_id=vlan, + channel=channel,country=356) + if result: + assert True + else: + assert False + + +setup_params_general10 = { + "mode": "BRIDGE", + "ssid_modes": { + "wpa2_personal": [{"ssid_name": "ssid_wpa2_2g", "appliedRadios": ["2G"], "security_key": "something"}, + {"ssid_name": "ssid_wpa2_5g", "appliedRadios": ["5G"], "security_key": "something"} + ]}, + "rf": {"5G": + {'band': '5G', + 'country': 'IN', + "channel-mode": "VHT", + 'channel-width': 40, + "channel": 36}, + "2G": + {'band': '2G', + 'country': 'IN', + 'channel-mode': 'VHT', + 'channel-width': 40, + "channel": 10} + }, + "radius": False +} + +@allure.feature("BRIDGE MODE CLIENT CONNECTIVITY") +@pytest.mark.parametrize( + 'setup_profiles', + [setup_params_general10], + indirect=True, + scope="class" +) +@pytest.mark.usefixtures("setup_profiles") +class TestCountryIN40Mhz2GChannel10(object): + """Country code along with Channel and Channel-width Test Bridge mode + pytest -m "country_code and Bridge" + """ + @allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-2546", name="WIFI-6938") + @pytest.mark.wpa2_personal + @pytest.mark.fourtyMhz + @pytest.mark.twog + @pytest.mark.channel10 + def test_client_bridge_wpa2_chn10_40Mhz_IN_2g(self, lf_test, station_names_twog, get_configuration): + """Country code Bridge Mode + pytest -m "country_code and fourtyMhz and wpa2 and twog and channel10" + """ + profile_data = setup_params_general10["ssid_modes"]["wpa2_personal"][0] + ssid = profile_data["ssid_name"] + security_key = profile_data["security_key"] + security = "wpa2" + mode = "BRIDGE" + band = "twog" + vlan = 1 + channel = setup_params_general10['rf']['2G']['channel'] + + result = lf_test.country_code_channel_division(ssid=ssid, security=security, passkey=security_key, mode=mode, + band=band, station_name=station_names_twog, vlan_id=vlan, + channel=channel,country=356) + if result: + assert True + else: + assert False + + +setup_params_general11 = { + "mode": "BRIDGE", + "ssid_modes": { + "wpa2_personal": [{"ssid_name": "ssid_wpa2_2g", "appliedRadios": ["2G"], "security_key": "something"}, + {"ssid_name": "ssid_wpa2_5g", "appliedRadios": ["5G"], "security_key": "something"} + ]}, + "rf": {"5G": + {'band': '5G', + 'country': 'IN', + "channel-mode": "VHT", + 'channel-width': 40, + "channel": 36}, + "2G": + {'band': '2G', + 'country': 'IN', + 'channel-mode': 'VHT', + 'channel-width': 40, + "channel": 11} + }, + "radius": False +} + +@allure.feature("BRIDGE MODE CLIENT CONNECTIVITY") +@pytest.mark.parametrize( + 'setup_profiles', + [setup_params_general11], + indirect=True, + scope="class" +) +@pytest.mark.usefixtures("setup_profiles") +class TestCountryIN40Mhz2GChannel11(object): + """Country code along with Channel and Channel-width Test Bridge mode + pytest -m "country_code and Bridge" + """ + @allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-2546", name="WIFI-6938") + @pytest.mark.wpa2_personal + @pytest.mark.fourtyMhz + @pytest.mark.twog + @pytest.mark.channel11 + def test_client_bridge_wpa2_chn11_40Mhz_IN_2g(self, lf_test, station_names_twog, get_configuration): + """Country code Bridge Mode + pytest -m "country_code and fourtyMhz and wpa2 and twog and channel11" + """ + profile_data = setup_params_general11["ssid_modes"]["wpa2_personal"][0] + ssid = profile_data["ssid_name"] + security_key = profile_data["security_key"] + security = "wpa2" + mode = "BRIDGE" + band = "twog" + vlan = 1 + channel = setup_params_general11['rf']['2G']['channel'] + + result = lf_test.country_code_channel_division(ssid=ssid, security=security, passkey=security_key, mode=mode, + band=band, station_name=station_names_twog, vlan_id=vlan, + channel=channel,country=356) + if result: + assert True + else: + assert False + + +# setup_params_general12 = { +# "mode": "BRIDGE", +# "ssid_modes": { +# "wpa2_personal": [{"ssid_name": "ssid_wpa2_2g", "appliedRadios": ["2G"], "security_key": "something"}, +# ]}, +# "rf": {"2G": +# {'band': '2G', +# 'country': 'IN', +# 'channel-mode': 'VHT', +# 'channel-width': 20, +# "channel": 12} +# }, +# "radius": False +# } +# +# @allure.feature("BRIDGE MODE CLIENT CONNECTIVITY") +# @pytest.mark.parametrize( +# 'setup_profiles', +# [setup_params_general12], +# indirect=True, +# scope="class" +# ) +# @pytest.mark.usefixtures("setup_profiles") +# class TestCountryIN20Mhz2GChannel12(object): +# """Country code along with Channel and Channel-width Test Bridge mode +# pytest -m "country_code and Bridge" +# """ +# @allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-2546", name="WIFI-6938") +# @pytest.mark.wpa2_personal +# @pytest.mark.twentyMhz +# @pytest.mark.twog +# @pytest.mark.channel12 +# def test_client_bridge_wpa2_chn12_20Mhz_IN_2g(self, lf_test, station_names_twog, get_configuration): +# """Country code Bridge Mode +# pytest -m "country_code and twentyMhz and wpa2 and twog and channel12" +# """ +# profile_data = setup_params_general12["ssid_modes"]["wpa2_personal"][0] +# ssid = profile_data["ssid_name"] +# security_key = profile_data["security_key"] +# security = "wpa2" +# mode = "BRIDGE" +# band = "twog" +# vlan = 1 +# channel = setup_params_general12['rf']['2G']['channel'] +# +# result = lf_test.country_code_channel_division(ssid=ssid, security=security, passkey=security_key, mode=mode, +# band=band, station_name=station_names_twog, vlan_id=vlan, +# channel=channel) +# if result: +# assert True +# else: +# assert False +# +# +# setup_params_general13 = { +# "mode": "BRIDGE", +# "ssid_modes": { +# "wpa2_personal": [{"ssid_name": "ssid_wpa2_2g", "appliedRadios": ["2G"], "security_key": "something"}, +# ]}, +# "rf": {"2G": +# {'band': '2G', +# 'country': 'IN', +# 'channel-mode': 'VHT', +# 'channel-width': 20, +# "channel": 13} +# }, +# "radius": False +# } +# +# @allure.feature("BRIDGE MODE CLIENT CONNECTIVITY") +# @pytest.mark.parametrize( +# 'setup_profiles', +# [setup_params_general13], +# indirect=True, +# scope="class" +# ) +# @pytest.mark.usefixtures("setup_profiles") +# class TestCountryIN20Mhz2GChannel13(object): +# """Country code along with Channel and Channel-width Test Bridge mode +# pytest -m "country_code and Bridge" +# """ +# @allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-2546", name="WIFI-6938") +# @pytest.mark.wpa2_personal +# @pytest.mark.twentyMhz +# @pytest.mark.twog +# @pytest.mark.channel13 +# def test_client_bridge_wpa2_chn13_20Mhz_IN_2g(self, lf_test, station_names_twog, get_configuration): +# """Country code Bridge Mode +# pytest -m "country_code and twentyMhz and wpa2 and twog and channel13" +# """ +# profile_data = setup_params_general13["ssid_modes"]["wpa2_personal"][0] +# ssid = profile_data["ssid_name"] +# security_key = profile_data["security_key"] +# security = "wpa2" +# mode = "BRIDGE" +# band = "twog" +# vlan = 1 +# channel = setup_params_general13['rf']['2G']['channel'] +# +# result = lf_test.country_code_channel_division(ssid=ssid, security=security, passkey=security_key, mode=mode, +# band=band, station_name=station_names_twog, vlan_id=vlan, +# channel=channel) +# if result: +# assert True +# else: +# assert False \ No newline at end of file diff --git a/tests/e2e/basic/validation_of_operating_modes/country_code_channel_division/country_code_IN/channel_width_80Mhz/__init__.py b/tests/e2e/basic/validation_of_operating_modes/country_code_channel_division/country_code_IN/channel_width_80Mhz/__init__.py new file mode 100644 index 000000000..e69de29bb diff --git a/tests/e2e/basic/validation_of_operating_modes/country_code_channel_division/country_code_IN/channel_width_80Mhz/fiveg_band/__init__.py b/tests/e2e/basic/validation_of_operating_modes/country_code_channel_division/country_code_IN/channel_width_80Mhz/fiveg_band/__init__.py new file mode 100644 index 000000000..e69de29bb diff --git a/tests/e2e/basic/validation_of_operating_modes/country_code_channel_division/country_code_IN/channel_width_80Mhz/fiveg_band/test_IN_80Mhz_5g.py b/tests/e2e/basic/validation_of_operating_modes/country_code_channel_division/country_code_IN/channel_width_80Mhz/fiveg_band/test_IN_80Mhz_5g.py new file mode 100644 index 000000000..18dda5298 --- /dev/null +++ b/tests/e2e/basic/validation_of_operating_modes/country_code_channel_division/country_code_IN/channel_width_80Mhz/fiveg_band/test_IN_80Mhz_5g.py @@ -0,0 +1,257 @@ +""" + + Performance Test: Country code along with Channel and Channel-width Test: Bridge Mode + pytest -m "country_code and Bridge" + +""" + + +import os +import pytest +import allure + +pytestmark = [pytest.mark.country_code, pytest.mark.Bridge, pytest.mark.wpa2, pytest.mark.IN] + +setup_params_general1 = { + "mode": "BRIDGE", + "ssid_modes": { + "wpa2_personal": [{"ssid_name": "ssid_wpa2_2g", "appliedRadios": ["2G"], "security_key": "something"}, + {"ssid_name": "ssid_wpa2_5g", "appliedRadios": ["5G"], "security_key": "something"} + ]}, + "rf": {"5G": + {'band': '5G', + 'country': 'IN', + "channel-mode": "VHT", + 'channel-width': 80, + "channel": 36}, + "2G": + {'band': '2G', + 'country': 'IN', + "channel-mode": "VHT", + 'channel-width': 20, + "channel": 1} + }, + "radius": False +} + +@allure.feature("BRIDGE MODE CLIENT CONNECTIVITY") +@pytest.mark.parametrize( + 'setup_profiles', + [setup_params_general1], + indirect=True, + scope="class" +) +@pytest.mark.usefixtures("setup_profiles") +class TestCountryIN80Mhz5GChannel36(object): + """Country code along with Channel and Channel-width Test Bridge mode + pytest -m "country_code and Bridge" + """ + @allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-2546", name="WIFI-6938") + @pytest.mark.wpa2_personal + @pytest.mark.eightyMhz + @pytest.mark.fiveg + @pytest.mark.channel36 + def test_client_bridge_wpa2_chn36_80Mhz_IN_5g(self, lf_test, station_names_fiveg, get_configuration): + """Country code Bridge Mode + pytest -m "country_code and eightyMhz and wpa2 and fiveg and channel36" + """ + profile_data = setup_params_general1["ssid_modes"]["wpa2_personal"][1] + ssid = profile_data["ssid_name"] + security_key = profile_data["security_key"] + security = "wpa2" + mode = "BRIDGE" + band = "fiveg" + vlan = 1 + channel = setup_params_general1['rf']['5G']['channel'] + + result = lf_test.country_code_channel_division(ssid=ssid, security=security, passkey=security_key, mode=mode, + band=band, station_name=station_names_fiveg, vlan_id=vlan, + channel=channel,country=356) + if result: + assert True + else: + assert False + + +setup_params_general2 = { + "mode": "BRIDGE", + "ssid_modes": { + "wpa2_personal": [{"ssid_name": "ssid_wpa2_2g", "appliedRadios": ["2G"], "security_key": "something"}, + {"ssid_name": "ssid_wpa2_5g", "appliedRadios": ["5G"], "security_key": "something"} + ]}, + "rf": {"5G": + {'band': '5G', + 'country': 'IN', + 'channel-mode': 'VHT', + 'channel-width': 80, + "channel": 52}, + "2G": + {'band': '2G', + 'country': 'IN', + "channel-mode": "VHT", + 'channel-width': 20, + "channel": 1} + }, + "radius": False +} + + +@allure.feature("BRIDGE MODE CLIENT CONNECTIVITY") +@pytest.mark.parametrize( + 'setup_profiles', + [setup_params_general2], + indirect=True, + scope="class" +) +@pytest.mark.usefixtures("setup_profiles") +class TestCountryIN80Mhz5GChannel52(object): + """Country code along with Channel and Channel-width Test Bridge mode + pytest -m "country_code and Bridge" + """ + @allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-2546", name="WIFI-6938") + @pytest.mark.wpa2_personal + @pytest.mark.eightyMhz + @pytest.mark.fiveg + @pytest.mark.channel52 + def test_client_bridge_wpa2_chn52_80Mhz_IN_5g(self, lf_test, station_names_fiveg, get_configuration): + """Country code Bridge Mode + pytest -m "country_code and eightyMhz and wpa2 and fiveg and channel52" + """ + profile_data = setup_params_general2["ssid_modes"]["wpa2_personal"][1] + ssid = profile_data["ssid_name"] + security_key = profile_data["security_key"] + security = "wpa2" + mode = "BRIDGE" + band = "fiveg" + vlan = 1 + channel = setup_params_general2['rf']['5G']['channel'] + + result = lf_test.country_code_channel_division(ssid=ssid, security=security, passkey=security_key, mode=mode, + band=band, station_name=station_names_fiveg, vlan_id=vlan, + channel=channel,country=356) + if result: + assert True + else: + assert False + + +setup_params_general3 = { + "mode": "BRIDGE", + "ssid_modes": { + "wpa2_personal": [{"ssid_name": "ssid_wpa2_2g", "appliedRadios": ["2G"], "security_key": "something"}, + {"ssid_name": "ssid_wpa2_5g", "appliedRadios": ["5G"], "security_key": "something"} + ]}, + "rf": {"5G": + {'band': '5G', + 'country': 'IN', + 'channel-mode': 'VHT', + 'channel-width': 80, + "channel": 100}, + "2G": + {'band': '2G', + 'country': 'IN', + "channel-mode": "VHT", + 'channel-width': 20, + "channel": 1} + }, + "radius": False +} + +@allure.feature("BRIDGE MODE CLIENT CONNECTIVITY") +@pytest.mark.parametrize( + 'setup_profiles', + [setup_params_general3], + indirect=True, + scope="class" +) +@pytest.mark.usefixtures("setup_profiles") +class TestCountryIN80Mhz5GChannel100(object): + """Country code along with Channel and Channel-width Test Bridge mode + pytest -m "country_code and Bridge" + """ + @allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-2546", name="WIFI-6938") + @pytest.mark.wpa2_personal + @pytest.mark.eightyMhz + @pytest.mark.fiveg + @pytest.mark.channel100 + def test_client_bridge_wpa2_chn100_80Mhz_IN_5g(self, lf_test, station_names_fiveg, get_configuration): + """Country code Bridge Mode + pytest -m "country_code and eightyMhz and wpa2 and fiveg and channel100" + """ + profile_data = setup_params_general3["ssid_modes"]["wpa2_personal"][1] + ssid = profile_data["ssid_name"] + security_key = profile_data["security_key"] + security = "wpa2" + mode = "BRIDGE" + band = "fiveg" + vlan = 1 + channel = setup_params_general3['rf']['5G']['channel'] + + result = lf_test.country_code_channel_division(ssid=ssid, security=security, passkey=security_key, mode=mode, + band=band, station_name=station_names_fiveg, vlan_id=vlan, + channel=channel,country=356) + if result: + assert True + else: + assert False + + +setup_params_general4 = { + "mode": "BRIDGE", + "ssid_modes": { + "wpa2_personal": [{"ssid_name": "ssid_wpa2_2g", "appliedRadios": ["2G"], "security_key": "something"}, + {"ssid_name": "ssid_wpa2_5g", "appliedRadios": ["5G"], "security_key": "something"} + ]}, + "rf": {"5G": + {'band': '5G', + 'country': 'IN', + 'channel-mode': 'VHT', + 'channel-width': 80, + "channel": 132}, + "2G": + {'band': '2G', + 'country': 'IN', + "channel-mode": "VHT", + 'channel-width': 20, + "channel": 1} + }, + "radius": False +} + +@allure.feature("BRIDGE MODE CLIENT CONNECTIVITY") +@pytest.mark.parametrize( + 'setup_profiles', + [setup_params_general4], + indirect=True, + scope="class" +) +@pytest.mark.usefixtures("setup_profiles") +class TestCountryIN80Mhz5GChannel132(object): + """Country code along with Channel and Channel-width Test Bridge mode + pytest -m "country_code and Bridge" + """ + @allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-2546", name="WIFI-6938") + @pytest.mark.wpa2_personal + @pytest.mark.eightyMhz + @pytest.mark.fiveg + @pytest.mark.channel132 + def test_client_bridge_wpa2_chn132_80Mhz_IN_5g(self, lf_test, station_names_fiveg, get_configuration): + """Country code Bridge Mode + pytest -m "country_code and eightyMhz and wpa2 and fiveg and channel132" + """ + profile_data = setup_params_general4["ssid_modes"]["wpa2_personal"][1] + ssid = profile_data["ssid_name"] + security_key = profile_data["security_key"] + security = "wpa2" + mode = "BRIDGE" + band = "fiveg" + vlan = 1 + channel = setup_params_general4['rf']['5G']['channel'] + + result = lf_test.country_code_channel_division(ssid=ssid, security=security, passkey=security_key, mode=mode, + band=band, station_name=station_names_fiveg, vlan_id=vlan, + channel=channel,country=356) + if result: + assert True + else: + assert False diff --git a/tests/e2e/basic/validation_of_operating_modes/country_code_channel_division/country_code_JP/__init__.py b/tests/e2e/basic/validation_of_operating_modes/country_code_channel_division/country_code_JP/__init__.py new file mode 100644 index 000000000..e69de29bb diff --git a/tests/e2e/basic/validation_of_operating_modes/country_code_channel_division/country_code_JP/channel_width_20Mhz/__init__.py b/tests/e2e/basic/validation_of_operating_modes/country_code_channel_division/country_code_JP/channel_width_20Mhz/__init__.py new file mode 100644 index 000000000..e69de29bb diff --git a/tests/e2e/basic/validation_of_operating_modes/country_code_channel_division/country_code_JP/channel_width_20Mhz/fiveg_band/__init__.py b/tests/e2e/basic/validation_of_operating_modes/country_code_channel_division/country_code_JP/channel_width_20Mhz/fiveg_band/__init__.py new file mode 100644 index 000000000..e69de29bb diff --git a/tests/e2e/basic/validation_of_operating_modes/country_code_channel_division/country_code_JP/channel_width_20Mhz/fiveg_band/test_JP_20Mhz_5g.py b/tests/e2e/basic/validation_of_operating_modes/country_code_channel_division/country_code_JP/channel_width_20Mhz/fiveg_band/test_JP_20Mhz_5g.py new file mode 100644 index 000000000..c431cc3cf --- /dev/null +++ b/tests/e2e/basic/validation_of_operating_modes/country_code_channel_division/country_code_JP/channel_width_20Mhz/fiveg_band/test_JP_20Mhz_5g.py @@ -0,0 +1,1240 @@ +""" + + Performance Test: Country code along with Channel and Channel-width Test: Bridge Mode + pytest -m "country_code and Bridge" + +""" + + +import os +import pytest +import allure + +pytestmark = [pytest.mark.country_code, pytest.mark.Bridge, pytest.mark.wpa2, pytest.mark.JP] + +setup_params_general1 = { + "mode": "BRIDGE", + "ssid_modes": { + "wpa2_personal": [{"ssid_name": "ssid_wpa2_2g", "appliedRadios": ["2G"], "security_key": "something"}, + {"ssid_name": "ssid_wpa2_5g", "appliedRadios": ["5G"], "security_key": "something"} + ]}, + "rf": { + "5G": + {'band': '5G', + 'country': 'JP', + "channel-mode": "VHT", + 'channel-width': 20, + "channel": 36 + }, + "2G": + {'band': '2G', + 'country': 'JP', + "channel-mode": "VHT", + 'channel-width': 20, + "channel": 1} + }, + "radius": False +} + + +@allure.feature("BRIDGE MODE CLIENT CONNECTIVITY") +@pytest.mark.parametrize( + 'setup_profiles', + [setup_params_general1], + indirect=True, + scope="class" +) +@pytest.mark.usefixtures("setup_profiles") +class TestCountryJP20Mhz5GChannel36(object): + """Country code along with Channel and Channel-width Test Bridge mode + pytest -m "country_code and Bridge" + """ + @allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-2546", name="WIFI-6938") + @pytest.mark.wpa2_personal + @pytest.mark.twentyMhz + @pytest.mark.fiveg + @pytest.mark.channel36 + def test_client_bridge_wpa2_chn36_20Mhz_JP_5g(self, lf_test, station_names_fiveg, get_configuration): + """Country code Bridge Mode + pytest -m "country_code and twentyMhz and wpa2 and fiveg and channel36" + """ + profile_data = setup_params_general1["ssid_modes"]["wpa2_personal"][1] + ssid = profile_data["ssid_name"] + security_key = profile_data["security_key"] + security = "wpa2" + mode = "BRIDGE" + band = "fiveg" + vlan = 1 + channel = setup_params_general1['rf']['5G']['channel'] + + result = lf_test.country_code_channel_division(ssid=ssid, security=security, passkey=security_key, mode=mode, + band=band, station_name=station_names_fiveg, vlan_id=vlan, + channel=channel,country=392) + if result: + assert True + else: + assert False + + +setup_params_general2 = { + "mode": "BRIDGE", + "ssid_modes": { + "wpa2_personal": [{"ssid_name": "ssid_wpa2_2g", "appliedRadios": ["2G"], "security_key": "something"}, + {"ssid_name": "ssid_wpa2_5g", "appliedRadios": ["5G"], "security_key": "something"} + ]}, + "rf": {"5G": + {'band': '5G', + 'country': 'JP', + "channel-mode": "VHT", + 'channel-width': 20, + "channel": 40}, + "2G": + {'band': '2G', + 'country': 'JP', + "channel-mode": "VHT", + 'channel-width': 20, + "channel": 1} + }, + "radius": False +} + + +@allure.feature("BRIDGE MODE CLIENT CONNECTIVITY") +@pytest.mark.parametrize( + 'setup_profiles', + [setup_params_general2], + indirect=True, + scope="class" +) +@pytest.mark.usefixtures("setup_profiles") +class TestCountryJP20Mhz5GChannel40(object): + """Country code along with Channel and Channel-width Test Bridge mode + pytest -m "country_code and Bridge" + """ + @allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-2546", name="WIFI-6938") + @pytest.mark.wpa2_personal + @pytest.mark.twentyMhz + @pytest.mark.fiveg + @pytest.mark.channel40 + def test_client_bridge_wpa2_chn40_20Mhz_JP_5g(self, lf_test, station_names_fiveg, get_configuration): + """Country code Bridge Mode + pytest -m "country_code and twentyMhz and wpa2 and fiveg and channel40" + """ + profile_data = setup_params_general2["ssid_modes"]["wpa2_personal"][1] + ssid = profile_data["ssid_name"] + security_key = profile_data["security_key"] + security = "wpa2" + mode = "BRIDGE" + band = "fiveg" + vlan = 1 + channel = setup_params_general2['rf']['5G']['channel'] + + result = lf_test.country_code_channel_division(ssid=ssid, security=security, passkey=security_key, mode=mode, + band=band, station_name=station_names_fiveg, vlan_id=vlan, + channel=channel,country=392) + if result: + assert True + else: + assert False + +setup_params_general3 = { + "mode": "BRIDGE", + "ssid_modes": { + "wpa2_personal": [{"ssid_name": "ssid_wpa2_2g", "appliedRadios": ["2G"], "security_key": "something"}, + {"ssid_name": "ssid_wpa2_5g", "appliedRadios": ["5G"], "security_key": "something"} + ]}, + "rf": {"5G": + {'band': '5G', + 'country': 'JP', + 'channel-mode': 'VHT', + 'channel-width': 20, + "channel": 44}, + "2G": + {'band': '2G', + 'country': 'JP', + "channel-mode": "VHT", + 'channel-width': 20, + "channel": 1} + }, + "radius": False +} + + +@allure.feature("BRIDGE MODE CLIENT CONNECTIVITY") +@pytest.mark.parametrize( + 'setup_profiles', + [setup_params_general3], + indirect=True, + scope="class" +) +@pytest.mark.usefixtures("setup_profiles") +class TestCountryJP20Mhz5GChannel44(object): + """Country code along with Channel and Channel-width Test Bridge mode + pytest -m "country_code and Bridge" + """ + @allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-2546", name="WIFI-6938") + @pytest.mark.wpa2_personal + @pytest.mark.twentyMhz + @pytest.mark.fiveg + @pytest.mark.channel44 + def test_client_bridge_wpa2_chn44_20Mhz_JP_5g(self, lf_test, station_names_fiveg, get_configuration): + """Country code Bridge Mode + pytest -m "country_code and twentyMhz and wpa2 and fiveg and channel44" + """ + profile_data = setup_params_general3["ssid_modes"]["wpa2_personal"][1] + ssid = profile_data["ssid_name"] + security_key = profile_data["security_key"] + security = "wpa2" + mode = "BRIDGE" + band = "fiveg" + vlan = 1 + channel = setup_params_general3['rf']['5G']['channel'] + + result = lf_test.country_code_channel_division(ssid=ssid, security=security, passkey=security_key, mode=mode, + band=band, station_name=station_names_fiveg, vlan_id=vlan, + channel=channel,country=392) + if result: + assert True + else: + assert False + + +setup_params_general4 = { + "mode": "BRIDGE", + "ssid_modes": { + "wpa2_personal": [{"ssid_name": "ssid_wpa2_2g", "appliedRadios": ["2G"], "security_key": "something"}, + {"ssid_name": "ssid_wpa2_5g", "appliedRadios": ["5G"], "security_key": "something"} + ]}, + "rf": {"5G": + {'band': '5G', + 'country': 'JP', + "channel-mode": "VHT", + 'channel-width': 20, + "channel": 48}, + "2G": + {'band': '2G', + 'country': 'JP', + "channel-mode": "VHT", + 'channel-width': 20, + "channel": 1} + }, + "radius": False +} + + +@allure.feature("BRIDGE MODE CLIENT CONNECTIVITY") +@pytest.mark.parametrize( + 'setup_profiles', + [setup_params_general4], + indirect=True, + scope="class" +) +@pytest.mark.usefixtures("setup_profiles") +class TestCountryJP20Mhz5GChannel48(object): + """Country code along with Channel and Channel-width Test Bridge mode + pytest -m "country_code and Bridge" + """ + @allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-2546", name="WIFI-6938") + @pytest.mark.wpa2_personal + @pytest.mark.twentyMhz + @pytest.mark.fiveg + @pytest.mark.channel48 + def test_client_bridge_wpa2_chn48_20Mhz_JP_5g(self, lf_test, station_names_fiveg, get_configuration): + """Country code Bridge Mode + pytest -m "country_code and twentyMhz and wpa2 and fiveg and channel48" + """ + profile_data = setup_params_general4["ssid_modes"]["wpa2_personal"][1] + ssid = profile_data["ssid_name"] + security_key = profile_data["security_key"] + security = "wpa2" + mode = "BRIDGE" + band = "fiveg" + vlan = 1 + channel = setup_params_general4['rf']['5G']['channel'] + + result = lf_test.country_code_channel_division(ssid=ssid, security=security, passkey=security_key, mode=mode, + band=band, station_name=station_names_fiveg, vlan_id=vlan, + channel=channel,country=392) + if result: + assert True + else: + assert False + + +setup_params_general5 = { + "mode": "BRIDGE", + "ssid_modes": { + "wpa2_personal": [{"ssid_name": "ssid_wpa2_2g", "appliedRadios": ["2G"], "security_key": "something"}, + {"ssid_name": "ssid_wpa2_5g", "appliedRadios": ["5G"], "security_key": "something"} + ]}, + "rf": {"5G": + {'band': '5G', + 'country': 'JP', + 'channel-mode': 'VHT', + 'channel-width': 20, + "channel": 52}, + "2G": + {'band': '2G', + 'country': 'JP', + "channel-mode": "VHT", + 'channel-width': 20, + "channel": 1} + }, + "radius": False +} + + +@allure.feature("BRIDGE MODE CLIENT CONNECTIVITY") +@pytest.mark.parametrize( + 'setup_profiles', + [setup_params_general5], + indirect=True, + scope="class" +) +@pytest.mark.usefixtures("setup_profiles") +class TestCountryJP20Mhz5GChannel52(object): + """Country code along with Channel and Channel-width Test Bridge mode + pytest -m "country_code and Bridge" + """ + @allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-2546", name="WIFI-6938") + @pytest.mark.wpa2_personal + @pytest.mark.twentyMhz + @pytest.mark.fiveg + @pytest.mark.channel52 + def test_client_bridge_wpa2_chn52_20Mhz_JP_5g(self, lf_test, station_names_fiveg, get_configuration): + """Country code Bridge Mode + pytest -m "country_code and twentyMhz and wpa2 and fiveg and channel52" + """ + profile_data = setup_params_general5["ssid_modes"]["wpa2_personal"][1] + ssid = profile_data["ssid_name"] + security_key = profile_data["security_key"] + security = "wpa2" + mode = "BRIDGE" + band = "fiveg" + vlan = 1 + channel = setup_params_general5['rf']['5G']['channel'] + + result = lf_test.country_code_channel_division(ssid=ssid, security=security, passkey=security_key, mode=mode, + band=band, station_name=station_names_fiveg, vlan_id=vlan, + channel=channel,country=392) + if result: + assert True + else: + assert False + + +setup_params_general6 = { + "mode": "BRIDGE", + "ssid_modes": { + "wpa2_personal": [{"ssid_name": "ssid_wpa2_2g", "appliedRadios": ["2G"], "security_key": "something"}, + {"ssid_name": "ssid_wpa2_5g", "appliedRadios": ["5G"], "security_key": "something"} + ]}, + "rf": {"5G": + {'band': '5G', + 'country': 'JP', + "channel-mode": "VHT", + 'channel-width': 20, + "channel": 56}, + "2G": + {'band': '2G', + 'country': 'JP', + "channel-mode": "VHT", + 'channel-width': 20, + "channel": 1} + }, + "radius": False +} + + +@allure.feature("BRIDGE MODE CLIENT CONNECTIVITY") +@pytest.mark.parametrize( + 'setup_profiles', + [setup_params_general6], + indirect=True, + scope="class" +) +@pytest.mark.usefixtures("setup_profiles") +class TestCountryJP20Mhz5GChannel56(object): + """Country code along with Channel and Channel-width Test Bridge mode + pytest -m "country_code and Bridge" + """ + @allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-2546", name="WIFI-6938") + @pytest.mark.wpa2_personal + @pytest.mark.twentyMhz + @pytest.mark.fiveg + @pytest.mark.channel56 + def test_client_bridge_wpa2_chn56_20Mhz_JP_5g(self, lf_test, station_names_fiveg, get_configuration): + """Country code Bridge Mode + pytest -m "country_code and twentyMhz and wpa2 and fiveg and channel56" + """ + profile_data = setup_params_general6["ssid_modes"]["wpa2_personal"][1] + ssid = profile_data["ssid_name"] + security_key = profile_data["security_key"] + security = "wpa2" + mode = "BRIDGE" + band = "fiveg" + vlan = 1 + channel = setup_params_general6['rf']['5G']['channel'] + + result = lf_test.country_code_channel_division(ssid=ssid, security=security, passkey=security_key, mode=mode, + band=band, station_name=station_names_fiveg, vlan_id=vlan, + channel=channel,country=392) + if result: + assert True + else: + assert False + + +setup_params_general7 = { + "mode": "BRIDGE", + "ssid_modes": { + "wpa2_personal": [{"ssid_name": "ssid_wpa2_2g", "appliedRadios": ["2G"], "security_key": "something"}, + {"ssid_name": "ssid_wpa2_5g", "appliedRadios": ["5G"], "security_key": "something"} + ]}, + "rf": {"5G": + {'band': '5G', + 'country': 'JP', + 'channel-mode': 'VHT', + 'channel-width': 20, + "channel": 60}, + "2G": + {'band': '2G', + 'country': 'JP', + "channel-mode": "VHT", + 'channel-width': 20, + "channel": 1} + }, + "radius": False +} + +@allure.feature("BRIDGE MODE CLIENT CONNECTIVITY") +@pytest.mark.parametrize( + 'setup_profiles', + [setup_params_general7], + indirect=True, + scope="class" +) +@pytest.mark.usefixtures("setup_profiles") +class TestCountryJP20Mhz5GChannel60(object): + """Country code along with Channel and Channel-width Test Bridge mode + pytest -m "country_code and Bridge" + """ + @allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-2546", name="WIFI-6938") + @pytest.mark.wpa2_personal + @pytest.mark.twentyMhz + @pytest.mark.fiveg + @pytest.mark.channel60 + def test_client_bridge_wpa2_chn60_20Mhz_JP_5g(self, lf_test, station_names_fiveg, get_configuration): + """Country code Bridge Mode + pytest -m "country_code and twentyMhz and wpa2 and fiveg and channel60" + """ + profile_data = setup_params_general7["ssid_modes"]["wpa2_personal"][1] + ssid = profile_data["ssid_name"] + security_key = profile_data["security_key"] + security = "wpa2" + mode = "BRIDGE" + band = "fiveg" + vlan = 1 + channel = setup_params_general7['rf']['5G']['channel'] + + result = lf_test.country_code_channel_division(ssid=ssid, security=security, passkey=security_key, mode=mode, + band=band, station_name=station_names_fiveg, vlan_id=vlan, + channel=channel,country=392) + if result: + assert True + else: + assert False + + +setup_params_general8 = { + "mode": "BRIDGE", + "ssid_modes": { + "wpa2_personal": [{"ssid_name": "ssid_wpa2_2g", "appliedRadios": ["2G"], "security_key": "something"}, + {"ssid_name": "ssid_wpa2_5g", "appliedRadios": ["5G"], "security_key": "something"} + ]}, + "rf": {"5G": + {'band': '5G', + 'country': 'JP', + "channel-mode": "VHT", + 'channel-width': 20, + "channel": 64}, + "2G": + {'band': '2G', + 'country': 'JP', + "channel-mode": "VHT", + 'channel-width': 20, + "channel": 1} + }, + "radius": False +} + + +@allure.feature("BRIDGE MODE CLIENT CONNECTIVITY") +@pytest.mark.parametrize( + 'setup_profiles', + [setup_params_general8], + indirect=True, + scope="class" +) +@pytest.mark.usefixtures("setup_profiles") +class TestCountryJP20Mhz5GChannel64(object): + """Country code along with Channel and Channel-width Test Bridge mode + pytest -m "country_code and Bridge" + """ + @allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-2546", name="WIFI-6938") + @pytest.mark.wpa2_personal + @pytest.mark.twentyMhz + @pytest.mark.fiveg + @pytest.mark.channel64 + def test_client_bridge_wpa2_chn64_20Mhz_JP_5g(self, lf_test, station_names_fiveg, get_configuration): + """Country code Bridge Mode + pytest -m "country_code and twentyMhz and wpa2 and fiveg and channel64" + """ + profile_data = setup_params_general8["ssid_modes"]["wpa2_personal"][1] + ssid = profile_data["ssid_name"] + security_key = profile_data["security_key"] + security = "wpa2" + mode = "BRIDGE" + band = "fiveg" + vlan = 1 + channel = setup_params_general8['rf']['5G']['channel'] + + result = lf_test.country_code_channel_division(ssid=ssid, security=security, passkey=security_key, mode=mode, + band=band, station_name=station_names_fiveg, vlan_id=vlan, + channel=channel,country=392) + if result: + assert True + else: + assert False + + +setup_params_general9 = { + "mode": "BRIDGE", + "ssid_modes": { + "wpa2_personal": [{"ssid_name": "ssid_wpa2_2g", "appliedRadios": ["2G"], "security_key": "something"}, + {"ssid_name": "ssid_wpa2_5g", "appliedRadios": ["5G"], "security_key": "something"} + ]}, + "rf": {"5G": + {'band': '5G', + 'country': 'JP', + 'channel-mode': 'VHT', + 'channel-width': 20, + "channel": 100}, + "2G": + {'band': '2G', + 'country': 'JP', + "channel-mode": "VHT", + 'channel-width': 20, + "channel": 1} + }, + "radius": False +} + +@allure.feature("BRIDGE MODE CLIENT CONNECTIVITY") +@pytest.mark.parametrize( + 'setup_profiles', + [setup_params_general9], + indirect=True, + scope="class" +) +@pytest.mark.usefixtures("setup_profiles") +class TestCountryJP20Mhz5GChannel100(object): + """Country code along with Channel and Channel-width Test Bridge mode + pytest -m "country_code and Bridge" + """ + @allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-2546", name="WIFI-6938") + @pytest.mark.wpa2_personal + @pytest.mark.twentyMhz + @pytest.mark.fiveg + @pytest.mark.channel100 + def test_client_bridge_wpa2_chn100_20Mhz_JP_5g(self, lf_test, station_names_fiveg, get_configuration): + """Country code Bridge Mode + pytest -m "country_code and twentyMhz and wpa2 and fiveg and channel100" + """ + profile_data = setup_params_general9["ssid_modes"]["wpa2_personal"][1] + ssid = profile_data["ssid_name"] + security_key = profile_data["security_key"] + security = "wpa2" + mode = "BRIDGE" + band = "fiveg" + vlan = 1 + channel = setup_params_general9['rf']['5G']['channel'] + + result = lf_test.country_code_channel_division(ssid=ssid, security=security, passkey=security_key, mode=mode, + band=band, station_name=station_names_fiveg, vlan_id=vlan, + channel=channel,country=392) + if result: + assert True + else: + assert False + + +setup_params_general10 = { + "mode": "BRIDGE", + "ssid_modes": { + "wpa2_personal": [{"ssid_name": "ssid_wpa2_2g", "appliedRadios": ["2G"], "security_key": "something"}, + {"ssid_name": "ssid_wpa2_5g", "appliedRadios": ["5G"], "security_key": "something"} + ]}, + "rf": {"5G": + {'band': '5G', + 'country': 'JP', + 'channel-mode': 'VHT', + 'channel-width': 20, + "channel": 104}, + "2G": + {'band': '2G', + 'country': 'JP', + "channel-mode": "VHT", + 'channel-width': 20, + "channel": 1} + }, + "radius": False +} + +@allure.feature("BRIDGE MODE CLIENT CONNECTIVITY") +@pytest.mark.parametrize( + 'setup_profiles', + [setup_params_general10], + indirect=True, + scope="class" +) +@pytest.mark.usefixtures("setup_profiles") +class TestCountryJP20Mhz5GChannel104(object): + """Country code along with Channel and Channel-width Test Bridge mode + pytest -m "country_code and Bridge" + """ + @allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-2546", name="WIFI-6938") + @pytest.mark.wpa2_personal + @pytest.mark.twentyMhz + @pytest.mark.fiveg + @pytest.mark.channel104 + def test_client_bridge_wpa2_chn104_20Mhz_JP_5g(self, lf_test, station_names_fiveg, get_configuration): + """Country code Bridge Mode + pytest -m "country_code and twentyMhz and wpa2 and fiveg and channel104" + """ + profile_data = setup_params_general10["ssid_modes"]["wpa2_personal"][1] + ssid = profile_data["ssid_name"] + security_key = profile_data["security_key"] + security = "wpa2" + mode = "BRIDGE" + band = "fiveg" + vlan = 1 + channel = setup_params_general10['rf']['5G']['channel'] + + result = lf_test.country_code_channel_division(ssid=ssid, security=security, passkey=security_key, mode=mode, + band=band, station_name=station_names_fiveg, vlan_id=vlan, + channel=channel,country=392) + if result: + assert True + else: + assert False + + +setup_params_general11 = { + "mode": "BRIDGE", + "ssid_modes": { + "wpa2_personal": [{"ssid_name": "ssid_wpa2_2g", "appliedRadios": ["2G"], "security_key": "something"}, + {"ssid_name": "ssid_wpa2_5g", "appliedRadios": ["5G"], "security_key": "something"} + ]}, + "rf": {"5G": + {'band': '5G', + 'country': 'JP', + 'channel-mode': 'VHT', + 'channel-width': 20, + "channel": 108}, + "2G": + {'band': '2G', + 'country': 'JP', + "channel-mode": "VHT", + 'channel-width': 20, + "channel": 1} + }, + "radius": False +} + +@allure.feature("BRIDGE MODE CLIENT CONNECTIVITY") +@pytest.mark.parametrize( + 'setup_profiles', + [setup_params_general11], + indirect=True, + scope="class" +) +@pytest.mark.usefixtures("setup_profiles") +class TestCountryJP20Mhz5GChannel108(object): + """Country code along with Channel and Channel-width Test Bridge mode + pytest -m "country_code and Bridge" + """ + @allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-2546", name="WIFI-6938") + @pytest.mark.wpa2_personal + @pytest.mark.twentyMhz + @pytest.mark.fiveg + @pytest.mark.channel108 + def test_client_bridge_wpa2_chn108_20Mhz_JP_5g(self, lf_test, station_names_fiveg, get_configuration): + """Country code Bridge Mode + pytest -m "country_code and twentyMhz and wpa2 and fiveg and channel108" + """ + profile_data = setup_params_general11["ssid_modes"]["wpa2_personal"][1] + ssid = profile_data["ssid_name"] + security_key = profile_data["security_key"] + security = "wpa2" + mode = "BRIDGE" + band = "fiveg" + vlan = 1 + channel = setup_params_general11['rf']['5G']['channel'] + + result = lf_test.country_code_channel_division(ssid=ssid, security=security, passkey=security_key, mode=mode, + band=band, station_name=station_names_fiveg, vlan_id=vlan, + channel=channel,country=392) + if result: + assert True + else: + assert False + + +setup_params_general12 = { + "mode": "BRIDGE", + "ssid_modes": { + "wpa2_personal": [{"ssid_name": "ssid_wpa2_2g", "appliedRadios": ["2G"], "security_key": "something"}, + {"ssid_name": "ssid_wpa2_5g", "appliedRadios": ["5G"], "security_key": "something"} + ]}, + "rf": {"5G": + {'band': '5G', + 'country': 'JP', + 'channel-mode': 'VHT', + 'channel-width': 20, + "channel": 112}, + "2G": + {'band': '2G', + 'country': 'JP', + "channel-mode": "VHT", + 'channel-width': 20, + "channel": 1} + }, + "radius": False +} + +@allure.feature("BRIDGE MODE CLIENT CONNECTIVITY") +@pytest.mark.parametrize( + 'setup_profiles', + [setup_params_general12], + indirect=True, + scope="class" +) +@pytest.mark.usefixtures("setup_profiles") +class TestCountryJP20Mhz5GChannel112(object): + """Country code along with Channel and Channel-width Test Bridge mode + pytest -m "country_code and Bridge" + """ + @allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-2546", name="WIFI-6938") + @pytest.mark.wpa2_personal + @pytest.mark.twentyMhz + @pytest.mark.fiveg + @pytest.mark.channel112 + def test_client_bridge_wpa2_chn112_20Mhz_JP_5g(self, lf_test, station_names_fiveg, get_configuration): + """Country code Bridge Mode + pytest -m "country_code and twentyMhz and wpa2 and fiveg and channel112" + """ + profile_data = setup_params_general12["ssid_modes"]["wpa2_personal"][1] + ssid = profile_data["ssid_name"] + security_key = profile_data["security_key"] + security = "wpa2" + mode = "BRIDGE" + band = "fiveg" + vlan = 1 + channel = setup_params_general12['rf']['5G']['channel'] + + result = lf_test.country_code_channel_division(ssid=ssid, security=security, passkey=security_key, mode=mode, + band=band, station_name=station_names_fiveg, vlan_id=vlan, + channel=channel,country=392) + if result: + assert True + else: + assert False + + +setup_params_general13 = { + "mode": "BRIDGE", + "ssid_modes": { + "wpa2_personal": [{"ssid_name": "ssid_wpa2_2g", "appliedRadios": ["2G"], "security_key": "something"}, + {"ssid_name": "ssid_wpa2_5g", "appliedRadios": ["5G"], "security_key": "something"} + ]}, + "rf": {"5G": + {'band': '5G', + 'country': 'JP', + 'channel-mode': 'VHT', + 'channel-width': 20, + "channel": 116}, + "2G": + {'band': '2G', + 'country': 'JP', + "channel-mode": "VHT", + 'channel-width': 20, + "channel": 1} + }, + "radius": False +} + +@allure.feature("BRIDGE MODE CLIENT CONNECTIVITY") +@pytest.mark.parametrize( + 'setup_profiles', + [setup_params_general13], + indirect=True, + scope="class" +) +@pytest.mark.usefixtures("setup_profiles") +class TestCountryJP20Mhz5GChannel116(object): + """Country code along with Channel and Channel-width Test Bridge mode + pytest -m "country_code and Bridge" + """ + @allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-2546", name="WIFI-6938") + @pytest.mark.wpa2_personal + @pytest.mark.twentyMhz + @pytest.mark.fiveg + @pytest.mark.channel116 + def test_client_bridge_wpa2_chn116_20Mhz_JP_5g(self, lf_test, station_names_fiveg, get_configuration): + """Country code Bridge Mode + pytest -m "country_code and twentyMhz and wpa2 and fiveg and channel116" + """ + profile_data = setup_params_general13["ssid_modes"]["wpa2_personal"][1] + ssid = profile_data["ssid_name"] + security_key = profile_data["security_key"] + security = "wpa2" + mode = "BRIDGE" + band = "fiveg" + vlan = 1 + channel = setup_params_general13['rf']['5G']['channel'] + + result = lf_test.country_code_channel_division(ssid=ssid, security=security, passkey=security_key, mode=mode, + band=band, station_name=station_names_fiveg, vlan_id=vlan, + channel=channel,country=392) + if result: + assert True + else: + assert False + +setup_params_general14 = { + "mode": "BRIDGE", + "ssid_modes": { + "wpa2_personal": [{"ssid_name": "ssid_wpa2_2g", "appliedRadios": ["2G"], "security_key": "something"}, + {"ssid_name": "ssid_wpa2_5g", "appliedRadios": ["5G"], "security_key": "something"} + ]}, + "rf": {"5G": + {'band': '5G', + 'country': 'JP', + 'channel-mode': 'VHT', + 'channel-width': 20, + "channel": 120}, + "2G": + {'band': '2G', + 'country': 'JP', + "channel-mode": "VHT", + 'channel-width': 20, + "channel": 1} + }, + "radius": False +} + +@allure.feature("BRIDGE MODE CLIENT CONNECTIVITY") +@pytest.mark.parametrize( + 'setup_profiles', + [setup_params_general14], + indirect=True, + scope="class" +) +@pytest.mark.usefixtures("setup_profiles") +class TestCountryJP20Mhz5GChannel120(object): + """Country code along with Channel and Channel-width Test Bridge mode + pytest -m "country_code and Bridge" + """ + @allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-2546", name="WIFI-6938") + @pytest.mark.wpa2_personal + @pytest.mark.twentyMhz + @pytest.mark.fiveg + @pytest.mark.channel120 + def test_client_bridge_wpa2_chn120_20Mhz_JP_5g(self, lf_test, station_names_fiveg, get_configuration): + """Country code Bridge Mode + pytest -m "country_code and twentyMhz and wpa2 and fiveg and channel120" + """ + profile_data = setup_params_general14["ssid_modes"]["wpa2_personal"][1] + ssid = profile_data["ssid_name"] + security_key = profile_data["security_key"] + security = "wpa2" + mode = "BRIDGE" + band = "fiveg" + vlan = 1 + channel = setup_params_general14['rf']['5G']['channel'] + + result = lf_test.country_code_channel_division(ssid=ssid, security=security, passkey=security_key, mode=mode, + band=band, station_name=station_names_fiveg, vlan_id=vlan, + channel=channel,country=392) + if result: + assert True + else: + assert False + + +setup_params_general15 = { + "mode": "BRIDGE", + "ssid_modes": { + "wpa2_personal": [{"ssid_name": "ssid_wpa2_2g", "appliedRadios": ["2G"], "security_key": "something"}, + {"ssid_name": "ssid_wpa2_5g", "appliedRadios": ["5G"], "security_key": "something"} + ]}, + "rf": {"5G": + {'band': '5G', + 'country': 'JP', + 'channel-mode': 'VHT', + 'channel-width': 20, + "channel": 124}, + "2G": + {'band': '2G', + 'country': 'JP', + "channel-mode": "VHT", + 'channel-width': 20, + "channel": 1} + }, + "radius": False +} + +@allure.feature("BRIDGE MODE CLIENT CONNECTIVITY") +@pytest.mark.parametrize( + 'setup_profiles', + [setup_params_general15], + indirect=True, + scope="class" +) +@pytest.mark.usefixtures("setup_profiles") +class TestCountryJP20Mhz5GChannel124(object): + """Country code along with Channel and Channel-width Test Bridge mode + pytest -m "country_code and Bridge" + """ + @allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-2546", name="WIFI-6938") + @pytest.mark.wpa2_personal + @pytest.mark.twentyMhz + @pytest.mark.fiveg + @pytest.mark.channel124 + def test_client_bridge_wpa2_chn124_20Mhz_JP_5g(self, lf_test, station_names_fiveg, get_configuration): + """Country code Bridge Mode + pytest -m "country_code and twentyMhz and wpa2 and fiveg and channel124" + """ + profile_data = setup_params_general15["ssid_modes"]["wpa2_personal"][1] + ssid = profile_data["ssid_name"] + security_key = profile_data["security_key"] + security = "wpa2" + mode = "BRIDGE" + band = "fiveg" + vlan = 1 + channel = setup_params_general15['rf']['5G']['channel'] + + result = lf_test.country_code_channel_division(ssid=ssid, security=security, passkey=security_key, mode=mode, + band=band, station_name=station_names_fiveg, vlan_id=vlan, + channel=channel,country=392) + if result: + assert True + else: + assert False + + +setup_params_general16 = { + "mode": "BRIDGE", + "ssid_modes": { + "wpa2_personal": [{"ssid_name": "ssid_wpa2_2g", "appliedRadios": ["2G"], "security_key": "something"}, + {"ssid_name": "ssid_wpa2_5g", "appliedRadios": ["5G"], "security_key": "something"} + ]}, + "rf": {"5G": + {'band': '5G', + 'country': 'JP', + 'channel-mode': 'VHT', + 'channel-width': 20, + "channel": 128}, + "2G": + {'band': '2G', + 'country': 'JP', + "channel-mode": "VHT", + 'channel-width': 20, + "channel": 1} + }, + "radius": False +} + +@allure.feature("BRIDGE MODE CLIENT CONNECTIVITY") +@pytest.mark.parametrize( + 'setup_profiles', + [setup_params_general16], + indirect=True, + scope="class" +) +@pytest.mark.usefixtures("setup_profiles") +class TestCountryJP20Mhz5GChannel128(object): + """Country code along with Channel and Channel-width Test Bridge mode + pytest -m "country_code and Bridge" + """ + @allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-2546", name="WIFI-6938") + @pytest.mark.wpa2_personal + @pytest.mark.twentyMhz + @pytest.mark.fiveg + @pytest.mark.channel128 + def test_client_bridge_wpa2_chn128_20Mhz_JP_5g(self, lf_test, station_names_fiveg, get_configuration): + """Country code Bridge Mode + pytest -m "country_code and twentyMhz and wpa2 and fiveg and channel128" + """ + profile_data = setup_params_general16["ssid_modes"]["wpa2_personal"][1] + ssid = profile_data["ssid_name"] + security_key = profile_data["security_key"] + security = "wpa2" + mode = "BRIDGE" + band = "fiveg" + vlan = 1 + channel = setup_params_general16['rf']['5G']['channel'] + + result = lf_test.country_code_channel_division(ssid=ssid, security=security, passkey=security_key, mode=mode, + band=band, station_name=station_names_fiveg, vlan_id=vlan, + channel=channel,country=392) + if result: + assert True + else: + assert False + + +setup_params_general17 = { + "mode": "BRIDGE", + "ssid_modes": { + "wpa2_personal": [{"ssid_name": "ssid_wpa2_2g", "appliedRadios": ["2G"], "security_key": "something"}, + {"ssid_name": "ssid_wpa2_5g", "appliedRadios": ["5G"], "security_key": "something"} + ]}, + "rf": {"5G": + {'band': '5G', + 'country': 'JP', + 'channel-mode': 'VHT', + 'channel-width': 20, + "channel": 132}, + "2G": + {'band': '2G', + 'country': 'JP', + "channel-mode": "VHT", + 'channel-width': 20, + "channel": 1} + }, + "radius": False +} + +@allure.feature("BRIDGE MODE CLIENT CONNECTIVITY") +@pytest.mark.parametrize( + 'setup_profiles', + [setup_params_general17], + indirect=True, + scope="class" +) +@pytest.mark.usefixtures("setup_profiles") +class TestCountryJP20Mhz5GChannel132(object): + """Country code along with Channel and Channel-width Test Bridge mode + pytest -m "country_code and Bridge" + """ + @allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-2546", name="WIFI-6938") + @pytest.mark.wpa2_personal + @pytest.mark.twentyMhz + @pytest.mark.fiveg + @pytest.mark.channel132 + def test_client_bridge_wpa2_chn132_20Mhz_JP_5g(self, lf_test, station_names_fiveg, get_configuration): + """Country code Bridge Mode + pytest -m "country_code and twentyMhz and wpa2 and fiveg and channel132" + """ + profile_data = setup_params_general17["ssid_modes"]["wpa2_personal"][1] + ssid = profile_data["ssid_name"] + security_key = profile_data["security_key"] + security = "wpa2" + mode = "BRIDGE" + band = "fiveg" + vlan = 1 + channel = setup_params_general17['rf']['5G']['channel'] + + result = lf_test.country_code_channel_division(ssid=ssid, security=security, passkey=security_key, mode=mode, + band=band, station_name=station_names_fiveg, vlan_id=vlan, + channel=channel,country=392) + if result: + assert True + else: + assert False + + +setup_params_general18 = { + "mode": "BRIDGE", + "ssid_modes": { + "wpa2_personal": [{"ssid_name": "ssid_wpa2_2g", "appliedRadios": ["2G"], "security_key": "something"}, + {"ssid_name": "ssid_wpa2_5g", "appliedRadios": ["5G"], "security_key": "something"} + ]}, + "rf": {"5G": + {'band': '5G', + 'country': 'JP', + 'channel-mode': 'VHT', + 'channel-width': 20, + "channel": 136}, + "2G": + {'band': '2G', + 'country': 'JP', + "channel-mode": "VHT", + 'channel-width': 20, + "channel": 1} + }, + "radius": False +} + +@allure.feature("BRIDGE MODE CLIENT CONNECTIVITY") +@pytest.mark.parametrize( + 'setup_profiles', + [setup_params_general18], + indirect=True, + scope="class" +) +@pytest.mark.usefixtures("setup_profiles") +class TestCountryJP20Mhz5GChannel136(object): + """Country code along with Channel and Channel-width Test Bridge mode + pytest -m "country_code and Bridge" + """ + @allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-2546", name="WIFI-6938") + @pytest.mark.wpa2_personal + @pytest.mark.twentyMhz + @pytest.mark.fiveg + @pytest.mark.channel136 + def test_client_bridge_wpa2_chn136_20Mhz_JP_5g(self, lf_test, station_names_fiveg, get_configuration): + """Country code Bridge Mode + pytest -m "country_code and twentyMhz and wpa2 and fiveg and channel136" + """ + profile_data = setup_params_general18["ssid_modes"]["wpa2_personal"][1] + ssid = profile_data["ssid_name"] + security_key = profile_data["security_key"] + security = "wpa2" + mode = "BRIDGE" + band = "fiveg" + vlan = 1 + channel = setup_params_general18['rf']['5G']['channel'] + + result = lf_test.country_code_channel_division(ssid=ssid, security=security, passkey=security_key, mode=mode, + band=band, station_name=station_names_fiveg, vlan_id=vlan, + channel=channel,country=392) + if result: + assert True + else: + assert False + + +setup_params_general19 = { + "mode": "BRIDGE", + "ssid_modes": { + "wpa2_personal": [{"ssid_name": "ssid_wpa2_2g", "appliedRadios": ["2G"], "security_key": "something"}, + {"ssid_name": "ssid_wpa2_5g", "appliedRadios": ["5G"], "security_key": "something"} + ]}, + "rf": {"5G": + {'band': '5G', + 'country': 'JP', + 'channel-mode': 'VHT', + 'channel-width': 20, + "channel": 140}, + "2G": + {'band': '2G', + 'country': 'JP', + "channel-mode": "VHT", + 'channel-width': 20, + "channel": 1} + }, + "radius": False +} + +@allure.feature("BRIDGE MODE CLIENT CONNECTIVITY") +@pytest.mark.parametrize( + 'setup_profiles', + [setup_params_general19], + indirect=True, + scope="class" +) +@pytest.mark.usefixtures("setup_profiles") +class TestCountryJP20Mhz5GChannel140(object): + """Country code along with Channel and Channel-width Test Bridge mode + pytest -m "country_code and Bridge" + """ + @allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-2546", name="WIFI-6938") + @pytest.mark.wpa2_personal + @pytest.mark.twentyMhz + @pytest.mark.fiveg + @pytest.mark.channel140 + def test_client_bridge_wpa2_chn140_20Mhz_JP_5g(self, lf_test, station_names_fiveg, get_configuration): + """Country code Bridge Mode + pytest -m "country_code and twentyMhz and wpa2 and fiveg and channel140" + """ + profile_data = setup_params_general19["ssid_modes"]["wpa2_personal"][1] + ssid = profile_data["ssid_name"] + security_key = profile_data["security_key"] + security = "wpa2" + mode = "BRIDGE" + band = "fiveg" + vlan = 1 + channel = setup_params_general19['rf']['5G']['channel'] + + result = lf_test.country_code_channel_division(ssid=ssid, security=security, passkey=security_key, mode=mode, + band=band, station_name=station_names_fiveg, vlan_id=vlan, + channel=channel,country=392) + if result: + assert True + else: + assert False + + +setup_params_general20 = { + "mode": "BRIDGE", + "ssid_modes": { + "wpa2_personal": [{"ssid_name": "ssid_wpa2_2g", "appliedRadios": ["2G"], "security_key": "something"}, + {"ssid_name": "ssid_wpa2_5g", "appliedRadios": ["5G"], "security_key": "something"} + ]}, + "rf": {"5G": + {'band': '5G', + 'country': 'JP', + 'channel-mode': 'VHT', + 'channel-width': 20, + "channel": 144}, + "2G": + {'band': '2G', + 'country': 'JP', + "channel-mode": "VHT", + 'channel-width': 20, + "channel": 1} + }, + "radius": False +} + +@allure.feature("BRIDGE MODE CLIENT CONNECTIVITY") +@pytest.mark.parametrize( + 'setup_profiles', + [setup_params_general20], + indirect=True, + scope="class" +) +@pytest.mark.usefixtures("setup_profiles") +class TestCountryJP20Mhz5GChannel144(object): + """Country code along with Channel and Channel-width Test Bridge mode + pytest -m "country_code and Bridge" + """ + @allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-2546", name="WIFI-6938") + @pytest.mark.wpa2_personal + @pytest.mark.twentyMhz + @pytest.mark.fiveg + @pytest.mark.channel144 + def test_client_bridge_wpa2_chn144_20Mhz_JP_5g(self, lf_test, station_names_fiveg, get_configuration): + """Country code Bridge Mode + pytest -m "country_code and twentyMhz and wpa2 and fiveg and channel144" + """ + profile_data = setup_params_general20["ssid_modes"]["wpa2_personal"][1] + ssid = profile_data["ssid_name"] + security_key = profile_data["security_key"] + security = "wpa2" + mode = "BRIDGE" + band = "fiveg" + vlan = 1 + channel = setup_params_general20['rf']['5G']['channel'] + + result = lf_test.country_code_channel_division(ssid=ssid, security=security, passkey=security_key, mode=mode, + band=band, station_name=station_names_fiveg, vlan_id=vlan, + channel=channel,country=392) + if result: + assert True + else: + assert False + diff --git a/tests/e2e/basic/validation_of_operating_modes/country_code_channel_division/country_code_JP/channel_width_20Mhz/twog_band/__init__.py b/tests/e2e/basic/validation_of_operating_modes/country_code_channel_division/country_code_JP/channel_width_20Mhz/twog_band/__init__.py new file mode 100644 index 000000000..e69de29bb diff --git a/tests/e2e/basic/validation_of_operating_modes/country_code_channel_division/country_code_JP/channel_width_20Mhz/twog_band/test_JP_20Mhz_2g.py b/tests/e2e/basic/validation_of_operating_modes/country_code_channel_division/country_code_JP/channel_width_20Mhz/twog_band/test_JP_20Mhz_2g.py new file mode 100644 index 000000000..21258d45b --- /dev/null +++ b/tests/e2e/basic/validation_of_operating_modes/country_code_channel_division/country_code_JP/channel_width_20Mhz/twog_band/test_JP_20Mhz_2g.py @@ -0,0 +1,821 @@ +""" + + Performance Test: Country code along with Channel and Channel-width Test: Bridge Mode + pytest -m "country_code and Bridge" + +""" + + +import os +import pytest +import allure + +pytestmark = [pytest.mark.country_code, pytest.mark.Bridge, pytest.mark.wpa2, pytest.mark.JP] + +setup_params_general1 = { + "mode": "BRIDGE", + "ssid_modes": { + "wpa2_personal": [{"ssid_name": "ssid_wpa2_2g", "appliedRadios": ["2G"], "security_key": "something"}, + {"ssid_name": "ssid_wpa2_5g", "appliedRadios": ["5G"], "security_key": "something"} + ]}, + "rf": { + "5G": + {'band': '5G', + 'country': 'JP', + "channel-mode": "VHT", + 'channel-width': 20, + "channel": 36}, + "2G": + {'band': '2G', + 'country': 'JP', + "channel-mode": "VHT", + 'channel-width': 20, + "channel": 1} + }, + "radius": False +} + + +@allure.feature("BRIDGE MODE CLIENT CONNECTIVITY") +@pytest.mark.parametrize( + 'setup_profiles', + [setup_params_general1], + indirect=True, + scope="class" +) +@pytest.mark.usefixtures("setup_profiles") +class TestCountryJP20Mhz2GChannel1(object): + """Country code along with Channel and Channel-width Test Bridge mode + pytest -m "country_code and Bridge" + """ + @allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-2546", name="WIFI-6938") + @pytest.mark.wpa2_personal + @pytest.mark.twentyMhz + @pytest.mark.twog + @pytest.mark.channel1 + def test_client_bridge_wpa2_chn1_20Mhz_JP_2g(self, lf_test, station_names_twog, get_configuration): + """Country code Bridge Mode + pytest -m "country_code and twentyMhz and wpa2 and twog and channel1" + """ + profile_data = setup_params_general1["ssid_modes"]["wpa2_personal"][0] + ssid = profile_data["ssid_name"] + security_key = profile_data["security_key"] + security = "wpa2" + mode = "BRIDGE" + band = "twog" + vlan = 1 + channel = setup_params_general1['rf']['2G']['channel'] + + result = lf_test.country_code_channel_division(ssid=ssid, security=security, passkey=security_key, mode=mode, + band=band, station_name=station_names_twog, vlan_id=vlan, + channel=channel,country=392) + if result: + assert True + else: + assert False + + +setup_params_general2 = { + "mode": "BRIDGE", + "ssid_modes": { + "wpa2_personal": [{"ssid_name": "ssid_wpa2_2g", "appliedRadios": ["2G"], "security_key": "something"}, + {"ssid_name": "ssid_wpa2_5g", "appliedRadios": ["5G"], "security_key": "something"} + ]}, + "rf": { + "5G": + {'band': '5G', + 'country': 'JP', + "channel-mode": "VHT", + 'channel-width': 20, + "channel": 36}, + "2G": + {'band': '2G', + 'country': 'JP', + 'channel-mode': 'VHT', + 'channel-width': 20, + "channel": 2} + }, + "radius": False +} + + +@allure.feature("BRIDGE MODE CLIENT CONNECTIVITY") +@pytest.mark.parametrize( + 'setup_profiles', + [setup_params_general2], + indirect=True, + scope="class" +) +@pytest.mark.usefixtures("setup_profiles") +class TestCountryJP20Mhz2GChannel2(object): + """Country code along with Channel and Channel-width Test Bridge mode + pytest -m "country_code and Bridge" + """ + @allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-2546", name="WIFI-6938") + @pytest.mark.wpa2_personal + @pytest.mark.twentyMhz + @pytest.mark.twog + @pytest.mark.channel2 + def test_client_bridge_wpa2_chn2_20Mhz_JP_2g(self, lf_test, station_names_twog, get_configuration): + """Country code Bridge Mode + pytest -m "country_code and twentyMhz and wpa2 and twog and channel2" + """ + profile_data = setup_params_general2["ssid_modes"]["wpa2_personal"][0] + ssid = profile_data["ssid_name"] + security_key = profile_data["security_key"] + security = "wpa2" + mode = "BRIDGE" + band = "twog" + vlan = 1 + channel = setup_params_general2['rf']['2G']['channel'] + + result = lf_test.country_code_channel_division(ssid=ssid, security=security, passkey=security_key, mode=mode, + band=band, station_name=station_names_twog, vlan_id=vlan, + channel=channel,country=392) + if result: + assert True + else: + assert False + + +setup_params_general3 = { + "mode": "BRIDGE", + "ssid_modes": { + "wpa2_personal": [{"ssid_name": "ssid_wpa2_2g", "appliedRadios": ["2G"], "security_key": "something"}, + {"ssid_name": "ssid_wpa2_5g", "appliedRadios": ["5G"], "security_key": "something"} + ]}, + "rf": { + "5G": + {'band': '5G', + 'country': 'JP', + "channel-mode": "VHT", + 'channel-width': 20, + "channel": 36}, + "2G": + {'band': '2G', + 'country': 'JP', + 'channel-mode': 'VHT', + 'channel-width': 20, + "channel": 3} + }, + "radius": False +} + + +@allure.feature("BRIDGE MODE CLIENT CONNECTIVITY") +@pytest.mark.parametrize( + 'setup_profiles', + [setup_params_general3], + indirect=True, + scope="class" +) +@pytest.mark.usefixtures("setup_profiles") +class TestCountryJP20Mhz2GChannel3(object): + """Country code along with Channel and Channel-width Test Bridge mode + pytest -m "country_code and Bridge" + """ + @allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-2546", name="WIFI-6938") + @pytest.mark.wpa2_personal + @pytest.mark.twentyMhz + @pytest.mark.twog + @pytest.mark.channel3 + def test_client_bridge_wpa2_chn3_20Mhz_JP_2g(self, lf_test, station_names_twog, get_configuration): + """Country code Bridge Mode + pytest -m "country_code and twentyMhz and wpa2 and twog and channel3" + """ + profile_data = setup_params_general3["ssid_modes"]["wpa2_personal"][0] + ssid = profile_data["ssid_name"] + security_key = profile_data["security_key"] + security = "wpa2" + mode = "BRIDGE" + band = "twog" + vlan = 1 + channel = setup_params_general3['rf']['2G']['channel'] + + result = lf_test.country_code_channel_division(ssid=ssid, security=security, passkey=security_key, mode=mode, + band=band, station_name=station_names_twog, vlan_id=vlan, + channel=channel,country=392) + if result: + assert True + else: + assert False + + +setup_params_general4 = { + "mode": "BRIDGE", + "ssid_modes": { + "wpa2_personal": [{"ssid_name": "ssid_wpa2_2g", "appliedRadios": ["2G"], "security_key": "something"}, + {"ssid_name": "ssid_wpa2_5g", "appliedRadios": ["5G"], "security_key": "something"} + ]}, + "rf": { + "5G": + {'band': '5G', + 'country': 'JP', + "channel-mode": "VHT", + 'channel-width': 20, + "channel": 36}, + "2G": + {'band': '2G', + 'country': 'JP', + 'channel-mode': 'VHT', + 'channel-width': 20, + "channel": 4} + }, + "radius": False +} + +@allure.feature("BRIDGE MODE CLIENT CONNECTIVITY") +@pytest.mark.parametrize( + 'setup_profiles', + [setup_params_general4], + indirect=True, + scope="class" +) +@pytest.mark.usefixtures("setup_profiles") +class TestCountryJP20Mhz2GChannel4(object): + """Country code along with Channel and Channel-width Test Bridge mode + pytest -m "country_code and Bridge" + """ + @allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-2546", name="WIFI-6938") + @pytest.mark.wpa2_personal + @pytest.mark.twentyMhz + @pytest.mark.twog + @pytest.mark.channel4 + def test_client_bridge_wpa2_chn4_20Mhz_JP_2g(self, lf_test, station_names_twog, get_configuration): + """Country code Bridge Mode + pytest -m "country_code and twentyMhz and wpa2 and twog and channel4" + """ + profile_data = setup_params_general4["ssid_modes"]["wpa2_personal"][0] + ssid = profile_data["ssid_name"] + security_key = profile_data["security_key"] + security = "wpa2" + mode = "BRIDGE" + band = "twog" + vlan = 1 + channel = setup_params_general4['rf']['2G']['channel'] + + result = lf_test.country_code_channel_division(ssid=ssid, security=security, passkey=security_key, mode=mode, + band=band, station_name=station_names_twog, vlan_id=vlan, + channel=channel,country=392) + if result: + assert True + else: + assert False + + +setup_params_general5 = { + "mode": "BRIDGE", + "ssid_modes": { + "wpa2_personal": [{"ssid_name": "ssid_wpa2_2g", "appliedRadios": ["2G"], "security_key": "something"}, + {"ssid_name": "ssid_wpa2_5g", "appliedRadios": ["5G"], "security_key": "something"} + ]}, + "rf": { + "5G": + {'band': '5G', + 'country': 'JP', + "channel-mode": "VHT", + 'channel-width': 20, + "channel": 36}, + "2G": + {'band': '2G', + 'country': 'JP', + 'channel-mode': 'VHT', + 'channel-width': 20, + "channel": 5} + }, + "radius": False +} + +@allure.feature("BRIDGE MODE CLIENT CONNECTIVITY") +@pytest.mark.parametrize( + 'setup_profiles', + [setup_params_general5], + indirect=True, + scope="class" +) +@pytest.mark.usefixtures("setup_profiles") +class TestCountryJP20Mhz2GChannel5(object): + """Country code along with Channel and Channel-width Test Bridge mode + pytest -m "country_code and Bridge" + """ + @allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-2546", name="WIFI-6938") + @pytest.mark.wpa2_personal + @pytest.mark.twentyMhz + @pytest.mark.twog + @pytest.mark.channel5 + def test_client_bridge_wpa2_chn5_20Mhz_JP_2g(self, lf_test, station_names_twog, get_configuration): + """Country code Bridge Mode + pytest -m "country_code and twentyMhz and wpa2 and twog and channel5" + """ + profile_data = setup_params_general5["ssid_modes"]["wpa2_personal"][0] + ssid = profile_data["ssid_name"] + security_key = profile_data["security_key"] + security = "wpa2" + mode = "BRIDGE" + band = "twog" + vlan = 1 + channel = setup_params_general5['rf']['2G']['channel'] + + result = lf_test.country_code_channel_division(ssid=ssid, security=security, passkey=security_key, mode=mode, + band=band, station_name=station_names_twog, vlan_id=vlan, + channel=channel,country=392) + if result: + assert True + else: + assert False + + +setup_params_general6 = { + "mode": "BRIDGE", + "ssid_modes": { + "wpa2_personal": [{"ssid_name": "ssid_wpa2_2g", "appliedRadios": ["2G"], "security_key": "something"}, + {"ssid_name": "ssid_wpa2_5g", "appliedRadios": ["5G"], "security_key": "something"} + ]}, + "rf": { + "5G": + {'band': '5G', + 'country': 'JP', + "channel-mode": "VHT", + 'channel-width': 20, + "channel": 36}, + "2G": + {'band': '2G', + 'country': 'JP', + 'channel-mode': 'VHT', + 'channel-width': 20, + "channel": 6} + }, + "radius": False +} + +@allure.feature("BRIDGE MODE CLIENT CONNECTIVITY") +@pytest.mark.parametrize( + 'setup_profiles', + [setup_params_general6], + indirect=True, + scope="class" +) +@pytest.mark.usefixtures("setup_profiles") +class TestCountryJP20Mhz2GChannel6(object): + """Country code along with Channel and Channel-width Test Bridge mode + pytest -m "country_code and Bridge" + """ + @allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-2546", name="WIFI-6938") + @pytest.mark.wpa2_personal + @pytest.mark.twentyMhz + @pytest.mark.twog + @pytest.mark.channel6 + def test_client_bridge_wpa2_chn6_20Mhz_JP_2g(self, lf_test, station_names_twog, get_configuration): + """Country code Bridge Mode + pytest -m "country_code and twentyMhz and wpa2 and twog and channel6" + """ + profile_data = setup_params_general6["ssid_modes"]["wpa2_personal"][0] + ssid = profile_data["ssid_name"] + security_key = profile_data["security_key"] + security = "wpa2" + mode = "BRIDGE" + band = "twog" + vlan = 1 + channel = setup_params_general6['rf']['2G']['channel'] + + result = lf_test.country_code_channel_division(ssid=ssid, security=security, passkey=security_key, mode=mode, + band=band, station_name=station_names_twog, vlan_id=vlan, + channel=channel,country=392) + if result: + assert True + else: + assert False + + +setup_params_general7 = { + "mode": "BRIDGE", + "ssid_modes": { + "wpa2_personal": [{"ssid_name": "ssid_wpa2_2g", "appliedRadios": ["2G"], "security_key": "something"}, + {"ssid_name": "ssid_wpa2_5g", "appliedRadios": ["5G"], "security_key": "something"} + ]}, + "rf": { + "5G": + {'band': '5G', + 'country': 'JP', + "channel-mode": "VHT", + 'channel-width': 20, + "channel": 36}, + "2G": + {'band': '2G', + 'country': 'JP', + 'channel-mode': 'VHT', + 'channel-width': 20, + "channel": 7} + }, + "radius": False +} + +@allure.feature("BRIDGE MODE CLIENT CONNECTIVITY") +@pytest.mark.parametrize( + 'setup_profiles', + [setup_params_general7], + indirect=True, + scope="class" +) +@pytest.mark.usefixtures("setup_profiles") +class TestCountryJP20Mhz2GChannel7(object): + """Country code along with Channel and Channel-width Test Bridge mode + pytest -m "country_code and Bridge" + """ + @allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-2546", name="WIFI-6938") + @pytest.mark.wpa2_personal + @pytest.mark.twentyMhz + @pytest.mark.twog + @pytest.mark.channel7 + def test_client_bridge_wpa2_chn7_20Mhz_JP_2g(self, lf_test, station_names_twog, get_configuration): + """Country code Bridge Mode + pytest -m "country_code and twentyMhz and wpa2 and twog and channel7" + """ + profile_data = setup_params_general7["ssid_modes"]["wpa2_personal"][0] + ssid = profile_data["ssid_name"] + security_key = profile_data["security_key"] + security = "wpa2" + mode = "BRIDGE" + band = "twog" + vlan = 1 + channel = setup_params_general7['rf']['2G']['channel'] + + result = lf_test.country_code_channel_division(ssid=ssid, security=security, passkey=security_key, mode=mode, + band=band, station_name=station_names_twog, vlan_id=vlan, + channel=channel,country=392) + if result: + assert True + else: + assert False + + +setup_params_general8 = { + "mode": "BRIDGE", + "ssid_modes": { + "wpa2_personal": [{"ssid_name": "ssid_wpa2_2g", "appliedRadios": ["2G"], "security_key": "something"}, + {"ssid_name": "ssid_wpa2_5g", "appliedRadios": ["5G"], "security_key": "something"} + ]}, + "rf": { + "5G": + {'band': '5G', + 'country': 'JP', + "channel-mode": "VHT", + 'channel-width': 20, + "channel": 36}, + "2G": + {'band': '2G', + 'country': 'JP', + 'channel-mode': 'VHT', + 'channel-width': 20, + "channel": 8} + }, + "radius": False +} + +@allure.feature("BRIDGE MODE CLIENT CONNECTIVITY") +@pytest.mark.parametrize( + 'setup_profiles', + [setup_params_general8], + indirect=True, + scope="class" +) +@pytest.mark.usefixtures("setup_profiles") +class TestCountryJP20Mhz2GChannel8(object): + """Country code along with Channel and Channel-width Test Bridge mode + pytest -m "country_code and Bridge" + """ + @allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-2546", name="WIFI-6938") + @pytest.mark.wpa2_personal + @pytest.mark.twentyMhz + @pytest.mark.twog + @pytest.mark.channel8 + def test_client_bridge_wpa2_chn8_20Mhz_JP_2g(self, lf_test, station_names_twog, get_configuration): + """Country code Bridge Mode + pytest -m "country_code and twentyMhz and wpa2 and twog and channel8" + """ + profile_data = setup_params_general8["ssid_modes"]["wpa2_personal"][0] + ssid = profile_data["ssid_name"] + security_key = profile_data["security_key"] + security = "wpa2" + mode = "BRIDGE" + band = "twog" + vlan = 1 + channel = setup_params_general8['rf']['2G']['channel'] + + result = lf_test.country_code_channel_division(ssid=ssid, security=security, passkey=security_key, mode=mode, + band=band, station_name=station_names_twog, vlan_id=vlan, + channel=channel,country=392) + if result: + assert True + else: + assert False + + +setup_params_general9 = { + "mode": "BRIDGE", + "ssid_modes": { + "wpa2_personal": [{"ssid_name": "ssid_wpa2_2g", "appliedRadios": ["2G"], "security_key": "something"}, + {"ssid_name": "ssid_wpa2_5g", "appliedRadios": ["5G"], "security_key": "something"} + ]}, + "rf": { + "5G": + {'band': '5G', + 'country': 'JP', + "channel-mode": "VHT", + 'channel-width': 20, + "channel": 36}, + "2G": + {'band': '2G', + 'country': 'JP', + 'channel-mode': 'VHT', + 'channel-width': 20, + "channel": 9} + }, + "radius": False +} + +@allure.feature("BRIDGE MODE CLIENT CONNECTIVITY") +@pytest.mark.parametrize( + 'setup_profiles', + [setup_params_general9], + indirect=True, + scope="class" +) +@pytest.mark.usefixtures("setup_profiles") +class TestCountryJP20Mhz2GChannel9(object): + """Country code along with Channel and Channel-width Test Bridge mode + pytest -m "country_code and Bridge" + """ + @allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-2546", name="WIFI-6938") + @pytest.mark.wpa2_personal + @pytest.mark.twentyMhz + @pytest.mark.twog + @pytest.mark.channel9 + def test_client_bridge_wpa2_chn9_20Mhz_JP_2g(self, lf_test, station_names_twog, get_configuration): + """Country code Bridge Mode + pytest -m "country_code and twentyMhz and wpa2 and twog and channel9" + """ + profile_data = setup_params_general9["ssid_modes"]["wpa2_personal"][0] + ssid = profile_data["ssid_name"] + security_key = profile_data["security_key"] + security = "wpa2" + mode = "BRIDGE" + band = "twog" + vlan = 1 + channel = setup_params_general9['rf']['2G']['channel'] + + result = lf_test.country_code_channel_division(ssid=ssid, security=security, passkey=security_key, mode=mode, + band=band, station_name=station_names_twog, vlan_id=vlan, + channel=channel,country=392) + if result: + assert True + else: + assert False + + +setup_params_general10 = { + "mode": "BRIDGE", + "ssid_modes": { + "wpa2_personal": [{"ssid_name": "ssid_wpa2_2g", "appliedRadios": ["2G"], "security_key": "something"}, + {"ssid_name": "ssid_wpa2_5g", "appliedRadios": ["5G"], "security_key": "something"} + ]}, + "rf": { + "5G": + {'band': '5G', + 'country': 'JP', + "channel-mode": "VHT", + 'channel-width': 20, + "channel": 36}, + "2G": + {'band': '2G', + 'country': 'JP', + 'channel-mode': 'VHT', + 'channel-width': 20, + "channel": 10} + }, + "radius": False +} + +@allure.feature("BRIDGE MODE CLIENT CONNECTIVITY") +@pytest.mark.parametrize( + 'setup_profiles', + [setup_params_general10], + indirect=True, + scope="class" +) +@pytest.mark.usefixtures("setup_profiles") +class TestCountryJP20Mhz2GChannel10(object): + """Country code along with Channel and Channel-width Test Bridge mode + pytest -m "country_code and Bridge" + """ + @allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-2546", name="WIFI-6938") + @pytest.mark.wpa2_personal + @pytest.mark.twentyMhz + @pytest.mark.twog + @pytest.mark.channel10 + def test_client_bridge_wpa2_chn10_20Mhz_JP_2g(self, lf_test, station_names_twog, get_configuration): + """Country code Bridge Mode + pytest -m "country_code and twentyMhz and wpa2 and twog and channel10" + """ + profile_data = setup_params_general10["ssid_modes"]["wpa2_personal"][0] + ssid = profile_data["ssid_name"] + security_key = profile_data["security_key"] + security = "wpa2" + mode = "BRIDGE" + band = "twog" + vlan = 1 + channel = setup_params_general10['rf']['2G']['channel'] + + result = lf_test.country_code_channel_division(ssid=ssid, security=security, passkey=security_key, mode=mode, + band=band, station_name=station_names_twog, vlan_id=vlan, + channel=channel,country=392) + if result: + assert True + else: + assert False + + +setup_params_general11 = { + "mode": "BRIDGE", + "ssid_modes": { + "wpa2_personal": [{"ssid_name": "ssid_wpa2_2g", "appliedRadios": ["2G"], "security_key": "something"}, + {"ssid_name": "ssid_wpa2_5g", "appliedRadios": ["5G"], "security_key": "something"} + ]}, + "rf": { + "5G": + {'band': '5G', + 'country': 'JP', + "channel-mode": "VHT", + 'channel-width': 20, + "channel": 36}, + "2G": + {'band': '2G', + 'country': 'JP', + 'channel-mode': 'VHT', + 'channel-width': 20, + "channel": 11} + }, + "radius": False +} + +@allure.feature("BRIDGE MODE CLIENT CONNECTIVITY") +@pytest.mark.parametrize( + 'setup_profiles', + [setup_params_general11], + indirect=True, + scope="class" +) +@pytest.mark.usefixtures("setup_profiles") +class TestCountryJP20Mhz2GChannel11(object): + """Country code along with Channel and Channel-width Test Bridge mode + pytest -m "country_code and Bridge" + """ + @allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-2546", name="WIFI-6938") + @pytest.mark.wpa2_personal + @pytest.mark.twentyMhz + @pytest.mark.twog + @pytest.mark.channel11 + def test_client_bridge_wpa2_chn11_20Mhz_JP_2g(self, lf_test, station_names_twog, get_configuration): + """Country code Bridge Mode + pytest -m "country_code and twentyMhz and wpa2 and twog and channel11" + """ + profile_data = setup_params_general11["ssid_modes"]["wpa2_personal"][0] + ssid = profile_data["ssid_name"] + security_key = profile_data["security_key"] + security = "wpa2" + mode = "BRIDGE" + band = "twog" + vlan = 1 + channel = setup_params_general11['rf']['2G']['channel'] + + result = lf_test.country_code_channel_division(ssid=ssid, security=security, passkey=security_key, mode=mode, + band=band, station_name=station_names_twog, vlan_id=vlan, + channel=channel,country=392) + if result: + assert True + else: + assert False + + +setup_params_general12 = { + "mode": "BRIDGE", + "ssid_modes": { + "wpa2_personal": [{"ssid_name": "ssid_wpa2_2g", "appliedRadios": ["2G"], "security_key": "something"}, + {"ssid_name": "ssid_wpa2_5g", "appliedRadios": ["5G"], "security_key": "something"} + ]}, + "rf": { + "5G": + {'band': '5G', + 'country': 'JP', + "channel-mode": "VHT", + 'channel-width': 20, + "channel": 36}, + "2G": + {'band': '2G', + 'country': 'JP', + 'channel-mode': 'VHT', + 'channel-width': 20, + "channel": 12} + }, + "radius": False +} + +@allure.feature("BRIDGE MODE CLIENT CONNECTIVITY") +@pytest.mark.parametrize( + 'setup_profiles', + [setup_params_general12], + indirect=True, + scope="class" +) +@pytest.mark.usefixtures("setup_profiles") +class TestCountryJP20Mhz2GChannel12(object): + """Country code along with Channel and Channel-width Test Bridge mode + pytest -m "country_code and Bridge" + """ + @allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-2546", name="WIFI-6938") + @pytest.mark.wpa2_personal + @pytest.mark.twentyMhz + @pytest.mark.twog + @pytest.mark.channel12 + def test_client_bridge_wpa2_chn12_20Mhz_JP_2g(self, lf_test, station_names_twog, get_configuration): + """Country code Bridge Mode + pytest -m "country_code and twentyMhz and wpa2 and twog and channel12" + """ + profile_data = setup_params_general12["ssid_modes"]["wpa2_personal"][0] + ssid = profile_data["ssid_name"] + security_key = profile_data["security_key"] + security = "wpa2" + mode = "BRIDGE" + band = "twog" + vlan = 1 + channel = setup_params_general12['rf']['2G']['channel'] + + result = lf_test.country_code_channel_division(ssid=ssid, security=security, passkey=security_key, mode=mode, + band=band, station_name=station_names_twog, vlan_id=vlan, + channel=channel,country=392) + if result: + assert True + else: + assert False + + +setup_params_general13 = { + "mode": "BRIDGE", + "ssid_modes": { + "wpa2_personal": [{"ssid_name": "ssid_wpa2_2g", "appliedRadios": ["2G"], "security_key": "something"}, + {"ssid_name": "ssid_wpa2_5g", "appliedRadios": ["5G"], "security_key": "something"} + ]}, + "rf": { + "5G": + {'band': '5G', + 'country': 'JP', + "channel-mode": "VHT", + 'channel-width': 20, + "channel": 36}, + "2G": + {'band': '2G', + 'country': 'JP', + 'channel-mode': 'VHT', + 'channel-width': 20, + "channel": 13} + }, + "radius": False +} + +@allure.feature("BRIDGE MODE CLIENT CONNECTIVITY") +@pytest.mark.parametrize( + 'setup_profiles', + [setup_params_general13], + indirect=True, + scope="class" +) +@pytest.mark.usefixtures("setup_profiles") +class TestCountryJP20Mhz2GChannel13(object): + """Country code along with Channel and Channel-width Test Bridge mode + pytest -m "country_code and Bridge" + """ + @allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-2546", name="WIFI-6938") + @pytest.mark.wpa2_personal + @pytest.mark.twentyMhz + @pytest.mark.twog + @pytest.mark.channel13 + def test_client_bridge_wpa2_chn13_20Mhz_JP_2g(self, lf_test, station_names_twog, get_configuration): + """Country code Bridge Mode + pytest -m "country_code and twentyMhz and wpa2 and twog and channel13" + """ + profile_data = setup_params_general13["ssid_modes"]["wpa2_personal"][0] + ssid = profile_data["ssid_name"] + security_key = profile_data["security_key"] + security = "wpa2" + mode = "BRIDGE" + band = "twog" + vlan = 1 + channel = setup_params_general13['rf']['2G']['channel'] + + result = lf_test.country_code_channel_division(ssid=ssid, security=security, passkey=security_key, mode=mode, + band=band, station_name=station_names_twog, vlan_id=vlan, + channel=channel,country=392) + if result: + assert True + else: + assert False diff --git a/tests/e2e/basic/validation_of_operating_modes/country_code_channel_division/country_code_JP/channel_width_40Mhz/__init__.py b/tests/e2e/basic/validation_of_operating_modes/country_code_channel_division/country_code_JP/channel_width_40Mhz/__init__.py new file mode 100644 index 000000000..e69de29bb diff --git a/tests/e2e/basic/validation_of_operating_modes/country_code_channel_division/country_code_JP/channel_width_40Mhz/fiveg_band/__init__.py b/tests/e2e/basic/validation_of_operating_modes/country_code_channel_division/country_code_JP/channel_width_40Mhz/fiveg_band/__init__.py new file mode 100644 index 000000000..e69de29bb diff --git a/tests/e2e/basic/validation_of_operating_modes/country_code_channel_division/country_code_JP/channel_width_40Mhz/fiveg_band/test_JP_40Mhz_5g.py b/tests/e2e/basic/validation_of_operating_modes/country_code_channel_division/country_code_JP/channel_width_40Mhz/fiveg_band/test_JP_40Mhz_5g.py new file mode 100644 index 000000000..4f8eadb0d --- /dev/null +++ b/tests/e2e/basic/validation_of_operating_modes/country_code_channel_division/country_code_JP/channel_width_40Mhz/fiveg_band/test_JP_40Mhz_5g.py @@ -0,0 +1,634 @@ +""" + + Performance Test: Country code along with Channel and Channel-width Test: Bridge Mode + pytest -m "country_code and Bridge" + +""" + + +import os +import pytest +import allure + +pytestmark = [pytest.mark.country_code, pytest.mark.Bridge, pytest.mark.wpa2, pytest.mark.JP] + +setup_params_general1 = { + "mode": "BRIDGE", + "ssid_modes": { + "wpa2_personal": [{"ssid_name": "ssid_wpa2_2g", "appliedRadios": ["2G"], "security_key": "something"}, + {"ssid_name": "ssid_wpa2_5g", "appliedRadios": ["5G"], "security_key": "something"} + ]}, + "rf": { + "5G": + {'band': '5G', + 'country': 'JP', + "channel-mode": "VHT", + 'channel-width': 40, + "channel": 36}, + "2G": + {'band': '2G', + 'country': 'JP', + "channel-mode": "VHT", + 'channel-width': 40, + "channel": 1} + }, + "radius": False +} + + +@allure.feature("BRIDGE MODE CLIENT CONNECTIVITY") +@pytest.mark.parametrize( + 'setup_profiles', + [setup_params_general1], + indirect=True, + scope="class" +) +@pytest.mark.usefixtures("setup_profiles") +class TestCountryJP40Mhz5GChannel36(object): + """Country code along with Channel and Channel-width Test Bridge mode + pytest -m "country_code and Bridge" + """ + @allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-2546", name="WIFI-6938") + @pytest.mark.wpa2_personal + @pytest.mark.fourtyMhz + @pytest.mark.fiveg + @pytest.mark.channel36 + def test_client_bridge_wpa2_chn36_40Mhz_JP_5g(self, lf_test, station_names_fiveg, get_configuration): + """Country code Bridge Mode + pytest -m "country_code and fourtyMhz and wpa2 and fiveg and channel36" + """ + profile_data = setup_params_general1["ssid_modes"]["wpa2_personal"][1] + ssid = profile_data["ssid_name"] + security_key = profile_data["security_key"] + security = "wpa2" + mode = "BRIDGE" + band = "fiveg" + vlan = 1 + channel = setup_params_general1['rf']['5G']['channel'] + + result = lf_test.country_code_channel_division(ssid=ssid, security=security, passkey=security_key, mode=mode, + band=band, station_name=station_names_fiveg, vlan_id=vlan, + channel=channel,country=392) + if result: + assert True + else: + assert False + + +setup_params_general2 = { + "mode": "BRIDGE", + "ssid_modes": { + "wpa2_personal": [{"ssid_name": "ssid_wpa2_2g", "appliedRadios": ["2G"], "security_key": "something"}, + {"ssid_name": "ssid_wpa2_5g", "appliedRadios": ["5G"], "security_key": "something"} + ]}, + "rf": { + "5G": + {'band': '5G', + 'country': 'JP', + 'channel-mode': 'VHT', + 'channel-width': 40, + "channel": 44}, + "2G": + {'band': '2G', + 'country': 'JP', + "channel-mode": "VHT", + 'channel-width': 40, + "channel": 1} + }, + "radius": False +} + + +@allure.feature("BRIDGE MODE CLIENT CONNECTIVITY") +@pytest.mark.parametrize( + 'setup_profiles', + [setup_params_general2], + indirect=True, + scope="class" +) +@pytest.mark.usefixtures("setup_profiles") +class TestCountryJP40Mhz5GChannel44(object): + """Country code along with Channel and Channel-width Test Bridge mode + pytest -m "country_code and Bridge" + """ + @allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-2546", name="WIFI-6938") + @pytest.mark.wpa2_personal + @pytest.mark.fourtyMhz + @pytest.mark.fiveg + @pytest.mark.channel44 + def test_client_bridge_wpa2_chn44_40Mhz_JP_5g(self, lf_test, station_names_fiveg, get_configuration): + """Country code Bridge Mode + pytest -m "country_code and fourtyMhz and wpa2 and fiveg and channel44" + """ + profile_data = setup_params_general2["ssid_modes"]["wpa2_personal"][1] + ssid = profile_data["ssid_name"] + security_key = profile_data["security_key"] + security = "wpa2" + mode = "BRIDGE" + band = "fiveg" + vlan = 1 + channel = setup_params_general2['rf']['5G']['channel'] + + result = lf_test.country_code_channel_division(ssid=ssid, security=security, passkey=security_key, mode=mode, + band=band, station_name=station_names_fiveg, vlan_id=vlan, + channel=channel,country=392) + if result: + assert True + else: + assert False + + +setup_params_general3 = { + "mode": "BRIDGE", + "ssid_modes": { + "wpa2_personal": [{"ssid_name": "ssid_wpa2_2g", "appliedRadios": ["2G"], "security_key": "something"}, + {"ssid_name": "ssid_wpa2_5g", "appliedRadios": ["5G"], "security_key": "something"} + ]}, + "rf": { + "5G": + {'band': '5G', + 'country': 'JP', + 'channel-mode': 'VHT', + 'channel-width': 40, + "channel": 52}, + "2G": + {'band': '2G', + 'country': 'JP', + "channel-mode": "VHT", + 'channel-width': 40, + "channel": 1} + }, + "radius": False +} + + +@allure.feature("BRIDGE MODE CLIENT CONNECTIVITY") +@pytest.mark.parametrize( + 'setup_profiles', + [setup_params_general3], + indirect=True, + scope="class" +) +@pytest.mark.usefixtures("setup_profiles") +class TestCountryJP40Mhz5GChannel52(object): + """Country code along with Channel and Channel-width Test Bridge mode + pytest -m "country_code and Bridge" + """ + @allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-2546", name="WIFI-6938") + @pytest.mark.wpa2_personal + @pytest.mark.fourtyMhz + @pytest.mark.fiveg + @pytest.mark.channel52 + def test_client_bridge_wpa2_chn52_40Mhz_JP_5g(self, lf_test, station_names_fiveg, get_configuration): + """Country code Bridge Mode + pytest -m "country_code and fourtyMhz and wpa2 and fiveg and channel52" + """ + profile_data = setup_params_general3["ssid_modes"]["wpa2_personal"][1] + ssid = profile_data["ssid_name"] + security_key = profile_data["security_key"] + security = "wpa2" + mode = "BRIDGE" + band = "fiveg" + vlan = 1 + channel = setup_params_general3['rf']['5G']['channel'] + + result = lf_test.country_code_channel_division(ssid=ssid, security=security, passkey=security_key, mode=mode, + band=band, station_name=station_names_fiveg, vlan_id=vlan, + channel=channel,country=392) + if result: + assert True + else: + assert False + + +setup_params_general4 = { + "mode": "BRIDGE", + "ssid_modes": { + "wpa2_personal": [{"ssid_name": "ssid_wpa2_2g", "appliedRadios": ["2G"], "security_key": "something"}, + {"ssid_name": "ssid_wpa2_5g", "appliedRadios": ["5G"], "security_key": "something"} + ]}, + "rf": {"5G": + {'band': '5G', + 'country': 'JP', + 'channel-mode': 'VHT', + 'channel-width': 40, + "channel": 60}, + "2G": + {'band': '2G', + 'country': 'JP', + "channel-mode": "VHT", + 'channel-width': 40, + "channel": 1} + }, + "radius": False +} + +@allure.feature("BRIDGE MODE CLIENT CONNECTIVITY") +@pytest.mark.parametrize( + 'setup_profiles', + [setup_params_general4], + indirect=True, + scope="class" +) +@pytest.mark.usefixtures("setup_profiles") +class TestCountryJP40Mhz5GChannel60(object): + """Country code along with Channel and Channel-width Test Bridge mode + pytest -m "country_code and Bridge" + """ + @allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-2546", name="WIFI-6938") + @pytest.mark.wpa2_personal + @pytest.mark.fourtyMhz + @pytest.mark.fiveg + @pytest.mark.channel60 + def test_client_bridge_wpa2_chn60_40Mhz_JP_5g(self, lf_test, station_names_fiveg, get_configuration): + """Country code Bridge Mode + pytest -m "country_code and fourtyMhz and wpa2 and fiveg and channel60" + """ + profile_data = setup_params_general4["ssid_modes"]["wpa2_personal"][1] + ssid = profile_data["ssid_name"] + security_key = profile_data["security_key"] + security = "wpa2" + mode = "BRIDGE" + band = "fiveg" + vlan = 1 + channel = setup_params_general4['rf']['5G']['channel'] + + result = lf_test.country_code_channel_division(ssid=ssid, security=security, passkey=security_key, mode=mode, + band=band, station_name=station_names_fiveg, vlan_id=vlan, + channel=channel,country=392) + if result: + assert True + else: + assert False + + +setup_params_general5 = { + "mode": "BRIDGE", + "ssid_modes": { + "wpa2_personal": [{"ssid_name": "ssid_wpa2_2g", "appliedRadios": ["2G"], "security_key": "something"}, + {"ssid_name": "ssid_wpa2_5g", "appliedRadios": ["5G"], "security_key": "something"} + ]}, + "rf": { + "5G": + {'band': '5G', + 'country': 'JP', + 'channel-mode': 'VHT', + 'channel-width': 40, + "channel": 100}, + "2G": + {'band': '2G', + 'country': 'JP', + "channel-mode": "VHT", + 'channel-width': 40, + "channel": 1} + }, + "radius": False +} + +@allure.feature("BRIDGE MODE CLIENT CONNECTIVITY") +@pytest.mark.parametrize( + 'setup_profiles', + [setup_params_general5], + indirect=True, + scope="class" +) +@pytest.mark.usefixtures("setup_profiles") +class TestCountryJP40Mhz5GChannel100(object): + """Country code along with Channel and Channel-width Test Bridge mode + pytest -m "country_code and Bridge" + """ + @allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-2546", name="WIFI-6938") + @pytest.mark.wpa2_personal + @pytest.mark.fourtyMhz + @pytest.mark.fiveg + @pytest.mark.channel100 + def test_client_bridge_wpa2_chn100_40Mhz_JP_5g(self, lf_test, station_names_fiveg, get_configuration): + """Country code Bridge Mode + pytest -m "country_code and fourtyMhz and wpa2 and fiveg and channel100" + """ + profile_data = setup_params_general5["ssid_modes"]["wpa2_personal"][1] + ssid = profile_data["ssid_name"] + security_key = profile_data["security_key"] + security = "wpa2" + mode = "BRIDGE" + band = "fiveg" + vlan = 1 + channel = setup_params_general5['rf']['5G']['channel'] + + result = lf_test.country_code_channel_division(ssid=ssid, security=security, passkey=security_key, mode=mode, + band=band, station_name=station_names_fiveg, vlan_id=vlan, + channel=channel,country=392) + if result: + assert True + else: + assert False + + +setup_params_general6 = { + "mode": "BRIDGE", + "ssid_modes": { + "wpa2_personal": [{"ssid_name": "ssid_wpa2_2g", "appliedRadios": ["2G"], "security_key": "something"}, + {"ssid_name": "ssid_wpa2_5g", "appliedRadios": ["5G"], "security_key": "something"} + ]}, + "rf": { + "5G": + {'band': '5G', + 'country': 'JP', + 'channel-mode': 'VHT', + 'channel-width': 40, + "channel": 108}, + "2G": + {'band': '2G', + 'country': 'JP', + "channel-mode": "VHT", + 'channel-width': 40, + "channel": 1} + }, + "radius": False +} + +@allure.feature("BRIDGE MODE CLIENT CONNECTIVITY") +@pytest.mark.parametrize( + 'setup_profiles', + [setup_params_general6], + indirect=True, + scope="class" +) +@pytest.mark.usefixtures("setup_profiles") +class TestCountryJP40Mhz5GChannel108(object): + """Country code along with Channel and Channel-width Test Bridge mode + pytest -m "country_code and Bridge" + """ + @allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-2546", name="WIFI-6938") + @pytest.mark.wpa2_personal + @pytest.mark.fourtyMhz + @pytest.mark.fiveg + @pytest.mark.channel108 + def test_client_bridge_wpa2_chn108_40Mhz_JP_5g(self, lf_test, station_names_fiveg, get_configuration): + """Country code Bridge Mode + pytest -m "country_code and fourtyMhz and wpa2 and fiveg and channel108" + """ + profile_data = setup_params_general6["ssid_modes"]["wpa2_personal"][1] + ssid = profile_data["ssid_name"] + security_key = profile_data["security_key"] + security = "wpa2" + mode = "BRIDGE" + band = "fiveg" + vlan = 1 + channel = setup_params_general6['rf']['5G']['channel'] + + result = lf_test.country_code_channel_division(ssid=ssid, security=security, passkey=security_key, mode=mode, + band=band, station_name=station_names_fiveg, vlan_id=vlan, + channel=channel,country=392) + if result: + assert True + else: + assert False + + +setup_params_general7 = { + "mode": "BRIDGE", + "ssid_modes": { + "wpa2_personal": [{"ssid_name": "ssid_wpa2_2g", "appliedRadios": ["2G"], "security_key": "something"}, + {"ssid_name": "ssid_wpa2_5g", "appliedRadios": ["5G"], "security_key": "something"} + ]}, + "rf": { + "5G": + {'band': '5G', + 'country': 'JP', + 'channel-mode': 'VHT', + 'channel-width': 40, + "channel": 116}, + "2G": + {'band': '2G', + 'country': 'JP', + "channel-mode": "VHT", + 'channel-width': 40, + "channel": 1} + }, + "radius": False +} + +@allure.feature("BRIDGE MODE CLIENT CONNECTIVITY") +@pytest.mark.parametrize( + 'setup_profiles', + [setup_params_general7], + indirect=True, + scope="class" +) +@pytest.mark.usefixtures("setup_profiles") +class TestCountryJP40Mhz5GChannel116(object): + """Country code along with Channel and Channel-width Test Bridge mode + pytest -m "country_code and Bridge" + """ + @allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-2546", name="WIFI-6938") + @pytest.mark.wpa2_personal + @pytest.mark.fourtyMhz + @pytest.mark.fiveg + @pytest.mark.channel116 + def test_client_bridge_wpa2_chn116_40Mhz_JP_5g(self, lf_test, station_names_fiveg, get_configuration): + """Country code Bridge Mode + pytest -m "country_code and fourtyMhz and wpa2 and fiveg and channel116" + """ + profile_data = setup_params_general7["ssid_modes"]["wpa2_personal"][1] + ssid = profile_data["ssid_name"] + security_key = profile_data["security_key"] + security = "wpa2" + mode = "BRIDGE" + band = "fiveg" + vlan = 1 + channel = setup_params_general7['rf']['5G']['channel'] + + result = lf_test.country_code_channel_division(ssid=ssid, security=security, passkey=security_key, mode=mode, + band=band, station_name=station_names_fiveg, vlan_id=vlan, + channel=channel,country=392) + if result: + assert True + else: + assert False + + +setup_params_general8 = { + "mode": "BRIDGE", + "ssid_modes": { + "wpa2_personal": [{"ssid_name": "ssid_wpa2_2g", "appliedRadios": ["2G"], "security_key": "something"}, + {"ssid_name": "ssid_wpa2_5g", "appliedRadios": ["5G"], "security_key": "something"} + ]}, + "rf": { + "5G": + {'band': '5G', + 'country': 'JP', + 'channel-mode': 'VHT', + 'channel-width': 40, + "channel": 124}, + "2G": + {'band': '2G', + 'country': 'JP', + "channel-mode": "VHT", + 'channel-width': 40, + "channel": 1} + }, + "radius": False +} + +@allure.feature("BRIDGE MODE CLIENT CONNECTIVITY") +@pytest.mark.parametrize( + 'setup_profiles', + [setup_params_general8], + indirect=True, + scope="class" +) +@pytest.mark.usefixtures("setup_profiles") +class TestCountryJP40Mhz5GChannel124(object): + """Country code along with Channel and Channel-width Test Bridge mode + pytest -m "country_code and Bridge" + """ + @allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-2546", name="WIFI-6938") + @pytest.mark.wpa2_personal + @pytest.mark.fourtyMhz + @pytest.mark.fiveg + @pytest.mark.channel124 + def test_client_bridge_wpa2_chn124_40Mhz_JP_5g(self, lf_test, station_names_fiveg, get_configuration): + """Country code Bridge Mode + pytest -m "country_code and fourtyMhz and wpa2 and fiveg and channel124" + """ + profile_data = setup_params_general8["ssid_modes"]["wpa2_personal"][1] + ssid = profile_data["ssid_name"] + security_key = profile_data["security_key"] + security = "wpa2" + mode = "BRIDGE" + band = "fiveg" + vlan = 1 + channel = setup_params_general8['rf']['5G']['channel'] + + result = lf_test.country_code_channel_division(ssid=ssid, security=security, passkey=security_key, mode=mode, + band=band, station_name=station_names_fiveg, vlan_id=vlan, + channel=channel,country=392) + if result: + assert True + else: + assert False + + +setup_params_general9 = { + "mode": "BRIDGE", + "ssid_modes": { + "wpa2_personal": [{"ssid_name": "ssid_wpa2_2g", "appliedRadios": ["2G"], "security_key": "something"}, + {"ssid_name": "ssid_wpa2_5g", "appliedRadios": ["5G"], "security_key": "something"} + ]}, + "rf": { + "5G": + {'band': '5G', + 'country': 'JP', + 'channel-mode': 'VHT', + 'channel-width': 40, + "channel": 132}, + "2G": + {'band': '2G', + 'country': 'JP', + "channel-mode": "VHT", + 'channel-width': 40, + "channel": 1} + }, + "radius": False +} + +@allure.feature("BRIDGE MODE CLIENT CONNECTIVITY") +@pytest.mark.parametrize( + 'setup_profiles', + [setup_params_general9], + indirect=True, + scope="class" +) +@pytest.mark.usefixtures("setup_profiles") +class TestCountryJP40Mhz5GChannel132(object): + """Country code along with Channel and Channel-width Test Bridge mode + pytest -m "country_code and Bridge" + """ + @allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-2546", name="WIFI-6938") + @pytest.mark.wpa2_personal + @pytest.mark.fourtyMhz + @pytest.mark.fiveg + @pytest.mark.channel132 + def test_client_bridge_wpa2_chn132_40Mhz_JP_5g(self, lf_test, station_names_fiveg, get_configuration): + """Country code Bridge Mode + pytest -m "country_code and fourtyMhz and wpa2 and fiveg and channel132" + """ + profile_data = setup_params_general9["ssid_modes"]["wpa2_personal"][1] + ssid = profile_data["ssid_name"] + security_key = profile_data["security_key"] + security = "wpa2" + mode = "BRIDGE" + band = "fiveg" + vlan = 1 + channel = setup_params_general9['rf']['5G']['channel'] + + result = lf_test.country_code_channel_division(ssid=ssid, security=security, passkey=security_key, mode=mode, + band=band, station_name=station_names_fiveg, vlan_id=vlan, + channel=channel,country=392) + if result: + assert True + else: + assert False + + +setup_params_general10 = { + "mode": "BRIDGE", + "ssid_modes": { + "wpa2_personal": [{"ssid_name": "ssid_wpa2_2g", "appliedRadios": ["2G"], "security_key": "something"}, + {"ssid_name": "ssid_wpa2_5g", "appliedRadios": ["5G"], "security_key": "something"} + ]}, + "rf": { + "5G": + {'band': '5G', + 'country': 'JP', + 'channel-mode': 'VHT', + 'channel-width': 40, + "channel": 140}, + "2G": + {'band': '2G', + 'country': 'JP', + "channel-mode": "VHT", + 'channel-width': 40, + "channel": 1} + }, + "radius": False +} + +@allure.feature("BRIDGE MODE CLIENT CONNECTIVITY") +@pytest.mark.parametrize( + 'setup_profiles', + [setup_params_general10], + indirect=True, + scope="class" +) +@pytest.mark.usefixtures("setup_profiles") +class TestCountryJP40Mhz5GChannel140(object): + """Country code along with Channel and Channel-width Test Bridge mode + pytest -m "country_code and Bridge" + """ + @allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-2546", name="WIFI-6938") + @pytest.mark.wpa2_personal + @pytest.mark.fourtyMhz + @pytest.mark.fiveg + @pytest.mark.channel140 + def test_client_bridge_wpa2_chn140_40Mhz_JP_5g(self, lf_test, station_names_fiveg, get_configuration): + """Country code Bridge Mode + pytest -m "country_code and fourtyMhz and wpa2 and fiveg and channel140" + """ + profile_data = setup_params_general10["ssid_modes"]["wpa2_personal"][1] + ssid = profile_data["ssid_name"] + security_key = profile_data["security_key"] + security = "wpa2" + mode = "BRIDGE" + band = "fiveg" + vlan = 1 + channel = setup_params_general10['rf']['5G']['channel'] + + result = lf_test.country_code_channel_division(ssid=ssid, security=security, passkey=security_key, mode=mode, + band=band, station_name=station_names_fiveg, vlan_id=vlan, + channel=channel,country=392) + if result: + assert True + else: + assert False diff --git a/tests/e2e/basic/validation_of_operating_modes/country_code_channel_division/country_code_JP/channel_width_40Mhz/twog_band/__init__.py b/tests/e2e/basic/validation_of_operating_modes/country_code_channel_division/country_code_JP/channel_width_40Mhz/twog_band/__init__.py new file mode 100644 index 000000000..e69de29bb diff --git a/tests/e2e/basic/validation_of_operating_modes/country_code_channel_division/country_code_JP/channel_width_40Mhz/twog_band/test_JP_40Mhz_2g.py b/tests/e2e/basic/validation_of_operating_modes/country_code_channel_division/country_code_JP/channel_width_40Mhz/twog_band/test_JP_40Mhz_2g.py new file mode 100644 index 000000000..cdec271e4 --- /dev/null +++ b/tests/e2e/basic/validation_of_operating_modes/country_code_channel_division/country_code_JP/channel_width_40Mhz/twog_band/test_JP_40Mhz_2g.py @@ -0,0 +1,821 @@ +""" + + Performance Test: Country code along with Channel and Channel-width Test: Bridge Mode + pytest -m "country_code and Bridge" + +""" + + +import os +import pytest +import allure + +pytestmark = [pytest.mark.country_code, pytest.mark.Bridge, pytest.mark.wpa2, pytest.mark.JP] + +setup_params_general1 = { + "mode": "BRIDGE", + "ssid_modes": { + "wpa2_personal": [{"ssid_name": "ssid_wpa2_2g", "appliedRadios": ["2G"], "security_key": "something"}, + {"ssid_name": "ssid_wpa2_5g", "appliedRadios": ["5G"], "security_key": "something"} + ]}, + "rf": { + "5G": + {'band': '5G', + 'country': 'JP', + "channel-mode": "VHT", + 'channel-width': 40, + "channel": 36}, + "2G": + {'band': '2G', + 'country': 'JP', + "channel-mode": "VHT", + 'channel-width': 40, + "channel": 1} + }, + "radius": False +} + + +@allure.feature("BRIDGE MODE CLIENT CONNECTIVITY") +@pytest.mark.parametrize( + 'setup_profiles', + [setup_params_general1], + indirect=True, + scope="class" +) +@pytest.mark.usefixtures("setup_profiles") +class TestCountryJP40Mhz2GChannel1(object): + """Country code along with Channel and Channel-width Test Bridge mode + pytest -m "country_code and Bridge" + """ + @allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-2546", name="WIFI-6938") + @pytest.mark.wpa2_personal + @pytest.mark.fourtyMhz + @pytest.mark.twog + @pytest.mark.channel1 + def test_client_bridge_wpa2_chn1_40Mhz_JP_2g(self, lf_test, station_names_twog, get_configuration): + """Country code Bridge Mode + pytest -m "country_code and fourtyMhz and wpa2 and twog and channel1" + """ + profile_data = setup_params_general1["ssid_modes"]["wpa2_personal"][0] + ssid = profile_data["ssid_name"] + security_key = profile_data["security_key"] + security = "wpa2" + mode = "BRIDGE" + band = "twog" + vlan = 1 + channel = setup_params_general1['rf']['2G']['channel'] + + result = lf_test.country_code_channel_division(ssid=ssid, security=security, passkey=security_key, mode=mode, + band=band, station_name=station_names_twog, vlan_id=vlan, + channel=channel,country=392) + if result: + assert True + else: + assert False + + +setup_params_general2 = { + "mode": "BRIDGE", + "ssid_modes": { + "wpa2_personal": [{"ssid_name": "ssid_wpa2_2g", "appliedRadios": ["2G"], "security_key": "something"}, + {"ssid_name": "ssid_wpa2_5g", "appliedRadios": ["5G"], "security_key": "something"} + ]}, + "rf": { + "5G": + {'band': '5G', + 'country': 'JP', + "channel-mode": "VHT", + 'channel-width': 40, + "channel": 36}, + "2G": + {'band': '2G', + 'country': 'JP', + 'channel-mode': 'VHT', + 'channel-width': 40, + "channel": 2} + }, + "radius": False +} + + +@allure.feature("BRIDGE MODE CLIENT CONNECTIVITY") +@pytest.mark.parametrize( + 'setup_profiles', + [setup_params_general2], + indirect=True, + scope="class" +) +@pytest.mark.usefixtures("setup_profiles") +class TestCountryJP40Mhz2GChannel2(object): + """Country code along with Channel and Channel-width Test Bridge mode + pytest -m "country_code and Bridge" + """ + @allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-2546", name="WIFI-6938") + @pytest.mark.wpa2_personal + @pytest.mark.fourtyMhz + @pytest.mark.twog + @pytest.mark.channel2 + def test_client_bridge_wpa2_chn2_40Mhz_JP_2g(self, lf_test, station_names_twog, get_configuration): + """Country code Bridge Mode + pytest -m "country_code and fourtyMhz and wpa2 and twog and channel2" + """ + profile_data = setup_params_general2["ssid_modes"]["wpa2_personal"][0] + ssid = profile_data["ssid_name"] + security_key = profile_data["security_key"] + security = "wpa2" + mode = "BRIDGE" + band = "twog" + vlan = 1 + channel = setup_params_general2['rf']['2G']['channel'] + + result = lf_test.country_code_channel_division(ssid=ssid, security=security, passkey=security_key, mode=mode, + band=band, station_name=station_names_twog, vlan_id=vlan, + channel=channel,country=392) + if result: + assert True + else: + assert False + + +setup_params_general3 = { + "mode": "BRIDGE", + "ssid_modes": { + "wpa2_personal": [{"ssid_name": "ssid_wpa2_2g", "appliedRadios": ["2G"], "security_key": "something"}, + {"ssid_name": "ssid_wpa2_5g", "appliedRadios": ["5G"], "security_key": "something"} + ]}, + "rf": { + "5G": + {'band': '5G', + 'country': 'JP', + "channel-mode": "VHT", + 'channel-width': 40, + "channel": 36}, + "2G": + {'band': '2G', + 'country': 'JP', + 'channel-mode': 'VHT', + 'channel-width': 40, + "channel": 3} + }, + "radius": False +} + + +@allure.feature("BRIDGE MODE CLIENT CONNECTIVITY") +@pytest.mark.parametrize( + 'setup_profiles', + [setup_params_general3], + indirect=True, + scope="class" +) +@pytest.mark.usefixtures("setup_profiles") +class TestCountryJP40Mhz2GChannel3(object): + """Country code along with Channel and Channel-width Test Bridge mode + pytest -m "country_code and Bridge" + """ + @allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-2546", name="WIFI-6938") + @pytest.mark.wpa2_personal + @pytest.mark.fourtyMhz + @pytest.mark.twog + @pytest.mark.channel3 + def test_client_bridge_wpa2_chn3_40Mhz_JP_2g(self, lf_test, station_names_twog, get_configuration): + """Country code Bridge Mode + pytest -m "country_code and fourtyMhz and wpa2 and twog and channel3" + """ + profile_data = setup_params_general3["ssid_modes"]["wpa2_personal"][0] + ssid = profile_data["ssid_name"] + security_key = profile_data["security_key"] + security = "wpa2" + mode = "BRIDGE" + band = "twog" + vlan = 1 + channel = setup_params_general3['rf']['2G']['channel'] + + result = lf_test.country_code_channel_division(ssid=ssid, security=security, passkey=security_key, mode=mode, + band=band, station_name=station_names_twog, vlan_id=vlan, + channel=channel,country=392) + if result: + assert True + else: + assert False + + +setup_params_general4 = { + "mode": "BRIDGE", + "ssid_modes": { + "wpa2_personal": [{"ssid_name": "ssid_wpa2_2g", "appliedRadios": ["2G"], "security_key": "something"}, + {"ssid_name": "ssid_wpa2_5g", "appliedRadios": ["5G"], "security_key": "something"} + ]}, + "rf": { + "5G": + {'band': '5G', + 'country': 'JP', + "channel-mode": "VHT", + 'channel-width': 40, + "channel": 36}, + "2G": + {'band': '2G', + 'country': 'JP', + 'channel-mode': 'VHT', + 'channel-width': 40, + "channel": 4} + }, + "radius": False +} + +@allure.feature("BRIDGE MODE CLIENT CONNECTIVITY") +@pytest.mark.parametrize( + 'setup_profiles', + [setup_params_general4], + indirect=True, + scope="class" +) +@pytest.mark.usefixtures("setup_profiles") +class TestCountryJP40Mhz2GChannel4(object): + """Country code along with Channel and Channel-width Test Bridge mode + pytest -m "country_code and Bridge" + """ + @allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-2546", name="WIFI-6938") + @pytest.mark.wpa2_personal + @pytest.mark.fourtyMhz + @pytest.mark.twog + @pytest.mark.channel4 + def test_client_bridge_wpa2_chn4_40Mhz_JP_2g(self, lf_test, station_names_twog, get_configuration): + """Country code Bridge Mode + pytest -m "country_code and fourtyMhz and wpa2 and twog and channel4" + """ + profile_data = setup_params_general4["ssid_modes"]["wpa2_personal"][0] + ssid = profile_data["ssid_name"] + security_key = profile_data["security_key"] + security = "wpa2" + mode = "BRIDGE" + band = "twog" + vlan = 1 + channel = setup_params_general4['rf']['2G']['channel'] + + result = lf_test.country_code_channel_division(ssid=ssid, security=security, passkey=security_key, mode=mode, + band=band, station_name=station_names_twog, vlan_id=vlan, + channel=channel,country=392) + if result: + assert True + else: + assert False + + +setup_params_general5 = { + "mode": "BRIDGE", + "ssid_modes": { + "wpa2_personal": [{"ssid_name": "ssid_wpa2_2g", "appliedRadios": ["2G"], "security_key": "something"}, + {"ssid_name": "ssid_wpa2_5g", "appliedRadios": ["5G"], "security_key": "something"} + ]}, + "rf": { + "5G": + {'band': '5G', + 'country': 'JP', + "channel-mode": "VHT", + 'channel-width': 40, + "channel": 36}, + "2G": + {'band': '2G', + 'country': 'JP', + 'channel-mode': 'VHT', + 'channel-width': 40, + "channel": 5} + }, + "radius": False +} + +@allure.feature("BRIDGE MODE CLIENT CONNECTIVITY") +@pytest.mark.parametrize( + 'setup_profiles', + [setup_params_general5], + indirect=True, + scope="class" +) +@pytest.mark.usefixtures("setup_profiles") +class TestCountryJP40Mhz2GChannel5(object): + """Country code along with Channel and Channel-width Test Bridge mode + pytest -m "country_code and Bridge" + """ + @allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-2546", name="WIFI-6938") + @pytest.mark.wpa2_personal + @pytest.mark.fourtyMhz + @pytest.mark.twog + @pytest.mark.channel5 + def test_client_bridge_wpa2_chn5_40Mhz_JP_2g(self, lf_test, station_names_twog, get_configuration): + """Country code Bridge Mode + pytest -m "country_code and fourtyMhz and wpa2 and twog and channel5" + """ + profile_data = setup_params_general5["ssid_modes"]["wpa2_personal"][0] + ssid = profile_data["ssid_name"] + security_key = profile_data["security_key"] + security = "wpa2" + mode = "BRIDGE" + band = "twog" + vlan = 1 + channel = setup_params_general5['rf']['2G']['channel'] + + result = lf_test.country_code_channel_division(ssid=ssid, security=security, passkey=security_key, mode=mode, + band=band, station_name=station_names_twog, vlan_id=vlan, + channel=channel,country=392) + if result: + assert True + else: + assert False + + +setup_params_general6 = { + "mode": "BRIDGE", + "ssid_modes": { + "wpa2_personal": [{"ssid_name": "ssid_wpa2_2g", "appliedRadios": ["2G"], "security_key": "something"}, + {"ssid_name": "ssid_wpa2_5g", "appliedRadios": ["5G"], "security_key": "something"} + ]}, + "rf": { + "5G": + {'band': '5G', + 'country': 'JP', + "channel-mode": "VHT", + 'channel-width': 40, + "channel": 36}, + "2G": + {'band': '2G', + 'country': 'JP', + 'channel-mode': 'VHT', + 'channel-width': 40, + "channel": 6} + }, + "radius": False +} + +@allure.feature("BRIDGE MODE CLIENT CONNECTIVITY") +@pytest.mark.parametrize( + 'setup_profiles', + [setup_params_general6], + indirect=True, + scope="class" +) +@pytest.mark.usefixtures("setup_profiles") +class TestCountryJP40Mhz2GChannel6(object): + """Country code along with Channel and Channel-width Test Bridge mode + pytest -m "country_code and Bridge" + """ + @allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-2546", name="WIFI-6938") + @pytest.mark.wpa2_personal + @pytest.mark.fourtyMhz + @pytest.mark.twog + @pytest.mark.channel6 + def test_client_bridge_wpa2_chn6_40Mhz_JP_2g(self, lf_test, station_names_twog, get_configuration): + """Country code Bridge Mode + pytest -m "country_code and fourtyMhz and wpa2 and twog and channel6" + """ + profile_data = setup_params_general6["ssid_modes"]["wpa2_personal"][0] + ssid = profile_data["ssid_name"] + security_key = profile_data["security_key"] + security = "wpa2" + mode = "BRIDGE" + band = "twog" + vlan = 1 + channel = setup_params_general6['rf']['2G']['channel'] + + result = lf_test.country_code_channel_division(ssid=ssid, security=security, passkey=security_key, mode=mode, + band=band, station_name=station_names_twog, vlan_id=vlan, + channel=channel,country=392) + if result: + assert True + else: + assert False + + +setup_params_general7 = { + "mode": "BRIDGE", + "ssid_modes": { + "wpa2_personal": [{"ssid_name": "ssid_wpa2_2g", "appliedRadios": ["2G"], "security_key": "something"}, + {"ssid_name": "ssid_wpa2_5g", "appliedRadios": ["5G"], "security_key": "something"} + ]}, + "rf": { + "5G": + {'band': '5G', + 'country': 'JP', + "channel-mode": "VHT", + 'channel-width': 40, + "channel": 36}, + "2G": + {'band': '2G', + 'country': 'JP', + 'channel-mode': 'VHT', + 'channel-width': 40, + "channel": 7} + }, + "radius": False +} + +@allure.feature("BRIDGE MODE CLIENT CONNECTIVITY") +@pytest.mark.parametrize( + 'setup_profiles', + [setup_params_general7], + indirect=True, + scope="class" +) +@pytest.mark.usefixtures("setup_profiles") +class TestCountryJP40Mhz2GChannel7(object): + """Country code along with Channel and Channel-width Test Bridge mode + pytest -m "country_code and Bridge" + """ + @allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-2546", name="WIFI-6938") + @pytest.mark.wpa2_personal + @pytest.mark.fourtyMhz + @pytest.mark.twog + @pytest.mark.channel7 + def test_client_bridge_wpa2_chn7_40Mhz_JP_2g(self, lf_test, station_names_twog, get_configuration): + """Country code Bridge Mode + pytest -m "country_code and fourtyMhz and wpa2 and twog and channel7" + """ + profile_data = setup_params_general7["ssid_modes"]["wpa2_personal"][0] + ssid = profile_data["ssid_name"] + security_key = profile_data["security_key"] + security = "wpa2" + mode = "BRIDGE" + band = "twog" + vlan = 1 + channel = setup_params_general7['rf']['2G']['channel'] + + result = lf_test.country_code_channel_division(ssid=ssid, security=security, passkey=security_key, mode=mode, + band=band, station_name=station_names_twog, vlan_id=vlan, + channel=channel,country=392) + if result: + assert True + else: + assert False + + +setup_params_general8 = { + "mode": "BRIDGE", + "ssid_modes": { + "wpa2_personal": [{"ssid_name": "ssid_wpa2_2g", "appliedRadios": ["2G"], "security_key": "something"}, + {"ssid_name": "ssid_wpa2_5g", "appliedRadios": ["5G"], "security_key": "something"} + ]}, + "rf": { + "5G": + {'band': '5G', + 'country': 'JP', + "channel-mode": "VHT", + 'channel-width': 40, + "channel": 36}, + "2G": + {'band': '2G', + 'country': 'JP', + 'channel-mode': 'VHT', + 'channel-width': 40, + "channel": 8} + }, + "radius": False +} + +@allure.feature("BRIDGE MODE CLIENT CONNECTIVITY") +@pytest.mark.parametrize( + 'setup_profiles', + [setup_params_general8], + indirect=True, + scope="class" +) +@pytest.mark.usefixtures("setup_profiles") +class TestCountryJP40Mhz2GChannel8(object): + """Country code along with Channel and Channel-width Test Bridge mode + pytest -m "country_code and Bridge" + """ + @allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-2546", name="WIFI-6938") + @pytest.mark.wpa2_personal + @pytest.mark.fourtyMhz + @pytest.mark.twog + @pytest.mark.channel8 + def test_client_bridge_wpa2_chn8_40Mhz_JP_2g(self, lf_test, station_names_twog, get_configuration): + """Country code Bridge Mode + pytest -m "country_code and fourtyMhz and wpa2 and twog and channel8" + """ + profile_data = setup_params_general8["ssid_modes"]["wpa2_personal"][0] + ssid = profile_data["ssid_name"] + security_key = profile_data["security_key"] + security = "wpa2" + mode = "BRIDGE" + band = "twog" + vlan = 1 + channel = setup_params_general8['rf']['2G']['channel'] + + result = lf_test.country_code_channel_division(ssid=ssid, security=security, passkey=security_key, mode=mode, + band=band, station_name=station_names_twog, vlan_id=vlan, + channel=channel,country=392) + if result: + assert True + else: + assert False + + +setup_params_general9 = { + "mode": "BRIDGE", + "ssid_modes": { + "wpa2_personal": [{"ssid_name": "ssid_wpa2_2g", "appliedRadios": ["2G"], "security_key": "something"}, + {"ssid_name": "ssid_wpa2_5g", "appliedRadios": ["5G"], "security_key": "something"} + ]}, + "rf": { + "5G": + {'band': '5G', + 'country': 'JP', + "channel-mode": "VHT", + 'channel-width': 40, + "channel": 36}, + "2G": + {'band': '2G', + 'country': 'JP', + 'channel-mode': 'VHT', + 'channel-width': 40, + "channel": 9} + }, + "radius": False +} + +@allure.feature("BRIDGE MODE CLIENT CONNECTIVITY") +@pytest.mark.parametrize( + 'setup_profiles', + [setup_params_general9], + indirect=True, + scope="class" +) +@pytest.mark.usefixtures("setup_profiles") +class TestCountryJP40Mhz2GChannel9(object): + """Country code along with Channel and Channel-width Test Bridge mode + pytest -m "country_code and Bridge" + """ + @allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-2546", name="WIFI-6938") + @pytest.mark.wpa2_personal + @pytest.mark.fourtyMhz + @pytest.mark.twog + @pytest.mark.channel9 + def test_client_bridge_wpa2_chn9_40Mhz_JP_2g(self, lf_test, station_names_twog, get_configuration): + """Country code Bridge Mode + pytest -m "country_code and fourtyMhz and wpa2 and twog and channel9" + """ + profile_data = setup_params_general9["ssid_modes"]["wpa2_personal"][0] + ssid = profile_data["ssid_name"] + security_key = profile_data["security_key"] + security = "wpa2" + mode = "BRIDGE" + band = "twog" + vlan = 1 + channel = setup_params_general9['rf']['2G']['channel'] + + result = lf_test.country_code_channel_division(ssid=ssid, security=security, passkey=security_key, mode=mode, + band=band, station_name=station_names_twog, vlan_id=vlan, + channel=channel,country=392) + if result: + assert True + else: + assert False + + +setup_params_general10 = { + "mode": "BRIDGE", + "ssid_modes": { + "wpa2_personal": [{"ssid_name": "ssid_wpa2_2g", "appliedRadios": ["2G"], "security_key": "something"}, + {"ssid_name": "ssid_wpa2_5g", "appliedRadios": ["5G"], "security_key": "something"} + ]}, + "rf": { + "5G": + {'band': '5G', + 'country': 'JP', + "channel-mode": "VHT", + 'channel-width': 40, + "channel": 36}, + "2G": + {'band': '2G', + 'country': 'JP', + 'channel-mode': 'VHT', + 'channel-width': 40, + "channel": 10} + }, + "radius": False +} + +@allure.feature("BRIDGE MODE CLIENT CONNECTIVITY") +@pytest.mark.parametrize( + 'setup_profiles', + [setup_params_general10], + indirect=True, + scope="class" +) +@pytest.mark.usefixtures("setup_profiles") +class TestCountryJP40Mhz2GChannel10(object): + """Country code along with Channel and Channel-width Test Bridge mode + pytest -m "country_code and Bridge" + """ + @allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-2546", name="WIFI-6938") + @pytest.mark.wpa2_personal + @pytest.mark.fourtyMhz + @pytest.mark.twog + @pytest.mark.channel10 + def test_client_bridge_wpa2_chn10_40Mhz_JP_2g(self, lf_test, station_names_twog, get_configuration): + """Country code Bridge Mode + pytest -m "country_code and fourtyMhz and wpa2 and twog and channel10" + """ + profile_data = setup_params_general10["ssid_modes"]["wpa2_personal"][0] + ssid = profile_data["ssid_name"] + security_key = profile_data["security_key"] + security = "wpa2" + mode = "BRIDGE" + band = "twog" + vlan = 1 + channel = setup_params_general10['rf']['2G']['channel'] + + result = lf_test.country_code_channel_division(ssid=ssid, security=security, passkey=security_key, mode=mode, + band=band, station_name=station_names_twog, vlan_id=vlan, + channel=channel,country=392) + if result: + assert True + else: + assert False + + +setup_params_general11 = { + "mode": "BRIDGE", + "ssid_modes": { + "wpa2_personal": [{"ssid_name": "ssid_wpa2_2g", "appliedRadios": ["2G"], "security_key": "something"}, + {"ssid_name": "ssid_wpa2_5g", "appliedRadios": ["5G"], "security_key": "something"} + ]}, + "rf": { + "5G": + {'band': '5G', + 'country': 'JP', + "channel-mode": "VHT", + 'channel-width': 40, + "channel": 36}, + "2G": + {'band': '2G', + 'country': 'JP', + 'channel-mode': 'VHT', + 'channel-width': 40, + "channel": 11} + }, + "radius": False +} + +@allure.feature("BRIDGE MODE CLIENT CONNECTIVITY") +@pytest.mark.parametrize( + 'setup_profiles', + [setup_params_general11], + indirect=True, + scope="class" +) +@pytest.mark.usefixtures("setup_profiles") +class TestCountryJP40Mhz2GChannel11(object): + """Country code along with Channel and Channel-width Test Bridge mode + pytest -m "country_code and Bridge" + """ + @allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-2546", name="WIFI-6938") + @pytest.mark.wpa2_personal + @pytest.mark.fourtyMhz + @pytest.mark.twog + @pytest.mark.channel11 + def test_client_bridge_wpa2_chn11_40Mhz_JP_2g(self, lf_test, station_names_twog, get_configuration): + """Country code Bridge Mode + pytest -m "country_code and fourtyMhz and wpa2 and twog and channel11" + """ + profile_data = setup_params_general11["ssid_modes"]["wpa2_personal"][0] + ssid = profile_data["ssid_name"] + security_key = profile_data["security_key"] + security = "wpa2" + mode = "BRIDGE" + band = "twog" + vlan = 1 + channel = setup_params_general11['rf']['2G']['channel'] + + result = lf_test.country_code_channel_division(ssid=ssid, security=security, passkey=security_key, mode=mode, + band=band, station_name=station_names_twog, vlan_id=vlan, + channel=channel,country=392) + if result: + assert True + else: + assert False + + +setup_params_general12 = { + "mode": "BRIDGE", + "ssid_modes": { + "wpa2_personal": [{"ssid_name": "ssid_wpa2_2g", "appliedRadios": ["2G"], "security_key": "something"}, + {"ssid_name": "ssid_wpa2_5g", "appliedRadios": ["5G"], "security_key": "something"} + ]}, + "rf": { + "5G": + {'band': '5G', + 'country': 'JP', + "channel-mode": "VHT", + 'channel-width': 40, + "channel": 36}, + "2G": + {'band': '2G', + 'country': 'JP', + 'channel-mode': 'VHT', + 'channel-width': 40, + "channel": 12} + }, + "radius": False +} + +@allure.feature("BRIDGE MODE CLIENT CONNECTIVITY") +@pytest.mark.parametrize( + 'setup_profiles', + [setup_params_general12], + indirect=True, + scope="class" +) +@pytest.mark.usefixtures("setup_profiles") +class TestCountryJP40Mhz2GChannel12(object): + """Country code along with Channel and Channel-width Test Bridge mode + pytest -m "country_code and Bridge" + """ + @allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-2546", name="WIFI-6938") + @pytest.mark.wpa2_personal + @pytest.mark.fourtyMhz + @pytest.mark.twog + @pytest.mark.channel12 + def test_client_bridge_wpa2_chn12_40Mhz_JP_2g(self, lf_test, station_names_twog, get_configuration): + """Country code Bridge Mode + pytest -m "country_code and fourtyMhz and wpa2 and twog and channel12" + """ + profile_data = setup_params_general12["ssid_modes"]["wpa2_personal"][0] + ssid = profile_data["ssid_name"] + security_key = profile_data["security_key"] + security = "wpa2" + mode = "BRIDGE" + band = "twog" + vlan = 1 + channel = setup_params_general12['rf']['2G']['channel'] + + result = lf_test.country_code_channel_division(ssid=ssid, security=security, passkey=security_key, mode=mode, + band=band, station_name=station_names_twog, vlan_id=vlan, + channel=channel,country=392) + if result: + assert True + else: + assert False + + +setup_params_general13 = { + "mode": "BRIDGE", + "ssid_modes": { + "wpa2_personal": [{"ssid_name": "ssid_wpa2_2g", "appliedRadios": ["2G"], "security_key": "something"}, + {"ssid_name": "ssid_wpa2_5g", "appliedRadios": ["5G"], "security_key": "something"} + ]}, + "rf": { + "5G": + {'band': '5G', + 'country': 'JP', + "channel-mode": "VHT", + 'channel-width': 40, + "channel": 36}, + "2G": + {'band': '2G', + 'country': 'JP', + 'channel-mode': 'VHT', + 'channel-width': 40, + "channel": 13} + }, + "radius": False +} + +@allure.feature("BRIDGE MODE CLIENT CONNECTIVITY") +@pytest.mark.parametrize( + 'setup_profiles', + [setup_params_general13], + indirect=True, + scope="class" +) +@pytest.mark.usefixtures("setup_profiles") +class TestCountryJP40Mhz2GChannel13(object): + """Country code along with Channel and Channel-width Test Bridge mode + pytest -m "country_code and Bridge" + """ + @allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-2546", name="WIFI-6938") + @pytest.mark.wpa2_personal + @pytest.mark.fourtyMhz + @pytest.mark.twog + @pytest.mark.channel13 + def test_client_bridge_wpa2_chn13_40Mhz_JP_2g(self, lf_test, station_names_twog, get_configuration): + """Country code Bridge Mode + pytest -m "country_code and fourtyMhz and wpa2 and twog and channel13" + """ + profile_data = setup_params_general13["ssid_modes"]["wpa2_personal"][0] + ssid = profile_data["ssid_name"] + security_key = profile_data["security_key"] + security = "wpa2" + mode = "BRIDGE" + band = "twog" + vlan = 1 + channel = setup_params_general13['rf']['2G']['channel'] + + result = lf_test.country_code_channel_division(ssid=ssid, security=security, passkey=security_key, mode=mode, + band=band, station_name=station_names_twog, vlan_id=vlan, + channel=channel,country=392) + if result: + assert True + else: + assert False diff --git a/tests/e2e/basic/validation_of_operating_modes/country_code_channel_division/country_code_JP/channel_width_80Mhz/__init__.py b/tests/e2e/basic/validation_of_operating_modes/country_code_channel_division/country_code_JP/channel_width_80Mhz/__init__.py new file mode 100644 index 000000000..e69de29bb diff --git a/tests/e2e/basic/validation_of_operating_modes/country_code_channel_division/country_code_JP/channel_width_80Mhz/fiveg_band/__init__.py b/tests/e2e/basic/validation_of_operating_modes/country_code_channel_division/country_code_JP/channel_width_80Mhz/fiveg_band/__init__.py new file mode 100644 index 000000000..e69de29bb diff --git a/tests/e2e/basic/validation_of_operating_modes/country_code_channel_division/country_code_JP/channel_width_80Mhz/fiveg_band/test_JP_80Mhz_5g.py b/tests/e2e/basic/validation_of_operating_modes/country_code_channel_division/country_code_JP/channel_width_80Mhz/fiveg_band/test_JP_80Mhz_5g.py new file mode 100644 index 000000000..8ee27ad79 --- /dev/null +++ b/tests/e2e/basic/validation_of_operating_modes/country_code_channel_division/country_code_JP/channel_width_80Mhz/fiveg_band/test_JP_80Mhz_5g.py @@ -0,0 +1,257 @@ +""" + + Performance Test: Country code along with Channel and Channel-width Test: Bridge Mode + pytest -m "country_code and Bridge" + +""" + + +import os +import pytest +import allure + +pytestmark = [pytest.mark.country_code, pytest.mark.Bridge, pytest.mark.wpa2, pytest.mark.JP] + +setup_params_general1 = { + "mode": "BRIDGE", + "ssid_modes": { + "wpa2_personal": [{"ssid_name": "ssid_wpa2_2g", "appliedRadios": ["2G"], "security_key": "something"}, + {"ssid_name": "ssid_wpa2_5g", "appliedRadios": ["5G"], "security_key": "something"} + ]}, + "rf": {"5G": + {'band': '5G', + 'country': 'JP', + "channel-mode": "VHT", + 'channel-width': 80, + "channel": 36}, + "2G": + {'band': '2G', + 'country': 'JP', + "channel-mode": "VHT", + 'channel-width': 20, + "channel": 1} + }, + "radius": False +} + +@allure.feature("BRIDGE MODE CLIENT CONNECTIVITY") +@pytest.mark.parametrize( + 'setup_profiles', + [setup_params_general1], + indirect=True, + scope="class" +) +@pytest.mark.usefixtures("setup_profiles") +class TestCountryJP80Mhz5GChannel36(object): + """Country code along with Channel and Channel-width Test Bridge mode + pytest -m "country_code and Bridge" + """ + @allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-2546", name="WIFI-6938") + @pytest.mark.wpa2_personal + @pytest.mark.eightyMhz + @pytest.mark.fiveg + @pytest.mark.channel36 + def test_client_bridge_wpa2_chn36_80Mhz_JP_5g(self, lf_test, station_names_fiveg, get_configuration): + """Country code Bridge Mode + pytest -m "country_code and eightyMhz and wpa2 and fiveg and channel36" + """ + profile_data = setup_params_general1["ssid_modes"]["wpa2_personal"][1] + ssid = profile_data["ssid_name"] + security_key = profile_data["security_key"] + security = "wpa2" + mode = "BRIDGE" + band = "fiveg" + vlan = 1 + channel = setup_params_general1['rf']['5G']['channel'] + + result = lf_test.country_code_channel_division(ssid=ssid, security=security, passkey=security_key, mode=mode, + band=band, station_name=station_names_fiveg, vlan_id=vlan, + channel=channel,country=392) + if result: + assert True + else: + assert False + + +setup_params_general2 = { + "mode": "BRIDGE", + "ssid_modes": { + "wpa2_personal": [{"ssid_name": "ssid_wpa2_2g", "appliedRadios": ["2G"], "security_key": "something"}, + {"ssid_name": "ssid_wpa2_5g", "appliedRadios": ["5G"], "security_key": "something"} + ]}, + "rf": {"5G": + {'band': '5G', + 'country': 'JP', + 'channel-mode': 'VHT', + 'channel-width': 80, + "channel": 52}, + "2G": + {'band': '2G', + 'country': 'JP', + "channel-mode": "VHT", + 'channel-width': 20, + "channel": 1} + }, + "radius": False +} + + +@allure.feature("BRIDGE MODE CLIENT CONNECTIVITY") +@pytest.mark.parametrize( + 'setup_profiles', + [setup_params_general2], + indirect=True, + scope="class" +) +@pytest.mark.usefixtures("setup_profiles") +class TestCountryJP80Mhz5GChannel52(object): + """Country code along with Channel and Channel-width Test Bridge mode + pytest -m "country_code and Bridge" + """ + @allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-2546", name="WIFI-6938") + @pytest.mark.wpa2_personal + @pytest.mark.eightyMhz + @pytest.mark.fiveg + @pytest.mark.channel52 + def test_client_bridge_wpa2_chn52_80Mhz_JP_5g(self, lf_test, station_names_fiveg, get_configuration): + """Country code Bridge Mode + pytest -m "country_code and eightyMhz and wpa2 and fiveg and channel52" + """ + profile_data = setup_params_general2["ssid_modes"]["wpa2_personal"][1] + ssid = profile_data["ssid_name"] + security_key = profile_data["security_key"] + security = "wpa2" + mode = "BRIDGE" + band = "fiveg" + vlan = 1 + channel = setup_params_general2['rf']['5G']['channel'] + + result = lf_test.country_code_channel_division(ssid=ssid, security=security, passkey=security_key, mode=mode, + band=band, station_name=station_names_fiveg, vlan_id=vlan, + channel=channel,country=392) + if result: + assert True + else: + assert False + + +setup_params_general3 = { + "mode": "BRIDGE", + "ssid_modes": { + "wpa2_personal": [{"ssid_name": "ssid_wpa2_2g", "appliedRadios": ["2G"], "security_key": "something"}, + {"ssid_name": "ssid_wpa2_5g", "appliedRadios": ["5G"], "security_key": "something"} + ]}, + "rf": {"5G": + {'band': '5G', + 'country': 'JP', + 'channel-mode': 'VHT', + 'channel-width': 80, + "channel": 100}, + "2G": + {'band': '2G', + 'country': 'JP', + "channel-mode": "VHT", + 'channel-width': 20, + "channel": 1} + }, + "radius": False +} + +@allure.feature("BRIDGE MODE CLIENT CONNECTIVITY") +@pytest.mark.parametrize( + 'setup_profiles', + [setup_params_general3], + indirect=True, + scope="class" +) +@pytest.mark.usefixtures("setup_profiles") +class TestCountryJP80Mhz5GChannel100(object): + """Country code along with Channel and Channel-width Test Bridge mode + pytest -m "country_code and Bridge" + """ + @allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-2546", name="WIFI-6938") + @pytest.mark.wpa2_personal + @pytest.mark.eightyMhz + @pytest.mark.fiveg + @pytest.mark.channel100 + def test_client_bridge_wpa2_chn100_80Mhz_JP_5g(self, lf_test, station_names_fiveg, get_configuration): + """Country code Bridge Mode + pytest -m "country_code and eightyMhz and wpa2 and fiveg and channel100" + """ + profile_data = setup_params_general3["ssid_modes"]["wpa2_personal"][1] + ssid = profile_data["ssid_name"] + security_key = profile_data["security_key"] + security = "wpa2" + mode = "BRIDGE" + band = "fiveg" + vlan = 1 + channel = setup_params_general3['rf']['5G']['channel'] + + result = lf_test.country_code_channel_division(ssid=ssid, security=security, passkey=security_key, mode=mode, + band=band, station_name=station_names_fiveg, vlan_id=vlan, + channel=channel,country=392) + if result: + assert True + else: + assert False + + +setup_params_general4 = { + "mode": "BRIDGE", + "ssid_modes": { + "wpa2_personal": [{"ssid_name": "ssid_wpa2_2g", "appliedRadios": ["2G"], "security_key": "something"}, + {"ssid_name": "ssid_wpa2_5g", "appliedRadios": ["5G"], "security_key": "something"} + ]}, + "rf": {"5G": + {'band': '5G', + 'country': 'JP', + 'channel-mode': 'VHT', + 'channel-width': 80, + "channel": 116}, + "2G": + {'band': '2G', + 'country': 'JP', + "channel-mode": "VHT", + 'channel-width': 20, + "channel": 1} + }, + "radius": False +} + +@allure.feature("BRIDGE MODE CLIENT CONNECTIVITY") +@pytest.mark.parametrize( + 'setup_profiles', + [setup_params_general4], + indirect=True, + scope="class" +) +@pytest.mark.usefixtures("setup_profiles") +class TestCountryJP80Mhz5GChannel116(object): + """Country code along with Channel and Channel-width Test Bridge mode + pytest -m "country_code and Bridge" + """ + @allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-2546", name="WIFI-6938") + @pytest.mark.wpa2_personal + @pytest.mark.eightyMhz + @pytest.mark.fiveg + @pytest.mark.channel116 + def test_client_bridge_wpa2_chn116_80Mhz_JP_5g(self, lf_test, station_names_fiveg, get_configuration): + """Country code Bridge Mode + pytest -m "country_code and eightyMhz and wpa2 and fiveg and channel116" + """ + profile_data = setup_params_general4["ssid_modes"]["wpa2_personal"][1] + ssid = profile_data["ssid_name"] + security_key = profile_data["security_key"] + security = "wpa2" + mode = "BRIDGE" + band = "fiveg" + vlan = 1 + channel = setup_params_general4['rf']['5G']['channel'] + + result = lf_test.country_code_channel_division(ssid=ssid, security=security, passkey=security_key, mode=mode, + band=band, station_name=station_names_fiveg, vlan_id=vlan, + channel=channel,country=392) + if result: + assert True + else: + assert False diff --git a/tests/e2e/basic/validation_of_operating_modes/country_code_channel_division/country_code_US/__init__.py b/tests/e2e/basic/validation_of_operating_modes/country_code_channel_division/country_code_US/__init__.py new file mode 100644 index 000000000..e69de29bb diff --git a/tests/e2e/basic/validation_of_operating_modes/country_code_channel_division/country_code_US/channel_width_20Mhz/__init__.py b/tests/e2e/basic/validation_of_operating_modes/country_code_channel_division/country_code_US/channel_width_20Mhz/__init__.py new file mode 100644 index 000000000..e69de29bb diff --git a/tests/e2e/basic/validation_of_operating_modes/country_code_channel_division/country_code_US/channel_width_20Mhz/fiveg_band/__init__.py b/tests/e2e/basic/validation_of_operating_modes/country_code_channel_division/country_code_US/channel_width_20Mhz/fiveg_band/__init__.py new file mode 100644 index 000000000..e69de29bb diff --git a/tests/e2e/basic/validation_of_operating_modes/country_code_channel_division/country_code_US/channel_width_20Mhz/fiveg_band/test_US_20Mhz_5g.py b/tests/e2e/basic/validation_of_operating_modes/country_code_channel_division/country_code_US/channel_width_20Mhz/fiveg_band/test_US_20Mhz_5g.py new file mode 100644 index 000000000..876b33789 --- /dev/null +++ b/tests/e2e/basic/validation_of_operating_modes/country_code_channel_division/country_code_US/channel_width_20Mhz/fiveg_band/test_US_20Mhz_5g.py @@ -0,0 +1,1056 @@ +""" + + Performance Test: Country code along with Channel and Channel-width Test: Bridge Mode + pytest -m "country_code and Bridge" + +""" + + +import os +import pytest +import allure + +pytestmark = [pytest.mark.country_code, pytest.mark.Bridge, pytest.mark.wpa2, pytest.mark.US] + +setup_params_general1 = { + "mode": "BRIDGE", + "ssid_modes": { + "wpa2_personal": [{"ssid_name": "ssid_wpa2_2g", "appliedRadios": ["2G"], "security_key": "something"}, + {"ssid_name": "ssid_wpa2_5g", "appliedRadios": ["5G"], "security_key": "something"} + ]}, + "rf": {"5G": + {'band': '5G', + 'country': 'US', + "channel-mode": "VHT", + 'channel-width': 20, + "channel": 36}, + "2G": + {'band': '2G', + 'country': 'US', + "channel-mode": "VHT", + 'channel-width': 20, + "channel": 1} + }, + "radius": False +} + + +@allure.feature("BRIDGE MODE CLIENT CONNECTIVITY") +@pytest.mark.parametrize( + 'setup_profiles', + [setup_params_general1], + indirect=True, + scope="class" +) +@pytest.mark.usefixtures("setup_profiles") +class TestCountryUS20Mhz5GChannel36(object): + """Country code along with Channel and Channel-width Test Bridge mode + pytest -m "country_code and Bridge" + """ + @allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-2546", name="WIFI-6938") + @pytest.mark.wpa2_personal + @pytest.mark.twentyMhz + @pytest.mark.fiveg + @pytest.mark.channel36 + def test_client_bridge_wpa2_chn36_20Mhz_US_5g(self, lf_test, station_names_fiveg, get_configuration): + """Country code Bridge Mode + pytest -m "country_code and twentyMhz and wpa2 and fiveg and channel36" + """ + profile_data = setup_params_general1["ssid_modes"]["wpa2_personal"][1] + ssid = profile_data["ssid_name"] + security_key = profile_data["security_key"] + security = "wpa2" + mode = "BRIDGE" + band = "fiveg" + vlan = 1 + channel = setup_params_general1['rf']['5G']['channel'] + + result = lf_test.country_code_channel_division(ssid=ssid, security=security, passkey=security_key, mode=mode, + band=band, station_name=station_names_fiveg, vlan_id=vlan, + channel=channel, country=840) + if result: + assert True + else: + assert False + + +setup_params_general2 = { + "mode": "BRIDGE", + "ssid_modes": { + "wpa2_personal": [{"ssid_name": "ssid_wpa2_2g", "appliedRadios": ["2G"], "security_key": "something"}, + {"ssid_name": "ssid_wpa2_5g", "appliedRadios": ["5G"], "security_key": "something"} + ]}, + "rf": {"5G": + {'band': '5G', + 'country': 'US', + "channel-mode": "VHT", + 'channel-width': 20, + "channel": 40}, + "2G": + {'band': '2G', + 'country': 'US', + "channel-mode": "VHT", + 'channel-width': 20, + "channel": 1} + }, + "radius": False +} + + +@allure.feature("BRIDGE MODE CLIENT CONNECTIVITY") +@pytest.mark.parametrize( + 'setup_profiles', + [setup_params_general2], + indirect=True, + scope="class" +) +@pytest.mark.usefixtures("setup_profiles") +class TestCountryUS20Mhz5GChannel40(object): + """Country code along with Channel and Channel-width Test Bridge mode + pytest -m "country_code and Bridge" + """ + @allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-2546", name="WIFI-6938") + @pytest.mark.wpa2_personal + @pytest.mark.twentyMhz + @pytest.mark.fiveg + @pytest.mark.channel40 + def test_client_bridge_wpa2_chn40_20Mhz_US_5g(self, lf_test, station_names_fiveg, get_configuration): + """Country code Bridge Mode + pytest -m "country_code and twentyMhz and wpa2 and fiveg and channel40" + """ + profile_data = setup_params_general2["ssid_modes"]["wpa2_personal"][1] + ssid = profile_data["ssid_name"] + security_key = profile_data["security_key"] + security = "wpa2" + mode = "BRIDGE" + band = "fiveg" + vlan = 1 + channel = setup_params_general2['rf']['5G']['channel'] + + result = lf_test.country_code_channel_division(ssid=ssid, security=security, passkey=security_key, mode=mode, + band=band, station_name=station_names_fiveg, vlan_id=vlan, + channel=channel, country=840) + if result: + assert True + else: + assert False + +setup_params_general3 = { + "mode": "BRIDGE", + "ssid_modes": { + "wpa2_personal": [{"ssid_name": "ssid_wpa2_2g", "appliedRadios": ["2G"], "security_key": "something"}, + {"ssid_name": "ssid_wpa2_5g", "appliedRadios": ["5G"], "security_key": "something"} + ]}, + "rf": {"5G": + {'band': '5G', + 'country': 'US', + 'channel-mode': 'VHT', + 'channel-width': 20, + "channel": 44}, + "2G": + {'band': '2G', + 'country': 'US', + "channel-mode": "VHT", + 'channel-width': 20, + "channel": 1} + }, + "radius": False +} + + +@allure.feature("BRIDGE MODE CLIENT CONNECTIVITY") +@pytest.mark.parametrize( + 'setup_profiles', + [setup_params_general3], + indirect=True, + scope="class" +) +@pytest.mark.usefixtures("setup_profiles") +class TestCountryUS20Mhz5GChannel44(object): + """Country code along with Channel and Channel-width Test Bridge mode + pytest -m "country_code and Bridge" + """ + @allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-2546", name="WIFI-6938") + @pytest.mark.wpa2_personal + @pytest.mark.twentyMhz + @pytest.mark.fiveg + @pytest.mark.channel44 + def test_client_bridge_wpa2_chn44_20Mhz_US_5g(self, lf_test, station_names_fiveg, get_configuration): + """Country code Bridge Mode + pytest -m "country_code and twentyMhz and wpa2 and fiveg and channel44" + """ + profile_data = setup_params_general3["ssid_modes"]["wpa2_personal"][1] + ssid = profile_data["ssid_name"] + security_key = profile_data["security_key"] + security = "wpa2" + mode = "BRIDGE" + band = "fiveg" + vlan = 1 + channel = setup_params_general3['rf']['5G']['channel'] + + result = lf_test.country_code_channel_division(ssid=ssid, security=security, passkey=security_key, mode=mode, + band=band, station_name=station_names_fiveg, vlan_id=vlan, + channel=channel, country=840) + if result: + assert True + else: + assert False + + +setup_params_general4 = { + "mode": "BRIDGE", + "ssid_modes": { + "wpa2_personal": [{"ssid_name": "ssid_wpa2_2g", "appliedRadios": ["2G"], "security_key": "something"}, + {"ssid_name": "ssid_wpa2_5g", "appliedRadios": ["5G"], "security_key": "something"} + ]}, + "rf": {"5G": + {'band': '5G', + 'country': 'US', + "channel-mode": "VHT", + 'channel-width': 20, + "channel": 48}, + "2G": + {'band': '2G', + 'country': 'US', + "channel-mode": "VHT", + 'channel-width': 20, + "channel": 1} + }, + "radius": False +} + + +@allure.feature("BRIDGE MODE CLIENT CONNECTIVITY") +@pytest.mark.parametrize( + 'setup_profiles', + [setup_params_general4], + indirect=True, + scope="class" +) +@pytest.mark.usefixtures("setup_profiles") +class TestCountryUS20Mhz5GChannel48(object): + """Country code along with Channel and Channel-width Test Bridge mode + pytest -m "country_code and Bridge" + """ + @allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-2546", name="WIFI-6938") + @pytest.mark.wpa2_personal + @pytest.mark.twentyMhz + @pytest.mark.fiveg + @pytest.mark.channel48 + def test_client_bridge_wpa2_chn48_20Mhz_US_5g(self, lf_test, station_names_fiveg, get_configuration): + """Country code Bridge Mode + pytest -m "country_code and twentyMhz and wpa2 and fiveg and channel48" + """ + profile_data = setup_params_general4["ssid_modes"]["wpa2_personal"][1] + ssid = profile_data["ssid_name"] + security_key = profile_data["security_key"] + security = "wpa2" + mode = "BRIDGE" + band = "fiveg" + vlan = 1 + channel = setup_params_general4['rf']['5G']['channel'] + + result = lf_test.country_code_channel_division(ssid=ssid, security=security, passkey=security_key, mode=mode, + band=band, station_name=station_names_fiveg, vlan_id=vlan, + channel=channel, country=840) + if result: + assert True + else: + assert False + + +setup_params_general5 = { + "mode": "BRIDGE", + "ssid_modes": { + "wpa2_personal": [{"ssid_name": "ssid_wpa2_2g", "appliedRadios": ["2G"], "security_key": "something"}, + {"ssid_name": "ssid_wpa2_5g", "appliedRadios": ["5G"], "security_key": "something"} + ]}, + "rf": {"5G": + {'band': '5G', + 'country': 'US', + 'channel-mode': 'VHT', + 'channel-width': 20, + "channel": 52}, + "2G": + {'band': '2G', + 'country': 'US', + "channel-mode": "VHT", + 'channel-width': 20, + "channel": 1} + }, + "radius": False +} + + +@allure.feature("BRIDGE MODE CLIENT CONNECTIVITY") +@pytest.mark.parametrize( + 'setup_profiles', + [setup_params_general5], + indirect=True, + scope="class" +) +@pytest.mark.usefixtures("setup_profiles") +class TestCountryUS20Mhz5GChannel52(object): + """Country code along with Channel and Channel-width Test Bridge mode + pytest -m "country_code and Bridge" + """ + @allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-2546", name="WIFI-6938") + @pytest.mark.wpa2_personal + @pytest.mark.twentyMhz + @pytest.mark.fiveg + @pytest.mark.channel52 + def test_client_bridge_wpa2_chn52_20Mhz_US_5g(self, lf_test, station_names_fiveg, get_configuration): + """Country code Bridge Mode + pytest -m "country_code and twentyMhz and wpa2 and fiveg and channel52" + """ + profile_data = setup_params_general5["ssid_modes"]["wpa2_personal"][1] + ssid = profile_data["ssid_name"] + security_key = profile_data["security_key"] + security = "wpa2" + mode = "BRIDGE" + band = "fiveg" + vlan = 1 + channel = setup_params_general5['rf']['5G']['channel'] + + result = lf_test.country_code_channel_division(ssid=ssid, security=security, passkey=security_key, mode=mode, + band=band, station_name=station_names_fiveg, vlan_id=vlan, + channel=channel, country=840) + if result: + assert True + else: + assert False + + +setup_params_general6 = { + "mode": "BRIDGE", + "ssid_modes": { + "wpa2_personal": [{"ssid_name": "ssid_wpa2_2g", "appliedRadios": ["2G"], "security_key": "something"}, + {"ssid_name": "ssid_wpa2_5g", "appliedRadios": ["5G"], "security_key": "something"} + ]}, + "rf": {"5G": + {'band': '5G', + 'country': 'US', + "channel-mode": "VHT", + 'channel-width': 20, + "channel": 56}, + "2G": + {'band': '2G', + 'country': 'US', + "channel-mode": "VHT", + 'channel-width': 20, + "channel": 1} + }, + "radius": False +} + + +@allure.feature("BRIDGE MODE CLIENT CONNECTIVITY") +@pytest.mark.parametrize( + 'setup_profiles', + [setup_params_general6], + indirect=True, + scope="class" +) +@pytest.mark.usefixtures("setup_profiles") +class TestCountryUS20Mhz5GChannel56(object): + """Country code along with Channel and Channel-width Test Bridge mode + pytest -m "country_code and Bridge" + """ + @allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-2546", name="WIFI-6938") + @pytest.mark.wpa2_personal + @pytest.mark.twentyMhz + @pytest.mark.fiveg + @pytest.mark.channel56 + def test_client_bridge_wpa2_chn56_20Mhz_US_5g(self, lf_test, station_names_fiveg, get_configuration): + """Country code Bridge Mode + pytest -m "country_code and twentyMhz and wpa2 and fiveg and channel56" + """ + profile_data = setup_params_general6["ssid_modes"]["wpa2_personal"][1] + ssid = profile_data["ssid_name"] + security_key = profile_data["security_key"] + security = "wpa2" + mode = "BRIDGE" + band = "fiveg" + vlan = 1 + channel = setup_params_general6['rf']['5G']['channel'] + + result = lf_test.country_code_channel_division(ssid=ssid, security=security, passkey=security_key, mode=mode, + band=band, station_name=station_names_fiveg, vlan_id=vlan, + channel=channel, country=840) + if result: + assert True + else: + assert False + + +setup_params_general7 = { + "mode": "BRIDGE", + "ssid_modes": { + "wpa2_personal": [{"ssid_name": "ssid_wpa2_2g", "appliedRadios": ["2G"], "security_key": "something"}, + {"ssid_name": "ssid_wpa2_5g", "appliedRadios": ["5G"], "security_key": "something"} + ]}, + "rf": {"5G": + {'band': '5G', + 'country': 'US', + 'channel-mode': 'VHT', + 'channel-width': 20, + "channel": 60}, + "2G": + {'band': '2G', + 'country': 'US', + "channel-mode": "VHT", + 'channel-width': 20, + "channel": 1} + }, + "radius": False +} + +@allure.feature("BRIDGE MODE CLIENT CONNECTIVITY") +@pytest.mark.parametrize( + 'setup_profiles', + [setup_params_general7], + indirect=True, + scope="class" +) +@pytest.mark.usefixtures("setup_profiles") +class TestCountryUS20Mhz5GChannel60(object): + """Country code along with Channel and Channel-width Test Bridge mode + pytest -m "country_code and Bridge" + """ + @allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-2546", name="WIFI-6938") + @pytest.mark.wpa2_personal + @pytest.mark.twentyMhz + @pytest.mark.fiveg + @pytest.mark.channel60 + def test_client_bridge_wpa2_chn60_20Mhz_US_5g(self, lf_test, station_names_fiveg, get_configuration): + """Country code Bridge Mode + pytest -m "country_code and twentyMhz and wpa2 and fiveg and channel60" + """ + profile_data = setup_params_general7["ssid_modes"]["wpa2_personal"][1] + ssid = profile_data["ssid_name"] + security_key = profile_data["security_key"] + security = "wpa2" + mode = "BRIDGE" + band = "fiveg" + vlan = 1 + channel = setup_params_general7['rf']['5G']['channel'] + + result = lf_test.country_code_channel_division(ssid=ssid, security=security, passkey=security_key, mode=mode, + band=band, station_name=station_names_fiveg, vlan_id=vlan, + channel=channel, country=840) + if result: + assert True + else: + assert False + + +setup_params_general8 = { + "mode": "BRIDGE", + "ssid_modes": { + "wpa2_personal": [{"ssid_name": "ssid_wpa2_2g", "appliedRadios": ["2G"], "security_key": "something"}, + {"ssid_name": "ssid_wpa2_5g", "appliedRadios": ["5G"], "security_key": "something"} + ]}, + "rf": {"5G": + {'band': '5G', + 'country': 'US', + "channel-mode": "VHT", + 'channel-width': 20, + "channel": 64}, + "2G": + {'band': '2G', + 'country': 'US', + "channel-mode": "VHT", + 'channel-width': 20, + "channel": 1} + }, + "radius": False +} + + +@allure.feature("BRIDGE MODE CLIENT CONNECTIVITY") +@pytest.mark.parametrize( + 'setup_profiles', + [setup_params_general8], + indirect=True, + scope="class" +) +@pytest.mark.usefixtures("setup_profiles") +class TestCountryUS20Mhz5GChannel64(object): + """Country code along with Channel and Channel-width Test Bridge mode + pytest -m "country_code and Bridge" + """ + @allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-2546", name="WIFI-6938") + @pytest.mark.wpa2_personal + @pytest.mark.twentyMhz + @pytest.mark.fiveg + @pytest.mark.channel64 + def test_client_bridge_wpa2_chn64_20Mhz_US_5g(self, lf_test, station_names_fiveg, get_configuration): + """Country code Bridge Mode + pytest -m "country_code and twentyMhz and wpa2 and fiveg and channel64" + """ + profile_data = setup_params_general8["ssid_modes"]["wpa2_personal"][1] + ssid = profile_data["ssid_name"] + security_key = profile_data["security_key"] + security = "wpa2" + mode = "BRIDGE" + band = "fiveg" + vlan = 1 + channel = setup_params_general8['rf']['5G']['channel'] + + result = lf_test.country_code_channel_division(ssid=ssid, security=security, passkey=security_key, mode=mode, + band=band, station_name=station_names_fiveg, vlan_id=vlan, + channel=channel, country=840) + if result: + assert True + else: + assert False + + +setup_params_general9 = { + "mode": "BRIDGE", + "ssid_modes": { + "wpa2_personal": [{"ssid_name": "ssid_wpa2_2g", "appliedRadios": ["2G"], "security_key": "something"}, + {"ssid_name": "ssid_wpa2_5g", "appliedRadios": ["5G"], "security_key": "something"} + ]}, + "rf": {"5G": + {'band': '5G', + 'country': 'US', + 'channel-mode': 'VHT', + 'channel-width': 20, + "channel": 100}, + "2G": + {'band': '2G', + 'country': 'US', + "channel-mode": "VHT", + 'channel-width': 20, + "channel": 1} + }, + "radius": False +} + +@allure.feature("BRIDGE MODE CLIENT CONNECTIVITY") +@pytest.mark.parametrize( + 'setup_profiles', + [setup_params_general9], + indirect=True, + scope="class" +) +@pytest.mark.usefixtures("setup_profiles") +class TestCountryUS20Mhz5GChannel100(object): + """Country code along with Channel and Channel-width Test Bridge mode + pytest -m "country_code and Bridge" + """ + @allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-2546", name="WIFI-6938") + @pytest.mark.wpa2_personal + @pytest.mark.twentyMhz + @pytest.mark.fiveg + @pytest.mark.channel100 + def test_client_bridge_wpa2_chn100_20Mhz_US_5g(self, lf_test, station_names_fiveg, get_configuration): + """Country code Bridge Mode + pytest -m "country_code and twentyMhz and wpa2 and fiveg and channel100" + """ + profile_data = setup_params_general9["ssid_modes"]["wpa2_personal"][1] + ssid = profile_data["ssid_name"] + security_key = profile_data["security_key"] + security = "wpa2" + mode = "BRIDGE" + band = "fiveg" + vlan = 1 + channel = setup_params_general9['rf']['5G']['channel'] + + result = lf_test.country_code_channel_division(ssid=ssid, security=security, passkey=security_key, mode=mode, + band=band, station_name=station_names_fiveg, vlan_id=vlan, + channel=channel, country=840) + if result: + assert True + else: + assert False + + +setup_params_general10 = { + "mode": "BRIDGE", + "ssid_modes": { + "wpa2_personal": [{"ssid_name": "ssid_wpa2_2g", "appliedRadios": ["2G"], "security_key": "something"}, + {"ssid_name": "ssid_wpa2_5g", "appliedRadios": ["5G"], "security_key": "something"} + ]}, + "rf": {"5G": + {'band': '5G', + 'country': 'US', + 'channel-mode': 'VHT', + 'channel-width': 20, + "channel": 104}, + "2G": + {'band': '2G', + 'country': 'US', + "channel-mode": "VHT", + 'channel-width': 20, + "channel": 1} + }, + "radius": False +} + +@allure.feature("BRIDGE MODE CLIENT CONNECTIVITY") +@pytest.mark.parametrize( + 'setup_profiles', + [setup_params_general10], + indirect=True, + scope="class" +) +@pytest.mark.usefixtures("setup_profiles") +class TestCountryUS20Mhz5GChannel104(object): + """Country code along with Channel and Channel-width Test Bridge mode + pytest -m "country_code and Bridge" + """ + @allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-2546", name="WIFI-6938") + @pytest.mark.wpa2_personal + @pytest.mark.twentyMhz + @pytest.mark.fiveg + @pytest.mark.channel104 + def test_client_bridge_wpa2_chn104_20Mhz_US_5g(self, lf_test, station_names_fiveg, get_configuration): + """Country code Bridge Mode + pytest -m "country_code and twentyMhz and wpa2 and fiveg and channel104" + """ + profile_data = setup_params_general10["ssid_modes"]["wpa2_personal"][1] + ssid = profile_data["ssid_name"] + security_key = profile_data["security_key"] + security = "wpa2" + mode = "BRIDGE" + band = "fiveg" + vlan = 1 + channel = setup_params_general10['rf']['5G']['channel'] + + result = lf_test.country_code_channel_division(ssid=ssid, security=security, passkey=security_key, mode=mode, + band=band, station_name=station_names_fiveg, vlan_id=vlan, + channel=channel, country=840) + if result: + assert True + else: + assert False + + +setup_params_general11 = { + "mode": "BRIDGE", + "ssid_modes": { + "wpa2_personal": [{"ssid_name": "ssid_wpa2_2g", "appliedRadios": ["2G"], "security_key": "something"}, + {"ssid_name": "ssid_wpa2_5g", "appliedRadios": ["5G"], "security_key": "something"} + ]}, + "rf": {"5G": + {'band': '5G', + 'country': 'US', + 'channel-mode': 'VHT', + 'channel-width': 20, + "channel": 108}, + "2G": + {'band': '2G', + 'country': 'US', + "channel-mode": "VHT", + 'channel-width': 20, + "channel": 1} + }, + "radius": False +} + +@allure.feature("BRIDGE MODE CLIENT CONNECTIVITY") +@pytest.mark.parametrize( + 'setup_profiles', + [setup_params_general11], + indirect=True, + scope="class" +) +@pytest.mark.usefixtures("setup_profiles") +class TestCountryUS20Mhz5GChannel108(object): + """Country code along with Channel and Channel-width Test Bridge mode + pytest -m "country_code and Bridge" + """ + @allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-2546", name="WIFI-6938") + @pytest.mark.wpa2_personal + @pytest.mark.twentyMhz + @pytest.mark.fiveg + @pytest.mark.channel108 + def test_client_bridge_wpa2_chn108_20Mhz_US_5g(self, lf_test, station_names_fiveg, get_configuration): + """Country code Bridge Mode + pytest -m "country_code and twentyMhz and wpa2 and fiveg and channel108" + """ + profile_data = setup_params_general11["ssid_modes"]["wpa2_personal"][1] + ssid = profile_data["ssid_name"] + security_key = profile_data["security_key"] + security = "wpa2" + mode = "BRIDGE" + band = "fiveg" + vlan = 1 + channel = setup_params_general11['rf']['5G']['channel'] + + result = lf_test.country_code_channel_division(ssid=ssid, security=security, passkey=security_key, mode=mode, + band=band, station_name=station_names_fiveg, vlan_id=vlan, + channel=channel, country=840) + if result: + assert True + else: + assert False + + +setup_params_general12 = { + "mode": "BRIDGE", + "ssid_modes": { + "wpa2_personal": [{"ssid_name": "ssid_wpa2_2g", "appliedRadios": ["2G"], "security_key": "something"}, + {"ssid_name": "ssid_wpa2_5g", "appliedRadios": ["5G"], "security_key": "something"} + ]}, + "rf": {"5G": + {'band': '5G', + 'country': 'US', + 'channel-mode': 'VHT', + 'channel-width': 20, + "channel": 112}, + "2G": + {'band': '2G', + 'country': 'US', + "channel-mode": "VHT", + 'channel-width': 20, + "channel": 1} + }, + "radius": False +} + +@allure.feature("BRIDGE MODE CLIENT CONNECTIVITY") +@pytest.mark.parametrize( + 'setup_profiles', + [setup_params_general12], + indirect=True, + scope="class" +) +@pytest.mark.usefixtures("setup_profiles") +class TestCountryUS20Mhz5GChannel112(object): + """Country code along with Channel and Channel-width Test Bridge mode + pytest -m "country_code and Bridge" + """ + @allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-2546", name="WIFI-6938") + @pytest.mark.wpa2_personal + @pytest.mark.twentyMhz + @pytest.mark.fiveg + @pytest.mark.channel112 + def test_client_bridge_wpa2_chn112_20Mhz_US_5g(self, lf_test, station_names_fiveg, get_configuration): + """Country code Bridge Mode + pytest -m "country_code and twentyMhz and wpa2 and fiveg and channel112" + """ + profile_data = setup_params_general12["ssid_modes"]["wpa2_personal"][1] + ssid = profile_data["ssid_name"] + security_key = profile_data["security_key"] + security = "wpa2" + mode = "BRIDGE" + band = "fiveg" + vlan = 1 + channel = setup_params_general12['rf']['5G']['channel'] + + result = lf_test.country_code_channel_division(ssid=ssid, security=security, passkey=security_key, mode=mode, + band=band, station_name=station_names_fiveg, vlan_id=vlan, + channel=channel, country=840) + if result: + assert True + else: + assert False + + +setup_params_general13 = { + "mode": "BRIDGE", + "ssid_modes": { + "wpa2_personal": [{"ssid_name": "ssid_wpa2_2g", "appliedRadios": ["2G"], "security_key": "something"}, + {"ssid_name": "ssid_wpa2_5g", "appliedRadios": ["5G"], "security_key": "something"} + ]}, + "rf": {"5G": + {'band': '5G', + 'country': 'US', + 'channel-mode': 'VHT', + 'channel-width': 20, + "channel": 116}, + "2G": + {'band': '2G', + 'country': 'US', + "channel-mode": "VHT", + 'channel-width': 20, + "channel": 1} + }, + "radius": False +} + +@allure.feature("BRIDGE MODE CLIENT CONNECTIVITY") +@pytest.mark.parametrize( + 'setup_profiles', + [setup_params_general13], + indirect=True, + scope="class" +) +@pytest.mark.usefixtures("setup_profiles") +class TestCountryUS20Mhz5GChannel116(object): + """Country code along with Channel and Channel-width Test Bridge mode + pytest -m "country_code and Bridge" + """ + @allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-2546", name="WIFI-6938") + @pytest.mark.wpa2_personal + @pytest.mark.twentyMhz + @pytest.mark.fiveg + @pytest.mark.channel116 + def test_client_bridge_wpa2_chn116_20Mhz_US_5g(self, lf_test, station_names_fiveg, get_configuration): + """Country code Bridge Mode + pytest -m "country_code and twentyMhz and wpa2 and fiveg and channel116" + """ + profile_data = setup_params_general13["ssid_modes"]["wpa2_personal"][1] + ssid = profile_data["ssid_name"] + security_key = profile_data["security_key"] + security = "wpa2" + mode = "BRIDGE" + band = "fiveg" + vlan = 1 + channel = setup_params_general13['rf']['5G']['channel'] + + result = lf_test.country_code_channel_division(ssid=ssid, security=security, passkey=security_key, mode=mode, + band=band, station_name=station_names_fiveg, vlan_id=vlan, + channel=channel, country=840) + if result: + assert True + else: + assert False + + +setup_params_general14 = { + "mode": "BRIDGE", + "ssid_modes": { + "wpa2_personal": [{"ssid_name": "ssid_wpa2_2g", "appliedRadios": ["2G"], "security_key": "something"}, + {"ssid_name": "ssid_wpa2_5g", "appliedRadios": ["5G"], "security_key": "something"} + ]}, + "rf": {"5G": + {'band': '5G', + 'country': 'US', + 'channel-mode': 'VHT', + 'channel-width': 20, + "channel": 132}, + "2G": + {'band': '2G', + 'country': 'US', + "channel-mode": "VHT", + 'channel-width': 20, + "channel": 1} + }, + "radius": False +} + +@allure.feature("BRIDGE MODE CLIENT CONNECTIVITY") +@pytest.mark.parametrize( + 'setup_profiles', + [setup_params_general14], + indirect=True, + scope="class" +) +@pytest.mark.usefixtures("setup_profiles") +class TestCountryUS20Mhz5GChannel132(object): + """Country code along with Channel and Channel-width Test Bridge mode + pytest -m "country_code and Bridge" + """ + @allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-2546", name="WIFI-6938") + @pytest.mark.wpa2_personal + @pytest.mark.twentyMhz + @pytest.mark.fiveg + @pytest.mark.channel132 + def test_client_bridge_wpa2_chn132_20Mhz_US_5g(self, lf_test, station_names_fiveg, get_configuration): + """Country code Bridge Mode + pytest -m "country_code and twentyMhz and wpa2 and fiveg and channel132" + """ + profile_data = setup_params_general14["ssid_modes"]["wpa2_personal"][1] + ssid = profile_data["ssid_name"] + security_key = profile_data["security_key"] + security = "wpa2" + mode = "BRIDGE" + band = "fiveg" + vlan = 1 + channel = setup_params_general14['rf']['5G']['channel'] + + result = lf_test.country_code_channel_division(ssid=ssid, security=security, passkey=security_key, mode=mode, + band=band, station_name=station_names_fiveg, vlan_id=vlan, + channel=channel, country=840) + if result: + assert True + else: + assert False + + +setup_params_general15 = { + "mode": "BRIDGE", + "ssid_modes": { + "wpa2_personal": [{"ssid_name": "ssid_wpa2_2g", "appliedRadios": ["2G"], "security_key": "something"}, + {"ssid_name": "ssid_wpa2_5g", "appliedRadios": ["5G"], "security_key": "something"} + ]}, + "rf": {"5G": + {'band': '5G', + 'country': 'US', + 'channel-mode': 'VHT', + 'channel-width': 20, + "channel": 136}, + "2G": + {'band': '2G', + 'country': 'US', + "channel-mode": "VHT", + 'channel-width': 20, + "channel": 1} + }, + "radius": False +} + +@allure.feature("BRIDGE MODE CLIENT CONNECTIVITY") +@pytest.mark.parametrize( + 'setup_profiles', + [setup_params_general15], + indirect=True, + scope="class" +) +@pytest.mark.usefixtures("setup_profiles") +class TestCountryUS20Mhz5GChannel136(object): + """Country code along with Channel and Channel-width Test Bridge mode + pytest -m "country_code and Bridge" + """ + @allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-2546", name="WIFI-6938") + @pytest.mark.wpa2_personal + @pytest.mark.twentyMhz + @pytest.mark.fiveg + @pytest.mark.channel136 + def test_client_bridge_wpa2_chn136_20Mhz_US_5g(self, lf_test, station_names_fiveg, get_configuration): + """Country code Bridge Mode + pytest -m "country_code and twentyMhz and wpa2 and fiveg and channel136" + """ + profile_data = setup_params_general15["ssid_modes"]["wpa2_personal"][1] + ssid = profile_data["ssid_name"] + security_key = profile_data["security_key"] + security = "wpa2" + mode = "BRIDGE" + band = "fiveg" + vlan = 1 + channel = setup_params_general15['rf']['5G']['channel'] + + result = lf_test.country_code_channel_division(ssid=ssid, security=security, passkey=security_key, mode=mode, + band=band, station_name=station_names_fiveg, vlan_id=vlan, + channel=channel, country=840) + if result: + assert True + else: + assert False + + +setup_params_general16 = { + "mode": "BRIDGE", + "ssid_modes": { + "wpa2_personal": [{"ssid_name": "ssid_wpa2_2g", "appliedRadios": ["2G"], "security_key": "something"}, + {"ssid_name": "ssid_wpa2_5g", "appliedRadios": ["5G"], "security_key": "something"} + ]}, + "rf": {"5G": + {'band': '5G', + 'country': 'US', + 'channel-mode': 'VHT', + 'channel-width': 20, + "channel": 140}, + "2G": + {'band': '2G', + 'country': 'US', + "channel-mode": "VHT", + 'channel-width': 20, + "channel": 1} + }, + "radius": False +} + +@allure.feature("BRIDGE MODE CLIENT CONNECTIVITY") +@pytest.mark.parametrize( + 'setup_profiles', + [setup_params_general16], + indirect=True, + scope="class" +) +@pytest.mark.usefixtures("setup_profiles") +class TestCountryUS20Mhz5GChannel140(object): + """Country code along with Channel and Channel-width Test Bridge mode + pytest -m "country_code and Bridge" + """ + @allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-2546", name="WIFI-6938") + @pytest.mark.wpa2_personal + @pytest.mark.twentyMhz + @pytest.mark.fiveg + @pytest.mark.channel140 + def test_client_bridge_wpa2_chn140_20Mhz_US_5g(self, lf_test, station_names_fiveg, get_configuration): + """Country code Bridge Mode + pytest -m "country_code and twentyMhz and wpa2 and fiveg and channel140" + """ + profile_data = setup_params_general16["ssid_modes"]["wpa2_personal"][1] + ssid = profile_data["ssid_name"] + security_key = profile_data["security_key"] + security = "wpa2" + mode = "BRIDGE" + band = "fiveg" + vlan = 1 + channel = setup_params_general16['rf']['5G']['channel'] + + result = lf_test.country_code_channel_division(ssid=ssid, security=security, passkey=security_key, mode=mode, + band=band, station_name=station_names_fiveg, vlan_id=vlan, + channel=channel, country=840) + if result: + assert True + else: + assert False + + +setup_params_general17 = { + "mode": "BRIDGE", + "ssid_modes": { + "wpa2_personal": [{"ssid_name": "ssid_wpa2_2g", "appliedRadios": ["2G"], "security_key": "something"}, + {"ssid_name": "ssid_wpa2_5g", "appliedRadios": ["5G"], "security_key": "something"} + ]}, + "rf": {"5G": + {'band': '5G', + 'country': 'US', + 'channel-mode': 'VHT', + 'channel-width': 20, + "channel": 144}, + "2G": + {'band': '2G', + 'country': 'US', + "channel-mode": "VHT", + 'channel-width': 20, + "channel": 1} + }, + "radius": False +} + +@allure.feature("BRIDGE MODE CLIENT CONNECTIVITY") +@pytest.mark.parametrize( + 'setup_profiles', + [setup_params_general17], + indirect=True, + scope="class" +) +@pytest.mark.usefixtures("setup_profiles") +class TestCountryUS20Mhz5GChannel144(object): + """Country code along with Channel and Channel-width Test Bridge mode + pytest -m "country_code and Bridge" + """ + @allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-2546", name="WIFI-6938") + @pytest.mark.wpa2_personal + @pytest.mark.twentyMhz + @pytest.mark.fiveg + @pytest.mark.channel144 + def test_client_bridge_wpa2_chn144_20Mhz_US_5g(self, lf_test, station_names_fiveg, get_configuration): + """Country code Bridge Mode + pytest -m "country_code and twentyMhz and wpa2 and fiveg and channel144" + """ + profile_data = setup_params_general17["ssid_modes"]["wpa2_personal"][1] + ssid = profile_data["ssid_name"] + security_key = profile_data["security_key"] + security = "wpa2" + mode = "BRIDGE" + band = "fiveg" + vlan = 1 + channel = setup_params_general17['rf']['5G']['channel'] + + result = lf_test.country_code_channel_division(ssid=ssid, security=security, passkey=security_key, mode=mode, + band=band, station_name=station_names_fiveg, vlan_id=vlan, + channel=channel, country=840) + if result: + assert True + else: + assert False + diff --git a/tests/e2e/basic/validation_of_operating_modes/country_code_channel_division/country_code_US/channel_width_20Mhz/twog_band/__init__.py b/tests/e2e/basic/validation_of_operating_modes/country_code_channel_division/country_code_US/channel_width_20Mhz/twog_band/__init__.py new file mode 100644 index 000000000..e69de29bb diff --git a/tests/e2e/basic/validation_of_operating_modes/country_code_channel_division/country_code_US/channel_width_20Mhz/twog_band/test_US_20Mhz_2g.py b/tests/e2e/basic/validation_of_operating_modes/country_code_channel_division/country_code_US/channel_width_20Mhz/twog_band/test_US_20Mhz_2g.py new file mode 100644 index 000000000..06121c45d --- /dev/null +++ b/tests/e2e/basic/validation_of_operating_modes/country_code_channel_division/country_code_US/channel_width_20Mhz/twog_band/test_US_20Mhz_2g.py @@ -0,0 +1,796 @@ +""" + + Performance Test: Country code along with Channel and Channel-width Test: Bridge Mode + pytest -m "country_code and Bridge" + +""" + + +import os +import pytest +import allure + +pytestmark = [pytest.mark.country_code, pytest.mark.Bridge, pytest.mark.wpa2, pytest.mark.US] + # pytest.mark.usefixtures("setup_test_run")] + +setup_params_general1 = { + "mode": "BRIDGE", + "ssid_modes": { + "wpa2_personal": [{"ssid_name": "ssid_wpa2_2g", "appliedRadios": ["2G"], "security_key": "something"}, + {"ssid_name": "ssid_wpa2_5g", "appliedRadios": ["5G"], "security_key": "something"} + ]}, + "rf": {"5G": + {'band': '5G', + 'country': 'US', + "channel-mode": "VHT", + 'channel-width': 20, + "channel": 36}, + "2G": + {'band': '2G', + 'country': 'US', + "channel-mode": "VHT", + 'channel-width': 20, + "channel": 1} + }, + "radius": False +} + + +@allure.feature("BRIDGE MODE CLIENT CONNECTIVITY") +@pytest.mark.parametrize( + 'setup_profiles', + [setup_params_general1], + indirect=True, + scope="class" +) +@pytest.mark.usefixtures("setup_profiles") +class TestCountryUS20Mhz2GChannel1(object): + """Country code along with Channel and Channel-width Test Bridge mode + pytest -m "country_code and Bridge" + """ + @allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-2546", name="WIFI-6938") + @pytest.mark.wpa2_personal + # @pytest.mark.US + @pytest.mark.twentyMhz + @pytest.mark.twog + @pytest.mark.channel1 + def test_client_bridge_wpa2_chn1_20Mhz_US_2g(self, lf_test, station_names_twog, get_configuration): + """Country code Bridge Mode + pytest -m "country_code and twentyMhz and wpa2 and twog and channel1" + """ + profile_data = setup_params_general1["ssid_modes"]["wpa2_personal"][0] + ssid = profile_data["ssid_name"] + security_key = profile_data["security_key"] + security = "wpa2" + mode = "BRIDGE" + band = "twog" + vlan = 1 + channel = setup_params_general1['rf']['2G']['channel'] + + result = lf_test.country_code_channel_division(ssid=ssid, security=security, passkey=security_key, mode=mode, + band=band, station_name=station_names_twog, vlan_id=vlan, + channel=channel, country=840) + if result: + assert True + else: + assert False + + +setup_params_general2 = { + "mode": "BRIDGE", + "ssid_modes": { + "wpa2_personal": [{"ssid_name": "ssid_wpa2_2g", "appliedRadios": ["2G"], "security_key": "something"}, + {"ssid_name": "ssid_wpa2_5g", "appliedRadios": ["5G"], "security_key": "something"} + ]}, + "rf": {"5G": + {'band': '5G', + 'country': 'US', + "channel-mode": "VHT", + 'channel-width': 20, + "channel": 36}, + "2G": + {'band': '2G', + 'country': 'US', + 'channel-mode': 'VHT', + 'channel-width': 20, + "channel": 2} + }, + "radius": False +} + + +@allure.feature("BRIDGE MODE CLIENT CONNECTIVITY") +@pytest.mark.parametrize( + 'setup_profiles', + [setup_params_general2], + indirect=True, + scope="class" +) +@pytest.mark.usefixtures("setup_profiles") +class TestCountryUS20Mhz2GChannel2(object): + """Country code along with Channel and Channel-width Test Bridge mode + pytest -m "country_code and Bridge" + """ + @allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-2546", name="WIFI-6938") + @pytest.mark.wpa2_personal + @pytest.mark.twentyMhz + @pytest.mark.twog + @pytest.mark.channel2 + def test_client_bridge_wpa2_chn2_20Mhz_US_2g(self, lf_test, station_names_twog, get_configuration): + """Country code Bridge Mode + pytest -m "country_code and twentyMhz and wpa2 and twog and channel2" + """ + profile_data = setup_params_general2["ssid_modes"]["wpa2_personal"][0] + ssid = profile_data["ssid_name"] + security_key = profile_data["security_key"] + security = "wpa2" + mode = "BRIDGE" + band = "twog" + vlan = 1 + channel = setup_params_general2['rf']['2G']['channel'] + + result = lf_test.country_code_channel_division(ssid=ssid, security=security, passkey=security_key, mode=mode, + band=band, station_name=station_names_twog, vlan_id=vlan, + channel=channel, country=840) + if result: + assert True + else: + assert False + + +setup_params_general3 = { + "mode": "BRIDGE", + "ssid_modes": { + "wpa2_personal": [{"ssid_name": "ssid_wpa2_2g", "appliedRadios": ["2G"], "security_key": "something"}, + {"ssid_name": "ssid_wpa2_5g", "appliedRadios": ["5G"], "security_key": "something"} + ]}, + "rf": {"5G": + {'band': '5G', + 'country': 'US', + "channel-mode": "VHT", + 'channel-width': 20, + "channel": 36}, + "2G": + {'band': '2G', + 'country': 'US', + 'channel-mode': 'VHT', + 'channel-width': 20, + "channel": 3} + }, + "radius": False +} + + +@allure.feature("BRIDGE MODE CLIENT CONNECTIVITY") +@pytest.mark.parametrize( + 'setup_profiles', + [setup_params_general3], + indirect=True, + scope="class" +) +@pytest.mark.usefixtures("setup_profiles") +class TestCountryUS20Mhz2GChannel3(object): + """Country code along with Channel and Channel-width Test Bridge mode + pytest -m "country_code and Bridge" + """ + @allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-2546", name="WIFI-6938") + @pytest.mark.wpa2_personal + @pytest.mark.twentyMhz + @pytest.mark.twog + @pytest.mark.channel3 + def test_client_bridge_wpa2_chn3_20Mhz_US_2g(self, lf_test, station_names_twog, get_configuration): + """Country code Bridge Mode + pytest -m "country_code and twentyMhz and wpa2 and twog and channel3" + """ + profile_data = setup_params_general3["ssid_modes"]["wpa2_personal"][0] + ssid = profile_data["ssid_name"] + security_key = profile_data["security_key"] + security = "wpa2" + mode = "BRIDGE" + band = "twog" + vlan = 1 + channel = setup_params_general3['rf']['2G']['channel'] + + result = lf_test.country_code_channel_division(ssid=ssid, security=security, passkey=security_key, mode=mode, + band=band, station_name=station_names_twog, vlan_id=vlan, + channel=channel, country=840) + if result: + assert True + else: + assert False + + +setup_params_general4 = { + "mode": "BRIDGE", + "ssid_modes": { + "wpa2_personal": [{"ssid_name": "ssid_wpa2_2g", "appliedRadios": ["2G"], "security_key": "something"}, + {"ssid_name": "ssid_wpa2_5g", "appliedRadios": ["5G"], "security_key": "something"} + ]}, + "rf": {"5G": + {'band': '5G', + 'country': 'US', + "channel-mode": "VHT", + 'channel-width': 20, + "channel": 36}, + "2G": + {'band': '2G', + 'country': 'US', + 'channel-mode': 'VHT', + 'channel-width': 20, + "channel": 4} + }, + "radius": False +} + +@allure.feature("BRIDGE MODE CLIENT CONNECTIVITY") +@pytest.mark.parametrize( + 'setup_profiles', + [setup_params_general4], + indirect=True, + scope="class" +) +@pytest.mark.usefixtures("setup_profiles") +class TestCountryUS20Mhz2GChannel4(object): + """Country code along with Channel and Channel-width Test Bridge mode + pytest -m "country_code and Bridge" + """ + @allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-2546", name="WIFI-6938") + @pytest.mark.wpa2_personal + @pytest.mark.twentyMhz + @pytest.mark.twog + @pytest.mark.channel4 + def test_client_bridge_wpa2_chn4_20Mhz_US_2g(self, lf_test, station_names_twog, get_configuration): + """Country code Bridge Mode + pytest -m "country_code and twentyMhz and wpa2 and twog and channel4" + """ + profile_data = setup_params_general4["ssid_modes"]["wpa2_personal"][0] + ssid = profile_data["ssid_name"] + security_key = profile_data["security_key"] + security = "wpa2" + mode = "BRIDGE" + band = "twog" + vlan = 1 + channel = setup_params_general4['rf']['2G']['channel'] + + result = lf_test.country_code_channel_division(ssid=ssid, security=security, passkey=security_key, mode=mode, + band=band, station_name=station_names_twog, vlan_id=vlan, + channel=channel, country=840) + if result: + assert True + else: + assert False + + +setup_params_general5 = { + "mode": "BRIDGE", + "ssid_modes": { + "wpa2_personal": [{"ssid_name": "ssid_wpa2_2g", "appliedRadios": ["2G"], "security_key": "something"}, + {"ssid_name": "ssid_wpa2_5g", "appliedRadios": ["5G"], "security_key": "something"} + ]}, + "rf": {"5G": + {'band': '5G', + 'country': 'US', + "channel-mode": "VHT", + 'channel-width': 20, + "channel": 36}, + "2G": + {'band': '2G', + 'country': 'US', + 'channel-mode': 'VHT', + 'channel-width': 20, + "channel": 5} + }, + "radius": False +} + +@allure.feature("BRIDGE MODE CLIENT CONNECTIVITY") +@pytest.mark.parametrize( + 'setup_profiles', + [setup_params_general5], + indirect=True, + scope="class" +) +@pytest.mark.usefixtures("setup_profiles") +class TestCountryUS20Mhz2GChannel5(object): + """Country code along with Channel and Channel-width Test Bridge mode + pytest -m "country_code and Bridge" + """ + @allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-2546", name="WIFI-6938") + @pytest.mark.wpa2_personal + @pytest.mark.twentyMhz + @pytest.mark.twog + @pytest.mark.channel5 + def test_client_bridge_wpa2_chn5_20Mhz_US_2g(self, lf_test, station_names_twog, get_configuration): + """Country code Bridge Mode + pytest -m "country_code and twentyMhz and wpa2 and twog and channel5" + """ + profile_data = setup_params_general5["ssid_modes"]["wpa2_personal"][0] + ssid = profile_data["ssid_name"] + security_key = profile_data["security_key"] + security = "wpa2" + mode = "BRIDGE" + band = "twog" + vlan = 1 + channel = setup_params_general5['rf']['2G']['channel'] + + result = lf_test.country_code_channel_division(ssid=ssid, security=security, passkey=security_key, mode=mode, + band=band, station_name=station_names_twog, vlan_id=vlan, + channel=channel, country=840) + if result: + assert True + else: + assert False + + +setup_params_general6 = { + "mode": "BRIDGE", + "ssid_modes": { + "wpa2_personal": [{"ssid_name": "ssid_wpa2_2g", "appliedRadios": ["2G"], "security_key": "something"}, + {"ssid_name": "ssid_wpa2_5g", "appliedRadios": ["5G"], "security_key": "something"} + ]}, + "rf": {"5G": + {'band': '5G', + 'country': 'US', + "channel-mode": "VHT", + 'channel-width': 20, + "channel": 36}, + "2G": + {'band': '2G', + 'country': 'US', + 'channel-mode': 'VHT', + 'channel-width': 20, + "channel": 6} + }, + "radius": False +} + +@allure.feature("BRIDGE MODE CLIENT CONNECTIVITY") +@pytest.mark.parametrize( + 'setup_profiles', + [setup_params_general6], + indirect=True, + scope="class" +) +@pytest.mark.usefixtures("setup_profiles") +class TestCountryUS20Mhz2GChannel6(object): + """Country code along with Channel and Channel-width Test Bridge mode + pytest -m "country_code and Bridge" + """ + @allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-2546", name="WIFI-6938") + @pytest.mark.wpa2_personal + @pytest.mark.twentyMhz + @pytest.mark.twog + @pytest.mark.channel6 + def test_client_bridge_wpa2_chn6_20Mhz_US_2g(self, lf_test, station_names_twog, get_configuration): + """Country code Bridge Mode + pytest -m "country_code and twentyMhz and wpa2 and twog and channel6" + """ + profile_data = setup_params_general6["ssid_modes"]["wpa2_personal"][0] + ssid = profile_data["ssid_name"] + security_key = profile_data["security_key"] + security = "wpa2" + mode = "BRIDGE" + band = "twog" + vlan = 1 + channel = setup_params_general6['rf']['2G']['channel'] + + result = lf_test.country_code_channel_division(ssid=ssid, security=security, passkey=security_key, mode=mode, + band=band, station_name=station_names_twog, vlan_id=vlan, + channel=channel, country=840) + if result: + assert True + else: + assert False + + +setup_params_general7 = { + "mode": "BRIDGE", + "ssid_modes": { + "wpa2_personal": [{"ssid_name": "ssid_wpa2_2g", "appliedRadios": ["2G"], "security_key": "something"}, + {"ssid_name": "ssid_wpa2_5g", "appliedRadios": ["5G"], "security_key": "something"} + ]}, + "rf": {"5G": + {'band': '5G', + 'country': 'US', + "channel-mode": "VHT", + 'channel-width': 20, + "channel": 36}, + "2G": + {'band': '2G', + 'country': 'US', + 'channel-mode': 'VHT', + 'channel-width': 20, + "channel": 7} + }, + "radius": False +} + +@allure.feature("BRIDGE MODE CLIENT CONNECTIVITY") +@pytest.mark.parametrize( + 'setup_profiles', + [setup_params_general7], + indirect=True, + scope="class" +) +@pytest.mark.usefixtures("setup_profiles") +class TestCountryUS20Mhz2GChannel7(object): + """Country code along with Channel and Channel-width Test Bridge mode + pytest -m "country_code and Bridge" + """ + @allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-2546", name="WIFI-6938") + @pytest.mark.wpa2_personal + @pytest.mark.twentyMhz + @pytest.mark.twog + @pytest.mark.channel7 + def test_client_bridge_wpa2_chn7_20Mhz_US_2g(self, lf_test, station_names_twog, get_configuration): + """Country code Bridge Mode + pytest -m "country_code and twentyMhz and wpa2 and twog and channel7" + """ + profile_data = setup_params_general7["ssid_modes"]["wpa2_personal"][0] + ssid = profile_data["ssid_name"] + security_key = profile_data["security_key"] + security = "wpa2" + mode = "BRIDGE" + band = "twog" + vlan = 1 + channel = setup_params_general7['rf']['2G']['channel'] + + result = lf_test.country_code_channel_division(ssid=ssid, security=security, passkey=security_key, mode=mode, + band=band, station_name=station_names_twog, vlan_id=vlan, + channel=channel, country=840) + if result: + assert True + else: + assert False + + +setup_params_general8 = { + "mode": "BRIDGE", + "ssid_modes": { + "wpa2_personal": [{"ssid_name": "ssid_wpa2_2g", "appliedRadios": ["2G"], "security_key": "something"}, + {"ssid_name": "ssid_wpa2_5g", "appliedRadios": ["5G"], "security_key": "something"} + ]}, + "rf": {"5G": + {'band': '5G', + 'country': 'US', + "channel-mode": "VHT", + 'channel-width': 20, + "channel": 36}, + "2G": + {'band': '2G', + 'country': 'US', + 'channel-mode': 'VHT', + 'channel-width': 20, + "channel": 8} + }, + "radius": False +} + +@allure.feature("BRIDGE MODE CLIENT CONNECTIVITY") +@pytest.mark.parametrize( + 'setup_profiles', + [setup_params_general8], + indirect=True, + scope="class" +) +@pytest.mark.usefixtures("setup_profiles") +class TestCountryUS20Mhz2GChannel8(object): + """Country code along with Channel and Channel-width Test Bridge mode + pytest -m "country_code and Bridge" + """ + @allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-2546", name="WIFI-6938") + @pytest.mark.wpa2_personal + @pytest.mark.twentyMhz + @pytest.mark.twog + @pytest.mark.channel8 + def test_client_bridge_wpa2_chn8_20Mhz_US_2g(self, lf_test, station_names_twog, get_configuration): + """Country code Bridge Mode + pytest -m "country_code and twentyMhz and wpa2 and twog and channel8" + """ + profile_data = setup_params_general8["ssid_modes"]["wpa2_personal"][0] + ssid = profile_data["ssid_name"] + security_key = profile_data["security_key"] + security = "wpa2" + mode = "BRIDGE" + band = "twog" + vlan = 1 + channel = setup_params_general8['rf']['2G']['channel'] + + result = lf_test.country_code_channel_division(ssid=ssid, security=security, passkey=security_key, mode=mode, + band=band, station_name=station_names_twog, vlan_id=vlan, + channel=channel, country=840) + if result: + assert True + else: + assert False + + +setup_params_general9 = { + "mode": "BRIDGE", + "ssid_modes": { + "wpa2_personal": [{"ssid_name": "ssid_wpa2_2g", "appliedRadios": ["2G"], "security_key": "something"}, + {"ssid_name": "ssid_wpa2_5g", "appliedRadios": ["5G"], "security_key": "something"} + ]}, + "rf": {"5G": + {'band': '5G', + 'country': 'US', + "channel-mode": "VHT", + 'channel-width': 20, + "channel": 36}, + "2G": + {'band': '2G', + 'country': 'US', + 'channel-mode': 'VHT', + 'channel-width': 20, + "channel": 9} + }, + "radius": False +} + +@allure.feature("BRIDGE MODE CLIENT CONNECTIVITY") +@pytest.mark.parametrize( + 'setup_profiles', + [setup_params_general9], + indirect=True, + scope="class" +) +@pytest.mark.usefixtures("setup_profiles") +class TestCountryUS20Mhz2GChannel9(object): + """Country code along with Channel and Channel-width Test Bridge mode + pytest -m "country_code and Bridge" + """ + @allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-2546", name="WIFI-6938") + @pytest.mark.wpa2_personal + @pytest.mark.twentyMhz + @pytest.mark.twog + @pytest.mark.channel9 + def test_client_bridge_wpa2_chn9_20Mhz_US_2g(self, lf_test, station_names_twog, get_configuration): + """Country code Bridge Mode + pytest -m "country_code and twentyMhz and wpa2 and twog and channel9" + """ + profile_data = setup_params_general9["ssid_modes"]["wpa2_personal"][0] + ssid = profile_data["ssid_name"] + security_key = profile_data["security_key"] + security = "wpa2" + mode = "BRIDGE" + band = "twog" + vlan = 1 + channel = setup_params_general9['rf']['2G']['channel'] + + result = lf_test.country_code_channel_division(ssid=ssid, security=security, passkey=security_key, mode=mode, + band=band, station_name=station_names_twog, vlan_id=vlan, + channel=channel, country=840) + if result: + assert True + else: + assert False + + +setup_params_general10 = { + "mode": "BRIDGE", + "ssid_modes": { + "wpa2_personal": [{"ssid_name": "ssid_wpa2_2g", "appliedRadios": ["2G"], "security_key": "something"}, + {"ssid_name": "ssid_wpa2_5g", "appliedRadios": ["5G"], "security_key": "something"} + ]}, + "rf": {"5G": + {'band': '5G', + 'country': 'US', + "channel-mode": "VHT", + 'channel-width': 20, + "channel": 36}, + "2G": + {'band': '2G', + 'country': 'US', + 'channel-mode': 'VHT', + 'channel-width': 20, + "channel": 10} + }, + "radius": False +} + +@allure.feature("BRIDGE MODE CLIENT CONNECTIVITY") +@pytest.mark.parametrize( + 'setup_profiles', + [setup_params_general10], + indirect=True, + scope="class" +) +@pytest.mark.usefixtures("setup_profiles") +class TestCountryUS20Mhz2GChannel10(object): + """Country code along with Channel and Channel-width Test Bridge mode + pytest -m "country_code and Bridge" + """ + @allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-2546", name="WIFI-6938") + @pytest.mark.wpa2_personal + @pytest.mark.twentyMhz + @pytest.mark.twog + @pytest.mark.channel10 + def test_client_bridge_wpa2_chn10_20Mhz_US_2g(self, lf_test, station_names_twog, get_configuration): + """Country code Bridge Mode + pytest -m "country_code and twentyMhz and wpa2 and twog and channel10" + """ + profile_data = setup_params_general10["ssid_modes"]["wpa2_personal"][0] + ssid = profile_data["ssid_name"] + security_key = profile_data["security_key"] + security = "wpa2" + mode = "BRIDGE" + band = "twog" + vlan = 1 + channel = setup_params_general10['rf']['2G']['channel'] + + result = lf_test.country_code_channel_division(ssid=ssid, security=security, passkey=security_key, mode=mode, + band=band, station_name=station_names_twog, vlan_id=vlan, + channel=channel, country=840) + if result: + assert True + else: + assert False + + +setup_params_general11 = { + "mode": "BRIDGE", + "ssid_modes": { + "wpa2_personal": [{"ssid_name": "ssid_wpa2_2g", "appliedRadios": ["2G"], "security_key": "something"}, + {"ssid_name": "ssid_wpa2_5g", "appliedRadios": ["5G"], "security_key": "something"} + ]}, + "rf": {"5G": + {'band': '5G', + 'country': 'US', + "channel-mode": "VHT", + 'channel-width': 20, + "channel": 36}, + "2G": + {'band': '2G', + 'country': 'US', + 'channel-mode': 'VHT', + 'channel-width': 20, + "channel": 11} + }, + "radius": False +} + +@allure.feature("BRIDGE MODE CLIENT CONNECTIVITY") +@pytest.mark.parametrize( + 'setup_profiles', + [setup_params_general11], + indirect=True, + scope="class" +) +@pytest.mark.usefixtures("setup_profiles") +class TestCountryUS20Mhz2GChannel11(object): + """Country code along with Channel and Channel-width Test Bridge mode + pytest -m "country_code and Bridge" + """ + @allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-2546", name="WIFI-6938") + @pytest.mark.wpa2_personal + @pytest.mark.twentyMhz + @pytest.mark.twog + @pytest.mark.channel11 + def test_client_bridge_wpa2_chn11_20Mhz_US_2g(self, lf_test, station_names_twog, get_configuration): + """Country code Bridge Mode + pytest -m "country_code and twentyMhz and wpa2 and twog and channel11" + """ + profile_data = setup_params_general11["ssid_modes"]["wpa2_personal"][0] + ssid = profile_data["ssid_name"] + security_key = profile_data["security_key"] + security = "wpa2" + mode = "BRIDGE" + band = "twog" + vlan = 1 + channel = setup_params_general11['rf']['2G']['channel'] + + result = lf_test.country_code_channel_division(ssid=ssid, security=security, passkey=security_key, mode=mode, + band=band, station_name=station_names_twog, vlan_id=vlan, + channel=channel, country=840) + if result: + assert True + else: + assert False + + +# setup_params_general12 = { +# "mode": "BRIDGE", +# "ssid_modes": { +# "wpa2_personal": [{"ssid_name": "ssid_wpa2_2g", "appliedRadios": ["2G"], "security_key": "something"}, +# ]}, +# "rf": {"2G": +# {'band': '2G', +# 'country': 'US', +# 'channel-mode': 'VHT', +# 'channel-width': 20, +# "channel": 12} +# }, +# "radius": False +# } +# +# @allure.feature("BRIDGE MODE CLIENT CONNECTIVITY") +# @pytest.mark.parametrize( +# 'setup_profiles', +# [setup_params_general12], +# indirect=True, +# scope="class" +# ) +# @pytest.mark.usefixtures("setup_profiles") +# class TestCountryUS20Mhz2GChannel12(object): +# """Country code along with Channel and Channel-width Test Bridge mode +# pytest -m "country_code and Bridge" +# """ +# @allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-2546", name="WIFI-6938") +# @pytest.mark.wpa2_personal +# @pytest.mark.twentyMhz +# @pytest.mark.twog +# @pytest.mark.channel12 +# def test_client_bridge_wpa2_chn12_20Mhz_US_2g(self, lf_test, station_names_twog, get_configuration): +# """Country code Bridge Mode +# pytest -m "country_code and twentyMhz and wpa2 and twog and channel12" +# """ +# profile_data = setup_params_general12["ssid_modes"]["wpa2_personal"][0] +# ssid = profile_data["ssid_name"] +# security_key = profile_data["security_key"] +# security = "wpa2" +# mode = "BRIDGE" +# band = "twog" +# vlan = 1 +# channel = setup_params_general12['rf']['2G']['channel'] +# +# result = lf_test.country_code_channel_division(ssid=ssid, security=security, passkey=security_key, mode=mode, +# band=band, station_name=station_names_twog, vlan_id=vlan, +# channel=channel) +# if result: +# assert True +# else: +# assert False +# +# +# setup_params_general13 = { +# "mode": "BRIDGE", +# "ssid_modes": { +# "wpa2_personal": [{"ssid_name": "ssid_wpa2_2g", "appliedRadios": ["2G"], "security_key": "something"}, +# ]}, +# "rf": {"2G": +# {'band': '2G', +# 'country': 'US', +# 'channel-mode': 'VHT', +# 'channel-width': 20, +# "channel": 13} +# }, +# "radius": False +# } +# +# @allure.feature("BRIDGE MODE CLIENT CONNECTIVITY") +# @pytest.mark.parametrize( +# 'setup_profiles', +# [setup_params_general13], +# indirect=True, +# scope="class" +# ) +# @pytest.mark.usefixtures("setup_profiles") +# class TestCountryUS20Mhz2GChannel13(object): +# """Country code along with Channel and Channel-width Test Bridge mode +# pytest -m "country_code and Bridge" +# """ +# @allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-2546", name="WIFI-6938") +# @pytest.mark.wpa2_personal +# @pytest.mark.twentyMhz +# @pytest.mark.twog +# @pytest.mark.channel13 +# def test_client_bridge_wpa2_chn13_20Mhz_US_2g(self, lf_test, station_names_twog, get_configuration): +# """Country code Bridge Mode +# pytest -m "country_code and twentyMhz and wpa2 and twog and channel13" +# """ +# profile_data = setup_params_general13["ssid_modes"]["wpa2_personal"][0] +# ssid = profile_data["ssid_name"] +# security_key = profile_data["security_key"] +# security = "wpa2" +# mode = "BRIDGE" +# band = "twog" +# vlan = 1 +# channel = setup_params_general13['rf']['2G']['channel'] +# +# result = lf_test.country_code_channel_division(ssid=ssid, security=security, passkey=security_key, mode=mode, +# band=band, station_name=station_names_twog, vlan_id=vlan, +# channel=channel) +# if result: +# assert True +# else: +# assert False \ No newline at end of file diff --git a/tests/e2e/basic/validation_of_operating_modes/country_code_channel_division/country_code_US/channel_width_40Mhz/fiveg_band/test_US_40Mhz_5g.py b/tests/e2e/basic/validation_of_operating_modes/country_code_channel_division/country_code_US/channel_width_40Mhz/fiveg_band/test_US_40Mhz_5g.py new file mode 100644 index 000000000..9fc82be6d --- /dev/null +++ b/tests/e2e/basic/validation_of_operating_modes/country_code_channel_division/country_code_US/channel_width_40Mhz/fiveg_band/test_US_40Mhz_5g.py @@ -0,0 +1,504 @@ +""" + + Performance Test: Country code along with Channel and Channel-width Test: Bridge Mode + pytest -m "country_code and Bridge" + +""" + + +import os +import pytest +import allure + +pytestmark = [pytest.mark.country_code, pytest.mark.Bridge, pytest.mark.wpa2, pytest.mark.US] + +setup_params_general1 = { + "mode": "BRIDGE", + "ssid_modes": { + "wpa2_personal": [{"ssid_name": "ssid_wpa2_2g", "appliedRadios": ["2G"], "security_key": "something"}, + {"ssid_name": "ssid_wpa2_5g", "appliedRadios": ["5G"], "security_key": "something"} + ]}, + "rf": {"5G": + {'band': '5G', + 'country': 'US', + "channel-mode": "VHT", + 'channel-width': 40, + "channel": 36}, + "2G": + {'band': '2G', + 'country': 'US', + "channel-mode": "VHT", + 'channel-width': 40, + "channel": 1} + }, + "radius": False +} + + +@allure.feature("BRIDGE MODE CLIENT CONNECTIVITY") +@pytest.mark.parametrize( + 'setup_profiles', + [setup_params_general1], + indirect=True, + scope="class" +) +@pytest.mark.usefixtures("setup_profiles") +class TestCountryUS40Mhz5GChannel36(object): + """Country code along with Channel and Channel-width Test Bridge mode + pytest -m "country_code and Bridge" + """ + @allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-2546", name="WIFI-6938") + @pytest.mark.wpa2_personal + @pytest.mark.fourtyMhz + @pytest.mark.fiveg + @pytest.mark.channel36 + def test_client_bridge_wpa2_chn36_40Mhz_US_5g(self, lf_test, station_names_fiveg, get_configuration): + """Country code Bridge Mode + pytest -m "country_code and fourtyMhz and wpa2 and fiveg and channel36" + """ + profile_data = setup_params_general1["ssid_modes"]["wpa2_personal"][1] + ssid = profile_data["ssid_name"] + security_key = profile_data["security_key"] + security = "wpa2" + mode = "BRIDGE" + band = "fiveg" + vlan = 1 + channel = setup_params_general1['rf']['5G']['channel'] + + result = lf_test.country_code_channel_division(ssid=ssid, security=security, passkey=security_key, mode=mode, + band=band, station_name=station_names_fiveg, vlan_id=vlan, + channel=channel, country=840) + if result: + assert True + else: + assert False + + +setup_params_general2 = { + "mode": "BRIDGE", + "ssid_modes": { + "wpa2_personal": [{"ssid_name": "ssid_wpa2_2g", "appliedRadios": ["2G"], "security_key": "something"}, + {"ssid_name": "ssid_wpa2_5g", "appliedRadios": ["5G"], "security_key": "something"} + ]}, + "rf": {"5G": + {'band': '5G', + 'country': 'US', + 'channel-mode': 'VHT', + 'channel-width': 40, + "channel": 44}, + "2G": + {'band': '2G', + 'country': 'US', + "channel-mode": "VHT", + 'channel-width': 40, + "channel": 1} + }, + "radius": False +} + + +@allure.feature("BRIDGE MODE CLIENT CONNECTIVITY") +@pytest.mark.parametrize( + 'setup_profiles', + [setup_params_general2], + indirect=True, + scope="class" +) +@pytest.mark.usefixtures("setup_profiles") +class TestCountryUS40Mhz5GChannel44(object): + """Country code along with Channel and Channel-width Test Bridge mode + pytest -m "country_code and Bridge" + """ + @allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-2546", name="WIFI-6938") + @pytest.mark.wpa2_personal + @pytest.mark.fourtyMhz + @pytest.mark.fiveg + @pytest.mark.channel44 + def test_client_bridge_wpa2_chn44_40Mhz_US_5g(self, lf_test, station_names_fiveg, get_configuration): + """Country code Bridge Mode + pytest -m "country_code and fourtyMhz and wpa2 and fiveg and channel44" + """ + profile_data = setup_params_general2["ssid_modes"]["wpa2_personal"][1] + ssid = profile_data["ssid_name"] + security_key = profile_data["security_key"] + security = "wpa2" + mode = "BRIDGE" + band = "fiveg" + vlan = 1 + channel = setup_params_general2['rf']['5G']['channel'] + + result = lf_test.country_code_channel_division(ssid=ssid, security=security, passkey=security_key, mode=mode, + band=band, station_name=station_names_fiveg, vlan_id=vlan, + channel=channel, country=840) + if result: + assert True + else: + assert False + + +setup_params_general3 = { + "mode": "BRIDGE", + "ssid_modes": { + "wpa2_personal": [{"ssid_name": "ssid_wpa2_2g", "appliedRadios": ["2G"], "security_key": "something"}, + {"ssid_name": "ssid_wpa2_5g", "appliedRadios": ["5G"], "security_key": "something"} + ]}, + "rf": {"5G": + {'band': '5G', + 'country': 'US', + 'channel-mode': 'VHT', + 'channel-width': 40, + "channel": 52}, + "2G": + {'band': '2G', + 'country': 'US', + "channel-mode": "VHT", + 'channel-width': 40, + "channel": 1} + }, + "radius": False +} + + +@allure.feature("BRIDGE MODE CLIENT CONNECTIVITY") +@pytest.mark.parametrize( + 'setup_profiles', + [setup_params_general3], + indirect=True, + scope="class" +) +@pytest.mark.usefixtures("setup_profiles") +class TestCountryUS40Mhz5GChannel52(object): + """Country code along with Channel and Channel-width Test Bridge mode + pytest -m "country_code and Bridge" + """ + @allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-2546", name="WIFI-6938") + @pytest.mark.wpa2_personal + @pytest.mark.fourtyMhz + @pytest.mark.fiveg + @pytest.mark.channel52 + def test_client_bridge_wpa2_chn52_40Mhz_US_5g(self, lf_test, station_names_fiveg, get_configuration): + """Country code Bridge Mode + pytest -m "country_code and fourtyMhz and wpa2 and fiveg and channel52" + """ + profile_data = setup_params_general3["ssid_modes"]["wpa2_personal"][1] + ssid = profile_data["ssid_name"] + security_key = profile_data["security_key"] + security = "wpa2" + mode = "BRIDGE" + band = "fiveg" + vlan = 1 + channel = setup_params_general3['rf']['5G']['channel'] + + result = lf_test.country_code_channel_division(ssid=ssid, security=security, passkey=security_key, mode=mode, + band=band, station_name=station_names_fiveg, vlan_id=vlan, + channel=channel, country=840) + if result: + assert True + else: + assert False + + +setup_params_general4 = { + "mode": "BRIDGE", + "ssid_modes": { + "wpa2_personal": [{"ssid_name": "ssid_wpa2_2g", "appliedRadios": ["2G"], "security_key": "something"}, + {"ssid_name": "ssid_wpa2_5g", "appliedRadios": ["5G"], "security_key": "something"} + ]}, + "rf": {"5G": + {'band': '5G', + 'country': 'US', + 'channel-mode': 'VHT', + 'channel-width': 40, + "channel": 60}, + "2G": + {'band': '2G', + 'country': 'US', + "channel-mode": "VHT", + 'channel-width': 40, + "channel": 1} + }, + "radius": False +} + +@allure.feature("BRIDGE MODE CLIENT CONNECTIVITY") +@pytest.mark.parametrize( + 'setup_profiles', + [setup_params_general4], + indirect=True, + scope="class" +) +@pytest.mark.usefixtures("setup_profiles") +class TestCountryUS40Mhz5GChannel60(object): + """Country code along with Channel and Channel-width Test Bridge mode + pytest -m "country_code and Bridge" + """ + @allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-2546", name="WIFI-6938") + @pytest.mark.wpa2_personal + @pytest.mark.fourtyMhz + @pytest.mark.fiveg + @pytest.mark.channel60 + def test_client_bridge_wpa2_chn60_40Mhz_US_5g(self, lf_test, station_names_fiveg, get_configuration): + """Country code Bridge Mode + pytest -m "country_code and fourtyMhz and wpa2 and fiveg and channel60" + """ + profile_data = setup_params_general4["ssid_modes"]["wpa2_personal"][1] + ssid = profile_data["ssid_name"] + security_key = profile_data["security_key"] + security = "wpa2" + mode = "BRIDGE" + band = "fiveg" + vlan = 1 + channel = setup_params_general4['rf']['5G']['channel'] + + result = lf_test.country_code_channel_division(ssid=ssid, security=security, passkey=security_key, mode=mode, + band=band, station_name=station_names_fiveg, vlan_id=vlan, + channel=channel, country=840) + if result: + assert True + else: + assert False + + +setup_params_general5 = { + "mode": "BRIDGE", + "ssid_modes": { + "wpa2_personal": [{"ssid_name": "ssid_wpa2_2g", "appliedRadios": ["2G"], "security_key": "something"}, + {"ssid_name": "ssid_wpa2_5g", "appliedRadios": ["5G"], "security_key": "something"} + ]}, + "rf": {"5G": + {'band': '5G', + 'country': 'US', + 'channel-mode': 'VHT', + 'channel-width': 40, + "channel": 100}, + "2G": + {'band': '2G', + 'country': 'US', + "channel-mode": "VHT", + 'channel-width': 40, + "channel": 1} + }, + "radius": False +} + +@allure.feature("BRIDGE MODE CLIENT CONNECTIVITY") +@pytest.mark.parametrize( + 'setup_profiles', + [setup_params_general5], + indirect=True, + scope="class" +) +@pytest.mark.usefixtures("setup_profiles") +class TestCountryUS40Mhz5GChannel100(object): + """Country code along with Channel and Channel-width Test Bridge mode + pytest -m "country_code and Bridge" + """ + @allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-2546", name="WIFI-6938") + @pytest.mark.wpa2_personal + @pytest.mark.fourtyMhz + @pytest.mark.fiveg + @pytest.mark.channel100 + def test_client_bridge_wpa2_chn100_40Mhz_US_5g(self, lf_test, station_names_fiveg, get_configuration): + """Country code Bridge Mode + pytest -m "country_code and fourtyMhz and wpa2 and fiveg and channel100" + """ + profile_data = setup_params_general5["ssid_modes"]["wpa2_personal"][1] + ssid = profile_data["ssid_name"] + security_key = profile_data["security_key"] + security = "wpa2" + mode = "BRIDGE" + band = "fiveg" + vlan = 1 + channel = setup_params_general5['rf']['5G']['channel'] + + result = lf_test.country_code_channel_division(ssid=ssid, security=security, passkey=security_key, mode=mode, + band=band, station_name=station_names_fiveg, vlan_id=vlan, + channel=channel, country=840) + if result: + assert True + else: + assert False + + +setup_params_general6 = { + "mode": "BRIDGE", + "ssid_modes": { + "wpa2_personal": [{"ssid_name": "ssid_wpa2_2g", "appliedRadios": ["2G"], "security_key": "something"}, + {"ssid_name": "ssid_wpa2_5g", "appliedRadios": ["5G"], "security_key": "something"} + ]}, + "rf": {"5G": + {'band': '5G', + 'country': 'US', + 'channel-mode': 'VHT', + 'channel-width': 40, + "channel": 108}, + "2G": + {'band': '2G', + 'country': 'US', + "channel-mode": "VHT", + 'channel-width': 40, + "channel": 1} + }, + "radius": False +} + +@allure.feature("BRIDGE MODE CLIENT CONNECTIVITY") +@pytest.mark.parametrize( + 'setup_profiles', + [setup_params_general6], + indirect=True, + scope="class" +) +@pytest.mark.usefixtures("setup_profiles") +class TestCountryUS40Mhz5GChannel108(object): + """Country code along with Channel and Channel-width Test Bridge mode + pytest -m "country_code and Bridge" + """ + @allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-2546", name="WIFI-6938") + @pytest.mark.wpa2_personal + @pytest.mark.fourtyMhz + @pytest.mark.fiveg + @pytest.mark.channel108 + def test_client_bridge_wpa2_chn108_40Mhz_US_5g(self, lf_test, station_names_fiveg, get_configuration): + """Country code Bridge Mode + pytest -m "country_code and fourtyMhz and wpa2 and fiveg and channel108" + """ + profile_data = setup_params_general6["ssid_modes"]["wpa2_personal"][1] + ssid = profile_data["ssid_name"] + security_key = profile_data["security_key"] + security = "wpa2" + mode = "BRIDGE" + band = "fiveg" + vlan = 1 + channel = setup_params_general6['rf']['5G']['channel'] + + result = lf_test.country_code_channel_division(ssid=ssid, security=security, passkey=security_key, mode=mode, + band=band, station_name=station_names_fiveg, vlan_id=vlan, + channel=channel, country=840) + if result: + assert True + else: + assert False + + +setup_params_general7 = { + "mode": "BRIDGE", + "ssid_modes": { + "wpa2_personal": [{"ssid_name": "ssid_wpa2_2g", "appliedRadios": ["2G"], "security_key": "something"}, + {"ssid_name": "ssid_wpa2_5g", "appliedRadios": ["5G"], "security_key": "something"} + ]}, + "rf": {"5G": + {'band': '5G', + 'country': 'US', + 'channel-mode': 'VHT', + 'channel-width': 40, + "channel": 132}, + "2G": + {'band': '2G', + 'country': 'US', + "channel-mode": "VHT", + 'channel-width': 40, + "channel": 1} + }, + "radius": False +} + +@allure.feature("BRIDGE MODE CLIENT CONNECTIVITY") +@pytest.mark.parametrize( + 'setup_profiles', + [setup_params_general7], + indirect=True, + scope="class" +) +@pytest.mark.usefixtures("setup_profiles") +class TestCountryUS40Mhz5GChannel132(object): + """Country code along with Channel and Channel-width Test Bridge mode + pytest -m "country_code and Bridge" + """ + @allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-2546", name="WIFI-6938") + @pytest.mark.wpa2_personal + @pytest.mark.fourtyMhz + @pytest.mark.fiveg + @pytest.mark.channel132 + def test_client_bridge_wpa2_chn132_40Mhz_US_5g(self, lf_test, station_names_fiveg, get_configuration): + """Country code Bridge Mode + pytest -m "country_code and fourtyMhz and wpa2 and fiveg and channel132" + """ + profile_data = setup_params_general7["ssid_modes"]["wpa2_personal"][1] + ssid = profile_data["ssid_name"] + security_key = profile_data["security_key"] + security = "wpa2" + mode = "BRIDGE" + band = "fiveg" + vlan = 1 + channel = setup_params_general7['rf']['5G']['channel'] + + result = lf_test.country_code_channel_division(ssid=ssid, security=security, passkey=security_key, mode=mode, + band=band, station_name=station_names_fiveg, vlan_id=vlan, + channel=channel, country=840) + if result: + assert True + else: + assert False + + +setup_params_general8 = { + "mode": "BRIDGE", + "ssid_modes": { + "wpa2_personal": [{"ssid_name": "ssid_wpa2_2g", "appliedRadios": ["2G"], "security_key": "something"}, + {"ssid_name": "ssid_wpa2_5g", "appliedRadios": ["5G"], "security_key": "something"} + ]}, + "rf": {"5G": + {'band': '5G', + 'country': 'US', + 'channel-mode': 'VHT', + 'channel-width': 40, + "channel": 140}, + "2G": + {'band': '2G', + 'country': 'US', + "channel-mode": "VHT", + 'channel-width': 40, + "channel": 1} + }, + "radius": False +} + +@allure.feature("BRIDGE MODE CLIENT CONNECTIVITY") +@pytest.mark.parametrize( + 'setup_profiles', + [setup_params_general8], + indirect=True, + scope="class" +) +@pytest.mark.usefixtures("setup_profiles") +class TestCountryUS40Mhz5GChannel140(object): + """Country code along with Channel and Channel-width Test Bridge mode + pytest -m "country_code and Bridge" + """ + @allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-2546", name="WIFI-6938") + @pytest.mark.wpa2_personal + @pytest.mark.fourtyMhz + @pytest.mark.fiveg + @pytest.mark.channel140 + def test_client_bridge_wpa2_chn140_40Mhz_US_5g(self, lf_test, station_names_fiveg, get_configuration): + """Country code Bridge Mode + pytest -m "country_code and fourtyMhz and wpa2 and fiveg and channel140" + """ + profile_data = setup_params_general8["ssid_modes"]["wpa2_personal"][1] + ssid = profile_data["ssid_name"] + security_key = profile_data["security_key"] + security = "wpa2" + mode = "BRIDGE" + band = "fiveg" + vlan = 1 + channel = setup_params_general8['rf']['5G']['channel'] + + result = lf_test.country_code_channel_division(ssid=ssid, security=security, passkey=security_key, mode=mode, + band=band, station_name=station_names_fiveg, vlan_id=vlan, + channel=channel, country=840) + if result: + assert True + else: + assert False + diff --git a/tests/e2e/basic/validation_of_operating_modes/country_code_channel_division/country_code_US/channel_width_40Mhz/twog_band/test_US_40Mhz_2g.py b/tests/e2e/basic/validation_of_operating_modes/country_code_channel_division/country_code_US/channel_width_40Mhz/twog_band/test_US_40Mhz_2g.py new file mode 100644 index 000000000..321912c9e --- /dev/null +++ b/tests/e2e/basic/validation_of_operating_modes/country_code_channel_division/country_code_US/channel_width_40Mhz/twog_band/test_US_40Mhz_2g.py @@ -0,0 +1,794 @@ +""" + + Performance Test: Country code along with Channel and Channel-width Test: Bridge Mode + pytest -m "country_code and Bridge" + +""" + + +import os +import pytest +import allure + +pytestmark = [pytest.mark.country_code, pytest.mark.Bridge, pytest.mark.wpa2, pytest.mark.US] + +setup_params_general1 = { + "mode": "BRIDGE", + "ssid_modes": { + "wpa2_personal": [{"ssid_name": "ssid_wpa2_2g", "appliedRadios": ["2G"], "security_key": "something"}, + {"ssid_name": "ssid_wpa2_5g", "appliedRadios": ["5G"], "security_key": "something"} + ]}, + "rf": {"5G": + {'band': '5G', + 'country': 'US', + "channel-mode": "VHT", + 'channel-width': 40, + "channel": 36}, + "2G": + {'band': '2G', + 'country': 'US', + "channel-mode": "VHT", + 'channel-width': 40, + "channel": 1} + }, + "radius": False +} + + +@allure.feature("BRIDGE MODE CLIENT CONNECTIVITY") +@pytest.mark.parametrize( + 'setup_profiles', + [setup_params_general1], + indirect=True, + scope="class" +) +@pytest.mark.usefixtures("setup_profiles") +class TestCountryUS40Mhz2GChannel1(object): + """Country code along with Channel and Channel-width Test Bridge mode + pytest -m "country_code and Bridge" + """ + @allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-2546", name="WIFI-6938") + @pytest.mark.wpa2_personal + @pytest.mark.fourtyMhz + @pytest.mark.twog + @pytest.mark.channel1 + def test_client_bridge_wpa2_chn1_40Mhz_US_2g(self, lf_test, station_names_twog, get_configuration): + """Country code Bridge Mode + pytest -m "country_code and fourtyMhz and wpa2 and twog and channel1" + """ + profile_data = setup_params_general1["ssid_modes"]["wpa2_personal"][0] + ssid = profile_data["ssid_name"] + security_key = profile_data["security_key"] + security = "wpa2" + mode = "BRIDGE" + band = "twog" + vlan = 1 + channel = setup_params_general1['rf']['2G']['channel'] + + result = lf_test.country_code_channel_division(ssid=ssid, security=security, passkey=security_key, mode=mode, + band=band, station_name=station_names_twog, vlan_id=vlan, + channel=channel, country=840) + if result: + assert True + else: + assert False + + +setup_params_general2 = { + "mode": "BRIDGE", + "ssid_modes": { + "wpa2_personal": [{"ssid_name": "ssid_wpa2_2g", "appliedRadios": ["2G"], "security_key": "something"}, + {"ssid_name": "ssid_wpa2_5g", "appliedRadios": ["5G"], "security_key": "something"} + ]}, + "rf": {"5G": + {'band': '5G', + 'country': 'US', + "channel-mode": "VHT", + 'channel-width': 40, + "channel": 36}, + "2G": + {'band': '2G', + 'country': 'US', + 'channel-mode': 'VHT', + 'channel-width': 40, + "channel": 2} + }, + "radius": False +} + + +@allure.feature("BRIDGE MODE CLIENT CONNECTIVITY") +@pytest.mark.parametrize( + 'setup_profiles', + [setup_params_general2], + indirect=True, + scope="class" +) +@pytest.mark.usefixtures("setup_profiles") +class TestCountryUS40Mhz2GChannel2(object): + """Country code along with Channel and Channel-width Test Bridge mode + pytest -m "country_code and Bridge" + """ + @allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-2546", name="WIFI-6938") + @pytest.mark.wpa2_personal + @pytest.mark.fourtyMhz + @pytest.mark.twog + @pytest.mark.channel2 + def test_client_bridge_wpa2_chn2_40Mhz_US_2g(self, lf_test, station_names_twog, get_configuration): + """Country code Bridge Mode + pytest -m "country_code and fourtyMhz and wpa2 and twog and channel2" + """ + profile_data = setup_params_general2["ssid_modes"]["wpa2_personal"][0] + ssid = profile_data["ssid_name"] + security_key = profile_data["security_key"] + security = "wpa2" + mode = "BRIDGE" + band = "twog" + vlan = 1 + channel = setup_params_general2['rf']['2G']['channel'] + + result = lf_test.country_code_channel_division(ssid=ssid, security=security, passkey=security_key, mode=mode, + band=band, station_name=station_names_twog, vlan_id=vlan, + channel=channel, country=840) + if result: + assert True + else: + assert False + + +setup_params_general3 = { + "mode": "BRIDGE", + "ssid_modes": { + "wpa2_personal": [{"ssid_name": "ssid_wpa2_2g", "appliedRadios": ["2G"], "security_key": "something"}, + {"ssid_name": "ssid_wpa2_5g", "appliedRadios": ["5G"], "security_key": "something"} + ]}, + "rf": {"5G": + {'band': '5G', + 'country': 'US', + "channel-mode": "VHT", + 'channel-width': 40, + "channel": 36}, + "2G": + {'band': '2G', + 'country': 'US', + 'channel-mode': 'VHT', + 'channel-width': 40, + "channel": 3} + }, + "radius": False +} + + +@allure.feature("BRIDGE MODE CLIENT CONNECTIVITY") +@pytest.mark.parametrize( + 'setup_profiles', + [setup_params_general3], + indirect=True, + scope="class" +) +@pytest.mark.usefixtures("setup_profiles") +class TestCountryUS40Mhz2GChannel3(object): + """Country code along with Channel and Channel-width Test Bridge mode + pytest -m "country_code and Bridge" + """ + @allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-2546", name="WIFI-6938") + @pytest.mark.wpa2_personal + @pytest.mark.fourtyMhz + @pytest.mark.twog + @pytest.mark.channel3 + def test_client_bridge_wpa2_chn3_40Mhz_US_2g(self, lf_test, station_names_twog, get_configuration): + """Country code Bridge Mode + pytest -m "country_code and fourtyMhz and wpa2 and twog and channel3" + """ + profile_data = setup_params_general3["ssid_modes"]["wpa2_personal"][0] + ssid = profile_data["ssid_name"] + security_key = profile_data["security_key"] + security = "wpa2" + mode = "BRIDGE" + band = "twog" + vlan = 1 + channel = setup_params_general3['rf']['2G']['channel'] + + result = lf_test.country_code_channel_division(ssid=ssid, security=security, passkey=security_key, mode=mode, + band=band, station_name=station_names_twog, vlan_id=vlan, + channel=channel, country=840) + if result: + assert True + else: + assert False + + +setup_params_general4 = { + "mode": "BRIDGE", + "ssid_modes": { + "wpa2_personal": [{"ssid_name": "ssid_wpa2_2g", "appliedRadios": ["2G"], "security_key": "something"}, + {"ssid_name": "ssid_wpa2_5g", "appliedRadios": ["5G"], "security_key": "something"} + ]}, + "rf": {"5G": + {'band': '5G', + 'country': 'US', + "channel-mode": "VHT", + 'channel-width': 40, + "channel": 36}, + "2G": + {'band': '2G', + 'country': 'US', + 'channel-mode': 'VHT', + 'channel-width': 40, + "channel": 4} + }, + "radius": False +} + +@allure.feature("BRIDGE MODE CLIENT CONNECTIVITY") +@pytest.mark.parametrize( + 'setup_profiles', + [setup_params_general4], + indirect=True, + scope="class" +) +@pytest.mark.usefixtures("setup_profiles") +class TestCountryUS40Mhz2GChannel4(object): + """Country code along with Channel and Channel-width Test Bridge mode + pytest -m "country_code and Bridge" + """ + @allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-2546", name="WIFI-6938") + @pytest.mark.wpa2_personal + @pytest.mark.fourtyMhz + @pytest.mark.twog + @pytest.mark.channel4 + def test_client_bridge_wpa2_chn4_40Mhz_US_2g(self, lf_test, station_names_twog, get_configuration): + """Country code Bridge Mode + pytest -m "country_code and fourtyMhz and wpa2 and twog and channel4" + """ + profile_data = setup_params_general4["ssid_modes"]["wpa2_personal"][0] + ssid = profile_data["ssid_name"] + security_key = profile_data["security_key"] + security = "wpa2" + mode = "BRIDGE" + band = "twog" + vlan = 1 + channel = setup_params_general4['rf']['2G']['channel'] + + result = lf_test.country_code_channel_division(ssid=ssid, security=security, passkey=security_key, mode=mode, + band=band, station_name=station_names_twog, vlan_id=vlan, + channel=channel, country=840) + if result: + assert True + else: + assert False + + +setup_params_general5 = { + "mode": "BRIDGE", + "ssid_modes": { + "wpa2_personal": [{"ssid_name": "ssid_wpa2_2g", "appliedRadios": ["2G"], "security_key": "something"}, + {"ssid_name": "ssid_wpa2_5g", "appliedRadios": ["5G"], "security_key": "something"} + ]}, + "rf": {"5G": + {'band': '5G', + 'country': 'US', + "channel-mode": "VHT", + 'channel-width': 40, + "channel": 36}, + "2G": + {'band': '2G', + 'country': 'US', + 'channel-mode': 'VHT', + 'channel-width': 40, + "channel": 5} + }, + "radius": False +} + +@allure.feature("BRIDGE MODE CLIENT CONNECTIVITY") +@pytest.mark.parametrize( + 'setup_profiles', + [setup_params_general5], + indirect=True, + scope="class" +) +@pytest.mark.usefixtures("setup_profiles") +class TestCountryUS40Mhz2GChannel5(object): + """Country code along with Channel and Channel-width Test Bridge mode + pytest -m "country_code and Bridge" + """ + @allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-2546", name="WIFI-6938") + @pytest.mark.wpa2_personal + @pytest.mark.fourtyMhz + @pytest.mark.twog + @pytest.mark.channel5 + def test_client_bridge_wpa2_chn5_40Mhz_US_2g(self, lf_test, station_names_twog, get_configuration): + """Country code Bridge Mode + pytest -m "country_code and fourtyMhz and wpa2 and twog and channel5" + """ + profile_data = setup_params_general5["ssid_modes"]["wpa2_personal"][0] + ssid = profile_data["ssid_name"] + security_key = profile_data["security_key"] + security = "wpa2" + mode = "BRIDGE" + band = "twog" + vlan = 1 + channel = setup_params_general5['rf']['2G']['channel'] + + result = lf_test.country_code_channel_division(ssid=ssid, security=security, passkey=security_key, mode=mode, + band=band, station_name=station_names_twog, vlan_id=vlan, + channel=channel, country=840) + if result: + assert True + else: + assert False + + +setup_params_general6 = { + "mode": "BRIDGE", + "ssid_modes": { + "wpa2_personal": [{"ssid_name": "ssid_wpa2_2g", "appliedRadios": ["2G"], "security_key": "something"}, + {"ssid_name": "ssid_wpa2_5g", "appliedRadios": ["5G"], "security_key": "something"} + ]}, + "rf": {"5G": + {'band': '5G', + 'country': 'US', + "channel-mode": "VHT", + 'channel-width': 40, + "channel": 36}, + "2G": + {'band': '2G', + 'country': 'US', + 'channel-mode': 'VHT', + 'channel-width': 40, + "channel": 6} + }, + "radius": False +} + +@allure.feature("BRIDGE MODE CLIENT CONNECTIVITY") +@pytest.mark.parametrize( + 'setup_profiles', + [setup_params_general6], + indirect=True, + scope="class" +) +@pytest.mark.usefixtures("setup_profiles") +class TestCountryUS40Mhz2GChannel6(object): + """Country code along with Channel and Channel-width Test Bridge mode + pytest -m "country_code and Bridge" + """ + @allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-2546", name="WIFI-6938") + @pytest.mark.wpa2_personal + @pytest.mark.fourtyMhz + @pytest.mark.twog + @pytest.mark.channel6 + def test_client_bridge_wpa2_chn6_40Mhz_US_2g(self, lf_test, station_names_twog, get_configuration): + """Country code Bridge Mode + pytest -m "country_code and fourtyMhz and wpa2 and twog and channel6" + """ + profile_data = setup_params_general6["ssid_modes"]["wpa2_personal"][0] + ssid = profile_data["ssid_name"] + security_key = profile_data["security_key"] + security = "wpa2" + mode = "BRIDGE" + band = "twog" + vlan = 1 + channel = setup_params_general6['rf']['2G']['channel'] + + result = lf_test.country_code_channel_division(ssid=ssid, security=security, passkey=security_key, mode=mode, + band=band, station_name=station_names_twog, vlan_id=vlan, + channel=channel, country=840) + if result: + assert True + else: + assert False + + +setup_params_general7 = { + "mode": "BRIDGE", + "ssid_modes": { + "wpa2_personal": [{"ssid_name": "ssid_wpa2_2g", "appliedRadios": ["2G"], "security_key": "something"}, + {"ssid_name": "ssid_wpa2_5g", "appliedRadios": ["5G"], "security_key": "something"} + ]}, + "rf": {"5G": + {'band': '5G', + 'country': 'US', + "channel-mode": "VHT", + 'channel-width': 40, + "channel": 36}, + "2G": + {'band': '2G', + 'country': 'US', + 'channel-mode': 'VHT', + 'channel-width': 40, + "channel": 7} + }, + "radius": False +} + +@allure.feature("BRIDGE MODE CLIENT CONNECTIVITY") +@pytest.mark.parametrize( + 'setup_profiles', + [setup_params_general7], + indirect=True, + scope="class" +) +@pytest.mark.usefixtures("setup_profiles") +class TestCountryUS40Mhz2GChannel7(object): + """Country code along with Channel and Channel-width Test Bridge mode + pytest -m "country_code and Bridge" + """ + @allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-2546", name="WIFI-6938") + @pytest.mark.wpa2_personal + @pytest.mark.fourtyMhz + @pytest.mark.twog + @pytest.mark.channel7 + def test_client_bridge_wpa2_chn7_40Mhz_US_2g(self, lf_test, station_names_twog, get_configuration): + """Country code Bridge Mode + pytest -m "country_code and fourtyMhz and wpa2 and twog and channel7" + """ + profile_data = setup_params_general7["ssid_modes"]["wpa2_personal"][0] + ssid = profile_data["ssid_name"] + security_key = profile_data["security_key"] + security = "wpa2" + mode = "BRIDGE" + band = "twog" + vlan = 1 + channel = setup_params_general7['rf']['2G']['channel'] + + result = lf_test.country_code_channel_division(ssid=ssid, security=security, passkey=security_key, mode=mode, + band=band, station_name=station_names_twog, vlan_id=vlan, + channel=channel, country=840) + if result: + assert True + else: + assert False + + +setup_params_general8 = { + "mode": "BRIDGE", + "ssid_modes": { + "wpa2_personal": [{"ssid_name": "ssid_wpa2_2g", "appliedRadios": ["2G"], "security_key": "something"}, + {"ssid_name": "ssid_wpa2_5g", "appliedRadios": ["5G"], "security_key": "something"} + ]}, + "rf": {"5G": + {'band': '5G', + 'country': 'US', + "channel-mode": "VHT", + 'channel-width': 40, + "channel": 36}, + "2G": + {'band': '2G', + 'country': 'US', + 'channel-mode': 'VHT', + 'channel-width': 40, + "channel": 8} + }, + "radius": False +} + +@allure.feature("BRIDGE MODE CLIENT CONNECTIVITY") +@pytest.mark.parametrize( + 'setup_profiles', + [setup_params_general8], + indirect=True, + scope="class" +) +@pytest.mark.usefixtures("setup_profiles") +class TestCountryUS40Mhz2GChannel8(object): + """Country code along with Channel and Channel-width Test Bridge mode + pytest -m "country_code and Bridge" + """ + @allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-2546", name="WIFI-6938") + @pytest.mark.wpa2_personal + @pytest.mark.fourtyMhz + @pytest.mark.twog + @pytest.mark.channel8 + def test_client_bridge_wpa2_chn8_40Mhz_US_2g(self, lf_test, station_names_twog, get_configuration): + """Country code Bridge Mode + pytest -m "country_code and fourtyMhz and wpa2 and twog and channel8" + """ + profile_data = setup_params_general8["ssid_modes"]["wpa2_personal"][0] + ssid = profile_data["ssid_name"] + security_key = profile_data["security_key"] + security = "wpa2" + mode = "BRIDGE" + band = "twog" + vlan = 1 + channel = setup_params_general8['rf']['2G']['channel'] + + result = lf_test.country_code_channel_division(ssid=ssid, security=security, passkey=security_key, mode=mode, + band=band, station_name=station_names_twog, vlan_id=vlan, + channel=channel, country=840) + if result: + assert True + else: + assert False + + +setup_params_general9 = { + "mode": "BRIDGE", + "ssid_modes": { + "wpa2_personal": [{"ssid_name": "ssid_wpa2_2g", "appliedRadios": ["2G"], "security_key": "something"}, + {"ssid_name": "ssid_wpa2_5g", "appliedRadios": ["5G"], "security_key": "something"} + ]}, + "rf": {"5G": + {'band': '5G', + 'country': 'US', + "channel-mode": "VHT", + 'channel-width': 40, + "channel": 36}, + "2G": + {'band': '2G', + 'country': 'US', + 'channel-mode': 'VHT', + 'channel-width': 40, + "channel": 9} + }, + "radius": False +} + +@allure.feature("BRIDGE MODE CLIENT CONNECTIVITY") +@pytest.mark.parametrize( + 'setup_profiles', + [setup_params_general9], + indirect=True, + scope="class" +) +@pytest.mark.usefixtures("setup_profiles") +class TestCountryUS40Mhz2GChannel9(object): + """Country code along with Channel and Channel-width Test Bridge mode + pytest -m "country_code and Bridge" + """ + @allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-2546", name="WIFI-6938") + @pytest.mark.wpa2_personal + @pytest.mark.fourtyMhz + @pytest.mark.twog + @pytest.mark.channel9 + def test_client_bridge_wpa2_chn9_40Mhz_US_2g(self, lf_test, station_names_twog, get_configuration): + """Country code Bridge Mode + pytest -m "country_code and fourtyMhz and wpa2 and twog and channel9" + """ + profile_data = setup_params_general9["ssid_modes"]["wpa2_personal"][0] + ssid = profile_data["ssid_name"] + security_key = profile_data["security_key"] + security = "wpa2" + mode = "BRIDGE" + band = "twog" + vlan = 1 + channel = setup_params_general9['rf']['2G']['channel'] + + result = lf_test.country_code_channel_division(ssid=ssid, security=security, passkey=security_key, mode=mode, + band=band, station_name=station_names_twog, vlan_id=vlan, + channel=channel, country=840) + if result: + assert True + else: + assert False + + +setup_params_general10 = { + "mode": "BRIDGE", + "ssid_modes": { + "wpa2_personal": [{"ssid_name": "ssid_wpa2_2g", "appliedRadios": ["2G"], "security_key": "something"}, + {"ssid_name": "ssid_wpa2_5g", "appliedRadios": ["5G"], "security_key": "something"} + ]}, + "rf": {"5G": + {'band': '5G', + 'country': 'US', + "channel-mode": "VHT", + 'channel-width': 40, + "channel": 36}, + "2G": + {'band': '2G', + 'country': 'US', + 'channel-mode': 'VHT', + 'channel-width': 40, + "channel": 10} + }, + "radius": False +} + +@allure.feature("BRIDGE MODE CLIENT CONNECTIVITY") +@pytest.mark.parametrize( + 'setup_profiles', + [setup_params_general10], + indirect=True, + scope="class" +) +@pytest.mark.usefixtures("setup_profiles") +class TestCountryUS40Mhz2GChannel10(object): + """Country code along with Channel and Channel-width Test Bridge mode + pytest -m "country_code and Bridge" + """ + @allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-2546", name="WIFI-6938") + @pytest.mark.wpa2_personal + @pytest.mark.fourtyMhz + @pytest.mark.twog + @pytest.mark.channel10 + def test_client_bridge_wpa2_chn10_40Mhz_US_2g(self, lf_test, station_names_twog, get_configuration): + """Country code Bridge Mode + pytest -m "country_code and fourtyMhz and wpa2 and twog and channel10" + """ + profile_data = setup_params_general10["ssid_modes"]["wpa2_personal"][0] + ssid = profile_data["ssid_name"] + security_key = profile_data["security_key"] + security = "wpa2" + mode = "BRIDGE" + band = "twog" + vlan = 1 + channel = setup_params_general10['rf']['2G']['channel'] + + result = lf_test.country_code_channel_division(ssid=ssid, security=security, passkey=security_key, mode=mode, + band=band, station_name=station_names_twog, vlan_id=vlan, + channel=channel, country=840) + if result: + assert True + else: + assert False + + +setup_params_general11 = { + "mode": "BRIDGE", + "ssid_modes": { + "wpa2_personal": [{"ssid_name": "ssid_wpa2_2g", "appliedRadios": ["2G"], "security_key": "something"}, + {"ssid_name": "ssid_wpa2_5g", "appliedRadios": ["5G"], "security_key": "something"} + ]}, + "rf": {"5G": + {'band': '5G', + 'country': 'US', + "channel-mode": "VHT", + 'channel-width': 40, + "channel": 36}, + "2G": + {'band': '2G', + 'country': 'US', + 'channel-mode': 'VHT', + 'channel-width': 40, + "channel": 11} + }, + "radius": False +} + +@allure.feature("BRIDGE MODE CLIENT CONNECTIVITY") +@pytest.mark.parametrize( + 'setup_profiles', + [setup_params_general11], + indirect=True, + scope="class" +) +@pytest.mark.usefixtures("setup_profiles") +class TestCountryUS40Mhz2GChannel11(object): + """Country code along with Channel and Channel-width Test Bridge mode + pytest -m "country_code and Bridge" + """ + @allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-2546", name="WIFI-6938") + @pytest.mark.wpa2_personal + @pytest.mark.fourtyMhz + @pytest.mark.twog + @pytest.mark.channel11 + def test_client_bridge_wpa2_chn11_40Mhz_US_2g(self, lf_test, station_names_twog, get_configuration): + """Country code Bridge Mode + pytest -m "country_code and fourtyMhz and wpa2 and twog and channel11" + """ + profile_data = setup_params_general11["ssid_modes"]["wpa2_personal"][0] + ssid = profile_data["ssid_name"] + security_key = profile_data["security_key"] + security = "wpa2" + mode = "BRIDGE" + band = "twog" + vlan = 1 + channel = setup_params_general11['rf']['2G']['channel'] + + result = lf_test.country_code_channel_division(ssid=ssid, security=security, passkey=security_key, mode=mode, + band=band, station_name=station_names_twog, vlan_id=vlan, + channel=channel, country=840) + if result: + assert True + else: + assert False + + +# setup_params_general12 = { +# "mode": "BRIDGE", +# "ssid_modes": { +# "wpa2_personal": [{"ssid_name": "ssid_wpa2_2g", "appliedRadios": ["2G"], "security_key": "something"}, +# ]}, +# "rf": {"2G": +# {'band': '2G', +# 'country': 'US', +# 'channel-mode': 'VHT', +# 'channel-width': 20, +# "channel": 12} +# }, +# "radius": False +# } +# +# @allure.feature("BRIDGE MODE CLIENT CONNECTIVITY") +# @pytest.mark.parametrize( +# 'setup_profiles', +# [setup_params_general12], +# indirect=True, +# scope="class" +# ) +# @pytest.mark.usefixtures("setup_profiles") +# class TestCountryUS20Mhz2GChannel12(object): +# """Country code along with Channel and Channel-width Test Bridge mode +# pytest -m "country_code and Bridge" +# """ +# @allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-2546", name="WIFI-6938") +# @pytest.mark.wpa2_personal +# @pytest.mark.fourtyMhz +# @pytest.mark.twog +# @pytest.mark.channel12 +# def test_client_bridge_wpa2_chn12_20Mhz_US_2g(self, lf_test, station_names_twog, get_configuration): +# """Country code Bridge Mode +# pytest -m "country_code and fourtyMhz and wpa2 and twog and channel12" +# """ +# profile_data = setup_params_general12["ssid_modes"]["wpa2_personal"][0] +# ssid = profile_data["ssid_name"] +# security_key = profile_data["security_key"] +# security = "wpa2" +# mode = "BRIDGE" +# band = "twog" +# vlan = 1 +# channel = setup_params_general12['rf']['2G']['channel'] +# +# result = lf_test.country_code_channel_division(ssid=ssid, security=security, passkey=security_key, mode=mode, +# band=band, station_name=station_names_twog, vlan_id=vlan, +# channel=channel) +# if result: +# assert True +# else: +# assert False +# +# +# setup_params_general13 = { +# "mode": "BRIDGE", +# "ssid_modes": { +# "wpa2_personal": [{"ssid_name": "ssid_wpa2_2g", "appliedRadios": ["2G"], "security_key": "something"}, +# ]}, +# "rf": {"2G": +# {'band': '2G', +# 'country': 'US', +# 'channel-mode': 'VHT', +# 'channel-width': 20, +# "channel": 13} +# }, +# "radius": False +# } +# +# @allure.feature("BRIDGE MODE CLIENT CONNECTIVITY") +# @pytest.mark.parametrize( +# 'setup_profiles', +# [setup_params_general13], +# indirect=True, +# scope="class" +# ) +# @pytest.mark.usefixtures("setup_profiles") +# class TestCountryUS20Mhz2GChannel13(object): +# """Country code along with Channel and Channel-width Test Bridge mode +# pytest -m "country_code and Bridge" +# """ +# @allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-2546", name="WIFI-6938") +# @pytest.mark.wpa2_personal +# @pytest.mark.fourtyMhz +# @pytest.mark.twog +# @pytest.mark.channel13 +# def test_client_bridge_wpa2_chn13_20Mhz_US_2g(self, lf_test, station_names_twog, get_configuration): +# """Country code Bridge Mode +# pytest -m "country_code and fourtyMhz and wpa2 and twog and channel13" +# """ +# profile_data = setup_params_general13["ssid_modes"]["wpa2_personal"][0] +# ssid = profile_data["ssid_name"] +# security_key = profile_data["security_key"] +# security = "wpa2" +# mode = "BRIDGE" +# band = "twog" +# vlan = 1 +# channel = setup_params_general13['rf']['2G']['channel'] +# +# result = lf_test.country_code_channel_division(ssid=ssid, security=security, passkey=security_key, mode=mode, +# band=band, station_name=station_names_twog, vlan_id=vlan, +# channel=channel) +# if result: +# assert True +# else: +# assert False \ No newline at end of file diff --git a/tests/e2e/basic/validation_of_operating_modes/country_code_channel_division/country_code_US/channel_width_80Mhz/__init__.py b/tests/e2e/basic/validation_of_operating_modes/country_code_channel_division/country_code_US/channel_width_80Mhz/__init__.py new file mode 100644 index 000000000..e69de29bb diff --git a/tests/e2e/basic/validation_of_operating_modes/country_code_channel_division/country_code_US/channel_width_80Mhz/fiveg_band/__init__.py b/tests/e2e/basic/validation_of_operating_modes/country_code_channel_division/country_code_US/channel_width_80Mhz/fiveg_band/__init__.py new file mode 100644 index 000000000..e69de29bb diff --git a/tests/e2e/basic/validation_of_operating_modes/country_code_channel_division/country_code_US/channel_width_80Mhz/fiveg_band/test_US_80Mhz_5g.py b/tests/e2e/basic/validation_of_operating_modes/country_code_channel_division/country_code_US/channel_width_80Mhz/fiveg_band/test_US_80Mhz_5g.py new file mode 100644 index 000000000..92c3a58b6 --- /dev/null +++ b/tests/e2e/basic/validation_of_operating_modes/country_code_channel_division/country_code_US/channel_width_80Mhz/fiveg_band/test_US_80Mhz_5g.py @@ -0,0 +1,257 @@ +""" + + Performance Test: Country code along with Channel and Channel-width Test: Bridge Mode + pytest -m "country_code and Bridge" + +""" + + +import os +import pytest +import allure + +pytestmark = [pytest.mark.country_code, pytest.mark.Bridge, pytest.mark.wpa2, pytest.mark.US] + +setup_params_general1 = { + "mode": "BRIDGE", + "ssid_modes": { + "wpa2_personal": [{"ssid_name": "ssid_wpa2_2g", "appliedRadios": ["2G"], "security_key": "something"}, + {"ssid_name": "ssid_wpa2_5g", "appliedRadios": ["5G"], "security_key": "something"} + ]}, + "rf": {"5G": + {'band': '5G', + 'country': 'US', + "channel-mode": "VHT", + 'channel-width': 80, + "channel": 36}, + "2G": + {'band': '2G', + 'country': 'US', + "channel-mode": "VHT", + 'channel-width': 20, + "channel": 1} + }, + "radius": False +} + +@allure.feature("BRIDGE MODE CLIENT CONNECTIVITY") +@pytest.mark.parametrize( + 'setup_profiles', + [setup_params_general1], + indirect=True, + scope="class" +) +@pytest.mark.usefixtures("setup_profiles") +class TestCountryUS80Mhz5GChannel36(object): + """Country code along with Channel and Channel-width Test Bridge mode + pytest -m "country_code and Bridge" + """ + @allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-2546", name="WIFI-6938") + @pytest.mark.wpa2_personal + @pytest.mark.eightyMhz + @pytest.mark.fiveg + @pytest.mark.channel36 + def test_client_bridge_wpa2_chn36_80Mhz_US_5g(self, lf_test, station_names_fiveg, get_configuration): + """Country code Bridge Mode + pytest -m "country_code and eightyMhz and wpa2 and fiveg and channel36" + """ + profile_data = setup_params_general1["ssid_modes"]["wpa2_personal"][1] + ssid = profile_data["ssid_name"] + security_key = profile_data["security_key"] + security = "wpa2" + mode = "BRIDGE" + band = "fiveg" + vlan = 1 + channel = setup_params_general1['rf']['5G']['channel'] + + result = lf_test.country_code_channel_division(ssid=ssid, security=security, passkey=security_key, mode=mode, + band=band, station_name=station_names_fiveg, vlan_id=vlan, + channel=channel, country=840) + if result: + assert True + else: + assert False + + +setup_params_general2 = { + "mode": "BRIDGE", + "ssid_modes": { + "wpa2_personal": [{"ssid_name": "ssid_wpa2_2g", "appliedRadios": ["2G"], "security_key": "something"}, + {"ssid_name": "ssid_wpa2_5g", "appliedRadios": ["5G"], "security_key": "something"} + ]}, + "rf": {"5G": + {'band': '5G', + 'country': 'US', + 'channel-mode': 'VHT', + 'channel-width': 80, + "channel": 52}, + "2G": + {'band': '2G', + 'country': 'US', + "channel-mode": "VHT", + 'channel-width': 20, + "channel": 1} + }, + "radius": False +} + + +@allure.feature("BRIDGE MODE CLIENT CONNECTIVITY") +@pytest.mark.parametrize( + 'setup_profiles', + [setup_params_general2], + indirect=True, + scope="class" +) +@pytest.mark.usefixtures("setup_profiles") +class TestCountryUS80Mhz5GChannel52(object): + """Country code along with Channel and Channel-width Test Bridge mode + pytest -m "country_code and Bridge" + """ + @allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-2546", name="WIFI-6938") + @pytest.mark.wpa2_personal + @pytest.mark.eightyMhz + @pytest.mark.fiveg + @pytest.mark.channel52 + def test_client_bridge_wpa2_chn52_80Mhz_US_5g(self, lf_test, station_names_fiveg, get_configuration): + """Country code Bridge Mode + pytest -m "country_code and eightyMhz and wpa2 and fiveg and channel52" + """ + profile_data = setup_params_general2["ssid_modes"]["wpa2_personal"][1] + ssid = profile_data["ssid_name"] + security_key = profile_data["security_key"] + security = "wpa2" + mode = "BRIDGE" + band = "fiveg" + vlan = 1 + channel = setup_params_general2['rf']['5G']['channel'] + + result = lf_test.country_code_channel_division(ssid=ssid, security=security, passkey=security_key, mode=mode, + band=band, station_name=station_names_fiveg, vlan_id=vlan, + channel=channel, country=840) + if result: + assert True + else: + assert False + + +setup_params_general3 = { + "mode": "BRIDGE", + "ssid_modes": { + "wpa2_personal": [{"ssid_name": "ssid_wpa2_2g", "appliedRadios": ["2G"], "security_key": "something"}, + {"ssid_name": "ssid_wpa2_5g", "appliedRadios": ["5G"], "security_key": "something"} + ]}, + "rf": {"5G": + {'band': '5G', + 'country': 'US', + 'channel-mode': 'VHT', + 'channel-width': 80, + "channel": 100}, + "2G": + {'band': '2G', + 'country': 'US', + "channel-mode": "VHT", + 'channel-width': 20, + "channel": 1} + }, + "radius": False +} + +@allure.feature("BRIDGE MODE CLIENT CONNECTIVITY") +@pytest.mark.parametrize( + 'setup_profiles', + [setup_params_general3], + indirect=True, + scope="class" +) +@pytest.mark.usefixtures("setup_profiles") +class TestCountryUS80Mhz5GChannel100(object): + """Country code along with Channel and Channel-width Test Bridge mode + pytest -m "country_code and Bridge" + """ + @allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-2546", name="WIFI-6938") + @pytest.mark.wpa2_personal + @pytest.mark.eightyMhz + @pytest.mark.fiveg + @pytest.mark.channel100 + def test_client_bridge_wpa2_chn100_80Mhz_US_5g(self, lf_test, station_names_fiveg, get_configuration): + """Country code Bridge Mode + pytest -m "country_code and eightyMhz and wpa2 and fiveg and channel100" + """ + profile_data = setup_params_general3["ssid_modes"]["wpa2_personal"][1] + ssid = profile_data["ssid_name"] + security_key = profile_data["security_key"] + security = "wpa2" + mode = "BRIDGE" + band = "fiveg" + vlan = 1 + channel = setup_params_general3['rf']['5G']['channel'] + + result = lf_test.country_code_channel_division(ssid=ssid, security=security, passkey=security_key, mode=mode, + band=band, station_name=station_names_fiveg, vlan_id=vlan, + channel=channel, country=840) + if result: + assert True + else: + assert False + + +setup_params_general4 = { + "mode": "BRIDGE", + "ssid_modes": { + "wpa2_personal": [{"ssid_name": "ssid_wpa2_2g", "appliedRadios": ["2G"], "security_key": "something"}, + {"ssid_name": "ssid_wpa2_5g", "appliedRadios": ["5G"], "security_key": "something"} + ]}, + "rf": {"5G": + {'band': '5G', + 'country': 'US', + 'channel-mode': 'VHT', + 'channel-width': 80, + "channel": 132}, + "2G": + {'band': '2G', + 'country': 'US', + "channel-mode": "VHT", + 'channel-width': 20, + "channel": 1} + }, + "radius": False +} + +@allure.feature("BRIDGE MODE CLIENT CONNECTIVITY") +@pytest.mark.parametrize( + 'setup_profiles', + [setup_params_general4], + indirect=True, + scope="class" +) +@pytest.mark.usefixtures("setup_profiles") +class TestCountryUS80Mhz5GChannel132(object): + """Country code along with Channel and Channel-width Test Bridge mode + pytest -m "country_code and Bridge" + """ + @allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-2546", name="WIFI-6938") + @pytest.mark.wpa2_personal + @pytest.mark.eightyMhz + @pytest.mark.fiveg + @pytest.mark.channel132 + def test_client_bridge_wpa2_chn132_80Mhz_US_5g(self, lf_test, station_names_fiveg, get_configuration): + """Country code Bridge Mode + pytest -m "country_code and eightyMhz and wpa2 and fiveg and channel132" + """ + profile_data = setup_params_general4["ssid_modes"]["wpa2_personal"][1] + ssid = profile_data["ssid_name"] + security_key = profile_data["security_key"] + security = "wpa2" + mode = "BRIDGE" + band = "fiveg" + vlan = 1 + channel = setup_params_general4['rf']['5G']['channel'] + + result = lf_test.country_code_channel_division(ssid=ssid, security=security, passkey=security_key, mode=mode, + band=band, station_name=station_names_fiveg, vlan_id=vlan, + channel=channel, country=840) + if result: + assert True + else: + assert False diff --git a/tests/fixtures_2x.py b/tests/fixtures_2x.py index 18b8d496d..29435565f 100644 --- a/tests/fixtures_2x.py +++ b/tests/fixtures_2x.py @@ -385,6 +385,9 @@ class Fixtures_2x: if "dfs" in list_key: print("In dfs") instantiate_profile_obj.set_radio_config(DFS=True, channel=parameter["dfs"]["channel"], bw=parameter["dfs"]["channel_bandwidth"]) + if len(parameter['rf']) > 0: + print("Country code channel division") + instantiate_profile_obj.set_radio_config(radio_config=parameter['rf']) else: instantiate_profile_obj.set_radio_config() if parameter['mode'] not in ["BRIDGE", "NAT", "VLAN"]: @@ -679,6 +682,8 @@ class Fixtures_2x: # Apply config instantiate_profile_obj.push_config(serial_number=get_equipment_ref[0]) + + print(instantiate_profile_obj.base_profile_config) config = json.loads(str(instantiate_profile_obj.base_profile_config).replace(" ", "").replace("'", '"').replace("True", "true")) config["uuid"] = 0 From c6549f2761593775ee07210aad2c0fd5510c07e3 Mon Sep 17 00:00:00 2001 From: jitendracandela <78074038+jitendracandela@users.noreply.github.com> Date: Mon, 14 Mar 2022 23:15:19 +0530 Subject: [PATCH 026/100] Wifi 7234 (#428) * Added scan_ssid method Signed-off-by: jitendracandela * modified code for testing scan_ssid method Signed-off-by: jitendracandela * Added scan_ssid method and called that method in Client_Connectivity, Client_Connect, EAP_Connect Signed-off-by: jitendracandela * added libs for creating tables Signed-off-by: jitendracandela * added tabulate module Signed-off-by: jitendracandela Co-authored-by: Shivam Thakur <70829776+shivamcandela@users.noreply.github.com> --- libs/lanforge/lf_tests.py | 36 ++++++++++++++++++++++++++++++++---- libs/lanforge/report.py | 21 +++++++++++++++++++++ requirements.txt | 3 ++- 3 files changed, 55 insertions(+), 5 deletions(-) create mode 100644 libs/lanforge/report.py diff --git a/libs/lanforge/lf_tests.py b/libs/lanforge/lf_tests.py index 2d620a675..f578a9194 100644 --- a/libs/lanforge/lf_tests.py +++ b/libs/lanforge/lf_tests.py @@ -29,6 +29,8 @@ from sta_connect2 import StaConnect2 import time import string import random +import csv +from report import Report from scp_util import SCP_File @@ -50,6 +52,7 @@ from attenuator_serial import AttenuatorSerial from lf_atten_mod_test import CreateAttenuator from lf_mesh_test import MeshTest from LANforge.lfcli_base import LFCliBase +from sta_scan_test import StaScan realm = importlib.import_module("py-json.realm") Realm = realm.Realm @@ -145,6 +148,8 @@ class RunTest: self.staConnect.radio = self.fiveg_radios[0] self.staConnect.reset_port(self.staConnect.radio) self.staConnect.sta_prefix = self.fiveg_prefix + print("scand ssid radio", self.staConnect.radio.split(".")[2]) + self.scan_ssid(radio=self.staConnect.radio.split(".")[2]) self.staConnect.resource = 1 self.staConnect.dut_ssid = ssid self.staConnect.dut_passwd = passkey @@ -153,7 +158,6 @@ class RunTest: self.staConnect.runtime_secs = 40 self.staConnect.bringup_time_sec = 80 self.staConnect.cleanup_on_exit = True - print("gopi: ", self.staConnect.dut_ssid, self.staConnect.dut_passwd) self.staConnect.setup(extra_securities=extra_securities) self.staConnect.start() print("napping %f sec" % self.staConnect.runtime_secs) @@ -189,7 +193,7 @@ class RunTest: name="supplicant_log") except Exception as e: print(e) - + for result in run_results: print("test result: " + result) result = True @@ -250,6 +254,8 @@ class RunTest: self.eap_connect.admin_up(self.eap_connect.radio) # self.eap_connect.sta_prefix = self.fiveg_prefix # self.eap_connect.resource = 1 + print("scand ssid radio", self.eap_connect.radio.split(".")[2]) + self.scan_ssid(radio=self.eap_connect.radio.split(".")[2]) if eap == "TTLS": self.eap_connect.ieee80211w = ieee80211w self.eap_connect.key_mgmt = key_mgmt @@ -308,7 +314,7 @@ class RunTest: name="supplicant_log") except Exception as e: print(e) - + if not self.eap_connect.passes(): if self.debug: print("test result: " + self.eap_connect.passes()) @@ -411,6 +417,8 @@ class RunTest: self.client_connect.radio = self.fiveg_radios[0] if band == "ax": self.client_connect.radio = self.ax_radios[0] + print("scan ssid radio", sself.client_connect.radio.split(".")[2]) + self.scan_ssid(radio=self.client_connect.radio.split(".")[2]) self.client_connect.build() self.client_connect.wait_for_ip(station_name) print(self.client_connect.wait_for_ip(station_name)) @@ -951,7 +959,7 @@ class RunTest: self.mesh_obj.setup() self.mesh_obj.run() return self.mesh_obj - + def attenuator_serial_2g_radio(self, ssid="[BLANK]", passkey="[BLANK]", security="wpa2", mode="BRIDGE", vlan_id=100, sta_mode=0, station_name=[], lf_tools_obj=None): radio = self.twog_radios[0] @@ -996,6 +1004,25 @@ class RunTest: self.Client_disconnect(station_name=station_name) return atten_serial_radio + + def scan_ssid(self, radio=""): + '''This method for scan ssid data''' + obj_scan = StaScan(host=self.lanforge_ip, port=self.lanforge_port, ssid="fake ssid", security="open", password="[BLANK]", radio=radio, sta_list=["sta0000"], csv_output="scan_ssid.csv") + obj_scan.pre_cleanup() + obj_scan.build() + obj_scan.start() + with open(obj_scan.csv_output, 'r') as file: + reader = csv.reader(file) + list_data = [] + for row in reader: + list_data.append(row) + report_obj = Report() + csv_data_table = report_obj.table2(list_data) + allure.attach(name="scan_ssid_data", body=csv_data_table) + obj_scan.cleanup() + + + def country_code_channel_division(self, ssid = "[BLANK]", passkey='[BLANK]', security="wpa2", mode="BRIDGE", band='2G', station_name=[], vlan_id=100, channel='1',country=392): self.local_realm = realm.Realm(lfclient_host=self.lanforge_ip, lfclient_port=self.lanforge_port) @@ -1035,6 +1062,7 @@ class RunTest: else: return False + if __name__ == '__main__': influx_host = "influx.cicd.lab.wlan.tip.build" influx_port = 80 diff --git a/libs/lanforge/report.py b/libs/lanforge/report.py new file mode 100644 index 000000000..0ed9c8544 --- /dev/null +++ b/libs/lanforge/report.py @@ -0,0 +1,21 @@ +from tabulate import tabulate + +class Report: + def __init__(self, key1=None, + key2=None, + val1=None, + val2=None): + self.key1 = key1 + self.key2 = key2 + self.val1 = val1 + self.val2 = val2 + + def table1(self): + table ={str(self.key1): self.val1, str(self.key2):self.val2} + x = tabulate(table, headers="keys", tablefmt="fancy_grid") + return x + + def table2(self, table): + self.table = table + x = tabulate(self.table, headers='firstrow', tablefmt='fancy_grid') + return x \ No newline at end of file diff --git a/requirements.txt b/requirements.txt index b8b8e34fa..91f90d34c 100644 --- a/requirements.txt +++ b/requirements.txt @@ -11,4 +11,5 @@ requests scp selenium tip-wlan-cloud -xlsxwriter \ No newline at end of file +xlsxwriter +tabulate \ No newline at end of file From 1a10a2783f7cf6dda40ced4dccce995a0d841004 Mon Sep 17 00:00:00 2001 From: shivam Date: Mon, 14 Mar 2022 23:18:29 +0530 Subject: [PATCH 027/100] fixed the error due to rf data being None Signed-off-by: shivam --- libs/controller/controller_2x/controller.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/controller/controller_2x/controller.py b/libs/controller/controller_2x/controller.py index 61ae5d20c..c80bdfd49 100644 --- a/libs/controller/controller_2x/controller.py +++ b/libs/controller/controller_2x/controller.py @@ -468,7 +468,7 @@ class UProfileUtility: ssid_info.append(temp) return ssid_info - def set_radio_config(self, radio_config=None, DFS=False, channel=None, bw=None): + def set_radio_config(self, radio_config={}, DFS=False, channel=None, bw=None): base_radio_config_2g = { "band": "2G", "country": "CA", From 78af38ae30528f09889db1493036a6bd9bb4ce20 Mon Sep 17 00:00:00 2001 From: Johann Hoffmann Date: Mon, 14 Mar 2022 21:33:14 +0100 Subject: [PATCH 028/100] Fix advanced testbed config generation Signed-off-by: Johann Hoffmann --- .github/workflows/quali-advanced.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/quali-advanced.yml b/.github/workflows/quali-advanced.yml index 86f0b0b7d..444c2cb6b 100644 --- a/.github/workflows/quali-advanced.yml +++ b/.github/workflows/quali-advanced.yml @@ -137,8 +137,10 @@ jobs: ${{ secrets.LAB_CONFIGURATION_JSON }} EOF + sed -i 's/basic/advanced/g' lab_info.json + DYN_CONFIG="$(python .quali/get_configuration.py --json ${{ steps.reservation.outputs.identifier }})" - jq ".CONFIGURATION.basic=$DYN_CONFIG" lab_info.json > lab_info.json.tmp && mv lab_info.json.tmp lab_info.json + jq ".CONFIGURATION.advanced=$DYN_CONFIG" lab_info.json > lab_info.json.tmp && mv lab_info.json.tmp lab_info.json - name: run tests uses: ./.github/actions/run-tests From 733b7aa7b52d964375e0ab242b092e7de3867f89 Mon Sep 17 00:00:00 2001 From: Shivam Thakur <70829776+shivamcandela@users.noreply.github.com> Date: Tue, 15 Mar 2022 02:08:18 +0530 Subject: [PATCH 029/100] added the badge text to RF Testing from Advance --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index bdf28c84a..c008e420d 100644 --- a/README.md +++ b/README.md @@ -77,7 +77,7 @@ http://pythontesting.net/framework/pytest/pytest-introduction/ [![performance testing](https://github.com/Telecominfraproject/wlan-testing/actions/workflows/performance.yml/badge.svg)](https://github.com/Telecominfraproject/wlan-testing/actions/workflows/performance.yml) ![performance test count](https://raw.githubusercontent.com/Telecominfraproject/wlan-testing/badges/performance-count.svg) -[![Quali advanced testing](https://github.com/Telecominfraproject/wlan-testing/actions/workflows/quali-advanced.yml/badge.svg)](https://github.com/Telecominfraproject/wlan-testing/actions/workflows/quali-advanced.yml) +[![RF Testing](https://github.com/Telecominfraproject/wlan-testing/actions/workflows/quali-advanced.yml/badge.svg)](https://github.com/Telecominfraproject/wlan-testing/actions/workflows/quali-advanced.yml) ![Advance test count](https://raw.githubusercontent.com/Telecominfraproject/wlan-testing/badges/advance-count.svg) [![regression testing](https://github.com/Telecominfraproject/wlan-testing/actions/workflows/regression.yml/badge.svg)](https://github.com/Telecominfraproject/wlan-testing/actions/workflows/regression.yml) From 9cbb17920aef2206974e48c6b4c37f0c9ea438a8 Mon Sep 17 00:00:00 2001 From: Johann Hoffmann Date: Tue, 15 Mar 2022 11:17:43 +0100 Subject: [PATCH 030/100] Fix composite action path Signed-off-by: Johann Hoffmann --- .github/workflows/quali-advanced.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/quali-advanced.yml b/.github/workflows/quali-advanced.yml index 444c2cb6b..d3e6386e2 100644 --- a/.github/workflows/quali-advanced.yml +++ b/.github/workflows/quali-advanced.yml @@ -217,7 +217,7 @@ jobs: - name: upload to S3 if: github.ref == 'refs/heads/master' && needs.vars.outputs.marker_expression == 'advance' - uses: ./wlan-testing/.github/actions/allure-report-to-s3 + uses: ./.github/actions/allure-report-to-s3 with: test_type: advance testbed: ${{ matrix.ap_model }} From 5811412f3bb981706a11975d2bbdadc869edfab6 Mon Sep 17 00:00:00 2001 From: Rohan Dutta Date: Tue, 15 Mar 2022 11:30:24 -0700 Subject: [PATCH 031/100] Modified .quali/get_config Signed-off-by: dutta-rohan <94938704+dutta-rohan@users.noreply.github.com> --- .quali/get_configuration.py | 70 +++++++++++++++++++++++++++++++++---- 1 file changed, 64 insertions(+), 6 deletions(-) diff --git a/.quali/get_configuration.py b/.quali/get_configuration.py index bd4480e51..d16c0bc22 100644 --- a/.quali/get_configuration.py +++ b/.quali/get_configuration.py @@ -18,6 +18,14 @@ def get_attribute_value(cloudshell_session, attribute): return attribute.Value +def refine(s): + parts = s.split(" ") + part1 = parts[0] + part2 = parts[-1] + part2_clean = ''.join(e for e in part2 if e.isalnum()) + return part1 + "-" + part2_clean + + def main(): argparser = argparse.ArgumentParser() argparser.add_argument('--json', default=False, help="render configuration as JSON instead of Python dict", action='store_true') @@ -37,6 +45,9 @@ def main(): 'traffic_generator': {} } + pf_details = {} + + for service in services_in_reservation: if service.ServiceName != 'Helm Service V2': continue @@ -86,13 +97,60 @@ def main(): 'AX-Station-Name': tf_config['AX_Station_Name'] } } - else: - continue - if args.json: - print(json.dumps(config)) - else: - print(repr(config)) + # Perfecto Details + + input_map = {} + inputs = session.GetReservationInputs(reservationId=res_id).GlobalInputs + for given_input in inputs: + input_map[given_input.ParamName] = given_input.Value + + pf_details['securityToken'] = input_map['securityToken'] + pf_details["projectName"]: "TIP-PyTest-Execution" + pf_details["projectVersion"] = "1.0" + pf_details["reportTags"] = "TestTag" + pf_details["perfectoURL"] = input_map["perfectoURL"] + for resource in session.GetReservationDetails(reservationId=res_id).ReservationDescription.Resources: + if resource.ResourceModelName == 'Phone': + details = session.GetResourceDetails(resource.Name) + phone_config = {} + for attribute in details.ResourceAttributes: + key = attribute.Name.replace(f"{resource.ResourceModelName}.", '') + phone_config[key] = get_attribute_value(session, attribute) + if phone_config["OS"] == "iOS": + pf_details[phone_config['model']] = \ + { + "model-iOS": phone_config['model'], + "bundleId-iOS": "com.apple.Preferences", + "platformName-iOS": phone_config['OS'], + "bundleId-iOS-Settings": "com.apple.Preferences", + "bundleId-iOS-Ping": "com.deftapps.ping", + "browserType-iOS": "Safari", + "bundleId-iOS-Safari": "com.apple.mobilesafari", + "platformName-android": "Android", + "appPackage-android": "com.android.settings", + "jobName": "Interop-" + phone_config['model'], + "jobNumber": 38 + } + elif phone_config["OS"] == "Android": + pf_details[phone_config['model']] = \ + { + "platformName-android": phone_config["OS"], + "model-android": phone_config["model"], + "appPackage-android": "com.android.settings", + "bundleId-iOS-Settings": "com.apple.Preferences", + "bundleId-iOS-Safari": "com.apple.mobilesafari", + "jobName": "Interop-" + refine(phone_config['model']), + "jobNumber": 38 + } + else: + continue + + entire_config = {config, pf_details} + if args.json: + print(json.dumps(entire_config)) + else: + print(repr(entire_config)) if __name__ == '__main__': From 8897e5631176c69dd86f51cfd479bbf118242d3f Mon Sep 17 00:00:00 2001 From: Rohan Dutta Date: Tue, 15 Mar 2022 14:55:04 -0700 Subject: [PATCH 032/100] Modified .quali/get_config Signed-off-by: dutta-rohan <94938704+dutta-rohan@users.noreply.github.com> --- .github/workflows/interop.yml | 38 +++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) diff --git a/.github/workflows/interop.yml b/.github/workflows/interop.yml index 302d25aab..31bad3b72 100644 --- a/.github/workflows/interop.yml +++ b/.github/workflows/interop.yml @@ -62,9 +62,39 @@ jobs: steps: - uses: actions/checkout@v2 + - name: install dependencies + run: pip install -r .quali/requirements.txt + + - name: start reservation + env: + CLOUDSHELL_URL: quali-cloudshell.lab.wlan.tip.build + CLOUDSHELL_USER: ${{ secrets.CLOUDSHELL_USER }} + CLOUDSHELL_PASSWORD: ${{ secrets.CLOUDSHELL_PASSWORD }} + run: | + python .quali/start_reservation.py --global-inputs '{"Chart Version":"${{ github.event.inputs.openwifi_revision }}","AP Model":"${{ github.event.inputs.ap_model }}"}' "Basic Lab" + + - name: set reservation outputs + if: always() + id: reservation + run: | + echo ::set-output name=identifier::"$(cat ./reservation_id.txt)" + echo ::set-output name=namespace::"$(cat ./reservation_id.txt | cut -d "-" -f 1)" + - name: get EKS access credentials run: aws eks update-kubeconfig --name ${{ env.AWS_EKS_NAME }} + - name: prepare configuration + env: + CLOUDSHELL_URL: quali-cloudshell.lab.wlan.tip.build + CLOUDSHELL_USER: ${{ secrets.CLOUDSHELL_USER }} + CLOUDSHELL_PASSWORD: ${{ secrets.CLOUDSHELL_PASSWORD }} + run: | + cat << EOF > lab_info.json + ${{ secrets.LAB_CONFIGURATION_JSON }} + EOF + DYN_CONFIG="$(python .quali/get_configuration.py --json ${{ steps.reservation.outputs.identifier }})" + jq ".CONFIGURATION.basic=$DYN_CONFIG" lab_info.json > lab_info.json.tmp && mv lab_info.json.tmp lab_info.json + - name: run tests uses: ./.github/actions/run-tests with: @@ -76,6 +106,14 @@ jobs: additional_args: "--device='Galaxy S9' --skip-lanforge" allure_results_artifact_name: allure-results-galaxy-s9 + - name: stop reservation + if: always() + run: python .quali/stop_reservation.py ${{ steps.reservation.outputs.identifier }} + env: + CLOUDSHELL_URL: quali-cloudshell.lab.wlan.tip.build + CLOUDSHELL_USER: ${{ secrets.CLOUDSHELL_USER }} + CLOUDSHELL_PASSWORD: ${{ secrets.CLOUDSHELL_PASSWORD }} + # necessary because if conditionals in composite actions are currently not respected - name: delete namespace if: always() From c0363d26d12e4c41b8f6bd8e3323c2187f24bb16 Mon Sep 17 00:00:00 2001 From: dutta-rohan <94938704+dutta-rohan@users.noreply.github.com> Date: Tue, 15 Mar 2022 15:04:31 -0700 Subject: [PATCH 033/100] Modified .quali/get_config Signed-off-by: dutta-rohan <94938704+dutta-rohan@users.noreply.github.com> --- .github/workflows/interop.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/interop.yml b/.github/workflows/interop.yml index 31bad3b72..eb2566315 100644 --- a/.github/workflows/interop.yml +++ b/.github/workflows/interop.yml @@ -71,7 +71,7 @@ jobs: CLOUDSHELL_USER: ${{ secrets.CLOUDSHELL_USER }} CLOUDSHELL_PASSWORD: ${{ secrets.CLOUDSHELL_PASSWORD }} run: | - python .quali/start_reservation.py --global-inputs '{"Chart Version":"${{ github.event.inputs.openwifi_revision }}","AP Model":"${{ github.event.inputs.ap_model }}"}' "Basic Lab" + python .quali/start_reservation.py --global-inputs '{"EAP 101":"1","iOS Phones Quantity":1}' "InterOp Lab - Generic Selection" - name: set reservation outputs if: always() From 8e726f1e21f4f808cf74bbfe038e94e6a09051e7 Mon Sep 17 00:00:00 2001 From: dutta-rohan <94938704+dutta-rohan@users.noreply.github.com> Date: Tue, 15 Mar 2022 15:12:45 -0700 Subject: [PATCH 034/100] Modified .quali/get_config Signed-off-by: dutta-rohan <94938704+dutta-rohan@users.noreply.github.com> --- .github/workflows/interop.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/interop.yml b/.github/workflows/interop.yml index eb2566315..136e080de 100644 --- a/.github/workflows/interop.yml +++ b/.github/workflows/interop.yml @@ -71,7 +71,7 @@ jobs: CLOUDSHELL_USER: ${{ secrets.CLOUDSHELL_USER }} CLOUDSHELL_PASSWORD: ${{ secrets.CLOUDSHELL_PASSWORD }} run: | - python .quali/start_reservation.py --global-inputs '{"EAP 101":"1","iOS Phones Quantity":1}' "InterOp Lab - Generic Selection" + python .quali/start_reservation.py --global-inputs '{"EAP 101":"1","iOS Phones Quantity":"1"}' "InterOp Lab - Generic Selection" - name: set reservation outputs if: always() From f258c6568c31dda5ad6f487fbab76466fd36542d Mon Sep 17 00:00:00 2001 From: dutta-rohan <94938704+dutta-rohan@users.noreply.github.com> Date: Tue, 15 Mar 2022 16:05:59 -0700 Subject: [PATCH 035/100] Modified .quali/get_config Signed-off-by: dutta-rohan <94938704+dutta-rohan@users.noreply.github.com> --- .github/workflows/interop.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/interop.yml b/.github/workflows/interop.yml index 136e080de..a2ad0d2a0 100644 --- a/.github/workflows/interop.yml +++ b/.github/workflows/interop.yml @@ -71,7 +71,7 @@ jobs: CLOUDSHELL_USER: ${{ secrets.CLOUDSHELL_USER }} CLOUDSHELL_PASSWORD: ${{ secrets.CLOUDSHELL_PASSWORD }} run: | - python .quali/start_reservation.py --global-inputs '{"EAP 101":"1","iOS Phones Quantity":"1"}' "InterOp Lab - Generic Selection" + python .quali/start_reservation.py --global-inputs '{"EAP 101":"1","iOS Phones Quantity":"1","securityToken":"eyJhbGciOiJIUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICI3NzkzZGM0Ni1jZmU4LTQ4ODMtYjhiOS02ZWFlZGU2OTc2MDkifQ.eyJpYXQiOjE2MzI4Mzc2NDEsImp0aSI6IjAwZGRiYWY5LWQwYjMtNDRjNS1hYjVlLTkyNzFlNzc5ZGUzNiIsImlzcyI6Imh0dHBzOi8vYXV0aDIucGVyZmVjdG9tb2JpbGUuY29tL2F1dGgvcmVhbG1zL3RpcC1wZXJmZWN0b21vYmlsZS1jb20iLCJhdWQiOiJodHRwczovL2F1dGgyLnBlcmZlY3RvbW9iaWxlLmNvbS9hdXRoL3JlYWxtcy90aXAtcGVyZmVjdG9tb2JpbGUtY29tIiwic3ViIjoiODNkNjUxMWQtNTBmZS00ZWM5LThkNzAtYTA0ZjBkNTdiZDUyIiwidHlwIjoiT2ZmbGluZSIsImF6cCI6Im9mZmxpbmUtdG9rZW4tZ2VuZXJhdG9yIiwibm9uY2UiOiI2ZjE1YzYxNy01YTU5LTQyOWEtODc2Yi1jOTQxMTQ1ZDFkZTIiLCJzZXNzaW9uX3N0YXRlIjoiYmRjZTFmYTMtMjlkYi00MmFmLWI5YWMtYjZjZmJkMDEyOTFhIiwic2NvcGUiOiJvcGVuaWQgcHJvZmlsZSBvZmZsaW5lX2FjY2VzcyBlbWFpbCJ9.5R85_1R38ZFXv_wIjjCIsj8NJm1p66dCsLJI5DBEmks"}' "InterOp Lab - Generic Selection" - name: set reservation outputs if: always() From a99364085eb33d0608369716688978390a381eca Mon Sep 17 00:00:00 2001 From: dutta-rohan <94938704+dutta-rohan@users.noreply.github.com> Date: Tue, 15 Mar 2022 18:35:21 -0700 Subject: [PATCH 036/100] Modified .quali/get_config Signed-off-by: dutta-rohan <94938704+dutta-rohan@users.noreply.github.com> --- .quali/get_configuration.py | 52 ++++++++++++++++++------------------- 1 file changed, 26 insertions(+), 26 deletions(-) diff --git a/.quali/get_configuration.py b/.quali/get_configuration.py index d16c0bc22..d1c904e97 100644 --- a/.quali/get_configuration.py +++ b/.quali/get_configuration.py @@ -117,32 +117,32 @@ def main(): for attribute in details.ResourceAttributes: key = attribute.Name.replace(f"{resource.ResourceModelName}.", '') phone_config[key] = get_attribute_value(session, attribute) - if phone_config["OS"] == "iOS": - pf_details[phone_config['model']] = \ - { - "model-iOS": phone_config['model'], - "bundleId-iOS": "com.apple.Preferences", - "platformName-iOS": phone_config['OS'], - "bundleId-iOS-Settings": "com.apple.Preferences", - "bundleId-iOS-Ping": "com.deftapps.ping", - "browserType-iOS": "Safari", - "bundleId-iOS-Safari": "com.apple.mobilesafari", - "platformName-android": "Android", - "appPackage-android": "com.android.settings", - "jobName": "Interop-" + phone_config['model'], - "jobNumber": 38 - } - elif phone_config["OS"] == "Android": - pf_details[phone_config['model']] = \ - { - "platformName-android": phone_config["OS"], - "model-android": phone_config["model"], - "appPackage-android": "com.android.settings", - "bundleId-iOS-Settings": "com.apple.Preferences", - "bundleId-iOS-Safari": "com.apple.mobilesafari", - "jobName": "Interop-" + refine(phone_config['model']), - "jobNumber": 38 - } + if phone_config["OS"] == "iOS": + pf_details[phone_config['model']] = \ + { + "model-iOS": phone_config['model'], + "bundleId-iOS": "com.apple.Preferences", + "platformName-iOS": phone_config['OS'], + "bundleId-iOS-Settings": "com.apple.Preferences", + "bundleId-iOS-Ping": "com.deftapps.ping", + "browserType-iOS": "Safari", + "bundleId-iOS-Safari": "com.apple.mobilesafari", + "platformName-android": "Android", + "appPackage-android": "com.android.settings", + "jobName": "Interop-" + phone_config['model'], + "jobNumber": 38 + } + elif phone_config["OS"] == "Android": + pf_details[phone_config['model']] = \ + { + "platformName-android": phone_config["OS"], + "model-android": phone_config["model"], + "appPackage-android": "com.android.settings", + "bundleId-iOS-Settings": "com.apple.Preferences", + "bundleId-iOS-Safari": "com.apple.mobilesafari", + "jobName": "Interop-" + refine(phone_config['model']), + "jobNumber": 38 + } else: continue From 3c94eb8b459f956431fb25f1364cc2b5f1f79c18 Mon Sep 17 00:00:00 2001 From: dutta-rohan <94938704+dutta-rohan@users.noreply.github.com> Date: Tue, 15 Mar 2022 19:35:46 -0700 Subject: [PATCH 037/100] Modified .quali/get_config Signed-off-by: dutta-rohan <94938704+dutta-rohan@users.noreply.github.com> --- .github/workflows/interop.yml | 2 +- .quali/get_configuration.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/interop.yml b/.github/workflows/interop.yml index a2ad0d2a0..155a6c995 100644 --- a/.github/workflows/interop.yml +++ b/.github/workflows/interop.yml @@ -93,7 +93,7 @@ jobs: ${{ secrets.LAB_CONFIGURATION_JSON }} EOF DYN_CONFIG="$(python .quali/get_configuration.py --json ${{ steps.reservation.outputs.identifier }})" - jq ".CONFIGURATION.basic=$DYN_CONFIG" lab_info.json > lab_info.json.tmp && mv lab_info.json.tmp lab_info.json + jq ".CONFIGURATION.interop=$DYN_CONFIG" lab_info.json > lab_info.json.tmp && mv lab_info.json.tmp lab_info.json - name: run tests uses: ./.github/actions/run-tests diff --git a/.quali/get_configuration.py b/.quali/get_configuration.py index d1c904e97..b28780cd7 100644 --- a/.quali/get_configuration.py +++ b/.quali/get_configuration.py @@ -146,7 +146,7 @@ def main(): else: continue - entire_config = {config, pf_details} + entire_config = {"interop": config, "PERFECTO_DETAILS": pf_details} if args.json: print(json.dumps(entire_config)) else: From 701f8298d8d8bd9de86fdab45c79e1916ba9f5c0 Mon Sep 17 00:00:00 2001 From: dutta-rohan <94938704+dutta-rohan@users.noreply.github.com> Date: Tue, 15 Mar 2022 20:10:43 -0700 Subject: [PATCH 038/100] Modified .quali/get_config Signed-off-by: dutta-rohan <94938704+dutta-rohan@users.noreply.github.com> --- .quali/get_configuration.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.quali/get_configuration.py b/.quali/get_configuration.py index b28780cd7..f68f12cc0 100644 --- a/.quali/get_configuration.py +++ b/.quali/get_configuration.py @@ -146,11 +146,12 @@ def main(): else: continue - entire_config = {"interop": config, "PERFECTO_DETAILS": pf_details} + #entire_config = {"interop": config, "PERFECTO_DETAILS": pf_details} + config["PERFECTO_DETAILS"]=pf_details if args.json: - print(json.dumps(entire_config)) + print(json.dumps(config)) else: - print(repr(entire_config)) + print(repr(config)) if __name__ == '__main__': From c37429ece64d81d243cf1c8f9e03b3dbf6db4d86 Mon Sep 17 00:00:00 2001 From: dutta-rohan <94938704+dutta-rohan@users.noreply.github.com> Date: Wed, 16 Mar 2022 00:25:18 -0700 Subject: [PATCH 039/100] Modified .quali/get_config Signed-off-by: dutta-rohan <94938704+dutta-rohan@users.noreply.github.com> --- .quali/get_configuration.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/.quali/get_configuration.py b/.quali/get_configuration.py index f68f12cc0..950d8238b 100644 --- a/.quali/get_configuration.py +++ b/.quali/get_configuration.py @@ -146,12 +146,11 @@ def main(): else: continue - #entire_config = {"interop": config, "PERFECTO_DETAILS": pf_details} - config["PERFECTO_DETAILS"]=pf_details + entire_config = {"CONFIGURATION": config, "PERFECTO_DETAILS": pf_details} if args.json: - print(json.dumps(config)) + print(json.dumps(entire_config)) else: - print(repr(config)) + print(repr(entire_config)) if __name__ == '__main__': From d7cf65239b8cad7144364b4107e4801613053c66 Mon Sep 17 00:00:00 2001 From: dutta-rohan <94938704+dutta-rohan@users.noreply.github.com> Date: Wed, 23 Mar 2022 07:43:54 -0700 Subject: [PATCH 040/100] Modified .quali/get_config Signed-off-by: dutta-rohan <94938704+dutta-rohan@users.noreply.github.com> --- .quali/get_configuration.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.quali/get_configuration.py b/.quali/get_configuration.py index 950d8238b..cfaa2fc48 100644 --- a/.quali/get_configuration.py +++ b/.quali/get_configuration.py @@ -148,9 +148,9 @@ def main(): entire_config = {"CONFIGURATION": config, "PERFECTO_DETAILS": pf_details} if args.json: - print(json.dumps(entire_config)) + print(json.dumps(config)) else: - print(repr(entire_config)) + print(repr(config)) if __name__ == '__main__': From 9a31a4c479f4f0c3c1db9c9a0b27dfa6b515bd47 Mon Sep 17 00:00:00 2001 From: dutta-rohan <94938704+dutta-rohan@users.noreply.github.com> Date: Wed, 23 Mar 2022 13:27:43 -0700 Subject: [PATCH 041/100] Modified .quali/get_config Signed-off-by: dutta-rohan <94938704+dutta-rohan@users.noreply.github.com> --- .github/workflows/interop.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/interop.yml b/.github/workflows/interop.yml index 155a6c995..c54849931 100644 --- a/.github/workflows/interop.yml +++ b/.github/workflows/interop.yml @@ -71,7 +71,7 @@ jobs: CLOUDSHELL_USER: ${{ secrets.CLOUDSHELL_USER }} CLOUDSHELL_PASSWORD: ${{ secrets.CLOUDSHELL_PASSWORD }} run: | - python .quali/start_reservation.py --global-inputs '{"EAP 101":"1","iOS Phones Quantity":"1","securityToken":"eyJhbGciOiJIUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICI3NzkzZGM0Ni1jZmU4LTQ4ODMtYjhiOS02ZWFlZGU2OTc2MDkifQ.eyJpYXQiOjE2MzI4Mzc2NDEsImp0aSI6IjAwZGRiYWY5LWQwYjMtNDRjNS1hYjVlLTkyNzFlNzc5ZGUzNiIsImlzcyI6Imh0dHBzOi8vYXV0aDIucGVyZmVjdG9tb2JpbGUuY29tL2F1dGgvcmVhbG1zL3RpcC1wZXJmZWN0b21vYmlsZS1jb20iLCJhdWQiOiJodHRwczovL2F1dGgyLnBlcmZlY3RvbW9iaWxlLmNvbS9hdXRoL3JlYWxtcy90aXAtcGVyZmVjdG9tb2JpbGUtY29tIiwic3ViIjoiODNkNjUxMWQtNTBmZS00ZWM5LThkNzAtYTA0ZjBkNTdiZDUyIiwidHlwIjoiT2ZmbGluZSIsImF6cCI6Im9mZmxpbmUtdG9rZW4tZ2VuZXJhdG9yIiwibm9uY2UiOiI2ZjE1YzYxNy01YTU5LTQyOWEtODc2Yi1jOTQxMTQ1ZDFkZTIiLCJzZXNzaW9uX3N0YXRlIjoiYmRjZTFmYTMtMjlkYi00MmFmLWI5YWMtYjZjZmJkMDEyOTFhIiwic2NvcGUiOiJvcGVuaWQgcHJvZmlsZSBvZmZsaW5lX2FjY2VzcyBlbWFpbCJ9.5R85_1R38ZFXv_wIjjCIsj8NJm1p66dCsLJI5DBEmks"}' "InterOp Lab - Generic Selection" + python .quali/start_reservation.py --global-inputs '{"EAP 101":"1","iOS Phones Quantity":"1","LANForge":"1","securityToken":"eyJhbGciOiJIUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICI3NzkzZGM0Ni1jZmU4LTQ4ODMtYjhiOS02ZWFlZGU2OTc2MDkifQ.eyJpYXQiOjE2MzI4Mzc2NDEsImp0aSI6IjAwZGRiYWY5LWQwYjMtNDRjNS1hYjVlLTkyNzFlNzc5ZGUzNiIsImlzcyI6Imh0dHBzOi8vYXV0aDIucGVyZmVjdG9tb2JpbGUuY29tL2F1dGgvcmVhbG1zL3RpcC1wZXJmZWN0b21vYmlsZS1jb20iLCJhdWQiOiJodHRwczovL2F1dGgyLnBlcmZlY3RvbW9iaWxlLmNvbS9hdXRoL3JlYWxtcy90aXAtcGVyZmVjdG9tb2JpbGUtY29tIiwic3ViIjoiODNkNjUxMWQtNTBmZS00ZWM5LThkNzAtYTA0ZjBkNTdiZDUyIiwidHlwIjoiT2ZmbGluZSIsImF6cCI6Im9mZmxpbmUtdG9rZW4tZ2VuZXJhdG9yIiwibm9uY2UiOiI2ZjE1YzYxNy01YTU5LTQyOWEtODc2Yi1jOTQxMTQ1ZDFkZTIiLCJzZXNzaW9uX3N0YXRlIjoiYmRjZTFmYTMtMjlkYi00MmFmLWI5YWMtYjZjZmJkMDEyOTFhIiwic2NvcGUiOiJvcGVuaWQgcHJvZmlsZSBvZmZsaW5lX2FjY2VzcyBlbWFpbCJ9.5R85_1R38ZFXv_wIjjCIsj8NJm1p66dCsLJI5DBEmks"}' "InterOp Lab - Generic Selection" - name: set reservation outputs if: always() From f18c46c28c5f9ac1083570bfecc0af4b385c3870 Mon Sep 17 00:00:00 2001 From: dutta-rohan <94938704+dutta-rohan@users.noreply.github.com> Date: Thu, 24 Mar 2022 05:25:27 -0700 Subject: [PATCH 042/100] Modified .quali/get_config Signed-off-by: dutta-rohan <94938704+dutta-rohan@users.noreply.github.com> --- .github/workflows/interop.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/interop.yml b/.github/workflows/interop.yml index c54849931..f631990fa 100644 --- a/.github/workflows/interop.yml +++ b/.github/workflows/interop.yml @@ -93,7 +93,7 @@ jobs: ${{ secrets.LAB_CONFIGURATION_JSON }} EOF DYN_CONFIG="$(python .quali/get_configuration.py --json ${{ steps.reservation.outputs.identifier }})" - jq ".CONFIGURATION.interop=$DYN_CONFIG" lab_info.json > lab_info.json.tmp && mv lab_info.json.tmp lab_info.json + jq ".CONFIGURATION.basic=$DYN_CONFIG" lab_info.json > lab_info.json.tmp && mv lab_info.json.tmp lab_info.json - name: run tests uses: ./.github/actions/run-tests From 79d05522597fe5c4a4630b4ed3b7d914a0be0fe4 Mon Sep 17 00:00:00 2001 From: dutta-rohan <94938704+dutta-rohan@users.noreply.github.com> Date: Fri, 25 Mar 2022 05:57:45 -0700 Subject: [PATCH 043/100] Modified .quali/get_config Signed-off-by: dutta-rohan <94938704+dutta-rohan@users.noreply.github.com> --- .github/workflows/interop.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/interop.yml b/.github/workflows/interop.yml index f631990fa..a6754c6ee 100644 --- a/.github/workflows/interop.yml +++ b/.github/workflows/interop.yml @@ -92,6 +92,7 @@ jobs: cat << EOF > lab_info.json ${{ secrets.LAB_CONFIGURATION_JSON }} EOF + sed -i 's/interop/g' lab_info.json DYN_CONFIG="$(python .quali/get_configuration.py --json ${{ steps.reservation.outputs.identifier }})" jq ".CONFIGURATION.basic=$DYN_CONFIG" lab_info.json > lab_info.json.tmp && mv lab_info.json.tmp lab_info.json From fbe715037098727e849521427c4e85e820f81fc3 Mon Sep 17 00:00:00 2001 From: dutta-rohan <94938704+dutta-rohan@users.noreply.github.com> Date: Tue, 29 Mar 2022 14:51:16 -0700 Subject: [PATCH 044/100] Modified .quali/get_config Signed-off-by: dutta-rohan <94938704+dutta-rohan@users.noreply.github.com> --- .github/workflows/interop.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/interop.yml b/.github/workflows/interop.yml index a6754c6ee..55f5bad61 100644 --- a/.github/workflows/interop.yml +++ b/.github/workflows/interop.yml @@ -92,9 +92,9 @@ jobs: cat << EOF > lab_info.json ${{ secrets.LAB_CONFIGURATION_JSON }} EOF - sed -i 's/interop/g' lab_info.json + sed -i 's/interop-01/interop/g' lab_info.json DYN_CONFIG="$(python .quali/get_configuration.py --json ${{ steps.reservation.outputs.identifier }})" - jq ".CONFIGURATION.basic=$DYN_CONFIG" lab_info.json > lab_info.json.tmp && mv lab_info.json.tmp lab_info.json + jq ".CONFIGURATION.interop=$DYN_CONFIG" lab_info.json > lab_info.json.tmp && mv lab_info.json.tmp lab_info.json - name: run tests uses: ./.github/actions/run-tests From 0949ed4274223ff0358545528b431dbcf9023623 Mon Sep 17 00:00:00 2001 From: dutta-rohan <94938704+dutta-rohan@users.noreply.github.com> Date: Wed, 30 Mar 2022 07:39:36 -0700 Subject: [PATCH 045/100] Modified .quali/get_config Signed-off-by: dutta-rohan <94938704+dutta-rohan@users.noreply.github.com> --- .github/workflows/interop.yml | 3 +-- .quali/get_configuration.py | 4 ++-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/.github/workflows/interop.yml b/.github/workflows/interop.yml index 55f5bad61..5a4408029 100644 --- a/.github/workflows/interop.yml +++ b/.github/workflows/interop.yml @@ -92,9 +92,8 @@ jobs: cat << EOF > lab_info.json ${{ secrets.LAB_CONFIGURATION_JSON }} EOF - sed -i 's/interop-01/interop/g' lab_info.json DYN_CONFIG="$(python .quali/get_configuration.py --json ${{ steps.reservation.outputs.identifier }})" - jq ".CONFIGURATION.interop=$DYN_CONFIG" lab_info.json > lab_info.json.tmp && mv lab_info.json.tmp lab_info.json + jq ".CONFIGURATION=$DYN_CONFIG" lab_info.json > lab_info.json.tmp && mv lab_info.json.tmp lab_info.json - name: run tests uses: ./.github/actions/run-tests diff --git a/.quali/get_configuration.py b/.quali/get_configuration.py index cfaa2fc48..0278407a2 100644 --- a/.quali/get_configuration.py +++ b/.quali/get_configuration.py @@ -146,9 +146,9 @@ def main(): else: continue - entire_config = {"CONFIGURATION": config, "PERFECTO_DETAILS": pf_details} + entire_config = {"interop": config, "PERFECTO_DETAILS": pf_details} if args.json: - print(json.dumps(config)) + print(json.dumps(entire_config)) else: print(repr(config)) From ab7e9009c00417b9a3810a9b92593b6ae28e8bee Mon Sep 17 00:00:00 2001 From: dutta-rohan <94938704+dutta-rohan@users.noreply.github.com> Date: Wed, 30 Mar 2022 10:35:23 -0700 Subject: [PATCH 046/100] Modified .quali/get_config Signed-off-by: dutta-rohan <94938704+dutta-rohan@users.noreply.github.com> --- .quali/get_configuration.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.quali/get_configuration.py b/.quali/get_configuration.py index 0278407a2..efffaf1cc 100644 --- a/.quali/get_configuration.py +++ b/.quali/get_configuration.py @@ -146,7 +146,7 @@ def main(): else: continue - entire_config = {"interop": config, "PERFECTO_DETAILS": pf_details} + entire_config = {"interop-01": config, "PERFECTO_DETAILS": pf_details} if args.json: print(json.dumps(entire_config)) else: From 6d1580d2e8d8beb7e3419af988a0cd1f9eeb63a2 Mon Sep 17 00:00:00 2001 From: dutta-rohan <94938704+dutta-rohan@users.noreply.github.com> Date: Wed, 30 Mar 2022 18:54:35 -0700 Subject: [PATCH 047/100] Modified .quali/get_config Signed-off-by: dutta-rohan <94938704+dutta-rohan@users.noreply.github.com> --- .github/workflows/interop.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/interop.yml b/.github/workflows/interop.yml index 5a4408029..4f8996b91 100644 --- a/.github/workflows/interop.yml +++ b/.github/workflows/interop.yml @@ -93,6 +93,8 @@ jobs: ${{ secrets.LAB_CONFIGURATION_JSON }} EOF DYN_CONFIG="$(python .quali/get_configuration.py --json ${{ steps.reservation.outputs.identifier }})" + echo $DYN_CONFIG + cat lab_info.json jq ".CONFIGURATION=$DYN_CONFIG" lab_info.json > lab_info.json.tmp && mv lab_info.json.tmp lab_info.json - name: run tests From 7cdc284e8d189ccbd0ea3fd053235817152e44f3 Mon Sep 17 00:00:00 2001 From: Dmitry Dunaev Date: Thu, 31 Mar 2022 14:31:41 +0300 Subject: [PATCH 048/100] Separate commands per line Signed-off-by: Dmitry Dunaev --- .github/workflows/interop.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/interop.yml b/.github/workflows/interop.yml index 4f8996b91..81f228007 100644 --- a/.github/workflows/interop.yml +++ b/.github/workflows/interop.yml @@ -92,9 +92,16 @@ jobs: cat << EOF > lab_info.json ${{ secrets.LAB_CONFIGURATION_JSON }} EOF + DYN_CONFIG="$(python .quali/get_configuration.py --json ${{ steps.reservation.outputs.identifier }})" + + echo "Dyn config:" echo $DYN_CONFIG + + echo "Lab info:" cat lab_info.json + + echo "Merging files:" jq ".CONFIGURATION=$DYN_CONFIG" lab_info.json > lab_info.json.tmp && mv lab_info.json.tmp lab_info.json - name: run tests From c8e1adec2d7ead181947315e373e66794d2ffd46 Mon Sep 17 00:00:00 2001 From: Dmitry Dunaev Date: Thu, 31 Mar 2022 16:37:31 +0300 Subject: [PATCH 049/100] Chg: switch to self hosted and add sleep step --- .github/workflows/interop.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/interop.yml b/.github/workflows/interop.yml index 81f228007..2d621672a 100644 --- a/.github/workflows/interop.yml +++ b/.github/workflows/interop.yml @@ -56,7 +56,7 @@ jobs: # interop-01 test-galaxy-s9: - runs-on: ubuntu-latest + runs-on: [self-hosted, small] needs: [vars, build] if: "!cancelled() && contains(fromJSON(needs.vars.outputs.devices), 'galaxy-s9')" steps: @@ -104,6 +104,8 @@ jobs: echo "Merging files:" jq ".CONFIGURATION=$DYN_CONFIG" lab_info.json > lab_info.json.tmp && mv lab_info.json.tmp lab_info.json + sleep 999 + - name: run tests uses: ./.github/actions/run-tests with: From 08d8349163af0cf2bf4184790d5cee9fb6d9f976 Mon Sep 17 00:00:00 2001 From: Dmitry Dunaev Date: Thu, 31 Mar 2022 16:48:55 +0300 Subject: [PATCH 050/100] Add: AWS dependency --- .github/workflows/interop.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/interop.yml b/.github/workflows/interop.yml index 2d621672a..ceb5e331c 100644 --- a/.github/workflows/interop.yml +++ b/.github/workflows/interop.yml @@ -63,7 +63,9 @@ jobs: - uses: actions/checkout@v2 - name: install dependencies - run: pip install -r .quali/requirements.txt + run: | + pip install -r .quali/requirements.txt + pip install aws - name: start reservation env: From d63d0ad15838bb6bfbf420a9dfa77a1f00bc2b78 Mon Sep 17 00:00:00 2001 From: Dmitry Dunaev Date: Thu, 31 Mar 2022 17:06:27 +0300 Subject: [PATCH 051/100] Fix: awscli and deleted sleep step --- .github/workflows/interop.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/interop.yml b/.github/workflows/interop.yml index ceb5e331c..89b10a8c4 100644 --- a/.github/workflows/interop.yml +++ b/.github/workflows/interop.yml @@ -65,7 +65,9 @@ jobs: - name: install dependencies run: | pip install -r .quali/requirements.txt - pip install aws + curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip" + unzip awscliv2.zip + sudo ./aws/install - name: start reservation env: @@ -106,8 +108,6 @@ jobs: echo "Merging files:" jq ".CONFIGURATION=$DYN_CONFIG" lab_info.json > lab_info.json.tmp && mv lab_info.json.tmp lab_info.json - sleep 999 - - name: run tests uses: ./.github/actions/run-tests with: From 62c7454470fdd41c67a2236dc851cf393ac470d7 Mon Sep 17 00:00:00 2001 From: dutta-rohan <94938704+dutta-rohan@users.noreply.github.com> Date: Thu, 31 Mar 2022 11:34:23 -0700 Subject: [PATCH 052/100] Modified .quali/get_config Signed-off-by: dutta-rohan <94938704+dutta-rohan@users.noreply.github.com> --- .quali/get_configuration.py | 101 ++++++++++++++++++------------------ 1 file changed, 50 insertions(+), 51 deletions(-) diff --git a/.quali/get_configuration.py b/.quali/get_configuration.py index efffaf1cc..3c807e437 100644 --- a/.quali/get_configuration.py +++ b/.quali/get_configuration.py @@ -77,7 +77,6 @@ def main(): tf_config = {} for attribute in details.ResourceAttributes: key = attribute.Name.replace(f"{resource.ResourceModelName}.", '') - tf_config[key] = get_attribute_value(session, attribute) config['traffic_generator'] = { @@ -98,59 +97,59 @@ def main(): } } - # Perfecto Details + # Perfecto Details - input_map = {} - inputs = session.GetReservationInputs(reservationId=res_id).GlobalInputs - for given_input in inputs: - input_map[given_input.ParamName] = given_input.Value + input_map = {} + inputs = session.GetReservationInputs(reservationId=res_id).GlobalInputs + for given_input in inputs: + input_map[given_input.ParamName] = given_input.Value - pf_details['securityToken'] = input_map['securityToken'] - pf_details["projectName"]: "TIP-PyTest-Execution" - pf_details["projectVersion"] = "1.0" - pf_details["reportTags"] = "TestTag" - pf_details["perfectoURL"] = input_map["perfectoURL"] - for resource in session.GetReservationDetails(reservationId=res_id).ReservationDescription.Resources: - if resource.ResourceModelName == 'Phone': - details = session.GetResourceDetails(resource.Name) - phone_config = {} - for attribute in details.ResourceAttributes: - key = attribute.Name.replace(f"{resource.ResourceModelName}.", '') - phone_config[key] = get_attribute_value(session, attribute) - if phone_config["OS"] == "iOS": - pf_details[phone_config['model']] = \ - { - "model-iOS": phone_config['model'], - "bundleId-iOS": "com.apple.Preferences", - "platformName-iOS": phone_config['OS'], - "bundleId-iOS-Settings": "com.apple.Preferences", - "bundleId-iOS-Ping": "com.deftapps.ping", - "browserType-iOS": "Safari", - "bundleId-iOS-Safari": "com.apple.mobilesafari", - "platformName-android": "Android", - "appPackage-android": "com.android.settings", - "jobName": "Interop-" + phone_config['model'], - "jobNumber": 38 - } - elif phone_config["OS"] == "Android": - pf_details[phone_config['model']] = \ - { - "platformName-android": phone_config["OS"], - "model-android": phone_config["model"], - "appPackage-android": "com.android.settings", - "bundleId-iOS-Settings": "com.apple.Preferences", - "bundleId-iOS-Safari": "com.apple.mobilesafari", - "jobName": "Interop-" + refine(phone_config['model']), - "jobNumber": 38 - } - else: - continue - - entire_config = {"interop-01": config, "PERFECTO_DETAILS": pf_details} - if args.json: - print(json.dumps(entire_config)) + pf_details['securityToken'] = input_map['securityToken'] + pf_details["projectName"]: "TIP-PyTest-Execution" + pf_details["projectVersion"] = "1.0" + pf_details["reportTags"] = "TestTag" + pf_details["perfectoURL"] = input_map["perfectoURL"] + for resource in session.GetReservationDetails(reservationId=res_id).ReservationDescription.Resources: + if resource.ResourceModelName == 'Phone': + details = session.GetResourceDetails(resource.Name) + phone_config = {} + for attribute in details.ResourceAttributes: + key = attribute.Name.replace(f"{resource.ResourceModelName}.", '') + phone_config[key] = get_attribute_value(session, attribute) + if phone_config["OS"] == "iOS": + pf_details[phone_config['model']] = \ + { + "model-iOS": phone_config['model'], + "bundleId-iOS": "com.apple.Preferences", + "platformName-iOS": phone_config['OS'], + "bundleId-iOS-Settings": "com.apple.Preferences", + "bundleId-iOS-Ping": "com.deftapps.ping", + "browserType-iOS": "Safari", + "bundleId-iOS-Safari": "com.apple.mobilesafari", + "platformName-android": "Android", + "appPackage-android": "com.android.settings", + "jobName": "Interop-" + phone_config['model'], + "jobNumber": 38 + } + elif phone_config["OS"] == "Android": + pf_details[phone_config['model']] = \ + { + "platformName-android": phone_config["OS"], + "model-android": phone_config["model"], + "appPackage-android": "com.android.settings", + "bundleId-iOS-Settings": "com.apple.Preferences", + "bundleId-iOS-Safari": "com.apple.mobilesafari", + "jobName": "Interop-" + refine(phone_config['model']), + "jobNumber": 38 + } else: - print(repr(config)) + continue + + entire_config = {"interop-01": config, "PERFECTO_DETAILS": pf_details} + if args.json: + print(json.dumps(entire_config)) + else: + print(repr(config)) if __name__ == '__main__': From 16982b0ece7e0fa3f584a768960ded92a3dd1261 Mon Sep 17 00:00:00 2001 From: dutta-rohan <94938704+dutta-rohan@users.noreply.github.com> Date: Thu, 31 Mar 2022 11:54:57 -0700 Subject: [PATCH 053/100] Modified .quali/get_config Signed-off-by: dutta-rohan <94938704+dutta-rohan@users.noreply.github.com> --- .github/workflows/interop.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/interop.yml b/.github/workflows/interop.yml index 89b10a8c4..fb086c5d5 100644 --- a/.github/workflows/interop.yml +++ b/.github/workflows/interop.yml @@ -75,7 +75,7 @@ jobs: CLOUDSHELL_USER: ${{ secrets.CLOUDSHELL_USER }} CLOUDSHELL_PASSWORD: ${{ secrets.CLOUDSHELL_PASSWORD }} run: | - python .quali/start_reservation.py --global-inputs '{"EAP 101":"1","iOS Phones Quantity":"1","LANForge":"1","securityToken":"eyJhbGciOiJIUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICI3NzkzZGM0Ni1jZmU4LTQ4ODMtYjhiOS02ZWFlZGU2OTc2MDkifQ.eyJpYXQiOjE2MzI4Mzc2NDEsImp0aSI6IjAwZGRiYWY5LWQwYjMtNDRjNS1hYjVlLTkyNzFlNzc5ZGUzNiIsImlzcyI6Imh0dHBzOi8vYXV0aDIucGVyZmVjdG9tb2JpbGUuY29tL2F1dGgvcmVhbG1zL3RpcC1wZXJmZWN0b21vYmlsZS1jb20iLCJhdWQiOiJodHRwczovL2F1dGgyLnBlcmZlY3RvbW9iaWxlLmNvbS9hdXRoL3JlYWxtcy90aXAtcGVyZmVjdG9tb2JpbGUtY29tIiwic3ViIjoiODNkNjUxMWQtNTBmZS00ZWM5LThkNzAtYTA0ZjBkNTdiZDUyIiwidHlwIjoiT2ZmbGluZSIsImF6cCI6Im9mZmxpbmUtdG9rZW4tZ2VuZXJhdG9yIiwibm9uY2UiOiI2ZjE1YzYxNy01YTU5LTQyOWEtODc2Yi1jOTQxMTQ1ZDFkZTIiLCJzZXNzaW9uX3N0YXRlIjoiYmRjZTFmYTMtMjlkYi00MmFmLWI5YWMtYjZjZmJkMDEyOTFhIiwic2NvcGUiOiJvcGVuaWQgcHJvZmlsZSBvZmZsaW5lX2FjY2VzcyBlbWFpbCJ9.5R85_1R38ZFXv_wIjjCIsj8NJm1p66dCsLJI5DBEmks"}' "InterOp Lab - Generic Selection" + python .quali/start_reservation.py --global-inputs '{"Phone ID(s)":"1","AP ID(s)":"2","Include a LANForge?":"Yes","securityToken":"eyJhbGciOiJIUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICI3NzkzZGM0Ni1jZmU4LTQ4ODMtYjhiOS02ZWFlZGU2OTc2MDkifQ.eyJpYXQiOjE2MzI4Mzc2NDEsImp0aSI6IjAwZGRiYWY5LWQwYjMtNDRjNS1hYjVlLTkyNzFlNzc5ZGUzNiIsImlzcyI6Imh0dHBzOi8vYXV0aDIucGVyZmVjdG9tb2JpbGUuY29tL2F1dGgvcmVhbG1zL3RpcC1wZXJmZWN0b21vYmlsZS1jb20iLCJhdWQiOiJodHRwczovL2F1dGgyLnBlcmZlY3RvbW9iaWxlLmNvbS9hdXRoL3JlYWxtcy90aXAtcGVyZmVjdG9tb2JpbGUtY29tIiwic3ViIjoiODNkNjUxMWQtNTBmZS00ZWM5LThkNzAtYTA0ZjBkNTdiZDUyIiwidHlwIjoiT2ZmbGluZSIsImF6cCI6Im9mZmxpbmUtdG9rZW4tZ2VuZXJhdG9yIiwibm9uY2UiOiI2ZjE1YzYxNy01YTU5LTQyOWEtODc2Yi1jOTQxMTQ1ZDFkZTIiLCJzZXNzaW9uX3N0YXRlIjoiYmRjZTFmYTMtMjlkYi00MmFmLWI5YWMtYjZjZmJkMDEyOTFhIiwic2NvcGUiOiJvcGVuaWQgcHJvZmlsZSBvZmZsaW5lX2FjY2VzcyBlbWFpbCJ9.5R85_1R38ZFXv_wIjjCIsj8NJm1p66dCsLJI5DBEmks"}' "InterOp Lab - Specific Selection" - name: set reservation outputs if: always() From 1c9d4b70f1bb6f25cbe2a3aaa561622cf72a6979 Mon Sep 17 00:00:00 2001 From: dutta-rohan <94938704+dutta-rohan@users.noreply.github.com> Date: Thu, 31 Mar 2022 12:08:53 -0700 Subject: [PATCH 054/100] Modified .quali/get_config Signed-off-by: dutta-rohan <94938704+dutta-rohan@users.noreply.github.com> --- .github/workflows/interop.yml | 6 +++--- .quali/get_configuration.py | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/interop.yml b/.github/workflows/interop.yml index fb086c5d5..46c3255ee 100644 --- a/.github/workflows/interop.yml +++ b/.github/workflows/interop.yml @@ -75,7 +75,7 @@ jobs: CLOUDSHELL_USER: ${{ secrets.CLOUDSHELL_USER }} CLOUDSHELL_PASSWORD: ${{ secrets.CLOUDSHELL_PASSWORD }} run: | - python .quali/start_reservation.py --global-inputs '{"Phone ID(s)":"1","AP ID(s)":"2","Include a LANForge?":"Yes","securityToken":"eyJhbGciOiJIUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICI3NzkzZGM0Ni1jZmU4LTQ4ODMtYjhiOS02ZWFlZGU2OTc2MDkifQ.eyJpYXQiOjE2MzI4Mzc2NDEsImp0aSI6IjAwZGRiYWY5LWQwYjMtNDRjNS1hYjVlLTkyNzFlNzc5ZGUzNiIsImlzcyI6Imh0dHBzOi8vYXV0aDIucGVyZmVjdG9tb2JpbGUuY29tL2F1dGgvcmVhbG1zL3RpcC1wZXJmZWN0b21vYmlsZS1jb20iLCJhdWQiOiJodHRwczovL2F1dGgyLnBlcmZlY3RvbW9iaWxlLmNvbS9hdXRoL3JlYWxtcy90aXAtcGVyZmVjdG9tb2JpbGUtY29tIiwic3ViIjoiODNkNjUxMWQtNTBmZS00ZWM5LThkNzAtYTA0ZjBkNTdiZDUyIiwidHlwIjoiT2ZmbGluZSIsImF6cCI6Im9mZmxpbmUtdG9rZW4tZ2VuZXJhdG9yIiwibm9uY2UiOiI2ZjE1YzYxNy01YTU5LTQyOWEtODc2Yi1jOTQxMTQ1ZDFkZTIiLCJzZXNzaW9uX3N0YXRlIjoiYmRjZTFmYTMtMjlkYi00MmFmLWI5YWMtYjZjZmJkMDEyOTFhIiwic2NvcGUiOiJvcGVuaWQgcHJvZmlsZSBvZmZsaW5lX2FjY2VzcyBlbWFpbCJ9.5R85_1R38ZFXv_wIjjCIsj8NJm1p66dCsLJI5DBEmks"}' "InterOp Lab - Specific Selection" + python .quali/start_reservation.py --global-inputs '{"Phone ID(s)":"1","AP ID(s)":"1","Include a LANForge?":"Yes","securityToken":"eyJhbGciOiJIUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICI3NzkzZGM0Ni1jZmU4LTQ4ODMtYjhiOS02ZWFlZGU2OTc2MDkifQ.eyJpYXQiOjE2MzI4Mzc2NDEsImp0aSI6IjAwZGRiYWY5LWQwYjMtNDRjNS1hYjVlLTkyNzFlNzc5ZGUzNiIsImlzcyI6Imh0dHBzOi8vYXV0aDIucGVyZmVjdG9tb2JpbGUuY29tL2F1dGgvcmVhbG1zL3RpcC1wZXJmZWN0b21vYmlsZS1jb20iLCJhdWQiOiJodHRwczovL2F1dGgyLnBlcmZlY3RvbW9iaWxlLmNvbS9hdXRoL3JlYWxtcy90aXAtcGVyZmVjdG9tb2JpbGUtY29tIiwic3ViIjoiODNkNjUxMWQtNTBmZS00ZWM5LThkNzAtYTA0ZjBkNTdiZDUyIiwidHlwIjoiT2ZmbGluZSIsImF6cCI6Im9mZmxpbmUtdG9rZW4tZ2VuZXJhdG9yIiwibm9uY2UiOiI2ZjE1YzYxNy01YTU5LTQyOWEtODc2Yi1jOTQxMTQ1ZDFkZTIiLCJzZXNzaW9uX3N0YXRlIjoiYmRjZTFmYTMtMjlkYi00MmFmLWI5YWMtYjZjZmJkMDEyOTFhIiwic2NvcGUiOiJvcGVuaWQgcHJvZmlsZSBvZmZsaW5lX2FjY2VzcyBlbWFpbCJ9.5R85_1R38ZFXv_wIjjCIsj8NJm1p66dCsLJI5DBEmks"}' "InterOp Lab - Specific Selection" - name: set reservation outputs if: always() @@ -112,9 +112,9 @@ jobs: uses: ./.github/actions/run-tests with: namespace: interop-${{ github.run_id }}-galaxy-s9 - testbed: interop-01 + testbed: interop marker_expression: "${{ needs.vars.outputs.marker_overwrite || 'interop_uc_sanity and client_connect and android and not wpa3_personal' }}" - configuration: "${{ secrets.LAB_CONFIGURATION_JSON }}" + configuration: "./lab_info.json" testing_docker_image: tip-tip-wlan-cloud-docker-repo.jfrog.io/cloud-sdk-nightly:${{ github.run_id }} additional_args: "--device='Galaxy S9' --skip-lanforge" allure_results_artifact_name: allure-results-galaxy-s9 diff --git a/.quali/get_configuration.py b/.quali/get_configuration.py index 3c807e437..9cb7e87af 100644 --- a/.quali/get_configuration.py +++ b/.quali/get_configuration.py @@ -145,7 +145,7 @@ def main(): else: continue - entire_config = {"interop-01": config, "PERFECTO_DETAILS": pf_details} + entire_config = {"interop": config, "PERFECTO_DETAILS": pf_details} if args.json: print(json.dumps(entire_config)) else: From 132cb6b61c7a723f99a2e9f53df051bf4111fd31 Mon Sep 17 00:00:00 2001 From: dutta-rohan <94938704+dutta-rohan@users.noreply.github.com> Date: Thu, 31 Mar 2022 12:32:07 -0700 Subject: [PATCH 055/100] Modified .quali/get_config Signed-off-by: dutta-rohan <94938704+dutta-rohan@users.noreply.github.com> --- .github/workflows/interop.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/interop.yml b/.github/workflows/interop.yml index 46c3255ee..d5c23c9d8 100644 --- a/.github/workflows/interop.yml +++ b/.github/workflows/interop.yml @@ -87,6 +87,11 @@ jobs: - name: get EKS access credentials run: aws eks update-kubeconfig --name ${{ env.AWS_EKS_NAME }} + - name: install kubectl + run: | + curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl" + sudo install -o root -g root -m 0755 kubectl /usr/local/bin/kubectl + - name: prepare configuration env: CLOUDSHELL_URL: quali-cloudshell.lab.wlan.tip.build From ff876349ef9ad3c5b635ab563c4d2ffe1d2663cc Mon Sep 17 00:00:00 2001 From: dutta-rohan <94938704+dutta-rohan@users.noreply.github.com> Date: Thu, 31 Mar 2022 13:02:18 -0700 Subject: [PATCH 056/100] Modified .quali/get_config Signed-off-by: dutta-rohan <94938704+dutta-rohan@users.noreply.github.com> --- .github/workflows/interop.yml | 2 +- .quali/get_configuration.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/interop.yml b/.github/workflows/interop.yml index d5c23c9d8..52fda7f59 100644 --- a/.github/workflows/interop.yml +++ b/.github/workflows/interop.yml @@ -111,7 +111,7 @@ jobs: cat lab_info.json echo "Merging files:" - jq ".CONFIGURATION=$DYN_CONFIG" lab_info.json > lab_info.json.tmp && mv lab_info.json.tmp lab_info.json + jq ".CONFIGURATION.interop=$DYN_CONFIG" lab_info.json > lab_info.json.tmp && mv lab_info.json.tmp lab_info.json - name: run tests uses: ./.github/actions/run-tests diff --git a/.quali/get_configuration.py b/.quali/get_configuration.py index 9cb7e87af..dc02530de 100644 --- a/.quali/get_configuration.py +++ b/.quali/get_configuration.py @@ -147,7 +147,7 @@ def main(): entire_config = {"interop": config, "PERFECTO_DETAILS": pf_details} if args.json: - print(json.dumps(entire_config)) + print(json.dumps(config)) else: print(repr(config)) From e85576d4706f380472abeb0d7cd382dc26fa06f4 Mon Sep 17 00:00:00 2001 From: dutta-rohan <94938704+dutta-rohan@users.noreply.github.com> Date: Thu, 31 Mar 2022 17:03:29 -0700 Subject: [PATCH 057/100] Modified .quali/get_config Signed-off-by: dutta-rohan <94938704+dutta-rohan@users.noreply.github.com> --- .quali/get_configuration.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.quali/get_configuration.py b/.quali/get_configuration.py index dc02530de..3ccc7c59c 100644 --- a/.quali/get_configuration.py +++ b/.quali/get_configuration.py @@ -68,7 +68,8 @@ def main(): key = 'username' if key == 'uname' else key key = 'password' if key == 'passkey' else key - ap_config[key] = get_attribute_value(session, attribute) + if get_attribute_value(session, attribute) != "": + ap_config[key] = get_attribute_value(session, attribute) config['access_point'].append(ap_config) @@ -108,7 +109,11 @@ def main(): pf_details["projectName"]: "TIP-PyTest-Execution" pf_details["projectVersion"] = "1.0" pf_details["reportTags"] = "TestTag" - pf_details["perfectoURL"] = input_map["perfectoURL"] + if input_map["perfectoURL"] == "": + pf_details["perfectoURL"] = "tip" + else: + pf_details["perfectoURL"] = input_map["perfectoURL"] + for resource in session.GetReservationDetails(reservationId=res_id).ReservationDescription.Resources: if resource.ResourceModelName == 'Phone': details = session.GetResourceDetails(resource.Name) From 1e470e200f1f85cdf58f88199c828d3fdac15bbb Mon Sep 17 00:00:00 2001 From: dutta-rohan <94938704+dutta-rohan@users.noreply.github.com> Date: Thu, 31 Mar 2022 18:46:40 -0700 Subject: [PATCH 058/100] Modified .quali/get_config Signed-off-by: dutta-rohan <94938704+dutta-rohan@users.noreply.github.com> --- .quali/get_configuration.py | 68 ++----------------------------------- 1 file changed, 3 insertions(+), 65 deletions(-) diff --git a/.quali/get_configuration.py b/.quali/get_configuration.py index 3ccc7c59c..f53f4db36 100644 --- a/.quali/get_configuration.py +++ b/.quali/get_configuration.py @@ -18,14 +18,6 @@ def get_attribute_value(cloudshell_session, attribute): return attribute.Value -def refine(s): - parts = s.split(" ") - part1 = parts[0] - part2 = parts[-1] - part2_clean = ''.join(e for e in part2 if e.isalnum()) - return part1 + "-" + part2_clean - - def main(): argparser = argparse.ArgumentParser() argparser.add_argument('--json', default=False, help="render configuration as JSON instead of Python dict", action='store_true') @@ -45,9 +37,6 @@ def main(): 'traffic_generator': {} } - pf_details = {} - - for service in services_in_reservation: if service.ServiceName != 'Helm Service V2': continue @@ -68,8 +57,7 @@ def main(): key = 'username' if key == 'uname' else key key = 'password' if key == 'passkey' else key - if get_attribute_value(session, attribute) != "": - ap_config[key] = get_attribute_value(session, attribute) + ap_config[key] = get_attribute_value(session, attribute) config['access_point'].append(ap_config) @@ -78,6 +66,7 @@ def main(): tf_config = {} for attribute in details.ResourceAttributes: key = attribute.Name.replace(f"{resource.ResourceModelName}.", '') + tf_config[key] = get_attribute_value(session, attribute) config['traffic_generator'] = { @@ -97,60 +86,9 @@ def main(): 'AX-Station-Name': tf_config['AX_Station_Name'] } } - - # Perfecto Details - - input_map = {} - inputs = session.GetReservationInputs(reservationId=res_id).GlobalInputs - for given_input in inputs: - input_map[given_input.ParamName] = given_input.Value - - pf_details['securityToken'] = input_map['securityToken'] - pf_details["projectName"]: "TIP-PyTest-Execution" - pf_details["projectVersion"] = "1.0" - pf_details["reportTags"] = "TestTag" - if input_map["perfectoURL"] == "": - pf_details["perfectoURL"] = "tip" - else: - pf_details["perfectoURL"] = input_map["perfectoURL"] - - for resource in session.GetReservationDetails(reservationId=res_id).ReservationDescription.Resources: - if resource.ResourceModelName == 'Phone': - details = session.GetResourceDetails(resource.Name) - phone_config = {} - for attribute in details.ResourceAttributes: - key = attribute.Name.replace(f"{resource.ResourceModelName}.", '') - phone_config[key] = get_attribute_value(session, attribute) - if phone_config["OS"] == "iOS": - pf_details[phone_config['model']] = \ - { - "model-iOS": phone_config['model'], - "bundleId-iOS": "com.apple.Preferences", - "platformName-iOS": phone_config['OS'], - "bundleId-iOS-Settings": "com.apple.Preferences", - "bundleId-iOS-Ping": "com.deftapps.ping", - "browserType-iOS": "Safari", - "bundleId-iOS-Safari": "com.apple.mobilesafari", - "platformName-android": "Android", - "appPackage-android": "com.android.settings", - "jobName": "Interop-" + phone_config['model'], - "jobNumber": 38 - } - elif phone_config["OS"] == "Android": - pf_details[phone_config['model']] = \ - { - "platformName-android": phone_config["OS"], - "model-android": phone_config["model"], - "appPackage-android": "com.android.settings", - "bundleId-iOS-Settings": "com.apple.Preferences", - "bundleId-iOS-Safari": "com.apple.mobilesafari", - "jobName": "Interop-" + refine(phone_config['model']), - "jobNumber": 38 - } else: continue - entire_config = {"interop": config, "PERFECTO_DETAILS": pf_details} if args.json: print(json.dumps(config)) else: @@ -158,4 +96,4 @@ def main(): if __name__ == '__main__': - main() + main() \ No newline at end of file From 9d3299eb3cf5f0ad3d54e07aa45c5a7eb707476f Mon Sep 17 00:00:00 2001 From: Dmitry Dunaev Date: Fri, 1 Apr 2022 15:41:38 +0300 Subject: [PATCH 059/100] Dbg: add sleep to get config Signed-off-by: Dmitry Dunaev --- .github/workflows/interop.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/interop.yml b/.github/workflows/interop.yml index 52fda7f59..405af7e6b 100644 --- a/.github/workflows/interop.yml +++ b/.github/workflows/interop.yml @@ -56,7 +56,9 @@ jobs: # interop-01 test-galaxy-s9: + # TODO switch to hosted runner runs-on: [self-hosted, small] + #runs-on: ubuntu-latest needs: [vars, build] if: "!cancelled() && contains(fromJSON(needs.vars.outputs.devices), 'galaxy-s9')" steps: @@ -113,6 +115,9 @@ jobs: echo "Merging files:" jq ".CONFIGURATION.interop=$DYN_CONFIG" lab_info.json > lab_info.json.tmp && mv lab_info.json.tmp lab_info.json + # TODO delete after tests + sleep 999 + - name: run tests uses: ./.github/actions/run-tests with: From d59f9594434545ea3b5fac98fe4e9e0208f35aa9 Mon Sep 17 00:00:00 2001 From: Dmitry Dunaev Date: Fri, 1 Apr 2022 15:52:46 +0300 Subject: [PATCH 060/100] Del: debug lines Signed-off-by: Dmitry Dunaev --- .github/workflows/interop.yml | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/.github/workflows/interop.yml b/.github/workflows/interop.yml index 405af7e6b..0925b9abe 100644 --- a/.github/workflows/interop.yml +++ b/.github/workflows/interop.yml @@ -56,9 +56,7 @@ jobs: # interop-01 test-galaxy-s9: - # TODO switch to hosted runner - runs-on: [self-hosted, small] - #runs-on: ubuntu-latest + runs-on: ubuntu-latest needs: [vars, build] if: "!cancelled() && contains(fromJSON(needs.vars.outputs.devices), 'galaxy-s9')" steps: @@ -115,9 +113,6 @@ jobs: echo "Merging files:" jq ".CONFIGURATION.interop=$DYN_CONFIG" lab_info.json > lab_info.json.tmp && mv lab_info.json.tmp lab_info.json - # TODO delete after tests - sleep 999 - - name: run tests uses: ./.github/actions/run-tests with: From e6fa853a38e70fc2eae8129e02cf8889e9361f94 Mon Sep 17 00:00:00 2001 From: dutta-rohan <94938704+dutta-rohan@users.noreply.github.com> Date: Tue, 5 Apr 2022 11:41:00 -0700 Subject: [PATCH 061/100] Modified .quali/get_config Signed-off-by: dutta-rohan <94938704+dutta-rohan@users.noreply.github.com> --- .github/workflows/interop.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/interop.yml b/.github/workflows/interop.yml index 52fda7f59..3319ec899 100644 --- a/.github/workflows/interop.yml +++ b/.github/workflows/interop.yml @@ -65,9 +65,9 @@ jobs: - name: install dependencies run: | pip install -r .quali/requirements.txt - curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip" - unzip awscliv2.zip - sudo ./aws/install +# curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip" +# unzip awscliv2.zip +# sudo ./aws/install - name: start reservation env: From 93eff88b4a9d57233770f6334a2bbf042b8df35e Mon Sep 17 00:00:00 2001 From: dutta-rohan <94938704+dutta-rohan@users.noreply.github.com> Date: Wed, 6 Apr 2022 07:44:06 -0700 Subject: [PATCH 062/100] Modified .quali/get_config Signed-off-by: dutta-rohan <94938704+dutta-rohan@users.noreply.github.com> --- .quali/get_configuration.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.quali/get_configuration.py b/.quali/get_configuration.py index f53f4db36..dd55e2d61 100644 --- a/.quali/get_configuration.py +++ b/.quali/get_configuration.py @@ -57,7 +57,9 @@ def main(): key = 'username' if key == 'uname' else key key = 'password' if key == 'passkey' else key - ap_config[key] = get_attribute_value(session, attribute) + if get_attribute_value(session, attribute) != "": + ap_config[key] = get_attribute_value(session, attribute) + #ap_config[key] = get_attribute_value(session, attribute) config['access_point'].append(ap_config) From 9db4e9d229fc0b7895f812670ac81190b0fd0855 Mon Sep 17 00:00:00 2001 From: dutta-rohan <94938704+dutta-rohan@users.noreply.github.com> Date: Wed, 6 Apr 2022 11:07:15 -0700 Subject: [PATCH 063/100] Modified .quali/get_config Signed-off-by: dutta-rohan <94938704+dutta-rohan@users.noreply.github.com> --- .github/workflows/interop.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/interop.yml b/.github/workflows/interop.yml index 452152055..e681f303a 100644 --- a/.github/workflows/interop.yml +++ b/.github/workflows/interop.yml @@ -56,7 +56,7 @@ jobs: # interop-01 test-galaxy-s9: - runs-on: ubuntu-latest + runs-on: [self-hosted, small] needs: [vars, build] if: "!cancelled() && contains(fromJSON(needs.vars.outputs.devices), 'galaxy-s9')" steps: @@ -112,6 +112,7 @@ jobs: echo "Merging files:" jq ".CONFIGURATION.interop=$DYN_CONFIG" lab_info.json > lab_info.json.tmp && mv lab_info.json.tmp lab_info.json + sleep 999 - name: run tests uses: ./.github/actions/run-tests From 54bfe42a5038707f662f2d5682e4b92913e8187f Mon Sep 17 00:00:00 2001 From: dutta-rohan <94938704+dutta-rohan@users.noreply.github.com> Date: Thu, 7 Apr 2022 10:58:04 -0700 Subject: [PATCH 064/100] Modified .quali/get_config Signed-off-by: dutta-rohan <94938704+dutta-rohan@users.noreply.github.com> --- .github/workflows/interop.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/interop.yml b/.github/workflows/interop.yml index e681f303a..ca0ff69a8 100644 --- a/.github/workflows/interop.yml +++ b/.github/workflows/interop.yml @@ -65,9 +65,9 @@ jobs: - name: install dependencies run: | pip install -r .quali/requirements.txt -# curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip" -# unzip awscliv2.zip -# sudo ./aws/install + curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip" + unzip awscliv2.zip + sudo ./aws/install - name: start reservation env: From 10a507797a9c5985cdf3eb10155ac5188c17c9d2 Mon Sep 17 00:00:00 2001 From: dutta-rohan <94938704+dutta-rohan@users.noreply.github.com> Date: Wed, 13 Apr 2022 11:38:20 -0700 Subject: [PATCH 065/100] Modified .quali/get_config Signed-off-by: dutta-rohan <94938704+dutta-rohan@users.noreply.github.com> --- .github/workflows/interop.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/interop.yml b/.github/workflows/interop.yml index ca0ff69a8..db86eed17 100644 --- a/.github/workflows/interop.yml +++ b/.github/workflows/interop.yml @@ -120,7 +120,7 @@ jobs: namespace: interop-${{ github.run_id }}-galaxy-s9 testbed: interop marker_expression: "${{ needs.vars.outputs.marker_overwrite || 'interop_uc_sanity and client_connect and android and not wpa3_personal' }}" - configuration: "./lab_info.json" + configuration: "lab_info.json" testing_docker_image: tip-tip-wlan-cloud-docker-repo.jfrog.io/cloud-sdk-nightly:${{ github.run_id }} additional_args: "--device='Galaxy S9' --skip-lanforge" allure_results_artifact_name: allure-results-galaxy-s9 From 3332142dcb10569ad04905faf8bb564c44cc9ffe Mon Sep 17 00:00:00 2001 From: dutta-rohan <94938704+dutta-rohan@users.noreply.github.com> Date: Wed, 13 Apr 2022 12:15:51 -0700 Subject: [PATCH 066/100] Modified .quali/get_config Signed-off-by: dutta-rohan <94938704+dutta-rohan@users.noreply.github.com> --- .github/workflows/interop.yml | 7 ------- 1 file changed, 7 deletions(-) diff --git a/.github/workflows/interop.yml b/.github/workflows/interop.yml index db86eed17..4b14e849e 100644 --- a/.github/workflows/interop.yml +++ b/.github/workflows/interop.yml @@ -104,13 +104,6 @@ jobs: DYN_CONFIG="$(python .quali/get_configuration.py --json ${{ steps.reservation.outputs.identifier }})" - echo "Dyn config:" - echo $DYN_CONFIG - - echo "Lab info:" - cat lab_info.json - - echo "Merging files:" jq ".CONFIGURATION.interop=$DYN_CONFIG" lab_info.json > lab_info.json.tmp && mv lab_info.json.tmp lab_info.json sleep 999 From d7332a8adbe7b9609fda13f72f76cb7b73bd4ce2 Mon Sep 17 00:00:00 2001 From: dutta-rohan <94938704+dutta-rohan@users.noreply.github.com> Date: Wed, 13 Apr 2022 14:37:06 -0700 Subject: [PATCH 067/100] Modified .quali/get_config Signed-off-by: dutta-rohan <94938704+dutta-rohan@users.noreply.github.com> --- .github/workflows/interop.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/interop.yml b/.github/workflows/interop.yml index 4b14e849e..d02cfe170 100644 --- a/.github/workflows/interop.yml +++ b/.github/workflows/interop.yml @@ -113,7 +113,7 @@ jobs: namespace: interop-${{ github.run_id }}-galaxy-s9 testbed: interop marker_expression: "${{ needs.vars.outputs.marker_overwrite || 'interop_uc_sanity and client_connect and android and not wpa3_personal' }}" - configuration: "lab_info.json" + configuration: "${{ secrets.LAB_CONFIGURATION_JSON }}" testing_docker_image: tip-tip-wlan-cloud-docker-repo.jfrog.io/cloud-sdk-nightly:${{ github.run_id }} additional_args: "--device='Galaxy S9' --skip-lanforge" allure_results_artifact_name: allure-results-galaxy-s9 From 6f8aea5b9dc7aaa8e44bee1ceb12080633ce9241 Mon Sep 17 00:00:00 2001 From: dutta-rohan <94938704+dutta-rohan@users.noreply.github.com> Date: Wed, 13 Apr 2022 15:43:46 -0700 Subject: [PATCH 068/100] Modified .quali/get_config Signed-off-by: dutta-rohan <94938704+dutta-rohan@users.noreply.github.com> --- .github/workflows/interop.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/interop.yml b/.github/workflows/interop.yml index d02cfe170..36737e1a2 100644 --- a/.github/workflows/interop.yml +++ b/.github/workflows/interop.yml @@ -105,7 +105,11 @@ jobs: DYN_CONFIG="$(python .quali/get_configuration.py --json ${{ steps.reservation.outputs.identifier }})" jq ".CONFIGURATION.interop=$DYN_CONFIG" lab_info.json > lab_info.json.tmp && mv lab_info.json.tmp lab_info.json - sleep 999 + + if [ ${{ needs.vars.outputs.existing_controller }} != '' ] + then + jq '.CONFIGURATION.basic.controller.url="https://sec-${{ needs.vars.outputs.existing_controller }}.cicd.lab.wlan.tip.build:16001"' lab_info.json > lab_info.json.tmp && mv lab_info.json.tmp lab_info.json + fi - name: run tests uses: ./.github/actions/run-tests @@ -113,7 +117,7 @@ jobs: namespace: interop-${{ github.run_id }}-galaxy-s9 testbed: interop marker_expression: "${{ needs.vars.outputs.marker_overwrite || 'interop_uc_sanity and client_connect and android and not wpa3_personal' }}" - configuration: "${{ secrets.LAB_CONFIGURATION_JSON }}" + configuration: "./lab_info.json" testing_docker_image: tip-tip-wlan-cloud-docker-repo.jfrog.io/cloud-sdk-nightly:${{ github.run_id }} additional_args: "--device='Galaxy S9' --skip-lanforge" allure_results_artifact_name: allure-results-galaxy-s9 From c7a45b66de2b8277a1dc7fd5ed14d6bf24fc3b3a Mon Sep 17 00:00:00 2001 From: dutta-rohan <94938704+dutta-rohan@users.noreply.github.com> Date: Wed, 13 Apr 2022 15:57:47 -0700 Subject: [PATCH 069/100] Modified .quali/get_config Signed-off-by: dutta-rohan <94938704+dutta-rohan@users.noreply.github.com> --- .github/workflows/interop.yml | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/.github/workflows/interop.yml b/.github/workflows/interop.yml index 36737e1a2..d94b1d6be 100644 --- a/.github/workflows/interop.yml +++ b/.github/workflows/interop.yml @@ -105,11 +105,7 @@ jobs: DYN_CONFIG="$(python .quali/get_configuration.py --json ${{ steps.reservation.outputs.identifier }})" jq ".CONFIGURATION.interop=$DYN_CONFIG" lab_info.json > lab_info.json.tmp && mv lab_info.json.tmp lab_info.json - - if [ ${{ needs.vars.outputs.existing_controller }} != '' ] - then - jq '.CONFIGURATION.basic.controller.url="https://sec-${{ needs.vars.outputs.existing_controller }}.cicd.lab.wlan.tip.build:16001"' lab_info.json > lab_info.json.tmp && mv lab_info.json.tmp lab_info.json - fi + sleep 999 - name: run tests uses: ./.github/actions/run-tests From 1e50c3fe3902ac63d0c0af86ab3526635fe6314d Mon Sep 17 00:00:00 2001 From: dutta-rohan <94938704+dutta-rohan@users.noreply.github.com> Date: Thu, 14 Apr 2022 07:44:43 -0700 Subject: [PATCH 070/100] Modified .quali/get_config Signed-off-by: dutta-rohan <94938704+dutta-rohan@users.noreply.github.com> --- .github/workflows/interop.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/interop.yml b/.github/workflows/interop.yml index d94b1d6be..e03d91444 100644 --- a/.github/workflows/interop.yml +++ b/.github/workflows/interop.yml @@ -113,7 +113,7 @@ jobs: namespace: interop-${{ github.run_id }}-galaxy-s9 testbed: interop marker_expression: "${{ needs.vars.outputs.marker_overwrite || 'interop_uc_sanity and client_connect and android and not wpa3_personal' }}" - configuration: "./lab_info.json" + configuration: "./lab_info-roh.json" testing_docker_image: tip-tip-wlan-cloud-docker-repo.jfrog.io/cloud-sdk-nightly:${{ github.run_id }} additional_args: "--device='Galaxy S9' --skip-lanforge" allure_results_artifact_name: allure-results-galaxy-s9 From 425f8b7463092e3501e2cc6156f0cd5538df6d7b Mon Sep 17 00:00:00 2001 From: dutta-rohan <94938704+dutta-rohan@users.noreply.github.com> Date: Thu, 14 Apr 2022 11:05:36 -0700 Subject: [PATCH 071/100] Modified .quali/get_config Signed-off-by: dutta-rohan <94938704+dutta-rohan@users.noreply.github.com> --- .github/workflows/interop.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/interop.yml b/.github/workflows/interop.yml index e03d91444..e4952c9a5 100644 --- a/.github/workflows/interop.yml +++ b/.github/workflows/interop.yml @@ -113,7 +113,7 @@ jobs: namespace: interop-${{ github.run_id }}-galaxy-s9 testbed: interop marker_expression: "${{ needs.vars.outputs.marker_overwrite || 'interop_uc_sanity and client_connect and android and not wpa3_personal' }}" - configuration: "./lab_info-roh.json" + configuration_file: "./lab_info.json" testing_docker_image: tip-tip-wlan-cloud-docker-repo.jfrog.io/cloud-sdk-nightly:${{ github.run_id }} additional_args: "--device='Galaxy S9' --skip-lanforge" allure_results_artifact_name: allure-results-galaxy-s9 From f5a8da59604f97d2790d7d9f22afd20b463bc15e Mon Sep 17 00:00:00 2001 From: dutta-rohan <94938704+dutta-rohan@users.noreply.github.com> Date: Thu, 14 Apr 2022 11:40:20 -0700 Subject: [PATCH 072/100] Modified .quali/get_config Signed-off-by: dutta-rohan <94938704+dutta-rohan@users.noreply.github.com> --- .github/workflows/interop.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/interop.yml b/.github/workflows/interop.yml index e4952c9a5..3d64078b4 100644 --- a/.github/workflows/interop.yml +++ b/.github/workflows/interop.yml @@ -56,7 +56,7 @@ jobs: # interop-01 test-galaxy-s9: - runs-on: [self-hosted, small] + runs-on: ubuntu-latest needs: [vars, build] if: "!cancelled() && contains(fromJSON(needs.vars.outputs.devices), 'galaxy-s9')" steps: @@ -105,7 +105,6 @@ jobs: DYN_CONFIG="$(python .quali/get_configuration.py --json ${{ steps.reservation.outputs.identifier }})" jq ".CONFIGURATION.interop=$DYN_CONFIG" lab_info.json > lab_info.json.tmp && mv lab_info.json.tmp lab_info.json - sleep 999 - name: run tests uses: ./.github/actions/run-tests From 04341ad20f572ceb2b3817471404057dc66ca83e Mon Sep 17 00:00:00 2001 From: dutta-rohan <94938704+dutta-rohan@users.noreply.github.com> Date: Thu, 14 Apr 2022 11:48:23 -0700 Subject: [PATCH 073/100] Modified .quali/get_config Signed-off-by: dutta-rohan <94938704+dutta-rohan@users.noreply.github.com> --- .github/workflows/interop.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/interop.yml b/.github/workflows/interop.yml index 3d64078b4..b58a3f68c 100644 --- a/.github/workflows/interop.yml +++ b/.github/workflows/interop.yml @@ -65,9 +65,9 @@ jobs: - name: install dependencies run: | pip install -r .quali/requirements.txt - curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip" - unzip awscliv2.zip - sudo ./aws/install + # curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip" + # unzip awscliv2.zip + # sudo ./aws/install - name: start reservation env: From d49f4e46fd75d3c69cadce917ff85e489270aa3c Mon Sep 17 00:00:00 2001 From: dutta-rohan <94938704+dutta-rohan@users.noreply.github.com> Date: Thu, 14 Apr 2022 13:42:29 -0700 Subject: [PATCH 074/100] Modified .quali/get_config Signed-off-by: dutta-rohan <94938704+dutta-rohan@users.noreply.github.com> --- .github/workflows/interop.yml | 58 ++++++++++++++++++++++++++++++++--- 1 file changed, 54 insertions(+), 4 deletions(-) diff --git a/.github/workflows/interop.yml b/.github/workflows/interop.yml index b58a3f68c..478cb96e1 100644 --- a/.github/workflows/interop.yml +++ b/.github/workflows/interop.yml @@ -138,27 +138,77 @@ jobs: steps: - uses: actions/checkout@v2 + - name: install dependencies + run: | + pip install -r .quali/requirements.txt + # curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip" + # unzip awscliv2.zip + # sudo ./aws/install + + - name: start reservation + env: + CLOUDSHELL_URL: quali-cloudshell.lab.wlan.tip.build + CLOUDSHELL_USER: ${{ secrets.CLOUDSHELL_USER }} + CLOUDSHELL_PASSWORD: ${{ secrets.CLOUDSHELL_PASSWORD }} + run: | + python .quali/start_reservation.py --global-inputs '{"Phone ID(s)":"6","AP ID(s)":"1","Include a LANForge?":"Yes","securityToken":"eyJhbGciOiJIUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICI3NzkzZGM0Ni1jZmU4LTQ4ODMtYjhiOS02ZWFlZGU2OTc2MDkifQ.eyJpYXQiOjE2MzI4Mzc2NDEsImp0aSI6IjAwZGRiYWY5LWQwYjMtNDRjNS1hYjVlLTkyNzFlNzc5ZGUzNiIsImlzcyI6Imh0dHBzOi8vYXV0aDIucGVyZmVjdG9tb2JpbGUuY29tL2F1dGgvcmVhbG1zL3RpcC1wZXJmZWN0b21vYmlsZS1jb20iLCJhdWQiOiJodHRwczovL2F1dGgyLnBlcmZlY3RvbW9iaWxlLmNvbS9hdXRoL3JlYWxtcy90aXAtcGVyZmVjdG9tb2JpbGUtY29tIiwic3ViIjoiODNkNjUxMWQtNTBmZS00ZWM5LThkNzAtYTA0ZjBkNTdiZDUyIiwidHlwIjoiT2ZmbGluZSIsImF6cCI6Im9mZmxpbmUtdG9rZW4tZ2VuZXJhdG9yIiwibm9uY2UiOiI2ZjE1YzYxNy01YTU5LTQyOWEtODc2Yi1jOTQxMTQ1ZDFkZTIiLCJzZXNzaW9uX3N0YXRlIjoiYmRjZTFmYTMtMjlkYi00MmFmLWI5YWMtYjZjZmJkMDEyOTFhIiwic2NvcGUiOiJvcGVuaWQgcHJvZmlsZSBvZmZsaW5lX2FjY2VzcyBlbWFpbCJ9.5R85_1R38ZFXv_wIjjCIsj8NJm1p66dCsLJI5DBEmks"}' "InterOp Lab - Specific Selection" + + - name: set reservation outputs + if: always() + id: reservation + run: | + echo ::set-output name=identifier::"$(cat ./reservation_id.txt)" + echo ::set-output name=namespace::"$(cat ./reservation_id.txt | cut -d "-" -f 1)" + - name: get EKS access credentials run: aws eks update-kubeconfig --name ${{ env.AWS_EKS_NAME }} + - name: install kubectl + run: | + curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl" + sudo install -o root -g root -m 0755 kubectl /usr/local/bin/kubectl + + - name: prepare configuration + env: + CLOUDSHELL_URL: quali-cloudshell.lab.wlan.tip.build + CLOUDSHELL_USER: ${{ secrets.CLOUDSHELL_USER }} + CLOUDSHELL_PASSWORD: ${{ secrets.CLOUDSHELL_PASSWORD }} + run: | + cat << EOF > lab_info.json + ${{ secrets.LAB_CONFIGURATION_JSON }} + EOF + + DYN_CONFIG="$(python .quali/get_configuration.py --json ${{ steps.reservation.outputs.identifier }})" + + jq ".CONFIGURATION.interop=$DYN_CONFIG" lab_info.json > lab_info.json.tmp && mv lab_info.json.tmp lab_info.json + - name: run tests uses: ./.github/actions/run-tests with: namespace: interop-${{ github.run_id }}-iphone-11 - testbed: interop-01 + testbed: interop marker_expression: "${{ needs.vars.outputs.marker_overwrite || 'interop_uc_sanity and client_connect and ios' }}" - configuration: "${{ secrets.LAB_CONFIGURATION_JSON }}" + configuration_file: "./lab_info.json" testing_docker_image: tip-tip-wlan-cloud-docker-repo.jfrog.io/cloud-sdk-nightly:${{ github.run_id }} additional_args: "--device='iPhone-11' --skip-lanforge" allure_results_artifact_name: allure-results-iphone-11 + - name: stop reservation + if: always() + run: python .quali/stop_reservation.py ${{ steps.reservation.outputs.identifier }} + env: + CLOUDSHELL_URL: quali-cloudshell.lab.wlan.tip.build + CLOUDSHELL_USER: ${{ secrets.CLOUDSHELL_USER }} + CLOUDSHELL_PASSWORD: ${{ secrets.CLOUDSHELL_PASSWORD }} + + # necessary because if conditionals in composite actions are currently not respected - - name: delete namespace + - name: delete namespace if: always() continue-on-error: true run: kubectl delete ns --ignore-not-found=true --wait interop-${{ github.run_id }}-iphone-11 - # interop-02 +# interop-02 test-galaxy-s10: runs-on: ubuntu-latest needs: [vars, build] From db5bdf0b872cff17952c5c627b936ba5a732404b Mon Sep 17 00:00:00 2001 From: dutta-rohan <94938704+dutta-rohan@users.noreply.github.com> Date: Thu, 14 Apr 2022 13:46:33 -0700 Subject: [PATCH 075/100] Modified .quali/get_config Signed-off-by: dutta-rohan <94938704+dutta-rohan@users.noreply.github.com> --- .github/workflows/interop.yml | 58 +++-------------------------------- 1 file changed, 4 insertions(+), 54 deletions(-) diff --git a/.github/workflows/interop.yml b/.github/workflows/interop.yml index 478cb96e1..b58a3f68c 100644 --- a/.github/workflows/interop.yml +++ b/.github/workflows/interop.yml @@ -138,77 +138,27 @@ jobs: steps: - uses: actions/checkout@v2 - - name: install dependencies - run: | - pip install -r .quali/requirements.txt - # curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip" - # unzip awscliv2.zip - # sudo ./aws/install - - - name: start reservation - env: - CLOUDSHELL_URL: quali-cloudshell.lab.wlan.tip.build - CLOUDSHELL_USER: ${{ secrets.CLOUDSHELL_USER }} - CLOUDSHELL_PASSWORD: ${{ secrets.CLOUDSHELL_PASSWORD }} - run: | - python .quali/start_reservation.py --global-inputs '{"Phone ID(s)":"6","AP ID(s)":"1","Include a LANForge?":"Yes","securityToken":"eyJhbGciOiJIUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICI3NzkzZGM0Ni1jZmU4LTQ4ODMtYjhiOS02ZWFlZGU2OTc2MDkifQ.eyJpYXQiOjE2MzI4Mzc2NDEsImp0aSI6IjAwZGRiYWY5LWQwYjMtNDRjNS1hYjVlLTkyNzFlNzc5ZGUzNiIsImlzcyI6Imh0dHBzOi8vYXV0aDIucGVyZmVjdG9tb2JpbGUuY29tL2F1dGgvcmVhbG1zL3RpcC1wZXJmZWN0b21vYmlsZS1jb20iLCJhdWQiOiJodHRwczovL2F1dGgyLnBlcmZlY3RvbW9iaWxlLmNvbS9hdXRoL3JlYWxtcy90aXAtcGVyZmVjdG9tb2JpbGUtY29tIiwic3ViIjoiODNkNjUxMWQtNTBmZS00ZWM5LThkNzAtYTA0ZjBkNTdiZDUyIiwidHlwIjoiT2ZmbGluZSIsImF6cCI6Im9mZmxpbmUtdG9rZW4tZ2VuZXJhdG9yIiwibm9uY2UiOiI2ZjE1YzYxNy01YTU5LTQyOWEtODc2Yi1jOTQxMTQ1ZDFkZTIiLCJzZXNzaW9uX3N0YXRlIjoiYmRjZTFmYTMtMjlkYi00MmFmLWI5YWMtYjZjZmJkMDEyOTFhIiwic2NvcGUiOiJvcGVuaWQgcHJvZmlsZSBvZmZsaW5lX2FjY2VzcyBlbWFpbCJ9.5R85_1R38ZFXv_wIjjCIsj8NJm1p66dCsLJI5DBEmks"}' "InterOp Lab - Specific Selection" - - - name: set reservation outputs - if: always() - id: reservation - run: | - echo ::set-output name=identifier::"$(cat ./reservation_id.txt)" - echo ::set-output name=namespace::"$(cat ./reservation_id.txt | cut -d "-" -f 1)" - - name: get EKS access credentials run: aws eks update-kubeconfig --name ${{ env.AWS_EKS_NAME }} - - name: install kubectl - run: | - curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl" - sudo install -o root -g root -m 0755 kubectl /usr/local/bin/kubectl - - - name: prepare configuration - env: - CLOUDSHELL_URL: quali-cloudshell.lab.wlan.tip.build - CLOUDSHELL_USER: ${{ secrets.CLOUDSHELL_USER }} - CLOUDSHELL_PASSWORD: ${{ secrets.CLOUDSHELL_PASSWORD }} - run: | - cat << EOF > lab_info.json - ${{ secrets.LAB_CONFIGURATION_JSON }} - EOF - - DYN_CONFIG="$(python .quali/get_configuration.py --json ${{ steps.reservation.outputs.identifier }})" - - jq ".CONFIGURATION.interop=$DYN_CONFIG" lab_info.json > lab_info.json.tmp && mv lab_info.json.tmp lab_info.json - - name: run tests uses: ./.github/actions/run-tests with: namespace: interop-${{ github.run_id }}-iphone-11 - testbed: interop + testbed: interop-01 marker_expression: "${{ needs.vars.outputs.marker_overwrite || 'interop_uc_sanity and client_connect and ios' }}" - configuration_file: "./lab_info.json" + configuration: "${{ secrets.LAB_CONFIGURATION_JSON }}" testing_docker_image: tip-tip-wlan-cloud-docker-repo.jfrog.io/cloud-sdk-nightly:${{ github.run_id }} additional_args: "--device='iPhone-11' --skip-lanforge" allure_results_artifact_name: allure-results-iphone-11 - - name: stop reservation - if: always() - run: python .quali/stop_reservation.py ${{ steps.reservation.outputs.identifier }} - env: - CLOUDSHELL_URL: quali-cloudshell.lab.wlan.tip.build - CLOUDSHELL_USER: ${{ secrets.CLOUDSHELL_USER }} - CLOUDSHELL_PASSWORD: ${{ secrets.CLOUDSHELL_PASSWORD }} - - # necessary because if conditionals in composite actions are currently not respected - - name: delete namespace + - name: delete namespace if: always() continue-on-error: true run: kubectl delete ns --ignore-not-found=true --wait interop-${{ github.run_id }}-iphone-11 -# interop-02 + # interop-02 test-galaxy-s10: runs-on: ubuntu-latest needs: [vars, build] From bdaacf3c9f083e98e5360264c078ee22655730b4 Mon Sep 17 00:00:00 2001 From: dutta-rohan <94938704+dutta-rohan@users.noreply.github.com> Date: Thu, 14 Apr 2022 13:57:45 -0700 Subject: [PATCH 076/100] Modified .quali/get_config Signed-off-by: dutta-rohan <94938704+dutta-rohan@users.noreply.github.com> --- .github/workflows/interop.yml | 56 +++++++++++++++++++++++++++++++++-- 1 file changed, 53 insertions(+), 3 deletions(-) diff --git a/.github/workflows/interop.yml b/.github/workflows/interop.yml index b58a3f68c..1c8f0019f 100644 --- a/.github/workflows/interop.yml +++ b/.github/workflows/interop.yml @@ -133,25 +133,75 @@ jobs: test-iphone-11: runs-on: ubuntu-latest - needs: [vars, test-galaxy-s9] + needs: [ vars, test-galaxy-s9 ] if: "!cancelled() && contains(fromJSON(needs.vars.outputs.devices), 'iphone-11')" steps: - uses: actions/checkout@v2 + - name: install dependencies + run: | + pip install -r .quali/requirements.txt + # curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip" + # unzip awscliv2.zip + # sudo ./aws/install + + - name: start reservation + env: + CLOUDSHELL_URL: quali-cloudshell.lab.wlan.tip.build + CLOUDSHELL_USER: ${{ secrets.CLOUDSHELL_USER }} + CLOUDSHELL_PASSWORD: ${{ secrets.CLOUDSHELL_PASSWORD }} + run: | + python .quali/start_reservation.py --global-inputs '{"Phone ID(s)":"6","AP ID(s)":"1","Include a LANForge?":"Yes","securityToken":"eyJhbGciOiJIUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICI3NzkzZGM0Ni1jZmU4LTQ4ODMtYjhiOS02ZWFlZGU2OTc2MDkifQ.eyJpYXQiOjE2MzI4Mzc2NDEsImp0aSI6IjAwZGRiYWY5LWQwYjMtNDRjNS1hYjVlLTkyNzFlNzc5ZGUzNiIsImlzcyI6Imh0dHBzOi8vYXV0aDIucGVyZmVjdG9tb2JpbGUuY29tL2F1dGgvcmVhbG1zL3RpcC1wZXJmZWN0b21vYmlsZS1jb20iLCJhdWQiOiJodHRwczovL2F1dGgyLnBlcmZlY3RvbW9iaWxlLmNvbS9hdXRoL3JlYWxtcy90aXAtcGVyZmVjdG9tb2JpbGUtY29tIiwic3ViIjoiODNkNjUxMWQtNTBmZS00ZWM5LThkNzAtYTA0ZjBkNTdiZDUyIiwidHlwIjoiT2ZmbGluZSIsImF6cCI6Im9mZmxpbmUtdG9rZW4tZ2VuZXJhdG9yIiwibm9uY2UiOiI2ZjE1YzYxNy01YTU5LTQyOWEtODc2Yi1jOTQxMTQ1ZDFkZTIiLCJzZXNzaW9uX3N0YXRlIjoiYmRjZTFmYTMtMjlkYi00MmFmLWI5YWMtYjZjZmJkMDEyOTFhIiwic2NvcGUiOiJvcGVuaWQgcHJvZmlsZSBvZmZsaW5lX2FjY2VzcyBlbWFpbCJ9.5R85_1R38ZFXv_wIjjCIsj8NJm1p66dCsLJI5DBEmks"}' "InterOp Lab - Specific Selection" + + - name: set reservation outputs + if: always() + id: reservation + run: | + echo ::set-output name=identifier::"$(cat ./reservation_id.txt)" + echo ::set-output name=namespace::"$(cat ./reservation_id.txt | cut -d "-" -f 1)" + - name: get EKS access credentials run: aws eks update-kubeconfig --name ${{ env.AWS_EKS_NAME }} + - name: install kubectl + run: | + curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl" + sudo install -o root -g root -m 0755 kubectl /usr/local/bin/kubectl + + - name: prepare configuration + env: + CLOUDSHELL_URL: quali-cloudshell.lab.wlan.tip.build + CLOUDSHELL_USER: ${{ secrets.CLOUDSHELL_USER }} + CLOUDSHELL_PASSWORD: ${{ secrets.CLOUDSHELL_PASSWORD }} + run: | + cat << EOF > lab_info.json + ${{ secrets.LAB_CONFIGURATION_JSON }} + EOF + + DYN_CONFIG="$(python .quali/get_configuration.py --json ${{ steps.reservation.outputs.identifier }})" + + jq ".CONFIGURATION.interop=$DYN_CONFIG" lab_info.json > lab_info.json.tmp && mv lab_info.json.tmp lab_info.json + - name: run tests uses: ./.github/actions/run-tests with: namespace: interop-${{ github.run_id }}-iphone-11 - testbed: interop-01 + testbed: interop marker_expression: "${{ needs.vars.outputs.marker_overwrite || 'interop_uc_sanity and client_connect and ios' }}" - configuration: "${{ secrets.LAB_CONFIGURATION_JSON }}" + configuration_file: "./lab_info.json" testing_docker_image: tip-tip-wlan-cloud-docker-repo.jfrog.io/cloud-sdk-nightly:${{ github.run_id }} additional_args: "--device='iPhone-11' --skip-lanforge" allure_results_artifact_name: allure-results-iphone-11 + - name: stop reservation + if: always() + run: python .quali/stop_reservation.py ${{ steps.reservation.outputs.identifier }} + env: + CLOUDSHELL_URL: quali-cloudshell.lab.wlan.tip.build + CLOUDSHELL_USER: ${{ secrets.CLOUDSHELL_USER }} + CLOUDSHELL_PASSWORD: ${{ secrets.CLOUDSHELL_PASSWORD }} + + # necessary because if conditionals in composite actions are currently not respected - name: delete namespace if: always() From 3b1940360d76c9c846d9bd6532602a5aeb8a547f Mon Sep 17 00:00:00 2001 From: dutta-rohan <94938704+dutta-rohan@users.noreply.github.com> Date: Mon, 18 Apr 2022 07:13:12 -0700 Subject: [PATCH 077/100] Modified .quali/get_config Signed-off-by: dutta-rohan <94938704+dutta-rohan@users.noreply.github.com> --- .github/workflows/interop.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/interop.yml b/.github/workflows/interop.yml index 1c8f0019f..58c86a7e2 100644 --- a/.github/workflows/interop.yml +++ b/.github/workflows/interop.yml @@ -114,7 +114,7 @@ jobs: marker_expression: "${{ needs.vars.outputs.marker_overwrite || 'interop_uc_sanity and client_connect and android and not wpa3_personal' }}" configuration_file: "./lab_info.json" testing_docker_image: tip-tip-wlan-cloud-docker-repo.jfrog.io/cloud-sdk-nightly:${{ github.run_id }} - additional_args: "--device='Galaxy S9' --skip-lanforge" + additional_args: "-o model-android='Galaxy S9' -o 'jobName=Github-Interop-galaxy-s9' -o 'jobNumber=${{ github.run_number }}' --skip-lanforge" allure_results_artifact_name: allure-results-galaxy-s9 - name: stop reservation @@ -190,7 +190,7 @@ jobs: marker_expression: "${{ needs.vars.outputs.marker_overwrite || 'interop_uc_sanity and client_connect and ios' }}" configuration_file: "./lab_info.json" testing_docker_image: tip-tip-wlan-cloud-docker-repo.jfrog.io/cloud-sdk-nightly:${{ github.run_id }} - additional_args: "--device='iPhone-11' --skip-lanforge" + additional_args: "-o model-iOS='iPhone-11' -o 'jobName=Github-Interop-iphone-11' -o 'jobNumber=${{ github.run_number }}' --skip-lanforge" allure_results_artifact_name: allure-results-iphone-11 - name: stop reservation From 8071f2e4de8adfcc7e14ebaa777c128de3877b91 Mon Sep 17 00:00:00 2001 From: dutta-rohan <94938704+dutta-rohan@users.noreply.github.com> Date: Thu, 21 Apr 2022 08:48:10 -0700 Subject: [PATCH 078/100] Modified .quali/get_config Signed-off-by: dutta-rohan <94938704+dutta-rohan@users.noreply.github.com> --- .github/workflows/interop.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/interop.yml b/.github/workflows/interop.yml index 58c86a7e2..eb94643e0 100644 --- a/.github/workflows/interop.yml +++ b/.github/workflows/interop.yml @@ -75,7 +75,7 @@ jobs: CLOUDSHELL_USER: ${{ secrets.CLOUDSHELL_USER }} CLOUDSHELL_PASSWORD: ${{ secrets.CLOUDSHELL_PASSWORD }} run: | - python .quali/start_reservation.py --global-inputs '{"Phone ID(s)":"1","AP ID(s)":"1","Include a LANForge?":"Yes","securityToken":"eyJhbGciOiJIUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICI3NzkzZGM0Ni1jZmU4LTQ4ODMtYjhiOS02ZWFlZGU2OTc2MDkifQ.eyJpYXQiOjE2MzI4Mzc2NDEsImp0aSI6IjAwZGRiYWY5LWQwYjMtNDRjNS1hYjVlLTkyNzFlNzc5ZGUzNiIsImlzcyI6Imh0dHBzOi8vYXV0aDIucGVyZmVjdG9tb2JpbGUuY29tL2F1dGgvcmVhbG1zL3RpcC1wZXJmZWN0b21vYmlsZS1jb20iLCJhdWQiOiJodHRwczovL2F1dGgyLnBlcmZlY3RvbW9iaWxlLmNvbS9hdXRoL3JlYWxtcy90aXAtcGVyZmVjdG9tb2JpbGUtY29tIiwic3ViIjoiODNkNjUxMWQtNTBmZS00ZWM5LThkNzAtYTA0ZjBkNTdiZDUyIiwidHlwIjoiT2ZmbGluZSIsImF6cCI6Im9mZmxpbmUtdG9rZW4tZ2VuZXJhdG9yIiwibm9uY2UiOiI2ZjE1YzYxNy01YTU5LTQyOWEtODc2Yi1jOTQxMTQ1ZDFkZTIiLCJzZXNzaW9uX3N0YXRlIjoiYmRjZTFmYTMtMjlkYi00MmFmLWI5YWMtYjZjZmJkMDEyOTFhIiwic2NvcGUiOiJvcGVuaWQgcHJvZmlsZSBvZmZsaW5lX2FjY2VzcyBlbWFpbCJ9.5R85_1R38ZFXv_wIjjCIsj8NJm1p66dCsLJI5DBEmks"}' "InterOp Lab - Specific Selection" + python .quali/start_reservation.py --global-inputs '{"Optional Existing SDK Namespace":"qa01","Phone ID(s)":"1","AP ID(s)":"1","Include a LANForge?":"Yes","securityToken":"eyJhbGciOiJIUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICI3NzkzZGM0Ni1jZmU4LTQ4ODMtYjhiOS02ZWFlZGU2OTc2MDkifQ.eyJpYXQiOjE2MzI4Mzc2NDEsImp0aSI6IjAwZGRiYWY5LWQwYjMtNDRjNS1hYjVlLTkyNzFlNzc5ZGUzNiIsImlzcyI6Imh0dHBzOi8vYXV0aDIucGVyZmVjdG9tb2JpbGUuY29tL2F1dGgvcmVhbG1zL3RpcC1wZXJmZWN0b21vYmlsZS1jb20iLCJhdWQiOiJodHRwczovL2F1dGgyLnBlcmZlY3RvbW9iaWxlLmNvbS9hdXRoL3JlYWxtcy90aXAtcGVyZmVjdG9tb2JpbGUtY29tIiwic3ViIjoiODNkNjUxMWQtNTBmZS00ZWM5LThkNzAtYTA0ZjBkNTdiZDUyIiwidHlwIjoiT2ZmbGluZSIsImF6cCI6Im9mZmxpbmUtdG9rZW4tZ2VuZXJhdG9yIiwibm9uY2UiOiI2ZjE1YzYxNy01YTU5LTQyOWEtODc2Yi1jOTQxMTQ1ZDFkZTIiLCJzZXNzaW9uX3N0YXRlIjoiYmRjZTFmYTMtMjlkYi00MmFmLWI5YWMtYjZjZmJkMDEyOTFhIiwic2NvcGUiOiJvcGVuaWQgcHJvZmlsZSBvZmZsaW5lX2FjY2VzcyBlbWFpbCJ9.5R85_1R38ZFXv_wIjjCIsj8NJm1p66dCsLJI5DBEmks"}' "InterOp Lab - Specific Selection" - name: set reservation outputs if: always() @@ -151,7 +151,7 @@ jobs: CLOUDSHELL_USER: ${{ secrets.CLOUDSHELL_USER }} CLOUDSHELL_PASSWORD: ${{ secrets.CLOUDSHELL_PASSWORD }} run: | - python .quali/start_reservation.py --global-inputs '{"Phone ID(s)":"6","AP ID(s)":"1","Include a LANForge?":"Yes","securityToken":"eyJhbGciOiJIUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICI3NzkzZGM0Ni1jZmU4LTQ4ODMtYjhiOS02ZWFlZGU2OTc2MDkifQ.eyJpYXQiOjE2MzI4Mzc2NDEsImp0aSI6IjAwZGRiYWY5LWQwYjMtNDRjNS1hYjVlLTkyNzFlNzc5ZGUzNiIsImlzcyI6Imh0dHBzOi8vYXV0aDIucGVyZmVjdG9tb2JpbGUuY29tL2F1dGgvcmVhbG1zL3RpcC1wZXJmZWN0b21vYmlsZS1jb20iLCJhdWQiOiJodHRwczovL2F1dGgyLnBlcmZlY3RvbW9iaWxlLmNvbS9hdXRoL3JlYWxtcy90aXAtcGVyZmVjdG9tb2JpbGUtY29tIiwic3ViIjoiODNkNjUxMWQtNTBmZS00ZWM5LThkNzAtYTA0ZjBkNTdiZDUyIiwidHlwIjoiT2ZmbGluZSIsImF6cCI6Im9mZmxpbmUtdG9rZW4tZ2VuZXJhdG9yIiwibm9uY2UiOiI2ZjE1YzYxNy01YTU5LTQyOWEtODc2Yi1jOTQxMTQ1ZDFkZTIiLCJzZXNzaW9uX3N0YXRlIjoiYmRjZTFmYTMtMjlkYi00MmFmLWI5YWMtYjZjZmJkMDEyOTFhIiwic2NvcGUiOiJvcGVuaWQgcHJvZmlsZSBvZmZsaW5lX2FjY2VzcyBlbWFpbCJ9.5R85_1R38ZFXv_wIjjCIsj8NJm1p66dCsLJI5DBEmks"}' "InterOp Lab - Specific Selection" + python .quali/start_reservation.py --global-inputs '{"Optional Existing SDK Namespace":"qa01","Phone ID(s)":"6","AP ID(s)":"1","Include a LANForge?":"Yes","securityToken":"eyJhbGciOiJIUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICI3NzkzZGM0Ni1jZmU4LTQ4ODMtYjhiOS02ZWFlZGU2OTc2MDkifQ.eyJpYXQiOjE2MzI4Mzc2NDEsImp0aSI6IjAwZGRiYWY5LWQwYjMtNDRjNS1hYjVlLTkyNzFlNzc5ZGUzNiIsImlzcyI6Imh0dHBzOi8vYXV0aDIucGVyZmVjdG9tb2JpbGUuY29tL2F1dGgvcmVhbG1zL3RpcC1wZXJmZWN0b21vYmlsZS1jb20iLCJhdWQiOiJodHRwczovL2F1dGgyLnBlcmZlY3RvbW9iaWxlLmNvbS9hdXRoL3JlYWxtcy90aXAtcGVyZmVjdG9tb2JpbGUtY29tIiwic3ViIjoiODNkNjUxMWQtNTBmZS00ZWM5LThkNzAtYTA0ZjBkNTdiZDUyIiwidHlwIjoiT2ZmbGluZSIsImF6cCI6Im9mZmxpbmUtdG9rZW4tZ2VuZXJhdG9yIiwibm9uY2UiOiI2ZjE1YzYxNy01YTU5LTQyOWEtODc2Yi1jOTQxMTQ1ZDFkZTIiLCJzZXNzaW9uX3N0YXRlIjoiYmRjZTFmYTMtMjlkYi00MmFmLWI5YWMtYjZjZmJkMDEyOTFhIiwic2NvcGUiOiJvcGVuaWQgcHJvZmlsZSBvZmZsaW5lX2FjY2VzcyBlbWFpbCJ9.5R85_1R38ZFXv_wIjjCIsj8NJm1p66dCsLJI5DBEmks"}' "InterOp Lab - Specific Selection" - name: set reservation outputs if: always() From 4fa6f650a48e2335960b734f69b3784a40d15e46 Mon Sep 17 00:00:00 2001 From: dutta-rohan <94938704+dutta-rohan@users.noreply.github.com> Date: Thu, 21 Apr 2022 16:20:15 -0700 Subject: [PATCH 079/100] Modified .quali/get_config Signed-off-by: dutta-rohan <94938704+dutta-rohan@users.noreply.github.com> --- .github/workflows/interop.yml | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/.github/workflows/interop.yml b/.github/workflows/interop.yml index eb94643e0..de8c5546b 100644 --- a/.github/workflows/interop.yml +++ b/.github/workflows/interop.yml @@ -32,16 +32,24 @@ jobs: outputs: devices: ${{ steps.vars.outputs.devices }} marker_overwrite: ${{ steps.vars.outputs.marker_overwrite }} + openwifi_revision: ${{ steps.vars.outputs.openwifi}} + ap_models: ${{ steps.vars.outputs.ap_models}} + ap_version: ${{ steps.vars.outputs.ap_version}} + marker_expression: ${{ steps.vars.outputs.marker_expression }} + existing_controller: ${{ steps.vars.outputs.existing_controller }} steps: - name: set variables id: vars run: | echo "::set-output name=marker_overwrite::${{ github.event.inputs.marker_overwrite || '' }}" - DEVICES="${{ github.event.inputs.devices || 'galaxy-s9,galaxy-s10,galaxy-s20,pixel-4,iphone-7,iphone-11,iphone-xr,iphone-12' }}" DEVICES=$(echo $DEVICES | sed "s/,/\",\"/g" | sed 's/^/[\"/g' | sed 's/$/\"]/g') echo "::set-output name=devices::${DEVICES}" + echo ::set-output name=openwifi::$(echo "${{ github.event.inputs.openwifi_revision || 'main' }}") + echo ::set-output name=ap_version::$(echo "${{ github.event.inputs.ap_version || 'next-latest' }}") + echo ::set-output name=marker_expression::$(echo "${{ github.event.inputs.marker_expression || 'uc_sanity' }}") + echo ::set-output name=existing_controller::$(echo "${{ github.event.inputs.existing_controller || 'qa01' }}") build: runs-on: ubuntu-latest @@ -58,6 +66,9 @@ jobs: test-galaxy-s9: runs-on: ubuntu-latest needs: [vars, build] + strategy: + fail-fast: false + matrix: ${{ fromJson( needs.generate-matrix.outputs.matrix ) }} if: "!cancelled() && contains(fromJSON(needs.vars.outputs.devices), 'galaxy-s9')" steps: - uses: actions/checkout@v2 @@ -75,7 +86,7 @@ jobs: CLOUDSHELL_USER: ${{ secrets.CLOUDSHELL_USER }} CLOUDSHELL_PASSWORD: ${{ secrets.CLOUDSHELL_PASSWORD }} run: | - python .quali/start_reservation.py --global-inputs '{"Optional Existing SDK Namespace":"qa01","Phone ID(s)":"1","AP ID(s)":"1","Include a LANForge?":"Yes","securityToken":"eyJhbGciOiJIUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICI3NzkzZGM0Ni1jZmU4LTQ4ODMtYjhiOS02ZWFlZGU2OTc2MDkifQ.eyJpYXQiOjE2MzI4Mzc2NDEsImp0aSI6IjAwZGRiYWY5LWQwYjMtNDRjNS1hYjVlLTkyNzFlNzc5ZGUzNiIsImlzcyI6Imh0dHBzOi8vYXV0aDIucGVyZmVjdG9tb2JpbGUuY29tL2F1dGgvcmVhbG1zL3RpcC1wZXJmZWN0b21vYmlsZS1jb20iLCJhdWQiOiJodHRwczovL2F1dGgyLnBlcmZlY3RvbW9iaWxlLmNvbS9hdXRoL3JlYWxtcy90aXAtcGVyZmVjdG9tb2JpbGUtY29tIiwic3ViIjoiODNkNjUxMWQtNTBmZS00ZWM5LThkNzAtYTA0ZjBkNTdiZDUyIiwidHlwIjoiT2ZmbGluZSIsImF6cCI6Im9mZmxpbmUtdG9rZW4tZ2VuZXJhdG9yIiwibm9uY2UiOiI2ZjE1YzYxNy01YTU5LTQyOWEtODc2Yi1jOTQxMTQ1ZDFkZTIiLCJzZXNzaW9uX3N0YXRlIjoiYmRjZTFmYTMtMjlkYi00MmFmLWI5YWMtYjZjZmJkMDEyOTFhIiwic2NvcGUiOiJvcGVuaWQgcHJvZmlsZSBvZmZsaW5lX2FjY2VzcyBlbWFpbCJ9.5R85_1R38ZFXv_wIjjCIsj8NJm1p66dCsLJI5DBEmks"}' "InterOp Lab - Specific Selection" + python .quali/start_reservation.py --global-inputs '{"Optional Existing SDK Namespace":"${{ needs.vars.outputs.existing_controller }}","Phone ID(s)":"1","AP ID(s)":"1","Include a LANForge?":"Yes","securityToken":"eyJhbGciOiJIUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICI3NzkzZGM0Ni1jZmU4LTQ4ODMtYjhiOS02ZWFlZGU2OTc2MDkifQ.eyJpYXQiOjE2MzI4Mzc2NDEsImp0aSI6IjAwZGRiYWY5LWQwYjMtNDRjNS1hYjVlLTkyNzFlNzc5ZGUzNiIsImlzcyI6Imh0dHBzOi8vYXV0aDIucGVyZmVjdG9tb2JpbGUuY29tL2F1dGgvcmVhbG1zL3RpcC1wZXJmZWN0b21vYmlsZS1jb20iLCJhdWQiOiJodHRwczovL2F1dGgyLnBlcmZlY3RvbW9iaWxlLmNvbS9hdXRoL3JlYWxtcy90aXAtcGVyZmVjdG9tb2JpbGUtY29tIiwic3ViIjoiODNkNjUxMWQtNTBmZS00ZWM5LThkNzAtYTA0ZjBkNTdiZDUyIiwidHlwIjoiT2ZmbGluZSIsImF6cCI6Im9mZmxpbmUtdG9rZW4tZ2VuZXJhdG9yIiwibm9uY2UiOiI2ZjE1YzYxNy01YTU5LTQyOWEtODc2Yi1jOTQxMTQ1ZDFkZTIiLCJzZXNzaW9uX3N0YXRlIjoiYmRjZTFmYTMtMjlkYi00MmFmLWI5YWMtYjZjZmJkMDEyOTFhIiwic2NvcGUiOiJvcGVuaWQgcHJvZmlsZSBvZmZsaW5lX2FjY2VzcyBlbWFpbCJ9.5R85_1R38ZFXv_wIjjCIsj8NJm1p66dCsLJI5DBEmks"}' "InterOp Lab - Specific Selection" - name: set reservation outputs if: always() From 6299ce29a5cbffedf61e13116be4e501d5653e02 Mon Sep 17 00:00:00 2001 From: dutta-rohan <94938704+dutta-rohan@users.noreply.github.com> Date: Thu, 21 Apr 2022 16:34:51 -0700 Subject: [PATCH 080/100] Modified .quali/get_config Signed-off-by: dutta-rohan <94938704+dutta-rohan@users.noreply.github.com> --- .github/workflows/interop.yml | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/.github/workflows/interop.yml b/.github/workflows/interop.yml index de8c5546b..6bbb2ace0 100644 --- a/.github/workflows/interop.yml +++ b/.github/workflows/interop.yml @@ -66,13 +66,9 @@ jobs: test-galaxy-s9: runs-on: ubuntu-latest needs: [vars, build] - strategy: - fail-fast: false - matrix: ${{ fromJson( needs.generate-matrix.outputs.matrix ) }} if: "!cancelled() && contains(fromJSON(needs.vars.outputs.devices), 'galaxy-s9')" steps: - uses: actions/checkout@v2 - - name: install dependencies run: | pip install -r .quali/requirements.txt @@ -117,6 +113,12 @@ jobs: jq ".CONFIGURATION.interop=$DYN_CONFIG" lab_info.json > lab_info.json.tmp && mv lab_info.json.tmp lab_info.json + # overwrite configuration value from Quali + if [ ${{ needs.vars.outputs.existing_controller }} != '' ] + then + jq '.CONFIGURATION.basic.controller.url="https://sec-${{ needs.vars.outputs.existing_controller }}.cicd.lab.wlan.tip.build:16001"' lab_info.json > lab_info.json.tmp && mv lab_info.json.tmp lab_info.json + fi + - name: run tests uses: ./.github/actions/run-tests with: @@ -162,7 +164,7 @@ jobs: CLOUDSHELL_USER: ${{ secrets.CLOUDSHELL_USER }} CLOUDSHELL_PASSWORD: ${{ secrets.CLOUDSHELL_PASSWORD }} run: | - python .quali/start_reservation.py --global-inputs '{"Optional Existing SDK Namespace":"qa01","Phone ID(s)":"6","AP ID(s)":"1","Include a LANForge?":"Yes","securityToken":"eyJhbGciOiJIUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICI3NzkzZGM0Ni1jZmU4LTQ4ODMtYjhiOS02ZWFlZGU2OTc2MDkifQ.eyJpYXQiOjE2MzI4Mzc2NDEsImp0aSI6IjAwZGRiYWY5LWQwYjMtNDRjNS1hYjVlLTkyNzFlNzc5ZGUzNiIsImlzcyI6Imh0dHBzOi8vYXV0aDIucGVyZmVjdG9tb2JpbGUuY29tL2F1dGgvcmVhbG1zL3RpcC1wZXJmZWN0b21vYmlsZS1jb20iLCJhdWQiOiJodHRwczovL2F1dGgyLnBlcmZlY3RvbW9iaWxlLmNvbS9hdXRoL3JlYWxtcy90aXAtcGVyZmVjdG9tb2JpbGUtY29tIiwic3ViIjoiODNkNjUxMWQtNTBmZS00ZWM5LThkNzAtYTA0ZjBkNTdiZDUyIiwidHlwIjoiT2ZmbGluZSIsImF6cCI6Im9mZmxpbmUtdG9rZW4tZ2VuZXJhdG9yIiwibm9uY2UiOiI2ZjE1YzYxNy01YTU5LTQyOWEtODc2Yi1jOTQxMTQ1ZDFkZTIiLCJzZXNzaW9uX3N0YXRlIjoiYmRjZTFmYTMtMjlkYi00MmFmLWI5YWMtYjZjZmJkMDEyOTFhIiwic2NvcGUiOiJvcGVuaWQgcHJvZmlsZSBvZmZsaW5lX2FjY2VzcyBlbWFpbCJ9.5R85_1R38ZFXv_wIjjCIsj8NJm1p66dCsLJI5DBEmks"}' "InterOp Lab - Specific Selection" + python .quali/start_reservation.py --global-inputs '{"Optional Existing SDK Namespace":"${{ needs.vars.outputs.existing_controller }}","Phone ID(s)":"6","AP ID(s)":"1","Include a LANForge?":"Yes","securityToken":"eyJhbGciOiJIUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICI3NzkzZGM0Ni1jZmU4LTQ4ODMtYjhiOS02ZWFlZGU2OTc2MDkifQ.eyJpYXQiOjE2MzI4Mzc2NDEsImp0aSI6IjAwZGRiYWY5LWQwYjMtNDRjNS1hYjVlLTkyNzFlNzc5ZGUzNiIsImlzcyI6Imh0dHBzOi8vYXV0aDIucGVyZmVjdG9tb2JpbGUuY29tL2F1dGgvcmVhbG1zL3RpcC1wZXJmZWN0b21vYmlsZS1jb20iLCJhdWQiOiJodHRwczovL2F1dGgyLnBlcmZlY3RvbW9iaWxlLmNvbS9hdXRoL3JlYWxtcy90aXAtcGVyZmVjdG9tb2JpbGUtY29tIiwic3ViIjoiODNkNjUxMWQtNTBmZS00ZWM5LThkNzAtYTA0ZjBkNTdiZDUyIiwidHlwIjoiT2ZmbGluZSIsImF6cCI6Im9mZmxpbmUtdG9rZW4tZ2VuZXJhdG9yIiwibm9uY2UiOiI2ZjE1YzYxNy01YTU5LTQyOWEtODc2Yi1jOTQxMTQ1ZDFkZTIiLCJzZXNzaW9uX3N0YXRlIjoiYmRjZTFmYTMtMjlkYi00MmFmLWI5YWMtYjZjZmJkMDEyOTFhIiwic2NvcGUiOiJvcGVuaWQgcHJvZmlsZSBvZmZsaW5lX2FjY2VzcyBlbWFpbCJ9.5R85_1R38ZFXv_wIjjCIsj8NJm1p66dCsLJI5DBEmks"}' "InterOp Lab - Specific Selection" - name: set reservation outputs if: always() @@ -193,6 +195,12 @@ jobs: jq ".CONFIGURATION.interop=$DYN_CONFIG" lab_info.json > lab_info.json.tmp && mv lab_info.json.tmp lab_info.json + # overwrite configuration value from Quali + if [ ${{ needs.vars.outputs.existing_controller }} != '' ] + then + jq '.CONFIGURATION.basic.controller.url="https://sec-${{ needs.vars.outputs.existing_controller }}.cicd.lab.wlan.tip.build:16001"' lab_info.json > lab_info.json.tmp && mv lab_info.json.tmp lab_info.json + fi + - name: run tests uses: ./.github/actions/run-tests with: From e3ad1a60a3c1b2e12dd3e3504d6035ceb977a04b Mon Sep 17 00:00:00 2001 From: dutta-rohan <94938704+dutta-rohan@users.noreply.github.com> Date: Thu, 21 Apr 2022 16:36:52 -0700 Subject: [PATCH 081/100] Modified .quali/get_config Signed-off-by: dutta-rohan <94938704+dutta-rohan@users.noreply.github.com> --- .github/workflows/interop.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/interop.yml b/.github/workflows/interop.yml index 6bbb2ace0..b341a24c6 100644 --- a/.github/workflows/interop.yml +++ b/.github/workflows/interop.yml @@ -113,7 +113,6 @@ jobs: jq ".CONFIGURATION.interop=$DYN_CONFIG" lab_info.json > lab_info.json.tmp && mv lab_info.json.tmp lab_info.json - # overwrite configuration value from Quali if [ ${{ needs.vars.outputs.existing_controller }} != '' ] then jq '.CONFIGURATION.basic.controller.url="https://sec-${{ needs.vars.outputs.existing_controller }}.cicd.lab.wlan.tip.build:16001"' lab_info.json > lab_info.json.tmp && mv lab_info.json.tmp lab_info.json @@ -195,7 +194,6 @@ jobs: jq ".CONFIGURATION.interop=$DYN_CONFIG" lab_info.json > lab_info.json.tmp && mv lab_info.json.tmp lab_info.json - # overwrite configuration value from Quali if [ ${{ needs.vars.outputs.existing_controller }} != '' ] then jq '.CONFIGURATION.basic.controller.url="https://sec-${{ needs.vars.outputs.existing_controller }}.cicd.lab.wlan.tip.build:16001"' lab_info.json > lab_info.json.tmp && mv lab_info.json.tmp lab_info.json From 0d62b9a40da8500409fb6ba5939bb85be1134d6b Mon Sep 17 00:00:00 2001 From: dutta-rohan <94938704+dutta-rohan@users.noreply.github.com> Date: Thu, 21 Apr 2022 16:42:36 -0700 Subject: [PATCH 082/100] Modified .quali/get_config Signed-off-by: dutta-rohan <94938704+dutta-rohan@users.noreply.github.com> --- .github/workflows/interop.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/interop.yml b/.github/workflows/interop.yml index b341a24c6..fe5e87a97 100644 --- a/.github/workflows/interop.yml +++ b/.github/workflows/interop.yml @@ -98,7 +98,7 @@ jobs: run: | curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl" sudo install -o root -g root -m 0755 kubectl /usr/local/bin/kubectl - + - name: prepare configuration env: CLOUDSHELL_URL: quali-cloudshell.lab.wlan.tip.build From 902b0dcb795f81984d7224740212922c36a1622c Mon Sep 17 00:00:00 2001 From: dutta-rohan <94938704+dutta-rohan@users.noreply.github.com> Date: Thu, 21 Apr 2022 16:50:54 -0700 Subject: [PATCH 083/100] Modified .quali/get_config Signed-off-by: dutta-rohan <94938704+dutta-rohan@users.noreply.github.com> --- .github/workflows/interop.yml | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/.github/workflows/interop.yml b/.github/workflows/interop.yml index fe5e87a97..87a0c173d 100644 --- a/.github/workflows/interop.yml +++ b/.github/workflows/interop.yml @@ -98,7 +98,7 @@ jobs: run: | curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl" sudo install -o root -g root -m 0755 kubectl /usr/local/bin/kubectl - + - name: prepare configuration env: CLOUDSHELL_URL: quali-cloudshell.lab.wlan.tip.build @@ -112,11 +112,10 @@ jobs: DYN_CONFIG="$(python .quali/get_configuration.py --json ${{ steps.reservation.outputs.identifier }})" jq ".CONFIGURATION.interop=$DYN_CONFIG" lab_info.json > lab_info.json.tmp && mv lab_info.json.tmp lab_info.json + + + - if [ ${{ needs.vars.outputs.existing_controller }} != '' ] - then - jq '.CONFIGURATION.basic.controller.url="https://sec-${{ needs.vars.outputs.existing_controller }}.cicd.lab.wlan.tip.build:16001"' lab_info.json > lab_info.json.tmp && mv lab_info.json.tmp lab_info.json - fi - name: run tests uses: ./.github/actions/run-tests @@ -194,10 +193,6 @@ jobs: jq ".CONFIGURATION.interop=$DYN_CONFIG" lab_info.json > lab_info.json.tmp && mv lab_info.json.tmp lab_info.json - if [ ${{ needs.vars.outputs.existing_controller }} != '' ] - then - jq '.CONFIGURATION.basic.controller.url="https://sec-${{ needs.vars.outputs.existing_controller }}.cicd.lab.wlan.tip.build:16001"' lab_info.json > lab_info.json.tmp && mv lab_info.json.tmp lab_info.json - fi - name: run tests uses: ./.github/actions/run-tests From e13ed30c1cd061ae5e08c20ddb1488478f7f81aa Mon Sep 17 00:00:00 2001 From: dutta-rohan <94938704+dutta-rohan@users.noreply.github.com> Date: Thu, 21 Apr 2022 16:58:52 -0700 Subject: [PATCH 084/100] Modified .quali/get_config Signed-off-by: dutta-rohan <94938704+dutta-rohan@users.noreply.github.com> --- .github/workflows/interop.yml | 26 +++++++------------------- 1 file changed, 7 insertions(+), 19 deletions(-) diff --git a/.github/workflows/interop.yml b/.github/workflows/interop.yml index 87a0c173d..fe2a483ee 100644 --- a/.github/workflows/interop.yml +++ b/.github/workflows/interop.yml @@ -32,24 +32,16 @@ jobs: outputs: devices: ${{ steps.vars.outputs.devices }} marker_overwrite: ${{ steps.vars.outputs.marker_overwrite }} - openwifi_revision: ${{ steps.vars.outputs.openwifi}} - ap_models: ${{ steps.vars.outputs.ap_models}} - ap_version: ${{ steps.vars.outputs.ap_version}} - marker_expression: ${{ steps.vars.outputs.marker_expression }} - existing_controller: ${{ steps.vars.outputs.existing_controller }} steps: - name: set variables id: vars run: | echo "::set-output name=marker_overwrite::${{ github.event.inputs.marker_overwrite || '' }}" + DEVICES="${{ github.event.inputs.devices || 'galaxy-s9,galaxy-s10,galaxy-s20,pixel-4,iphone-7,iphone-11,iphone-xr,iphone-12' }}" DEVICES=$(echo $DEVICES | sed "s/,/\",\"/g" | sed 's/^/[\"/g' | sed 's/$/\"]/g') echo "::set-output name=devices::${DEVICES}" - echo ::set-output name=openwifi::$(echo "${{ github.event.inputs.openwifi_revision || 'main' }}") - echo ::set-output name=ap_version::$(echo "${{ github.event.inputs.ap_version || 'next-latest' }}") - echo ::set-output name=marker_expression::$(echo "${{ github.event.inputs.marker_expression || 'uc_sanity' }}") - echo ::set-output name=existing_controller::$(echo "${{ github.event.inputs.existing_controller || 'qa01' }}") build: runs-on: ubuntu-latest @@ -69,6 +61,7 @@ jobs: if: "!cancelled() && contains(fromJSON(needs.vars.outputs.devices), 'galaxy-s9')" steps: - uses: actions/checkout@v2 + - name: install dependencies run: | pip install -r .quali/requirements.txt @@ -82,7 +75,7 @@ jobs: CLOUDSHELL_USER: ${{ secrets.CLOUDSHELL_USER }} CLOUDSHELL_PASSWORD: ${{ secrets.CLOUDSHELL_PASSWORD }} run: | - python .quali/start_reservation.py --global-inputs '{"Optional Existing SDK Namespace":"${{ needs.vars.outputs.existing_controller }}","Phone ID(s)":"1","AP ID(s)":"1","Include a LANForge?":"Yes","securityToken":"eyJhbGciOiJIUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICI3NzkzZGM0Ni1jZmU4LTQ4ODMtYjhiOS02ZWFlZGU2OTc2MDkifQ.eyJpYXQiOjE2MzI4Mzc2NDEsImp0aSI6IjAwZGRiYWY5LWQwYjMtNDRjNS1hYjVlLTkyNzFlNzc5ZGUzNiIsImlzcyI6Imh0dHBzOi8vYXV0aDIucGVyZmVjdG9tb2JpbGUuY29tL2F1dGgvcmVhbG1zL3RpcC1wZXJmZWN0b21vYmlsZS1jb20iLCJhdWQiOiJodHRwczovL2F1dGgyLnBlcmZlY3RvbW9iaWxlLmNvbS9hdXRoL3JlYWxtcy90aXAtcGVyZmVjdG9tb2JpbGUtY29tIiwic3ViIjoiODNkNjUxMWQtNTBmZS00ZWM5LThkNzAtYTA0ZjBkNTdiZDUyIiwidHlwIjoiT2ZmbGluZSIsImF6cCI6Im9mZmxpbmUtdG9rZW4tZ2VuZXJhdG9yIiwibm9uY2UiOiI2ZjE1YzYxNy01YTU5LTQyOWEtODc2Yi1jOTQxMTQ1ZDFkZTIiLCJzZXNzaW9uX3N0YXRlIjoiYmRjZTFmYTMtMjlkYi00MmFmLWI5YWMtYjZjZmJkMDEyOTFhIiwic2NvcGUiOiJvcGVuaWQgcHJvZmlsZSBvZmZsaW5lX2FjY2VzcyBlbWFpbCJ9.5R85_1R38ZFXv_wIjjCIsj8NJm1p66dCsLJI5DBEmks"}' "InterOp Lab - Specific Selection" + python .quali/start_reservation.py --global-inputs '{"Optional Existing SDK Namespace":"qa01","Phone ID(s)":"1","AP ID(s)":"1","Include a LANForge?":"Yes","securityToken":"eyJhbGciOiJIUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICI3NzkzZGM0Ni1jZmU4LTQ4ODMtYjhiOS02ZWFlZGU2OTc2MDkifQ.eyJpYXQiOjE2MzI4Mzc2NDEsImp0aSI6IjAwZGRiYWY5LWQwYjMtNDRjNS1hYjVlLTkyNzFlNzc5ZGUzNiIsImlzcyI6Imh0dHBzOi8vYXV0aDIucGVyZmVjdG9tb2JpbGUuY29tL2F1dGgvcmVhbG1zL3RpcC1wZXJmZWN0b21vYmlsZS1jb20iLCJhdWQiOiJodHRwczovL2F1dGgyLnBlcmZlY3RvbW9iaWxlLmNvbS9hdXRoL3JlYWxtcy90aXAtcGVyZmVjdG9tb2JpbGUtY29tIiwic3ViIjoiODNkNjUxMWQtNTBmZS00ZWM5LThkNzAtYTA0ZjBkNTdiZDUyIiwidHlwIjoiT2ZmbGluZSIsImF6cCI6Im9mZmxpbmUtdG9rZW4tZ2VuZXJhdG9yIiwibm9uY2UiOiI2ZjE1YzYxNy01YTU5LTQyOWEtODc2Yi1jOTQxMTQ1ZDFkZTIiLCJzZXNzaW9uX3N0YXRlIjoiYmRjZTFmYTMtMjlkYi00MmFmLWI5YWMtYjZjZmJkMDEyOTFhIiwic2NvcGUiOiJvcGVuaWQgcHJvZmlsZSBvZmZsaW5lX2FjY2VzcyBlbWFpbCJ9.5R85_1R38ZFXv_wIjjCIsj8NJm1p66dCsLJI5DBEmks"}' "InterOp Lab - Specific Selection" - name: set reservation outputs if: always() @@ -112,10 +105,6 @@ jobs: DYN_CONFIG="$(python .quali/get_configuration.py --json ${{ steps.reservation.outputs.identifier }})" jq ".CONFIGURATION.interop=$DYN_CONFIG" lab_info.json > lab_info.json.tmp && mv lab_info.json.tmp lab_info.json - - - - - name: run tests uses: ./.github/actions/run-tests @@ -162,7 +151,7 @@ jobs: CLOUDSHELL_USER: ${{ secrets.CLOUDSHELL_USER }} CLOUDSHELL_PASSWORD: ${{ secrets.CLOUDSHELL_PASSWORD }} run: | - python .quali/start_reservation.py --global-inputs '{"Optional Existing SDK Namespace":"${{ needs.vars.outputs.existing_controller }}","Phone ID(s)":"6","AP ID(s)":"1","Include a LANForge?":"Yes","securityToken":"eyJhbGciOiJIUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICI3NzkzZGM0Ni1jZmU4LTQ4ODMtYjhiOS02ZWFlZGU2OTc2MDkifQ.eyJpYXQiOjE2MzI4Mzc2NDEsImp0aSI6IjAwZGRiYWY5LWQwYjMtNDRjNS1hYjVlLTkyNzFlNzc5ZGUzNiIsImlzcyI6Imh0dHBzOi8vYXV0aDIucGVyZmVjdG9tb2JpbGUuY29tL2F1dGgvcmVhbG1zL3RpcC1wZXJmZWN0b21vYmlsZS1jb20iLCJhdWQiOiJodHRwczovL2F1dGgyLnBlcmZlY3RvbW9iaWxlLmNvbS9hdXRoL3JlYWxtcy90aXAtcGVyZmVjdG9tb2JpbGUtY29tIiwic3ViIjoiODNkNjUxMWQtNTBmZS00ZWM5LThkNzAtYTA0ZjBkNTdiZDUyIiwidHlwIjoiT2ZmbGluZSIsImF6cCI6Im9mZmxpbmUtdG9rZW4tZ2VuZXJhdG9yIiwibm9uY2UiOiI2ZjE1YzYxNy01YTU5LTQyOWEtODc2Yi1jOTQxMTQ1ZDFkZTIiLCJzZXNzaW9uX3N0YXRlIjoiYmRjZTFmYTMtMjlkYi00MmFmLWI5YWMtYjZjZmJkMDEyOTFhIiwic2NvcGUiOiJvcGVuaWQgcHJvZmlsZSBvZmZsaW5lX2FjY2VzcyBlbWFpbCJ9.5R85_1R38ZFXv_wIjjCIsj8NJm1p66dCsLJI5DBEmks"}' "InterOp Lab - Specific Selection" + python .quali/start_reservation.py --global-inputs '{"Optional Existing SDK Namespace":"qa01","Phone ID(s)":"6","AP ID(s)":"1","Include a LANForge?":"Yes","securityToken":"eyJhbGciOiJIUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICI3NzkzZGM0Ni1jZmU4LTQ4ODMtYjhiOS02ZWFlZGU2OTc2MDkifQ.eyJpYXQiOjE2MzI4Mzc2NDEsImp0aSI6IjAwZGRiYWY5LWQwYjMtNDRjNS1hYjVlLTkyNzFlNzc5ZGUzNiIsImlzcyI6Imh0dHBzOi8vYXV0aDIucGVyZmVjdG9tb2JpbGUuY29tL2F1dGgvcmVhbG1zL3RpcC1wZXJmZWN0b21vYmlsZS1jb20iLCJhdWQiOiJodHRwczovL2F1dGgyLnBlcmZlY3RvbW9iaWxlLmNvbS9hdXRoL3JlYWxtcy90aXAtcGVyZmVjdG9tb2JpbGUtY29tIiwic3ViIjoiODNkNjUxMWQtNTBmZS00ZWM5LThkNzAtYTA0ZjBkNTdiZDUyIiwidHlwIjoiT2ZmbGluZSIsImF6cCI6Im9mZmxpbmUtdG9rZW4tZ2VuZXJhdG9yIiwibm9uY2UiOiI2ZjE1YzYxNy01YTU5LTQyOWEtODc2Yi1jOTQxMTQ1ZDFkZTIiLCJzZXNzaW9uX3N0YXRlIjoiYmRjZTFmYTMtMjlkYi00MmFmLWI5YWMtYjZjZmJkMDEyOTFhIiwic2NvcGUiOiJvcGVuaWQgcHJvZmlsZSBvZmZsaW5lX2FjY2VzcyBlbWFpbCJ9.5R85_1R38ZFXv_wIjjCIsj8NJm1p66dCsLJI5DBEmks"}' "InterOp Lab - Specific Selection" - name: set reservation outputs if: always() @@ -188,11 +177,10 @@ jobs: cat << EOF > lab_info.json ${{ secrets.LAB_CONFIGURATION_JSON }} EOF - - DYN_CONFIG="$(python .quali/get_configuration.py --json ${{ steps.reservation.outputs.identifier }})" - - jq ".CONFIGURATION.interop=$DYN_CONFIG" lab_info.json > lab_info.json.tmp && mv lab_info.json.tmp lab_info.json + DYN_CONFIG="$(python .quali/get_configuration.py --json ${{ steps.reservation.outputs.identifier }})" + + jq ".CONFIGURATION.interop=$DYN_CONFIG" lab_info.json > lab_info.json.tmp && mv lab_info.json.tmp lab_info.json - name: run tests uses: ./.github/actions/run-tests From edf02dcf4acd0c1f8c689e9e7ddb9ace9df8cadf Mon Sep 17 00:00:00 2001 From: dutta-rohan <94938704+dutta-rohan@users.noreply.github.com> Date: Thu, 21 Apr 2022 17:03:08 -0700 Subject: [PATCH 085/100] Modified .quali/get_config Signed-off-by: dutta-rohan <94938704+dutta-rohan@users.noreply.github.com> --- .github/workflows/interop.yml | 62 ++++------------------------------- 1 file changed, 6 insertions(+), 56 deletions(-) diff --git a/.github/workflows/interop.yml b/.github/workflows/interop.yml index fe2a483ee..b58a3f68c 100644 --- a/.github/workflows/interop.yml +++ b/.github/workflows/interop.yml @@ -75,7 +75,7 @@ jobs: CLOUDSHELL_USER: ${{ secrets.CLOUDSHELL_USER }} CLOUDSHELL_PASSWORD: ${{ secrets.CLOUDSHELL_PASSWORD }} run: | - python .quali/start_reservation.py --global-inputs '{"Optional Existing SDK Namespace":"qa01","Phone ID(s)":"1","AP ID(s)":"1","Include a LANForge?":"Yes","securityToken":"eyJhbGciOiJIUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICI3NzkzZGM0Ni1jZmU4LTQ4ODMtYjhiOS02ZWFlZGU2OTc2MDkifQ.eyJpYXQiOjE2MzI4Mzc2NDEsImp0aSI6IjAwZGRiYWY5LWQwYjMtNDRjNS1hYjVlLTkyNzFlNzc5ZGUzNiIsImlzcyI6Imh0dHBzOi8vYXV0aDIucGVyZmVjdG9tb2JpbGUuY29tL2F1dGgvcmVhbG1zL3RpcC1wZXJmZWN0b21vYmlsZS1jb20iLCJhdWQiOiJodHRwczovL2F1dGgyLnBlcmZlY3RvbW9iaWxlLmNvbS9hdXRoL3JlYWxtcy90aXAtcGVyZmVjdG9tb2JpbGUtY29tIiwic3ViIjoiODNkNjUxMWQtNTBmZS00ZWM5LThkNzAtYTA0ZjBkNTdiZDUyIiwidHlwIjoiT2ZmbGluZSIsImF6cCI6Im9mZmxpbmUtdG9rZW4tZ2VuZXJhdG9yIiwibm9uY2UiOiI2ZjE1YzYxNy01YTU5LTQyOWEtODc2Yi1jOTQxMTQ1ZDFkZTIiLCJzZXNzaW9uX3N0YXRlIjoiYmRjZTFmYTMtMjlkYi00MmFmLWI5YWMtYjZjZmJkMDEyOTFhIiwic2NvcGUiOiJvcGVuaWQgcHJvZmlsZSBvZmZsaW5lX2FjY2VzcyBlbWFpbCJ9.5R85_1R38ZFXv_wIjjCIsj8NJm1p66dCsLJI5DBEmks"}' "InterOp Lab - Specific Selection" + python .quali/start_reservation.py --global-inputs '{"Phone ID(s)":"1","AP ID(s)":"1","Include a LANForge?":"Yes","securityToken":"eyJhbGciOiJIUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICI3NzkzZGM0Ni1jZmU4LTQ4ODMtYjhiOS02ZWFlZGU2OTc2MDkifQ.eyJpYXQiOjE2MzI4Mzc2NDEsImp0aSI6IjAwZGRiYWY5LWQwYjMtNDRjNS1hYjVlLTkyNzFlNzc5ZGUzNiIsImlzcyI6Imh0dHBzOi8vYXV0aDIucGVyZmVjdG9tb2JpbGUuY29tL2F1dGgvcmVhbG1zL3RpcC1wZXJmZWN0b21vYmlsZS1jb20iLCJhdWQiOiJodHRwczovL2F1dGgyLnBlcmZlY3RvbW9iaWxlLmNvbS9hdXRoL3JlYWxtcy90aXAtcGVyZmVjdG9tb2JpbGUtY29tIiwic3ViIjoiODNkNjUxMWQtNTBmZS00ZWM5LThkNzAtYTA0ZjBkNTdiZDUyIiwidHlwIjoiT2ZmbGluZSIsImF6cCI6Im9mZmxpbmUtdG9rZW4tZ2VuZXJhdG9yIiwibm9uY2UiOiI2ZjE1YzYxNy01YTU5LTQyOWEtODc2Yi1jOTQxMTQ1ZDFkZTIiLCJzZXNzaW9uX3N0YXRlIjoiYmRjZTFmYTMtMjlkYi00MmFmLWI5YWMtYjZjZmJkMDEyOTFhIiwic2NvcGUiOiJvcGVuaWQgcHJvZmlsZSBvZmZsaW5lX2FjY2VzcyBlbWFpbCJ9.5R85_1R38ZFXv_wIjjCIsj8NJm1p66dCsLJI5DBEmks"}' "InterOp Lab - Specific Selection" - name: set reservation outputs if: always() @@ -114,7 +114,7 @@ jobs: marker_expression: "${{ needs.vars.outputs.marker_overwrite || 'interop_uc_sanity and client_connect and android and not wpa3_personal' }}" configuration_file: "./lab_info.json" testing_docker_image: tip-tip-wlan-cloud-docker-repo.jfrog.io/cloud-sdk-nightly:${{ github.run_id }} - additional_args: "-o model-android='Galaxy S9' -o 'jobName=Github-Interop-galaxy-s9' -o 'jobNumber=${{ github.run_number }}' --skip-lanforge" + additional_args: "--device='Galaxy S9' --skip-lanforge" allure_results_artifact_name: allure-results-galaxy-s9 - name: stop reservation @@ -133,75 +133,25 @@ jobs: test-iphone-11: runs-on: ubuntu-latest - needs: [ vars, test-galaxy-s9 ] + needs: [vars, test-galaxy-s9] if: "!cancelled() && contains(fromJSON(needs.vars.outputs.devices), 'iphone-11')" steps: - uses: actions/checkout@v2 - - name: install dependencies - run: | - pip install -r .quali/requirements.txt - # curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip" - # unzip awscliv2.zip - # sudo ./aws/install - - - name: start reservation - env: - CLOUDSHELL_URL: quali-cloudshell.lab.wlan.tip.build - CLOUDSHELL_USER: ${{ secrets.CLOUDSHELL_USER }} - CLOUDSHELL_PASSWORD: ${{ secrets.CLOUDSHELL_PASSWORD }} - run: | - python .quali/start_reservation.py --global-inputs '{"Optional Existing SDK Namespace":"qa01","Phone ID(s)":"6","AP ID(s)":"1","Include a LANForge?":"Yes","securityToken":"eyJhbGciOiJIUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICI3NzkzZGM0Ni1jZmU4LTQ4ODMtYjhiOS02ZWFlZGU2OTc2MDkifQ.eyJpYXQiOjE2MzI4Mzc2NDEsImp0aSI6IjAwZGRiYWY5LWQwYjMtNDRjNS1hYjVlLTkyNzFlNzc5ZGUzNiIsImlzcyI6Imh0dHBzOi8vYXV0aDIucGVyZmVjdG9tb2JpbGUuY29tL2F1dGgvcmVhbG1zL3RpcC1wZXJmZWN0b21vYmlsZS1jb20iLCJhdWQiOiJodHRwczovL2F1dGgyLnBlcmZlY3RvbW9iaWxlLmNvbS9hdXRoL3JlYWxtcy90aXAtcGVyZmVjdG9tb2JpbGUtY29tIiwic3ViIjoiODNkNjUxMWQtNTBmZS00ZWM5LThkNzAtYTA0ZjBkNTdiZDUyIiwidHlwIjoiT2ZmbGluZSIsImF6cCI6Im9mZmxpbmUtdG9rZW4tZ2VuZXJhdG9yIiwibm9uY2UiOiI2ZjE1YzYxNy01YTU5LTQyOWEtODc2Yi1jOTQxMTQ1ZDFkZTIiLCJzZXNzaW9uX3N0YXRlIjoiYmRjZTFmYTMtMjlkYi00MmFmLWI5YWMtYjZjZmJkMDEyOTFhIiwic2NvcGUiOiJvcGVuaWQgcHJvZmlsZSBvZmZsaW5lX2FjY2VzcyBlbWFpbCJ9.5R85_1R38ZFXv_wIjjCIsj8NJm1p66dCsLJI5DBEmks"}' "InterOp Lab - Specific Selection" - - - name: set reservation outputs - if: always() - id: reservation - run: | - echo ::set-output name=identifier::"$(cat ./reservation_id.txt)" - echo ::set-output name=namespace::"$(cat ./reservation_id.txt | cut -d "-" -f 1)" - - name: get EKS access credentials run: aws eks update-kubeconfig --name ${{ env.AWS_EKS_NAME }} - - name: install kubectl - run: | - curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl" - sudo install -o root -g root -m 0755 kubectl /usr/local/bin/kubectl - - - name: prepare configuration - env: - CLOUDSHELL_URL: quali-cloudshell.lab.wlan.tip.build - CLOUDSHELL_USER: ${{ secrets.CLOUDSHELL_USER }} - CLOUDSHELL_PASSWORD: ${{ secrets.CLOUDSHELL_PASSWORD }} - run: | - cat << EOF > lab_info.json - ${{ secrets.LAB_CONFIGURATION_JSON }} - EOF - - DYN_CONFIG="$(python .quali/get_configuration.py --json ${{ steps.reservation.outputs.identifier }})" - - jq ".CONFIGURATION.interop=$DYN_CONFIG" lab_info.json > lab_info.json.tmp && mv lab_info.json.tmp lab_info.json - - name: run tests uses: ./.github/actions/run-tests with: namespace: interop-${{ github.run_id }}-iphone-11 - testbed: interop + testbed: interop-01 marker_expression: "${{ needs.vars.outputs.marker_overwrite || 'interop_uc_sanity and client_connect and ios' }}" - configuration_file: "./lab_info.json" + configuration: "${{ secrets.LAB_CONFIGURATION_JSON }}" testing_docker_image: tip-tip-wlan-cloud-docker-repo.jfrog.io/cloud-sdk-nightly:${{ github.run_id }} - additional_args: "-o model-iOS='iPhone-11' -o 'jobName=Github-Interop-iphone-11' -o 'jobNumber=${{ github.run_number }}' --skip-lanforge" + additional_args: "--device='iPhone-11' --skip-lanforge" allure_results_artifact_name: allure-results-iphone-11 - - name: stop reservation - if: always() - run: python .quali/stop_reservation.py ${{ steps.reservation.outputs.identifier }} - env: - CLOUDSHELL_URL: quali-cloudshell.lab.wlan.tip.build - CLOUDSHELL_USER: ${{ secrets.CLOUDSHELL_USER }} - CLOUDSHELL_PASSWORD: ${{ secrets.CLOUDSHELL_PASSWORD }} - - # necessary because if conditionals in composite actions are currently not respected - name: delete namespace if: always() From 0d731d508f301e91f327bd6fd7d980d7015aec5d Mon Sep 17 00:00:00 2001 From: dutta-rohan <94938704+dutta-rohan@users.noreply.github.com> Date: Fri, 22 Apr 2022 10:48:42 -0700 Subject: [PATCH 086/100] Modified .quali/get_config Signed-off-by: dutta-rohan <94938704+dutta-rohan@users.noreply.github.com> --- .github/workflows/interop.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/interop.yml b/.github/workflows/interop.yml index b58a3f68c..f3534c2af 100644 --- a/.github/workflows/interop.yml +++ b/.github/workflows/interop.yml @@ -105,6 +105,12 @@ jobs: DYN_CONFIG="$(python .quali/get_configuration.py --json ${{ steps.reservation.outputs.identifier }})" jq ".CONFIGURATION.interop=$DYN_CONFIG" lab_info.json > lab_info.json.tmp && mv lab_info.json.tmp lab_info.json + + + if [ ${{ needs.vars.outputs.existing_controller }} != '' ] + then + jq '.CONFIGURATION.basic.controller.url="https://sec-${{ needs.vars.outputs.existing_controller }}.cicd.lab.wlan.tip.build:16001"' lab_info.json > lab_info.json.tmp && mv lab_info.json.tmp lab_info.json + fi - name: run tests uses: ./.github/actions/run-tests From 38f9f7f96888ebbe8a4a4827a1c8d7ec811f8aea Mon Sep 17 00:00:00 2001 From: dutta-rohan <94938704+dutta-rohan@users.noreply.github.com> Date: Fri, 22 Apr 2022 10:51:39 -0700 Subject: [PATCH 087/100] Modified .quali/get_config Signed-off-by: dutta-rohan <94938704+dutta-rohan@users.noreply.github.com> --- .github/workflows/interop.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/interop.yml b/.github/workflows/interop.yml index f3534c2af..c16ffc614 100644 --- a/.github/workflows/interop.yml +++ b/.github/workflows/interop.yml @@ -32,6 +32,11 @@ jobs: outputs: devices: ${{ steps.vars.outputs.devices }} marker_overwrite: ${{ steps.vars.outputs.marker_overwrite }} + openwifi_revision: ${{ steps.vars.outputs.openwifi}} + ap_models: ${{ steps.vars.outputs.ap_models}} + ap_version: ${{ steps.vars.outputs.ap_version}} + marker_expression: ${{ steps.vars.outputs.marker_expression }} + existing_controller: ${{ steps.vars.outputs.existing_controller }} steps: - name: set variables @@ -75,7 +80,7 @@ jobs: CLOUDSHELL_USER: ${{ secrets.CLOUDSHELL_USER }} CLOUDSHELL_PASSWORD: ${{ secrets.CLOUDSHELL_PASSWORD }} run: | - python .quali/start_reservation.py --global-inputs '{"Phone ID(s)":"1","AP ID(s)":"1","Include a LANForge?":"Yes","securityToken":"eyJhbGciOiJIUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICI3NzkzZGM0Ni1jZmU4LTQ4ODMtYjhiOS02ZWFlZGU2OTc2MDkifQ.eyJpYXQiOjE2MzI4Mzc2NDEsImp0aSI6IjAwZGRiYWY5LWQwYjMtNDRjNS1hYjVlLTkyNzFlNzc5ZGUzNiIsImlzcyI6Imh0dHBzOi8vYXV0aDIucGVyZmVjdG9tb2JpbGUuY29tL2F1dGgvcmVhbG1zL3RpcC1wZXJmZWN0b21vYmlsZS1jb20iLCJhdWQiOiJodHRwczovL2F1dGgyLnBlcmZlY3RvbW9iaWxlLmNvbS9hdXRoL3JlYWxtcy90aXAtcGVyZmVjdG9tb2JpbGUtY29tIiwic3ViIjoiODNkNjUxMWQtNTBmZS00ZWM5LThkNzAtYTA0ZjBkNTdiZDUyIiwidHlwIjoiT2ZmbGluZSIsImF6cCI6Im9mZmxpbmUtdG9rZW4tZ2VuZXJhdG9yIiwibm9uY2UiOiI2ZjE1YzYxNy01YTU5LTQyOWEtODc2Yi1jOTQxMTQ1ZDFkZTIiLCJzZXNzaW9uX3N0YXRlIjoiYmRjZTFmYTMtMjlkYi00MmFmLWI5YWMtYjZjZmJkMDEyOTFhIiwic2NvcGUiOiJvcGVuaWQgcHJvZmlsZSBvZmZsaW5lX2FjY2VzcyBlbWFpbCJ9.5R85_1R38ZFXv_wIjjCIsj8NJm1p66dCsLJI5DBEmks"}' "InterOp Lab - Specific Selection" + python .quali/start_reservation.py --global-inputs '{"Phone ID(s)":"1","AP ID(s)":"1","Optional Existing SDK Namespace":"${{ needs.vars.outputs.existing_controller }}","Include a LANForge?":"Yes","securityToken":"eyJhbGciOiJIUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICI3NzkzZGM0Ni1jZmU4LTQ4ODMtYjhiOS02ZWFlZGU2OTc2MDkifQ.eyJpYXQiOjE2MzI4Mzc2NDEsImp0aSI6IjAwZGRiYWY5LWQwYjMtNDRjNS1hYjVlLTkyNzFlNzc5ZGUzNiIsImlzcyI6Imh0dHBzOi8vYXV0aDIucGVyZmVjdG9tb2JpbGUuY29tL2F1dGgvcmVhbG1zL3RpcC1wZXJmZWN0b21vYmlsZS1jb20iLCJhdWQiOiJodHRwczovL2F1dGgyLnBlcmZlY3RvbW9iaWxlLmNvbS9hdXRoL3JlYWxtcy90aXAtcGVyZmVjdG9tb2JpbGUtY29tIiwic3ViIjoiODNkNjUxMWQtNTBmZS00ZWM5LThkNzAtYTA0ZjBkNTdiZDUyIiwidHlwIjoiT2ZmbGluZSIsImF6cCI6Im9mZmxpbmUtdG9rZW4tZ2VuZXJhdG9yIiwibm9uY2UiOiI2ZjE1YzYxNy01YTU5LTQyOWEtODc2Yi1jOTQxMTQ1ZDFkZTIiLCJzZXNzaW9uX3N0YXRlIjoiYmRjZTFmYTMtMjlkYi00MmFmLWI5YWMtYjZjZmJkMDEyOTFhIiwic2NvcGUiOiJvcGVuaWQgcHJvZmlsZSBvZmZsaW5lX2FjY2VzcyBlbWFpbCJ9.5R85_1R38ZFXv_wIjjCIsj8NJm1p66dCsLJI5DBEmks"}' "InterOp Lab - Specific Selection" - name: set reservation outputs if: always() From f4cc45e22387686a376cecc4fe325e7751c40db0 Mon Sep 17 00:00:00 2001 From: dutta-rohan <94938704+dutta-rohan@users.noreply.github.com> Date: Fri, 22 Apr 2022 10:56:42 -0700 Subject: [PATCH 088/100] Modified .quali/get_config Signed-off-by: dutta-rohan <94938704+dutta-rohan@users.noreply.github.com> --- .github/workflows/interop.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/interop.yml b/.github/workflows/interop.yml index c16ffc614..716af8511 100644 --- a/.github/workflows/interop.yml +++ b/.github/workflows/interop.yml @@ -47,6 +47,11 @@ jobs: DEVICES="${{ github.event.inputs.devices || 'galaxy-s9,galaxy-s10,galaxy-s20,pixel-4,iphone-7,iphone-11,iphone-xr,iphone-12' }}" DEVICES=$(echo $DEVICES | sed "s/,/\",\"/g" | sed 's/^/[\"/g' | sed 's/$/\"]/g') echo "::set-output name=devices::${DEVICES}" + echo ::set-output name=openwifi::$(echo "${{ github.event.inputs.openwifi_revision || 'main' }}") + echo ::set-output name=ap_models::$(echo "${{ github.event.inputs.ap_models || 'edgecore_ecw5410,edgecore_eap101,tp-link_ec420-g1,edgecore_ecw5211,cig_wf188n,edgecore_eap102,cig_wf194c,hfcl_ion4' }}") + echo ::set-output name=ap_version::$(echo "${{ github.event.inputs.ap_version || 'next-latest' }}") + echo ::set-output name=marker_expression::$(echo "${{ github.event.inputs.marker_expression || 'uc_sanity' }}") + echo ::set-output name=existing_controller::$(echo "${{ github.event.inputs.existing_controller || 'qa01' }}") build: runs-on: ubuntu-latest From 5cbaba453a66eb8118cbdcb98790e26bfe37dddc Mon Sep 17 00:00:00 2001 From: dutta-rohan <94938704+dutta-rohan@users.noreply.github.com> Date: Fri, 22 Apr 2022 11:08:33 -0700 Subject: [PATCH 089/100] Modified .quali/get_config Signed-off-by: dutta-rohan <94938704+dutta-rohan@users.noreply.github.com> --- .github/workflows/interop.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/interop.yml b/.github/workflows/interop.yml index 716af8511..17a6915eb 100644 --- a/.github/workflows/interop.yml +++ b/.github/workflows/interop.yml @@ -119,7 +119,7 @@ jobs: if [ ${{ needs.vars.outputs.existing_controller }} != '' ] then - jq '.CONFIGURATION.basic.controller.url="https://sec-${{ needs.vars.outputs.existing_controller }}.cicd.lab.wlan.tip.build:16001"' lab_info.json > lab_info.json.tmp && mv lab_info.json.tmp lab_info.json + jq '.CONFIGURATION.interop.controller.url="https://sec-${{ needs.vars.outputs.existing_controller }}.cicd.lab.wlan.tip.build:16001"' lab_info.json > lab_info.json.tmp && mv lab_info.json.tmp lab_info.json fi - name: run tests From 377853a86fb8908ce40fe2ba904394042bdd0a92 Mon Sep 17 00:00:00 2001 From: dutta-rohan <94938704+dutta-rohan@users.noreply.github.com> Date: Sat, 23 Apr 2022 14:35:31 -0700 Subject: [PATCH 090/100] Modified .quali/get_config Signed-off-by: dutta-rohan <94938704+dutta-rohan@users.noreply.github.com> --- .github/workflows/interop.yml | 421 ++++++++++++++++++++++++++++++++-- 1 file changed, 406 insertions(+), 15 deletions(-) diff --git a/.github/workflows/interop.yml b/.github/workflows/interop.yml index 17a6915eb..862aa3266 100644 --- a/.github/workflows/interop.yml +++ b/.github/workflows/interop.yml @@ -85,7 +85,7 @@ jobs: CLOUDSHELL_USER: ${{ secrets.CLOUDSHELL_USER }} CLOUDSHELL_PASSWORD: ${{ secrets.CLOUDSHELL_PASSWORD }} run: | - python .quali/start_reservation.py --global-inputs '{"Phone ID(s)":"1","AP ID(s)":"1","Optional Existing SDK Namespace":"${{ needs.vars.outputs.existing_controller }}","Include a LANForge?":"Yes","securityToken":"eyJhbGciOiJIUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICI3NzkzZGM0Ni1jZmU4LTQ4ODMtYjhiOS02ZWFlZGU2OTc2MDkifQ.eyJpYXQiOjE2MzI4Mzc2NDEsImp0aSI6IjAwZGRiYWY5LWQwYjMtNDRjNS1hYjVlLTkyNzFlNzc5ZGUzNiIsImlzcyI6Imh0dHBzOi8vYXV0aDIucGVyZmVjdG9tb2JpbGUuY29tL2F1dGgvcmVhbG1zL3RpcC1wZXJmZWN0b21vYmlsZS1jb20iLCJhdWQiOiJodHRwczovL2F1dGgyLnBlcmZlY3RvbW9iaWxlLmNvbS9hdXRoL3JlYWxtcy90aXAtcGVyZmVjdG9tb2JpbGUtY29tIiwic3ViIjoiODNkNjUxMWQtNTBmZS00ZWM5LThkNzAtYTA0ZjBkNTdiZDUyIiwidHlwIjoiT2ZmbGluZSIsImF6cCI6Im9mZmxpbmUtdG9rZW4tZ2VuZXJhdG9yIiwibm9uY2UiOiI2ZjE1YzYxNy01YTU5LTQyOWEtODc2Yi1jOTQxMTQ1ZDFkZTIiLCJzZXNzaW9uX3N0YXRlIjoiYmRjZTFmYTMtMjlkYi00MmFmLWI5YWMtYjZjZmJkMDEyOTFhIiwic2NvcGUiOiJvcGVuaWQgcHJvZmlsZSBvZmZsaW5lX2FjY2VzcyBlbWFpbCJ9.5R85_1R38ZFXv_wIjjCIsj8NJm1p66dCsLJI5DBEmks"}' "InterOp Lab - Specific Selection" + python .quali/start_reservation.py --global-inputs '{"Phone ID(s)":"1","AP ID(s)":"1","Optional Existing SDK Namespace":"${{ needs.vars.outputs.existing_controller }}","Include a LANForge?":"Yes","securityToken":"eyJhbGciOiJIUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICI3NzkzZGM0Ni1jZmU4LTQ4ODMtYjhiOS02ZWFlZGU2OTc2MDkifQ.eyJpYXQiOjE2MzI4Mzc2NDEsImp0aSI6IjAwZGRiYWY5LWQwYjMtNDRjNS1hYjVlLTkyNzFlNzc5ZGUzNiIsImlzcyI6Imh0dHBzOi8vYXV0aDIucGVyZmVjdG9tb2JpbGUuY29tL2F1dGgvcmVhbG1zL3RpcC1wZXJmZWN0b21vYmlsZS1jb20iLCJhdWQiOiJodHRwczovL2F1dGgyLnBlcmZlY3RvbW9iaWxlLmNvbS9hdXRoL3JlYWxtcy90aXAtcGVyZmVjdG9tb2JpbGUtY29tIiwic3ViIjoiODNkNjUxMWQtNTBmZS00ZWM5LThkNzAtYTA0ZjBkNTdiZDUyIiwidHlwIjoiT2ZmbGluZSIsImF6cCI6Im9mZmxpbmUtdG9rZW4tZ2VuZXJhdG9yIiwibm9uY2UiOiI2ZjE1YzYxNy01YTU5LTQyOWEtODc2Yi1jOTQxMTQ1ZDFkZTIiLCJzZXNzaW9uX3N0YXRlIjoiYmRjZTFmYTMtMjlkYi00MmFmLWI5YWMtYjZjZmJkMDEyOTFhIiwic2NvcGUiOiJvcGVuaWQgcHJvZmlsZSBvZmZsaW5lX2FjY2VzcyBlbWFpbCJ9.5R85_1R38ZFXv_wIjjCIsj8NJm1p66dCsLJI5DBEmks"}' --reservation-duration 480 "InterOp Lab - Specific Selection" - name: set reservation outputs if: always() @@ -154,20 +154,76 @@ jobs: steps: - uses: actions/checkout@v2 + - name: install dependencies + run: | + pip install -r .quali/requirements.txt + # curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip" + # unzip awscliv2.zip + # sudo ./aws/install + + - name: start reservation + env: + CLOUDSHELL_URL: quali-cloudshell.lab.wlan.tip.build + CLOUDSHELL_USER: ${{ secrets.CLOUDSHELL_USER }} + CLOUDSHELL_PASSWORD: ${{ secrets.CLOUDSHELL_PASSWORD }} + run: | + python .quali/start_reservation.py --global-inputs '{"Phone ID(s)":"6","AP ID(s)":"1","Optional Existing SDK Namespace":"${{ needs.vars.outputs.existing_controller }}","Include a LANForge?":"Yes","securityToken":"eyJhbGciOiJIUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICI3NzkzZGM0Ni1jZmU4LTQ4ODMtYjhiOS02ZWFlZGU2OTc2MDkifQ.eyJpYXQiOjE2MzI4Mzc2NDEsImp0aSI6IjAwZGRiYWY5LWQwYjMtNDRjNS1hYjVlLTkyNzFlNzc5ZGUzNiIsImlzcyI6Imh0dHBzOi8vYXV0aDIucGVyZmVjdG9tb2JpbGUuY29tL2F1dGgvcmVhbG1zL3RpcC1wZXJmZWN0b21vYmlsZS1jb20iLCJhdWQiOiJodHRwczovL2F1dGgyLnBlcmZlY3RvbW9iaWxlLmNvbS9hdXRoL3JlYWxtcy90aXAtcGVyZmVjdG9tb2JpbGUtY29tIiwic3ViIjoiODNkNjUxMWQtNTBmZS00ZWM5LThkNzAtYTA0ZjBkNTdiZDUyIiwidHlwIjoiT2ZmbGluZSIsImF6cCI6Im9mZmxpbmUtdG9rZW4tZ2VuZXJhdG9yIiwibm9uY2UiOiI2ZjE1YzYxNy01YTU5LTQyOWEtODc2Yi1jOTQxMTQ1ZDFkZTIiLCJzZXNzaW9uX3N0YXRlIjoiYmRjZTFmYTMtMjlkYi00MmFmLWI5YWMtYjZjZmJkMDEyOTFhIiwic2NvcGUiOiJvcGVuaWQgcHJvZmlsZSBvZmZsaW5lX2FjY2VzcyBlbWFpbCJ9.5R85_1R38ZFXv_wIjjCIsj8NJm1p66dCsLJI5DBEmks"}' "InterOp Lab - Specific Selection" + + - name: set reservation outputs + if: always() + id: reservation + run: | + echo ::set-output name=identifier::"$(cat ./reservation_id.txt)" + echo ::set-output name=namespace::"$(cat ./reservation_id.txt | cut -d "-" -f 1)" + + - name: get EKS access credentials run: aws eks update-kubeconfig --name ${{ env.AWS_EKS_NAME }} + - name: install kubectl + run: | + curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl" + sudo install -o root -g root -m 0755 kubectl /usr/local/bin/kubectl + + - name: prepare configuration + env: + CLOUDSHELL_URL: quali-cloudshell.lab.wlan.tip.build + CLOUDSHELL_USER: ${{ secrets.CLOUDSHELL_USER }} + CLOUDSHELL_PASSWORD: ${{ secrets.CLOUDSHELL_PASSWORD }} + run: | + cat << EOF > lab_info.json + ${{ secrets.LAB_CONFIGURATION_JSON }} + EOF + + DYN_CONFIG="$(python .quali/get_configuration.py --json ${{ steps.reservation.outputs.identifier }})" + + jq ".CONFIGURATION.interop=$DYN_CONFIG" lab_info.json > lab_info.json.tmp && mv lab_info.json.tmp lab_info.json + + + if [ ${{ needs.vars.outputs.existing_controller }} != '' ] + then + jq '.CONFIGURATION.interop.controller.url="https://sec-${{ needs.vars.outputs.existing_controller }}.cicd.lab.wlan.tip.build:16001"' lab_info.json > lab_info.json.tmp && mv lab_info.json.tmp lab_info.json + fi + - name: run tests uses: ./.github/actions/run-tests with: namespace: interop-${{ github.run_id }}-iphone-11 - testbed: interop-01 + testbed: interop marker_expression: "${{ needs.vars.outputs.marker_overwrite || 'interop_uc_sanity and client_connect and ios' }}" - configuration: "${{ secrets.LAB_CONFIGURATION_JSON }}" + configuration_file: "$./lab_info.json" testing_docker_image: tip-tip-wlan-cloud-docker-repo.jfrog.io/cloud-sdk-nightly:${{ github.run_id }} additional_args: "--device='iPhone-11' --skip-lanforge" allure_results_artifact_name: allure-results-iphone-11 + - name: stop reservation + if: always() + run: python .quali/stop_reservation.py ${{ steps.reservation.outputs.identifier }} + env: + CLOUDSHELL_URL: quali-cloudshell.lab.wlan.tip.build + CLOUDSHELL_USER: ${{ secrets.CLOUDSHELL_USER }} + CLOUDSHELL_PASSWORD: ${{ secrets.CLOUDSHELL_PASSWORD }} + # necessary because if conditionals in composite actions are currently not respected - name: delete namespace if: always() @@ -182,20 +238,76 @@ jobs: steps: - uses: actions/checkout@v2 + - name: install dependencies + run: | + pip install -r .quali/requirements.txt + # curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip" + # unzip awscliv2.zip + # sudo ./aws/install + + - name: start reservation + env: + CLOUDSHELL_URL: quali-cloudshell.lab.wlan.tip.build + CLOUDSHELL_USER: ${{ secrets.CLOUDSHELL_USER }} + CLOUDSHELL_PASSWORD: ${{ secrets.CLOUDSHELL_PASSWORD }} + run: | + python .quali/start_reservation.py --global-inputs '{"Phone ID(s)":"2","AP ID(s)":"1","Optional Existing SDK Namespace":"${{ needs.vars.outputs.existing_controller }}","Include a LANForge?":"Yes","securityToken":"eyJhbGciOiJIUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICI3NzkzZGM0Ni1jZmU4LTQ4ODMtYjhiOS02ZWFlZGU2OTc2MDkifQ.eyJpYXQiOjE2MzI4Mzc2NDEsImp0aSI6IjAwZGRiYWY5LWQwYjMtNDRjNS1hYjVlLTkyNzFlNzc5ZGUzNiIsImlzcyI6Imh0dHBzOi8vYXV0aDIucGVyZmVjdG9tb2JpbGUuY29tL2F1dGgvcmVhbG1zL3RpcC1wZXJmZWN0b21vYmlsZS1jb20iLCJhdWQiOiJodHRwczovL2F1dGgyLnBlcmZlY3RvbW9iaWxlLmNvbS9hdXRoL3JlYWxtcy90aXAtcGVyZmVjdG9tb2JpbGUtY29tIiwic3ViIjoiODNkNjUxMWQtNTBmZS00ZWM5LThkNzAtYTA0ZjBkNTdiZDUyIiwidHlwIjoiT2ZmbGluZSIsImF6cCI6Im9mZmxpbmUtdG9rZW4tZ2VuZXJhdG9yIiwibm9uY2UiOiI2ZjE1YzYxNy01YTU5LTQyOWEtODc2Yi1jOTQxMTQ1ZDFkZTIiLCJzZXNzaW9uX3N0YXRlIjoiYmRjZTFmYTMtMjlkYi00MmFmLWI5YWMtYjZjZmJkMDEyOTFhIiwic2NvcGUiOiJvcGVuaWQgcHJvZmlsZSBvZmZsaW5lX2FjY2VzcyBlbWFpbCJ9.5R85_1R38ZFXv_wIjjCIsj8NJm1p66dCsLJI5DBEmks"}' --reservation-duration 480 "InterOp Lab - Specific Selection" + + - name: set reservation outputs + if: always() + id: reservation + run: | + echo ::set-output name=identifier::"$(cat ./reservation_id.txt)" + echo ::set-output name=namespace::"$(cat ./reservation_id.txt | cut -d "-" -f 1)" + + - name: get EKS access credentials run: aws eks update-kubeconfig --name ${{ env.AWS_EKS_NAME }} + - name: install kubectl + run: | + curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl" + sudo install -o root -g root -m 0755 kubectl /usr/local/bin/kubectl + + - name: prepare configuration + env: + CLOUDSHELL_URL: quali-cloudshell.lab.wlan.tip.build + CLOUDSHELL_USER: ${{ secrets.CLOUDSHELL_USER }} + CLOUDSHELL_PASSWORD: ${{ secrets.CLOUDSHELL_PASSWORD }} + run: | + cat << EOF > lab_info.json + ${{ secrets.LAB_CONFIGURATION_JSON }} + EOF + + DYN_CONFIG="$(python .quali/get_configuration.py --json ${{ steps.reservation.outputs.identifier }})" + + jq ".CONFIGURATION.interop=$DYN_CONFIG" lab_info.json > lab_info.json.tmp && mv lab_info.json.tmp lab_info.json + + + if [ ${{ needs.vars.outputs.existing_controller }} != '' ] + then + jq '.CONFIGURATION.interop.controller.url="https://sec-${{ needs.vars.outputs.existing_controller }}.cicd.lab.wlan.tip.build:16001"' lab_info.json > lab_info.json.tmp && mv lab_info.json.tmp lab_info.json + fi + - name: run tests uses: ./.github/actions/run-tests with: namespace: interop-${{ github.run_id }}-galaxy-s10 - testbed: interop-02 + testbed: interop marker_expression: "${{ needs.vars.outputs.marker_overwrite || 'interop_uc_sanity and client_connect and android' }}" - configuration: "${{ secrets.LAB_CONFIGURATION_JSON }}" + configuration_file: "./lab_info.json" testing_docker_image: tip-tip-wlan-cloud-docker-repo.jfrog.io/cloud-sdk-nightly:${{ github.run_id }} additional_args: "--device='Galaxy S10.*' --skip-lanforge" allure_results_artifact_name: allure-results-galaxy-s10 + - name: stop reservation + if: always() + run: python .quali/stop_reservation.py ${{ steps.reservation.outputs.identifier }} + env: + CLOUDSHELL_URL: quali-cloudshell.lab.wlan.tip.build + CLOUDSHELL_USER: ${{ secrets.CLOUDSHELL_USER }} + CLOUDSHELL_PASSWORD: ${{ secrets.CLOUDSHELL_PASSWORD }} + # necessary because if conditionals in composite actions are currently not respected - name: delete namespace if: always() @@ -209,20 +321,76 @@ jobs: steps: - uses: actions/checkout@v2 + - name: install dependencies + run: | + pip install -r .quali/requirements.txt + # curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip" + # unzip awscliv2.zip + # sudo ./aws/install + + - name: start reservation + env: + CLOUDSHELL_URL: quali-cloudshell.lab.wlan.tip.build + CLOUDSHELL_USER: ${{ secrets.CLOUDSHELL_USER }} + CLOUDSHELL_PASSWORD: ${{ secrets.CLOUDSHELL_PASSWORD }} + run: | + python .quali/start_reservation.py --global-inputs '{"Phone ID(s)":"5","AP ID(s)":"1","Optional Existing SDK Namespace":"${{ needs.vars.outputs.existing_controller }}","Include a LANForge?":"Yes","securityToken":"eyJhbGciOiJIUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICI3NzkzZGM0Ni1jZmU4LTQ4ODMtYjhiOS02ZWFlZGU2OTc2MDkifQ.eyJpYXQiOjE2MzI4Mzc2NDEsImp0aSI6IjAwZGRiYWY5LWQwYjMtNDRjNS1hYjVlLTkyNzFlNzc5ZGUzNiIsImlzcyI6Imh0dHBzOi8vYXV0aDIucGVyZmVjdG9tb2JpbGUuY29tL2F1dGgvcmVhbG1zL3RpcC1wZXJmZWN0b21vYmlsZS1jb20iLCJhdWQiOiJodHRwczovL2F1dGgyLnBlcmZlY3RvbW9iaWxlLmNvbS9hdXRoL3JlYWxtcy90aXAtcGVyZmVjdG9tb2JpbGUtY29tIiwic3ViIjoiODNkNjUxMWQtNTBmZS00ZWM5LThkNzAtYTA0ZjBkNTdiZDUyIiwidHlwIjoiT2ZmbGluZSIsImF6cCI6Im9mZmxpbmUtdG9rZW4tZ2VuZXJhdG9yIiwibm9uY2UiOiI2ZjE1YzYxNy01YTU5LTQyOWEtODc2Yi1jOTQxMTQ1ZDFkZTIiLCJzZXNzaW9uX3N0YXRlIjoiYmRjZTFmYTMtMjlkYi00MmFmLWI5YWMtYjZjZmJkMDEyOTFhIiwic2NvcGUiOiJvcGVuaWQgcHJvZmlsZSBvZmZsaW5lX2FjY2VzcyBlbWFpbCJ9.5R85_1R38ZFXv_wIjjCIsj8NJm1p66dCsLJI5DBEmks"}' --reservation-duration 480 "InterOp Lab - Specific Selection" + + - name: set reservation outputs + if: always() + id: reservation + run: | + echo ::set-output name=identifier::"$(cat ./reservation_id.txt)" + echo ::set-output name=namespace::"$(cat ./reservation_id.txt | cut -d "-" -f 1)" + + - name: get EKS access credentials run: aws eks update-kubeconfig --name ${{ env.AWS_EKS_NAME }} + - name: install kubectl + run: | + curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl" + sudo install -o root -g root -m 0755 kubectl /usr/local/bin/kubectl + + - name: prepare configuration + env: + CLOUDSHELL_URL: quali-cloudshell.lab.wlan.tip.build + CLOUDSHELL_USER: ${{ secrets.CLOUDSHELL_USER }} + CLOUDSHELL_PASSWORD: ${{ secrets.CLOUDSHELL_PASSWORD }} + run: | + cat << EOF > lab_info.json + ${{ secrets.LAB_CONFIGURATION_JSON }} + EOF + + DYN_CONFIG="$(python .quali/get_configuration.py --json ${{ steps.reservation.outputs.identifier }})" + + jq ".CONFIGURATION.interop=$DYN_CONFIG" lab_info.json > lab_info.json.tmp && mv lab_info.json.tmp lab_info.json + + + if [ ${{ needs.vars.outputs.existing_controller }} != '' ] + then + jq '.CONFIGURATION.interop.controller.url="https://sec-${{ needs.vars.outputs.existing_controller }}.cicd.lab.wlan.tip.build:16001"' lab_info.json > lab_info.json.tmp && mv lab_info.json.tmp lab_info.json + fi + - name: run tests uses: ./.github/actions/run-tests with: namespace: interop-${{ github.run_id }}-iphone-7 - testbed: interop-02 + testbed: interop marker_expression: "${{ needs.vars.outputs.marker_overwrite || 'interop_uc_sanity and client_connect and ios' }}" - configuration: "${{ secrets.LAB_CONFIGURATION_JSON }}" + configuration_file: "./lab_info.json" testing_docker_image: tip-tip-wlan-cloud-docker-repo.jfrog.io/cloud-sdk-nightly:${{ github.run_id }} additional_args: "--device='iPhone-7' --skip-lanforge" allure_results_artifact_name: allure-results-iphone-7 + - name: stop reservation + if: always() + run: python .quali/stop_reservation.py ${{ steps.reservation.outputs.identifier }} + env: + CLOUDSHELL_URL: quali-cloudshell.lab.wlan.tip.build + CLOUDSHELL_USER: ${{ secrets.CLOUDSHELL_USER }} + CLOUDSHELL_PASSWORD: ${{ secrets.CLOUDSHELL_PASSWORD }} + # necessary because if conditionals in composite actions are currently not respected - name: delete namespace if: always() @@ -237,20 +405,76 @@ jobs: steps: - uses: actions/checkout@v2 + - name: install dependencies + run: | + pip install -r .quali/requirements.txt + # curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip" + # unzip awscliv2.zip + # sudo ./aws/install + + - name: start reservation + env: + CLOUDSHELL_URL: quali-cloudshell.lab.wlan.tip.build + CLOUDSHELL_USER: ${{ secrets.CLOUDSHELL_USER }} + CLOUDSHELL_PASSWORD: ${{ secrets.CLOUDSHELL_PASSWORD }} + run: | + python .quali/start_reservation.py --global-inputs '{"Phone ID(s)":"3","AP ID(s)":"1","Optional Existing SDK Namespace":"${{ needs.vars.outputs.existing_controller }}","Include a LANForge?":"Yes","securityToken":"eyJhbGciOiJIUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICI3NzkzZGM0Ni1jZmU4LTQ4ODMtYjhiOS02ZWFlZGU2OTc2MDkifQ.eyJpYXQiOjE2MzI4Mzc2NDEsImp0aSI6IjAwZGRiYWY5LWQwYjMtNDRjNS1hYjVlLTkyNzFlNzc5ZGUzNiIsImlzcyI6Imh0dHBzOi8vYXV0aDIucGVyZmVjdG9tb2JpbGUuY29tL2F1dGgvcmVhbG1zL3RpcC1wZXJmZWN0b21vYmlsZS1jb20iLCJhdWQiOiJodHRwczovL2F1dGgyLnBlcmZlY3RvbW9iaWxlLmNvbS9hdXRoL3JlYWxtcy90aXAtcGVyZmVjdG9tb2JpbGUtY29tIiwic3ViIjoiODNkNjUxMWQtNTBmZS00ZWM5LThkNzAtYTA0ZjBkNTdiZDUyIiwidHlwIjoiT2ZmbGluZSIsImF6cCI6Im9mZmxpbmUtdG9rZW4tZ2VuZXJhdG9yIiwibm9uY2UiOiI2ZjE1YzYxNy01YTU5LTQyOWEtODc2Yi1jOTQxMTQ1ZDFkZTIiLCJzZXNzaW9uX3N0YXRlIjoiYmRjZTFmYTMtMjlkYi00MmFmLWI5YWMtYjZjZmJkMDEyOTFhIiwic2NvcGUiOiJvcGVuaWQgcHJvZmlsZSBvZmZsaW5lX2FjY2VzcyBlbWFpbCJ9.5R85_1R38ZFXv_wIjjCIsj8NJm1p66dCsLJI5DBEmks"}' --reservation-duration 480 "InterOp Lab - Specific Selection" + + - name: set reservation outputs + if: always() + id: reservation + run: | + echo ::set-output name=identifier::"$(cat ./reservation_id.txt)" + echo ::set-output name=namespace::"$(cat ./reservation_id.txt | cut -d "-" -f 1)" + + - name: get EKS access credentials run: aws eks update-kubeconfig --name ${{ env.AWS_EKS_NAME }} + - name: install kubectl + run: | + curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl" + sudo install -o root -g root -m 0755 kubectl /usr/local/bin/kubectl + + - name: prepare configuration + env: + CLOUDSHELL_URL: quali-cloudshell.lab.wlan.tip.build + CLOUDSHELL_USER: ${{ secrets.CLOUDSHELL_USER }} + CLOUDSHELL_PASSWORD: ${{ secrets.CLOUDSHELL_PASSWORD }} + run: | + cat << EOF > lab_info.json + ${{ secrets.LAB_CONFIGURATION_JSON }} + EOF + + DYN_CONFIG="$(python .quali/get_configuration.py --json ${{ steps.reservation.outputs.identifier }})" + + jq ".CONFIGURATION.interop=$DYN_CONFIG" lab_info.json > lab_info.json.tmp && mv lab_info.json.tmp lab_info.json + + + if [ ${{ needs.vars.outputs.existing_controller }} != '' ] + then + jq '.CONFIGURATION.interop.controller.url="https://sec-${{ needs.vars.outputs.existing_controller }}.cicd.lab.wlan.tip.build:16001"' lab_info.json > lab_info.json.tmp && mv lab_info.json.tmp lab_info.json + fi + - name: run tests uses: ./.github/actions/run-tests with: namespace: interop-${{ github.run_id }}-galaxy-s20 - testbed: interop-03 + testbed: interop marker_expression: "${{ needs.vars.outputs.marker_overwrite || 'interop_uc_sanity and client_connect and android' }}" - configuration: "${{ secrets.LAB_CONFIGURATION_JSON }}" + configuration_file: "./lab_info.json" testing_docker_image: tip-tip-wlan-cloud-docker-repo.jfrog.io/cloud-sdk-nightly:${{ github.run_id }} additional_args: "--device='Galaxy S20' --skip-lanforge" allure_results_artifact_name: allure-results-galaxy-s20 + - name: stop reservation + if: always() + run: python .quali/stop_reservation.py ${{ steps.reservation.outputs.identifier }} + env: + CLOUDSHELL_URL: quali-cloudshell.lab.wlan.tip.build + CLOUDSHELL_USER: ${{ secrets.CLOUDSHELL_USER }} + CLOUDSHELL_PASSWORD: ${{ secrets.CLOUDSHELL_PASSWORD }} + # necessary because if conditionals in composite actions are currently not respected - name: delete namespace if: always() @@ -264,20 +488,76 @@ jobs: steps: - uses: actions/checkout@v2 + - name: install dependencies + run: | + pip install -r .quali/requirements.txt + # curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip" + # unzip awscliv2.zip + # sudo ./aws/install + + - name: start reservation + env: + CLOUDSHELL_URL: quali-cloudshell.lab.wlan.tip.build + CLOUDSHELL_USER: ${{ secrets.CLOUDSHELL_USER }} + CLOUDSHELL_PASSWORD: ${{ secrets.CLOUDSHELL_PASSWORD }} + run: | + python .quali/start_reservation.py --global-inputs '{"Phone ID(s)":"8","AP ID(s)":"1","Optional Existing SDK Namespace":"${{ needs.vars.outputs.existing_controller }}","Include a LANForge?":"Yes","securityToken":"eyJhbGciOiJIUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICI3NzkzZGM0Ni1jZmU4LTQ4ODMtYjhiOS02ZWFlZGU2OTc2MDkifQ.eyJpYXQiOjE2MzI4Mzc2NDEsImp0aSI6IjAwZGRiYWY5LWQwYjMtNDRjNS1hYjVlLTkyNzFlNzc5ZGUzNiIsImlzcyI6Imh0dHBzOi8vYXV0aDIucGVyZmVjdG9tb2JpbGUuY29tL2F1dGgvcmVhbG1zL3RpcC1wZXJmZWN0b21vYmlsZS1jb20iLCJhdWQiOiJodHRwczovL2F1dGgyLnBlcmZlY3RvbW9iaWxlLmNvbS9hdXRoL3JlYWxtcy90aXAtcGVyZmVjdG9tb2JpbGUtY29tIiwic3ViIjoiODNkNjUxMWQtNTBmZS00ZWM5LThkNzAtYTA0ZjBkNTdiZDUyIiwidHlwIjoiT2ZmbGluZSIsImF6cCI6Im9mZmxpbmUtdG9rZW4tZ2VuZXJhdG9yIiwibm9uY2UiOiI2ZjE1YzYxNy01YTU5LTQyOWEtODc2Yi1jOTQxMTQ1ZDFkZTIiLCJzZXNzaW9uX3N0YXRlIjoiYmRjZTFmYTMtMjlkYi00MmFmLWI5YWMtYjZjZmJkMDEyOTFhIiwic2NvcGUiOiJvcGVuaWQgcHJvZmlsZSBvZmZsaW5lX2FjY2VzcyBlbWFpbCJ9.5R85_1R38ZFXv_wIjjCIsj8NJm1p66dCsLJI5DBEmks"}' --reservation-duration 480 "InterOp Lab - Specific Selection" + + - name: set reservation outputs + if: always() + id: reservation + run: | + echo ::set-output name=identifier::"$(cat ./reservation_id.txt)" + echo ::set-output name=namespace::"$(cat ./reservation_id.txt | cut -d "-" -f 1)" + + - name: get EKS access credentials run: aws eks update-kubeconfig --name ${{ env.AWS_EKS_NAME }} + - name: install kubectl + run: | + curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl" + sudo install -o root -g root -m 0755 kubectl /usr/local/bin/kubectl + + - name: prepare configuration + env: + CLOUDSHELL_URL: quali-cloudshell.lab.wlan.tip.build + CLOUDSHELL_USER: ${{ secrets.CLOUDSHELL_USER }} + CLOUDSHELL_PASSWORD: ${{ secrets.CLOUDSHELL_PASSWORD }} + run: | + cat << EOF > lab_info.json + ${{ secrets.LAB_CONFIGURATION_JSON }} + EOF + + DYN_CONFIG="$(python .quali/get_configuration.py --json ${{ steps.reservation.outputs.identifier }})" + + jq ".CONFIGURATION.interop=$DYN_CONFIG" lab_info.json > lab_info.json.tmp && mv lab_info.json.tmp lab_info.json + + + if [ ${{ needs.vars.outputs.existing_controller }} != '' ] + then + jq '.CONFIGURATION.interop.controller.url="https://sec-${{ needs.vars.outputs.existing_controller }}.cicd.lab.wlan.tip.build:16001"' lab_info.json > lab_info.json.tmp && mv lab_info.json.tmp lab_info.json + fi + - name: run tests uses: ./.github/actions/run-tests with: namespace: interop-${{ github.run_id }}-iphone-xr - testbed: interop-03 + testbed: interop marker_expression: "${{ needs.vars.outputs.marker_overwrite || 'interop_uc_sanity and client_connect and ios' }}" - configuration: "${{ secrets.LAB_CONFIGURATION_JSON }}" + configuration_file: "./lab_info.json" testing_docker_image: tip-tip-wlan-cloud-docker-repo.jfrog.io/cloud-sdk-nightly:${{ github.run_id }} additional_args: "--device='iPhone-XR' --skip-lanforge" allure_results_artifact_name: allure-results-iphone-xr + - name: stop reservation + if: always() + run: python .quali/stop_reservation.py ${{ steps.reservation.outputs.identifier }} + env: + CLOUDSHELL_URL: quali-cloudshell.lab.wlan.tip.build + CLOUDSHELL_USER: ${{ secrets.CLOUDSHELL_USER }} + CLOUDSHELL_PASSWORD: ${{ secrets.CLOUDSHELL_PASSWORD } + # necessary because if conditionals in composite actions are currently not respected - name: delete namespace if: always() @@ -292,20 +572,76 @@ jobs: steps: - uses: actions/checkout@v2 + - name: install dependencies + run: | + pip install -r .quali/requirements.txt + # curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip" + # unzip awscliv2.zip + # sudo ./aws/install + + - name: start reservation + env: + CLOUDSHELL_URL: quali-cloudshell.lab.wlan.tip.build + CLOUDSHELL_USER: ${{ secrets.CLOUDSHELL_USER }} + CLOUDSHELL_PASSWORD: ${{ secrets.CLOUDSHELL_PASSWORD }} + run: | + python .quali/start_reservation.py --global-inputs '{"Phone ID(s)":"4","AP ID(s)":"1","Optional Existing SDK Namespace":"${{ needs.vars.outputs.existing_controller }}","Include a LANForge?":"Yes","securityToken":"eyJhbGciOiJIUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICI3NzkzZGM0Ni1jZmU4LTQ4ODMtYjhiOS02ZWFlZGU2OTc2MDkifQ.eyJpYXQiOjE2MzI4Mzc2NDEsImp0aSI6IjAwZGRiYWY5LWQwYjMtNDRjNS1hYjVlLTkyNzFlNzc5ZGUzNiIsImlzcyI6Imh0dHBzOi8vYXV0aDIucGVyZmVjdG9tb2JpbGUuY29tL2F1dGgvcmVhbG1zL3RpcC1wZXJmZWN0b21vYmlsZS1jb20iLCJhdWQiOiJodHRwczovL2F1dGgyLnBlcmZlY3RvbW9iaWxlLmNvbS9hdXRoL3JlYWxtcy90aXAtcGVyZmVjdG9tb2JpbGUtY29tIiwic3ViIjoiODNkNjUxMWQtNTBmZS00ZWM5LThkNzAtYTA0ZjBkNTdiZDUyIiwidHlwIjoiT2ZmbGluZSIsImF6cCI6Im9mZmxpbmUtdG9rZW4tZ2VuZXJhdG9yIiwibm9uY2UiOiI2ZjE1YzYxNy01YTU5LTQyOWEtODc2Yi1jOTQxMTQ1ZDFkZTIiLCJzZXNzaW9uX3N0YXRlIjoiYmRjZTFmYTMtMjlkYi00MmFmLWI5YWMtYjZjZmJkMDEyOTFhIiwic2NvcGUiOiJvcGVuaWQgcHJvZmlsZSBvZmZsaW5lX2FjY2VzcyBlbWFpbCJ9.5R85_1R38ZFXv_wIjjCIsj8NJm1p66dCsLJI5DBEmks"}' --reservation-duration 480 "InterOp Lab - Specific Selection" + + - name: set reservation outputs + if: always() + id: reservation + run: | + echo ::set-output name=identifier::"$(cat ./reservation_id.txt)" + echo ::set-output name=namespace::"$(cat ./reservation_id.txt | cut -d "-" -f 1)" + - name: get EKS access credentials run: aws eks update-kubeconfig --name ${{ env.AWS_EKS_NAME }} + - name: install kubectl + run: | + curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl" + sudo install -o root -g root -m 0755 kubectl /usr/local/bin/kubectl + + - name: prepare configuration + env: + CLOUDSHELL_URL: quali-cloudshell.lab.wlan.tip.build + CLOUDSHELL_USER: ${{ secrets.CLOUDSHELL_USER }} + CLOUDSHELL_PASSWORD: ${{ secrets.CLOUDSHELL_PASSWORD }} + run: | + cat << EOF > lab_info.json + ${{ secrets.LAB_CONFIGURATION_JSON }} + EOF + + DYN_CONFIG="$(python .quali/get_configuration.py --json ${{ steps.reservation.outputs.identifier }})" + + jq ".CONFIGURATION.interop=$DYN_CONFIG" lab_info.json > lab_info.json.tmp && mv lab_info.json.tmp lab_info.json + + + if [ ${{ needs.vars.outputs.existing_controller }} != '' ] + then + jq '.CONFIGURATION.interop.controller.url="https://sec-${{ needs.vars.outputs.existing_controller }}.cicd.lab.wlan.tip.build:16001"' lab_info.json > lab_info.json.tmp && mv lab_info.json.tmp lab_info.json + fi + + - name: run tests uses: ./.github/actions/run-tests with: namespace: interop-${{ github.run_id }}-pixel-4 - testbed: interop-04 + testbed: interop marker_expression: "${{ needs.vars.outputs.marker_overwrite || 'interop_uc_sanity and client_connect and android' }}" - configuration: "${{ secrets.LAB_CONFIGURATION_JSON }}" + configuration_file: "./lab_info.json" testing_docker_image: tip-tip-wlan-cloud-docker-repo.jfrog.io/cloud-sdk-nightly:${{ github.run_id }} additional_args: "--device='Pixel 4' --skip-lanforge" allure_results_artifact_name: allure-results-pixel-4 + - name: stop reservation + if: always() + run: python .quali/stop_reservation.py ${{ steps.reservation.outputs.identifier }} + env: + CLOUDSHELL_URL: quali-cloudshell.lab.wlan.tip.build + CLOUDSHELL_USER: ${{ secrets.CLOUDSHELL_USER }} + CLOUDSHELL_PASSWORD: ${{ secrets.CLOUDSHELL_PASSWORD }} + # necessary because if conditionals in composite actions are currently not respected - name: delete namespace if: always() @@ -319,20 +655,75 @@ jobs: steps: - uses: actions/checkout@v2 + - name: install dependencies + run: | + pip install -r .quali/requirements.txt + # curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip" + # unzip awscliv2.zip + # sudo ./aws/install + + - name: start reservation + env: + CLOUDSHELL_URL: quali-cloudshell.lab.wlan.tip.build + CLOUDSHELL_USER: ${{ secrets.CLOUDSHELL_USER }} + CLOUDSHELL_PASSWORD: ${{ secrets.CLOUDSHELL_PASSWORD }} + run: | + python .quali/start_reservation.py --global-inputs '{"Phone ID(s)":"7","AP ID(s)":"1","Optional Existing SDK Namespace":"${{ needs.vars.outputs.existing_controller }}","Include a LANForge?":"Yes","securityToken":"eyJhbGciOiJIUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICI3NzkzZGM0Ni1jZmU4LTQ4ODMtYjhiOS02ZWFlZGU2OTc2MDkifQ.eyJpYXQiOjE2MzI4Mzc2NDEsImp0aSI6IjAwZGRiYWY5LWQwYjMtNDRjNS1hYjVlLTkyNzFlNzc5ZGUzNiIsImlzcyI6Imh0dHBzOi8vYXV0aDIucGVyZmVjdG9tb2JpbGUuY29tL2F1dGgvcmVhbG1zL3RpcC1wZXJmZWN0b21vYmlsZS1jb20iLCJhdWQiOiJodHRwczovL2F1dGgyLnBlcmZlY3RvbW9iaWxlLmNvbS9hdXRoL3JlYWxtcy90aXAtcGVyZmVjdG9tb2JpbGUtY29tIiwic3ViIjoiODNkNjUxMWQtNTBmZS00ZWM5LThkNzAtYTA0ZjBkNTdiZDUyIiwidHlwIjoiT2ZmbGluZSIsImF6cCI6Im9mZmxpbmUtdG9rZW4tZ2VuZXJhdG9yIiwibm9uY2UiOiI2ZjE1YzYxNy01YTU5LTQyOWEtODc2Yi1jOTQxMTQ1ZDFkZTIiLCJzZXNzaW9uX3N0YXRlIjoiYmRjZTFmYTMtMjlkYi00MmFmLWI5YWMtYjZjZmJkMDEyOTFhIiwic2NvcGUiOiJvcGVuaWQgcHJvZmlsZSBvZmZsaW5lX2FjY2VzcyBlbWFpbCJ9.5R85_1R38ZFXv_wIjjCIsj8NJm1p66dCsLJI5DBEmks"}' --reservation-duration 480 "InterOp Lab - Specific Selection" + + - name: set reservation outputs + if: always() + id: reservation + run: | + echo ::set-output name=identifier::"$(cat ./reservation_id.txt)" + echo ::set-output name=namespace::"$(cat ./reservation_id.txt | cut -d "-" -f 1)" + - name: get EKS access credentials run: aws eks update-kubeconfig --name ${{ env.AWS_EKS_NAME }} + - name: install kubectl + run: | + curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl" + sudo install -o root -g root -m 0755 kubectl /usr/local/bin/kubectl + + - name: prepare configuration + env: + CLOUDSHELL_URL: quali-cloudshell.lab.wlan.tip.build + CLOUDSHELL_USER: ${{ secrets.CLOUDSHELL_USER }} + CLOUDSHELL_PASSWORD: ${{ secrets.CLOUDSHELL_PASSWORD }} + run: | + cat << EOF > lab_info.json + ${{ secrets.LAB_CONFIGURATION_JSON }} + EOF + + DYN_CONFIG="$(python .quali/get_configuration.py --json ${{ steps.reservation.outputs.identifier }})" + + jq ".CONFIGURATION.interop=$DYN_CONFIG" lab_info.json > lab_info.json.tmp && mv lab_info.json.tmp lab_info.json + + + if [ ${{ needs.vars.outputs.existing_controller }} != '' ] + then + jq '.CONFIGURATION.interop.controller.url="https://sec-${{ needs.vars.outputs.existing_controller }}.cicd.lab.wlan.tip.build:16001"' lab_info.json > lab_info.json.tmp && mv lab_info.json.tmp lab_info.json + fi + - name: run tests uses: ./.github/actions/run-tests with: namespace: interop-${{ github.run_id }}-iphone-12 - testbed: interop-04 + testbed: interop marker_expression: "${{ needs.vars.outputs.marker_overwrite || 'interop_uc_sanity and client_connect and ios' }}" - configuration: "${{ secrets.LAB_CONFIGURATION_JSON }}" + configuration_file: "./lab_info.json" testing_docker_image: tip-tip-wlan-cloud-docker-repo.jfrog.io/cloud-sdk-nightly:${{ github.run_id }} additional_args: "--device='iPhone-12' --skip-lanforge" allure_results_artifact_name: allure-results-iphone-12 + - name: stop reservation + if: always() + run: python .quali/stop_reservation.py ${{ steps.reservation.outputs.identifier }} + env: + CLOUDSHELL_URL: quali-cloudshell.lab.wlan.tip.build + CLOUDSHELL_USER: ${{ secrets.CLOUDSHELL_USER }} + CLOUDSHELL_PASSWORD: ${{ secrets.CLOUDSHELL_PASSWORD }} + # necessary because if conditionals in composite actions are currently not respected - name: delete namespace if: always() From 9e9cba1dc9205f54b99690a95aceb3d221d2b955 Mon Sep 17 00:00:00 2001 From: dutta-rohan <94938704+dutta-rohan@users.noreply.github.com> Date: Sat, 23 Apr 2022 14:59:33 -0700 Subject: [PATCH 091/100] Modified .quali/get_config Signed-off-by: dutta-rohan <94938704+dutta-rohan@users.noreply.github.com> --- .github/workflows/interop.yml | 1166 ++++++++++++++++----------------- 1 file changed, 583 insertions(+), 583 deletions(-) diff --git a/.github/workflows/interop.yml b/.github/workflows/interop.yml index 862aa3266..64914beb5 100644 --- a/.github/workflows/interop.yml +++ b/.github/workflows/interop.yml @@ -147,589 +147,589 @@ jobs: continue-on-error: true run: kubectl delete ns --ignore-not-found=true --wait interop-${{ github.run_id }}-galaxy-s9 - test-iphone-11: - runs-on: ubuntu-latest - needs: [vars, test-galaxy-s9] - if: "!cancelled() && contains(fromJSON(needs.vars.outputs.devices), 'iphone-11')" - steps: - - uses: actions/checkout@v2 - - - name: install dependencies - run: | - pip install -r .quali/requirements.txt - # curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip" - # unzip awscliv2.zip - # sudo ./aws/install - - - name: start reservation - env: - CLOUDSHELL_URL: quali-cloudshell.lab.wlan.tip.build - CLOUDSHELL_USER: ${{ secrets.CLOUDSHELL_USER }} - CLOUDSHELL_PASSWORD: ${{ secrets.CLOUDSHELL_PASSWORD }} - run: | - python .quali/start_reservation.py --global-inputs '{"Phone ID(s)":"6","AP ID(s)":"1","Optional Existing SDK Namespace":"${{ needs.vars.outputs.existing_controller }}","Include a LANForge?":"Yes","securityToken":"eyJhbGciOiJIUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICI3NzkzZGM0Ni1jZmU4LTQ4ODMtYjhiOS02ZWFlZGU2OTc2MDkifQ.eyJpYXQiOjE2MzI4Mzc2NDEsImp0aSI6IjAwZGRiYWY5LWQwYjMtNDRjNS1hYjVlLTkyNzFlNzc5ZGUzNiIsImlzcyI6Imh0dHBzOi8vYXV0aDIucGVyZmVjdG9tb2JpbGUuY29tL2F1dGgvcmVhbG1zL3RpcC1wZXJmZWN0b21vYmlsZS1jb20iLCJhdWQiOiJodHRwczovL2F1dGgyLnBlcmZlY3RvbW9iaWxlLmNvbS9hdXRoL3JlYWxtcy90aXAtcGVyZmVjdG9tb2JpbGUtY29tIiwic3ViIjoiODNkNjUxMWQtNTBmZS00ZWM5LThkNzAtYTA0ZjBkNTdiZDUyIiwidHlwIjoiT2ZmbGluZSIsImF6cCI6Im9mZmxpbmUtdG9rZW4tZ2VuZXJhdG9yIiwibm9uY2UiOiI2ZjE1YzYxNy01YTU5LTQyOWEtODc2Yi1jOTQxMTQ1ZDFkZTIiLCJzZXNzaW9uX3N0YXRlIjoiYmRjZTFmYTMtMjlkYi00MmFmLWI5YWMtYjZjZmJkMDEyOTFhIiwic2NvcGUiOiJvcGVuaWQgcHJvZmlsZSBvZmZsaW5lX2FjY2VzcyBlbWFpbCJ9.5R85_1R38ZFXv_wIjjCIsj8NJm1p66dCsLJI5DBEmks"}' "InterOp Lab - Specific Selection" - - - name: set reservation outputs - if: always() - id: reservation - run: | - echo ::set-output name=identifier::"$(cat ./reservation_id.txt)" - echo ::set-output name=namespace::"$(cat ./reservation_id.txt | cut -d "-" -f 1)" - - - - name: get EKS access credentials - run: aws eks update-kubeconfig --name ${{ env.AWS_EKS_NAME }} - - - name: install kubectl - run: | - curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl" - sudo install -o root -g root -m 0755 kubectl /usr/local/bin/kubectl - - - name: prepare configuration - env: - CLOUDSHELL_URL: quali-cloudshell.lab.wlan.tip.build - CLOUDSHELL_USER: ${{ secrets.CLOUDSHELL_USER }} - CLOUDSHELL_PASSWORD: ${{ secrets.CLOUDSHELL_PASSWORD }} - run: | - cat << EOF > lab_info.json - ${{ secrets.LAB_CONFIGURATION_JSON }} - EOF - - DYN_CONFIG="$(python .quali/get_configuration.py --json ${{ steps.reservation.outputs.identifier }})" - - jq ".CONFIGURATION.interop=$DYN_CONFIG" lab_info.json > lab_info.json.tmp && mv lab_info.json.tmp lab_info.json - - - if [ ${{ needs.vars.outputs.existing_controller }} != '' ] - then - jq '.CONFIGURATION.interop.controller.url="https://sec-${{ needs.vars.outputs.existing_controller }}.cicd.lab.wlan.tip.build:16001"' lab_info.json > lab_info.json.tmp && mv lab_info.json.tmp lab_info.json - fi - - - name: run tests - uses: ./.github/actions/run-tests - with: - namespace: interop-${{ github.run_id }}-iphone-11 - testbed: interop - marker_expression: "${{ needs.vars.outputs.marker_overwrite || 'interop_uc_sanity and client_connect and ios' }}" - configuration_file: "$./lab_info.json" - testing_docker_image: tip-tip-wlan-cloud-docker-repo.jfrog.io/cloud-sdk-nightly:${{ github.run_id }} - additional_args: "--device='iPhone-11' --skip-lanforge" - allure_results_artifact_name: allure-results-iphone-11 - - - name: stop reservation - if: always() - run: python .quali/stop_reservation.py ${{ steps.reservation.outputs.identifier }} - env: - CLOUDSHELL_URL: quali-cloudshell.lab.wlan.tip.build - CLOUDSHELL_USER: ${{ secrets.CLOUDSHELL_USER }} - CLOUDSHELL_PASSWORD: ${{ secrets.CLOUDSHELL_PASSWORD }} - - # necessary because if conditionals in composite actions are currently not respected - - name: delete namespace - if: always() - continue-on-error: true - run: kubectl delete ns --ignore-not-found=true --wait interop-${{ github.run_id }}-iphone-11 - - # interop-02 - test-galaxy-s10: - runs-on: ubuntu-latest - needs: [vars, build] - if: "!cancelled() && contains(fromJSON(needs.vars.outputs.devices), 'galaxy-s10')" - steps: - - uses: actions/checkout@v2 - - - name: install dependencies - run: | - pip install -r .quali/requirements.txt - # curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip" - # unzip awscliv2.zip - # sudo ./aws/install - - - name: start reservation - env: - CLOUDSHELL_URL: quali-cloudshell.lab.wlan.tip.build - CLOUDSHELL_USER: ${{ secrets.CLOUDSHELL_USER }} - CLOUDSHELL_PASSWORD: ${{ secrets.CLOUDSHELL_PASSWORD }} - run: | - python .quali/start_reservation.py --global-inputs '{"Phone ID(s)":"2","AP ID(s)":"1","Optional Existing SDK Namespace":"${{ needs.vars.outputs.existing_controller }}","Include a LANForge?":"Yes","securityToken":"eyJhbGciOiJIUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICI3NzkzZGM0Ni1jZmU4LTQ4ODMtYjhiOS02ZWFlZGU2OTc2MDkifQ.eyJpYXQiOjE2MzI4Mzc2NDEsImp0aSI6IjAwZGRiYWY5LWQwYjMtNDRjNS1hYjVlLTkyNzFlNzc5ZGUzNiIsImlzcyI6Imh0dHBzOi8vYXV0aDIucGVyZmVjdG9tb2JpbGUuY29tL2F1dGgvcmVhbG1zL3RpcC1wZXJmZWN0b21vYmlsZS1jb20iLCJhdWQiOiJodHRwczovL2F1dGgyLnBlcmZlY3RvbW9iaWxlLmNvbS9hdXRoL3JlYWxtcy90aXAtcGVyZmVjdG9tb2JpbGUtY29tIiwic3ViIjoiODNkNjUxMWQtNTBmZS00ZWM5LThkNzAtYTA0ZjBkNTdiZDUyIiwidHlwIjoiT2ZmbGluZSIsImF6cCI6Im9mZmxpbmUtdG9rZW4tZ2VuZXJhdG9yIiwibm9uY2UiOiI2ZjE1YzYxNy01YTU5LTQyOWEtODc2Yi1jOTQxMTQ1ZDFkZTIiLCJzZXNzaW9uX3N0YXRlIjoiYmRjZTFmYTMtMjlkYi00MmFmLWI5YWMtYjZjZmJkMDEyOTFhIiwic2NvcGUiOiJvcGVuaWQgcHJvZmlsZSBvZmZsaW5lX2FjY2VzcyBlbWFpbCJ9.5R85_1R38ZFXv_wIjjCIsj8NJm1p66dCsLJI5DBEmks"}' --reservation-duration 480 "InterOp Lab - Specific Selection" - - - name: set reservation outputs - if: always() - id: reservation - run: | - echo ::set-output name=identifier::"$(cat ./reservation_id.txt)" - echo ::set-output name=namespace::"$(cat ./reservation_id.txt | cut -d "-" -f 1)" - - - - name: get EKS access credentials - run: aws eks update-kubeconfig --name ${{ env.AWS_EKS_NAME }} - - - name: install kubectl - run: | - curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl" - sudo install -o root -g root -m 0755 kubectl /usr/local/bin/kubectl - - - name: prepare configuration - env: - CLOUDSHELL_URL: quali-cloudshell.lab.wlan.tip.build - CLOUDSHELL_USER: ${{ secrets.CLOUDSHELL_USER }} - CLOUDSHELL_PASSWORD: ${{ secrets.CLOUDSHELL_PASSWORD }} - run: | - cat << EOF > lab_info.json - ${{ secrets.LAB_CONFIGURATION_JSON }} - EOF - - DYN_CONFIG="$(python .quali/get_configuration.py --json ${{ steps.reservation.outputs.identifier }})" - - jq ".CONFIGURATION.interop=$DYN_CONFIG" lab_info.json > lab_info.json.tmp && mv lab_info.json.tmp lab_info.json - - - if [ ${{ needs.vars.outputs.existing_controller }} != '' ] - then - jq '.CONFIGURATION.interop.controller.url="https://sec-${{ needs.vars.outputs.existing_controller }}.cicd.lab.wlan.tip.build:16001"' lab_info.json > lab_info.json.tmp && mv lab_info.json.tmp lab_info.json - fi - - - name: run tests - uses: ./.github/actions/run-tests - with: - namespace: interop-${{ github.run_id }}-galaxy-s10 - testbed: interop - marker_expression: "${{ needs.vars.outputs.marker_overwrite || 'interop_uc_sanity and client_connect and android' }}" - configuration_file: "./lab_info.json" - testing_docker_image: tip-tip-wlan-cloud-docker-repo.jfrog.io/cloud-sdk-nightly:${{ github.run_id }} - additional_args: "--device='Galaxy S10.*' --skip-lanforge" - allure_results_artifact_name: allure-results-galaxy-s10 - - - name: stop reservation - if: always() - run: python .quali/stop_reservation.py ${{ steps.reservation.outputs.identifier }} - env: - CLOUDSHELL_URL: quali-cloudshell.lab.wlan.tip.build - CLOUDSHELL_USER: ${{ secrets.CLOUDSHELL_USER }} - CLOUDSHELL_PASSWORD: ${{ secrets.CLOUDSHELL_PASSWORD }} - - # necessary because if conditionals in composite actions are currently not respected - - name: delete namespace - if: always() - continue-on-error: true - run: kubectl delete ns --ignore-not-found=true --wait interop-${{ github.run_id }}-galaxy-s10 - - test-iphone-7: - runs-on: ubuntu-latest - needs: [vars, test-galaxy-s10] - if: "!cancelled() && contains(fromJSON(needs.vars.outputs.devices), 'iphone-7')" - steps: - - uses: actions/checkout@v2 - - - name: install dependencies - run: | - pip install -r .quali/requirements.txt - # curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip" - # unzip awscliv2.zip - # sudo ./aws/install - - - name: start reservation - env: - CLOUDSHELL_URL: quali-cloudshell.lab.wlan.tip.build - CLOUDSHELL_USER: ${{ secrets.CLOUDSHELL_USER }} - CLOUDSHELL_PASSWORD: ${{ secrets.CLOUDSHELL_PASSWORD }} - run: | - python .quali/start_reservation.py --global-inputs '{"Phone ID(s)":"5","AP ID(s)":"1","Optional Existing SDK Namespace":"${{ needs.vars.outputs.existing_controller }}","Include a LANForge?":"Yes","securityToken":"eyJhbGciOiJIUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICI3NzkzZGM0Ni1jZmU4LTQ4ODMtYjhiOS02ZWFlZGU2OTc2MDkifQ.eyJpYXQiOjE2MzI4Mzc2NDEsImp0aSI6IjAwZGRiYWY5LWQwYjMtNDRjNS1hYjVlLTkyNzFlNzc5ZGUzNiIsImlzcyI6Imh0dHBzOi8vYXV0aDIucGVyZmVjdG9tb2JpbGUuY29tL2F1dGgvcmVhbG1zL3RpcC1wZXJmZWN0b21vYmlsZS1jb20iLCJhdWQiOiJodHRwczovL2F1dGgyLnBlcmZlY3RvbW9iaWxlLmNvbS9hdXRoL3JlYWxtcy90aXAtcGVyZmVjdG9tb2JpbGUtY29tIiwic3ViIjoiODNkNjUxMWQtNTBmZS00ZWM5LThkNzAtYTA0ZjBkNTdiZDUyIiwidHlwIjoiT2ZmbGluZSIsImF6cCI6Im9mZmxpbmUtdG9rZW4tZ2VuZXJhdG9yIiwibm9uY2UiOiI2ZjE1YzYxNy01YTU5LTQyOWEtODc2Yi1jOTQxMTQ1ZDFkZTIiLCJzZXNzaW9uX3N0YXRlIjoiYmRjZTFmYTMtMjlkYi00MmFmLWI5YWMtYjZjZmJkMDEyOTFhIiwic2NvcGUiOiJvcGVuaWQgcHJvZmlsZSBvZmZsaW5lX2FjY2VzcyBlbWFpbCJ9.5R85_1R38ZFXv_wIjjCIsj8NJm1p66dCsLJI5DBEmks"}' --reservation-duration 480 "InterOp Lab - Specific Selection" - - - name: set reservation outputs - if: always() - id: reservation - run: | - echo ::set-output name=identifier::"$(cat ./reservation_id.txt)" - echo ::set-output name=namespace::"$(cat ./reservation_id.txt | cut -d "-" -f 1)" - - - - name: get EKS access credentials - run: aws eks update-kubeconfig --name ${{ env.AWS_EKS_NAME }} - - - name: install kubectl - run: | - curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl" - sudo install -o root -g root -m 0755 kubectl /usr/local/bin/kubectl - - - name: prepare configuration - env: - CLOUDSHELL_URL: quali-cloudshell.lab.wlan.tip.build - CLOUDSHELL_USER: ${{ secrets.CLOUDSHELL_USER }} - CLOUDSHELL_PASSWORD: ${{ secrets.CLOUDSHELL_PASSWORD }} - run: | - cat << EOF > lab_info.json - ${{ secrets.LAB_CONFIGURATION_JSON }} - EOF - - DYN_CONFIG="$(python .quali/get_configuration.py --json ${{ steps.reservation.outputs.identifier }})" - - jq ".CONFIGURATION.interop=$DYN_CONFIG" lab_info.json > lab_info.json.tmp && mv lab_info.json.tmp lab_info.json - - - if [ ${{ needs.vars.outputs.existing_controller }} != '' ] - then - jq '.CONFIGURATION.interop.controller.url="https://sec-${{ needs.vars.outputs.existing_controller }}.cicd.lab.wlan.tip.build:16001"' lab_info.json > lab_info.json.tmp && mv lab_info.json.tmp lab_info.json - fi - - - name: run tests - uses: ./.github/actions/run-tests - with: - namespace: interop-${{ github.run_id }}-iphone-7 - testbed: interop - marker_expression: "${{ needs.vars.outputs.marker_overwrite || 'interop_uc_sanity and client_connect and ios' }}" - configuration_file: "./lab_info.json" - testing_docker_image: tip-tip-wlan-cloud-docker-repo.jfrog.io/cloud-sdk-nightly:${{ github.run_id }} - additional_args: "--device='iPhone-7' --skip-lanforge" - allure_results_artifact_name: allure-results-iphone-7 - - - name: stop reservation - if: always() - run: python .quali/stop_reservation.py ${{ steps.reservation.outputs.identifier }} - env: - CLOUDSHELL_URL: quali-cloudshell.lab.wlan.tip.build - CLOUDSHELL_USER: ${{ secrets.CLOUDSHELL_USER }} - CLOUDSHELL_PASSWORD: ${{ secrets.CLOUDSHELL_PASSWORD }} - - # necessary because if conditionals in composite actions are currently not respected - - name: delete namespace - if: always() - continue-on-error: true - run: kubectl delete ns --ignore-not-found=true --wait interop-${{ github.run_id }}-iphone-7 - - # interop-03 - test-galaxy-s20: - runs-on: ubuntu-latest - needs: [vars, build] - if: "!cancelled() && contains(fromJSON(needs.vars.outputs.devices), 'galaxy-s20')" - steps: - - uses: actions/checkout@v2 - - - name: install dependencies - run: | - pip install -r .quali/requirements.txt - # curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip" - # unzip awscliv2.zip - # sudo ./aws/install - - - name: start reservation - env: - CLOUDSHELL_URL: quali-cloudshell.lab.wlan.tip.build - CLOUDSHELL_USER: ${{ secrets.CLOUDSHELL_USER }} - CLOUDSHELL_PASSWORD: ${{ secrets.CLOUDSHELL_PASSWORD }} - run: | - python .quali/start_reservation.py --global-inputs '{"Phone ID(s)":"3","AP ID(s)":"1","Optional Existing SDK Namespace":"${{ needs.vars.outputs.existing_controller }}","Include a LANForge?":"Yes","securityToken":"eyJhbGciOiJIUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICI3NzkzZGM0Ni1jZmU4LTQ4ODMtYjhiOS02ZWFlZGU2OTc2MDkifQ.eyJpYXQiOjE2MzI4Mzc2NDEsImp0aSI6IjAwZGRiYWY5LWQwYjMtNDRjNS1hYjVlLTkyNzFlNzc5ZGUzNiIsImlzcyI6Imh0dHBzOi8vYXV0aDIucGVyZmVjdG9tb2JpbGUuY29tL2F1dGgvcmVhbG1zL3RpcC1wZXJmZWN0b21vYmlsZS1jb20iLCJhdWQiOiJodHRwczovL2F1dGgyLnBlcmZlY3RvbW9iaWxlLmNvbS9hdXRoL3JlYWxtcy90aXAtcGVyZmVjdG9tb2JpbGUtY29tIiwic3ViIjoiODNkNjUxMWQtNTBmZS00ZWM5LThkNzAtYTA0ZjBkNTdiZDUyIiwidHlwIjoiT2ZmbGluZSIsImF6cCI6Im9mZmxpbmUtdG9rZW4tZ2VuZXJhdG9yIiwibm9uY2UiOiI2ZjE1YzYxNy01YTU5LTQyOWEtODc2Yi1jOTQxMTQ1ZDFkZTIiLCJzZXNzaW9uX3N0YXRlIjoiYmRjZTFmYTMtMjlkYi00MmFmLWI5YWMtYjZjZmJkMDEyOTFhIiwic2NvcGUiOiJvcGVuaWQgcHJvZmlsZSBvZmZsaW5lX2FjY2VzcyBlbWFpbCJ9.5R85_1R38ZFXv_wIjjCIsj8NJm1p66dCsLJI5DBEmks"}' --reservation-duration 480 "InterOp Lab - Specific Selection" - - - name: set reservation outputs - if: always() - id: reservation - run: | - echo ::set-output name=identifier::"$(cat ./reservation_id.txt)" - echo ::set-output name=namespace::"$(cat ./reservation_id.txt | cut -d "-" -f 1)" - - - - name: get EKS access credentials - run: aws eks update-kubeconfig --name ${{ env.AWS_EKS_NAME }} - - - name: install kubectl - run: | - curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl" - sudo install -o root -g root -m 0755 kubectl /usr/local/bin/kubectl - - - name: prepare configuration - env: - CLOUDSHELL_URL: quali-cloudshell.lab.wlan.tip.build - CLOUDSHELL_USER: ${{ secrets.CLOUDSHELL_USER }} - CLOUDSHELL_PASSWORD: ${{ secrets.CLOUDSHELL_PASSWORD }} - run: | - cat << EOF > lab_info.json - ${{ secrets.LAB_CONFIGURATION_JSON }} - EOF - - DYN_CONFIG="$(python .quali/get_configuration.py --json ${{ steps.reservation.outputs.identifier }})" - - jq ".CONFIGURATION.interop=$DYN_CONFIG" lab_info.json > lab_info.json.tmp && mv lab_info.json.tmp lab_info.json - - - if [ ${{ needs.vars.outputs.existing_controller }} != '' ] - then - jq '.CONFIGURATION.interop.controller.url="https://sec-${{ needs.vars.outputs.existing_controller }}.cicd.lab.wlan.tip.build:16001"' lab_info.json > lab_info.json.tmp && mv lab_info.json.tmp lab_info.json - fi - - - name: run tests - uses: ./.github/actions/run-tests - with: - namespace: interop-${{ github.run_id }}-galaxy-s20 - testbed: interop - marker_expression: "${{ needs.vars.outputs.marker_overwrite || 'interop_uc_sanity and client_connect and android' }}" - configuration_file: "./lab_info.json" - testing_docker_image: tip-tip-wlan-cloud-docker-repo.jfrog.io/cloud-sdk-nightly:${{ github.run_id }} - additional_args: "--device='Galaxy S20' --skip-lanforge" - allure_results_artifact_name: allure-results-galaxy-s20 - - - name: stop reservation - if: always() - run: python .quali/stop_reservation.py ${{ steps.reservation.outputs.identifier }} - env: - CLOUDSHELL_URL: quali-cloudshell.lab.wlan.tip.build - CLOUDSHELL_USER: ${{ secrets.CLOUDSHELL_USER }} - CLOUDSHELL_PASSWORD: ${{ secrets.CLOUDSHELL_PASSWORD }} - - # necessary because if conditionals in composite actions are currently not respected - - name: delete namespace - if: always() - continue-on-error: true - run: kubectl delete ns --ignore-not-found=true --wait interop-${{ github.run_id }}-galaxy-s20 - - test-iphone-xr: - runs-on: ubuntu-latest - needs: [vars, test-galaxy-s20] - if: "!cancelled() && contains(fromJSON(needs.vars.outputs.devices), 'iphone-xr')" - steps: - - uses: actions/checkout@v2 - - - name: install dependencies - run: | - pip install -r .quali/requirements.txt - # curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip" - # unzip awscliv2.zip - # sudo ./aws/install - - - name: start reservation - env: - CLOUDSHELL_URL: quali-cloudshell.lab.wlan.tip.build - CLOUDSHELL_USER: ${{ secrets.CLOUDSHELL_USER }} - CLOUDSHELL_PASSWORD: ${{ secrets.CLOUDSHELL_PASSWORD }} - run: | - python .quali/start_reservation.py --global-inputs '{"Phone ID(s)":"8","AP ID(s)":"1","Optional Existing SDK Namespace":"${{ needs.vars.outputs.existing_controller }}","Include a LANForge?":"Yes","securityToken":"eyJhbGciOiJIUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICI3NzkzZGM0Ni1jZmU4LTQ4ODMtYjhiOS02ZWFlZGU2OTc2MDkifQ.eyJpYXQiOjE2MzI4Mzc2NDEsImp0aSI6IjAwZGRiYWY5LWQwYjMtNDRjNS1hYjVlLTkyNzFlNzc5ZGUzNiIsImlzcyI6Imh0dHBzOi8vYXV0aDIucGVyZmVjdG9tb2JpbGUuY29tL2F1dGgvcmVhbG1zL3RpcC1wZXJmZWN0b21vYmlsZS1jb20iLCJhdWQiOiJodHRwczovL2F1dGgyLnBlcmZlY3RvbW9iaWxlLmNvbS9hdXRoL3JlYWxtcy90aXAtcGVyZmVjdG9tb2JpbGUtY29tIiwic3ViIjoiODNkNjUxMWQtNTBmZS00ZWM5LThkNzAtYTA0ZjBkNTdiZDUyIiwidHlwIjoiT2ZmbGluZSIsImF6cCI6Im9mZmxpbmUtdG9rZW4tZ2VuZXJhdG9yIiwibm9uY2UiOiI2ZjE1YzYxNy01YTU5LTQyOWEtODc2Yi1jOTQxMTQ1ZDFkZTIiLCJzZXNzaW9uX3N0YXRlIjoiYmRjZTFmYTMtMjlkYi00MmFmLWI5YWMtYjZjZmJkMDEyOTFhIiwic2NvcGUiOiJvcGVuaWQgcHJvZmlsZSBvZmZsaW5lX2FjY2VzcyBlbWFpbCJ9.5R85_1R38ZFXv_wIjjCIsj8NJm1p66dCsLJI5DBEmks"}' --reservation-duration 480 "InterOp Lab - Specific Selection" - - - name: set reservation outputs - if: always() - id: reservation - run: | - echo ::set-output name=identifier::"$(cat ./reservation_id.txt)" - echo ::set-output name=namespace::"$(cat ./reservation_id.txt | cut -d "-" -f 1)" - - - - name: get EKS access credentials - run: aws eks update-kubeconfig --name ${{ env.AWS_EKS_NAME }} - - - name: install kubectl - run: | - curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl" - sudo install -o root -g root -m 0755 kubectl /usr/local/bin/kubectl - - - name: prepare configuration - env: - CLOUDSHELL_URL: quali-cloudshell.lab.wlan.tip.build - CLOUDSHELL_USER: ${{ secrets.CLOUDSHELL_USER }} - CLOUDSHELL_PASSWORD: ${{ secrets.CLOUDSHELL_PASSWORD }} - run: | - cat << EOF > lab_info.json - ${{ secrets.LAB_CONFIGURATION_JSON }} - EOF - - DYN_CONFIG="$(python .quali/get_configuration.py --json ${{ steps.reservation.outputs.identifier }})" - - jq ".CONFIGURATION.interop=$DYN_CONFIG" lab_info.json > lab_info.json.tmp && mv lab_info.json.tmp lab_info.json - - - if [ ${{ needs.vars.outputs.existing_controller }} != '' ] - then - jq '.CONFIGURATION.interop.controller.url="https://sec-${{ needs.vars.outputs.existing_controller }}.cicd.lab.wlan.tip.build:16001"' lab_info.json > lab_info.json.tmp && mv lab_info.json.tmp lab_info.json - fi - - - name: run tests - uses: ./.github/actions/run-tests - with: - namespace: interop-${{ github.run_id }}-iphone-xr - testbed: interop - marker_expression: "${{ needs.vars.outputs.marker_overwrite || 'interop_uc_sanity and client_connect and ios' }}" - configuration_file: "./lab_info.json" - testing_docker_image: tip-tip-wlan-cloud-docker-repo.jfrog.io/cloud-sdk-nightly:${{ github.run_id }} - additional_args: "--device='iPhone-XR' --skip-lanforge" - allure_results_artifact_name: allure-results-iphone-xr - - - name: stop reservation - if: always() - run: python .quali/stop_reservation.py ${{ steps.reservation.outputs.identifier }} - env: - CLOUDSHELL_URL: quali-cloudshell.lab.wlan.tip.build - CLOUDSHELL_USER: ${{ secrets.CLOUDSHELL_USER }} - CLOUDSHELL_PASSWORD: ${{ secrets.CLOUDSHELL_PASSWORD } - - # necessary because if conditionals in composite actions are currently not respected - - name: delete namespace - if: always() - continue-on-error: true - run: kubectl delete ns --ignore-not-found=true --wait interop-${{ github.run_id }}-iphone-xr - - #interop-04 - test-pixel-4: - runs-on: ubuntu-latest - needs: [vars, build] - if: "!cancelled() && contains(fromJSON(needs.vars.outputs.devices), 'pixel-4')" - steps: - - uses: actions/checkout@v2 - - - name: install dependencies - run: | - pip install -r .quali/requirements.txt - # curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip" - # unzip awscliv2.zip - # sudo ./aws/install - - - name: start reservation - env: - CLOUDSHELL_URL: quali-cloudshell.lab.wlan.tip.build - CLOUDSHELL_USER: ${{ secrets.CLOUDSHELL_USER }} - CLOUDSHELL_PASSWORD: ${{ secrets.CLOUDSHELL_PASSWORD }} - run: | - python .quali/start_reservation.py --global-inputs '{"Phone ID(s)":"4","AP ID(s)":"1","Optional Existing SDK Namespace":"${{ needs.vars.outputs.existing_controller }}","Include a LANForge?":"Yes","securityToken":"eyJhbGciOiJIUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICI3NzkzZGM0Ni1jZmU4LTQ4ODMtYjhiOS02ZWFlZGU2OTc2MDkifQ.eyJpYXQiOjE2MzI4Mzc2NDEsImp0aSI6IjAwZGRiYWY5LWQwYjMtNDRjNS1hYjVlLTkyNzFlNzc5ZGUzNiIsImlzcyI6Imh0dHBzOi8vYXV0aDIucGVyZmVjdG9tb2JpbGUuY29tL2F1dGgvcmVhbG1zL3RpcC1wZXJmZWN0b21vYmlsZS1jb20iLCJhdWQiOiJodHRwczovL2F1dGgyLnBlcmZlY3RvbW9iaWxlLmNvbS9hdXRoL3JlYWxtcy90aXAtcGVyZmVjdG9tb2JpbGUtY29tIiwic3ViIjoiODNkNjUxMWQtNTBmZS00ZWM5LThkNzAtYTA0ZjBkNTdiZDUyIiwidHlwIjoiT2ZmbGluZSIsImF6cCI6Im9mZmxpbmUtdG9rZW4tZ2VuZXJhdG9yIiwibm9uY2UiOiI2ZjE1YzYxNy01YTU5LTQyOWEtODc2Yi1jOTQxMTQ1ZDFkZTIiLCJzZXNzaW9uX3N0YXRlIjoiYmRjZTFmYTMtMjlkYi00MmFmLWI5YWMtYjZjZmJkMDEyOTFhIiwic2NvcGUiOiJvcGVuaWQgcHJvZmlsZSBvZmZsaW5lX2FjY2VzcyBlbWFpbCJ9.5R85_1R38ZFXv_wIjjCIsj8NJm1p66dCsLJI5DBEmks"}' --reservation-duration 480 "InterOp Lab - Specific Selection" - - - name: set reservation outputs - if: always() - id: reservation - run: | - echo ::set-output name=identifier::"$(cat ./reservation_id.txt)" - echo ::set-output name=namespace::"$(cat ./reservation_id.txt | cut -d "-" -f 1)" - - - name: get EKS access credentials - run: aws eks update-kubeconfig --name ${{ env.AWS_EKS_NAME }} - - - name: install kubectl - run: | - curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl" - sudo install -o root -g root -m 0755 kubectl /usr/local/bin/kubectl - - - name: prepare configuration - env: - CLOUDSHELL_URL: quali-cloudshell.lab.wlan.tip.build - CLOUDSHELL_USER: ${{ secrets.CLOUDSHELL_USER }} - CLOUDSHELL_PASSWORD: ${{ secrets.CLOUDSHELL_PASSWORD }} - run: | - cat << EOF > lab_info.json - ${{ secrets.LAB_CONFIGURATION_JSON }} - EOF - - DYN_CONFIG="$(python .quali/get_configuration.py --json ${{ steps.reservation.outputs.identifier }})" - - jq ".CONFIGURATION.interop=$DYN_CONFIG" lab_info.json > lab_info.json.tmp && mv lab_info.json.tmp lab_info.json - - - if [ ${{ needs.vars.outputs.existing_controller }} != '' ] - then - jq '.CONFIGURATION.interop.controller.url="https://sec-${{ needs.vars.outputs.existing_controller }}.cicd.lab.wlan.tip.build:16001"' lab_info.json > lab_info.json.tmp && mv lab_info.json.tmp lab_info.json - fi - - - - name: run tests - uses: ./.github/actions/run-tests - with: - namespace: interop-${{ github.run_id }}-pixel-4 - testbed: interop - marker_expression: "${{ needs.vars.outputs.marker_overwrite || 'interop_uc_sanity and client_connect and android' }}" - configuration_file: "./lab_info.json" - testing_docker_image: tip-tip-wlan-cloud-docker-repo.jfrog.io/cloud-sdk-nightly:${{ github.run_id }} - additional_args: "--device='Pixel 4' --skip-lanforge" - allure_results_artifact_name: allure-results-pixel-4 - - - name: stop reservation - if: always() - run: python .quali/stop_reservation.py ${{ steps.reservation.outputs.identifier }} - env: - CLOUDSHELL_URL: quali-cloudshell.lab.wlan.tip.build - CLOUDSHELL_USER: ${{ secrets.CLOUDSHELL_USER }} - CLOUDSHELL_PASSWORD: ${{ secrets.CLOUDSHELL_PASSWORD }} - - # necessary because if conditionals in composite actions are currently not respected - - name: delete namespace - if: always() - continue-on-error: true - run: kubectl delete ns --ignore-not-found=true --wait interop-${{ github.run_id }}-pixel-4 - - test-iphone-12: - runs-on: ubuntu-latest - needs: [vars, test-pixel-4] - if: "!cancelled() && contains(fromJSON(needs.vars.outputs.devices), 'iphone-12')" - steps: - - uses: actions/checkout@v2 - - - name: install dependencies - run: | - pip install -r .quali/requirements.txt - # curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip" - # unzip awscliv2.zip - # sudo ./aws/install - - - name: start reservation - env: - CLOUDSHELL_URL: quali-cloudshell.lab.wlan.tip.build - CLOUDSHELL_USER: ${{ secrets.CLOUDSHELL_USER }} - CLOUDSHELL_PASSWORD: ${{ secrets.CLOUDSHELL_PASSWORD }} - run: | - python .quali/start_reservation.py --global-inputs '{"Phone ID(s)":"7","AP ID(s)":"1","Optional Existing SDK Namespace":"${{ needs.vars.outputs.existing_controller }}","Include a LANForge?":"Yes","securityToken":"eyJhbGciOiJIUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICI3NzkzZGM0Ni1jZmU4LTQ4ODMtYjhiOS02ZWFlZGU2OTc2MDkifQ.eyJpYXQiOjE2MzI4Mzc2NDEsImp0aSI6IjAwZGRiYWY5LWQwYjMtNDRjNS1hYjVlLTkyNzFlNzc5ZGUzNiIsImlzcyI6Imh0dHBzOi8vYXV0aDIucGVyZmVjdG9tb2JpbGUuY29tL2F1dGgvcmVhbG1zL3RpcC1wZXJmZWN0b21vYmlsZS1jb20iLCJhdWQiOiJodHRwczovL2F1dGgyLnBlcmZlY3RvbW9iaWxlLmNvbS9hdXRoL3JlYWxtcy90aXAtcGVyZmVjdG9tb2JpbGUtY29tIiwic3ViIjoiODNkNjUxMWQtNTBmZS00ZWM5LThkNzAtYTA0ZjBkNTdiZDUyIiwidHlwIjoiT2ZmbGluZSIsImF6cCI6Im9mZmxpbmUtdG9rZW4tZ2VuZXJhdG9yIiwibm9uY2UiOiI2ZjE1YzYxNy01YTU5LTQyOWEtODc2Yi1jOTQxMTQ1ZDFkZTIiLCJzZXNzaW9uX3N0YXRlIjoiYmRjZTFmYTMtMjlkYi00MmFmLWI5YWMtYjZjZmJkMDEyOTFhIiwic2NvcGUiOiJvcGVuaWQgcHJvZmlsZSBvZmZsaW5lX2FjY2VzcyBlbWFpbCJ9.5R85_1R38ZFXv_wIjjCIsj8NJm1p66dCsLJI5DBEmks"}' --reservation-duration 480 "InterOp Lab - Specific Selection" - - - name: set reservation outputs - if: always() - id: reservation - run: | - echo ::set-output name=identifier::"$(cat ./reservation_id.txt)" - echo ::set-output name=namespace::"$(cat ./reservation_id.txt | cut -d "-" -f 1)" - - - name: get EKS access credentials - run: aws eks update-kubeconfig --name ${{ env.AWS_EKS_NAME }} - - - name: install kubectl - run: | - curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl" - sudo install -o root -g root -m 0755 kubectl /usr/local/bin/kubectl - - - name: prepare configuration - env: - CLOUDSHELL_URL: quali-cloudshell.lab.wlan.tip.build - CLOUDSHELL_USER: ${{ secrets.CLOUDSHELL_USER }} - CLOUDSHELL_PASSWORD: ${{ secrets.CLOUDSHELL_PASSWORD }} - run: | - cat << EOF > lab_info.json - ${{ secrets.LAB_CONFIGURATION_JSON }} - EOF - - DYN_CONFIG="$(python .quali/get_configuration.py --json ${{ steps.reservation.outputs.identifier }})" - - jq ".CONFIGURATION.interop=$DYN_CONFIG" lab_info.json > lab_info.json.tmp && mv lab_info.json.tmp lab_info.json - - - if [ ${{ needs.vars.outputs.existing_controller }} != '' ] - then - jq '.CONFIGURATION.interop.controller.url="https://sec-${{ needs.vars.outputs.existing_controller }}.cicd.lab.wlan.tip.build:16001"' lab_info.json > lab_info.json.tmp && mv lab_info.json.tmp lab_info.json - fi - - - name: run tests - uses: ./.github/actions/run-tests - with: - namespace: interop-${{ github.run_id }}-iphone-12 - testbed: interop - marker_expression: "${{ needs.vars.outputs.marker_overwrite || 'interop_uc_sanity and client_connect and ios' }}" - configuration_file: "./lab_info.json" - testing_docker_image: tip-tip-wlan-cloud-docker-repo.jfrog.io/cloud-sdk-nightly:${{ github.run_id }} - additional_args: "--device='iPhone-12' --skip-lanforge" - allure_results_artifact_name: allure-results-iphone-12 - - - name: stop reservation - if: always() - run: python .quali/stop_reservation.py ${{ steps.reservation.outputs.identifier }} - env: - CLOUDSHELL_URL: quali-cloudshell.lab.wlan.tip.build - CLOUDSHELL_USER: ${{ secrets.CLOUDSHELL_USER }} - CLOUDSHELL_PASSWORD: ${{ secrets.CLOUDSHELL_PASSWORD }} - - # necessary because if conditionals in composite actions are currently not respected - - name: delete namespace - if: always() - continue-on-error: true - run: kubectl delete ns --ignore-not-found=true --wait interop-${{ github.run_id }}-iphone-12 - +# test-iphone-11: +# runs-on: ubuntu-latest +# needs: [vars, test-galaxy-s9] +# if: "!cancelled() && contains(fromJSON(needs.vars.outputs.devices), 'iphone-11')" +# steps: +# - uses: actions/checkout@v2 +# +# - name: install dependencies +# run: | +# pip install -r .quali/requirements.txt +# # curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip" +# # unzip awscliv2.zip +# # sudo ./aws/install +# +# - name: start reservation +# env: +# CLOUDSHELL_URL: quali-cloudshell.lab.wlan.tip.build +# CLOUDSHELL_USER: ${{ secrets.CLOUDSHELL_USER }} +# CLOUDSHELL_PASSWORD: ${{ secrets.CLOUDSHELL_PASSWORD }} +# run: | +# python .quali/start_reservation.py --global-inputs '{"Phone ID(s)":"6","AP ID(s)":"1","Optional Existing SDK Namespace":"${{ needs.vars.outputs.existing_controller }}","Include a LANForge?":"Yes","securityToken":"eyJhbGciOiJIUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICI3NzkzZGM0Ni1jZmU4LTQ4ODMtYjhiOS02ZWFlZGU2OTc2MDkifQ.eyJpYXQiOjE2MzI4Mzc2NDEsImp0aSI6IjAwZGRiYWY5LWQwYjMtNDRjNS1hYjVlLTkyNzFlNzc5ZGUzNiIsImlzcyI6Imh0dHBzOi8vYXV0aDIucGVyZmVjdG9tb2JpbGUuY29tL2F1dGgvcmVhbG1zL3RpcC1wZXJmZWN0b21vYmlsZS1jb20iLCJhdWQiOiJodHRwczovL2F1dGgyLnBlcmZlY3RvbW9iaWxlLmNvbS9hdXRoL3JlYWxtcy90aXAtcGVyZmVjdG9tb2JpbGUtY29tIiwic3ViIjoiODNkNjUxMWQtNTBmZS00ZWM5LThkNzAtYTA0ZjBkNTdiZDUyIiwidHlwIjoiT2ZmbGluZSIsImF6cCI6Im9mZmxpbmUtdG9rZW4tZ2VuZXJhdG9yIiwibm9uY2UiOiI2ZjE1YzYxNy01YTU5LTQyOWEtODc2Yi1jOTQxMTQ1ZDFkZTIiLCJzZXNzaW9uX3N0YXRlIjoiYmRjZTFmYTMtMjlkYi00MmFmLWI5YWMtYjZjZmJkMDEyOTFhIiwic2NvcGUiOiJvcGVuaWQgcHJvZmlsZSBvZmZsaW5lX2FjY2VzcyBlbWFpbCJ9.5R85_1R38ZFXv_wIjjCIsj8NJm1p66dCsLJI5DBEmks"}' "InterOp Lab - Specific Selection" +# +# - name: set reservation outputs +# if: always() +# id: reservation +# run: | +# echo ::set-output name=identifier::"$(cat ./reservation_id.txt)" +# echo ::set-output name=namespace::"$(cat ./reservation_id.txt | cut -d "-" -f 1)" +# +# +# - name: get EKS access credentials +# run: aws eks update-kubeconfig --name ${{ env.AWS_EKS_NAME }} +# +# - name: install kubectl +# run: | +# curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl" +# sudo install -o root -g root -m 0755 kubectl /usr/local/bin/kubectl +# +# - name: prepare configuration +# env: +# CLOUDSHELL_URL: quali-cloudshell.lab.wlan.tip.build +# CLOUDSHELL_USER: ${{ secrets.CLOUDSHELL_USER }} +# CLOUDSHELL_PASSWORD: ${{ secrets.CLOUDSHELL_PASSWORD }} +# run: | +# cat << EOF > lab_info.json +# ${{ secrets.LAB_CONFIGURATION_JSON }} +# EOF +# +# DYN_CONFIG="$(python .quali/get_configuration.py --json ${{ steps.reservation.outputs.identifier }})" +# +# jq ".CONFIGURATION.interop=$DYN_CONFIG" lab_info.json > lab_info.json.tmp && mv lab_info.json.tmp lab_info.json +# +# +# if [ ${{ needs.vars.outputs.existing_controller }} != '' ] +# then +# jq '.CONFIGURATION.interop.controller.url="https://sec-${{ needs.vars.outputs.existing_controller }}.cicd.lab.wlan.tip.build:16001"' lab_info.json > lab_info.json.tmp && mv lab_info.json.tmp lab_info.json +# fi +# +# - name: run tests +# uses: ./.github/actions/run-tests +# with: +# namespace: interop-${{ github.run_id }}-iphone-11 +# testbed: interop +# marker_expression: "${{ needs.vars.outputs.marker_overwrite || 'interop_uc_sanity and client_connect and ios' }}" +# configuration_file: "$./lab_info.json" +# testing_docker_image: tip-tip-wlan-cloud-docker-repo.jfrog.io/cloud-sdk-nightly:${{ github.run_id }} +# additional_args: "--device='iPhone-11' --skip-lanforge" +# allure_results_artifact_name: allure-results-iphone-11 +# +# - name: stop reservation +# if: always() +# run: python .quali/stop_reservation.py ${{ steps.reservation.outputs.identifier }} +# env: +# CLOUDSHELL_URL: quali-cloudshell.lab.wlan.tip.build +# CLOUDSHELL_USER: ${{ secrets.CLOUDSHELL_USER }} +# CLOUDSHELL_PASSWORD: ${{ secrets.CLOUDSHELL_PASSWORD }} +# +# # necessary because if conditionals in composite actions are currently not respected +# - name: delete namespace +# if: always() +# continue-on-error: true +# run: kubectl delete ns --ignore-not-found=true --wait interop-${{ github.run_id }}-iphone-11 +# +# # interop-02 +# test-galaxy-s10: +# runs-on: ubuntu-latest +# needs: [vars, build] +# if: "!cancelled() && contains(fromJSON(needs.vars.outputs.devices), 'galaxy-s10')" +# steps: +# - uses: actions/checkout@v2 +# +# - name: install dependencies +# run: | +# pip install -r .quali/requirements.txt +# # curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip" +# # unzip awscliv2.zip +# # sudo ./aws/install +# +# - name: start reservation +# env: +# CLOUDSHELL_URL: quali-cloudshell.lab.wlan.tip.build +# CLOUDSHELL_USER: ${{ secrets.CLOUDSHELL_USER }} +# CLOUDSHELL_PASSWORD: ${{ secrets.CLOUDSHELL_PASSWORD }} +# run: | +# python .quali/start_reservation.py --global-inputs '{"Phone ID(s)":"2","AP ID(s)":"1","Optional Existing SDK Namespace":"${{ needs.vars.outputs.existing_controller }}","Include a LANForge?":"Yes","securityToken":"eyJhbGciOiJIUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICI3NzkzZGM0Ni1jZmU4LTQ4ODMtYjhiOS02ZWFlZGU2OTc2MDkifQ.eyJpYXQiOjE2MzI4Mzc2NDEsImp0aSI6IjAwZGRiYWY5LWQwYjMtNDRjNS1hYjVlLTkyNzFlNzc5ZGUzNiIsImlzcyI6Imh0dHBzOi8vYXV0aDIucGVyZmVjdG9tb2JpbGUuY29tL2F1dGgvcmVhbG1zL3RpcC1wZXJmZWN0b21vYmlsZS1jb20iLCJhdWQiOiJodHRwczovL2F1dGgyLnBlcmZlY3RvbW9iaWxlLmNvbS9hdXRoL3JlYWxtcy90aXAtcGVyZmVjdG9tb2JpbGUtY29tIiwic3ViIjoiODNkNjUxMWQtNTBmZS00ZWM5LThkNzAtYTA0ZjBkNTdiZDUyIiwidHlwIjoiT2ZmbGluZSIsImF6cCI6Im9mZmxpbmUtdG9rZW4tZ2VuZXJhdG9yIiwibm9uY2UiOiI2ZjE1YzYxNy01YTU5LTQyOWEtODc2Yi1jOTQxMTQ1ZDFkZTIiLCJzZXNzaW9uX3N0YXRlIjoiYmRjZTFmYTMtMjlkYi00MmFmLWI5YWMtYjZjZmJkMDEyOTFhIiwic2NvcGUiOiJvcGVuaWQgcHJvZmlsZSBvZmZsaW5lX2FjY2VzcyBlbWFpbCJ9.5R85_1R38ZFXv_wIjjCIsj8NJm1p66dCsLJI5DBEmks"}' --reservation-duration 480 "InterOp Lab - Specific Selection" +# +# - name: set reservation outputs +# if: always() +# id: reservation +# run: | +# echo ::set-output name=identifier::"$(cat ./reservation_id.txt)" +# echo ::set-output name=namespace::"$(cat ./reservation_id.txt | cut -d "-" -f 1)" +# +# +# - name: get EKS access credentials +# run: aws eks update-kubeconfig --name ${{ env.AWS_EKS_NAME }} +# +# - name: install kubectl +# run: | +# curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl" +# sudo install -o root -g root -m 0755 kubectl /usr/local/bin/kubectl +# +# - name: prepare configuration +# env: +# CLOUDSHELL_URL: quali-cloudshell.lab.wlan.tip.build +# CLOUDSHELL_USER: ${{ secrets.CLOUDSHELL_USER }} +# CLOUDSHELL_PASSWORD: ${{ secrets.CLOUDSHELL_PASSWORD }} +# run: | +# cat << EOF > lab_info.json +# ${{ secrets.LAB_CONFIGURATION_JSON }} +# EOF +# +# DYN_CONFIG="$(python .quali/get_configuration.py --json ${{ steps.reservation.outputs.identifier }})" +# +# jq ".CONFIGURATION.interop=$DYN_CONFIG" lab_info.json > lab_info.json.tmp && mv lab_info.json.tmp lab_info.json +# +# +# if [ ${{ needs.vars.outputs.existing_controller }} != '' ] +# then +# jq '.CONFIGURATION.interop.controller.url="https://sec-${{ needs.vars.outputs.existing_controller }}.cicd.lab.wlan.tip.build:16001"' lab_info.json > lab_info.json.tmp && mv lab_info.json.tmp lab_info.json +# fi +# +# - name: run tests +# uses: ./.github/actions/run-tests +# with: +# namespace: interop-${{ github.run_id }}-galaxy-s10 +# testbed: interop +# marker_expression: "${{ needs.vars.outputs.marker_overwrite || 'interop_uc_sanity and client_connect and android' }}" +# configuration_file: "./lab_info.json" +# testing_docker_image: tip-tip-wlan-cloud-docker-repo.jfrog.io/cloud-sdk-nightly:${{ github.run_id }} +# additional_args: "--device='Galaxy S10.*' --skip-lanforge" +# allure_results_artifact_name: allure-results-galaxy-s10 +# +# - name: stop reservation +# if: always() +# run: python .quali/stop_reservation.py ${{ steps.reservation.outputs.identifier }} +# env: +# CLOUDSHELL_URL: quali-cloudshell.lab.wlan.tip.build +# CLOUDSHELL_USER: ${{ secrets.CLOUDSHELL_USER }} +# CLOUDSHELL_PASSWORD: ${{ secrets.CLOUDSHELL_PASSWORD }} +# +# # necessary because if conditionals in composite actions are currently not respected +# - name: delete namespace +# if: always() +# continue-on-error: true +# run: kubectl delete ns --ignore-not-found=true --wait interop-${{ github.run_id }}-galaxy-s10 +# +# test-iphone-7: +# runs-on: ubuntu-latest +# needs: [vars, test-galaxy-s10] +# if: "!cancelled() && contains(fromJSON(needs.vars.outputs.devices), 'iphone-7')" +# steps: +# - uses: actions/checkout@v2 +# +# - name: install dependencies +# run: | +# pip install -r .quali/requirements.txt +# # curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip" +# # unzip awscliv2.zip +# # sudo ./aws/install +# +# - name: start reservation +# env: +# CLOUDSHELL_URL: quali-cloudshell.lab.wlan.tip.build +# CLOUDSHELL_USER: ${{ secrets.CLOUDSHELL_USER }} +# CLOUDSHELL_PASSWORD: ${{ secrets.CLOUDSHELL_PASSWORD }} +# run: | +# python .quali/start_reservation.py --global-inputs '{"Phone ID(s)":"5","AP ID(s)":"1","Optional Existing SDK Namespace":"${{ needs.vars.outputs.existing_controller }}","Include a LANForge?":"Yes","securityToken":"eyJhbGciOiJIUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICI3NzkzZGM0Ni1jZmU4LTQ4ODMtYjhiOS02ZWFlZGU2OTc2MDkifQ.eyJpYXQiOjE2MzI4Mzc2NDEsImp0aSI6IjAwZGRiYWY5LWQwYjMtNDRjNS1hYjVlLTkyNzFlNzc5ZGUzNiIsImlzcyI6Imh0dHBzOi8vYXV0aDIucGVyZmVjdG9tb2JpbGUuY29tL2F1dGgvcmVhbG1zL3RpcC1wZXJmZWN0b21vYmlsZS1jb20iLCJhdWQiOiJodHRwczovL2F1dGgyLnBlcmZlY3RvbW9iaWxlLmNvbS9hdXRoL3JlYWxtcy90aXAtcGVyZmVjdG9tb2JpbGUtY29tIiwic3ViIjoiODNkNjUxMWQtNTBmZS00ZWM5LThkNzAtYTA0ZjBkNTdiZDUyIiwidHlwIjoiT2ZmbGluZSIsImF6cCI6Im9mZmxpbmUtdG9rZW4tZ2VuZXJhdG9yIiwibm9uY2UiOiI2ZjE1YzYxNy01YTU5LTQyOWEtODc2Yi1jOTQxMTQ1ZDFkZTIiLCJzZXNzaW9uX3N0YXRlIjoiYmRjZTFmYTMtMjlkYi00MmFmLWI5YWMtYjZjZmJkMDEyOTFhIiwic2NvcGUiOiJvcGVuaWQgcHJvZmlsZSBvZmZsaW5lX2FjY2VzcyBlbWFpbCJ9.5R85_1R38ZFXv_wIjjCIsj8NJm1p66dCsLJI5DBEmks"}' --reservation-duration 480 "InterOp Lab - Specific Selection" +# +# - name: set reservation outputs +# if: always() +# id: reservation +# run: | +# echo ::set-output name=identifier::"$(cat ./reservation_id.txt)" +# echo ::set-output name=namespace::"$(cat ./reservation_id.txt | cut -d "-" -f 1)" +# +# +# - name: get EKS access credentials +# run: aws eks update-kubeconfig --name ${{ env.AWS_EKS_NAME }} +# +# - name: install kubectl +# run: | +# curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl" +# sudo install -o root -g root -m 0755 kubectl /usr/local/bin/kubectl +# +# - name: prepare configuration +# env: +# CLOUDSHELL_URL: quali-cloudshell.lab.wlan.tip.build +# CLOUDSHELL_USER: ${{ secrets.CLOUDSHELL_USER }} +# CLOUDSHELL_PASSWORD: ${{ secrets.CLOUDSHELL_PASSWORD }} +# run: | +# cat << EOF > lab_info.json +# ${{ secrets.LAB_CONFIGURATION_JSON }} +# EOF +# +# DYN_CONFIG="$(python .quali/get_configuration.py --json ${{ steps.reservation.outputs.identifier }})" +# +# jq ".CONFIGURATION.interop=$DYN_CONFIG" lab_info.json > lab_info.json.tmp && mv lab_info.json.tmp lab_info.json +# +# +# if [ ${{ needs.vars.outputs.existing_controller }} != '' ] +# then +# jq '.CONFIGURATION.interop.controller.url="https://sec-${{ needs.vars.outputs.existing_controller }}.cicd.lab.wlan.tip.build:16001"' lab_info.json > lab_info.json.tmp && mv lab_info.json.tmp lab_info.json +# fi +# +# - name: run tests +# uses: ./.github/actions/run-tests +# with: +# namespace: interop-${{ github.run_id }}-iphone-7 +# testbed: interop +# marker_expression: "${{ needs.vars.outputs.marker_overwrite || 'interop_uc_sanity and client_connect and ios' }}" +# configuration_file: "./lab_info.json" +# testing_docker_image: tip-tip-wlan-cloud-docker-repo.jfrog.io/cloud-sdk-nightly:${{ github.run_id }} +# additional_args: "--device='iPhone-7' --skip-lanforge" +# allure_results_artifact_name: allure-results-iphone-7 +# +# - name: stop reservation +# if: always() +# run: python .quali/stop_reservation.py ${{ steps.reservation.outputs.identifier }} +# env: +# CLOUDSHELL_URL: quali-cloudshell.lab.wlan.tip.build +# CLOUDSHELL_USER: ${{ secrets.CLOUDSHELL_USER }} +# CLOUDSHELL_PASSWORD: ${{ secrets.CLOUDSHELL_PASSWORD }} +# +# # necessary because if conditionals in composite actions are currently not respected +# - name: delete namespace +# if: always() +# continue-on-error: true +# run: kubectl delete ns --ignore-not-found=true --wait interop-${{ github.run_id }}-iphone-7 +# +# # interop-03 +# test-galaxy-s20: +# runs-on: ubuntu-latest +# needs: [vars, build] +# if: "!cancelled() && contains(fromJSON(needs.vars.outputs.devices), 'galaxy-s20')" +# steps: +# - uses: actions/checkout@v2 +# +# - name: install dependencies +# run: | +# pip install -r .quali/requirements.txt +# # curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip" +# # unzip awscliv2.zip +# # sudo ./aws/install +# +# - name: start reservation +# env: +# CLOUDSHELL_URL: quali-cloudshell.lab.wlan.tip.build +# CLOUDSHELL_USER: ${{ secrets.CLOUDSHELL_USER }} +# CLOUDSHELL_PASSWORD: ${{ secrets.CLOUDSHELL_PASSWORD }} +# run: | +# python .quali/start_reservation.py --global-inputs '{"Phone ID(s)":"3","AP ID(s)":"1","Optional Existing SDK Namespace":"${{ needs.vars.outputs.existing_controller }}","Include a LANForge?":"Yes","securityToken":"eyJhbGciOiJIUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICI3NzkzZGM0Ni1jZmU4LTQ4ODMtYjhiOS02ZWFlZGU2OTc2MDkifQ.eyJpYXQiOjE2MzI4Mzc2NDEsImp0aSI6IjAwZGRiYWY5LWQwYjMtNDRjNS1hYjVlLTkyNzFlNzc5ZGUzNiIsImlzcyI6Imh0dHBzOi8vYXV0aDIucGVyZmVjdG9tb2JpbGUuY29tL2F1dGgvcmVhbG1zL3RpcC1wZXJmZWN0b21vYmlsZS1jb20iLCJhdWQiOiJodHRwczovL2F1dGgyLnBlcmZlY3RvbW9iaWxlLmNvbS9hdXRoL3JlYWxtcy90aXAtcGVyZmVjdG9tb2JpbGUtY29tIiwic3ViIjoiODNkNjUxMWQtNTBmZS00ZWM5LThkNzAtYTA0ZjBkNTdiZDUyIiwidHlwIjoiT2ZmbGluZSIsImF6cCI6Im9mZmxpbmUtdG9rZW4tZ2VuZXJhdG9yIiwibm9uY2UiOiI2ZjE1YzYxNy01YTU5LTQyOWEtODc2Yi1jOTQxMTQ1ZDFkZTIiLCJzZXNzaW9uX3N0YXRlIjoiYmRjZTFmYTMtMjlkYi00MmFmLWI5YWMtYjZjZmJkMDEyOTFhIiwic2NvcGUiOiJvcGVuaWQgcHJvZmlsZSBvZmZsaW5lX2FjY2VzcyBlbWFpbCJ9.5R85_1R38ZFXv_wIjjCIsj8NJm1p66dCsLJI5DBEmks"}' --reservation-duration 480 "InterOp Lab - Specific Selection" +# +# - name: set reservation outputs +# if: always() +# id: reservation +# run: | +# echo ::set-output name=identifier::"$(cat ./reservation_id.txt)" +# echo ::set-output name=namespace::"$(cat ./reservation_id.txt | cut -d "-" -f 1)" +# +# +# - name: get EKS access credentials +# run: aws eks update-kubeconfig --name ${{ env.AWS_EKS_NAME }} +# +# - name: install kubectl +# run: | +# curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl" +# sudo install -o root -g root -m 0755 kubectl /usr/local/bin/kubectl +# +# - name: prepare configuration +# env: +# CLOUDSHELL_URL: quali-cloudshell.lab.wlan.tip.build +# CLOUDSHELL_USER: ${{ secrets.CLOUDSHELL_USER }} +# CLOUDSHELL_PASSWORD: ${{ secrets.CLOUDSHELL_PASSWORD }} +# run: | +# cat << EOF > lab_info.json +# ${{ secrets.LAB_CONFIGURATION_JSON }} +# EOF +# +# DYN_CONFIG="$(python .quali/get_configuration.py --json ${{ steps.reservation.outputs.identifier }})" +# +# jq ".CONFIGURATION.interop=$DYN_CONFIG" lab_info.json > lab_info.json.tmp && mv lab_info.json.tmp lab_info.json +# +# +# if [ ${{ needs.vars.outputs.existing_controller }} != '' ] +# then +# jq '.CONFIGURATION.interop.controller.url="https://sec-${{ needs.vars.outputs.existing_controller }}.cicd.lab.wlan.tip.build:16001"' lab_info.json > lab_info.json.tmp && mv lab_info.json.tmp lab_info.json +# fi +# +# - name: run tests +# uses: ./.github/actions/run-tests +# with: +# namespace: interop-${{ github.run_id }}-galaxy-s20 +# testbed: interop +# marker_expression: "${{ needs.vars.outputs.marker_overwrite || 'interop_uc_sanity and client_connect and android' }}" +# configuration_file: "./lab_info.json" +# testing_docker_image: tip-tip-wlan-cloud-docker-repo.jfrog.io/cloud-sdk-nightly:${{ github.run_id }} +# additional_args: "--device='Galaxy S20' --skip-lanforge" +# allure_results_artifact_name: allure-results-galaxy-s20 +# +# - name: stop reservation +# if: always() +# run: python .quali/stop_reservation.py ${{ steps.reservation.outputs.identifier }} +# env: +# CLOUDSHELL_URL: quali-cloudshell.lab.wlan.tip.build +# CLOUDSHELL_USER: ${{ secrets.CLOUDSHELL_USER }} +# CLOUDSHELL_PASSWORD: ${{ secrets.CLOUDSHELL_PASSWORD }} +# +# # necessary because if conditionals in composite actions are currently not respected +# - name: delete namespace +# if: always() +# continue-on-error: true +# run: kubectl delete ns --ignore-not-found=true --wait interop-${{ github.run_id }}-galaxy-s20 +# +# test-iphone-xr: +# runs-on: ubuntu-latest +# needs: [vars, test-galaxy-s20] +# if: "!cancelled() && contains(fromJSON(needs.vars.outputs.devices), 'iphone-xr')" +# steps: +# - uses: actions/checkout@v2 +# +# - name: install dependencies +# run: | +# pip install -r .quali/requirements.txt +# # curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip" +# # unzip awscliv2.zip +# # sudo ./aws/install +# +# - name: start reservation +# env: +# CLOUDSHELL_URL: quali-cloudshell.lab.wlan.tip.build +# CLOUDSHELL_USER: ${{ secrets.CLOUDSHELL_USER }} +# CLOUDSHELL_PASSWORD: ${{ secrets.CLOUDSHELL_PASSWORD }} +# run: | +# python .quali/start_reservation.py --global-inputs '{"Phone ID(s)":"8","AP ID(s)":"1","Optional Existing SDK Namespace":"${{ needs.vars.outputs.existing_controller }}","Include a LANForge?":"Yes","securityToken":"eyJhbGciOiJIUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICI3NzkzZGM0Ni1jZmU4LTQ4ODMtYjhiOS02ZWFlZGU2OTc2MDkifQ.eyJpYXQiOjE2MzI4Mzc2NDEsImp0aSI6IjAwZGRiYWY5LWQwYjMtNDRjNS1hYjVlLTkyNzFlNzc5ZGUzNiIsImlzcyI6Imh0dHBzOi8vYXV0aDIucGVyZmVjdG9tb2JpbGUuY29tL2F1dGgvcmVhbG1zL3RpcC1wZXJmZWN0b21vYmlsZS1jb20iLCJhdWQiOiJodHRwczovL2F1dGgyLnBlcmZlY3RvbW9iaWxlLmNvbS9hdXRoL3JlYWxtcy90aXAtcGVyZmVjdG9tb2JpbGUtY29tIiwic3ViIjoiODNkNjUxMWQtNTBmZS00ZWM5LThkNzAtYTA0ZjBkNTdiZDUyIiwidHlwIjoiT2ZmbGluZSIsImF6cCI6Im9mZmxpbmUtdG9rZW4tZ2VuZXJhdG9yIiwibm9uY2UiOiI2ZjE1YzYxNy01YTU5LTQyOWEtODc2Yi1jOTQxMTQ1ZDFkZTIiLCJzZXNzaW9uX3N0YXRlIjoiYmRjZTFmYTMtMjlkYi00MmFmLWI5YWMtYjZjZmJkMDEyOTFhIiwic2NvcGUiOiJvcGVuaWQgcHJvZmlsZSBvZmZsaW5lX2FjY2VzcyBlbWFpbCJ9.5R85_1R38ZFXv_wIjjCIsj8NJm1p66dCsLJI5DBEmks"}' --reservation-duration 480 "InterOp Lab - Specific Selection" +# +# - name: set reservation outputs +# if: always() +# id: reservation +# run: | +# echo ::set-output name=identifier::"$(cat ./reservation_id.txt)" +# echo ::set-output name=namespace::"$(cat ./reservation_id.txt | cut -d "-" -f 1)" +# +# +# - name: get EKS access credentials +# run: aws eks update-kubeconfig --name ${{ env.AWS_EKS_NAME }} +# +# - name: install kubectl +# run: | +# curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl" +# sudo install -o root -g root -m 0755 kubectl /usr/local/bin/kubectl +# +# - name: prepare configuration +# env: +# CLOUDSHELL_URL: quali-cloudshell.lab.wlan.tip.build +# CLOUDSHELL_USER: ${{ secrets.CLOUDSHELL_USER }} +# CLOUDSHELL_PASSWORD: ${{ secrets.CLOUDSHELL_PASSWORD }} +# run: | +# cat << EOF > lab_info.json +# ${{ secrets.LAB_CONFIGURATION_JSON }} +# EOF +# +# DYN_CONFIG="$(python .quali/get_configuration.py --json ${{ steps.reservation.outputs.identifier }})" +# +# jq ".CONFIGURATION.interop=$DYN_CONFIG" lab_info.json > lab_info.json.tmp && mv lab_info.json.tmp lab_info.json +# +# +# if [ ${{ needs.vars.outputs.existing_controller }} != '' ] +# then +# jq '.CONFIGURATION.interop.controller.url="https://sec-${{ needs.vars.outputs.existing_controller }}.cicd.lab.wlan.tip.build:16001"' lab_info.json > lab_info.json.tmp && mv lab_info.json.tmp lab_info.json +# fi +# +# - name: run tests +# uses: ./.github/actions/run-tests +# with: +# namespace: interop-${{ github.run_id }}-iphone-xr +# testbed: interop +# marker_expression: "${{ needs.vars.outputs.marker_overwrite || 'interop_uc_sanity and client_connect and ios' }}" +# configuration_file: "./lab_info.json" +# testing_docker_image: tip-tip-wlan-cloud-docker-repo.jfrog.io/cloud-sdk-nightly:${{ github.run_id }} +# additional_args: "--device='iPhone-XR' --skip-lanforge" +# allure_results_artifact_name: allure-results-iphone-xr +# +# - name: stop reservation +# if: always() +# run: python .quali/stop_reservation.py ${{ steps.reservation.outputs.identifier }} +# env: +# CLOUDSHELL_URL: quali-cloudshell.lab.wlan.tip.build +# CLOUDSHELL_USER: ${{ secrets.CLOUDSHELL_USER }} +# CLOUDSHELL_PASSWORD: ${{ secrets.CLOUDSHELL_PASSWORD } +# +# # necessary because if conditionals in composite actions are currently not respected +# - name: delete namespace +# if: always() +# continue-on-error: true +# run: kubectl delete ns --ignore-not-found=true --wait interop-${{ github.run_id }}-iphone-xr +# +# #interop-04 +# test-pixel-4: +# runs-on: ubuntu-latest +# needs: [vars, build] +# if: "!cancelled() && contains(fromJSON(needs.vars.outputs.devices), 'pixel-4')" +# steps: +# - uses: actions/checkout@v2 +# +# - name: install dependencies +# run: | +# pip install -r .quali/requirements.txt +# # curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip" +# # unzip awscliv2.zip +# # sudo ./aws/install +# +# - name: start reservation +# env: +# CLOUDSHELL_URL: quali-cloudshell.lab.wlan.tip.build +# CLOUDSHELL_USER: ${{ secrets.CLOUDSHELL_USER }} +# CLOUDSHELL_PASSWORD: ${{ secrets.CLOUDSHELL_PASSWORD }} +# run: | +# python .quali/start_reservation.py --global-inputs '{"Phone ID(s)":"4","AP ID(s)":"1","Optional Existing SDK Namespace":"${{ needs.vars.outputs.existing_controller }}","Include a LANForge?":"Yes","securityToken":"eyJhbGciOiJIUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICI3NzkzZGM0Ni1jZmU4LTQ4ODMtYjhiOS02ZWFlZGU2OTc2MDkifQ.eyJpYXQiOjE2MzI4Mzc2NDEsImp0aSI6IjAwZGRiYWY5LWQwYjMtNDRjNS1hYjVlLTkyNzFlNzc5ZGUzNiIsImlzcyI6Imh0dHBzOi8vYXV0aDIucGVyZmVjdG9tb2JpbGUuY29tL2F1dGgvcmVhbG1zL3RpcC1wZXJmZWN0b21vYmlsZS1jb20iLCJhdWQiOiJodHRwczovL2F1dGgyLnBlcmZlY3RvbW9iaWxlLmNvbS9hdXRoL3JlYWxtcy90aXAtcGVyZmVjdG9tb2JpbGUtY29tIiwic3ViIjoiODNkNjUxMWQtNTBmZS00ZWM5LThkNzAtYTA0ZjBkNTdiZDUyIiwidHlwIjoiT2ZmbGluZSIsImF6cCI6Im9mZmxpbmUtdG9rZW4tZ2VuZXJhdG9yIiwibm9uY2UiOiI2ZjE1YzYxNy01YTU5LTQyOWEtODc2Yi1jOTQxMTQ1ZDFkZTIiLCJzZXNzaW9uX3N0YXRlIjoiYmRjZTFmYTMtMjlkYi00MmFmLWI5YWMtYjZjZmJkMDEyOTFhIiwic2NvcGUiOiJvcGVuaWQgcHJvZmlsZSBvZmZsaW5lX2FjY2VzcyBlbWFpbCJ9.5R85_1R38ZFXv_wIjjCIsj8NJm1p66dCsLJI5DBEmks"}' --reservation-duration 480 "InterOp Lab - Specific Selection" +# +# - name: set reservation outputs +# if: always() +# id: reservation +# run: | +# echo ::set-output name=identifier::"$(cat ./reservation_id.txt)" +# echo ::set-output name=namespace::"$(cat ./reservation_id.txt | cut -d "-" -f 1)" +# +# - name: get EKS access credentials +# run: aws eks update-kubeconfig --name ${{ env.AWS_EKS_NAME }} +# +# - name: install kubectl +# run: | +# curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl" +# sudo install -o root -g root -m 0755 kubectl /usr/local/bin/kubectl +# +# - name: prepare configuration +# env: +# CLOUDSHELL_URL: quali-cloudshell.lab.wlan.tip.build +# CLOUDSHELL_USER: ${{ secrets.CLOUDSHELL_USER }} +# CLOUDSHELL_PASSWORD: ${{ secrets.CLOUDSHELL_PASSWORD }} +# run: | +# cat << EOF > lab_info.json +# ${{ secrets.LAB_CONFIGURATION_JSON }} +# EOF +# +# DYN_CONFIG="$(python .quali/get_configuration.py --json ${{ steps.reservation.outputs.identifier }})" +# +# jq ".CONFIGURATION.interop=$DYN_CONFIG" lab_info.json > lab_info.json.tmp && mv lab_info.json.tmp lab_info.json +# +# +# if [ ${{ needs.vars.outputs.existing_controller }} != '' ] +# then +# jq '.CONFIGURATION.interop.controller.url="https://sec-${{ needs.vars.outputs.existing_controller }}.cicd.lab.wlan.tip.build:16001"' lab_info.json > lab_info.json.tmp && mv lab_info.json.tmp lab_info.json +# fi +# +# +# - name: run tests +# uses: ./.github/actions/run-tests +# with: +# namespace: interop-${{ github.run_id }}-pixel-4 +# testbed: interop +# marker_expression: "${{ needs.vars.outputs.marker_overwrite || 'interop_uc_sanity and client_connect and android' }}" +# configuration_file: "./lab_info.json" +# testing_docker_image: tip-tip-wlan-cloud-docker-repo.jfrog.io/cloud-sdk-nightly:${{ github.run_id }} +# additional_args: "--device='Pixel 4' --skip-lanforge" +# allure_results_artifact_name: allure-results-pixel-4 +# +# - name: stop reservation +# if: always() +# run: python .quali/stop_reservation.py ${{ steps.reservation.outputs.identifier }} +# env: +# CLOUDSHELL_URL: quali-cloudshell.lab.wlan.tip.build +# CLOUDSHELL_USER: ${{ secrets.CLOUDSHELL_USER }} +# CLOUDSHELL_PASSWORD: ${{ secrets.CLOUDSHELL_PASSWORD }} +# +# # necessary because if conditionals in composite actions are currently not respected +# - name: delete namespace +# if: always() +# continue-on-error: true +# run: kubectl delete ns --ignore-not-found=true --wait interop-${{ github.run_id }}-pixel-4 +# +# test-iphone-12: +# runs-on: ubuntu-latest +# needs: [vars, test-pixel-4] +# if: "!cancelled() && contains(fromJSON(needs.vars.outputs.devices), 'iphone-12')" +# steps: +# - uses: actions/checkout@v2 +# +# - name: install dependencies +# run: | +# pip install -r .quali/requirements.txt +# # curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip" +# # unzip awscliv2.zip +# # sudo ./aws/install +# +# - name: start reservation +# env: +# CLOUDSHELL_URL: quali-cloudshell.lab.wlan.tip.build +# CLOUDSHELL_USER: ${{ secrets.CLOUDSHELL_USER }} +# CLOUDSHELL_PASSWORD: ${{ secrets.CLOUDSHELL_PASSWORD }} +# run: | +# python .quali/start_reservation.py --global-inputs '{"Phone ID(s)":"7","AP ID(s)":"1","Optional Existing SDK Namespace":"${{ needs.vars.outputs.existing_controller }}","Include a LANForge?":"Yes","securityToken":"eyJhbGciOiJIUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICI3NzkzZGM0Ni1jZmU4LTQ4ODMtYjhiOS02ZWFlZGU2OTc2MDkifQ.eyJpYXQiOjE2MzI4Mzc2NDEsImp0aSI6IjAwZGRiYWY5LWQwYjMtNDRjNS1hYjVlLTkyNzFlNzc5ZGUzNiIsImlzcyI6Imh0dHBzOi8vYXV0aDIucGVyZmVjdG9tb2JpbGUuY29tL2F1dGgvcmVhbG1zL3RpcC1wZXJmZWN0b21vYmlsZS1jb20iLCJhdWQiOiJodHRwczovL2F1dGgyLnBlcmZlY3RvbW9iaWxlLmNvbS9hdXRoL3JlYWxtcy90aXAtcGVyZmVjdG9tb2JpbGUtY29tIiwic3ViIjoiODNkNjUxMWQtNTBmZS00ZWM5LThkNzAtYTA0ZjBkNTdiZDUyIiwidHlwIjoiT2ZmbGluZSIsImF6cCI6Im9mZmxpbmUtdG9rZW4tZ2VuZXJhdG9yIiwibm9uY2UiOiI2ZjE1YzYxNy01YTU5LTQyOWEtODc2Yi1jOTQxMTQ1ZDFkZTIiLCJzZXNzaW9uX3N0YXRlIjoiYmRjZTFmYTMtMjlkYi00MmFmLWI5YWMtYjZjZmJkMDEyOTFhIiwic2NvcGUiOiJvcGVuaWQgcHJvZmlsZSBvZmZsaW5lX2FjY2VzcyBlbWFpbCJ9.5R85_1R38ZFXv_wIjjCIsj8NJm1p66dCsLJI5DBEmks"}' --reservation-duration 480 "InterOp Lab - Specific Selection" +# +# - name: set reservation outputs +# if: always() +# id: reservation +# run: | +# echo ::set-output name=identifier::"$(cat ./reservation_id.txt)" +# echo ::set-output name=namespace::"$(cat ./reservation_id.txt | cut -d "-" -f 1)" +# +# - name: get EKS access credentials +# run: aws eks update-kubeconfig --name ${{ env.AWS_EKS_NAME }} +# +# - name: install kubectl +# run: | +# curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl" +# sudo install -o root -g root -m 0755 kubectl /usr/local/bin/kubectl +# +# - name: prepare configuration +# env: +# CLOUDSHELL_URL: quali-cloudshell.lab.wlan.tip.build +# CLOUDSHELL_USER: ${{ secrets.CLOUDSHELL_USER }} +# CLOUDSHELL_PASSWORD: ${{ secrets.CLOUDSHELL_PASSWORD }} +# run: | +# cat << EOF > lab_info.json +# ${{ secrets.LAB_CONFIGURATION_JSON }} +# EOF +# +# DYN_CONFIG="$(python .quali/get_configuration.py --json ${{ steps.reservation.outputs.identifier }})" +# +# jq ".CONFIGURATION.interop=$DYN_CONFIG" lab_info.json > lab_info.json.tmp && mv lab_info.json.tmp lab_info.json +# +# +# if [ ${{ needs.vars.outputs.existing_controller }} != '' ] +# then +# jq '.CONFIGURATION.interop.controller.url="https://sec-${{ needs.vars.outputs.existing_controller }}.cicd.lab.wlan.tip.build:16001"' lab_info.json > lab_info.json.tmp && mv lab_info.json.tmp lab_info.json +# fi +# +# - name: run tests +# uses: ./.github/actions/run-tests +# with: +# namespace: interop-${{ github.run_id }}-iphone-12 +# testbed: interop +# marker_expression: "${{ needs.vars.outputs.marker_overwrite || 'interop_uc_sanity and client_connect and ios' }}" +# configuration_file: "./lab_info.json" +# testing_docker_image: tip-tip-wlan-cloud-docker-repo.jfrog.io/cloud-sdk-nightly:${{ github.run_id }} +# additional_args: "--device='iPhone-12' --skip-lanforge" +# allure_results_artifact_name: allure-results-iphone-12 +# +# - name: stop reservation +# if: always() +# run: python .quali/stop_reservation.py ${{ steps.reservation.outputs.identifier }} +# env: +# CLOUDSHELL_URL: quali-cloudshell.lab.wlan.tip.build +# CLOUDSHELL_USER: ${{ secrets.CLOUDSHELL_USER }} +# CLOUDSHELL_PASSWORD: ${{ secrets.CLOUDSHELL_PASSWORD }} +# +# # necessary because if conditionals in composite actions are currently not respected +# - name: delete namespace +# if: always() +# continue-on-error: true +# run: kubectl delete ns --ignore-not-found=true --wait interop-${{ github.run_id }}-iphone-12 +# report: needs: [vars, test-iphone-11, test-iphone-xr, test-iphone-12, test-iphone-7] if: "!cancelled()" From 5612cd806e86d968a0787ee90ac613ddcba85905 Mon Sep 17 00:00:00 2001 From: dutta-rohan <94938704+dutta-rohan@users.noreply.github.com> Date: Sat, 23 Apr 2022 15:02:11 -0700 Subject: [PATCH 092/100] Modified .quali/get_config Signed-off-by: dutta-rohan <94938704+dutta-rohan@users.noreply.github.com> --- .github/workflows/interop.yml | 1166 ++++++++++++++++----------------- 1 file changed, 583 insertions(+), 583 deletions(-) diff --git a/.github/workflows/interop.yml b/.github/workflows/interop.yml index 64914beb5..cc6738a5b 100644 --- a/.github/workflows/interop.yml +++ b/.github/workflows/interop.yml @@ -147,589 +147,589 @@ jobs: continue-on-error: true run: kubectl delete ns --ignore-not-found=true --wait interop-${{ github.run_id }}-galaxy-s9 -# test-iphone-11: -# runs-on: ubuntu-latest -# needs: [vars, test-galaxy-s9] -# if: "!cancelled() && contains(fromJSON(needs.vars.outputs.devices), 'iphone-11')" -# steps: -# - uses: actions/checkout@v2 -# -# - name: install dependencies -# run: | -# pip install -r .quali/requirements.txt -# # curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip" -# # unzip awscliv2.zip -# # sudo ./aws/install -# -# - name: start reservation -# env: -# CLOUDSHELL_URL: quali-cloudshell.lab.wlan.tip.build -# CLOUDSHELL_USER: ${{ secrets.CLOUDSHELL_USER }} -# CLOUDSHELL_PASSWORD: ${{ secrets.CLOUDSHELL_PASSWORD }} -# run: | -# python .quali/start_reservation.py --global-inputs '{"Phone ID(s)":"6","AP ID(s)":"1","Optional Existing SDK Namespace":"${{ needs.vars.outputs.existing_controller }}","Include a LANForge?":"Yes","securityToken":"eyJhbGciOiJIUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICI3NzkzZGM0Ni1jZmU4LTQ4ODMtYjhiOS02ZWFlZGU2OTc2MDkifQ.eyJpYXQiOjE2MzI4Mzc2NDEsImp0aSI6IjAwZGRiYWY5LWQwYjMtNDRjNS1hYjVlLTkyNzFlNzc5ZGUzNiIsImlzcyI6Imh0dHBzOi8vYXV0aDIucGVyZmVjdG9tb2JpbGUuY29tL2F1dGgvcmVhbG1zL3RpcC1wZXJmZWN0b21vYmlsZS1jb20iLCJhdWQiOiJodHRwczovL2F1dGgyLnBlcmZlY3RvbW9iaWxlLmNvbS9hdXRoL3JlYWxtcy90aXAtcGVyZmVjdG9tb2JpbGUtY29tIiwic3ViIjoiODNkNjUxMWQtNTBmZS00ZWM5LThkNzAtYTA0ZjBkNTdiZDUyIiwidHlwIjoiT2ZmbGluZSIsImF6cCI6Im9mZmxpbmUtdG9rZW4tZ2VuZXJhdG9yIiwibm9uY2UiOiI2ZjE1YzYxNy01YTU5LTQyOWEtODc2Yi1jOTQxMTQ1ZDFkZTIiLCJzZXNzaW9uX3N0YXRlIjoiYmRjZTFmYTMtMjlkYi00MmFmLWI5YWMtYjZjZmJkMDEyOTFhIiwic2NvcGUiOiJvcGVuaWQgcHJvZmlsZSBvZmZsaW5lX2FjY2VzcyBlbWFpbCJ9.5R85_1R38ZFXv_wIjjCIsj8NJm1p66dCsLJI5DBEmks"}' "InterOp Lab - Specific Selection" -# -# - name: set reservation outputs -# if: always() -# id: reservation -# run: | -# echo ::set-output name=identifier::"$(cat ./reservation_id.txt)" -# echo ::set-output name=namespace::"$(cat ./reservation_id.txt | cut -d "-" -f 1)" -# -# -# - name: get EKS access credentials -# run: aws eks update-kubeconfig --name ${{ env.AWS_EKS_NAME }} -# -# - name: install kubectl -# run: | -# curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl" -# sudo install -o root -g root -m 0755 kubectl /usr/local/bin/kubectl -# -# - name: prepare configuration -# env: -# CLOUDSHELL_URL: quali-cloudshell.lab.wlan.tip.build -# CLOUDSHELL_USER: ${{ secrets.CLOUDSHELL_USER }} -# CLOUDSHELL_PASSWORD: ${{ secrets.CLOUDSHELL_PASSWORD }} -# run: | -# cat << EOF > lab_info.json -# ${{ secrets.LAB_CONFIGURATION_JSON }} -# EOF -# -# DYN_CONFIG="$(python .quali/get_configuration.py --json ${{ steps.reservation.outputs.identifier }})" -# -# jq ".CONFIGURATION.interop=$DYN_CONFIG" lab_info.json > lab_info.json.tmp && mv lab_info.json.tmp lab_info.json -# -# -# if [ ${{ needs.vars.outputs.existing_controller }} != '' ] -# then -# jq '.CONFIGURATION.interop.controller.url="https://sec-${{ needs.vars.outputs.existing_controller }}.cicd.lab.wlan.tip.build:16001"' lab_info.json > lab_info.json.tmp && mv lab_info.json.tmp lab_info.json -# fi -# -# - name: run tests -# uses: ./.github/actions/run-tests -# with: -# namespace: interop-${{ github.run_id }}-iphone-11 -# testbed: interop -# marker_expression: "${{ needs.vars.outputs.marker_overwrite || 'interop_uc_sanity and client_connect and ios' }}" -# configuration_file: "$./lab_info.json" -# testing_docker_image: tip-tip-wlan-cloud-docker-repo.jfrog.io/cloud-sdk-nightly:${{ github.run_id }} -# additional_args: "--device='iPhone-11' --skip-lanforge" -# allure_results_artifact_name: allure-results-iphone-11 -# -# - name: stop reservation -# if: always() -# run: python .quali/stop_reservation.py ${{ steps.reservation.outputs.identifier }} -# env: -# CLOUDSHELL_URL: quali-cloudshell.lab.wlan.tip.build -# CLOUDSHELL_USER: ${{ secrets.CLOUDSHELL_USER }} -# CLOUDSHELL_PASSWORD: ${{ secrets.CLOUDSHELL_PASSWORD }} -# -# # necessary because if conditionals in composite actions are currently not respected -# - name: delete namespace -# if: always() -# continue-on-error: true -# run: kubectl delete ns --ignore-not-found=true --wait interop-${{ github.run_id }}-iphone-11 -# -# # interop-02 -# test-galaxy-s10: -# runs-on: ubuntu-latest -# needs: [vars, build] -# if: "!cancelled() && contains(fromJSON(needs.vars.outputs.devices), 'galaxy-s10')" -# steps: -# - uses: actions/checkout@v2 -# -# - name: install dependencies -# run: | -# pip install -r .quali/requirements.txt -# # curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip" -# # unzip awscliv2.zip -# # sudo ./aws/install -# -# - name: start reservation -# env: -# CLOUDSHELL_URL: quali-cloudshell.lab.wlan.tip.build -# CLOUDSHELL_USER: ${{ secrets.CLOUDSHELL_USER }} -# CLOUDSHELL_PASSWORD: ${{ secrets.CLOUDSHELL_PASSWORD }} -# run: | -# python .quali/start_reservation.py --global-inputs '{"Phone ID(s)":"2","AP ID(s)":"1","Optional Existing SDK Namespace":"${{ needs.vars.outputs.existing_controller }}","Include a LANForge?":"Yes","securityToken":"eyJhbGciOiJIUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICI3NzkzZGM0Ni1jZmU4LTQ4ODMtYjhiOS02ZWFlZGU2OTc2MDkifQ.eyJpYXQiOjE2MzI4Mzc2NDEsImp0aSI6IjAwZGRiYWY5LWQwYjMtNDRjNS1hYjVlLTkyNzFlNzc5ZGUzNiIsImlzcyI6Imh0dHBzOi8vYXV0aDIucGVyZmVjdG9tb2JpbGUuY29tL2F1dGgvcmVhbG1zL3RpcC1wZXJmZWN0b21vYmlsZS1jb20iLCJhdWQiOiJodHRwczovL2F1dGgyLnBlcmZlY3RvbW9iaWxlLmNvbS9hdXRoL3JlYWxtcy90aXAtcGVyZmVjdG9tb2JpbGUtY29tIiwic3ViIjoiODNkNjUxMWQtNTBmZS00ZWM5LThkNzAtYTA0ZjBkNTdiZDUyIiwidHlwIjoiT2ZmbGluZSIsImF6cCI6Im9mZmxpbmUtdG9rZW4tZ2VuZXJhdG9yIiwibm9uY2UiOiI2ZjE1YzYxNy01YTU5LTQyOWEtODc2Yi1jOTQxMTQ1ZDFkZTIiLCJzZXNzaW9uX3N0YXRlIjoiYmRjZTFmYTMtMjlkYi00MmFmLWI5YWMtYjZjZmJkMDEyOTFhIiwic2NvcGUiOiJvcGVuaWQgcHJvZmlsZSBvZmZsaW5lX2FjY2VzcyBlbWFpbCJ9.5R85_1R38ZFXv_wIjjCIsj8NJm1p66dCsLJI5DBEmks"}' --reservation-duration 480 "InterOp Lab - Specific Selection" -# -# - name: set reservation outputs -# if: always() -# id: reservation -# run: | -# echo ::set-output name=identifier::"$(cat ./reservation_id.txt)" -# echo ::set-output name=namespace::"$(cat ./reservation_id.txt | cut -d "-" -f 1)" -# -# -# - name: get EKS access credentials -# run: aws eks update-kubeconfig --name ${{ env.AWS_EKS_NAME }} -# -# - name: install kubectl -# run: | -# curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl" -# sudo install -o root -g root -m 0755 kubectl /usr/local/bin/kubectl -# -# - name: prepare configuration -# env: -# CLOUDSHELL_URL: quali-cloudshell.lab.wlan.tip.build -# CLOUDSHELL_USER: ${{ secrets.CLOUDSHELL_USER }} -# CLOUDSHELL_PASSWORD: ${{ secrets.CLOUDSHELL_PASSWORD }} -# run: | -# cat << EOF > lab_info.json -# ${{ secrets.LAB_CONFIGURATION_JSON }} -# EOF -# -# DYN_CONFIG="$(python .quali/get_configuration.py --json ${{ steps.reservation.outputs.identifier }})" -# -# jq ".CONFIGURATION.interop=$DYN_CONFIG" lab_info.json > lab_info.json.tmp && mv lab_info.json.tmp lab_info.json -# -# -# if [ ${{ needs.vars.outputs.existing_controller }} != '' ] -# then -# jq '.CONFIGURATION.interop.controller.url="https://sec-${{ needs.vars.outputs.existing_controller }}.cicd.lab.wlan.tip.build:16001"' lab_info.json > lab_info.json.tmp && mv lab_info.json.tmp lab_info.json -# fi -# -# - name: run tests -# uses: ./.github/actions/run-tests -# with: -# namespace: interop-${{ github.run_id }}-galaxy-s10 -# testbed: interop -# marker_expression: "${{ needs.vars.outputs.marker_overwrite || 'interop_uc_sanity and client_connect and android' }}" -# configuration_file: "./lab_info.json" -# testing_docker_image: tip-tip-wlan-cloud-docker-repo.jfrog.io/cloud-sdk-nightly:${{ github.run_id }} -# additional_args: "--device='Galaxy S10.*' --skip-lanforge" -# allure_results_artifact_name: allure-results-galaxy-s10 -# -# - name: stop reservation -# if: always() -# run: python .quali/stop_reservation.py ${{ steps.reservation.outputs.identifier }} -# env: -# CLOUDSHELL_URL: quali-cloudshell.lab.wlan.tip.build -# CLOUDSHELL_USER: ${{ secrets.CLOUDSHELL_USER }} -# CLOUDSHELL_PASSWORD: ${{ secrets.CLOUDSHELL_PASSWORD }} -# -# # necessary because if conditionals in composite actions are currently not respected -# - name: delete namespace -# if: always() -# continue-on-error: true -# run: kubectl delete ns --ignore-not-found=true --wait interop-${{ github.run_id }}-galaxy-s10 -# -# test-iphone-7: -# runs-on: ubuntu-latest -# needs: [vars, test-galaxy-s10] -# if: "!cancelled() && contains(fromJSON(needs.vars.outputs.devices), 'iphone-7')" -# steps: -# - uses: actions/checkout@v2 -# -# - name: install dependencies -# run: | -# pip install -r .quali/requirements.txt -# # curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip" -# # unzip awscliv2.zip -# # sudo ./aws/install -# -# - name: start reservation -# env: -# CLOUDSHELL_URL: quali-cloudshell.lab.wlan.tip.build -# CLOUDSHELL_USER: ${{ secrets.CLOUDSHELL_USER }} -# CLOUDSHELL_PASSWORD: ${{ secrets.CLOUDSHELL_PASSWORD }} -# run: | -# python .quali/start_reservation.py --global-inputs '{"Phone ID(s)":"5","AP ID(s)":"1","Optional Existing SDK Namespace":"${{ needs.vars.outputs.existing_controller }}","Include a LANForge?":"Yes","securityToken":"eyJhbGciOiJIUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICI3NzkzZGM0Ni1jZmU4LTQ4ODMtYjhiOS02ZWFlZGU2OTc2MDkifQ.eyJpYXQiOjE2MzI4Mzc2NDEsImp0aSI6IjAwZGRiYWY5LWQwYjMtNDRjNS1hYjVlLTkyNzFlNzc5ZGUzNiIsImlzcyI6Imh0dHBzOi8vYXV0aDIucGVyZmVjdG9tb2JpbGUuY29tL2F1dGgvcmVhbG1zL3RpcC1wZXJmZWN0b21vYmlsZS1jb20iLCJhdWQiOiJodHRwczovL2F1dGgyLnBlcmZlY3RvbW9iaWxlLmNvbS9hdXRoL3JlYWxtcy90aXAtcGVyZmVjdG9tb2JpbGUtY29tIiwic3ViIjoiODNkNjUxMWQtNTBmZS00ZWM5LThkNzAtYTA0ZjBkNTdiZDUyIiwidHlwIjoiT2ZmbGluZSIsImF6cCI6Im9mZmxpbmUtdG9rZW4tZ2VuZXJhdG9yIiwibm9uY2UiOiI2ZjE1YzYxNy01YTU5LTQyOWEtODc2Yi1jOTQxMTQ1ZDFkZTIiLCJzZXNzaW9uX3N0YXRlIjoiYmRjZTFmYTMtMjlkYi00MmFmLWI5YWMtYjZjZmJkMDEyOTFhIiwic2NvcGUiOiJvcGVuaWQgcHJvZmlsZSBvZmZsaW5lX2FjY2VzcyBlbWFpbCJ9.5R85_1R38ZFXv_wIjjCIsj8NJm1p66dCsLJI5DBEmks"}' --reservation-duration 480 "InterOp Lab - Specific Selection" -# -# - name: set reservation outputs -# if: always() -# id: reservation -# run: | -# echo ::set-output name=identifier::"$(cat ./reservation_id.txt)" -# echo ::set-output name=namespace::"$(cat ./reservation_id.txt | cut -d "-" -f 1)" -# -# -# - name: get EKS access credentials -# run: aws eks update-kubeconfig --name ${{ env.AWS_EKS_NAME }} -# -# - name: install kubectl -# run: | -# curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl" -# sudo install -o root -g root -m 0755 kubectl /usr/local/bin/kubectl -# -# - name: prepare configuration -# env: -# CLOUDSHELL_URL: quali-cloudshell.lab.wlan.tip.build -# CLOUDSHELL_USER: ${{ secrets.CLOUDSHELL_USER }} -# CLOUDSHELL_PASSWORD: ${{ secrets.CLOUDSHELL_PASSWORD }} -# run: | -# cat << EOF > lab_info.json -# ${{ secrets.LAB_CONFIGURATION_JSON }} -# EOF -# -# DYN_CONFIG="$(python .quali/get_configuration.py --json ${{ steps.reservation.outputs.identifier }})" -# -# jq ".CONFIGURATION.interop=$DYN_CONFIG" lab_info.json > lab_info.json.tmp && mv lab_info.json.tmp lab_info.json -# -# -# if [ ${{ needs.vars.outputs.existing_controller }} != '' ] -# then -# jq '.CONFIGURATION.interop.controller.url="https://sec-${{ needs.vars.outputs.existing_controller }}.cicd.lab.wlan.tip.build:16001"' lab_info.json > lab_info.json.tmp && mv lab_info.json.tmp lab_info.json -# fi -# -# - name: run tests -# uses: ./.github/actions/run-tests -# with: -# namespace: interop-${{ github.run_id }}-iphone-7 -# testbed: interop -# marker_expression: "${{ needs.vars.outputs.marker_overwrite || 'interop_uc_sanity and client_connect and ios' }}" -# configuration_file: "./lab_info.json" -# testing_docker_image: tip-tip-wlan-cloud-docker-repo.jfrog.io/cloud-sdk-nightly:${{ github.run_id }} -# additional_args: "--device='iPhone-7' --skip-lanforge" -# allure_results_artifact_name: allure-results-iphone-7 -# -# - name: stop reservation -# if: always() -# run: python .quali/stop_reservation.py ${{ steps.reservation.outputs.identifier }} -# env: -# CLOUDSHELL_URL: quali-cloudshell.lab.wlan.tip.build -# CLOUDSHELL_USER: ${{ secrets.CLOUDSHELL_USER }} -# CLOUDSHELL_PASSWORD: ${{ secrets.CLOUDSHELL_PASSWORD }} -# -# # necessary because if conditionals in composite actions are currently not respected -# - name: delete namespace -# if: always() -# continue-on-error: true -# run: kubectl delete ns --ignore-not-found=true --wait interop-${{ github.run_id }}-iphone-7 -# -# # interop-03 -# test-galaxy-s20: -# runs-on: ubuntu-latest -# needs: [vars, build] -# if: "!cancelled() && contains(fromJSON(needs.vars.outputs.devices), 'galaxy-s20')" -# steps: -# - uses: actions/checkout@v2 -# -# - name: install dependencies -# run: | -# pip install -r .quali/requirements.txt -# # curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip" -# # unzip awscliv2.zip -# # sudo ./aws/install -# -# - name: start reservation -# env: -# CLOUDSHELL_URL: quali-cloudshell.lab.wlan.tip.build -# CLOUDSHELL_USER: ${{ secrets.CLOUDSHELL_USER }} -# CLOUDSHELL_PASSWORD: ${{ secrets.CLOUDSHELL_PASSWORD }} -# run: | -# python .quali/start_reservation.py --global-inputs '{"Phone ID(s)":"3","AP ID(s)":"1","Optional Existing SDK Namespace":"${{ needs.vars.outputs.existing_controller }}","Include a LANForge?":"Yes","securityToken":"eyJhbGciOiJIUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICI3NzkzZGM0Ni1jZmU4LTQ4ODMtYjhiOS02ZWFlZGU2OTc2MDkifQ.eyJpYXQiOjE2MzI4Mzc2NDEsImp0aSI6IjAwZGRiYWY5LWQwYjMtNDRjNS1hYjVlLTkyNzFlNzc5ZGUzNiIsImlzcyI6Imh0dHBzOi8vYXV0aDIucGVyZmVjdG9tb2JpbGUuY29tL2F1dGgvcmVhbG1zL3RpcC1wZXJmZWN0b21vYmlsZS1jb20iLCJhdWQiOiJodHRwczovL2F1dGgyLnBlcmZlY3RvbW9iaWxlLmNvbS9hdXRoL3JlYWxtcy90aXAtcGVyZmVjdG9tb2JpbGUtY29tIiwic3ViIjoiODNkNjUxMWQtNTBmZS00ZWM5LThkNzAtYTA0ZjBkNTdiZDUyIiwidHlwIjoiT2ZmbGluZSIsImF6cCI6Im9mZmxpbmUtdG9rZW4tZ2VuZXJhdG9yIiwibm9uY2UiOiI2ZjE1YzYxNy01YTU5LTQyOWEtODc2Yi1jOTQxMTQ1ZDFkZTIiLCJzZXNzaW9uX3N0YXRlIjoiYmRjZTFmYTMtMjlkYi00MmFmLWI5YWMtYjZjZmJkMDEyOTFhIiwic2NvcGUiOiJvcGVuaWQgcHJvZmlsZSBvZmZsaW5lX2FjY2VzcyBlbWFpbCJ9.5R85_1R38ZFXv_wIjjCIsj8NJm1p66dCsLJI5DBEmks"}' --reservation-duration 480 "InterOp Lab - Specific Selection" -# -# - name: set reservation outputs -# if: always() -# id: reservation -# run: | -# echo ::set-output name=identifier::"$(cat ./reservation_id.txt)" -# echo ::set-output name=namespace::"$(cat ./reservation_id.txt | cut -d "-" -f 1)" -# -# -# - name: get EKS access credentials -# run: aws eks update-kubeconfig --name ${{ env.AWS_EKS_NAME }} -# -# - name: install kubectl -# run: | -# curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl" -# sudo install -o root -g root -m 0755 kubectl /usr/local/bin/kubectl -# -# - name: prepare configuration -# env: -# CLOUDSHELL_URL: quali-cloudshell.lab.wlan.tip.build -# CLOUDSHELL_USER: ${{ secrets.CLOUDSHELL_USER }} -# CLOUDSHELL_PASSWORD: ${{ secrets.CLOUDSHELL_PASSWORD }} -# run: | -# cat << EOF > lab_info.json -# ${{ secrets.LAB_CONFIGURATION_JSON }} -# EOF -# -# DYN_CONFIG="$(python .quali/get_configuration.py --json ${{ steps.reservation.outputs.identifier }})" -# -# jq ".CONFIGURATION.interop=$DYN_CONFIG" lab_info.json > lab_info.json.tmp && mv lab_info.json.tmp lab_info.json -# -# -# if [ ${{ needs.vars.outputs.existing_controller }} != '' ] -# then -# jq '.CONFIGURATION.interop.controller.url="https://sec-${{ needs.vars.outputs.existing_controller }}.cicd.lab.wlan.tip.build:16001"' lab_info.json > lab_info.json.tmp && mv lab_info.json.tmp lab_info.json -# fi -# -# - name: run tests -# uses: ./.github/actions/run-tests -# with: -# namespace: interop-${{ github.run_id }}-galaxy-s20 -# testbed: interop -# marker_expression: "${{ needs.vars.outputs.marker_overwrite || 'interop_uc_sanity and client_connect and android' }}" -# configuration_file: "./lab_info.json" -# testing_docker_image: tip-tip-wlan-cloud-docker-repo.jfrog.io/cloud-sdk-nightly:${{ github.run_id }} -# additional_args: "--device='Galaxy S20' --skip-lanforge" -# allure_results_artifact_name: allure-results-galaxy-s20 -# -# - name: stop reservation -# if: always() -# run: python .quali/stop_reservation.py ${{ steps.reservation.outputs.identifier }} -# env: -# CLOUDSHELL_URL: quali-cloudshell.lab.wlan.tip.build -# CLOUDSHELL_USER: ${{ secrets.CLOUDSHELL_USER }} -# CLOUDSHELL_PASSWORD: ${{ secrets.CLOUDSHELL_PASSWORD }} -# -# # necessary because if conditionals in composite actions are currently not respected -# - name: delete namespace -# if: always() -# continue-on-error: true -# run: kubectl delete ns --ignore-not-found=true --wait interop-${{ github.run_id }}-galaxy-s20 -# -# test-iphone-xr: -# runs-on: ubuntu-latest -# needs: [vars, test-galaxy-s20] -# if: "!cancelled() && contains(fromJSON(needs.vars.outputs.devices), 'iphone-xr')" -# steps: -# - uses: actions/checkout@v2 -# -# - name: install dependencies -# run: | -# pip install -r .quali/requirements.txt -# # curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip" -# # unzip awscliv2.zip -# # sudo ./aws/install -# -# - name: start reservation -# env: -# CLOUDSHELL_URL: quali-cloudshell.lab.wlan.tip.build -# CLOUDSHELL_USER: ${{ secrets.CLOUDSHELL_USER }} -# CLOUDSHELL_PASSWORD: ${{ secrets.CLOUDSHELL_PASSWORD }} -# run: | -# python .quali/start_reservation.py --global-inputs '{"Phone ID(s)":"8","AP ID(s)":"1","Optional Existing SDK Namespace":"${{ needs.vars.outputs.existing_controller }}","Include a LANForge?":"Yes","securityToken":"eyJhbGciOiJIUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICI3NzkzZGM0Ni1jZmU4LTQ4ODMtYjhiOS02ZWFlZGU2OTc2MDkifQ.eyJpYXQiOjE2MzI4Mzc2NDEsImp0aSI6IjAwZGRiYWY5LWQwYjMtNDRjNS1hYjVlLTkyNzFlNzc5ZGUzNiIsImlzcyI6Imh0dHBzOi8vYXV0aDIucGVyZmVjdG9tb2JpbGUuY29tL2F1dGgvcmVhbG1zL3RpcC1wZXJmZWN0b21vYmlsZS1jb20iLCJhdWQiOiJodHRwczovL2F1dGgyLnBlcmZlY3RvbW9iaWxlLmNvbS9hdXRoL3JlYWxtcy90aXAtcGVyZmVjdG9tb2JpbGUtY29tIiwic3ViIjoiODNkNjUxMWQtNTBmZS00ZWM5LThkNzAtYTA0ZjBkNTdiZDUyIiwidHlwIjoiT2ZmbGluZSIsImF6cCI6Im9mZmxpbmUtdG9rZW4tZ2VuZXJhdG9yIiwibm9uY2UiOiI2ZjE1YzYxNy01YTU5LTQyOWEtODc2Yi1jOTQxMTQ1ZDFkZTIiLCJzZXNzaW9uX3N0YXRlIjoiYmRjZTFmYTMtMjlkYi00MmFmLWI5YWMtYjZjZmJkMDEyOTFhIiwic2NvcGUiOiJvcGVuaWQgcHJvZmlsZSBvZmZsaW5lX2FjY2VzcyBlbWFpbCJ9.5R85_1R38ZFXv_wIjjCIsj8NJm1p66dCsLJI5DBEmks"}' --reservation-duration 480 "InterOp Lab - Specific Selection" -# -# - name: set reservation outputs -# if: always() -# id: reservation -# run: | -# echo ::set-output name=identifier::"$(cat ./reservation_id.txt)" -# echo ::set-output name=namespace::"$(cat ./reservation_id.txt | cut -d "-" -f 1)" -# -# -# - name: get EKS access credentials -# run: aws eks update-kubeconfig --name ${{ env.AWS_EKS_NAME }} -# -# - name: install kubectl -# run: | -# curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl" -# sudo install -o root -g root -m 0755 kubectl /usr/local/bin/kubectl -# -# - name: prepare configuration -# env: -# CLOUDSHELL_URL: quali-cloudshell.lab.wlan.tip.build -# CLOUDSHELL_USER: ${{ secrets.CLOUDSHELL_USER }} -# CLOUDSHELL_PASSWORD: ${{ secrets.CLOUDSHELL_PASSWORD }} -# run: | -# cat << EOF > lab_info.json -# ${{ secrets.LAB_CONFIGURATION_JSON }} -# EOF -# -# DYN_CONFIG="$(python .quali/get_configuration.py --json ${{ steps.reservation.outputs.identifier }})" -# -# jq ".CONFIGURATION.interop=$DYN_CONFIG" lab_info.json > lab_info.json.tmp && mv lab_info.json.tmp lab_info.json -# -# -# if [ ${{ needs.vars.outputs.existing_controller }} != '' ] -# then -# jq '.CONFIGURATION.interop.controller.url="https://sec-${{ needs.vars.outputs.existing_controller }}.cicd.lab.wlan.tip.build:16001"' lab_info.json > lab_info.json.tmp && mv lab_info.json.tmp lab_info.json -# fi -# -# - name: run tests -# uses: ./.github/actions/run-tests -# with: -# namespace: interop-${{ github.run_id }}-iphone-xr -# testbed: interop -# marker_expression: "${{ needs.vars.outputs.marker_overwrite || 'interop_uc_sanity and client_connect and ios' }}" -# configuration_file: "./lab_info.json" -# testing_docker_image: tip-tip-wlan-cloud-docker-repo.jfrog.io/cloud-sdk-nightly:${{ github.run_id }} -# additional_args: "--device='iPhone-XR' --skip-lanforge" -# allure_results_artifact_name: allure-results-iphone-xr -# -# - name: stop reservation -# if: always() -# run: python .quali/stop_reservation.py ${{ steps.reservation.outputs.identifier }} -# env: -# CLOUDSHELL_URL: quali-cloudshell.lab.wlan.tip.build -# CLOUDSHELL_USER: ${{ secrets.CLOUDSHELL_USER }} -# CLOUDSHELL_PASSWORD: ${{ secrets.CLOUDSHELL_PASSWORD } -# -# # necessary because if conditionals in composite actions are currently not respected -# - name: delete namespace -# if: always() -# continue-on-error: true -# run: kubectl delete ns --ignore-not-found=true --wait interop-${{ github.run_id }}-iphone-xr -# -# #interop-04 -# test-pixel-4: -# runs-on: ubuntu-latest -# needs: [vars, build] -# if: "!cancelled() && contains(fromJSON(needs.vars.outputs.devices), 'pixel-4')" -# steps: -# - uses: actions/checkout@v2 -# -# - name: install dependencies -# run: | -# pip install -r .quali/requirements.txt -# # curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip" -# # unzip awscliv2.zip -# # sudo ./aws/install -# -# - name: start reservation -# env: -# CLOUDSHELL_URL: quali-cloudshell.lab.wlan.tip.build -# CLOUDSHELL_USER: ${{ secrets.CLOUDSHELL_USER }} -# CLOUDSHELL_PASSWORD: ${{ secrets.CLOUDSHELL_PASSWORD }} -# run: | -# python .quali/start_reservation.py --global-inputs '{"Phone ID(s)":"4","AP ID(s)":"1","Optional Existing SDK Namespace":"${{ needs.vars.outputs.existing_controller }}","Include a LANForge?":"Yes","securityToken":"eyJhbGciOiJIUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICI3NzkzZGM0Ni1jZmU4LTQ4ODMtYjhiOS02ZWFlZGU2OTc2MDkifQ.eyJpYXQiOjE2MzI4Mzc2NDEsImp0aSI6IjAwZGRiYWY5LWQwYjMtNDRjNS1hYjVlLTkyNzFlNzc5ZGUzNiIsImlzcyI6Imh0dHBzOi8vYXV0aDIucGVyZmVjdG9tb2JpbGUuY29tL2F1dGgvcmVhbG1zL3RpcC1wZXJmZWN0b21vYmlsZS1jb20iLCJhdWQiOiJodHRwczovL2F1dGgyLnBlcmZlY3RvbW9iaWxlLmNvbS9hdXRoL3JlYWxtcy90aXAtcGVyZmVjdG9tb2JpbGUtY29tIiwic3ViIjoiODNkNjUxMWQtNTBmZS00ZWM5LThkNzAtYTA0ZjBkNTdiZDUyIiwidHlwIjoiT2ZmbGluZSIsImF6cCI6Im9mZmxpbmUtdG9rZW4tZ2VuZXJhdG9yIiwibm9uY2UiOiI2ZjE1YzYxNy01YTU5LTQyOWEtODc2Yi1jOTQxMTQ1ZDFkZTIiLCJzZXNzaW9uX3N0YXRlIjoiYmRjZTFmYTMtMjlkYi00MmFmLWI5YWMtYjZjZmJkMDEyOTFhIiwic2NvcGUiOiJvcGVuaWQgcHJvZmlsZSBvZmZsaW5lX2FjY2VzcyBlbWFpbCJ9.5R85_1R38ZFXv_wIjjCIsj8NJm1p66dCsLJI5DBEmks"}' --reservation-duration 480 "InterOp Lab - Specific Selection" -# -# - name: set reservation outputs -# if: always() -# id: reservation -# run: | -# echo ::set-output name=identifier::"$(cat ./reservation_id.txt)" -# echo ::set-output name=namespace::"$(cat ./reservation_id.txt | cut -d "-" -f 1)" -# -# - name: get EKS access credentials -# run: aws eks update-kubeconfig --name ${{ env.AWS_EKS_NAME }} -# -# - name: install kubectl -# run: | -# curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl" -# sudo install -o root -g root -m 0755 kubectl /usr/local/bin/kubectl -# -# - name: prepare configuration -# env: -# CLOUDSHELL_URL: quali-cloudshell.lab.wlan.tip.build -# CLOUDSHELL_USER: ${{ secrets.CLOUDSHELL_USER }} -# CLOUDSHELL_PASSWORD: ${{ secrets.CLOUDSHELL_PASSWORD }} -# run: | -# cat << EOF > lab_info.json -# ${{ secrets.LAB_CONFIGURATION_JSON }} -# EOF -# -# DYN_CONFIG="$(python .quali/get_configuration.py --json ${{ steps.reservation.outputs.identifier }})" -# -# jq ".CONFIGURATION.interop=$DYN_CONFIG" lab_info.json > lab_info.json.tmp && mv lab_info.json.tmp lab_info.json -# -# -# if [ ${{ needs.vars.outputs.existing_controller }} != '' ] -# then -# jq '.CONFIGURATION.interop.controller.url="https://sec-${{ needs.vars.outputs.existing_controller }}.cicd.lab.wlan.tip.build:16001"' lab_info.json > lab_info.json.tmp && mv lab_info.json.tmp lab_info.json -# fi -# -# -# - name: run tests -# uses: ./.github/actions/run-tests -# with: -# namespace: interop-${{ github.run_id }}-pixel-4 -# testbed: interop -# marker_expression: "${{ needs.vars.outputs.marker_overwrite || 'interop_uc_sanity and client_connect and android' }}" -# configuration_file: "./lab_info.json" -# testing_docker_image: tip-tip-wlan-cloud-docker-repo.jfrog.io/cloud-sdk-nightly:${{ github.run_id }} -# additional_args: "--device='Pixel 4' --skip-lanforge" -# allure_results_artifact_name: allure-results-pixel-4 -# -# - name: stop reservation -# if: always() -# run: python .quali/stop_reservation.py ${{ steps.reservation.outputs.identifier }} -# env: -# CLOUDSHELL_URL: quali-cloudshell.lab.wlan.tip.build -# CLOUDSHELL_USER: ${{ secrets.CLOUDSHELL_USER }} -# CLOUDSHELL_PASSWORD: ${{ secrets.CLOUDSHELL_PASSWORD }} -# -# # necessary because if conditionals in composite actions are currently not respected -# - name: delete namespace -# if: always() -# continue-on-error: true -# run: kubectl delete ns --ignore-not-found=true --wait interop-${{ github.run_id }}-pixel-4 -# -# test-iphone-12: -# runs-on: ubuntu-latest -# needs: [vars, test-pixel-4] -# if: "!cancelled() && contains(fromJSON(needs.vars.outputs.devices), 'iphone-12')" -# steps: -# - uses: actions/checkout@v2 -# -# - name: install dependencies -# run: | -# pip install -r .quali/requirements.txt -# # curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip" -# # unzip awscliv2.zip -# # sudo ./aws/install -# -# - name: start reservation -# env: -# CLOUDSHELL_URL: quali-cloudshell.lab.wlan.tip.build -# CLOUDSHELL_USER: ${{ secrets.CLOUDSHELL_USER }} -# CLOUDSHELL_PASSWORD: ${{ secrets.CLOUDSHELL_PASSWORD }} -# run: | -# python .quali/start_reservation.py --global-inputs '{"Phone ID(s)":"7","AP ID(s)":"1","Optional Existing SDK Namespace":"${{ needs.vars.outputs.existing_controller }}","Include a LANForge?":"Yes","securityToken":"eyJhbGciOiJIUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICI3NzkzZGM0Ni1jZmU4LTQ4ODMtYjhiOS02ZWFlZGU2OTc2MDkifQ.eyJpYXQiOjE2MzI4Mzc2NDEsImp0aSI6IjAwZGRiYWY5LWQwYjMtNDRjNS1hYjVlLTkyNzFlNzc5ZGUzNiIsImlzcyI6Imh0dHBzOi8vYXV0aDIucGVyZmVjdG9tb2JpbGUuY29tL2F1dGgvcmVhbG1zL3RpcC1wZXJmZWN0b21vYmlsZS1jb20iLCJhdWQiOiJodHRwczovL2F1dGgyLnBlcmZlY3RvbW9iaWxlLmNvbS9hdXRoL3JlYWxtcy90aXAtcGVyZmVjdG9tb2JpbGUtY29tIiwic3ViIjoiODNkNjUxMWQtNTBmZS00ZWM5LThkNzAtYTA0ZjBkNTdiZDUyIiwidHlwIjoiT2ZmbGluZSIsImF6cCI6Im9mZmxpbmUtdG9rZW4tZ2VuZXJhdG9yIiwibm9uY2UiOiI2ZjE1YzYxNy01YTU5LTQyOWEtODc2Yi1jOTQxMTQ1ZDFkZTIiLCJzZXNzaW9uX3N0YXRlIjoiYmRjZTFmYTMtMjlkYi00MmFmLWI5YWMtYjZjZmJkMDEyOTFhIiwic2NvcGUiOiJvcGVuaWQgcHJvZmlsZSBvZmZsaW5lX2FjY2VzcyBlbWFpbCJ9.5R85_1R38ZFXv_wIjjCIsj8NJm1p66dCsLJI5DBEmks"}' --reservation-duration 480 "InterOp Lab - Specific Selection" -# -# - name: set reservation outputs -# if: always() -# id: reservation -# run: | -# echo ::set-output name=identifier::"$(cat ./reservation_id.txt)" -# echo ::set-output name=namespace::"$(cat ./reservation_id.txt | cut -d "-" -f 1)" -# -# - name: get EKS access credentials -# run: aws eks update-kubeconfig --name ${{ env.AWS_EKS_NAME }} -# -# - name: install kubectl -# run: | -# curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl" -# sudo install -o root -g root -m 0755 kubectl /usr/local/bin/kubectl -# -# - name: prepare configuration -# env: -# CLOUDSHELL_URL: quali-cloudshell.lab.wlan.tip.build -# CLOUDSHELL_USER: ${{ secrets.CLOUDSHELL_USER }} -# CLOUDSHELL_PASSWORD: ${{ secrets.CLOUDSHELL_PASSWORD }} -# run: | -# cat << EOF > lab_info.json -# ${{ secrets.LAB_CONFIGURATION_JSON }} -# EOF -# -# DYN_CONFIG="$(python .quali/get_configuration.py --json ${{ steps.reservation.outputs.identifier }})" -# -# jq ".CONFIGURATION.interop=$DYN_CONFIG" lab_info.json > lab_info.json.tmp && mv lab_info.json.tmp lab_info.json -# -# -# if [ ${{ needs.vars.outputs.existing_controller }} != '' ] -# then -# jq '.CONFIGURATION.interop.controller.url="https://sec-${{ needs.vars.outputs.existing_controller }}.cicd.lab.wlan.tip.build:16001"' lab_info.json > lab_info.json.tmp && mv lab_info.json.tmp lab_info.json -# fi -# -# - name: run tests -# uses: ./.github/actions/run-tests -# with: -# namespace: interop-${{ github.run_id }}-iphone-12 -# testbed: interop -# marker_expression: "${{ needs.vars.outputs.marker_overwrite || 'interop_uc_sanity and client_connect and ios' }}" -# configuration_file: "./lab_info.json" -# testing_docker_image: tip-tip-wlan-cloud-docker-repo.jfrog.io/cloud-sdk-nightly:${{ github.run_id }} -# additional_args: "--device='iPhone-12' --skip-lanforge" -# allure_results_artifact_name: allure-results-iphone-12 -# -# - name: stop reservation -# if: always() -# run: python .quali/stop_reservation.py ${{ steps.reservation.outputs.identifier }} -# env: -# CLOUDSHELL_URL: quali-cloudshell.lab.wlan.tip.build -# CLOUDSHELL_USER: ${{ secrets.CLOUDSHELL_USER }} -# CLOUDSHELL_PASSWORD: ${{ secrets.CLOUDSHELL_PASSWORD }} -# -# # necessary because if conditionals in composite actions are currently not respected -# - name: delete namespace -# if: always() -# continue-on-error: true -# run: kubectl delete ns --ignore-not-found=true --wait interop-${{ github.run_id }}-iphone-12 -# + test-iphone-11: + runs-on: ubuntu-latest + needs: [vars, test-galaxy-s9] + if: "!cancelled() && contains(fromJSON(needs.vars.outputs.devices), 'iphone-11')" + steps: + - uses: actions/checkout@v2 + + - name: install dependencies + run: | + pip install -r .quali/requirements.txt + # curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip" + # unzip awscliv2.zip + # sudo ./aws/install + + - name: start reservation + env: + CLOUDSHELL_URL: quali-cloudshell.lab.wlan.tip.build + CLOUDSHELL_USER: ${{ secrets.CLOUDSHELL_USER }} + CLOUDSHELL_PASSWORD: ${{ secrets.CLOUDSHELL_PASSWORD }} + run: | + python .quali/start_reservation.py --global-inputs '{"Phone ID(s)":"6","AP ID(s)":"1","Optional Existing SDK Namespace":"${{ needs.vars.outputs.existing_controller }}","Include a LANForge?":"Yes","securityToken":"eyJhbGciOiJIUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICI3NzkzZGM0Ni1jZmU4LTQ4ODMtYjhiOS02ZWFlZGU2OTc2MDkifQ.eyJpYXQiOjE2MzI4Mzc2NDEsImp0aSI6IjAwZGRiYWY5LWQwYjMtNDRjNS1hYjVlLTkyNzFlNzc5ZGUzNiIsImlzcyI6Imh0dHBzOi8vYXV0aDIucGVyZmVjdG9tb2JpbGUuY29tL2F1dGgvcmVhbG1zL3RpcC1wZXJmZWN0b21vYmlsZS1jb20iLCJhdWQiOiJodHRwczovL2F1dGgyLnBlcmZlY3RvbW9iaWxlLmNvbS9hdXRoL3JlYWxtcy90aXAtcGVyZmVjdG9tb2JpbGUtY29tIiwic3ViIjoiODNkNjUxMWQtNTBmZS00ZWM5LThkNzAtYTA0ZjBkNTdiZDUyIiwidHlwIjoiT2ZmbGluZSIsImF6cCI6Im9mZmxpbmUtdG9rZW4tZ2VuZXJhdG9yIiwibm9uY2UiOiI2ZjE1YzYxNy01YTU5LTQyOWEtODc2Yi1jOTQxMTQ1ZDFkZTIiLCJzZXNzaW9uX3N0YXRlIjoiYmRjZTFmYTMtMjlkYi00MmFmLWI5YWMtYjZjZmJkMDEyOTFhIiwic2NvcGUiOiJvcGVuaWQgcHJvZmlsZSBvZmZsaW5lX2FjY2VzcyBlbWFpbCJ9.5R85_1R38ZFXv_wIjjCIsj8NJm1p66dCsLJI5DBEmks"}' "InterOp Lab - Specific Selection" + + - name: set reservation outputs + if: always() + id: reservation + run: | + echo ::set-output name=identifier::"$(cat ./reservation_id.txt)" + echo ::set-output name=namespace::"$(cat ./reservation_id.txt | cut -d "-" -f 1)" + + + - name: get EKS access credentials + run: aws eks update-kubeconfig --name ${{ env.AWS_EKS_NAME }} + + - name: install kubectl + run: | + curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl" + sudo install -o root -g root -m 0755 kubectl /usr/local/bin/kubectl + + - name: prepare configuration + env: + CLOUDSHELL_URL: quali-cloudshell.lab.wlan.tip.build + CLOUDSHELL_USER: ${{ secrets.CLOUDSHELL_USER }} + CLOUDSHELL_PASSWORD: ${{ secrets.CLOUDSHELL_PASSWORD }} + run: | + cat << EOF > lab_info.json + ${{ secrets.LAB_CONFIGURATION_JSON }} + EOF + + DYN_CONFIG="$(python .quali/get_configuration.py --json ${{ steps.reservation.outputs.identifier }})" + + jq ".CONFIGURATION.interop=$DYN_CONFIG" lab_info.json > lab_info.json.tmp && mv lab_info.json.tmp lab_info.json + + + if [ ${{ needs.vars.outputs.existing_controller }} != '' ] + then + jq '.CONFIGURATION.interop.controller.url="https://sec-${{ needs.vars.outputs.existing_controller }}.cicd.lab.wlan.tip.build:16001"' lab_info.json > lab_info.json.tmp && mv lab_info.json.tmp lab_info.json + fi + + - name: run tests + uses: ./.github/actions/run-tests + with: + namespace: interop-${{ github.run_id }}-iphone-11 + testbed: interop + marker_expression: "${{ needs.vars.outputs.marker_overwrite || 'interop_uc_sanity and client_connect and ios' }}" + configuration_file: "$./lab_info.json" + testing_docker_image: tip-tip-wlan-cloud-docker-repo.jfrog.io/cloud-sdk-nightly:${{ github.run_id }} + additional_args: "--device='iPhone-11' --skip-lanforge" + allure_results_artifact_name: allure-results-iphone-11 + + - name: stop reservation + if: always() + run: python .quali/stop_reservation.py ${{ steps.reservation.outputs.identifier }} + env: + CLOUDSHELL_URL: quali-cloudshell.lab.wlan.tip.build + CLOUDSHELL_USER: ${{ secrets.CLOUDSHELL_USER }} + CLOUDSHELL_PASSWORD: ${{ secrets.CLOUDSHELL_PASSWORD }} + + # necessary because if conditionals in composite actions are currently not respected + - name: delete namespace + if: always() + continue-on-error: true + run: kubectl delete ns --ignore-not-found=true --wait interop-${{ github.run_id }}-iphone-11 + + # interop-02 + test-galaxy-s10: + runs-on: ubuntu-latest + needs: [vars, build] + if: "!cancelled() && contains(fromJSON(needs.vars.outputs.devices), 'galaxy-s10')" + steps: + - uses: actions/checkout@v2 + + - name: install dependencies + run: | + pip install -r .quali/requirements.txt + # curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip" + # unzip awscliv2.zip + # sudo ./aws/install + + - name: start reservation + env: + CLOUDSHELL_URL: quali-cloudshell.lab.wlan.tip.build + CLOUDSHELL_USER: ${{ secrets.CLOUDSHELL_USER }} + CLOUDSHELL_PASSWORD: ${{ secrets.CLOUDSHELL_PASSWORD }} + run: | + python .quali/start_reservation.py --global-inputs '{"Phone ID(s)":"2","AP ID(s)":"1","Optional Existing SDK Namespace":"${{ needs.vars.outputs.existing_controller }}","Include a LANForge?":"Yes","securityToken":"eyJhbGciOiJIUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICI3NzkzZGM0Ni1jZmU4LTQ4ODMtYjhiOS02ZWFlZGU2OTc2MDkifQ.eyJpYXQiOjE2MzI4Mzc2NDEsImp0aSI6IjAwZGRiYWY5LWQwYjMtNDRjNS1hYjVlLTkyNzFlNzc5ZGUzNiIsImlzcyI6Imh0dHBzOi8vYXV0aDIucGVyZmVjdG9tb2JpbGUuY29tL2F1dGgvcmVhbG1zL3RpcC1wZXJmZWN0b21vYmlsZS1jb20iLCJhdWQiOiJodHRwczovL2F1dGgyLnBlcmZlY3RvbW9iaWxlLmNvbS9hdXRoL3JlYWxtcy90aXAtcGVyZmVjdG9tb2JpbGUtY29tIiwic3ViIjoiODNkNjUxMWQtNTBmZS00ZWM5LThkNzAtYTA0ZjBkNTdiZDUyIiwidHlwIjoiT2ZmbGluZSIsImF6cCI6Im9mZmxpbmUtdG9rZW4tZ2VuZXJhdG9yIiwibm9uY2UiOiI2ZjE1YzYxNy01YTU5LTQyOWEtODc2Yi1jOTQxMTQ1ZDFkZTIiLCJzZXNzaW9uX3N0YXRlIjoiYmRjZTFmYTMtMjlkYi00MmFmLWI5YWMtYjZjZmJkMDEyOTFhIiwic2NvcGUiOiJvcGVuaWQgcHJvZmlsZSBvZmZsaW5lX2FjY2VzcyBlbWFpbCJ9.5R85_1R38ZFXv_wIjjCIsj8NJm1p66dCsLJI5DBEmks"}' --reservation-duration 480 "InterOp Lab - Specific Selection" + + - name: set reservation outputs + if: always() + id: reservation + run: | + echo ::set-output name=identifier::"$(cat ./reservation_id.txt)" + echo ::set-output name=namespace::"$(cat ./reservation_id.txt | cut -d "-" -f 1)" + + + - name: get EKS access credentials + run: aws eks update-kubeconfig --name ${{ env.AWS_EKS_NAME }} + + - name: install kubectl + run: | + curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl" + sudo install -o root -g root -m 0755 kubectl /usr/local/bin/kubectl + + - name: prepare configuration + env: + CLOUDSHELL_URL: quali-cloudshell.lab.wlan.tip.build + CLOUDSHELL_USER: ${{ secrets.CLOUDSHELL_USER }} + CLOUDSHELL_PASSWORD: ${{ secrets.CLOUDSHELL_PASSWORD }} + run: | + cat << EOF > lab_info.json + ${{ secrets.LAB_CONFIGURATION_JSON }} + EOF + + DYN_CONFIG="$(python .quali/get_configuration.py --json ${{ steps.reservation.outputs.identifier }})" + + jq ".CONFIGURATION.interop=$DYN_CONFIG" lab_info.json > lab_info.json.tmp && mv lab_info.json.tmp lab_info.json + + + if [ ${{ needs.vars.outputs.existing_controller }} != '' ] + then + jq '.CONFIGURATION.interop.controller.url="https://sec-${{ needs.vars.outputs.existing_controller }}.cicd.lab.wlan.tip.build:16001"' lab_info.json > lab_info.json.tmp && mv lab_info.json.tmp lab_info.json + fi + + - name: run tests + uses: ./.github/actions/run-tests + with: + namespace: interop-${{ github.run_id }}-galaxy-s10 + testbed: interop + marker_expression: "${{ needs.vars.outputs.marker_overwrite || 'interop_uc_sanity and client_connect and android' }}" + configuration_file: "./lab_info.json" + testing_docker_image: tip-tip-wlan-cloud-docker-repo.jfrog.io/cloud-sdk-nightly:${{ github.run_id }} + additional_args: "--device='Galaxy S10.*' --skip-lanforge" + allure_results_artifact_name: allure-results-galaxy-s10 + + - name: stop reservation + if: always() + run: python .quali/stop_reservation.py ${{ steps.reservation.outputs.identifier }} + env: + CLOUDSHELL_URL: quali-cloudshell.lab.wlan.tip.build + CLOUDSHELL_USER: ${{ secrets.CLOUDSHELL_USER }} + CLOUDSHELL_PASSWORD: ${{ secrets.CLOUDSHELL_PASSWORD }} + + # necessary because if conditionals in composite actions are currently not respected + - name: delete namespace + if: always() + continue-on-error: true + run: kubectl delete ns --ignore-not-found=true --wait interop-${{ github.run_id }}-galaxy-s10 + + test-iphone-7: + runs-on: ubuntu-latest + needs: [vars, test-galaxy-s10] + if: "!cancelled() && contains(fromJSON(needs.vars.outputs.devices), 'iphone-7')" + steps: + - uses: actions/checkout@v2 + + - name: install dependencies + run: | + pip install -r .quali/requirements.txt + # curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip" + # unzip awscliv2.zip + # sudo ./aws/install + + - name: start reservation + env: + CLOUDSHELL_URL: quali-cloudshell.lab.wlan.tip.build + CLOUDSHELL_USER: ${{ secrets.CLOUDSHELL_USER }} + CLOUDSHELL_PASSWORD: ${{ secrets.CLOUDSHELL_PASSWORD }} + run: | + python .quali/start_reservation.py --global-inputs '{"Phone ID(s)":"5","AP ID(s)":"1","Optional Existing SDK Namespace":"${{ needs.vars.outputs.existing_controller }}","Include a LANForge?":"Yes","securityToken":"eyJhbGciOiJIUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICI3NzkzZGM0Ni1jZmU4LTQ4ODMtYjhiOS02ZWFlZGU2OTc2MDkifQ.eyJpYXQiOjE2MzI4Mzc2NDEsImp0aSI6IjAwZGRiYWY5LWQwYjMtNDRjNS1hYjVlLTkyNzFlNzc5ZGUzNiIsImlzcyI6Imh0dHBzOi8vYXV0aDIucGVyZmVjdG9tb2JpbGUuY29tL2F1dGgvcmVhbG1zL3RpcC1wZXJmZWN0b21vYmlsZS1jb20iLCJhdWQiOiJodHRwczovL2F1dGgyLnBlcmZlY3RvbW9iaWxlLmNvbS9hdXRoL3JlYWxtcy90aXAtcGVyZmVjdG9tb2JpbGUtY29tIiwic3ViIjoiODNkNjUxMWQtNTBmZS00ZWM5LThkNzAtYTA0ZjBkNTdiZDUyIiwidHlwIjoiT2ZmbGluZSIsImF6cCI6Im9mZmxpbmUtdG9rZW4tZ2VuZXJhdG9yIiwibm9uY2UiOiI2ZjE1YzYxNy01YTU5LTQyOWEtODc2Yi1jOTQxMTQ1ZDFkZTIiLCJzZXNzaW9uX3N0YXRlIjoiYmRjZTFmYTMtMjlkYi00MmFmLWI5YWMtYjZjZmJkMDEyOTFhIiwic2NvcGUiOiJvcGVuaWQgcHJvZmlsZSBvZmZsaW5lX2FjY2VzcyBlbWFpbCJ9.5R85_1R38ZFXv_wIjjCIsj8NJm1p66dCsLJI5DBEmks"}' --reservation-duration 480 "InterOp Lab - Specific Selection" + + - name: set reservation outputs + if: always() + id: reservation + run: | + echo ::set-output name=identifier::"$(cat ./reservation_id.txt)" + echo ::set-output name=namespace::"$(cat ./reservation_id.txt | cut -d "-" -f 1)" + + + - name: get EKS access credentials + run: aws eks update-kubeconfig --name ${{ env.AWS_EKS_NAME }} + + - name: install kubectl + run: | + curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl" + sudo install -o root -g root -m 0755 kubectl /usr/local/bin/kubectl + + - name: prepare configuration + env: + CLOUDSHELL_URL: quali-cloudshell.lab.wlan.tip.build + CLOUDSHELL_USER: ${{ secrets.CLOUDSHELL_USER }} + CLOUDSHELL_PASSWORD: ${{ secrets.CLOUDSHELL_PASSWORD }} + run: | + cat << EOF > lab_info.json + ${{ secrets.LAB_CONFIGURATION_JSON }} + EOF + + DYN_CONFIG="$(python .quali/get_configuration.py --json ${{ steps.reservation.outputs.identifier }})" + + jq ".CONFIGURATION.interop=$DYN_CONFIG" lab_info.json > lab_info.json.tmp && mv lab_info.json.tmp lab_info.json + + + if [ ${{ needs.vars.outputs.existing_controller }} != '' ] + then + jq '.CONFIGURATION.interop.controller.url="https://sec-${{ needs.vars.outputs.existing_controller }}.cicd.lab.wlan.tip.build:16001"' lab_info.json > lab_info.json.tmp && mv lab_info.json.tmp lab_info.json + fi + + - name: run tests + uses: ./.github/actions/run-tests + with: + namespace: interop-${{ github.run_id }}-iphone-7 + testbed: interop + marker_expression: "${{ needs.vars.outputs.marker_overwrite || 'interop_uc_sanity and client_connect and ios' }}" + configuration_file: "./lab_info.json" + testing_docker_image: tip-tip-wlan-cloud-docker-repo.jfrog.io/cloud-sdk-nightly:${{ github.run_id }} + additional_args: "--device='iPhone-7' --skip-lanforge" + allure_results_artifact_name: allure-results-iphone-7 + + - name: stop reservation + if: always() + run: python .quali/stop_reservation.py ${{ steps.reservation.outputs.identifier }} + env: + CLOUDSHELL_URL: quali-cloudshell.lab.wlan.tip.build + CLOUDSHELL_USER: ${{ secrets.CLOUDSHELL_USER }} + CLOUDSHELL_PASSWORD: ${{ secrets.CLOUDSHELL_PASSWORD }} + + # necessary because if conditionals in composite actions are currently not respected + - name: delete namespace + if: always() + continue-on-error: true + run: kubectl delete ns --ignore-not-found=true --wait interop-${{ github.run_id }}-iphone-7 + + # interop-03 + test-galaxy-s20: + runs-on: ubuntu-latest + needs: [vars, build] + if: "!cancelled() && contains(fromJSON(needs.vars.outputs.devices), 'galaxy-s20')" + steps: + - uses: actions/checkout@v2 + + - name: install dependencies + run: | + pip install -r .quali/requirements.txt + # curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip" + # unzip awscliv2.zip + # sudo ./aws/install + + - name: start reservation + env: + CLOUDSHELL_URL: quali-cloudshell.lab.wlan.tip.build + CLOUDSHELL_USER: ${{ secrets.CLOUDSHELL_USER }} + CLOUDSHELL_PASSWORD: ${{ secrets.CLOUDSHELL_PASSWORD }} + run: | + python .quali/start_reservation.py --global-inputs '{"Phone ID(s)":"3","AP ID(s)":"1","Optional Existing SDK Namespace":"${{ needs.vars.outputs.existing_controller }}","Include a LANForge?":"Yes","securityToken":"eyJhbGciOiJIUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICI3NzkzZGM0Ni1jZmU4LTQ4ODMtYjhiOS02ZWFlZGU2OTc2MDkifQ.eyJpYXQiOjE2MzI4Mzc2NDEsImp0aSI6IjAwZGRiYWY5LWQwYjMtNDRjNS1hYjVlLTkyNzFlNzc5ZGUzNiIsImlzcyI6Imh0dHBzOi8vYXV0aDIucGVyZmVjdG9tb2JpbGUuY29tL2F1dGgvcmVhbG1zL3RpcC1wZXJmZWN0b21vYmlsZS1jb20iLCJhdWQiOiJodHRwczovL2F1dGgyLnBlcmZlY3RvbW9iaWxlLmNvbS9hdXRoL3JlYWxtcy90aXAtcGVyZmVjdG9tb2JpbGUtY29tIiwic3ViIjoiODNkNjUxMWQtNTBmZS00ZWM5LThkNzAtYTA0ZjBkNTdiZDUyIiwidHlwIjoiT2ZmbGluZSIsImF6cCI6Im9mZmxpbmUtdG9rZW4tZ2VuZXJhdG9yIiwibm9uY2UiOiI2ZjE1YzYxNy01YTU5LTQyOWEtODc2Yi1jOTQxMTQ1ZDFkZTIiLCJzZXNzaW9uX3N0YXRlIjoiYmRjZTFmYTMtMjlkYi00MmFmLWI5YWMtYjZjZmJkMDEyOTFhIiwic2NvcGUiOiJvcGVuaWQgcHJvZmlsZSBvZmZsaW5lX2FjY2VzcyBlbWFpbCJ9.5R85_1R38ZFXv_wIjjCIsj8NJm1p66dCsLJI5DBEmks"}' --reservation-duration 480 "InterOp Lab - Specific Selection" + + - name: set reservation outputs + if: always() + id: reservation + run: | + echo ::set-output name=identifier::"$(cat ./reservation_id.txt)" + echo ::set-output name=namespace::"$(cat ./reservation_id.txt | cut -d "-" -f 1)" + + + - name: get EKS access credentials + run: aws eks update-kubeconfig --name ${{ env.AWS_EKS_NAME }} + + - name: install kubectl + run: | + curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl" + sudo install -o root -g root -m 0755 kubectl /usr/local/bin/kubectl + + - name: prepare configuration + env: + CLOUDSHELL_URL: quali-cloudshell.lab.wlan.tip.build + CLOUDSHELL_USER: ${{ secrets.CLOUDSHELL_USER }} + CLOUDSHELL_PASSWORD: ${{ secrets.CLOUDSHELL_PASSWORD }} + run: | + cat << EOF > lab_info.json + ${{ secrets.LAB_CONFIGURATION_JSON }} + EOF + + DYN_CONFIG="$(python .quali/get_configuration.py --json ${{ steps.reservation.outputs.identifier }})" + + jq ".CONFIGURATION.interop=$DYN_CONFIG" lab_info.json > lab_info.json.tmp && mv lab_info.json.tmp lab_info.json + + + if [ ${{ needs.vars.outputs.existing_controller }} != '' ] + then + jq '.CONFIGURATION.interop.controller.url="https://sec-${{ needs.vars.outputs.existing_controller }}.cicd.lab.wlan.tip.build:16001"' lab_info.json > lab_info.json.tmp && mv lab_info.json.tmp lab_info.json + fi + + - name: run tests + uses: ./.github/actions/run-tests + with: + namespace: interop-${{ github.run_id }}-galaxy-s20 + testbed: interop + marker_expression: "${{ needs.vars.outputs.marker_overwrite || 'interop_uc_sanity and client_connect and android' }}" + configuration_file: "./lab_info.json" + testing_docker_image: tip-tip-wlan-cloud-docker-repo.jfrog.io/cloud-sdk-nightly:${{ github.run_id }} + additional_args: "--device='Galaxy S20' --skip-lanforge" + allure_results_artifact_name: allure-results-galaxy-s20 + + - name: stop reservation + if: always() + run: python .quali/stop_reservation.py ${{ steps.reservation.outputs.identifier }} + env: + CLOUDSHELL_URL: quali-cloudshell.lab.wlan.tip.build + CLOUDSHELL_USER: ${{ secrets.CLOUDSHELL_USER }} + CLOUDSHELL_PASSWORD: ${{ secrets.CLOUDSHELL_PASSWORD }} + + # necessary because if conditionals in composite actions are currently not respected + - name: delete namespace + if: always() + continue-on-error: true + run: kubectl delete ns --ignore-not-found=true --wait interop-${{ github.run_id }}-galaxy-s20 + + test-iphone-xr: + runs-on: ubuntu-latest + needs: [vars, test-galaxy-s20] + if: "!cancelled() && contains(fromJSON(needs.vars.outputs.devices), 'iphone-xr')" + steps: + - uses: actions/checkout@v2 + + - name: install dependencies + run: | + pip install -r .quali/requirements.txt + # curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip" + # unzip awscliv2.zip + # sudo ./aws/install + + - name: start reservation + env: + CLOUDSHELL_URL: quali-cloudshell.lab.wlan.tip.build + CLOUDSHELL_USER: ${{ secrets.CLOUDSHELL_USER }} + CLOUDSHELL_PASSWORD: ${{ secrets.CLOUDSHELL_PASSWORD }} + run: | + python .quali/start_reservation.py --global-inputs '{"Phone ID(s)":"8","AP ID(s)":"1","Optional Existing SDK Namespace":"${{ needs.vars.outputs.existing_controller }}","Include a LANForge?":"Yes","securityToken":"eyJhbGciOiJIUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICI3NzkzZGM0Ni1jZmU4LTQ4ODMtYjhiOS02ZWFlZGU2OTc2MDkifQ.eyJpYXQiOjE2MzI4Mzc2NDEsImp0aSI6IjAwZGRiYWY5LWQwYjMtNDRjNS1hYjVlLTkyNzFlNzc5ZGUzNiIsImlzcyI6Imh0dHBzOi8vYXV0aDIucGVyZmVjdG9tb2JpbGUuY29tL2F1dGgvcmVhbG1zL3RpcC1wZXJmZWN0b21vYmlsZS1jb20iLCJhdWQiOiJodHRwczovL2F1dGgyLnBlcmZlY3RvbW9iaWxlLmNvbS9hdXRoL3JlYWxtcy90aXAtcGVyZmVjdG9tb2JpbGUtY29tIiwic3ViIjoiODNkNjUxMWQtNTBmZS00ZWM5LThkNzAtYTA0ZjBkNTdiZDUyIiwidHlwIjoiT2ZmbGluZSIsImF6cCI6Im9mZmxpbmUtdG9rZW4tZ2VuZXJhdG9yIiwibm9uY2UiOiI2ZjE1YzYxNy01YTU5LTQyOWEtODc2Yi1jOTQxMTQ1ZDFkZTIiLCJzZXNzaW9uX3N0YXRlIjoiYmRjZTFmYTMtMjlkYi00MmFmLWI5YWMtYjZjZmJkMDEyOTFhIiwic2NvcGUiOiJvcGVuaWQgcHJvZmlsZSBvZmZsaW5lX2FjY2VzcyBlbWFpbCJ9.5R85_1R38ZFXv_wIjjCIsj8NJm1p66dCsLJI5DBEmks"}' --reservation-duration 480 "InterOp Lab - Specific Selection" + + - name: set reservation outputs + if: always() + id: reservation + run: | + echo ::set-output name=identifier::"$(cat ./reservation_id.txt)" + echo ::set-output name=namespace::"$(cat ./reservation_id.txt | cut -d "-" -f 1)" + + + - name: get EKS access credentials + run: aws eks update-kubeconfig --name ${{ env.AWS_EKS_NAME }} + + - name: install kubectl + run: | + curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl" + sudo install -o root -g root -m 0755 kubectl /usr/local/bin/kubectl + + - name: prepare configuration + env: + CLOUDSHELL_URL: quali-cloudshell.lab.wlan.tip.build + CLOUDSHELL_USER: ${{ secrets.CLOUDSHELL_USER }} + CLOUDSHELL_PASSWORD: ${{ secrets.CLOUDSHELL_PASSWORD }} + run: | + cat << EOF > lab_info.json + ${{ secrets.LAB_CONFIGURATION_JSON }} + EOF + + DYN_CONFIG="$(python .quali/get_configuration.py --json ${{ steps.reservation.outputs.identifier }})" + + jq ".CONFIGURATION.interop=$DYN_CONFIG" lab_info.json > lab_info.json.tmp && mv lab_info.json.tmp lab_info.json + + + if [ ${{ needs.vars.outputs.existing_controller }} != '' ] + then + jq '.CONFIGURATION.interop.controller.url="https://sec-${{ needs.vars.outputs.existing_controller }}.cicd.lab.wlan.tip.build:16001"' lab_info.json > lab_info.json.tmp && mv lab_info.json.tmp lab_info.json + fi + + - name: run tests + uses: ./.github/actions/run-tests + with: + namespace: interop-${{ github.run_id }}-iphone-xr + testbed: interop + marker_expression: "${{ needs.vars.outputs.marker_overwrite || 'interop_uc_sanity and client_connect and ios' }}" + configuration_file: "./lab_info.json" + testing_docker_image: tip-tip-wlan-cloud-docker-repo.jfrog.io/cloud-sdk-nightly:${{ github.run_id }} + additional_args: "--device='iPhone-XR' --skip-lanforge" + allure_results_artifact_name: allure-results-iphone-xr + + - name: stop reservation + if: always() + run: python .quali/stop_reservation.py ${{ steps.reservation.outputs.identifier }} + env: + CLOUDSHELL_URL: quali-cloudshell.lab.wlan.tip.build + CLOUDSHELL_USER: ${{ secrets.CLOUDSHELL_USER }} + CLOUDSHELL_PASSWORD: ${{ secrets.CLOUDSHELL_PASSWORD }} + + # necessary because if conditionals in composite actions are currently not respected + - name: delete namespace + if: always() + continue-on-error: true + run: kubectl delete ns --ignore-not-found=true --wait interop-${{ github.run_id }}-iphone-xr + + #interop-04 + test-pixel-4: + runs-on: ubuntu-latest + needs: [vars, build] + if: "!cancelled() && contains(fromJSON(needs.vars.outputs.devices), 'pixel-4')" + steps: + - uses: actions/checkout@v2 + + - name: install dependencies + run: | + pip install -r .quali/requirements.txt + # curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip" + # unzip awscliv2.zip + # sudo ./aws/install + + - name: start reservation + env: + CLOUDSHELL_URL: quali-cloudshell.lab.wlan.tip.build + CLOUDSHELL_USER: ${{ secrets.CLOUDSHELL_USER }} + CLOUDSHELL_PASSWORD: ${{ secrets.CLOUDSHELL_PASSWORD }} + run: | + python .quali/start_reservation.py --global-inputs '{"Phone ID(s)":"4","AP ID(s)":"1","Optional Existing SDK Namespace":"${{ needs.vars.outputs.existing_controller }}","Include a LANForge?":"Yes","securityToken":"eyJhbGciOiJIUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICI3NzkzZGM0Ni1jZmU4LTQ4ODMtYjhiOS02ZWFlZGU2OTc2MDkifQ.eyJpYXQiOjE2MzI4Mzc2NDEsImp0aSI6IjAwZGRiYWY5LWQwYjMtNDRjNS1hYjVlLTkyNzFlNzc5ZGUzNiIsImlzcyI6Imh0dHBzOi8vYXV0aDIucGVyZmVjdG9tb2JpbGUuY29tL2F1dGgvcmVhbG1zL3RpcC1wZXJmZWN0b21vYmlsZS1jb20iLCJhdWQiOiJodHRwczovL2F1dGgyLnBlcmZlY3RvbW9iaWxlLmNvbS9hdXRoL3JlYWxtcy90aXAtcGVyZmVjdG9tb2JpbGUtY29tIiwic3ViIjoiODNkNjUxMWQtNTBmZS00ZWM5LThkNzAtYTA0ZjBkNTdiZDUyIiwidHlwIjoiT2ZmbGluZSIsImF6cCI6Im9mZmxpbmUtdG9rZW4tZ2VuZXJhdG9yIiwibm9uY2UiOiI2ZjE1YzYxNy01YTU5LTQyOWEtODc2Yi1jOTQxMTQ1ZDFkZTIiLCJzZXNzaW9uX3N0YXRlIjoiYmRjZTFmYTMtMjlkYi00MmFmLWI5YWMtYjZjZmJkMDEyOTFhIiwic2NvcGUiOiJvcGVuaWQgcHJvZmlsZSBvZmZsaW5lX2FjY2VzcyBlbWFpbCJ9.5R85_1R38ZFXv_wIjjCIsj8NJm1p66dCsLJI5DBEmks"}' --reservation-duration 480 "InterOp Lab - Specific Selection" + + - name: set reservation outputs + if: always() + id: reservation + run: | + echo ::set-output name=identifier::"$(cat ./reservation_id.txt)" + echo ::set-output name=namespace::"$(cat ./reservation_id.txt | cut -d "-" -f 1)" + + - name: get EKS access credentials + run: aws eks update-kubeconfig --name ${{ env.AWS_EKS_NAME }} + + - name: install kubectl + run: | + curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl" + sudo install -o root -g root -m 0755 kubectl /usr/local/bin/kubectl + + - name: prepare configuration + env: + CLOUDSHELL_URL: quali-cloudshell.lab.wlan.tip.build + CLOUDSHELL_USER: ${{ secrets.CLOUDSHELL_USER }} + CLOUDSHELL_PASSWORD: ${{ secrets.CLOUDSHELL_PASSWORD }} + run: | + cat << EOF > lab_info.json + ${{ secrets.LAB_CONFIGURATION_JSON }} + EOF + + DYN_CONFIG="$(python .quali/get_configuration.py --json ${{ steps.reservation.outputs.identifier }})" + + jq ".CONFIGURATION.interop=$DYN_CONFIG" lab_info.json > lab_info.json.tmp && mv lab_info.json.tmp lab_info.json + + + if [ ${{ needs.vars.outputs.existing_controller }} != '' ] + then + jq '.CONFIGURATION.interop.controller.url="https://sec-${{ needs.vars.outputs.existing_controller }}.cicd.lab.wlan.tip.build:16001"' lab_info.json > lab_info.json.tmp && mv lab_info.json.tmp lab_info.json + fi + + + - name: run tests + uses: ./.github/actions/run-tests + with: + namespace: interop-${{ github.run_id }}-pixel-4 + testbed: interop + marker_expression: "${{ needs.vars.outputs.marker_overwrite || 'interop_uc_sanity and client_connect and android' }}" + configuration_file: "./lab_info.json" + testing_docker_image: tip-tip-wlan-cloud-docker-repo.jfrog.io/cloud-sdk-nightly:${{ github.run_id }} + additional_args: "--device='Pixel 4' --skip-lanforge" + allure_results_artifact_name: allure-results-pixel-4 + + - name: stop reservation + if: always() + run: python .quali/stop_reservation.py ${{ steps.reservation.outputs.identifier }} + env: + CLOUDSHELL_URL: quali-cloudshell.lab.wlan.tip.build + CLOUDSHELL_USER: ${{ secrets.CLOUDSHELL_USER }} + CLOUDSHELL_PASSWORD: ${{ secrets.CLOUDSHELL_PASSWORD }} + + # necessary because if conditionals in composite actions are currently not respected + - name: delete namespace + if: always() + continue-on-error: true + run: kubectl delete ns --ignore-not-found=true --wait interop-${{ github.run_id }}-pixel-4 + + test-iphone-12: + runs-on: ubuntu-latest + needs: [vars, test-pixel-4] + if: "!cancelled() && contains(fromJSON(needs.vars.outputs.devices), 'iphone-12')" + steps: + - uses: actions/checkout@v2 + + - name: install dependencies + run: | + pip install -r .quali/requirements.txt + # curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip" + # unzip awscliv2.zip + # sudo ./aws/install + + - name: start reservation + env: + CLOUDSHELL_URL: quali-cloudshell.lab.wlan.tip.build + CLOUDSHELL_USER: ${{ secrets.CLOUDSHELL_USER }} + CLOUDSHELL_PASSWORD: ${{ secrets.CLOUDSHELL_PASSWORD }} + run: | + python .quali/start_reservation.py --global-inputs '{"Phone ID(s)":"7","AP ID(s)":"1","Optional Existing SDK Namespace":"${{ needs.vars.outputs.existing_controller }}","Include a LANForge?":"Yes","securityToken":"eyJhbGciOiJIUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICI3NzkzZGM0Ni1jZmU4LTQ4ODMtYjhiOS02ZWFlZGU2OTc2MDkifQ.eyJpYXQiOjE2MzI4Mzc2NDEsImp0aSI6IjAwZGRiYWY5LWQwYjMtNDRjNS1hYjVlLTkyNzFlNzc5ZGUzNiIsImlzcyI6Imh0dHBzOi8vYXV0aDIucGVyZmVjdG9tb2JpbGUuY29tL2F1dGgvcmVhbG1zL3RpcC1wZXJmZWN0b21vYmlsZS1jb20iLCJhdWQiOiJodHRwczovL2F1dGgyLnBlcmZlY3RvbW9iaWxlLmNvbS9hdXRoL3JlYWxtcy90aXAtcGVyZmVjdG9tb2JpbGUtY29tIiwic3ViIjoiODNkNjUxMWQtNTBmZS00ZWM5LThkNzAtYTA0ZjBkNTdiZDUyIiwidHlwIjoiT2ZmbGluZSIsImF6cCI6Im9mZmxpbmUtdG9rZW4tZ2VuZXJhdG9yIiwibm9uY2UiOiI2ZjE1YzYxNy01YTU5LTQyOWEtODc2Yi1jOTQxMTQ1ZDFkZTIiLCJzZXNzaW9uX3N0YXRlIjoiYmRjZTFmYTMtMjlkYi00MmFmLWI5YWMtYjZjZmJkMDEyOTFhIiwic2NvcGUiOiJvcGVuaWQgcHJvZmlsZSBvZmZsaW5lX2FjY2VzcyBlbWFpbCJ9.5R85_1R38ZFXv_wIjjCIsj8NJm1p66dCsLJI5DBEmks"}' --reservation-duration 480 "InterOp Lab - Specific Selection" + + - name: set reservation outputs + if: always() + id: reservation + run: | + echo ::set-output name=identifier::"$(cat ./reservation_id.txt)" + echo ::set-output name=namespace::"$(cat ./reservation_id.txt | cut -d "-" -f 1)" + + - name: get EKS access credentials + run: aws eks update-kubeconfig --name ${{ env.AWS_EKS_NAME }} + + - name: install kubectl + run: | + curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl" + sudo install -o root -g root -m 0755 kubectl /usr/local/bin/kubectl + + - name: prepare configuration + env: + CLOUDSHELL_URL: quali-cloudshell.lab.wlan.tip.build + CLOUDSHELL_USER: ${{ secrets.CLOUDSHELL_USER }} + CLOUDSHELL_PASSWORD: ${{ secrets.CLOUDSHELL_PASSWORD }} + run: | + cat << EOF > lab_info.json + ${{ secrets.LAB_CONFIGURATION_JSON }} + EOF + + DYN_CONFIG="$(python .quali/get_configuration.py --json ${{ steps.reservation.outputs.identifier }})" + + jq ".CONFIGURATION.interop=$DYN_CONFIG" lab_info.json > lab_info.json.tmp && mv lab_info.json.tmp lab_info.json + + + if [ ${{ needs.vars.outputs.existing_controller }} != '' ] + then + jq '.CONFIGURATION.interop.controller.url="https://sec-${{ needs.vars.outputs.existing_controller }}.cicd.lab.wlan.tip.build:16001"' lab_info.json > lab_info.json.tmp && mv lab_info.json.tmp lab_info.json + fi + + - name: run tests + uses: ./.github/actions/run-tests + with: + namespace: interop-${{ github.run_id }}-iphone-12 + testbed: interop + marker_expression: "${{ needs.vars.outputs.marker_overwrite || 'interop_uc_sanity and client_connect and ios' }}" + configuration_file: "./lab_info.json" + testing_docker_image: tip-tip-wlan-cloud-docker-repo.jfrog.io/cloud-sdk-nightly:${{ github.run_id }} + additional_args: "--device='iPhone-12' --skip-lanforge" + allure_results_artifact_name: allure-results-iphone-12 + + - name: stop reservation + if: always() + run: python .quali/stop_reservation.py ${{ steps.reservation.outputs.identifier }} + env: + CLOUDSHELL_URL: quali-cloudshell.lab.wlan.tip.build + CLOUDSHELL_USER: ${{ secrets.CLOUDSHELL_USER }} + CLOUDSHELL_PASSWORD: ${{ secrets.CLOUDSHELL_PASSWORD }} + + # necessary because if conditionals in composite actions are currently not respected + - name: delete namespace + if: always() + continue-on-error: true + run: kubectl delete ns --ignore-not-found=true --wait interop-${{ github.run_id }}-iphone-12 + report: needs: [vars, test-iphone-11, test-iphone-xr, test-iphone-12, test-iphone-7] if: "!cancelled()" From f63180f3af60fe21c9a25674cbbefa50ce10f88b Mon Sep 17 00:00:00 2001 From: dutta-rohan <94938704+dutta-rohan@users.noreply.github.com> Date: Sat, 23 Apr 2022 15:16:58 -0700 Subject: [PATCH 093/100] Modified .quali/get_config Signed-off-by: dutta-rohan <94938704+dutta-rohan@users.noreply.github.com> --- .github/workflows/interop.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/interop.yml b/.github/workflows/interop.yml index cc6738a5b..198e80bc2 100644 --- a/.github/workflows/interop.yml +++ b/.github/workflows/interop.yml @@ -251,7 +251,7 @@ jobs: CLOUDSHELL_USER: ${{ secrets.CLOUDSHELL_USER }} CLOUDSHELL_PASSWORD: ${{ secrets.CLOUDSHELL_PASSWORD }} run: | - python .quali/start_reservation.py --global-inputs '{"Phone ID(s)":"2","AP ID(s)":"1","Optional Existing SDK Namespace":"${{ needs.vars.outputs.existing_controller }}","Include a LANForge?":"Yes","securityToken":"eyJhbGciOiJIUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICI3NzkzZGM0Ni1jZmU4LTQ4ODMtYjhiOS02ZWFlZGU2OTc2MDkifQ.eyJpYXQiOjE2MzI4Mzc2NDEsImp0aSI6IjAwZGRiYWY5LWQwYjMtNDRjNS1hYjVlLTkyNzFlNzc5ZGUzNiIsImlzcyI6Imh0dHBzOi8vYXV0aDIucGVyZmVjdG9tb2JpbGUuY29tL2F1dGgvcmVhbG1zL3RpcC1wZXJmZWN0b21vYmlsZS1jb20iLCJhdWQiOiJodHRwczovL2F1dGgyLnBlcmZlY3RvbW9iaWxlLmNvbS9hdXRoL3JlYWxtcy90aXAtcGVyZmVjdG9tb2JpbGUtY29tIiwic3ViIjoiODNkNjUxMWQtNTBmZS00ZWM5LThkNzAtYTA0ZjBkNTdiZDUyIiwidHlwIjoiT2ZmbGluZSIsImF6cCI6Im9mZmxpbmUtdG9rZW4tZ2VuZXJhdG9yIiwibm9uY2UiOiI2ZjE1YzYxNy01YTU5LTQyOWEtODc2Yi1jOTQxMTQ1ZDFkZTIiLCJzZXNzaW9uX3N0YXRlIjoiYmRjZTFmYTMtMjlkYi00MmFmLWI5YWMtYjZjZmJkMDEyOTFhIiwic2NvcGUiOiJvcGVuaWQgcHJvZmlsZSBvZmZsaW5lX2FjY2VzcyBlbWFpbCJ9.5R85_1R38ZFXv_wIjjCIsj8NJm1p66dCsLJI5DBEmks"}' --reservation-duration 480 "InterOp Lab - Specific Selection" + python .quali/start_reservation.py --global-inputs '{"Phone ID(s)":"2","AP ID(s)":"2","Optional Existing SDK Namespace":"${{ needs.vars.outputs.existing_controller }}","Include a LANForge?":"Yes","securityToken":"eyJhbGciOiJIUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICI3NzkzZGM0Ni1jZmU4LTQ4ODMtYjhiOS02ZWFlZGU2OTc2MDkifQ.eyJpYXQiOjE2MzI4Mzc2NDEsImp0aSI6IjAwZGRiYWY5LWQwYjMtNDRjNS1hYjVlLTkyNzFlNzc5ZGUzNiIsImlzcyI6Imh0dHBzOi8vYXV0aDIucGVyZmVjdG9tb2JpbGUuY29tL2F1dGgvcmVhbG1zL3RpcC1wZXJmZWN0b21vYmlsZS1jb20iLCJhdWQiOiJodHRwczovL2F1dGgyLnBlcmZlY3RvbW9iaWxlLmNvbS9hdXRoL3JlYWxtcy90aXAtcGVyZmVjdG9tb2JpbGUtY29tIiwic3ViIjoiODNkNjUxMWQtNTBmZS00ZWM5LThkNzAtYTA0ZjBkNTdiZDUyIiwidHlwIjoiT2ZmbGluZSIsImF6cCI6Im9mZmxpbmUtdG9rZW4tZ2VuZXJhdG9yIiwibm9uY2UiOiI2ZjE1YzYxNy01YTU5LTQyOWEtODc2Yi1jOTQxMTQ1ZDFkZTIiLCJzZXNzaW9uX3N0YXRlIjoiYmRjZTFmYTMtMjlkYi00MmFmLWI5YWMtYjZjZmJkMDEyOTFhIiwic2NvcGUiOiJvcGVuaWQgcHJvZmlsZSBvZmZsaW5lX2FjY2VzcyBlbWFpbCJ9.5R85_1R38ZFXv_wIjjCIsj8NJm1p66dCsLJI5DBEmks"}' --reservation-duration 480 "InterOp Lab - Specific Selection" - name: set reservation outputs if: always() @@ -334,7 +334,7 @@ jobs: CLOUDSHELL_USER: ${{ secrets.CLOUDSHELL_USER }} CLOUDSHELL_PASSWORD: ${{ secrets.CLOUDSHELL_PASSWORD }} run: | - python .quali/start_reservation.py --global-inputs '{"Phone ID(s)":"5","AP ID(s)":"1","Optional Existing SDK Namespace":"${{ needs.vars.outputs.existing_controller }}","Include a LANForge?":"Yes","securityToken":"eyJhbGciOiJIUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICI3NzkzZGM0Ni1jZmU4LTQ4ODMtYjhiOS02ZWFlZGU2OTc2MDkifQ.eyJpYXQiOjE2MzI4Mzc2NDEsImp0aSI6IjAwZGRiYWY5LWQwYjMtNDRjNS1hYjVlLTkyNzFlNzc5ZGUzNiIsImlzcyI6Imh0dHBzOi8vYXV0aDIucGVyZmVjdG9tb2JpbGUuY29tL2F1dGgvcmVhbG1zL3RpcC1wZXJmZWN0b21vYmlsZS1jb20iLCJhdWQiOiJodHRwczovL2F1dGgyLnBlcmZlY3RvbW9iaWxlLmNvbS9hdXRoL3JlYWxtcy90aXAtcGVyZmVjdG9tb2JpbGUtY29tIiwic3ViIjoiODNkNjUxMWQtNTBmZS00ZWM5LThkNzAtYTA0ZjBkNTdiZDUyIiwidHlwIjoiT2ZmbGluZSIsImF6cCI6Im9mZmxpbmUtdG9rZW4tZ2VuZXJhdG9yIiwibm9uY2UiOiI2ZjE1YzYxNy01YTU5LTQyOWEtODc2Yi1jOTQxMTQ1ZDFkZTIiLCJzZXNzaW9uX3N0YXRlIjoiYmRjZTFmYTMtMjlkYi00MmFmLWI5YWMtYjZjZmJkMDEyOTFhIiwic2NvcGUiOiJvcGVuaWQgcHJvZmlsZSBvZmZsaW5lX2FjY2VzcyBlbWFpbCJ9.5R85_1R38ZFXv_wIjjCIsj8NJm1p66dCsLJI5DBEmks"}' --reservation-duration 480 "InterOp Lab - Specific Selection" + python .quali/start_reservation.py --global-inputs '{"Phone ID(s)":"5","AP ID(s)":"2","Optional Existing SDK Namespace":"${{ needs.vars.outputs.existing_controller }}","Include a LANForge?":"Yes","securityToken":"eyJhbGciOiJIUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICI3NzkzZGM0Ni1jZmU4LTQ4ODMtYjhiOS02ZWFlZGU2OTc2MDkifQ.eyJpYXQiOjE2MzI4Mzc2NDEsImp0aSI6IjAwZGRiYWY5LWQwYjMtNDRjNS1hYjVlLTkyNzFlNzc5ZGUzNiIsImlzcyI6Imh0dHBzOi8vYXV0aDIucGVyZmVjdG9tb2JpbGUuY29tL2F1dGgvcmVhbG1zL3RpcC1wZXJmZWN0b21vYmlsZS1jb20iLCJhdWQiOiJodHRwczovL2F1dGgyLnBlcmZlY3RvbW9iaWxlLmNvbS9hdXRoL3JlYWxtcy90aXAtcGVyZmVjdG9tb2JpbGUtY29tIiwic3ViIjoiODNkNjUxMWQtNTBmZS00ZWM5LThkNzAtYTA0ZjBkNTdiZDUyIiwidHlwIjoiT2ZmbGluZSIsImF6cCI6Im9mZmxpbmUtdG9rZW4tZ2VuZXJhdG9yIiwibm9uY2UiOiI2ZjE1YzYxNy01YTU5LTQyOWEtODc2Yi1jOTQxMTQ1ZDFkZTIiLCJzZXNzaW9uX3N0YXRlIjoiYmRjZTFmYTMtMjlkYi00MmFmLWI5YWMtYjZjZmJkMDEyOTFhIiwic2NvcGUiOiJvcGVuaWQgcHJvZmlsZSBvZmZsaW5lX2FjY2VzcyBlbWFpbCJ9.5R85_1R38ZFXv_wIjjCIsj8NJm1p66dCsLJI5DBEmks"}' --reservation-duration 480 "InterOp Lab - Specific Selection" - name: set reservation outputs if: always() @@ -418,7 +418,7 @@ jobs: CLOUDSHELL_USER: ${{ secrets.CLOUDSHELL_USER }} CLOUDSHELL_PASSWORD: ${{ secrets.CLOUDSHELL_PASSWORD }} run: | - python .quali/start_reservation.py --global-inputs '{"Phone ID(s)":"3","AP ID(s)":"1","Optional Existing SDK Namespace":"${{ needs.vars.outputs.existing_controller }}","Include a LANForge?":"Yes","securityToken":"eyJhbGciOiJIUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICI3NzkzZGM0Ni1jZmU4LTQ4ODMtYjhiOS02ZWFlZGU2OTc2MDkifQ.eyJpYXQiOjE2MzI4Mzc2NDEsImp0aSI6IjAwZGRiYWY5LWQwYjMtNDRjNS1hYjVlLTkyNzFlNzc5ZGUzNiIsImlzcyI6Imh0dHBzOi8vYXV0aDIucGVyZmVjdG9tb2JpbGUuY29tL2F1dGgvcmVhbG1zL3RpcC1wZXJmZWN0b21vYmlsZS1jb20iLCJhdWQiOiJodHRwczovL2F1dGgyLnBlcmZlY3RvbW9iaWxlLmNvbS9hdXRoL3JlYWxtcy90aXAtcGVyZmVjdG9tb2JpbGUtY29tIiwic3ViIjoiODNkNjUxMWQtNTBmZS00ZWM5LThkNzAtYTA0ZjBkNTdiZDUyIiwidHlwIjoiT2ZmbGluZSIsImF6cCI6Im9mZmxpbmUtdG9rZW4tZ2VuZXJhdG9yIiwibm9uY2UiOiI2ZjE1YzYxNy01YTU5LTQyOWEtODc2Yi1jOTQxMTQ1ZDFkZTIiLCJzZXNzaW9uX3N0YXRlIjoiYmRjZTFmYTMtMjlkYi00MmFmLWI5YWMtYjZjZmJkMDEyOTFhIiwic2NvcGUiOiJvcGVuaWQgcHJvZmlsZSBvZmZsaW5lX2FjY2VzcyBlbWFpbCJ9.5R85_1R38ZFXv_wIjjCIsj8NJm1p66dCsLJI5DBEmks"}' --reservation-duration 480 "InterOp Lab - Specific Selection" + python .quali/start_reservation.py --global-inputs '{"Phone ID(s)":"3","AP ID(s)":"4","Optional Existing SDK Namespace":"${{ needs.vars.outputs.existing_controller }}","Include a LANForge?":"Yes","securityToken":"eyJhbGciOiJIUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICI3NzkzZGM0Ni1jZmU4LTQ4ODMtYjhiOS02ZWFlZGU2OTc2MDkifQ.eyJpYXQiOjE2MzI4Mzc2NDEsImp0aSI6IjAwZGRiYWY5LWQwYjMtNDRjNS1hYjVlLTkyNzFlNzc5ZGUzNiIsImlzcyI6Imh0dHBzOi8vYXV0aDIucGVyZmVjdG9tb2JpbGUuY29tL2F1dGgvcmVhbG1zL3RpcC1wZXJmZWN0b21vYmlsZS1jb20iLCJhdWQiOiJodHRwczovL2F1dGgyLnBlcmZlY3RvbW9iaWxlLmNvbS9hdXRoL3JlYWxtcy90aXAtcGVyZmVjdG9tb2JpbGUtY29tIiwic3ViIjoiODNkNjUxMWQtNTBmZS00ZWM5LThkNzAtYTA0ZjBkNTdiZDUyIiwidHlwIjoiT2ZmbGluZSIsImF6cCI6Im9mZmxpbmUtdG9rZW4tZ2VuZXJhdG9yIiwibm9uY2UiOiI2ZjE1YzYxNy01YTU5LTQyOWEtODc2Yi1jOTQxMTQ1ZDFkZTIiLCJzZXNzaW9uX3N0YXRlIjoiYmRjZTFmYTMtMjlkYi00MmFmLWI5YWMtYjZjZmJkMDEyOTFhIiwic2NvcGUiOiJvcGVuaWQgcHJvZmlsZSBvZmZsaW5lX2FjY2VzcyBlbWFpbCJ9.5R85_1R38ZFXv_wIjjCIsj8NJm1p66dCsLJI5DBEmks"}' --reservation-duration 480 "InterOp Lab - Specific Selection" - name: set reservation outputs if: always() @@ -501,7 +501,7 @@ jobs: CLOUDSHELL_USER: ${{ secrets.CLOUDSHELL_USER }} CLOUDSHELL_PASSWORD: ${{ secrets.CLOUDSHELL_PASSWORD }} run: | - python .quali/start_reservation.py --global-inputs '{"Phone ID(s)":"8","AP ID(s)":"1","Optional Existing SDK Namespace":"${{ needs.vars.outputs.existing_controller }}","Include a LANForge?":"Yes","securityToken":"eyJhbGciOiJIUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICI3NzkzZGM0Ni1jZmU4LTQ4ODMtYjhiOS02ZWFlZGU2OTc2MDkifQ.eyJpYXQiOjE2MzI4Mzc2NDEsImp0aSI6IjAwZGRiYWY5LWQwYjMtNDRjNS1hYjVlLTkyNzFlNzc5ZGUzNiIsImlzcyI6Imh0dHBzOi8vYXV0aDIucGVyZmVjdG9tb2JpbGUuY29tL2F1dGgvcmVhbG1zL3RpcC1wZXJmZWN0b21vYmlsZS1jb20iLCJhdWQiOiJodHRwczovL2F1dGgyLnBlcmZlY3RvbW9iaWxlLmNvbS9hdXRoL3JlYWxtcy90aXAtcGVyZmVjdG9tb2JpbGUtY29tIiwic3ViIjoiODNkNjUxMWQtNTBmZS00ZWM5LThkNzAtYTA0ZjBkNTdiZDUyIiwidHlwIjoiT2ZmbGluZSIsImF6cCI6Im9mZmxpbmUtdG9rZW4tZ2VuZXJhdG9yIiwibm9uY2UiOiI2ZjE1YzYxNy01YTU5LTQyOWEtODc2Yi1jOTQxMTQ1ZDFkZTIiLCJzZXNzaW9uX3N0YXRlIjoiYmRjZTFmYTMtMjlkYi00MmFmLWI5YWMtYjZjZmJkMDEyOTFhIiwic2NvcGUiOiJvcGVuaWQgcHJvZmlsZSBvZmZsaW5lX2FjY2VzcyBlbWFpbCJ9.5R85_1R38ZFXv_wIjjCIsj8NJm1p66dCsLJI5DBEmks"}' --reservation-duration 480 "InterOp Lab - Specific Selection" + python .quali/start_reservation.py --global-inputs '{"Phone ID(s)":"8","AP ID(s)":"4","Optional Existing SDK Namespace":"${{ needs.vars.outputs.existing_controller }}","Include a LANForge?":"Yes","securityToken":"eyJhbGciOiJIUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICI3NzkzZGM0Ni1jZmU4LTQ4ODMtYjhiOS02ZWFlZGU2OTc2MDkifQ.eyJpYXQiOjE2MzI4Mzc2NDEsImp0aSI6IjAwZGRiYWY5LWQwYjMtNDRjNS1hYjVlLTkyNzFlNzc5ZGUzNiIsImlzcyI6Imh0dHBzOi8vYXV0aDIucGVyZmVjdG9tb2JpbGUuY29tL2F1dGgvcmVhbG1zL3RpcC1wZXJmZWN0b21vYmlsZS1jb20iLCJhdWQiOiJodHRwczovL2F1dGgyLnBlcmZlY3RvbW9iaWxlLmNvbS9hdXRoL3JlYWxtcy90aXAtcGVyZmVjdG9tb2JpbGUtY29tIiwic3ViIjoiODNkNjUxMWQtNTBmZS00ZWM5LThkNzAtYTA0ZjBkNTdiZDUyIiwidHlwIjoiT2ZmbGluZSIsImF6cCI6Im9mZmxpbmUtdG9rZW4tZ2VuZXJhdG9yIiwibm9uY2UiOiI2ZjE1YzYxNy01YTU5LTQyOWEtODc2Yi1jOTQxMTQ1ZDFkZTIiLCJzZXNzaW9uX3N0YXRlIjoiYmRjZTFmYTMtMjlkYi00MmFmLWI5YWMtYjZjZmJkMDEyOTFhIiwic2NvcGUiOiJvcGVuaWQgcHJvZmlsZSBvZmZsaW5lX2FjY2VzcyBlbWFpbCJ9.5R85_1R38ZFXv_wIjjCIsj8NJm1p66dCsLJI5DBEmks"}' --reservation-duration 480 "InterOp Lab - Specific Selection" - name: set reservation outputs if: always() @@ -585,7 +585,7 @@ jobs: CLOUDSHELL_USER: ${{ secrets.CLOUDSHELL_USER }} CLOUDSHELL_PASSWORD: ${{ secrets.CLOUDSHELL_PASSWORD }} run: | - python .quali/start_reservation.py --global-inputs '{"Phone ID(s)":"4","AP ID(s)":"1","Optional Existing SDK Namespace":"${{ needs.vars.outputs.existing_controller }}","Include a LANForge?":"Yes","securityToken":"eyJhbGciOiJIUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICI3NzkzZGM0Ni1jZmU4LTQ4ODMtYjhiOS02ZWFlZGU2OTc2MDkifQ.eyJpYXQiOjE2MzI4Mzc2NDEsImp0aSI6IjAwZGRiYWY5LWQwYjMtNDRjNS1hYjVlLTkyNzFlNzc5ZGUzNiIsImlzcyI6Imh0dHBzOi8vYXV0aDIucGVyZmVjdG9tb2JpbGUuY29tL2F1dGgvcmVhbG1zL3RpcC1wZXJmZWN0b21vYmlsZS1jb20iLCJhdWQiOiJodHRwczovL2F1dGgyLnBlcmZlY3RvbW9iaWxlLmNvbS9hdXRoL3JlYWxtcy90aXAtcGVyZmVjdG9tb2JpbGUtY29tIiwic3ViIjoiODNkNjUxMWQtNTBmZS00ZWM5LThkNzAtYTA0ZjBkNTdiZDUyIiwidHlwIjoiT2ZmbGluZSIsImF6cCI6Im9mZmxpbmUtdG9rZW4tZ2VuZXJhdG9yIiwibm9uY2UiOiI2ZjE1YzYxNy01YTU5LTQyOWEtODc2Yi1jOTQxMTQ1ZDFkZTIiLCJzZXNzaW9uX3N0YXRlIjoiYmRjZTFmYTMtMjlkYi00MmFmLWI5YWMtYjZjZmJkMDEyOTFhIiwic2NvcGUiOiJvcGVuaWQgcHJvZmlsZSBvZmZsaW5lX2FjY2VzcyBlbWFpbCJ9.5R85_1R38ZFXv_wIjjCIsj8NJm1p66dCsLJI5DBEmks"}' --reservation-duration 480 "InterOp Lab - Specific Selection" + python .quali/start_reservation.py --global-inputs '{"Phone ID(s)":"4","AP ID(s)":"3","Optional Existing SDK Namespace":"${{ needs.vars.outputs.existing_controller }}","Include a LANForge?":"Yes","securityToken":"eyJhbGciOiJIUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICI3NzkzZGM0Ni1jZmU4LTQ4ODMtYjhiOS02ZWFlZGU2OTc2MDkifQ.eyJpYXQiOjE2MzI4Mzc2NDEsImp0aSI6IjAwZGRiYWY5LWQwYjMtNDRjNS1hYjVlLTkyNzFlNzc5ZGUzNiIsImlzcyI6Imh0dHBzOi8vYXV0aDIucGVyZmVjdG9tb2JpbGUuY29tL2F1dGgvcmVhbG1zL3RpcC1wZXJmZWN0b21vYmlsZS1jb20iLCJhdWQiOiJodHRwczovL2F1dGgyLnBlcmZlY3RvbW9iaWxlLmNvbS9hdXRoL3JlYWxtcy90aXAtcGVyZmVjdG9tb2JpbGUtY29tIiwic3ViIjoiODNkNjUxMWQtNTBmZS00ZWM5LThkNzAtYTA0ZjBkNTdiZDUyIiwidHlwIjoiT2ZmbGluZSIsImF6cCI6Im9mZmxpbmUtdG9rZW4tZ2VuZXJhdG9yIiwibm9uY2UiOiI2ZjE1YzYxNy01YTU5LTQyOWEtODc2Yi1jOTQxMTQ1ZDFkZTIiLCJzZXNzaW9uX3N0YXRlIjoiYmRjZTFmYTMtMjlkYi00MmFmLWI5YWMtYjZjZmJkMDEyOTFhIiwic2NvcGUiOiJvcGVuaWQgcHJvZmlsZSBvZmZsaW5lX2FjY2VzcyBlbWFpbCJ9.5R85_1R38ZFXv_wIjjCIsj8NJm1p66dCsLJI5DBEmks"}' --reservation-duration 480 "InterOp Lab - Specific Selection" - name: set reservation outputs if: always() @@ -668,7 +668,7 @@ jobs: CLOUDSHELL_USER: ${{ secrets.CLOUDSHELL_USER }} CLOUDSHELL_PASSWORD: ${{ secrets.CLOUDSHELL_PASSWORD }} run: | - python .quali/start_reservation.py --global-inputs '{"Phone ID(s)":"7","AP ID(s)":"1","Optional Existing SDK Namespace":"${{ needs.vars.outputs.existing_controller }}","Include a LANForge?":"Yes","securityToken":"eyJhbGciOiJIUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICI3NzkzZGM0Ni1jZmU4LTQ4ODMtYjhiOS02ZWFlZGU2OTc2MDkifQ.eyJpYXQiOjE2MzI4Mzc2NDEsImp0aSI6IjAwZGRiYWY5LWQwYjMtNDRjNS1hYjVlLTkyNzFlNzc5ZGUzNiIsImlzcyI6Imh0dHBzOi8vYXV0aDIucGVyZmVjdG9tb2JpbGUuY29tL2F1dGgvcmVhbG1zL3RpcC1wZXJmZWN0b21vYmlsZS1jb20iLCJhdWQiOiJodHRwczovL2F1dGgyLnBlcmZlY3RvbW9iaWxlLmNvbS9hdXRoL3JlYWxtcy90aXAtcGVyZmVjdG9tb2JpbGUtY29tIiwic3ViIjoiODNkNjUxMWQtNTBmZS00ZWM5LThkNzAtYTA0ZjBkNTdiZDUyIiwidHlwIjoiT2ZmbGluZSIsImF6cCI6Im9mZmxpbmUtdG9rZW4tZ2VuZXJhdG9yIiwibm9uY2UiOiI2ZjE1YzYxNy01YTU5LTQyOWEtODc2Yi1jOTQxMTQ1ZDFkZTIiLCJzZXNzaW9uX3N0YXRlIjoiYmRjZTFmYTMtMjlkYi00MmFmLWI5YWMtYjZjZmJkMDEyOTFhIiwic2NvcGUiOiJvcGVuaWQgcHJvZmlsZSBvZmZsaW5lX2FjY2VzcyBlbWFpbCJ9.5R85_1R38ZFXv_wIjjCIsj8NJm1p66dCsLJI5DBEmks"}' --reservation-duration 480 "InterOp Lab - Specific Selection" + python .quali/start_reservation.py --global-inputs '{"Phone ID(s)":"7","AP ID(s)":"3","Optional Existing SDK Namespace":"${{ needs.vars.outputs.existing_controller }}","Include a LANForge?":"Yes","securityToken":"eyJhbGciOiJIUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICI3NzkzZGM0Ni1jZmU4LTQ4ODMtYjhiOS02ZWFlZGU2OTc2MDkifQ.eyJpYXQiOjE2MzI4Mzc2NDEsImp0aSI6IjAwZGRiYWY5LWQwYjMtNDRjNS1hYjVlLTkyNzFlNzc5ZGUzNiIsImlzcyI6Imh0dHBzOi8vYXV0aDIucGVyZmVjdG9tb2JpbGUuY29tL2F1dGgvcmVhbG1zL3RpcC1wZXJmZWN0b21vYmlsZS1jb20iLCJhdWQiOiJodHRwczovL2F1dGgyLnBlcmZlY3RvbW9iaWxlLmNvbS9hdXRoL3JlYWxtcy90aXAtcGVyZmVjdG9tb2JpbGUtY29tIiwic3ViIjoiODNkNjUxMWQtNTBmZS00ZWM5LThkNzAtYTA0ZjBkNTdiZDUyIiwidHlwIjoiT2ZmbGluZSIsImF6cCI6Im9mZmxpbmUtdG9rZW4tZ2VuZXJhdG9yIiwibm9uY2UiOiI2ZjE1YzYxNy01YTU5LTQyOWEtODc2Yi1jOTQxMTQ1ZDFkZTIiLCJzZXNzaW9uX3N0YXRlIjoiYmRjZTFmYTMtMjlkYi00MmFmLWI5YWMtYjZjZmJkMDEyOTFhIiwic2NvcGUiOiJvcGVuaWQgcHJvZmlsZSBvZmZsaW5lX2FjY2VzcyBlbWFpbCJ9.5R85_1R38ZFXv_wIjjCIsj8NJm1p66dCsLJI5DBEmks"}' --reservation-duration 480 "InterOp Lab - Specific Selection" - name: set reservation outputs if: always() From 00815936ae9b9c8c9194f3569a7136e4eac2cc62 Mon Sep 17 00:00:00 2001 From: dutta-rohan <94938704+dutta-rohan@users.noreply.github.com> Date: Mon, 25 Apr 2022 12:40:56 -0700 Subject: [PATCH 094/100] Modified .quali/get_config Signed-off-by: dutta-rohan <94938704+dutta-rohan@users.noreply.github.com> --- .github/workflows/interop.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/interop.yml b/.github/workflows/interop.yml index 198e80bc2..df9d6753d 100644 --- a/.github/workflows/interop.yml +++ b/.github/workflows/interop.yml @@ -116,6 +116,8 @@ jobs: jq ".CONFIGURATION.interop=$DYN_CONFIG" lab_info.json > lab_info.json.tmp && mv lab_info.json.tmp lab_info.json + jq ".CONFIGURATION.PERFECTO_DETAILS.galaxy-s9.jobNumber=${{ github.run_id }}" lab_info.json > lab_info.json.tmp && mv lab_info.json.tmp lab_info.json + if [ ${{ needs.vars.outputs.existing_controller }} != '' ] then From 5d911150150ca8ed18610289472bba9308cb6a1d Mon Sep 17 00:00:00 2001 From: dutta-rohan <94938704+dutta-rohan@users.noreply.github.com> Date: Tue, 26 Apr 2022 08:45:09 -0700 Subject: [PATCH 095/100] Modified .quali/get_config Signed-off-by: dutta-rohan <94938704+dutta-rohan@users.noreply.github.com> --- .github/workflows/interop.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/interop.yml b/.github/workflows/interop.yml index df9d6753d..d11901771 100644 --- a/.github/workflows/interop.yml +++ b/.github/workflows/interop.yml @@ -116,7 +116,7 @@ jobs: jq ".CONFIGURATION.interop=$DYN_CONFIG" lab_info.json > lab_info.json.tmp && mv lab_info.json.tmp lab_info.json - jq ".CONFIGURATION.PERFECTO_DETAILS.galaxy-s9.jobNumber=${{ github.run_id }}" lab_info.json > lab_info.json.tmp && mv lab_info.json.tmp lab_info.json + jq ".CONFIGURATION.PERFECTO_DETAILS."Galaxy S9".jobNumber=${{ github.run_id }}" lab_info.json > lab_info.json.tmp && mv lab_info.json.tmp lab_info.json if [ ${{ needs.vars.outputs.existing_controller }} != '' ] From edb86f9aec94461dc10fa47299a48e9072b20fe9 Mon Sep 17 00:00:00 2001 From: dutta-rohan <94938704+dutta-rohan@users.noreply.github.com> Date: Tue, 26 Apr 2022 09:10:53 -0700 Subject: [PATCH 096/100] Modified .quali/get_config Signed-off-by: dutta-rohan <94938704+dutta-rohan@users.noreply.github.com> --- .github/workflows/interop.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/interop.yml b/.github/workflows/interop.yml index d11901771..c0d9bcf11 100644 --- a/.github/workflows/interop.yml +++ b/.github/workflows/interop.yml @@ -66,7 +66,7 @@ jobs: # interop-01 test-galaxy-s9: - runs-on: ubuntu-latest + runs-on: [self-hosted, small] needs: [vars, build] if: "!cancelled() && contains(fromJSON(needs.vars.outputs.devices), 'galaxy-s9')" steps: @@ -123,6 +123,8 @@ jobs: then jq '.CONFIGURATION.interop.controller.url="https://sec-${{ needs.vars.outputs.existing_controller }}.cicd.lab.wlan.tip.build:16001"' lab_info.json > lab_info.json.tmp && mv lab_info.json.tmp lab_info.json fi + + sleep 999 - name: run tests uses: ./.github/actions/run-tests From 3f0a7d97fbe3b6ec5d7ab261e5e308583f8d3f8d Mon Sep 17 00:00:00 2001 From: dutta-rohan <94938704+dutta-rohan@users.noreply.github.com> Date: Tue, 26 Apr 2022 11:03:53 -0700 Subject: [PATCH 097/100] Modified .quali/get_config Signed-off-by: dutta-rohan <94938704+dutta-rohan@users.noreply.github.com> --- .github/workflows/interop.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/interop.yml b/.github/workflows/interop.yml index c0d9bcf11..c00920aca 100644 --- a/.github/workflows/interop.yml +++ b/.github/workflows/interop.yml @@ -75,9 +75,9 @@ jobs: - name: install dependencies run: | pip install -r .quali/requirements.txt - # curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip" - # unzip awscliv2.zip - # sudo ./aws/install + curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip" + unzip awscliv2.zip + sudo ./aws/install - name: start reservation env: From 9a3e89d80a14c766d001458947e9d76aa9e4339a Mon Sep 17 00:00:00 2001 From: dutta-rohan <94938704+dutta-rohan@users.noreply.github.com> Date: Tue, 26 Apr 2022 11:40:27 -0700 Subject: [PATCH 098/100] Modified .quali/get_config Signed-off-by: dutta-rohan <94938704+dutta-rohan@users.noreply.github.com> --- .github/workflows/interop.yml | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/.github/workflows/interop.yml b/.github/workflows/interop.yml index c00920aca..c0420b0f1 100644 --- a/.github/workflows/interop.yml +++ b/.github/workflows/interop.yml @@ -66,7 +66,7 @@ jobs: # interop-01 test-galaxy-s9: - runs-on: [self-hosted, small] + runs-on: ubuntu-latest needs: [vars, build] if: "!cancelled() && contains(fromJSON(needs.vars.outputs.devices), 'galaxy-s9')" steps: @@ -75,9 +75,9 @@ jobs: - name: install dependencies run: | pip install -r .quali/requirements.txt - curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip" - unzip awscliv2.zip - sudo ./aws/install +# curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip" +# unzip awscliv2.zip +# sudo ./aws/install - name: start reservation env: @@ -116,7 +116,7 @@ jobs: jq ".CONFIGURATION.interop=$DYN_CONFIG" lab_info.json > lab_info.json.tmp && mv lab_info.json.tmp lab_info.json - jq ".CONFIGURATION.PERFECTO_DETAILS."Galaxy S9".jobNumber=${{ github.run_id }}" lab_info.json > lab_info.json.tmp && mv lab_info.json.tmp lab_info.json + jq --arg git_run "${{ github.run_id }}" '.PERFECTO_DETAILS."Galaxy S9".jobNumber=$git_run' lab_info.json > lab_info.json.tmp && mv lab_info.json.tmp lab_info.json if [ ${{ needs.vars.outputs.existing_controller }} != '' ] @@ -124,7 +124,6 @@ jobs: jq '.CONFIGURATION.interop.controller.url="https://sec-${{ needs.vars.outputs.existing_controller }}.cicd.lab.wlan.tip.build:16001"' lab_info.json > lab_info.json.tmp && mv lab_info.json.tmp lab_info.json fi - sleep 999 - name: run tests uses: ./.github/actions/run-tests From 66e641ec06250c52ed5cf7f597c15600746af434 Mon Sep 17 00:00:00 2001 From: dutta-rohan <94938704+dutta-rohan@users.noreply.github.com> Date: Tue, 26 Apr 2022 12:07:45 -0700 Subject: [PATCH 099/100] Modified .quali/get_config Signed-off-by: dutta-rohan <94938704+dutta-rohan@users.noreply.github.com> --- .github/workflows/interop.yml | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/.github/workflows/interop.yml b/.github/workflows/interop.yml index c0420b0f1..7b3a75f62 100644 --- a/.github/workflows/interop.yml +++ b/.github/workflows/interop.yml @@ -116,7 +116,7 @@ jobs: jq ".CONFIGURATION.interop=$DYN_CONFIG" lab_info.json > lab_info.json.tmp && mv lab_info.json.tmp lab_info.json - jq --arg git_run "${{ github.run_id }}" '.PERFECTO_DETAILS."Galaxy S9".jobNumber=$git_run' lab_info.json > lab_info.json.tmp && mv lab_info.json.tmp lab_info.json + jq --arg git_run "${{ github.run_number }}" '.PERFECTO_DETAILS."Galaxy S9".jobNumber=$git_run' lab_info.json > lab_info.json.tmp && mv lab_info.json.tmp lab_info.json if [ ${{ needs.vars.outputs.existing_controller }} != '' ] @@ -203,6 +203,10 @@ jobs: jq ".CONFIGURATION.interop=$DYN_CONFIG" lab_info.json > lab_info.json.tmp && mv lab_info.json.tmp lab_info.json + jq --arg git_run "${{ github.run_number }}" '.PERFECTO_DETAILS."iPhone-11".jobNumber=$git_run' lab_info.json > lab_info.json.tmp && mv lab_info.json.tmp lab_info.json + + + if [ ${{ needs.vars.outputs.existing_controller }} != '' ] then jq '.CONFIGURATION.interop.controller.url="https://sec-${{ needs.vars.outputs.existing_controller }}.cicd.lab.wlan.tip.build:16001"' lab_info.json > lab_info.json.tmp && mv lab_info.json.tmp lab_info.json @@ -285,6 +289,7 @@ jobs: DYN_CONFIG="$(python .quali/get_configuration.py --json ${{ steps.reservation.outputs.identifier }})" jq ".CONFIGURATION.interop=$DYN_CONFIG" lab_info.json > lab_info.json.tmp && mv lab_info.json.tmp lab_info.json + jq --arg git_run "${{ github.run_number }}" '.PERFECTO_DETAILS."Galaxy S10.*".jobNumber=$git_run' lab_info.json > lab_info.json.tmp && mv lab_info.json.tmp lab_info.json if [ ${{ needs.vars.outputs.existing_controller }} != '' ] @@ -369,6 +374,9 @@ jobs: jq ".CONFIGURATION.interop=$DYN_CONFIG" lab_info.json > lab_info.json.tmp && mv lab_info.json.tmp lab_info.json + jq --arg git_run "${{ github.run_number }}" '.PERFECTO_DETAILS."iPhone-7".jobNumber=$git_run' lab_info.json > lab_info.json.tmp && mv lab_info.json.tmp lab_info.json + + if [ ${{ needs.vars.outputs.existing_controller }} != '' ] then @@ -452,6 +460,7 @@ jobs: DYN_CONFIG="$(python .quali/get_configuration.py --json ${{ steps.reservation.outputs.identifier }})" jq ".CONFIGURATION.interop=$DYN_CONFIG" lab_info.json > lab_info.json.tmp && mv lab_info.json.tmp lab_info.json + jq --arg git_run "${{ github.run_number }}" '.PERFECTO_DETAILS."Galaxy S20".jobNumber=$git_run' lab_info.json > lab_info.json.tmp && mv lab_info.json.tmp lab_info.json if [ ${{ needs.vars.outputs.existing_controller }} != '' ] @@ -536,6 +545,7 @@ jobs: jq ".CONFIGURATION.interop=$DYN_CONFIG" lab_info.json > lab_info.json.tmp && mv lab_info.json.tmp lab_info.json + jq --arg git_run "${{ github.run_number }}" '.PERFECTO_DETAILS."iPhone-XR".jobNumber=$git_run' lab_info.json > lab_info.json.tmp && mv lab_info.json.tmp lab_info.json if [ ${{ needs.vars.outputs.existing_controller }} != '' ] then @@ -618,6 +628,8 @@ jobs: DYN_CONFIG="$(python .quali/get_configuration.py --json ${{ steps.reservation.outputs.identifier }})" jq ".CONFIGURATION.interop=$DYN_CONFIG" lab_info.json > lab_info.json.tmp && mv lab_info.json.tmp lab_info.json + jq --arg git_run "${{ github.run_number }}" '.PERFECTO_DETAILS."Pixel 4".jobNumber=$git_run' lab_info.json > lab_info.json.tmp && mv lab_info.json.tmp lab_info.json + if [ ${{ needs.vars.outputs.existing_controller }} != '' ] @@ -702,6 +714,7 @@ jobs: jq ".CONFIGURATION.interop=$DYN_CONFIG" lab_info.json > lab_info.json.tmp && mv lab_info.json.tmp lab_info.json + jq --arg git_run "${{ github.run_number }}" '.PERFECTO_DETAILS."iPhone-12".jobNumber=$git_run' lab_info.json > lab_info.json.tmp && mv lab_info.json.tmp lab_info.json if [ ${{ needs.vars.outputs.existing_controller }} != '' ] then From ae24b274d3b1938dda2984db9bd7b995d5a89f03 Mon Sep 17 00:00:00 2001 From: Rohan Dutta Date: Tue, 3 May 2022 10:44:08 -0700 Subject: [PATCH 100/100] Modified .quali/get_config Signed-off-by: dutta-rohan <94938704+dutta-rohan@users.noreply.github.com> --- .github/workflows/interop.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/interop.yml b/.github/workflows/interop.yml index 7b3a75f62..9bcc903f9 100644 --- a/.github/workflows/interop.yml +++ b/.github/workflows/interop.yml @@ -205,8 +205,6 @@ jobs: jq --arg git_run "${{ github.run_number }}" '.PERFECTO_DETAILS."iPhone-11".jobNumber=$git_run' lab_info.json > lab_info.json.tmp && mv lab_info.json.tmp lab_info.json - - if [ ${{ needs.vars.outputs.existing_controller }} != '' ] then jq '.CONFIGURATION.interop.controller.url="https://sec-${{ needs.vars.outputs.existing_controller }}.cicd.lab.wlan.tip.build:16001"' lab_info.json > lab_info.json.tmp && mv lab_info.json.tmp lab_info.json