Merge pull request #163 from Telecominfraproject/WIFI-3913

Fixed Vlan Mode for Wpa2 in dataplane Throughput test
This commit is contained in:
Shivam Thakur
2021-09-13 00:14:10 +05:30
committed by GitHub
4 changed files with 22 additions and 19 deletions

View File

@@ -36,9 +36,11 @@ class TestDataplaneThroughputBRIDGE(object):
pytest -m "dataplane_throughput_test and BRIDGE"
"""
@allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-3913", name="WIFI-3913")
@pytest.mark.wpa2_personal
@pytest.mark.twog
def test_tcp_upd_2g_band(self, get_vif_state, lf_tools,
def test_tcp_upd_wpa2_personal_bridge_2g_band(self, get_vif_state, lf_tools,
lf_test, station_names_twog, create_lanforge_chamberview_dut,
get_configuration):
"""Dataplane THroughput BRIDGE Mode
@@ -70,9 +72,11 @@ class TestDataplaneThroughputBRIDGE(object):
else:
assert False
@allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-3914", name="WIFI-3914")
@pytest.mark.wpa2_personal
@pytest.mark.fiveg
def test_tcp_upd_5g_band(self, get_vif_state, lf_tools,
def test_tcp_upd_wpa2_personal_bridge_5g_band(self, get_vif_state, lf_tools,
lf_test, station_names_fiveg, create_lanforge_chamberview_dut, get_configuration):
"""Dataplane THroughput BRIDGE Mode
pytest -m "dataplane_throughput_test and BRIDGE and wpa2_personal and fiveg"

View File

@@ -36,10 +36,11 @@ class TestDataplaneThroughputNAT(object):
"""Dataplane THroughput nat Mode
pytest -m "dataplane_throughput_test and nat"
"""
@allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-3913", name="WIFI-3913")
@pytest.mark.wpa2_personal
@pytest.mark.twog
def test_tcp_upd_2g_band(self, get_vif_state, lf_tools,
def test_tcp_upd_wpa2_personal_nat_2g_band(self, get_vif_state, lf_tools,
lf_test, station_names_twog, create_lanforge_chamberview_dut,
get_configuration):
"""Dataplane THroughput nat Mode
@@ -71,9 +72,10 @@ class TestDataplaneThroughputNAT(object):
else:
assert False
@allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-3914", name="WIFI-3914")
@pytest.mark.wpa2_personal
@pytest.mark.fiveg
def test_tcp_upd_5g_band(self, get_vif_state, lf_tools,
def test_tcp_upd_wpa2_personal_nat_5g_band(self, get_vif_state, lf_tools,
lf_test, station_names_fiveg, create_lanforge_chamberview_dut, get_configuration):
"""Dataplane THroughput nat Mode
pytest -m "dataplane_throughput_test and nat and wpa2_personal and fiveg"

View File

@@ -1,7 +1,8 @@
"""
Performance Test: Dataplane Throughput Test: VLAN Mode
pytest -m "dataplane_throughput_test and VLAN"
pytest -m "dataplane_throughput_test and vlan"
"""
import os
@@ -11,6 +12,7 @@ import allure
pytestmark = [pytest.mark.performance,
pytest.mark.vlan]
setup_params_general = {
"mode": "VLAN",
"ssid_modes": {
@@ -31,25 +33,19 @@ setup_params_general = {
scope="class"
)
@pytest.mark.usefixtures("setup_profiles")
@pytest.mark.parametrize(
'create_vlan',
[setup_params_general],
indirect=True,
scope="class"
)
@pytest.mark.usefixtures("create_vlan")
class TestDataplaneThroughputVLAN(object):
"""Dataplane THroughput VLAN Mode
pytest -m "dataplane_throughput_test and VLAN"
pytest -m "dataplane_throughput_test and vlan"
"""
@allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-3913", name="WIFI-3913")
@pytest.mark.wpa2_personal
@pytest.mark.twog
def test_tcp_upd_2g_band(self, get_vif_state, lf_tools,
def test_tcp_upd_wpa2_personal_vlan_2g_band(self, get_vif_state, lf_tools,
lf_test, station_names_twog, create_lanforge_chamberview_dut,
get_configuration):
"""Dataplane THroughput VLAN Mode
pytest -m "dataplane_throughput_test and VLAN and wpa2_personal and twog"
pytest -m "dataplane_throughput_test and vlan and wpa2_personal and twog"
"""
profile_data = setup_params_general["ssid_modes"]["wpa2_personal"][0]
ssid_name = profile_data["ssid_name"]
@@ -77,12 +73,13 @@ class TestDataplaneThroughputVLAN(object):
else:
assert False
@allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-3914", name="WIFI-3914")
@pytest.mark.wpa2_personal
@pytest.mark.fiveg
def test_tcp_upd_5g_band(self, get_vif_state, lf_tools,
def test_tcp_upd_wpa2_personal_vlan_5g_band(self, get_vif_state, lf_tools,
lf_test, station_names_fiveg, create_lanforge_chamberview_dut, get_configuration):
"""Dataplane THroughput VLAN Mode
pytest -m "dataplane_throughput_test and VLAN and wpa2_personal and fiveg"
pytest -m "dataplane_throughput_test and vlan and wpa2_personal and fiveg"
"""
profile_data = setup_params_general["ssid_modes"]["wpa2_personal"][1]
ssid_name = profile_data["ssid_name"]