Skip to content

Commit e50b0ba

Browse files
bhargavi-ctbhargavi-ct
andauthored
Update EMPSK sub_suite in allure report (#1068)
Signed-off-by: bhargavi-ct <bhargavimamidipaka@candelatech.com> Co-authored-by: bhargavi-ct <bhargavimamidipaka@candelatech.com>
1 parent 7507b39 commit e50b0ba

3 files changed

Lines changed: 132 additions & 121 deletions

File tree

tests/e2e/basic/validation_of_operating_modes/bridge_mode/multi_psk/wpa2_security/test_multipsk_basic_wpa2.py

Lines changed: 0 additions & 121 deletions
Original file line numberDiff line numberDiff line change
@@ -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}")

tests/e2e/basic/validation_of_operating_modes/bridge_mode/multi_psk/wpa3_security/__init__.py

Whitespace-only changes.
Lines changed: 132 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,132 @@
1+
import json
2+
import logging
3+
from datetime import time
4+
5+
import allure
6+
import pytest
7+
import requests
8+
9+
pytestmark = [pytest.mark.multi_psk_tests,
10+
pytest.mark.bridge,
11+
pytest.mark.wpa3_personal,
12+
pytest.mark.sixg,
13+
pytest.mark.ow_sanity_lf]
14+
15+
setup_params_general = {
16+
"mode": "BRIDGE",
17+
"ssid_modes": {
18+
"wpa2_personal": [
19+
{"ssid_name": "OpenWifi-roam",
20+
"appliedRadios": ["2G", "5G"],
21+
"security": "psk2",
22+
"security_key": "OpenWifi",
23+
"multi-psk": [
24+
{"key": "aaaaaaaa"},
25+
{"key": "bbbbbbbb"}
26+
],
27+
"roaming": True,
28+
"rrm": {
29+
"reduced-neighbor-reporting": True
30+
}
31+
}
32+
],
33+
"wpa3_personal": [
34+
{"ssid_name": "OpenWifi-roam",
35+
"appliedRadios": ["6G"],
36+
"security": "sae",
37+
"security_key": "OpenWifi",
38+
"roaming": True,
39+
"rrm": {
40+
"reduced-neighbor-reporting": True
41+
}
42+
}
43+
]
44+
},
45+
"rf": {
46+
"2G": {
47+
"band": "2G",
48+
"channel-width": 20,
49+
"channel-mode": "EHT",
50+
"channel": "auto"
51+
},
52+
"5G": {
53+
"band": "5G",
54+
"channel-width": 80,
55+
"channel-mode": "EHT",
56+
"channel": 36
57+
},
58+
"6G": {
59+
"band": "6G",
60+
"channel-width": 320,
61+
"channel-mode": "EHT",
62+
"channel": 33
63+
}
64+
},
65+
"radius": False
66+
}
67+
68+
testbed_details_global = None
69+
dut_data = {}
70+
71+
@pytest.fixture(scope="class")
72+
def setup_initial_configuration(request):
73+
"""Calls setup_initial_configuration automatically before tests"""
74+
global setup_params_general
75+
global dut_data
76+
logging.info(f"Setup Params Assigned: {setup_params_general}")
77+
78+
requested_combination = [['2G', 'wpa2_personal'], ['5G', 'wpa2_personal'], ['6G', 'wpa3_personal']]
79+
80+
logging.info(f"requested_combination:::{requested_combination}")
81+
get_target_obj = request.getfixturevalue("get_target_object")
82+
logging.info("ready to start setup_basic_configuration")
83+
logging.info(f"setup_params_general value before start:{setup_params_general}")
84+
dut_data = get_target_obj.setup_basic_configuration(configuration=setup_params_general,
85+
requested_combination=requested_combination)
86+
87+
logging.info(f"setup_basic_configuration dut data:{dut_data}")
88+
89+
@allure.feature("MultiPsk Test")
90+
@allure.parent_suite("MultiPsk Test")
91+
@allure.suite("BRIDGE Mode")
92+
@allure.sub_suite("WPA3 Security")
93+
class TestEmpsk6GBridgeWPA3(object):
94+
95+
# @pytest.mark.wpa3_personal
96+
# @pytest.mark.wpa2_personal
97+
# @pytest.mark.sixg
98+
# @pytest.mark.twog
99+
# @pytest.mark.fiveg
100+
@pytest.mark.empsk
101+
@allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-14423", name="WIFI-14423")
102+
@allure.title("Test E-MPSK with WPA2 to WPA3 on 6GHz")
103+
def test_client_wpa2_wpa3_6g_empsk(self, setup_initial_configuration, get_test_library,get_target_object,
104+
check_connectivity, get_testbed_details):
105+
"""
106+
Verify E-MPSK working in BRIDGE mode:
107+
- Client connects on 2.4/5GHz (WPA2 and WPA3)
108+
- Encryption is changed from WPA2 to WPA3 (disable WPA2)
109+
- Verify client successfully get an IP and associate to AP
110+
"""
111+
profile_data = {
112+
"ssid_name": "OpenWifi-roam",
113+
"appliedRadios": ["2G"],
114+
"security": "psk2",
115+
"security_key": "OpenWifi",
116+
"multi-psk": [
117+
{"key": "aaaaaaaa"},
118+
{"key": "bbbbbbbb"}
119+
]
120+
}
121+
ssid = profile_data["ssid_name"]
122+
security = "wpa2"
123+
mode = "BRIDGE"
124+
band = "twog"
125+
num_sta = 1
126+
security_key = profile_data["multi-psk"][0]["key"]
127+
sta_data = get_test_library.empsk_test(ssid=ssid, passkey=security_key, security=security, is_bw320=True,
128+
mode=mode, band=band, pre_cleanup=True, num_sta=num_sta,
129+
scan_ssid=True, dut_data=dut_data, extra_securities = ["wpa3"],
130+
allure_attach=True)
131+
132+
logging.info(f"sta_data{sta_data}")

0 commit comments

Comments
 (0)