diff --git a/tests/configuration.py b/tests/configuration.py index 6114bce47..1eab6693e 100644 --- a/tests/configuration.py +++ b/tests/configuration.py @@ -126,10 +126,10 @@ CONFIGURATION = { 'mode': 'wifi5', 'serial': '001122090801', 'jumphost': True, - 'ip': "127.0.0.1", + 'ip': "10.28.3.100", 'username': "lanforge", 'password': "pumpkin77", - 'port': 8833, + 'port': 22, 'jumphost_tty': '/dev/ttyAP3', 'version': "https://tip.jfrog.io/artifactory/tip-wlan-ap-firmware/uCentral/tplink_ec420/20210728-tplink_ec420-uCentral-trunk-12ad0d5-upgrade.bin" } @@ -552,7 +552,7 @@ CONFIGURATION = { RADIUS_SERVER_DATA = { - "ip": "10.10.10.72", + "ip": "10.10.10.180", "port": 1812, "secret": "testing123", "user": "user", @@ -561,7 +561,7 @@ RADIUS_SERVER_DATA = { } RADIUS_ACCOUNTING_DATA = { - "ip": "10.10.10.72", + "ip": "10.10.10.180", "port": 1813, "secret": "testing123", "user": "user", diff --git a/tests/e2e/basic/performance_tests/dataplane_throughput_test/wpa3_security/__init__.py b/tests/e2e/basic/performance_tests/dataplane_throughput_test/wpa3_security/__init__.py new file mode 100644 index 000000000..e69de29bb diff --git a/tests/e2e/basic/performance_tests/dataplane_throughput_test/wpa3_security/test_bridge_mode.py b/tests/e2e/basic/performance_tests/dataplane_throughput_test/wpa3_security/test_bridge_mode.py new file mode 100644 index 000000000..46bb4b4e4 --- /dev/null +++ b/tests/e2e/basic/performance_tests/dataplane_throughput_test/wpa3_security/test_bridge_mode.py @@ -0,0 +1,106 @@ +""" + + Performance Test: Dataplane Throughput Test: BRIDGE Mode + pytest -m "dataplane_throughput_test and wpa3 and bridge" + +""" +import os +import pytest +import allure + +pytestmark = [pytest.mark.performance, pytest.mark.dataplane_throughput_test, + pytest.mark.bridge] # , pytest.mark.usefixtures("setup_test_run")] + +setup_params_general = { + "mode": "BRIDGE", + "ssid_modes": { + "wpa3_personal": [ + {"ssid_name": "ssid_wpa3_2g", "appliedRadios": ["2G"], "security_key": "something"}, + {"ssid_name": "ssid_wpa3_5g", "appliedRadios": ["5G"], "security_key": "something"}]}, + "rf": {}, + "radius": False +} + + +@allure.suite("performance") +@allure.feature("BRIDGE MODE Dataplane Throughput Test") +@pytest.mark.parametrize( + 'setup_profiles', + [setup_params_general], + indirect=True, + scope="class" +) +@pytest.mark.usefixtures("setup_profiles") +class TestDataplaneThroughputBRIDGE(object): + """Dataplane THroughput BRIDGE Mode + pytest -m "dataplane_throughput_test and wpa3_personal bridge" + """ + @allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-3677", name="WIFI-3677") + @pytest.mark.wpa3_personal + @pytest.mark.twog + def test_tcp_upd_wpa3_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 + pytest -m "dataplane_throughput_test and bridge and wpa3_personal and twog" + """ + profile_data = setup_params_general["ssid_modes"]["wpa3_personal"][0] + ssid_name = profile_data["ssid_name"] + security_key = profile_data["security_key"] + security = "wpa3" + mode = "BRIDGE" + band = "twog" + vlan = 1 + dut_name = create_lanforge_chamberview_dut + if ssid_name not in get_vif_state: + allure.attach(name="retest,vif state ssid not available:", body=str(get_vif_state)) + pytest.xfail("SSID NOT AVAILABLE IN VIF STATE") + station = lf_test.Client_Connect(ssid=ssid_name, security=security, + passkey=security_key, mode=mode, band=band, + station_name=station_names_twog, vlan_id=vlan) + + if station: + dp_obj = lf_test.dataplane(station_name=station_names_twog, mode=mode, + instance_name="TIP_DPT_DPT_WPA3_2G_BRIDGE", + vlan_id=vlan, dut_name=dut_name) + report_name = dp_obj.report_name[0]['LAST']["response"].split(":::")[1].split("/")[-1] + lf_tools.attach_report_graphs(report_name=report_name, pdf_name="Dataplane Throughput WPA3 Personal Test - TCP-UDP 2.4G") + lf_test.Client_disconnect(station_name=station_names_twog) + assert station + else: + assert False + + @allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-3678", name="WIFI-3678") + @pytest.mark.wpa3_personal + @pytest.mark.fiveg + def test_tcp_upd_wpa3_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 wpa3_personal and fiveg" + """ + profile_data = setup_params_general["ssid_modes"]["wpa3_personal"][1] + ssid_name = profile_data["ssid_name"] + security_key = profile_data["security_key"] + security = "wpa3" + mode = "BRIDGE" + band = "fiveg" + vlan = 1 + dut_name = create_lanforge_chamberview_dut + if ssid_name not in get_vif_state: + allure.attach(name="retest,vif state ssid not available:", body=str(get_vif_state)) + pytest.xfail("SSID NOT AVAILABLE IN VIF STATE") + station = lf_test.Client_Connect(ssid=ssid_name, security=security, + passkey=security_key, mode=mode, band=band, + station_name=station_names_fiveg, vlan_id=vlan) + + if station: + dp_obj = lf_test.dataplane(station_name=station_names_fiveg, mode=mode, + instance_name="TIP_DPT_DPT_WPA3_5G_BRIDGE", + vlan_id=vlan, dut_name=dut_name) + report_name = dp_obj.report_name[0]['LAST']["response"].split(":::")[1].split("/")[-1] + lf_tools.attach_report_graphs(report_name=report_name, pdf_name="Dataplane Throughput WPA3 Personal Test - TCP-UDP 5G") + print("Test Completed... Cleaning up Stations") + lf_test.Client_disconnect(station_name=station_names_fiveg) + assert station + else: + assert False \ No newline at end of file diff --git a/tests/e2e/basic/performance_tests/dataplane_throughput_test/wpa3_security/test_nat_mode.py b/tests/e2e/basic/performance_tests/dataplane_throughput_test/wpa3_security/test_nat_mode.py new file mode 100644 index 000000000..56a64b3b0 --- /dev/null +++ b/tests/e2e/basic/performance_tests/dataplane_throughput_test/wpa3_security/test_nat_mode.py @@ -0,0 +1,104 @@ +""" + + Performance Test: Dataplane Throughput Test: nat Mode + pytest -m "dataplane_throughput_test and and wpa3 nat" + +""" +import os +import pytest +import allure + +pytestmark = [pytest.mark.performance, pytest.mark.dataplane_throughput_test, pytest.mark.nat] + +setup_params_general = { + "mode": "NAT", + "ssid_modes": { + "wpa3_personal": [ + {"ssid_name": "ssid_wpa3_2g", "appliedRadios": ["2G"], "security_key": "something"}, + {"ssid_name": "ssid_wpa3_5g", "appliedRadios": ["5G"], "security_key": "something"}]}, + "rf": {}, + "radius": False +} +@allure.suite("performance") +@allure.feature("BRIDGE MODE Dataplane Throughput Test") +@allure.feature("NAT MODE CLIENT CONNECTIVITY") +@pytest.mark.parametrize( + 'setup_profiles', + [setup_params_general], + indirect=True, + scope="class" +) +@pytest.mark.usefixtures("setup_profiles") +class TestDataplaneThroughputNAT(object): + """Dataplane THroughput nat Mode + pytest -m "dataplane_throughput_test and wpa3_personal and nat" + """ + + @allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-3677", name="WIFI-3677") + @pytest.mark.wpa3_personal + @pytest.mark.twog + def test_tcp_upd_wpa3_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 + pytest -m "dataplane_throughput_test and nat and wpa3_personal and twog" + """ + profile_data = setup_params_general["ssid_modes"]["wpa3_personal"][0] + ssid_name = profile_data["ssid_name"] + security_key = profile_data["security_key"] + security = "wpa3" + mode = "NAT" + band = "twog" + vlan = 1 + dut_name = create_lanforge_chamberview_dut + if ssid_name not in get_vif_state: + allure.attach(name="retest,vif state ssid not available:", body=str(get_vif_state)) + pytest.xfail("SSID NOT AVAILABLE IN VIF STATE") + station = lf_test.Client_Connect(ssid=ssid_name, security=security, + passkey=security_key, mode=mode, band=band, + station_name=station_names_twog, vlan_id=vlan) + + if station: + dp_obj = lf_test.dataplane(station_name=station_names_twog, mode=mode, + instance_name="TIP_DPT_DPT_WPA3_2G_NAT", + vlan_id=vlan, dut_name=dut_name) + report_name = dp_obj.report_name[0]['LAST']["response"].split(":::")[1].split("/")[-1] + lf_tools.attach_report_graphs(report_name=report_name, pdf_name="Dataplane Throughput WPA3 Personal Test - TCP-UDP 2.4G") + lf_test.Client_disconnect(station_name=station_names_twog) + assert station + else: + assert False + @allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-3678", name="WIFI-3678") + @pytest.mark.wpa3_personal + @pytest.mark.fiveg + def test_tcp_upd_wpa3_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 wpa3_personal and fiveg" + """ + profile_data = setup_params_general["ssid_modes"]["wpa3_personal"][1] + ssid_name = profile_data["ssid_name"] + security_key = profile_data["security_key"] + security = "wpa3" + mode = "NAT" + band = "fiveg" + vlan = 1 + dut_name = create_lanforge_chamberview_dut + if ssid_name not in get_vif_state: + allure.attach(name="retest,vif state ssid not available:", body=str(get_vif_state)) + pytest.xfail("SSID NOT AVAILABLE IN VIF STATE") + station = lf_test.Client_Connect(ssid=ssid_name, security=security, + passkey=security_key, mode=mode, band=band, + station_name=station_names_fiveg, vlan_id=vlan) + + if station: + dp_obj = lf_test.dataplane(station_name=station_names_fiveg, mode=mode, + instance_name="TIP_DPT_DPT_WPA3_5G_NAT", + vlan_id=vlan, dut_name=dut_name) + report_name = dp_obj.report_name[0]['LAST']["response"].split(":::")[1].split("/")[-1] + lf_tools.attach_report_graphs(report_name=report_name, pdf_name="Dataplane Throughput WPA3 Personal Test - TCP-UDP 5G") + print("Test Completed... Cleaning up Stations") + lf_test.Client_disconnect(station_name=station_names_fiveg) + assert station + else: + assert False \ No newline at end of file diff --git a/tests/e2e/basic/performance_tests/dataplane_throughput_test/wpa3_security/test_vlan_mode.py b/tests/e2e/basic/performance_tests/dataplane_throughput_test/wpa3_security/test_vlan_mode.py new file mode 100644 index 000000000..111202b41 --- /dev/null +++ b/tests/e2e/basic/performance_tests/dataplane_throughput_test/wpa3_security/test_vlan_mode.py @@ -0,0 +1,106 @@ +""" + + Performance Test: Dataplane Throughput Test: VLAN Mode + pytest -m "dataplane_throughput_test and vlan" + +""" +import os +import pytest +import allure + +pytestmark = [pytest.mark.performance, pytest.mark.dataplane_throughput_test, pytest.mark.vlan] + +setup_params_general = { + "mode": "VLAN", + "ssid_modes": { + "wpa3_personal": [ + {"ssid_name": "ssid_wpa3_2g", "appliedRadios": ["2G"], "security_key": "something", "vlan": 100}, + {"ssid_name": "ssid_wpa3_5g", "appliedRadios": ["5G"], "security_key": "something", "vlan": 100}]}, + "rf": {}, + "radius": False +} + + +@allure.suite("performance") +@allure.feature("VLAN MODE Dataplane Throughput Test") +@pytest.mark.parametrize( + 'setup_profiles', + [setup_params_general], + indirect=True, + scope="class" +) +@pytest.mark.usefixtures("setup_profiles") +class TestDataplaneThroughputVLAN(object): + """Dataplane THroughput VLAN Mode + pytest -m "dataplane_throughput_test and wpa3_personal and vlan" + """ + + @allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-3677", name="WIFI-3677") + @pytest.mark.wpa3_personal + @pytest.mark.twog + def test_tcp_upd_wpa3_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 wpa3_personal and twog" + """ + profile_data = setup_params_general["ssid_modes"]["wpa3_personal"][0] + ssid_name = profile_data["ssid_name"] + security_key = profile_data["security_key"] + security = "wpa3" + mode = "VLAN" + band = "twog" + vlan = 100 + dut_name = create_lanforge_chamberview_dut + if ssid_name not in get_vif_state: + allure.attach(name="retest,vif state ssid not available:", body=str(get_vif_state)) + pytest.xfail("SSID NOT AVAILABLE IN VIF STATE") + station = lf_test.Client_Connect(ssid=ssid_name, security=security, + passkey=security_key, mode=mode, band=band, + station_name=station_names_twog, vlan_id=vlan) + + if station: + dp_obj = lf_test.dataplane(station_name=station_names_twog, mode=mode, + instance_name="TIP_DPT_DPT_WPA3_2G_VLAN", + vlan_id=vlan, dut_name=dut_name) + report_name = dp_obj.report_name[0]['LAST']["response"].split(":::")[1].split("/")[-1] + lf_tools.attach_report_graphs(report_name=report_name, pdf_name="Dataplane Throughput WPA3 Personal Test - TCP-UDP 2.4G") + lf_test.Client_disconnect(station_name=station_names_twog) + assert station + else: + assert False + + @allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-3678", name="WIFI-3678") + @pytest.mark.wpa3_personal + @pytest.mark.fiveg + def test_tcp_upd_wpa3_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 wpa3_personal and fiveg" + """ + profile_data = setup_params_general["ssid_modes"]["wpa3_personal"][1] + ssid_name = profile_data["ssid_name"] + security_key = profile_data["security_key"] + security = "wpa3" + mode = "VLAN" + band = "fiveg" + vlan = 100 + dut_name = create_lanforge_chamberview_dut + if ssid_name not in get_vif_state: + allure.attach(name="retest,vif state ssid not available:", body=str(get_vif_state)) + pytest.xfail("SSID NOT AVAILABLE IN VIF STATE") + station = lf_test.Client_Connect(ssid=ssid_name, security=security, + passkey=security_key, mode=mode, band=band, + station_name=station_names_fiveg, vlan_id=vlan) + + if station: + dp_obj = lf_test.dataplane(station_name=station_names_fiveg, mode=mode, + instance_name="TIP_DPT_DPT_WPA3_5G_VLAN", + vlan_id=vlan, dut_name=dut_name) + report_name = dp_obj.report_name[0]['LAST']["response"].split(":::")[1].split("/")[-1] + lf_tools.attach_report_graphs(report_name=report_name, pdf_name="Dataplane Throughput WPA3 Personal Test - TCP-UDP 5G") + print("Test Completed... Cleaning up Stations") + lf_test.Client_disconnect(station_name=station_names_fiveg) + assert station + else: + assert False \ No newline at end of file