-
Notifications
You must be signed in to change notification settings - Fork 91
Open
Labels
Description
Acceptance
GIVEN I have deployed Korifi with experimental.securityGroups.enabled=true value
GIVEN I have created a security group
WHEN I delete a security group via DELETE /v3/security_groups/66a40c77-e709-481b-b3f3-b96d4b449463
THEN I should get a HTTP 202 Accepted response containing a Location header redirecting me to a job location I can track to check the progress of the deletion operation
WHEN I curl the Location URL above while the deletion is in progress
THEN I get a HTTP 200 OK response with "state": "PROCESSING" response
WHEN the security group is deleted
THEN curling the location url should return HTTP 200 OK with "state": "COMPLETE" response
Dev notes
- The security group controller should delete Calico resources as part of the
CFSecurityGroupfinalization - The
CFSecurityGroupfinalizer should NOT let theCFSecurityGroupresource go until it makes sure that all related Calico resources are deleted. We have implemented a similar pattern of checking related resources in the app controller - The deletion job URL should return state processing while the
CFSecurityGroupresource is still around and state complete when theCFSecurityGroupis gone. - When this story is done
cf delete-security-group sg-nameshould work, so corresponding smoke tests should be added to the suite
Metadata
Metadata
Assignees
Labels
Type
Projects
Status
🇪🇺 To do