opensecuritycontroller / security-mgr-sample-plugin

Apache License 2.0
5 stars 11 forks source link

updateSecurityGroupInterface api returns success for invalid securityGroup Id. #42

Open gbhugar opened 6 years ago

gbhugar commented 6 years ago

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