mirror of
https://github.com/Telecominfraproject/wlan-testing.git
synced 2025-11-03 04:18:15 +00:00
Merge branch 'WIFI-1321-create-a-lan-forge-pip-module' of https://github.com/Telecominfraproject/wlan-testing into WIFI-1321-create-a-lan-forge-pip-module
This commit is contained in:
@@ -876,6 +876,8 @@ class TestCountryUS20Mhz5GChannel116(object):
|
||||
assert False
|
||||
|
||||
|
||||
# TODO-(120,124,128)
|
||||
|
||||
setup_params_general14 = {
|
||||
"mode": "BRIDGE",
|
||||
"ssid_modes": {
|
||||
@@ -886,7 +888,7 @@ setup_params_general14 = {
|
||||
'country': 'US',
|
||||
'channel-mode': 'VHT',
|
||||
'channel-width': 20,
|
||||
"channel": 132},
|
||||
"channel": 120},
|
||||
"2G":
|
||||
{'band': '2G',
|
||||
'country': 'US',
|
||||
@@ -906,9 +908,9 @@ setup_params_general14 = {
|
||||
@allure.feature("Channel vs Country Code")
|
||||
@allure.parent_suite("Country Code Tests")
|
||||
@allure.suite("BRIDGE Mode(20 MHz)")
|
||||
@allure.sub_suite("US country code (Channel-132)")
|
||||
@allure.sub_suite("US country code (Channel-120)")
|
||||
@pytest.mark.usefixtures("setup_configuration")
|
||||
class TestCountryUS20Mhz5GChannel132(object):
|
||||
class TestCountryUS20Mhz5GChannel120(object):
|
||||
"""Country code along with Channel and Channel-width Test Bridge mode
|
||||
pytest -m "country_code and Bridge"
|
||||
"""
|
||||
@@ -916,11 +918,11 @@ class TestCountryUS20Mhz5GChannel132(object):
|
||||
@pytest.mark.wpa2_personal
|
||||
@pytest.mark.twentyMhz
|
||||
@pytest.mark.fiveg
|
||||
@pytest.mark.channel132
|
||||
@allure.title("Test for bandwidth 20 and channel 132")
|
||||
def test_client_bridge_wpa2_chn132_20Mhz_US_5g(self, get_test_library, setup_configuration):
|
||||
@pytest.mark.channel120
|
||||
@allure.title("Test for bandwidth 20 and channel 120")
|
||||
def test_client_bridge_wpa2_chn120_20Mhz_US_5g(self, get_test_library, setup_configuration):
|
||||
"""Country code Bridge Mode
|
||||
pytest -m "country_code and twentyMhz and wpa2 and fiveg and channel132"
|
||||
pytest -m "country_code and twentyMhz and wpa2 and fiveg and channel120"
|
||||
"""
|
||||
profile_data = setup_params_general14["ssid_modes"]["wpa2_personal"][0]
|
||||
ssid = profile_data["ssid_name"]
|
||||
@@ -952,7 +954,7 @@ setup_params_general15 = {
|
||||
'country': 'US',
|
||||
'channel-mode': 'VHT',
|
||||
'channel-width': 20,
|
||||
"channel": 136},
|
||||
"channel": 124},
|
||||
"2G":
|
||||
{'band': '2G',
|
||||
'country': 'US',
|
||||
@@ -972,9 +974,9 @@ setup_params_general15 = {
|
||||
@allure.feature("Channel vs Country Code")
|
||||
@allure.parent_suite("Country Code Tests")
|
||||
@allure.suite("BRIDGE Mode(20 MHz)")
|
||||
@allure.sub_suite("US country code (Channel-136)")
|
||||
@allure.sub_suite("US country code (Channel-124)")
|
||||
@pytest.mark.usefixtures("setup_configuration")
|
||||
class TestCountryUS20Mhz5GChannel136(object):
|
||||
class TestCountryUS20Mhz5GChannel124(object):
|
||||
"""Country code along with Channel and Channel-width Test Bridge mode
|
||||
pytest -m "country_code and Bridge"
|
||||
"""
|
||||
@@ -982,11 +984,11 @@ class TestCountryUS20Mhz5GChannel136(object):
|
||||
@pytest.mark.wpa2_personal
|
||||
@pytest.mark.twentyMhz
|
||||
@pytest.mark.fiveg
|
||||
@pytest.mark.channel136
|
||||
@allure.title("Test for bandwidth 20 and channel 136")
|
||||
def test_client_bridge_wpa2_chn136_20Mhz_US_5g(self, get_test_library, setup_configuration):
|
||||
@pytest.mark.channel124
|
||||
@allure.title("Test for bandwidth 20 and channel 124")
|
||||
def test_client_bridge_wpa2_chn124_20Mhz_US_5g(self, get_test_library, setup_configuration):
|
||||
"""Country code Bridge Mode
|
||||
pytest -m "country_code and twentyMhz and wpa2 and fiveg and channel136"
|
||||
pytest -m "country_code and twentyMhz and wpa2 and fiveg and channel124"
|
||||
"""
|
||||
profile_data = setup_params_general15["ssid_modes"]["wpa2_personal"][0]
|
||||
ssid = profile_data["ssid_name"]
|
||||
@@ -1018,7 +1020,7 @@ setup_params_general16 = {
|
||||
'country': 'US',
|
||||
'channel-mode': 'VHT',
|
||||
'channel-width': 20,
|
||||
"channel": 140},
|
||||
"channel": 128},
|
||||
"2G":
|
||||
{'band': '2G',
|
||||
'country': 'US',
|
||||
@@ -1038,9 +1040,9 @@ setup_params_general16 = {
|
||||
@allure.feature("Channel vs Country Code")
|
||||
@allure.parent_suite("Country Code Tests")
|
||||
@allure.suite("BRIDGE Mode(20 MHz)")
|
||||
@allure.sub_suite("US country code (Channel-140)")
|
||||
@allure.sub_suite("US country code (Channel-128)")
|
||||
@pytest.mark.usefixtures("setup_configuration")
|
||||
class TestCountryUS20Mhz5GChannel140(object):
|
||||
class TestCountryUS20Mhz5GChannel128(object):
|
||||
"""Country code along with Channel and Channel-width Test Bridge mode
|
||||
pytest -m "country_code and Bridge"
|
||||
"""
|
||||
@@ -1048,11 +1050,11 @@ class TestCountryUS20Mhz5GChannel140(object):
|
||||
@pytest.mark.wpa2_personal
|
||||
@pytest.mark.twentyMhz
|
||||
@pytest.mark.fiveg
|
||||
@pytest.mark.channel140
|
||||
@allure.title("Test for bandwidth 20 and channel 140")
|
||||
def test_client_bridge_wpa2_chn140_20Mhz_US_5g(self, get_test_library, setup_configuration):
|
||||
@pytest.mark.channel128
|
||||
@allure.title("Test for bandwidth 20 and channel 128")
|
||||
def test_client_bridge_wpa2_chn128_20Mhz_US_5g(self, get_test_library, setup_configuration):
|
||||
"""Country code Bridge Mode
|
||||
pytest -m "country_code and twentyMhz and wpa2 and fiveg and channel140"
|
||||
pytest -m "country_code and twentyMhz and wpa2 and fiveg and channel128"
|
||||
"""
|
||||
profile_data = setup_params_general16["ssid_modes"]["wpa2_personal"][0]
|
||||
ssid = profile_data["ssid_name"]
|
||||
@@ -1084,7 +1086,7 @@ setup_params_general17 = {
|
||||
'country': 'US',
|
||||
'channel-mode': 'VHT',
|
||||
'channel-width': 20,
|
||||
"channel": 144},
|
||||
"channel": 132},
|
||||
"2G":
|
||||
{'band': '2G',
|
||||
'country': 'US',
|
||||
@@ -1104,6 +1106,204 @@ setup_params_general17 = {
|
||||
@allure.feature("Channel vs Country Code")
|
||||
@allure.parent_suite("Country Code Tests")
|
||||
@allure.suite("BRIDGE Mode(20 MHz)")
|
||||
@allure.sub_suite("US country code (Channel-132)")
|
||||
@pytest.mark.usefixtures("setup_configuration")
|
||||
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
|
||||
@allure.title("Test for bandwidth 20 and channel 132")
|
||||
def test_client_bridge_wpa2_chn132_20Mhz_US_5g(self, get_test_library, setup_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"][0]
|
||||
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']
|
||||
channel_width = setup_params_general17['rf']['5G']['channel-width']
|
||||
|
||||
result = get_test_library.country_code_channel_division(ssid=ssid, security=security, passkey=security_key,
|
||||
band=band, vlan_id=vlan, channel=channel, mode=mode,
|
||||
channel_width=channel_width,country_num=840,
|
||||
country='United States(US)', dut_data=setup_configuration)
|
||||
if result:
|
||||
assert True
|
||||
else:
|
||||
assert False
|
||||
|
||||
|
||||
setup_params_general18 = {
|
||||
"mode": "BRIDGE",
|
||||
"ssid_modes": {
|
||||
"wpa2_personal": [{"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
|
||||
}
|
||||
|
||||
@pytest.mark.parametrize(
|
||||
'setup_configuration',
|
||||
[setup_params_general18],
|
||||
indirect=True,
|
||||
scope="class"
|
||||
)
|
||||
@allure.feature("Channel vs Country Code")
|
||||
@allure.parent_suite("Country Code Tests")
|
||||
@allure.suite("BRIDGE Mode(20 MHz)")
|
||||
@allure.sub_suite("US country code (Channel-136)")
|
||||
@pytest.mark.usefixtures("setup_configuration")
|
||||
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
|
||||
@allure.title("Test for bandwidth 20 and channel 136")
|
||||
def test_client_bridge_wpa2_chn136_20Mhz_US_5g(self, get_test_library, setup_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"][0]
|
||||
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']
|
||||
channel_width = setup_params_general18['rf']['5G']['channel-width']
|
||||
|
||||
result = get_test_library.country_code_channel_division(ssid=ssid, security=security, passkey=security_key,
|
||||
band=band, vlan_id=vlan, channel=channel, mode=mode,
|
||||
channel_width=channel_width,country_num=840,
|
||||
country='United States(US)', dut_data=setup_configuration)
|
||||
if result:
|
||||
assert True
|
||||
else:
|
||||
assert False
|
||||
|
||||
|
||||
setup_params_general19 = {
|
||||
"mode": "BRIDGE",
|
||||
"ssid_modes": {
|
||||
"wpa2_personal": [{"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
|
||||
}
|
||||
|
||||
@pytest.mark.parametrize(
|
||||
'setup_configuration',
|
||||
[setup_params_general19],
|
||||
indirect=True,
|
||||
scope="class"
|
||||
)
|
||||
@allure.feature("Channel vs Country Code")
|
||||
@allure.parent_suite("Country Code Tests")
|
||||
@allure.suite("BRIDGE Mode(20 MHz)")
|
||||
@allure.sub_suite("US country code (Channel-140)")
|
||||
@pytest.mark.usefixtures("setup_configuration")
|
||||
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
|
||||
@allure.title("Test for bandwidth 20 and channel 140")
|
||||
def test_client_bridge_wpa2_chn140_20Mhz_US_5g(self, get_test_library, setup_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"][0]
|
||||
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']
|
||||
channel_width = setup_params_general19['rf']['5G']['channel-width']
|
||||
|
||||
result = get_test_library.country_code_channel_division(ssid=ssid, security=security, passkey=security_key,
|
||||
band=band, vlan_id=vlan, channel=channel, mode=mode,
|
||||
channel_width=channel_width,country_num=840,
|
||||
country='United States(US)', dut_data=setup_configuration)
|
||||
if result:
|
||||
assert True
|
||||
else:
|
||||
assert False
|
||||
|
||||
|
||||
setup_params_general20 = {
|
||||
"mode": "BRIDGE",
|
||||
"ssid_modes": {
|
||||
"wpa2_personal": [{"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
|
||||
}
|
||||
|
||||
@pytest.mark.parametrize(
|
||||
'setup_configuration',
|
||||
[setup_params_general20],
|
||||
indirect=True,
|
||||
scope="class"
|
||||
)
|
||||
@allure.feature("Channel vs Country Code")
|
||||
@allure.parent_suite("Country Code Tests")
|
||||
@allure.suite("BRIDGE Mode(20 MHz)")
|
||||
@allure.sub_suite("US country code (Channel-144)")
|
||||
@pytest.mark.usefixtures("setup_configuration")
|
||||
class TestCountryUS20Mhz5GChannel144(object):
|
||||
@@ -1120,15 +1320,15 @@ class TestCountryUS20Mhz5GChannel144(object):
|
||||
"""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"][0]
|
||||
profile_data = setup_params_general20["ssid_modes"]["wpa2_personal"][0]
|
||||
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']
|
||||
channel_width = setup_params_general17['rf']['5G']['channel-width']
|
||||
channel = setup_params_general20['rf']['5G']['channel']
|
||||
channel_width = setup_params_general20['rf']['5G']['channel-width']
|
||||
|
||||
result = get_test_library.country_code_channel_division(ssid=ssid, security=security, passkey=security_key,
|
||||
band=band, vlan_id=vlan, channel=channel, mode=mode,
|
||||
@@ -1138,3 +1338,335 @@ class TestCountryUS20Mhz5GChannel144(object):
|
||||
assert True
|
||||
else:
|
||||
assert False
|
||||
|
||||
setup_params_general21 = {
|
||||
"mode": "BRIDGE",
|
||||
"ssid_modes": {
|
||||
"wpa2_personal": [{"ssid_name": "ssid_wpa2_5g", "appliedRadios": ["5G"], "security_key": "something"}
|
||||
]},
|
||||
"rf": {"5G":
|
||||
{'band': '5G',
|
||||
'country': 'US',
|
||||
'channel-mode': 'VHT',
|
||||
'channel-width': 20,
|
||||
"channel": 149},
|
||||
"2G":
|
||||
{'band': '2G',
|
||||
'country': 'US',
|
||||
"channel-mode": "VHT",
|
||||
'channel-width': 20,
|
||||
"channel": 1}
|
||||
},
|
||||
"radius": False
|
||||
}
|
||||
|
||||
@pytest.mark.parametrize(
|
||||
'setup_configuration',
|
||||
[setup_params_general21],
|
||||
indirect=True,
|
||||
scope="class"
|
||||
)
|
||||
@allure.feature("Channel vs Country Code")
|
||||
@allure.parent_suite("Country Code Tests")
|
||||
@allure.suite("BRIDGE Mode(20 MHz)")
|
||||
@allure.sub_suite("US country code (Channel-149)")
|
||||
@pytest.mark.usefixtures("setup_configuration")
|
||||
class TestCountryUS20Mhz5GChannel149(object):
|
||||
"""Country code along with Channel and Channel-width Test Bridge mode
|
||||
pytest -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
|
||||
@allure.title("Test for bandwidth 20 and channel 149")
|
||||
def test_client_bridge_wpa2_chn149_20Mhz_US_5g(self, get_test_library, setup_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"][0]
|
||||
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']
|
||||
channel_width = setup_params_general21['rf']['5G']['channel-width']
|
||||
|
||||
result = get_test_library.country_code_channel_division(ssid=ssid, security=security, passkey=security_key,
|
||||
band=band, vlan_id=vlan, channel=channel, mode=mode,
|
||||
channel_width=channel_width,country_num=840,
|
||||
country='United States(US)', dut_data=setup_configuration)
|
||||
if result:
|
||||
assert True
|
||||
else:
|
||||
assert False
|
||||
|
||||
|
||||
setup_params_general22 = {
|
||||
"mode": "BRIDGE",
|
||||
"ssid_modes": {
|
||||
"wpa2_personal": [{"ssid_name": "ssid_wpa2_5g", "appliedRadios": ["5G"], "security_key": "something"}
|
||||
]},
|
||||
"rf": {"5G":
|
||||
{'band': '5G',
|
||||
'country': 'US',
|
||||
'channel-mode': 'VHT',
|
||||
'channel-width': 20,
|
||||
"channel": 153},
|
||||
"2G":
|
||||
{'band': '2G',
|
||||
'country': 'US',
|
||||
"channel-mode": "VHT",
|
||||
'channel-width': 20,
|
||||
"channel": 1}
|
||||
},
|
||||
"radius": False
|
||||
}
|
||||
|
||||
@pytest.mark.parametrize(
|
||||
'setup_configuration',
|
||||
[setup_params_general22],
|
||||
indirect=True,
|
||||
scope="class"
|
||||
)
|
||||
@allure.feature("Channel vs Country Code")
|
||||
@allure.parent_suite("Country Code Tests")
|
||||
@allure.suite("BRIDGE Mode(20 MHz)")
|
||||
@allure.sub_suite("US country code (Channel-153)")
|
||||
@pytest.mark.usefixtures("setup_configuration")
|
||||
class TestCountryUS20Mhz5GChannel153(object):
|
||||
"""Country code along with Channel and Channel-width Test Bridge mode
|
||||
pytest -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
|
||||
@allure.title("Test for bandwidth 20 and channel 153")
|
||||
def test_client_bridge_wpa2_chn153_20Mhz_US_5g(self, get_test_library, setup_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"][0]
|
||||
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']
|
||||
channel_width = setup_params_general22['rf']['5G']['channel-width']
|
||||
|
||||
result = get_test_library.country_code_channel_division(ssid=ssid, security=security, passkey=security_key,
|
||||
band=band, vlan_id=vlan, channel=channel, mode=mode,
|
||||
channel_width=channel_width,country_num=840,
|
||||
country='United States(US)', dut_data=setup_configuration)
|
||||
if result:
|
||||
assert True
|
||||
else:
|
||||
assert False
|
||||
|
||||
|
||||
setup_params_general23 = {
|
||||
"mode": "BRIDGE",
|
||||
"ssid_modes": {
|
||||
"wpa2_personal": [{"ssid_name": "ssid_wpa2_5g", "appliedRadios": ["5G"], "security_key": "something"}
|
||||
]},
|
||||
"rf": {"5G":
|
||||
{'band': '5G',
|
||||
'country': 'US',
|
||||
'channel-mode': 'VHT',
|
||||
'channel-width': 20,
|
||||
"channel": 157},
|
||||
"2G":
|
||||
{'band': '2G',
|
||||
'country': 'US',
|
||||
"channel-mode": "VHT",
|
||||
'channel-width': 20,
|
||||
"channel": 1}
|
||||
},
|
||||
"radius": False
|
||||
}
|
||||
|
||||
@pytest.mark.parametrize(
|
||||
'setup_configuration',
|
||||
[setup_params_general23],
|
||||
indirect=True,
|
||||
scope="class"
|
||||
)
|
||||
@allure.feature("Channel vs Country Code")
|
||||
@allure.parent_suite("Country Code Tests")
|
||||
@allure.suite("BRIDGE Mode(20 MHz)")
|
||||
@allure.sub_suite("US country code (Channel-157)")
|
||||
@pytest.mark.usefixtures("setup_configuration")
|
||||
class TestCountryUS20Mhz5GChannel157(object):
|
||||
"""Country code along with Channel and Channel-width Test Bridge mode
|
||||
pytest -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
|
||||
@allure.title("Test for bandwidth 20 and channel 157")
|
||||
def test_client_bridge_wpa2_chn157_20Mhz_US_5g(self, get_test_library, setup_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"][0]
|
||||
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']
|
||||
channel_width = setup_params_general23['rf']['5G']['channel-width']
|
||||
|
||||
result = get_test_library.country_code_channel_division(ssid=ssid, security=security, passkey=security_key,
|
||||
band=band, vlan_id=vlan, channel=channel, mode=mode,
|
||||
channel_width=channel_width,country_num=840,
|
||||
country='United States(US)', dut_data=setup_configuration)
|
||||
if result:
|
||||
assert True
|
||||
else:
|
||||
assert False
|
||||
|
||||
|
||||
setup_params_general24 = {
|
||||
"mode": "BRIDGE",
|
||||
"ssid_modes": {
|
||||
"wpa2_personal": [{"ssid_name": "ssid_wpa2_5g", "appliedRadios": ["5G"], "security_key": "something"}
|
||||
]},
|
||||
"rf": {"5G":
|
||||
{'band': '5G',
|
||||
'country': 'US',
|
||||
'channel-mode': 'VHT',
|
||||
'channel-width': 20,
|
||||
"channel": 161},
|
||||
"2G":
|
||||
{'band': '2G',
|
||||
'country': 'US',
|
||||
"channel-mode": "VHT",
|
||||
'channel-width': 20,
|
||||
"channel": 1}
|
||||
},
|
||||
"radius": False
|
||||
}
|
||||
|
||||
@pytest.mark.parametrize(
|
||||
'setup_configuration',
|
||||
[setup_params_general24],
|
||||
indirect=True,
|
||||
scope="class"
|
||||
)
|
||||
@allure.feature("Channel vs Country Code")
|
||||
@allure.parent_suite("Country Code Tests")
|
||||
@allure.suite("BRIDGE Mode(20 MHz)")
|
||||
@allure.sub_suite("US country code (Channel-161)")
|
||||
@pytest.mark.usefixtures("setup_configuration")
|
||||
class TestCountryUS20Mhz5GChannel161(object):
|
||||
"""Country code along with Channel and Channel-width Test Bridge mode
|
||||
pytest -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
|
||||
@allure.title("Test for bandwidth 20 and channel 161")
|
||||
def test_client_bridge_wpa2_chn161_20Mhz_US_5g(self, get_test_library, setup_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"][0]
|
||||
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']
|
||||
channel_width = setup_params_general24['rf']['5G']['channel-width']
|
||||
|
||||
result = get_test_library.country_code_channel_division(ssid=ssid, security=security, passkey=security_key,
|
||||
band=band, vlan_id=vlan, channel=channel, mode=mode,
|
||||
channel_width=channel_width,country_num=840,
|
||||
country='United States(US)', dut_data=setup_configuration)
|
||||
if result:
|
||||
assert True
|
||||
else:
|
||||
assert False
|
||||
|
||||
|
||||
setup_params_general25 = {
|
||||
"mode": "BRIDGE",
|
||||
"ssid_modes": {
|
||||
"wpa2_personal": [{"ssid_name": "ssid_wpa2_5g", "appliedRadios": ["5G"], "security_key": "something"}
|
||||
]},
|
||||
"rf": {"5G":
|
||||
{'band': '5G',
|
||||
'country': 'US',
|
||||
'channel-mode': 'VHT',
|
||||
'channel-width': 20,
|
||||
"channel": 165},
|
||||
"2G":
|
||||
{'band': '2G',
|
||||
'country': 'US',
|
||||
"channel-mode": "VHT",
|
||||
'channel-width': 20,
|
||||
"channel": 1}
|
||||
},
|
||||
"radius": False
|
||||
}
|
||||
|
||||
@pytest.mark.parametrize(
|
||||
'setup_configuration',
|
||||
[setup_params_general25],
|
||||
indirect=True,
|
||||
scope="class"
|
||||
)
|
||||
@allure.feature("Channel vs Country Code")
|
||||
@allure.parent_suite("Country Code Tests")
|
||||
@allure.suite("BRIDGE Mode(20 MHz)")
|
||||
@allure.sub_suite("US country code (Channel-165)")
|
||||
@pytest.mark.usefixtures("setup_configuration")
|
||||
class TestCountryUS20Mhz5GChannel165(object):
|
||||
"""Country code along with Channel and Channel-width Test Bridge mode
|
||||
pytest -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
|
||||
@pytest.mark.cc_karthika
|
||||
@allure.title("Test for bandwidth 20 and channel 165")
|
||||
def test_client_bridge_wpa2_chn165_20Mhz_US_5g(self, get_test_library, setup_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"][0]
|
||||
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']
|
||||
channel_width = setup_params_general25['rf']['5G']['channel-width']
|
||||
|
||||
result = get_test_library.country_code_channel_division(ssid=ssid, security=security, passkey=security_key,
|
||||
band=band, vlan_id=vlan, channel=channel, mode=mode,
|
||||
channel_width=channel_width,country_num=840,
|
||||
country='United States(US)', dut_data=setup_configuration)
|
||||
if result:
|
||||
assert True
|
||||
else:
|
||||
assert False
|
||||
|
||||
|
||||
|
||||
@@ -421,7 +421,7 @@ setup_params_general7 = {
|
||||
'country': 'US',
|
||||
'channel-mode': 'VHT',
|
||||
'channel-width': 40,
|
||||
"channel": 132},
|
||||
"channel": 116},
|
||||
"2G":
|
||||
{'band': '2G',
|
||||
'country': 'US',
|
||||
@@ -441,9 +441,9 @@ setup_params_general7 = {
|
||||
@allure.feature("Channel vs Country Code")
|
||||
@allure.parent_suite("Country Code Tests")
|
||||
@allure.suite("BRIDGE Mode(40 MHz)")
|
||||
@allure.sub_suite("US country code (Channel-132)")
|
||||
@allure.sub_suite("US country code (Channel-116)")
|
||||
@pytest.mark.usefixtures("setup_configuration")
|
||||
class TestCountryUS40Mhz5GChannel132(object):
|
||||
class TestCountryUS40Mhz5GChannel116(object):
|
||||
"""Country code along with Channel and Channel-width Test Bridge mode
|
||||
pytest -m "country_code and Bridge"
|
||||
"""
|
||||
@@ -451,11 +451,11 @@ class TestCountryUS40Mhz5GChannel132(object):
|
||||
@pytest.mark.wpa2_personal
|
||||
@pytest.mark.fourtyMhz
|
||||
@pytest.mark.fiveg
|
||||
@pytest.mark.channel132
|
||||
@allure.title("Test for bandwidth 40 and channel 132")
|
||||
def test_client_bridge_wpa2_chn132_40Mhz_US_5g(self, get_test_library, setup_configuration):
|
||||
@pytest.mark.channel116
|
||||
@allure.title("Test for bandwidth 40 and channel 116")
|
||||
def test_client_bridge_wpa2_chn116_40Mhz_US_5g(self, get_test_library, setup_configuration):
|
||||
"""Country code Bridge Mode
|
||||
pytest -m "country_code and fourtyMhz and wpa2 and fiveg and channel132"
|
||||
pytest -m "country_code and fourtyMhz and wpa2 and fiveg and channel116"
|
||||
"""
|
||||
profile_data = setup_params_general7["ssid_modes"]["wpa2_personal"][0]
|
||||
ssid = profile_data["ssid_name"]
|
||||
@@ -487,7 +487,7 @@ setup_params_general8 = {
|
||||
'country': 'US',
|
||||
'channel-mode': 'VHT',
|
||||
'channel-width': 40,
|
||||
"channel": 140},
|
||||
"channel": 108},
|
||||
"2G":
|
||||
{'band': '2G',
|
||||
'country': 'US',
|
||||
@@ -507,6 +507,138 @@ setup_params_general8 = {
|
||||
@allure.feature("Channel vs Country Code")
|
||||
@allure.parent_suite("Country Code Tests")
|
||||
@allure.suite("BRIDGE Mode(40 MHz)")
|
||||
@allure.sub_suite("US country code (Channel-124)")
|
||||
@pytest.mark.usefixtures("setup_configuration")
|
||||
class TestCountryUS40Mhz5GChannel124(object):
|
||||
"""Country code along with Channel and Channel-width Test Bridge mode
|
||||
pytest -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
|
||||
@allure.title("Test for bandwidth 40 and channel 124")
|
||||
def test_client_bridge_wpa2_chn124_40Mhz_US_5g(self, get_test_library, setup_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"][0]
|
||||
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']
|
||||
channel_width = setup_params_general8['rf']['5G']['channel-width']
|
||||
|
||||
result = get_test_library.country_code_channel_division(ssid=ssid, security=security, passkey=security_key,
|
||||
band=band, vlan_id=vlan, channel=channel, mode=mode,
|
||||
channel_width=channel_width,country_num=840,
|
||||
country='United States(US)', dut_data=setup_configuration)
|
||||
if result:
|
||||
assert True
|
||||
else:
|
||||
assert False
|
||||
|
||||
|
||||
setup_params_general9 = {
|
||||
"mode": "BRIDGE",
|
||||
"ssid_modes": {
|
||||
"wpa2_personal": [{"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
|
||||
}
|
||||
|
||||
@pytest.mark.parametrize(
|
||||
'setup_configuration',
|
||||
[setup_params_general9],
|
||||
indirect=True,
|
||||
scope="class"
|
||||
)
|
||||
@allure.feature("Channel vs Country Code")
|
||||
@allure.parent_suite("Country Code Tests")
|
||||
@allure.suite("BRIDGE Mode(40 MHz)")
|
||||
@allure.sub_suite("US country code (Channel-132)")
|
||||
@pytest.mark.usefixtures("setup_configuration")
|
||||
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
|
||||
@allure.title("Test for bandwidth 40 and channel 132")
|
||||
def test_client_bridge_wpa2_chn132_40Mhz_US_5g(self, get_test_library, setup_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"][0]
|
||||
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']
|
||||
channel_width = setup_params_general9['rf']['5G']['channel-width']
|
||||
|
||||
result = get_test_library.country_code_channel_division(ssid=ssid, security=security, passkey=security_key,
|
||||
band=band, vlan_id=vlan, channel=channel, mode=mode,
|
||||
channel_width=channel_width,country_num=840,
|
||||
country='United States(US)', dut_data=setup_configuration)
|
||||
if result:
|
||||
assert True
|
||||
else:
|
||||
assert False
|
||||
|
||||
|
||||
setup_params_general10 = {
|
||||
"mode": "BRIDGE",
|
||||
"ssid_modes": {
|
||||
"wpa2_personal": [{"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
|
||||
}
|
||||
|
||||
@pytest.mark.parametrize(
|
||||
'setup_configuration',
|
||||
[setup_params_general10],
|
||||
indirect=True,
|
||||
scope="class"
|
||||
)
|
||||
@allure.feature("Channel vs Country Code")
|
||||
@allure.parent_suite("Country Code Tests")
|
||||
@allure.suite("BRIDGE Mode(40 MHz)")
|
||||
@allure.sub_suite("US country code (Channel-140)")
|
||||
@pytest.mark.usefixtures("setup_configuration")
|
||||
class TestCountryUS40Mhz5GChannel140(object):
|
||||
@@ -523,15 +655,15 @@ class TestCountryUS40Mhz5GChannel140(object):
|
||||
"""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"][0]
|
||||
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 = "fiveg"
|
||||
vlan = 1
|
||||
channel = setup_params_general8['rf']['5G']['channel']
|
||||
channel_width = setup_params_general8['rf']['5G']['channel-width']
|
||||
channel = setup_params_general10['rf']['5G']['channel']
|
||||
channel_width = setup_params_general10['rf']['5G']['channel-width']
|
||||
|
||||
result = get_test_library.country_code_channel_division(ssid=ssid, security=security, passkey=security_key,
|
||||
band=band, vlan_id=vlan, channel=channel, mode=mode,
|
||||
@@ -541,3 +673,137 @@ class TestCountryUS40Mhz5GChannel140(object):
|
||||
assert True
|
||||
else:
|
||||
assert False
|
||||
|
||||
|
||||
setup_params_general11 = {
|
||||
"mode": "BRIDGE",
|
||||
"ssid_modes": {
|
||||
"wpa2_personal": [{"ssid_name": "ssid_wpa2_5g", "appliedRadios": ["5G"], "security_key": "something"}
|
||||
]},
|
||||
"rf": {"5G":
|
||||
{'band': '5G',
|
||||
'country': 'US',
|
||||
'channel-mode': 'VHT',
|
||||
'channel-width': 40,
|
||||
"channel": 149},
|
||||
"2G":
|
||||
{'band': '2G',
|
||||
'country': 'US',
|
||||
"channel-mode": "VHT",
|
||||
'channel-width': 40,
|
||||
"channel": 1}
|
||||
},
|
||||
"radius": False
|
||||
}
|
||||
|
||||
@pytest.mark.parametrize(
|
||||
'setup_configuration',
|
||||
[setup_params_general11],
|
||||
indirect=True,
|
||||
scope="class"
|
||||
)
|
||||
@allure.feature("Channel vs Country Code")
|
||||
@allure.parent_suite("Country Code Tests")
|
||||
@allure.suite("BRIDGE Mode(40 MHz)")
|
||||
@allure.sub_suite("US country code (Channel-149)")
|
||||
@pytest.mark.usefixtures("setup_configuration")
|
||||
class TestCountryUS40Mhz5GChannel149(object):
|
||||
"""Country code along with Channel and Channel-width Test Bridge mode
|
||||
pytest -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
|
||||
@allure.title("Test for bandwidth 40 and channel 149")
|
||||
def test_client_bridge_wpa2_chn149_40Mhz_US_5g(self, get_test_library, setup_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"][0]
|
||||
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']
|
||||
channel_width = setup_params_general11['rf']['5G']['channel-width']
|
||||
|
||||
result = get_test_library.country_code_channel_division(ssid=ssid, security=security, passkey=security_key,
|
||||
band=band, vlan_id=vlan, channel=channel, mode=mode,
|
||||
channel_width=channel_width,country_num=840,
|
||||
country='United States(US)', dut_data=setup_configuration)
|
||||
if result:
|
||||
assert True
|
||||
else:
|
||||
assert False
|
||||
|
||||
|
||||
setup_params_general12 = {
|
||||
"mode": "BRIDGE",
|
||||
"ssid_modes": {
|
||||
"wpa2_personal": [{"ssid_name": "ssid_wpa2_5g", "appliedRadios": ["5G"], "security_key": "something"}
|
||||
]},
|
||||
"rf": {"5G":
|
||||
{'band': '5G',
|
||||
'country': 'US',
|
||||
'channel-mode': 'VHT',
|
||||
'channel-width': 40,
|
||||
"channel": 157},
|
||||
"2G":
|
||||
{'band': '2G',
|
||||
'country': 'US',
|
||||
"channel-mode": "VHT",
|
||||
'channel-width': 40,
|
||||
"channel": 1}
|
||||
},
|
||||
"radius": False
|
||||
}
|
||||
|
||||
@pytest.mark.parametrize(
|
||||
'setup_configuration',
|
||||
[setup_params_general12],
|
||||
indirect=True,
|
||||
scope="class"
|
||||
)
|
||||
@allure.feature("Channel vs Country Code")
|
||||
@allure.parent_suite("Country Code Tests")
|
||||
@allure.suite("BRIDGE Mode(40 MHz)")
|
||||
@allure.sub_suite("US country code (Channel-157)")
|
||||
@pytest.mark.usefixtures("setup_configuration")
|
||||
class TestCountryUS40Mhz5GChannel157(object):
|
||||
"""Country code along with Channel and Channel-width Test Bridge mode
|
||||
pytest -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
|
||||
@allure.title("Test for bandwidth 40 and channel 157")
|
||||
def test_client_bridge_wpa2_chn157_40Mhz_US_5g(self, get_test_library, setup_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"][0]
|
||||
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']
|
||||
channel_width = setup_params_general12['rf']['5G']['channel-width']
|
||||
|
||||
result = get_test_library.country_code_channel_division(ssid=ssid, security=security, passkey=security_key,
|
||||
band=band, vlan_id=vlan, channel=channel, mode=mode,
|
||||
channel_width=channel_width,country_num=840,
|
||||
country='United States(US)', dut_data=setup_configuration)
|
||||
if result:
|
||||
assert True
|
||||
else:
|
||||
assert False
|
||||
|
||||
|
||||
|
||||
@@ -221,7 +221,7 @@ setup_params_general4 = {
|
||||
'country': 'US',
|
||||
'channel-mode': 'VHT',
|
||||
'channel-width': 80,
|
||||
"channel": 132},
|
||||
"channel": 116},
|
||||
"2G":
|
||||
{'band': '2G',
|
||||
'country': 'US',
|
||||
@@ -241,6 +241,72 @@ setup_params_general4 = {
|
||||
@allure.feature("Channel vs Country Code")
|
||||
@allure.parent_suite("Country Code Tests")
|
||||
@allure.suite("BRIDGE Mode(80 MHz)")
|
||||
@allure.sub_suite("US country code (Channel-116)")
|
||||
@pytest.mark.usefixtures("setup_configuration")
|
||||
class TestCountryUS80Mhz5GChannel116(object):
|
||||
"""Country code along with Channel and Channel-width Test Bridge mode
|
||||
pytest -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
|
||||
@allure.title("Test for bandwidth 80 and channel 116")
|
||||
def test_client_bridge_wpa2_chn116_80Mhz_US_5g(self, get_test_library, setup_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"][0]
|
||||
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']
|
||||
channel_width = setup_params_general4['rf']['5G']['channel-width']
|
||||
|
||||
result = get_test_library.country_code_channel_division(ssid=ssid, security=security, passkey=security_key,
|
||||
band=band, vlan_id=vlan, channel=channel, mode=mode,
|
||||
channel_width=channel_width,country_num=840,
|
||||
country='United States(US)', dut_data=setup_configuration)
|
||||
if result:
|
||||
assert True
|
||||
else:
|
||||
assert False
|
||||
|
||||
|
||||
setup_params_general5 = {
|
||||
"mode": "BRIDGE",
|
||||
"ssid_modes": {
|
||||
"wpa2_personal": [{"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
|
||||
}
|
||||
|
||||
@pytest.mark.parametrize(
|
||||
'setup_configuration',
|
||||
[setup_params_general5],
|
||||
indirect=True,
|
||||
scope="class"
|
||||
)
|
||||
@allure.feature("Channel vs Country Code")
|
||||
@allure.parent_suite("Country Code Tests")
|
||||
@allure.suite("BRIDGE Mode(80 MHz)")
|
||||
@allure.sub_suite("US country code (Channel-132)")
|
||||
@pytest.mark.usefixtures("setup_configuration")
|
||||
class TestCountryUS80Mhz5GChannel132(object):
|
||||
@@ -257,15 +323,81 @@ class TestCountryUS80Mhz5GChannel132(object):
|
||||
"""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"][0]
|
||||
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 = "fiveg"
|
||||
vlan = 1
|
||||
channel = setup_params_general4['rf']['5G']['channel']
|
||||
channel_width = setup_params_general4['rf']['5G']['channel-width']
|
||||
channel = setup_params_general5['rf']['5G']['channel']
|
||||
channel_width = setup_params_general5['rf']['5G']['channel-width']
|
||||
|
||||
result = get_test_library.country_code_channel_division(ssid=ssid, security=security, passkey=security_key,
|
||||
band=band, vlan_id=vlan, channel=channel, mode=mode,
|
||||
channel_width=channel_width,country_num=840,
|
||||
country='United States(US)', dut_data=setup_configuration)
|
||||
if result:
|
||||
assert True
|
||||
else:
|
||||
assert False
|
||||
|
||||
|
||||
setup_params_general6 = {
|
||||
"mode": "BRIDGE",
|
||||
"ssid_modes": {
|
||||
"wpa2_personal": [{"ssid_name": "ssid_wpa2_5g", "appliedRadios": ["5G"], "security_key": "something"}
|
||||
]},
|
||||
"rf": {"5G":
|
||||
{'band': '5G',
|
||||
'country': 'US',
|
||||
'channel-mode': 'VHT',
|
||||
'channel-width': 80,
|
||||
"channel": 149},
|
||||
"2G":
|
||||
{'band': '2G',
|
||||
'country': 'US',
|
||||
"channel-mode": "VHT",
|
||||
'channel-width': 20,
|
||||
"channel": 1}
|
||||
},
|
||||
"radius": False
|
||||
}
|
||||
|
||||
@pytest.mark.parametrize(
|
||||
'setup_configuration',
|
||||
[setup_params_general6],
|
||||
indirect=True,
|
||||
scope="class"
|
||||
)
|
||||
@allure.feature("Channel vs Country Code")
|
||||
@allure.parent_suite("Country Code Tests")
|
||||
@allure.suite("BRIDGE Mode(80 MHz)")
|
||||
@allure.sub_suite("US country code (Channel-149)")
|
||||
@pytest.mark.usefixtures("setup_configuration")
|
||||
class TestCountryUS80Mhz5GChannel149(object):
|
||||
"""Country code along with Channel and Channel-width Test Bridge mode
|
||||
pytest -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
|
||||
@allure.title("Test for bandwidth 80 and channel 149")
|
||||
def test_client_bridge_wpa2_chn149_80Mhz_US_5g(self, get_test_library, setup_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"][0]
|
||||
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']
|
||||
channel_width = setup_params_general6['rf']['5G']['channel-width']
|
||||
|
||||
result = get_test_library.country_code_channel_division(ssid=ssid, security=security, passkey=security_key,
|
||||
band=band, vlan_id=vlan, channel=channel, mode=mode,
|
||||
|
||||
Reference in New Issue
Block a user