From 7e53c6c65ea36e4064e8771b7dbd9df96c11671a Mon Sep 17 00:00:00 2001 From: Anil Kumar Tegala Date: Wed, 23 Oct 2024 12:05:49 +0530 Subject: [PATCH] Add hot reload config test (Tx-Power parameter) (#1004) * add DFS paramter config test case Signed-off-by: anil-tegala * add Tx-Power paramter config test case Signed-off-by: anil-tegala * Revert "add Tx-Power paramter config test case" This reverts commit 6c484213b70b4893d55e4a05c535afa215c31fba. * add Tx-Power paramter config test case Signed-off-by: anil-tegala --------- Signed-off-by: anil-tegala --- .../test_hot_config_reload_bridge.py | 33 +++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/tests/e2e/basic/hot_configuration_reloads/wpa2_personal/test_hot_config_reload_bridge.py b/tests/e2e/basic/hot_configuration_reloads/wpa2_personal/test_hot_config_reload_bridge.py index 12535a314..7edabf329 100644 --- a/tests/e2e/basic/hot_configuration_reloads/wpa2_personal/test_hot_config_reload_bridge.py +++ b/tests/e2e/basic/hot_configuration_reloads/wpa2_personal/test_hot_config_reload_bridge.py @@ -150,3 +150,36 @@ class TestHotReloadConfigSuite(object): assert passes == "PASS", result + + @pytest.mark.wpa2_personal + @pytest.mark.fiveg + @pytest.mark.tx_power + @allure.story('wpa2_personal 5 GHZ Band') + @allure.title("BRIDGE Mode Hot Reload with wpa2_personal encryption 5 GHz Band(TX power Parameter)") + @allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-12779", name="WIFI-12779") + def test_hot_config_reload_tx_power(self, get_test_library, get_test_device_logs, + get_testbed_details, + get_dut_logs_per_test_case, get_target_object, + num_stations, check_connectivity, setup_configuration, + client_type): + """ + Test Description: The hot reload config feature allows real-time configuration updates without restarting services, minimizing downtime and service disruptions. It’s essential for maintaining continuous operation, especially in critical systems or environments with frequent updates. This feature enhances flexibility, improves scalability, and reduces the risk of human error. Here Tx-Power is the exception where on modifying this, service should not get restart. + Marker: + hot_reload and bridge and general and wpa2_personal and fiveg and tx_power + """ + print("----------------setup_configuration:", setup_configuration) + profile_data = {"ssid_name": "OpenWifi", "appliedRadios": ["5G"], "security_key": "OpenWifi"} + ssid_name = profile_data["ssid_name"] + security_key = profile_data["security_key"] + security = "wpa2" + mode = "BRIDGE" + band = "fiveg" + reconfig = "tx_power" + # Hot Reload Configuration + passes, result = get_test_library.hot_config_reload_test(ssid=ssid_name, security=security, + dut_data=setup_configuration, + passkey=security_key, mode=mode, band=band, + num_sta=num_stations, tip_2x_obj=get_target_object, + reconfig=reconfig) + assert passes == "PASS", result +