mirror of
https://github.com/Telecominfraproject/wlan-testing.git
synced 2025-12-25 06:57:14 +00:00
fixed the logic for client_connectivity tests nat-lan mode
Signed-off-by: shivam <shivam.thakur@candelatech.com>
This commit is contained in:
@@ -1148,4 +1148,4 @@ if __name__ == '__main__':
|
||||
d = var.setup_basic_configuration(configuration=setup_params_enterprise, requested_combination=target)
|
||||
print(d)
|
||||
# var.setup_firmware()
|
||||
# var.teardown_objects()
|
||||
# var.teardown_objects()
|
||||
@@ -404,4 +404,4 @@ class TestBridgeModeConnectivitySuiteTwo(object):
|
||||
passkey=security_key, mode=mode, band=band,
|
||||
num_sta=num_stations)
|
||||
|
||||
assert passes == "PASS", result
|
||||
assert passes == "PASS", result
|
||||
|
||||
@@ -29,13 +29,13 @@ setup_params_general = {
|
||||
@allure.parent_suite("Client Connectivity Tests")
|
||||
@allure.suite(suite_name="NAT Mode")
|
||||
@allure.sub_suite(sub_suite_name="General security mode Client Connectivity")
|
||||
@pytest.mark.parametrize(
|
||||
'setup_configuration',
|
||||
[setup_params_general],
|
||||
indirect=True,
|
||||
scope="class"
|
||||
)
|
||||
@pytest.mark.usefixtures("setup_configuration")
|
||||
# @pytest.mark.parametrize(
|
||||
# 'setup_configuration',
|
||||
# [setup_params_general],
|
||||
# indirect=True,
|
||||
# scope="class"
|
||||
# )
|
||||
# @pytest.mark.usefixtures("setup_configuration")
|
||||
class TestNatModeConnectivitySuiteA(object):
|
||||
"""
|
||||
NAT Client Connectivity (open. wpa. wpa2_personal) (twog, fiveg)
|
||||
@@ -48,9 +48,13 @@ class TestNatModeConnectivitySuiteA(object):
|
||||
@pytest.mark.parametrize('execution_number', range(2))
|
||||
@allure.title("NAT Mode Client Connectivity Test with open encryption 2.4 GHz Band")
|
||||
@allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-2809", name="JIRA LINK")
|
||||
<<<<<<< HEAD
|
||||
def test_nat_open_2g_client_connectivity(self, get_test_library, execution_number, num_stations,
|
||||
get_dut_logs_per_test_case, get_test_device_logs,
|
||||
check_connectivity, setup_configuration):
|
||||
=======
|
||||
def test_nat_open_2g_client_connectivity(self, get_test_library, execution_number, num_stations):
|
||||
>>>>>>> fixed the logic for client_connectivity tests nat-lan mode
|
||||
"""
|
||||
NAT Mode Client Connectivity Test with open encryption 2.4 GHz Band
|
||||
pytest -m "client_connectivity_tests and nat and general and open and twog"
|
||||
@@ -64,8 +68,10 @@ class TestNatModeConnectivitySuiteA(object):
|
||||
if execution_number == 1:
|
||||
mode = "NAT-LAN"
|
||||
band = "twog"
|
||||
dut = {'0000c1018812': [['ssid_open_2g_nat', 'open', 'something', '2G', '6A:21:5F:DA:45:6F'],
|
||||
{'2G': [6, 40, 2437], '5G': None, '6G': None}]}
|
||||
passes, result = get_test_library.client_connectivity_test(ssid=ssid_name, security=security,
|
||||
dut_data=setup_configuration,
|
||||
dut_data=dut,
|
||||
passkey=security_key, mode=mode, band=band,
|
||||
num_sta=num_stations)
|
||||
|
||||
|
||||
@@ -444,4 +444,4 @@ class TestVLANModeConnectivitySuiteTwo(object):
|
||||
passkey=security_key, mode=mode, band=band,
|
||||
num_sta=num_stations, vlan_id=vlan)
|
||||
|
||||
assert passes == "PASS", result
|
||||
assert passes == "PASS", result
|
||||
|
||||
@@ -330,4 +330,4 @@
|
||||
},
|
||||
"open_flow": {},
|
||||
"influx_params": {}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user