openbmc / openbmc-test-automation

Apache License 2.0
100 stars 92 forks source link

[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

Open Julia-Delta opened 2 months ago

Julia-Delta commented 2 months ago

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

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

I though these two test case are simulier, why ask the different return code? How should I to modify this issue?