You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add integration tests for controllers in the core to verify the NimbusPolicy and ClusterNimbusPolicy generation.
Scenarios to test:
Create and Read
Scenario: Create a SecurityIntent and a SecurityIntentBinding.
Expected outcomes:
An intermediary NimbusPolicy is generated with the expected values populated correctly.
The created SecurityIntent status subresource includes the ID and action fields with the intent values.
The created SecurityIntentBinding status subresource reflects the number and names of bound intents, along with the generated NimbusPolicy name.
Similar test cases for a SecurityIntent with a ClusterSecurityIntentBinding, expecting a ClusterNimbusPolicy generation.
Update
Scenario: Modify a SecurityIntentBinding
Expected Outcome:
The corresponding NimbusPolicy is updated.
Scenario: Modify a NimbusPolicy
Expected Outcome:
The NimbusPolicy reverts its changes.
Similar test cases for a ClusterSecurityIntentBinding with corresponding ClusterNimbusPolicy update.
Delete
Scenario: Delete a SecurityIntentBinding.
Expected Outcome:
The corresponding NimbusPolicy is deleted.
Similar test case for a ClusterSecurityIntentBinding with corresponding ClusterNimbusPolicy deletion.
The text was updated successfully, but these errors were encountered:
anurag-rajawat
changed the title
Add Unit tests cases to verify that correct KubeArmor policies are being created
[Core]: Add integration tests
Feb 14, 2024
Add integration tests for controllers in the core to verify the NimbusPolicy and ClusterNimbusPolicy generation.
Scenarios to test:
Create and Read
Scenario: Create a SecurityIntent and a SecurityIntentBinding.
Expected outcomes:
An intermediary NimbusPolicy is generated with the expected values populated correctly.
The created SecurityIntent status subresource includes the ID and action fields with the intent values.
The created SecurityIntentBinding status subresource reflects the number and names of bound intents, along with the generated NimbusPolicy name.
Similar test cases for a SecurityIntent with a ClusterSecurityIntentBinding, expecting a ClusterNimbusPolicy generation.
Update
Scenario: Modify a SecurityIntentBinding
Expected Outcome:
Scenario: Modify a NimbusPolicy
Expected Outcome:
Similar test cases for a ClusterSecurityIntentBinding with corresponding ClusterNimbusPolicy update.
Delete
Scenario: Delete a SecurityIntentBinding.
Expected Outcome:
Similar test case for a ClusterSecurityIntentBinding with corresponding ClusterNimbusPolicy deletion.
The text was updated successfully, but these errors were encountered: