1*** Settings ***
2Documentation  This testing requires special setup where SNMP trapd is
3...            configured and installed. For download, installation and
4...            configuration refer http://www.net-snmp.org/.
5
6
7Resource  ../../lib/snmp/resource.robot
8Resource  ../../lib/snmp/redfish_snmp_utils.robot
9Resource  ../../lib/bmc_redfish_resource.robot
10Resource  ../../lib/openbmc_ffdc.robot
11Resource  ../../lib/bmc_redfish_resource.robot
12Resource  ../../lib/openbmc_ffdc.robot
13Resource  ../../lib/logging_utils.robot
14
15
16Test Teardown  FFDC On Test Case Fail
17Suite Setup    Suite Setup Execution
18
19*** Variables ***
20
21${snmp_function}     SNMPTrap
22${snmp_version}      SNMPv2c
23${subscription_uri}  /redfish/v1/EventService/Subscriptions
24
25
26*** Test Cases ***
27
28Configure SNMP Manager On BMC And Verify
29    [Documentation]  Configure SNMP manager on BMC via Redfish and verify.
30    [Tags]  Configure_SNMP_Manager_On_BMC_And_Verify
31
32    Configure SNMP Manager Via Redfish  ${SNMP_MGR1_IP}  ${SNMP_DEFAULT_PORT}  ${HTTP_CREATED}
33
34    Verify SNMP Manager Configured On BMC  ${SNMP_MGR1_IP}  ${SNMP_DEFAULT_PORT}
35
36
37*** Keywords ***
38
39Suite Setup Execution
40    [Documentation]  Do suite setup execution.
41
42    Redfish.Login
43
44    # Check for SNMP configurations.
45    Valid Value  SNMP_MGR1_IP
46    Valid Value  SNMP_DEFAULT_PORT
47