Open gbhugar opened 6 years ago
updateSecurityGroupInterface api returns success for invalid securityGroup Id.
updateSecurityGroupInterface api should report an error message indicating the cause.
updateSecurityGroupInterface api is returns success for invalid securityGroup Id and updates as is.
OSC_IP/sample/mgr/ism/devices/{deviceId}/securityGroupInterfaces/{SGI_ID}
Request Body: { "name":"SGI-3334", "tag":"testing", "policies":[{"id":1,"domain":{"id":1}}], "device":{"id":100}, "securityGroup":{"id":222} -> Invalid SecurityGroup ID }
No new security group gets created.
Description
updateSecurityGroupInterface api returns success for invalid securityGroup Id.
Expected Behavior
updateSecurityGroupInterface api should report an error message indicating the cause.
Actual Behavior
updateSecurityGroupInterface api is returns success for invalid securityGroup Id and updates as is.
Steps to Reproduce
OSC_IP/sample/mgr/ism/devices/{deviceId}/securityGroupInterfaces/{SGI_ID}
Request Body: { "name":"SGI-3334", "tag":"testing", "policies":[{"id":1,"domain":{"id":1}}], "device":{"id":100}, "securityGroup":{"id":222} -> Invalid SecurityGroup ID }
Additional Information
No new security group gets created.
Environment
Status