As a Korifi operator I want to be able to unbind a security group from a space
Acceptance
GIVEN I have deployed Korifi with experimental.securityGroups.enabled=true value
GIVEN I have created a security group
GIVEN I have bound a security group to a space with running lifecycle
WHEN I unbind the security group from the space via DELETE /v3/security_groups/security-group-guid/relationships/running_spaces/space-guid
THEN the workload pod is no longer able to access the destination confgiured in the security group
GIVEN I have bound a security group to a space with staging lifecycle
WHEN I unbind the security group from the space via DELETE /v3/security_groups/security-group-guid/relationships/staging_spaces/space-guid
THEN the build pod is no longer able to access the destination confgiured in the security group
Dev notes
- When the
--lifecycle argument from the unbind-security-group command is omitted, the cli defaults to running
- When the story dones, the
unbind-security-group command should work, so a smoke test should be added to the suite
As a Korifi operator I want to be able to unbind a security group from a space
Acceptance
GIVEN I have deployed Korifi with
experimental.securityGroups.enabled=truevalueGIVEN I have created a security group
GIVEN I have bound a security group to a space with
runninglifecycleWHEN I unbind the security group from the space via
DELETE /v3/security_groups/security-group-guid/relationships/running_spaces/space-guidTHEN the workload pod is no longer able to access the destination confgiured in the security group
GIVEN I have bound a security group to a space with
staginglifecycleWHEN I unbind the security group from the space via
DELETE /v3/security_groups/security-group-guid/relationships/staging_spaces/space-guidTHEN the build pod is no longer able to access the destination confgiured in the security group
Dev notes
--lifecycleargument from theunbind-security-groupcommand is omitted, the cli defaults torunningunbind-security-groupcommand should work, so a smoke test should be added to the suite