[Redfish/event/SNMP] test "Configure SNMP Manager On BMC With Out Of Range Port And Verify" and "Configure SNMP Manager On BMC With Empty Port And Verify" #2244
I have a question about out-of-range port and empty port.
The code designed that if port number was bigger than 65536, this port number will set the default value, like SNMP default port 162.
In the test case "Configure SNMP Manager On BMC With Out Of Range Port And Verify", a step is "Configure SNMP Manager Via Redfish ${SNMP_MGR1_IP} ${out_of_range_port} ${HTTP_BAD_REQUEST}" ask the return code be 400.
Actually I got the return code 201 because that the port number became 162, so I always test failed.
And in the test case "Configure SNMP Manager On BMC With Empty Port And Verify", the step is "Configure SNMP Manager Via Redfish ${SNMP_MGR1_IP} ${empty_port}", ask the return code be 201.
But I got the return code 400, not 201.
I though these two test case are simulier, why ask the different return code?
How should I to modify this issue?
I have a question about out-of-range port and empty port. The code designed that if port number was bigger than 65536, this port number will set the default value, like SNMP default port 162.
In the test case "Configure SNMP Manager On BMC With Out Of Range Port And Verify", a step is "Configure SNMP Manager Via Redfish ${SNMP_MGR1_IP} ${out_of_range_port} ${HTTP_BAD_REQUEST}" ask the return code be 400. Actually I got the return code 201 because that the port number became 162, so I always test failed.![image](https://github.com/openbmc/openbmc-test-automation/assets/146059257/d788e0ea-0c5b-4b21-bd9f-a58cc9de4e1b)
And in the test case "Configure SNMP Manager On BMC With Empty Port And Verify", the step is "Configure SNMP Manager Via Redfish ${SNMP_MGR1_IP} ${empty_port}", ask the return code be 201. But I got the return code 400, not 201.![image](https://github.com/openbmc/openbmc-test-automation/assets/146059257/120ab4e2-644d-4e82-ac4b-29a06994fa66)
I though these two test case are simulier, why ask the different return code? How should I to modify this issue?