Skip to content

[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

@Julia-Delta

Description

@Julia-Delta

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions