blob: 265f282b2145f71d93beec94a9edcf181b7e3227 [file] [log] [blame]
meghagn62945e22021-10-04 02:33:17 -05001*** Settings ***
2
3Documentation Test OpenBMC GUI "SNMP Alerts" sub-menu of "Settings".
4
Rahul Maheshwaric27708e2021-12-21 06:35:27 -06005Resource ../../../lib/snmp/redfish_snmp_utils.robot
Megha G Nb9ae25a2023-01-27 06:25:00 -06006Resource ../../../lib/snmp/resource.robot
7Resource ../../lib/gui_resource.robot
Megha G N2a31e512023-01-18 04:23:20 -06008Resource ../../lib/bmc_network_utils.robot
meghagn705c3642021-10-12 04:14:02 -05009
meghagn62945e22021-10-04 02:33:17 -050010Suite Setup Suite Setup Execution
11Suite Teardown Close Browser
12
13
14*** Variables ***
15
meghagn705c3642021-10-12 04:14:02 -050016${xpath_snmp_alerts_sub_menu} //*[@data-test-id='nav-item-snmp-alerts']
rramyasr-ine71ba072022-06-13 11:12:06 -050017${xpath_snmp_alerts_heading} //h1[text()="SNMP alerts"]
meghagn705c3642021-10-12 04:14:02 -050018${xpath_select_all_snmp} //*[@data-test-id='snmpAlerts-checkbox-selectAll']
19${xpath_add_destination} //button[contains(text(),'Add destination')]
20${xpath_snmp_alert_destination_heading} //h5[contains(text(),'Add SNMP alert destination')]
21${xpath_ip_address_input_button} //*[@data-test-id='snmpAlerts-input-ipAddress']
22${xpath_port_optional_input_button} //*[@data-test-id='snmpAlerts-input-port']
23${xpath_snmp_add_destination_button} //*[@data-test-id='snmpAlerts-button-ok']
24${xpath_cancel_button} //button[contains(text(),'Cancel')]
25${xpath_delete_button} //*[@data-test-id='snmpAlerts-button-deleteRow-undefined']
26${xpath_delete_destination} //button[contains(text(),'Delete destination')]
meghagn62945e22021-10-04 02:33:17 -050027
Megha GNc7bcf7c2022-08-04 05:30:58 -050028${snmp_page_heading} SNMP alerts
29${invalid_port_error} Value must be between 0 65535
30${invalid_destination_error} Error in adding SNMP alert destination
Megha G Nb9ae25a2023-01-27 06:25:00 -060031${invalid_ip_error} Field required
Megha G N2a31e512023-01-18 04:23:20 -060032${dns_server} 10.10.10.10
Megha GNc7bcf7c2022-08-04 05:30:58 -050033
meghagn62945e22021-10-04 02:33:17 -050034
35*** Test Cases ***
36
37Verify Navigation To SNMP Alerts Page
38 [Documentation] Verify navigation to SNMP alerts page.
39 [Tags] Verify_Navigation_To_SNMP_Alerts_Page
40
41 Page Should Contain Element ${xpath_snmp_alerts_heading}
42
43
44Verify Existence Of All Input Boxes In SNMP Alerts Page
45 [Documentation] Verify existence of all sections in SNMP alerts page.
46 [Tags] Verify_Existence_Of_All_Input_Boxes_In_SNMP_Alerts_Page
47
meghagn705c3642021-10-12 04:14:02 -050048 Page Should Contain Checkbox ${xpath_select_all_snmp}
meghagn62945e22021-10-04 02:33:17 -050049
50
51Verify Existence Of All Buttons In SNMP Alerts Page
52 [Documentation] Verify existence of all buttons in SNMP alerts page.
53 [Tags] Verify_Existence_Of_All_Buttons_In_SNMP_Alerts_Page
54
55 Page should Contain Button ${xpath_add_destination}
56
57
58Verify Existence Of All Fields In Add Destination
59 [Documentation] Verify existence of all buttons and fields in add destination page.
George Keishingd6a77972022-01-31 12:50:29 -060060 [Tags] Verify_Existence_Of_All_Fields_In_Add_Destination
meghagn705c3642021-10-12 04:14:02 -050061 [Teardown] Run Keywords Click Button ${xpath_cancel_button} AND
62 ... Wait Until Keyword Succeeds 10 sec 5 sec
Megha GNc7bcf7c2022-08-04 05:30:58 -050063 ... Refresh GUI And Verify Element Value ${xpath_snmp_alerts_heading} ${snmp_page_heading}
meghagn62945e22021-10-04 02:33:17 -050064
65 Click Element ${xpath_add_destination}
66 Wait Until Page Contains Element ${xpath_snmp_alert_destination_heading}
67 Page Should Contain Element ${xpath_ip_address_input_button}
68 Page Should Contain Element ${xpath_port_optional_input_button}
69 Page Should Contain Element ${xpath_cancel_button}
70 Page Should Contain Element ${xpath_snmp_add_destination_button}
71
72
George Keishingd6a77972022-01-31 12:50:29 -060073Configure SNMP Settings On BMC With Non Default Port Via GUI And Verify
meghagn705c3642021-10-12 04:14:02 -050074 [Documentation] Configure SNMP settings on BMC with non default port via GUI and verify.
75 [Tags] Configure_SNMP_Settings_On_BMC_With_Non_Default_Port_Via_GUI_And_Verify
meghagnfe16be92022-01-28 05:50:19 -060076 [Teardown] Delete SNMP Manager Via GUI ${SNMP_MGR1_IP} ${NON_DEFAULT_PORT1}
meghagn705c3642021-10-12 04:14:02 -050077
78 Configure SNMP Manager Via GUI ${SNMP_MGR1_IP} ${NON_DEFAULT_PORT1}
79
meghagna80e4d42021-12-14 05:46:15 -060080 Wait Until Page Contains ${SNMP_MGR1_IP} timeout=45s
meghagn705c3642021-10-12 04:14:02 -050081
82 Verify SNMP Manager Configured On BMC ${SNMP_MGR1_IP} ${NON_DEFAULT_PORT1}
Megha G N2b98bc02023-01-20 02:01:48 -060083
meghagn705c3642021-10-12 04:14:02 -050084
meghagnc2436bc2021-10-11 03:49:21 -050085Configure SNMP Settings On BMC Via GUI And Verify
86 [Documentation] Configure SNMP settings on BMC via GUI and verify.
87 [Tags] Configure_SNMP_Settings_On_BMC_Via_GUI_And_Verify
meghagnfe16be92022-01-28 05:50:19 -060088 [Teardown] Delete SNMP Manager Via GUI ${SNMP_MGR1_IP} ${SNMP_DEFAULT_PORT}
meghagnc2436bc2021-10-11 03:49:21 -050089
90 Configure SNMP Manager Via GUI ${SNMP_MGR1_IP} ${SNMP_DEFAULT_PORT}
91
meghagna80e4d42021-12-14 05:46:15 -060092 Wait Until Page Contains ${SNMP_MGR1_IP} timeout=45s
meghagnc2436bc2021-10-11 03:49:21 -050093
94 Verify SNMP Manager Configured On BMC ${SNMP_MGR1_IP} ${SNMP_DEFAULT_PORT}
95
96
meghagnd3b19ac2021-10-22 01:09:25 -050097Configure SNMP Settings On BMC With Empty Port Via GUI And Verify
98 [Documentation] Configure SNMP settings on BMC with empty port via GUI and verify.
99 [Tags] Configure_SNMP_Settings_On_BMC_With_Empty_Port_Via_GUI_And_Verify
meghagnfe16be92022-01-28 05:50:19 -0600100 [Teardown] Delete SNMP Manager Via GUI ${SNMP_MGR1_IP} ${SNMP_DEFAULT_PORT}
meghagnd3b19ac2021-10-22 01:09:25 -0500101
102 Configure SNMP Manager Via GUI ${SNMP_MGR1_IP} ${empty_port}
103
meghagna80e4d42021-12-14 05:46:15 -0600104 Wait Until Page Contains ${SNMP_MGR1_IP} timeout=45s
meghagnd3b19ac2021-10-22 01:09:25 -0500105
106 # SNMP Manager IP is set with default port number when no port number is provided.
107 Verify SNMP Manager Configured On BMC ${SNMP_MGR1_IP} ${SNMP_DEFAULT_PORT}
108
109
110Configure Invalid SNMP Settings On BMC Via GUI And Verify
111
112 [Documentation] Configure invalid SNMP settings on BMC via GUI and verify.
113 [Tags] Configure_Invalid_SNMP_Settings_On_BMC_Via_GUI_And_Verify
114 [Template] Configure SNMP Manager On BMC With Invalid Setting Via GUI And Verify
115
116 # snmp_manager_ip snmp_manager_port Expected status
Megha GNc7bcf7c2022-08-04 05:30:58 -0500117 ${SNMP_MGR1_IP} ${out_of_range_port} ${invalid_port_error}
118 ${SNMP_MGR1_IP} ${alpha_port} ${invalid_port_error}
119 ${SNMP_MGR1_IP} ${negative_port} ${invalid_port_error}
Megha G N999964d2022-12-06 04:38:10 -0600120 ${SNMP_MGR1_IP} ${alphanumeric_port} ${invalid_port_error}
Megha G Nb9ae25a2023-01-27 06:25:00 -0600121 ${empty_ip} ${NON_DEFAULT_PORT1} ${invalid_ip_error}
Megha GNc7bcf7c2022-08-04 05:30:58 -0500122 ${out_of_range_ip} ${NON_DEFAULT_PORT1} ${invalid_destination_error}
123 ${alpha_ip} ${NON_DEFAULT_PORT1} ${invalid_destination_error}
Megha G N999964d2022-12-06 04:38:10 -0600124 ${negative_ip} ${NON_DEFAULT_PORT1} ${invalid_destination_error}
Megha G N2b98bc02023-01-20 02:01:48 -0600125 ${less_octet_ip} ${NON_DEFAULT_PORT1} ${invalid_destination_error}
meghagnd3b19ac2021-10-22 01:09:25 -0500126
127
meghagn5a4ddb02021-11-09 01:49:23 -0600128Configure Multiple SNMP Managers On BMC Via GUI And Verify
129 [Documentation] Configure multiple SNMP managers on BMC via GUI and verify.
George Keishingd6a77972022-01-31 12:50:29 -0600130 [Tags] Configure_Multiple_SNMP_Managers_On_BMC_Via_GUI_And_Verify
meghagn5a4ddb02021-11-09 01:49:23 -0600131 [Template] Configure Multiple SNMP Managers On BMC With Valid Port Via GUI And Verify
132
133 # snmp_manager_ip snmp_port
134 ${SNMP_MGR1_IP} ${SNMP_DEFAULT_PORT}
135 ${SNMP_MGR2_IP} ${SNMP_DEFAULT_PORT}
136
137
138Configure Multiple SNMP Managers With Non Default Port Via GUI And Verify
139 [Documentation] Configure multiple SNMP managers with non-default port via GUI and verify.
140 [Tags] Configure_Multiple_SNMP_Managers_With_Non_Default_Port_Via_GUI_And_Verify
141 [Template] Configure Multiple SNMP Managers On BMC With Valid Port Via GUI And Verify
142
143 # snmp_manager_ip snmp_port
144 ${SNMP_MGR1_IP} ${NON_DEFAULT_PORT1}
145 ${SNMP_MGR2_IP} ${NON_DEFAULT_PORT1}
146
147
148Configure Multiple SNMP Managers With Different Ports Via GUI And Verify
149 [Documentation] Configure multiple SNMP managers with different ports via GUI and verify.
150 [Tags] Configure_Multiple_SNMP_Managers_With_Different_Ports_Via_GUI_And_Verify
151 [Template] Configure Multiple SNMP Managers On BMC With Valid Port Via GUI And Verify
152
153 # snmp_manager_ip snmp_port
154 ${SNMP_MGR1_IP} ${NON_DEFAULT_PORT1}
155 ${SNMP_MGR2_IP} ${SNMP_DEFAULT_PORT}
156 ${SNMP_MGR3_IP} ${NON_DEFAULT_PORT2}
157
158
meghagnfe16be92022-01-28 05:50:19 -0600159Configure Multiple SNMP Managers On BMC Via GUI And Verify Persistency On BMC Reboot
160 [Documentation] Login GUI SNMP alerts page and
161 ... add multiple SNMP Managers on BMC via GUI and verify persistency on BMC reboot.
162 [Tags] Configure_Multiple_SNMP_Managers_On_BMC_Via_GUI_And_Verify_Persistency_On_BMC_Reboot
Megha G Ncce57cc2023-02-15 23:40:15 -0600163 [Teardown] Delete Multiple SNMP Managers With Default Port Via GUI ${ip_address_list}
meghagnfe16be92022-01-28 05:50:19 -0600164
Megha G Ncce57cc2023-02-15 23:40:15 -0600165 ${ip_address_list}= Create list ${SNMP_MGR1_IP} ${SNMP_MGR2_IP}
meghagnfe16be92022-01-28 05:50:19 -0600166 Configure SNMP Manager Via GUI ${SNMP_MGR1_IP} ${SNMP_DEFAULT_PORT}
167 Wait Until Page Contains ${SNMP_MGR1_IP} timeout=45s
168
169 Configure SNMP Manager Via GUI ${SNMP_MGR2_IP} ${SNMP_DEFAULT_PORT}
170 Wait Until Page Contains ${SNMP_MGR2_IP} timeout=45s
171
172 # Reboot BMC and check persistency SNMP manager.
173 Reboot BMC via GUI
174
Megha G Ncce57cc2023-02-15 23:40:15 -0600175 Navigate To SNMP Alerts Page
176
meghagnfe16be92022-01-28 05:50:19 -0600177 Verify SNMP Manager Configured On BMC ${SNMP_MGR1_IP} ${SNMP_DEFAULT_PORT}
178 Verify SNMP Manager Configured On BMC ${SNMP_MGR2_IP} ${SNMP_DEFAULT_PORT}
179
180
meghagn725ccdd2022-02-09 04:55:52 -0600181Configure SNMP Manager Via GUI And Verify SNMP Trap
182 [Documentation] Login GUI SNMP alerts page and add SNMP manager via GUI
183 ... and generate error on BMC and verify trap and its fields.
184 [Tags] Configure_SNMP_Manager_Via_GUI_And_Verify_SNMP_Trap
185 [Template] Create Error On BMC And Verify Trap On Default Port
186 [Teardown] Delete SNMP Manager Via GUI ${SNMP_MGR1_IP} ${SNMP_DEFAULT_PORT}
187
188 # event_log expected_error
189
190 # Generate internal failure error.
191 ${CMD_INTERNAL_FAILURE} ${SNMP_TRAP_BMC_INTERNAL_FAILURE}
192
193 # Generate timeout error.
194 ${CMD_FRU_CALLOUT} ${SNMP_TRAP_BMC_CALLOUT_ERROR}
195
196 # Generate informational error.
197 ${CMD_INFORMATIONAL_ERROR} ${SNMP_TRAP_BMC_INFORMATIONAL_ERROR}
198
199
George Keishing354091f2023-02-09 23:13:01 -0600200Configure SNMP Manager By Its Hostname Via GUI And Verify
Megha G N2a31e512023-01-18 04:23:20 -0600201 [Documentation] Login GUI SNMP alerts page and add SNMP manager with its hostname
202 ... via GUI and verify.
203 [Tags] Configure_SNMP_Manager_By_Its_Hostname_Via_GUI_And_Verify
204
205 Set DNS Server IP
206
207 # Navigate to SNMP page and configure SNMP manager.
208 Click Element ${xpath_snmp_alerts_sub_menu}
209 Wait Until Keyword Succeeds 30 sec 10 sec Location Should Contain snmp-alerts
210
211 Configure SNMP Manager Via GUI ${SNMP_HOSTNAME} ${SNMP_DEFAULT_PORT}
Megha G Ncce57cc2023-02-15 23:40:15 -0600212 Wait Until Page Contains ${SNMP_HOSTNAME} timeout=15s
213
214
215Verify Persistency Of SNMP Manager And Trap On BMC Reboot
216 [Documentation] Configure the SNMP manager and verify that it remains operational
217 ... after a BMC system reboot. Also, confirm that a trap is successfully sent.
218 [Tags] Verify_Persistency_Of_SNMP_Manager_And_Trap_On_BMC_Reboot
219 [Template] Create Error On BMC And Verify Trap On Default Port
220 [Teardown] Delete SNMP Manager Via GUI ${SNMP_MGR1_IP} ${SNMP_DEFAULT_PORT}
221
222 # event_log expected_error persistency_check
223
224 # Generate internal failure error.
225 ${CMD_INTERNAL_FAILURE} ${SNMP_TRAP_BMC_INTERNAL_FAILURE} ${True}
226
227 # Generate timeout error.
228 ${CMD_FRU_CALLOUT} ${SNMP_TRAP_BMC_CALLOUT_ERROR} ${True}
229
230 # Generate informational error.
231 ${CMD_INFORMATIONAL_ERROR} ${SNMP_TRAP_BMC_INFORMATIONAL_ERROR} ${True}
Megha G N2a31e512023-01-18 04:23:20 -0600232
233
meghagn62945e22021-10-04 02:33:17 -0500234*** Keywords ***
235
236Suite Setup Execution
237 [Documentation] Do test case setup tasks.
238
239 Launch Browser And Login GUI
240
241 Click Element ${xpath_settings_menu}
242 Click Element ${xpath_snmp_alerts_sub_menu}
243 Wait Until Keyword Succeeds 30 sec 10 sec Location Should Contain snmp-alerts
rramyasr-in9e2c96f2023-01-24 07:59:34 -0600244 Wait Until Element Is Not Visible ${xpath_page_loading_progress_bar} timeout=30
meghagn705c3642021-10-12 04:14:02 -0500245
246Configure SNMP Manager Via GUI
247 [Documentation] Configure SNMP manager via GUI.
248 [Arguments] ${snmp_ip} ${port}
249
250 # Description of argument(s):
251 # snmp_ip SNMP manager IP address.
252 # port SNMP manager port.
253
254 Click Element ${xpath_add_destination}
255 Wait Until Page Contains Element ${xpath_snmp_alert_destination_heading}
256 Input Text ${xpath_ip_address_input_button} ${snmp_ip}
257 Wait Until Keyword Succeeds 30 sec 5 sec Get Value ${xpath_ip_address_input_button}
258 Input Text ${xpath_port_optional_input_button} ${port}
259 Click Element ${xpath_snmp_add_destination_button}
260
261
262Delete SNMP Manager Via GUI
263 [Documentation] Delete SNMP manager via GUI.
meghagnfe16be92022-01-28 05:50:19 -0600264 [Arguments] ${snmp_mgr_ip} ${snmp_mgr_port}
meghagn705c3642021-10-12 04:14:02 -0500265
meghagnfe16be92022-01-28 05:50:19 -0600266 # Description of argument(s):
267 # snmp_mgr_ip SNMP manager IP address.
268 # snmp_mgr_port SNMP manager port.
269
270 Wait Until Page Contains ${snmp_mgr_ip} ${snmp_mgr_port}
meghagn705c3642021-10-12 04:14:02 -0500271 Click Element At Coordinates ${xpath_select_all_snmp} 0 0
272 Wait Until Keyword Succeeds 30 sec 5 sec Click Element ${xpath_delete_button}
273 Wait Until Page Contains Delete SNMP alert destination
274 Click Element ${xpath_delete_destination}
meghagna80e4d42021-12-14 05:46:15 -0600275 Wait Until Page Contains Successfully deleted SNMP alert destination timeout=45s
meghagnc2436bc2021-10-11 03:49:21 -0500276 Wait Until Keyword Succeeds 30 sec 10 sec Refresh GUI And Verify Element Value
Megha GNc7bcf7c2022-08-04 05:30:58 -0500277 ... ${xpath_snmp_alerts_heading} ${snmp_page_heading}
meghagnd3b19ac2021-10-22 01:09:25 -0500278
279
280Configure SNMP Manager On BMC With Invalid Setting Via GUI And Verify
281
282 [Documentation] Configure SNMP manager on BMC with invalid setting via GUI and verify.
283 [Arguments] ${snmp_manager_ip} ${snmp_manager_port} ${expected_error}
Megha G Nb9ae25a2023-01-27 06:25:00 -0600284 [Teardown] Close Add SNMP Alerts Destination Window ${expected_error}
meghagnd3b19ac2021-10-22 01:09:25 -0500285
286 # Description of argument(s):
287 # snmp_manager_ip SNMP manager IP address.
288 # snmp_manager_port SNMP manager port.
289 # expected_error Expected error optionally provided in testcase
290 # .... (e.g. Invalid format / Value must be between 0 – 65535).
291
292 Configure SNMP Manager Via GUI ${snmp_manager_ip} ${snmp_manager_port}
Megha G Ncce57cc2023-02-15 23:40:15 -0600293 Wait Until Page Contains ${expected_error} timeout=10sec
meghagnd3b19ac2021-10-22 01:09:25 -0500294 ${status}= Run Keyword And Return Status
295 ... Verify SNMP Manager Configured On BMC ${snmp_manager_ip} ${snmp_manager_port}
296 Should Be Equal As Strings ${status} False
297 ... msg=BMC is allowing to configure with invalid SNMP settings.
meghagn5a4ddb02021-11-09 01:49:23 -0600298
299
300Configure Multiple SNMP Managers On BMC With Valid Port Via GUI And Verify
301 [Documentation] Configure multiple SNMP managers on BMC with valid port value via GUI and verify.
302 [Arguments] ${snmp_ip_value} ${snmp_port_value}
meghagnfe16be92022-01-28 05:50:19 -0600303 [Teardown] Delete SNMP Manager Via GUI ${snmp_ip_value} ${snmp_port_value}
meghagn5a4ddb02021-11-09 01:49:23 -0600304
305 # Description of argument(s):
306 # snmp_ip_value SNMP manager IP address.
307 # snmp_port_value SNMP manager port.
308
309 Configure SNMP Manager Via GUI ${snmp_ip_value} ${snmp_port_value}
310 Verify SNMP Manager Configured On BMC ${snmp_ip_value} ${snmp_port_value}
meghagn725ccdd2022-02-09 04:55:52 -0600311
312
313Create Error On BMC And Verify Trap On Default Port
314 [Documentation] Generate error on BMC and verify if trap is sent to default port.
315 [Arguments] ${event_log}=${CMD_INTERNAL_FAILURE} ${expected_error}=${SNMP_TRAP_BMC_INTERNAL_FAILURE}
Megha G Ncce57cc2023-02-15 23:40:15 -0600316 ... ${persistency_check}=${False}
meghagn725ccdd2022-02-09 04:55:52 -0600317
318 # Description of argument(s):
Megha G Ncce57cc2023-02-15 23:40:15 -0600319 # event_log Event logs to be created.
320 # expected_error Expected error on SNMP.
321 # persistency_check Check whether reboot is required or not (e.g. True, False).
meghagn725ccdd2022-02-09 04:55:52 -0600322
323 Configure SNMP Manager Via GUI ${SNMP_MGR1_IP} ${SNMP_DEFAULT_PORT}
324
Megha G Ncce57cc2023-02-15 23:40:15 -0600325 Run Keyword If ${persistency_check} == ${True}
326 ... Run Keywords Reboot BMC via GUI AND Navigate To SNMP Alerts Page
327
meghagn725ccdd2022-02-09 04:55:52 -0600328 Start SNMP Manager
329
330 # Generate error log.
331 BMC Execute Command ${event_log}
332
333 SSHLibrary.Switch Connection snmp_server
334 ${SNMP_LISTEN_OUT}= Read delay=1s
335
336 # Stop SNMP manager process.
337 SSHLibrary.Execute Command sudo killall snmptrapd
338
339 # Sample SNMP trap:
340 # 2021-06-16 07:05:29 xx.xx.xx.xx [UDP: [xx.xx.xx.xx]:58154->[xx.xx.xx.xx]:xxx]:
341 # DISMAN-EVENT-MIB::sysUpTimeInstance = Timeticks: (2100473) 5:50:04.73
342 # SNMPv2-MIB::snmpTrapOID.0 = OID: SNMPv2-SMI::enterprises.49871.1.0.0.1
343 # SNMPv2-SMI::enterprises.49871.1.0.1.1 = Gauge32: 369 SNMPv2-SMI::enterprises.49871.1.0.1.2 = Opaque:
344 # UInt64: 1397718405502468474 SNMPv2-SMI::enterprises.49871.1.0.1.3 = INTEGER: 3
345 # SNMPv2-SMI::enterprises.49871.1.0.1.4 = STRING: "xxx.xx.xx Failure"
346
347 ${lines}= Split To Lines ${SNMP_LISTEN_OUT}
348 ${trap_info}= Get From List ${lines} -1
349 ${snmp_trap}= Split String ${trap_info} \t
350
351 Verify SNMP Trap ${snmp_trap} ${expected_error}
Megha G Nb9ae25a2023-01-27 06:25:00 -0600352
353
354Close Add SNMP Alerts Destination Window
355 [Documentation] Close Add SNMP Alerts Destination window.
356 [Arguments] ${expected_error}=${invalid_port_error}
357
358 # Description of argument(s):
359 # expected_error Expected error on SNMP alerts page.
360
361 Run Keyword If '${expected_error}' == '${invalid_port_error}'
362 ... Click Element ${xpath_cancel_button}
363 ... ELSE IF '${expected_error}' == '${invalid_ip_error}'
364 ... Click Element ${xpath_cancel_button}
Megha G N2a31e512023-01-18 04:23:20 -0600365
366
367Set DNS Server IP
368 [Documentation] Add static DNS IP.
George Keishing354091f2023-02-09 23:13:01 -0600369
Megha G N2a31e512023-01-18 04:23:20 -0600370 Click Element ${xpath_network_sub_menu}
371 Wait Until Keyword Succeeds 30 sec 10 sec Location Should Contain network
372
373 Add DNS Servers And Verify ${dns_server}
Megha G Ncce57cc2023-02-15 23:40:15 -0600374
375
376Delete Multiple SNMP Managers With Default Port Via GUI
377 [Documentation] Delete multiple SNMP managers with default port on BMC via GUI.
378 [Arguments] ${ip_address_list}
379
380 # Description of argument(s):
381 # ${ip_address_list} List of IP address.
382
383 FOR ${ip_address} IN @{ip_address_list}
384 Wait Until Keyword Succeeds 30 sec 10 sec
385 ... Delete SNMP Manager Via GUI ${ip_address} ${SNMP_DEFAULT_PORT}
386 END
387
388
389Navigate To SNMP Alerts Page
390 [Documentation] Navigate to SNMP alerts page.
391
392 Click Element ${xpath_settings_menu}
393 Click Element ${xpath_snmp_alerts_sub_menu}
394 Wait Until Keyword Succeeds 30 sec 10 sec Location Should Contain snmp-alerts