@@ -130,124 +130,3 @@ def test_client_wpa2_2g_vlan2(self, get_test_library, get_dut_logs_per_test_case
130130 passkey = security_key ,
131131 encryption = security , mode = mode , num_sta = 1 , dut_data = setup_configuration )
132132 assert True
133-
134-
135-
136- setup_params_general = {
137- "mode" : "BRIDGE" ,
138- "ssid_modes" : {
139- "wpa2_personal" : [
140- {"ssid_name" : "OpenWifi-roam" ,
141- "appliedRadios" : ["2G" , "5G" ],
142- "security" : "psk2" ,
143- "security_key" : "OpenWifi" ,
144- "multi-psk" : [
145- {"key" : "aaaaaaaa" },
146- {"key" : "bbbbbbbb" }
147- ],
148- "roaming" : True ,
149- "rrm" : {
150- "reduced-neighbor-reporting" : True
151- }
152- }
153- ],
154- "wpa3_personal" : [
155- {"ssid_name" : "OpenWifi-roam" ,
156- "appliedRadios" : ["6G" ],
157- "security" : "sae" ,
158- "security_key" : "OpenWifi" ,
159- "roaming" : True ,
160- "rrm" : {
161- "reduced-neighbor-reporting" : True
162- }
163- }
164- ]
165- },
166- "rf" : {
167- "2G" : {
168- "band" : "2G" ,
169- "channel-width" : 20 ,
170- "channel-mode" : "EHT" ,
171- "channel" : "auto"
172- },
173- "5G" : {
174- "band" : "5G" ,
175- "channel-width" : 80 ,
176- "channel-mode" : "EHT" ,
177- "channel" : 36
178- },
179- "6G" : {
180- "band" : "6G" ,
181- "channel-width" : 320 ,
182- "channel-mode" : "EHT" ,
183- "channel" : 33
184- }
185- },
186- "radius" : False
187- }
188-
189- testbed_details_global = None
190- dut_data = {}
191-
192- @pytest .fixture (scope = "class" )
193- def setup_initial_configuration (request ):
194- """Calls setup_testbed automatically before tests"""
195- global setup_params_general
196- global dut_data
197- logging .info (f"Setup Params Assigned: { setup_params_general } " )
198-
199- requested_combination = [['2G' , 'wpa2_personal' ], ['5G' , 'wpa2_personal' ], ['6G' , 'wpa3_personal' ]]
200-
201- logging .info (f"requested_combination:::{ requested_combination } " )
202- get_target_obj = request .getfixturevalue ("get_target_object" )
203- logging .info ("ready to start setup_basic_configuration" )
204- logging .info (f"setup_params_general value before start:{ setup_params_general } " )
205- dut_data = get_target_obj .setup_basic_configuration (configuration = setup_params_general ,
206- requested_combination = requested_combination )
207-
208- logging .info (f"setup_basic_configuration dut data:{ dut_data } " )
209-
210- @allure .feature ("MultiPsk Test" )
211- @allure .parent_suite ("MultiPsk Test" )
212- @allure .suite ("BRIDGE Mode" )
213- @allure .sub_suite ("WPA2 Security" )
214- class TestEmpsk6GBridgeWPA2 (object ):
215-
216- # @pytest.mark.wpa3_personal
217- # @pytest.mark.wpa2_personal
218- # @pytest.mark.sixg
219- # @pytest.mark.twog
220- # @pytest.mark.fiveg
221- @pytest .mark .empsk
222- @allure .testcase (url = "https://telecominfraproject.atlassian.net/browse/WIFI-14423" , name = "WIFI-14423" )
223- @allure .title ("Test E-MPSK with WPA2 to WPA3 on 6GHz" )
224- def test_client_wpa2_wpa3_6g_empsk (self , setup_initial_configuration , get_test_library ,get_target_object ,
225- check_connectivity , get_testbed_details ):
226- """
227- Verify E-MPSK working in BRIDGE mode:
228- - Client connects on 2.4/5GHz (WPA2 and WPA3)
229- - Encryption is changed from WPA2 to WPA3 (disable WPA2)
230- - Verify client successfully get an IP and associate to AP
231- """
232- profile_data = {
233- "ssid_name" : "OpenWifi-roam" ,
234- "appliedRadios" : ["2G" ],
235- "security" : "psk2" ,
236- "security_key" : "OpenWifi" ,
237- "multi-psk" : [
238- {"key" : "aaaaaaaa" },
239- {"key" : "bbbbbbbb" }
240- ]
241- }
242- ssid = profile_data ["ssid_name" ]
243- security = "wpa2"
244- mode = "BRIDGE"
245- band = "twog"
246- num_sta = 1
247- security_key = profile_data ["multi-psk" ][0 ]["key" ]
248- sta_data = get_test_library .empsk_test (ssid = ssid , passkey = security_key , security = security , is_bw320 = True ,
249- mode = mode , band = band , pre_cleanup = True , num_sta = num_sta ,
250- scan_ssid = True , dut_data = dut_data , extra_securities = ["wpa3" ],
251- allure_attach = True )
252-
253- logging .info (f"sta_data{ sta_data } " )
0 commit comments