Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Changed profile data format for the test cases #852

Merged
merged 1 commit into from
Oct 12, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,22 +1,23 @@
"""
Rate LImiting with radius Bridge Mode Scenario
"""
import time

import allure
import pytest
import importlib

lf_library = importlib.import_module("configuration")
RATE_LIMITING_RADIUS_SERVER_DATA = {
"ip": "18.189.85.200",
"ip": "10.28.3.21",
"port": 1812,
"secret": "testing123",
"user": "bandwidth10m",
"password": "password",
"pk_password": "whatever"
}
RATE_LIMITING_RADIUS_ACCOUNTING_DATA = {
"ip": "18.189.85.200",
"ip": "10.28.3.21",
"port": 1813,
"secret": "testing123",
"user": "bandwidth10m",
Expand Down Expand Up @@ -232,7 +233,13 @@ def test_radius_server_2g_upload_download_persta_perclient_rate(self, get_test_l
get_target_object,
num_stations, setup_configuration, rate_radius_info,
rate_radius_accounting_info, check_connectivity):
profile_data = setup_params_general["ssid_modes"]["wpa2_enterprise"][0]
profile_data = {"ssid_name": "ssid_wpa2_2g_br",
"appliedRadios": ["2G"],
"security_key": "something",
"rate-limit": {
"ingress-rate": 10,
"egress-rate": 10
}}
ssid_name = profile_data["ssid_name"]
mode = "BRIDGE"
security = "wpa2"
Expand Down Expand Up @@ -270,7 +277,13 @@ def test_radius_server_fiveg_per_ssid_download(self, get_test_library, get_dut_l
get_target_object,
num_stations, setup_configuration, rate_radius_info,
rate_radius_accounting_info, check_connectivity):
profile_data = setup_params_general["ssid_modes"]["wpa2_enterprise"][1]
profile_data = {"ssid_name": "ssid_wpa2_5g_br",
"appliedRadios": ["5G"],
"security_key": "something",
"rate-limit": {
"ingress-rate": 10,
"egress-rate": 10
}}
ssid_name = profile_data["ssid_name"]
mode = "BRIDGE"
security = "wpa2"
Expand Down Expand Up @@ -308,7 +321,13 @@ def test_radius_server_fiveg_per_ssid_upload(self, get_test_library, get_dut_log
get_target_object,
num_stations, setup_configuration, rate_radius_info,
rate_radius_accounting_info, check_connectivity):
profile_data = setup_params_general["ssid_modes"]["wpa2_enterprise"][1]
profile_data = {"ssid_name": "ssid_wpa2_5g_br",
"appliedRadios": ["5G"],
"security_key": "something",
"rate-limit": {
"ingress-rate": 10,
"egress-rate": 10
}}
ssid_name = profile_data["ssid_name"]
mode = "BRIDGE"
security = "wpa2"
Expand Down Expand Up @@ -346,7 +365,13 @@ def test_radius_server_fiveg_per_ssid_perclient_download(self, get_test_library,
get_target_object,
num_stations, setup_configuration, rate_radius_info,
rate_radius_accounting_info, check_connectivity):
profile_data = setup_params_general["ssid_modes"]["wpa2_enterprise"][1]
profile_data = {"ssid_name": "ssid_wpa2_5g_br",
"appliedRadios": ["5G"],
"security_key": "something",
"rate-limit": {
"ingress-rate": 10,
"egress-rate": 10
}}
ssid_name = profile_data["ssid_name"]
mode = "BRIDGE"
security = "wpa2"
Expand Down Expand Up @@ -384,7 +409,13 @@ def test_radius_server_fiveg_per_ssid_perclient_upstream(self, get_test_library,
get_target_object,
num_stations, setup_configuration, rate_radius_info,
rate_radius_accounting_info, check_connectivity):
profile_data = setup_params_general["ssid_modes"]["wpa2_enterprise"][1]
profile_data = {"ssid_name": "ssid_wpa2_5g_br",
"appliedRadios": ["5G"],
"security_key": "something",
"rate-limit": {
"ingress-rate": 10,
"egress-rate": 10
}}
ssid_name = profile_data["ssid_name"]
mode = "BRIDGE"
security = "wpa2"
Expand Down Expand Up @@ -425,7 +456,13 @@ def test_radius_server_fiveg_per_ssid_perclient_upstream_downstream(self, get_te
rate_radius_info,
rate_radius_accounting_info,
check_connectivity):
profile_data = setup_params_general["ssid_modes"]["wpa2_enterprise"][1]
profile_data = {"ssid_name": "ssid_wpa2_5g_br",
"appliedRadios": ["5G"],
"security_key": "something",
"rate-limit": {
"ingress-rate": 10,
"egress-rate": 10
}}
ssid_name = profile_data["ssid_name"]
mode = "BRIDGE"
security = "wpa2"
Expand Down Expand Up @@ -464,7 +501,13 @@ def test_radius_server_2g_per_ssid(self, get_test_library, get_dut_logs_per_test
get_target_object,
num_stations, setup_configuration, rate_radius_info,
rate_radius_accounting_info, check_connectivity):
profile_data = setup_params_general["ssid_modes"]["wpa2_enterprise"][0]
profile_data = {"ssid_name": "ssid_wpa2_2g_br",
"appliedRadios": ["2G"],
"security_key": "something",
"rate-limit": {
"ingress-rate": 10,
"egress-rate": 10
}}
ssid_name = profile_data["ssid_name"]
mode = "BRIDGE"
security = "wpa2"
Expand Down Expand Up @@ -503,7 +546,13 @@ def test_radius_server_fiveg_per_ssid(self, get_test_library, get_dut_logs_per_t
get_target_object,
num_stations, setup_configuration, rate_radius_info,
rate_radius_accounting_info, check_connectivity):
profile_data = setup_params_general["ssid_modes"]["wpa2_enterprise"][1]
profile_data = {"ssid_name": "ssid_wpa2_5g_br",
"appliedRadios": ["5G"],
"security_key": "something",
"rate-limit": {
"ingress-rate": 10,
"egress-rate": 10
}}
ssid_name = profile_data["ssid_name"]
mode = "BRIDGE"
security = "wpa2"
Expand Down Expand Up @@ -542,7 +591,13 @@ def test_radius_server_2g_per_ssid_per_client(self, get_test_library, get_dut_lo
get_target_object,
num_stations, setup_configuration, rate_radius_info,
rate_radius_accounting_info, check_connectivity):
profile_data = setup_params_general["ssid_modes"]["wpa2_enterprise"][0]
profile_data = {"ssid_name": "ssid_wpa2_2g_br",
"appliedRadios": ["2G"],
"security_key": "something",
"rate-limit": {
"ingress-rate": 10,
"egress-rate": 10
}}
ssid_name = profile_data["ssid_name"]
mode = "BRIDGE"
security = "wpa2"
Expand Down Expand Up @@ -581,7 +636,13 @@ def test_radius_server_fiveg_per_ssid_per_client(self, get_test_library, get_dut
get_target_object,
num_stations, setup_configuration, rate_radius_info,
rate_radius_accounting_info, check_connectivity):
profile_data = setup_params_general["ssid_modes"]["wpa2_enterprise"][1]
profile_data = {"ssid_name": "ssid_wpa2_5g_br",
"appliedRadios": ["5G"],
"security_key": "something",
"rate-limit": {
"ingress-rate": 10,
"egress-rate": 10
}}
ssid_name = profile_data["ssid_name"]
mode = "BRIDGE"
security = "wpa2"
Expand Down Expand Up @@ -620,7 +681,13 @@ def test_radius_server_2g_per_ssid_downstream(self, get_test_library, get_dut_lo
get_target_object,
num_stations, setup_configuration, rate_radius_info,
rate_radius_accounting_info, check_connectivity):
profile_data = setup_params_general["ssid_modes"]["wpa2_enterprise"][0]
profile_data = {"ssid_name": "ssid_wpa2_2g_br",
"appliedRadios": ["2G"],
"security_key": "something",
"rate-limit": {
"ingress-rate": 10,
"egress-rate": 10
}}
ssid_name = profile_data["ssid_name"]
mode = "BRIDGE"
security = "wpa2"
Expand Down Expand Up @@ -663,7 +730,13 @@ def test_radius_server_ratelimit_maxupload_groupuser1_2g(self, get_test_library,
Test: check max-upload ratelimit of group - user1
pytest -m "wpa2_enterprise and twog and max_upload_user1"
"""
profile_data = setup_params_general["ssid_modes"]["wpa2_enterprise"][0]
profile_data = {"ssid_name": "ssid_wpa2_2g_br",
"appliedRadios": ["2G"],
"security_key": "something",
"rate-limit": {
"ingress-rate": 10,
"egress-rate": 10
}}
ssid_name = profile_data["ssid_name"]
mode = "BRIDGE"
security = "wpa2"
Expand Down Expand Up @@ -720,7 +793,13 @@ def test_radius_server_ratelimit_maxdownload_groupuser1_2g(self, get_test_librar
Test: check max-download ratelimit of group - user1
pytest -m "wpa2_enterprise and twog and max_download_user1"
"""
profile_data = setup_params_general["ssid_modes"]["wpa2_enterprise"][0]
profile_data = {"ssid_name": "ssid_wpa2_2g_br",
"appliedRadios": ["2G"],
"security_key": "something",
"rate-limit": {
"ingress-rate": 10,
"egress-rate": 10
}}
ssid_name = profile_data["ssid_name"]
mode = "BRIDGE"
security = "wpa2"
Expand Down Expand Up @@ -777,7 +856,13 @@ def test_radius_server_ratelimit_maxupload_groupuser2_2g(self, get_test_library,
Test: check max-upload ratelimit of group - user2
pytest -m "wpa2_enterprise and twog and max_upload_user2"
"""
profile_data = setup_params_general["ssid_modes"]["wpa2_enterprise"][0]
profile_data = {"ssid_name": "ssid_wpa2_2g_br",
"appliedRadios": ["2G"],
"security_key": "something",
"rate-limit": {
"ingress-rate": 10,
"egress-rate": 10
}}
ssid_name = profile_data["ssid_name"]
mode = "BRIDGE"
security = "wpa2"
Expand Down Expand Up @@ -834,7 +919,13 @@ def test_radius_server_ratelimit_maxdownload_groupuser2_2g(self, get_test_librar
Test: check max-download ratelimit of group - user2
pytest -m "wpa2_enterprise and twog and max_download_user2"
"""
profile_data = setup_params_general["ssid_modes"]["wpa2_enterprise"][0]
profile_data = {"ssid_name": "ssid_wpa2_2g_br",
"appliedRadios": ["2G"],
"security_key": "something",
"rate-limit": {
"ingress-rate": 10,
"egress-rate": 10
}}
ssid_name = profile_data["ssid_name"]
mode = "BRIDGE"
security = "wpa2"
Expand Down Expand Up @@ -891,7 +982,13 @@ def test_radius_server_ratelimit_maxupload_groupuser3_2g(self, get_test_library,
Test: check max-download ratelimit of group - user3
pytest -m "wpa2_enterprise and twog and max_upload_user3"
"""
profile_data = setup_params_general["ssid_modes"]["wpa2_enterprise"][0]
profile_data = {"ssid_name": "ssid_wpa2_2g_br",
"appliedRadios": ["2G"],
"security_key": "something",
"rate-limit": {
"ingress-rate": 10,
"egress-rate": 10
}}
ssid_name = profile_data["ssid_name"]
mode = "BRIDGE"
security = "wpa2"
Expand Down Expand Up @@ -947,7 +1044,13 @@ def test_radius_server_ratelimit_maxdownload_groupuser3_2g(self, get_test_librar
Test: check max-download ratelimit of group - user3
pytest -m "wpa2_enterprise and twog and max_download_user3"
"""
profile_data = setup_params_general["ssid_modes"]["wpa2_enterprise"][0]
profile_data = {"ssid_name": "ssid_wpa2_2g_br",
"appliedRadios": ["2G"],
"security_key": "something",
"rate-limit": {
"ingress-rate": 10,
"egress-rate": 10
}}
ssid_name = profile_data["ssid_name"]
mode = "BRIDGE"
security = "wpa2"
Expand Down Expand Up @@ -1004,7 +1107,13 @@ def test_radius_server_ratelimit_maxupload_groupuser4_2g(self, get_test_library,
Test: check max-upload ratelimit of group - user4
pytest -m "wpa2_enterprise and twog and max_upload_user4"
"""
profile_data = setup_params_general["ssid_modes"]["wpa2_enterprise"][0]
profile_data = {"ssid_name": "ssid_wpa2_2g_br",
"appliedRadios": ["2G"],
"security_key": "something",
"rate-limit": {
"ingress-rate": 10,
"egress-rate": 10
}}
ssid_name = profile_data["ssid_name"]
mode = "BRIDGE"
security = "wpa2"
Expand Down Expand Up @@ -1061,7 +1170,13 @@ def test_radius_server_ratelimit_maxdownload_groupuser4_2g(self, get_test_librar
Test: check max-download ratelimit of group - user4
pytest -m "wpa2_enterprise and twog and max_download_user4"
"""
profile_data = setup_params_general["ssid_modes"]["wpa2_enterprise"][0]
profile_data = {"ssid_name": "ssid_wpa2_2g_br",
"appliedRadios": ["2G"],
"security_key": "something",
"rate-limit": {
"ingress-rate": 10,
"egress-rate": 10
}}
ssid_name = profile_data["ssid_name"]
mode = "BRIDGE"
security = "wpa2"
Expand Down