mirror of
https://github.com/Telecominfraproject/wlan-testing.git
synced 2025-12-24 22:47:08 +00:00
Added OWE Automation (#1083)
* Added OWE-Transition support Signed-off-by: jitendra-kushavah <jitendra.kushavah@candelatech.com> * Added OWE and OWE-Transition client connectivity test cases Signed-off-by: jitendra-kushavah <jitendra.kushavah@candelatech.com> * Atached the Jira links Signed-off-by: jitendra-kushavah <jitendra.kushavah@candelatech.com> * Added fiveg and sixg test cases under OWE and OWE-Transition Signed-off-by: jitendra-kushavah <jitendra.kushavah@candelatech.com> * Added OWE and OWE-Transition test cases for NAT mode Signed-off-by: jitendra-kushavah <jitendra.kushavah@candelatech.com> * Removed unwanted 6g test cases Signed-off-by: jitendra-kushavah <jitendra.kushavah@candelatech.com> * Added regression marker for owe and owe_transition test cases Signed-off-by: jitendra-kushavah <jitendra.kushavah@candelatech.com> * Added owe_owe_transition marker Signed-off-by: jitendra-kushavah <jitendra.kushavah@candelatech.com> --------- Signed-off-by: jitendra-kushavah <jitendra.kushavah@candelatech.com>
This commit is contained in:
committed by
GitHub
parent
a7e91e59b0
commit
26605bbf60
@@ -65,7 +65,8 @@ class tip_2x:
|
||||
"wpa_wpa2_enterprise_mixed",
|
||||
"wpa3_enterprise_mixed",
|
||||
"wpa3_enterprise_192",
|
||||
"owe"
|
||||
"owe",
|
||||
"owe_transition"
|
||||
]
|
||||
tip_2x_specific_encryption_translation = {"open": "none",
|
||||
"wpa": "psk",
|
||||
@@ -79,7 +80,8 @@ class tip_2x:
|
||||
"wpa_wpa2_enterprise_mixed": "wpa-mixed",
|
||||
"wpa3_enterprise_mixed": "wpa3-mixed",
|
||||
"wpa3_enterprise_192": "wpa3-192",
|
||||
"owe":"owe"
|
||||
"owe":"owe",
|
||||
"owe_transition":"owe-transition"
|
||||
}
|
||||
|
||||
def __init__(self, controller_data=None, target=None, configuration=None,
|
||||
|
||||
@@ -252,7 +252,7 @@ def get_security_flags():
|
||||
security = ["open", "wpa", "wep", "wpa2_personal", "wpa3_personal", "wpa3_personal_mixed",
|
||||
"wpa_wpa2_enterprise_mixed", "wpa2_eap", "wpa2_only_eap",
|
||||
"wpa_wpa2_personal_mixed", "wpa_enterprise", "wpa2_enterprise", "wpa3_enterprise_mixed",
|
||||
"wpa3_enterprise", "twog", "fiveg", "sixg", "fiveg_lower", "fiveg_upper", "radius", "owe"]
|
||||
"wpa3_enterprise", "twog", "fiveg", "sixg", "fiveg_lower", "fiveg_upper", "radius", "owe", "owe_transition"]
|
||||
yield security
|
||||
|
||||
|
||||
|
||||
@@ -417,3 +417,284 @@ class TestBridgeModeConnectivitySuiteTwo(object):
|
||||
num_sta=num_stations, client_type=client_type)
|
||||
|
||||
assert passes == "PASS", result
|
||||
|
||||
|
||||
|
||||
setup_params_owe_br = {
|
||||
"mode": "BRIDGE",
|
||||
"ssid_modes": {
|
||||
"owe": [
|
||||
{"ssid_name": "ssid_owe_2g_br", "appliedRadios": ["2G"], "security_key": "something"},
|
||||
{"ssid_name": "ssid_owe_5g_br", "appliedRadios": ["5G"], "security_key": "something"},
|
||||
{"ssid_name": "ssid_owe_6g_br", "appliedRadios": ["6G"], "security_key": "something"},
|
||||
|
||||
]
|
||||
},
|
||||
"rf": {},
|
||||
"radius": False
|
||||
}
|
||||
|
||||
@allure.feature("Client Connectivity")
|
||||
@allure.parent_suite("Client Connectivity Tests")
|
||||
@allure.suite(suite_name="BRIDGE Mode")
|
||||
@allure.sub_suite(sub_suite_name="OWE security mode Client Connectivity")
|
||||
@pytest.mark.parametrize(
|
||||
'setup_configuration',
|
||||
[setup_params_owe_br],
|
||||
indirect=True,
|
||||
scope="class"
|
||||
)
|
||||
@pytest.mark.usefixtures("setup_configuration")
|
||||
class TestBridgeModeConnectivityOWE(object):
|
||||
"""
|
||||
Bridge Client Connectivity (OWE)
|
||||
pytest -m "client_connectivity_tests and bridge and owe"
|
||||
"""
|
||||
|
||||
@pytest.mark.owe
|
||||
@pytest.mark.twog
|
||||
@pytest.mark.ow_regression_lf
|
||||
@pytest.mark.owe_owe_transition
|
||||
@allure.story('OWE 2.4 GHZ Band')
|
||||
@allure.title("BRIDGE Mode Client Connectivity Test with OWE encryption 2.4 GHz Band")
|
||||
@allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-13669", name="WIFI-13669")
|
||||
def test_bridge_owe_2g_client_connectivity(self, get_test_library, get_dut_logs_per_test_case,
|
||||
get_test_device_logs, num_stations, check_connectivity,
|
||||
setup_configuration, client_type):
|
||||
"""
|
||||
BRIDGE Mode Client Connectivity Test with OWE encryption 2.4 GHz Band
|
||||
marker:- client_connectivity_tests and bridge and owe and twog
|
||||
"""
|
||||
profile_data = {"ssid_name": "ssid_owe_2g_br", "appliedRadios": ["2G"], "security_key": ""}
|
||||
ssid_name = profile_data["ssid_name"]
|
||||
security_key = "[BLANK]"
|
||||
security = "owe"
|
||||
mode = "BRIDGE"
|
||||
band = "twog"
|
||||
|
||||
passes, result = get_test_library.client_connectivity_test(
|
||||
ssid=ssid_name, security=security,
|
||||
dut_data=setup_configuration,
|
||||
passkey=security_key, mode=mode, band=band,
|
||||
num_sta=num_stations, client_type=client_type, extra_sta_rows=["security"]
|
||||
)
|
||||
assert passes == "PASS", result
|
||||
|
||||
@pytest.mark.owe
|
||||
@pytest.mark.fiveg
|
||||
@pytest.mark.ow_regression_lf
|
||||
@pytest.mark.owe_owe_transition
|
||||
@allure.story('OWE 5 GHZ Band')
|
||||
@allure.title("BRIDGE Mode Client Connectivity Test with OWE encryption 5 GHz Band")
|
||||
@allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-13669", name="WIFI-13669")
|
||||
def test_bridge_owe_5g_client_connectivity(self, get_test_library, get_dut_logs_per_test_case,
|
||||
get_test_device_logs, num_stations, check_connectivity,
|
||||
setup_configuration, client_type):
|
||||
"""
|
||||
BRIDGE Mode Client Connectivity Test with OWE encryption 5 GHz Band
|
||||
marker:- client_connectivity_tests and bridge and owe and fiveg
|
||||
"""
|
||||
profile_data = {"ssid_name": "ssid_owe_5g_br", "appliedRadios": ["5G"], "security_key": ""}
|
||||
ssid_name = profile_data["ssid_name"]
|
||||
security_key = "[BLANK]"
|
||||
security = "owe"
|
||||
mode = "BRIDGE"
|
||||
band = "fiveg"
|
||||
|
||||
passes, result = get_test_library.client_connectivity_test(
|
||||
ssid=ssid_name, security=security,
|
||||
dut_data=setup_configuration,
|
||||
passkey=security_key, mode=mode, band=band,
|
||||
num_sta=num_stations, client_type=client_type, extra_sta_rows=["security"]
|
||||
)
|
||||
assert passes == "PASS", result
|
||||
|
||||
@pytest.mark.owe
|
||||
@pytest.mark.twog
|
||||
@pytest.mark.sixg
|
||||
@pytest.mark.ow_regression_lf
|
||||
@pytest.mark.owe_owe_transition
|
||||
@allure.story('OWE 6 GHZ Band')
|
||||
@allure.title("BRIDGE Mode Client Connectivity Test with OWE encryption 6 GHz Band")
|
||||
@allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-13669", name="WIFI-13669")
|
||||
def test_bridge_owe_6g_client_connectivity(self, get_test_library, get_dut_logs_per_test_case,
|
||||
get_test_device_logs, num_stations, check_connectivity,
|
||||
setup_configuration, client_type):
|
||||
"""
|
||||
BRIDGE Mode Client Connectivity Test with OWE encryption 6 GHz Band
|
||||
marker:- client_connectivity_tests and bridge and owe and sixg
|
||||
"""
|
||||
profile_data = {"ssid_name": "ssid_owe_6g_br", "appliedRadios": ["6G"], "security_key": ""}
|
||||
ssid_name = profile_data["ssid_name"]
|
||||
security_key = "[BLANK]"
|
||||
security = "owe"
|
||||
mode = "BRIDGE"
|
||||
band = "sixg"
|
||||
|
||||
passes, result = get_test_library.client_connectivity_test(
|
||||
ssid=ssid_name, security=security,
|
||||
dut_data=setup_configuration,
|
||||
passkey=security_key, mode=mode, band=band,
|
||||
num_sta=num_stations, client_type=client_type, extra_sta_rows=["security"]
|
||||
)
|
||||
assert passes == "PASS", result
|
||||
|
||||
|
||||
|
||||
setup_params_owe_transition_br = {
|
||||
"mode": "BRIDGE",
|
||||
"ssid_modes": {
|
||||
"owe_transition": [
|
||||
{"ssid_name": "ssid_owe_transition_2g_br", "appliedRadios": ["2G"], "security_key": "something"},
|
||||
{"ssid_name": "ssid_owe_transition_5g_br", "appliedRadios": ["5G"], "security_key": "something"}
|
||||
|
||||
]
|
||||
},
|
||||
"rf": {},
|
||||
"radius": False
|
||||
}
|
||||
|
||||
@allure.feature("Client Connectivity")
|
||||
@allure.parent_suite("Client Connectivity Tests")
|
||||
@allure.suite(suite_name="BRIDGE Mode")
|
||||
@allure.sub_suite(sub_suite_name="OWE-Transition security mode Client Connectivity")
|
||||
@pytest.mark.parametrize(
|
||||
'setup_configuration',
|
||||
[setup_params_owe_transition_br],
|
||||
indirect=True,
|
||||
scope="class"
|
||||
)
|
||||
@pytest.mark.usefixtures("setup_configuration")
|
||||
class TestBridgeModeConnectivityOWETransition(object):
|
||||
"""
|
||||
Bridge Client Connectivity (OWE-Transition)
|
||||
pytest -m "client_connectivity_tests and bridge and owe_transition"
|
||||
"""
|
||||
|
||||
@pytest.mark.owe_transition
|
||||
@pytest.mark.twog
|
||||
@pytest.mark.owe_client
|
||||
@pytest.mark.ow_regression_lf
|
||||
@pytest.mark.owe_owe_transition
|
||||
@allure.story('OWE-Transition 2.4 GHZ Band - OWE Client')
|
||||
@allure.title("BRIDGE Mode OWE-Transition: OWE client connects to hidden SSID")
|
||||
@allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-13674", name="WIFI-13674")
|
||||
def test_bridge_owe_transition_2g_owe_client(self, get_test_library, get_dut_logs_per_test_case,
|
||||
get_test_device_logs, num_stations, check_connectivity,
|
||||
setup_configuration, client_type):
|
||||
"""
|
||||
BRIDGE Mode OWE-Transition: OWE client connects to SSID in OWE mode
|
||||
marker:- client_connectivity_tests and bridge and owe_transition and twog and owe_client
|
||||
"""
|
||||
profile_data = {"ssid_name": "ssid_owe_transition_2g_br", "appliedRadios": ["2G"], "security_key": ""}
|
||||
ssid_name = profile_data["ssid_name"]
|
||||
security_key = "[BLANK]"
|
||||
security = "owe"
|
||||
mode = "BRIDGE"
|
||||
band = "twog"
|
||||
|
||||
passes, result = get_test_library.client_connectivity_test(
|
||||
ssid=ssid_name, security=security,
|
||||
dut_data=setup_configuration,
|
||||
passkey=security_key, mode=mode, band=band,
|
||||
num_sta=num_stations, client_type=client_type, extra_sta_rows=["security"]
|
||||
)
|
||||
assert passes == "PASS", result
|
||||
|
||||
@pytest.mark.owe_transition
|
||||
@pytest.mark.twog
|
||||
@pytest.mark.non_owe_client
|
||||
@pytest.mark.ow_regression_lf
|
||||
@pytest.mark.owe_owe_transition
|
||||
@allure.story('OWE-Transition 2.4 GHZ Band - Non-OWE Client')
|
||||
@allure.title("BRIDGE Mode OWE-Transition: Non-OWE client connects to SSID in open mode")
|
||||
@allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-13673", name="WIFI-13673")
|
||||
def test_bridge_owe_transition_2g_non_owe_client(self, get_test_library, get_dut_logs_per_test_case,
|
||||
get_test_device_logs, num_stations, check_connectivity,
|
||||
setup_configuration, client_type):
|
||||
"""
|
||||
BRIDGE Mode OWE-Transition: Non-OWE client connects to SSID in open mode
|
||||
marker:- client_connectivity_tests and bridge and owe_transition and twog and non_owe_client
|
||||
"""
|
||||
profile_data = {"ssid_name": "ssid_owe_transition_2g_br", "appliedRadios": ["2G"], "security_key": ""}
|
||||
ssid_name = profile_data["ssid_name"]
|
||||
security_key = "[BLANK]"
|
||||
security = "open"
|
||||
mode = "BRIDGE"
|
||||
band = "twog"
|
||||
|
||||
passes, result = get_test_library.client_connectivity_test(
|
||||
ssid=ssid_name, security=security,
|
||||
dut_data=setup_configuration,
|
||||
passkey=security_key, mode=mode, band=band,
|
||||
num_sta=num_stations, client_type=client_type, extra_sta_rows=["security"]
|
||||
)
|
||||
assert passes == "PASS", result
|
||||
|
||||
@pytest.mark.owe_transition
|
||||
@pytest.mark.fiveg
|
||||
@pytest.mark.owe_client
|
||||
@pytest.mark.ow_regression_lf
|
||||
@pytest.mark.owe_owe_transition
|
||||
@allure.story('OWE-Transition 5 GHZ Band - OWE Client')
|
||||
@allure.title("BRIDGE Mode OWE-Transition: OWE client connects to hidden SSID")
|
||||
@allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-13674", name="WIFI-13674")
|
||||
def test_bridge_owe_transition_5g_owe_client(self, get_test_library, get_dut_logs_per_test_case,
|
||||
get_test_device_logs, num_stations, check_connectivity,
|
||||
setup_configuration, client_type):
|
||||
"""
|
||||
BRIDGE Mode OWE-Transition: OWE client connects to SSID in OWE mode
|
||||
marker:- client_connectivity_tests and bridge and owe_transition and fiveg and owe_client
|
||||
"""
|
||||
profile_data = {"ssid_name": "ssid_owe_transition_5g_br", "appliedRadios": ["5G"], "security_key": ""}
|
||||
ssid_name = profile_data["ssid_name"]
|
||||
security_key = "[BLANK]"
|
||||
security = "owe"
|
||||
mode = "BRIDGE"
|
||||
band = "fiveg"
|
||||
|
||||
passes, result = get_test_library.client_connectivity_test(
|
||||
ssid=ssid_name, security=security,
|
||||
dut_data=setup_configuration,
|
||||
passkey=security_key, mode=mode, band=band,
|
||||
num_sta=num_stations, client_type=client_type, extra_sta_rows=["security"]
|
||||
)
|
||||
assert passes == "PASS", result
|
||||
|
||||
@pytest.mark.owe_transition
|
||||
@pytest.mark.fiveg
|
||||
@pytest.mark.non_owe_client
|
||||
@pytest.mark.ow_regression_lf
|
||||
@pytest.mark.owe_owe_transition
|
||||
@allure.story('OWE-Transition 5 GHZ Band - Non-OWE Client')
|
||||
@allure.title("BRIDGE Mode OWE-Transition: Non-OWE client connects to SSID in open mode")
|
||||
@allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-13673", name="WIFI-13673")
|
||||
def test_bridge_owe_transition_5g_non_owe_client(self, get_test_library, get_dut_logs_per_test_case,
|
||||
get_test_device_logs, num_stations, check_connectivity,
|
||||
setup_configuration, client_type):
|
||||
"""
|
||||
BRIDGE Mode OWE-Transition: Non-OWE client connects to SSID in open mode
|
||||
marker:- client_connectivity_tests and bridge and owe_transition and fiveg and non_owe_client
|
||||
"""
|
||||
profile_data = {"ssid_name": "ssid_owe_transition_5g_br", "appliedRadios": ["5G"], "security_key": ""}
|
||||
ssid_name = profile_data["ssid_name"]
|
||||
security_key = "[BLANK]"
|
||||
security = "open"
|
||||
mode = "BRIDGE"
|
||||
band = "fiveg"
|
||||
|
||||
passes, result = get_test_library.client_connectivity_test(
|
||||
ssid=ssid_name, security=security,
|
||||
dut_data=setup_configuration,
|
||||
passkey=security_key, mode=mode, band=band,
|
||||
num_sta=num_stations, client_type=client_type, extra_sta_rows=["security"]
|
||||
)
|
||||
assert passes == "PASS", result
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -467,3 +467,281 @@ class TestNatModeConnectivitySuiteTwo(object):
|
||||
num_sta=num_stations, client_type=client_type)
|
||||
|
||||
assert passes == "PASS", result
|
||||
|
||||
|
||||
setup_params_owe_br = {
|
||||
"mode": "NAT",
|
||||
"ssid_modes": {
|
||||
"owe": [
|
||||
{"ssid_name": "ssid_owe_2g_br", "appliedRadios": ["2G"], "security_key": "something"},
|
||||
{"ssid_name": "ssid_owe_5g_br", "appliedRadios": ["5G"], "security_key": "something"},
|
||||
{"ssid_name": "ssid_owe_6g_br", "appliedRadios": ["6G"], "security_key": "something"},
|
||||
|
||||
]
|
||||
},
|
||||
"rf": {},
|
||||
"radius": False
|
||||
}
|
||||
|
||||
|
||||
@allure.feature("Client Connectivity")
|
||||
@allure.parent_suite("Client Connectivity Tests")
|
||||
@allure.suite(suite_name="NAT Mode")
|
||||
@allure.sub_suite(sub_suite_name="OWE security mode Client Connectivity")
|
||||
@pytest.mark.parametrize(
|
||||
'setup_configuration',
|
||||
[setup_params_owe_br],
|
||||
indirect=True,
|
||||
scope="class"
|
||||
)
|
||||
@pytest.mark.usefixtures("setup_configuration")
|
||||
class TestNatModeConnectivityOWE(object):
|
||||
"""
|
||||
NAT Client Connectivity (OWE)
|
||||
pytest -m "client_connectivity_tests and nat and owe"
|
||||
"""
|
||||
|
||||
@pytest.mark.owe
|
||||
@pytest.mark.twog
|
||||
@pytest.mark.ow_regression_lf
|
||||
@pytest.mark.owe_owe_transition
|
||||
@allure.story('OWE 2.4 GHZ Band')
|
||||
@allure.title("NAT Mode Client Connectivity Test with OWE encryption 2.4 GHz Band")
|
||||
@allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-13669", name="WIFI-13669")
|
||||
def test_nat_owe_2g_client_connectivity(self, get_test_library, get_dut_logs_per_test_case,
|
||||
get_test_device_logs, num_stations, check_connectivity,
|
||||
setup_configuration, client_type):
|
||||
"""
|
||||
NAT Mode Client Connectivity Test with OWE encryption 2.4 GHz Band
|
||||
marker:- client_connectivity_tests and nat and owe and twog
|
||||
"""
|
||||
profile_data = {"ssid_name": "ssid_owe_2g_br", "appliedRadios": ["2G"], "security_key": ""}
|
||||
ssid_name = profile_data["ssid_name"]
|
||||
security_key = "[BLANK]"
|
||||
security = "owe"
|
||||
mode = "NAT-WAN"
|
||||
band = "twog"
|
||||
|
||||
passes, result = get_test_library.client_connectivity_test(
|
||||
ssid=ssid_name, security=security,
|
||||
dut_data=setup_configuration,
|
||||
passkey=security_key, mode=mode, band=band,
|
||||
num_sta=num_stations, client_type=client_type, extra_sta_rows=["security"]
|
||||
)
|
||||
assert passes == "PASS", result
|
||||
|
||||
@pytest.mark.owe
|
||||
@pytest.mark.fiveg
|
||||
@pytest.mark.ow_regression_lf
|
||||
@pytest.mark.owe_owe_transition
|
||||
@allure.story('OWE 5 GHZ Band')
|
||||
@allure.title("NAT Mode Client Connectivity Test with OWE encryption 5 GHz Band")
|
||||
@allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-13669", name="WIFI-13669")
|
||||
def test_nat_owe_5g_client_connectivity(self, get_test_library, get_dut_logs_per_test_case,
|
||||
get_test_device_logs, num_stations, check_connectivity,
|
||||
setup_configuration, client_type):
|
||||
"""
|
||||
NAT Mode Client Connectivity Test with OWE encryption 5 GHz Band
|
||||
marker:- client_connectivity_tests and nat and owe and fiveg
|
||||
"""
|
||||
profile_data = {"ssid_name": "ssid_owe_5g_br", "appliedRadios": ["5G"], "security_key": ""}
|
||||
ssid_name = profile_data["ssid_name"]
|
||||
security_key = "[BLANK]"
|
||||
security = "owe"
|
||||
mode = "NAT-WAN"
|
||||
band = "fiveg"
|
||||
|
||||
passes, result = get_test_library.client_connectivity_test(
|
||||
ssid=ssid_name, security=security,
|
||||
dut_data=setup_configuration,
|
||||
passkey=security_key, mode=mode, band=band,
|
||||
num_sta=num_stations, client_type=client_type, extra_sta_rows=["security"]
|
||||
)
|
||||
assert passes == "PASS", result
|
||||
|
||||
@pytest.mark.owe
|
||||
@pytest.mark.twog
|
||||
@pytest.mark.sixg
|
||||
@pytest.mark.ow_regression_lf
|
||||
@pytest.mark.owe_owe_transition
|
||||
@allure.story('OWE 6 GHZ Band')
|
||||
@allure.title("NAT Mode Client Connectivity Test with OWE encryption 6 GHz Band")
|
||||
@allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-13669", name="WIFI-13669")
|
||||
def test_nat_owe_6g_client_connectivity(self, get_test_library, get_dut_logs_per_test_case,
|
||||
get_test_device_logs, num_stations, check_connectivity,
|
||||
setup_configuration, client_type):
|
||||
"""
|
||||
NAT Mode Client Connectivity Test with OWE encryption 6 GHz Band
|
||||
marker:- client_connectivity_tests and nat and owe and sixg
|
||||
"""
|
||||
profile_data = {"ssid_name": "ssid_owe_6g_br", "appliedRadios": ["6G"], "security_key": ""}
|
||||
ssid_name = profile_data["ssid_name"]
|
||||
security_key = "[BLANK]"
|
||||
security = "owe"
|
||||
mode = "NAT-WAN"
|
||||
band = "sixg"
|
||||
|
||||
passes, result = get_test_library.client_connectivity_test(
|
||||
ssid=ssid_name, security=security,
|
||||
dut_data=setup_configuration,
|
||||
passkey=security_key, mode=mode, band=band,
|
||||
num_sta=num_stations, client_type=client_type, extra_sta_rows=["security"]
|
||||
)
|
||||
assert passes == "PASS", result
|
||||
|
||||
|
||||
setup_params_owe_transition_br = {
|
||||
"mode": "NAT",
|
||||
"ssid_modes": {
|
||||
"owe_transition": [
|
||||
{"ssid_name": "ssid_owe_transition_2g_br", "appliedRadios": ["2G"], "security_key": "something"},
|
||||
{"ssid_name": "ssid_owe_transition_5g_br", "appliedRadios": ["5G"], "security_key": "something"}
|
||||
|
||||
|
||||
]
|
||||
},
|
||||
"rf": {},
|
||||
"radius": False
|
||||
}
|
||||
|
||||
|
||||
@allure.feature("Client Connectivity")
|
||||
@allure.parent_suite("Client Connectivity Tests")
|
||||
@allure.suite(suite_name="NAT Mode")
|
||||
@allure.sub_suite(sub_suite_name="OWE-Transition security mode Client Connectivity")
|
||||
@pytest.mark.parametrize(
|
||||
'setup_configuration',
|
||||
[setup_params_owe_transition_br],
|
||||
indirect=True,
|
||||
scope="class"
|
||||
)
|
||||
@pytest.mark.usefixtures("setup_configuration")
|
||||
class TestNatModeConnectivityOWETransition(object):
|
||||
"""
|
||||
NAT Client Connectivity (OWE-Transition)
|
||||
pytest -m "client_connectivity_tests and nat and owe_transition"
|
||||
"""
|
||||
|
||||
@pytest.mark.owe_transition
|
||||
@pytest.mark.twog
|
||||
@pytest.mark.owe_client
|
||||
@pytest.mark.ow_regression_lf
|
||||
@pytest.mark.owe_owe_transition
|
||||
@allure.story('OWE-Transition 2.4 GHZ Band - OWE Client')
|
||||
@allure.title("NAT Mode OWE-Transition: OWE client connects to hidden SSID")
|
||||
@allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-13674", name="WIFI-13674")
|
||||
def test_nat_owe_transition_2g_owe_client(self, get_test_library, get_dut_logs_per_test_case,
|
||||
get_test_device_logs, num_stations, check_connectivity,
|
||||
setup_configuration, client_type):
|
||||
"""
|
||||
NAT Mode OWE-Transition: OWE client connects to SSID in OWE mode
|
||||
marker:- client_connectivity_tests and nat and owe_transition and twog and owe_client
|
||||
"""
|
||||
profile_data = {"ssid_name": "ssid_owe_transition_2g_br", "appliedRadios": ["2G"], "security_key": ""}
|
||||
ssid_name = profile_data["ssid_name"]
|
||||
security_key = "[BLANK]"
|
||||
security = "owe"
|
||||
mode = "NAT-WAN"
|
||||
band = "twog"
|
||||
|
||||
passes, result = get_test_library.client_connectivity_test(
|
||||
ssid=ssid_name, security=security,
|
||||
dut_data=setup_configuration,
|
||||
passkey=security_key, mode=mode, band=band,
|
||||
num_sta=num_stations, client_type=client_type, extra_sta_rows=["security"]
|
||||
)
|
||||
assert passes == "PASS", result
|
||||
|
||||
@pytest.mark.owe_transition
|
||||
@pytest.mark.twog
|
||||
@pytest.mark.non_owe_client
|
||||
@pytest.mark.ow_regression_lf
|
||||
@pytest.mark.owe_owe_transition
|
||||
@allure.story('OWE-Transition 2.4 GHZ Band - Non-OWE Client')
|
||||
@allure.title("NAT Mode OWE-Transition: Non-OWE client connects to SSID in open mode")
|
||||
@allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-13673", name="WIFI-13673")
|
||||
def test_nat_owe_transition_2g_non_owe_client(self, get_test_library, get_dut_logs_per_test_case,
|
||||
get_test_device_logs, num_stations, check_connectivity,
|
||||
setup_configuration, client_type):
|
||||
"""
|
||||
NAT Mode OWE-Transition: Non-OWE client connects to SSID in open mode
|
||||
marker:- client_connectivity_tests and nat and owe_transition and twog and non_owe_client
|
||||
"""
|
||||
profile_data = {"ssid_name": "ssid_owe_transition_2g_br", "appliedRadios": ["2G"], "security_key": ""}
|
||||
ssid_name = profile_data["ssid_name"]
|
||||
security_key = "[BLANK]"
|
||||
security = "open"
|
||||
mode = "NAT-WAN"
|
||||
band = "twog"
|
||||
|
||||
passes, result = get_test_library.client_connectivity_test(
|
||||
ssid=ssid_name, security=security,
|
||||
dut_data=setup_configuration,
|
||||
passkey=security_key, mode=mode, band=band,
|
||||
num_sta=num_stations, client_type=client_type, extra_sta_rows=["security"]
|
||||
)
|
||||
assert passes == "PASS", result
|
||||
|
||||
@pytest.mark.owe_transition
|
||||
@pytest.mark.fiveg
|
||||
@pytest.mark.owe_client
|
||||
@pytest.mark.ow_regression_lf
|
||||
@pytest.mark.owe_owe_transition
|
||||
@allure.story('OWE-Transition 5 GHZ Band - OWE Client')
|
||||
@allure.title("NAT Mode OWE-Transition: OWE client connects to hidden SSID")
|
||||
@allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-13674", name="WIFI-13674")
|
||||
def test_nat_owe_transition_5g_owe_client(self, get_test_library, get_dut_logs_per_test_case,
|
||||
get_test_device_logs, num_stations, check_connectivity,
|
||||
setup_configuration, client_type):
|
||||
"""
|
||||
NAT Mode OWE-Transition: OWE client connects to SSID in OWE mode
|
||||
marker:- client_connectivity_tests and nat and owe_transition and fiveg and owe_client
|
||||
"""
|
||||
profile_data = {"ssid_name": "ssid_owe_transition_5g_br", "appliedRadios": ["5G"], "security_key": ""}
|
||||
ssid_name = profile_data["ssid_name"]
|
||||
security_key = "[BLANK]"
|
||||
security = "owe"
|
||||
mode = "NAT-WAN"
|
||||
band = "fiveg"
|
||||
|
||||
passes, result = get_test_library.client_connectivity_test(
|
||||
ssid=ssid_name, security=security,
|
||||
dut_data=setup_configuration,
|
||||
passkey=security_key, mode=mode, band=band,
|
||||
num_sta=num_stations, client_type=client_type, extra_sta_rows=["security"]
|
||||
)
|
||||
assert passes == "PASS", result
|
||||
|
||||
@pytest.mark.owe_transition
|
||||
@pytest.mark.fiveg
|
||||
@pytest.mark.non_owe_client
|
||||
@pytest.mark.ow_regression_lf
|
||||
@pytest.mark.owe_owe_transition
|
||||
@allure.story('OWE-Transition 5 GHZ Band - Non-OWE Client')
|
||||
@allure.title("NAT Mode OWE-Transition: Non-OWE client connects to SSID in open mode")
|
||||
@allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-13673", name="WIFI-13673")
|
||||
def test_nat_owe_transition_5g_non_owe_client(self, get_test_library, get_dut_logs_per_test_case,
|
||||
get_test_device_logs, num_stations, check_connectivity,
|
||||
setup_configuration, client_type):
|
||||
"""
|
||||
NAT Mode OWE-Transition: Non-OWE client connects to SSID in open mode
|
||||
marker:- client_connectivity_tests and nat and owe_transition and fiveg and non_owe_client
|
||||
"""
|
||||
profile_data = {"ssid_name": "ssid_owe_transition_5g_br", "appliedRadios": ["5G"], "security_key": ""}
|
||||
ssid_name = profile_data["ssid_name"]
|
||||
security_key = "[BLANK]"
|
||||
security = "open"
|
||||
mode = "NAT-WAN"
|
||||
band = "fiveg"
|
||||
|
||||
passes, result = get_test_library.client_connectivity_test(
|
||||
ssid=ssid_name, security=security,
|
||||
dut_data=setup_configuration,
|
||||
passkey=security_key, mode=mode, band=band,
|
||||
num_sta=num_stations, client_type=client_type, extra_sta_rows=["security"]
|
||||
)
|
||||
assert passes == "PASS", result
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user