Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Core]: Add integration tests #16

Closed
5 of 8 tasks
shivaccuknox opened this issue Dec 14, 2023 · 0 comments · Fixed by #66
Closed
5 of 8 tasks

[Core]: Add integration tests #16

shivaccuknox opened this issue Dec 14, 2023 · 0 comments · Fixed by #66
Assignees
Labels

Comments

@shivaccuknox
Copy link
Contributor

shivaccuknox commented Dec 14, 2023

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.

@shivaccuknox shivaccuknox self-assigned this Dec 14, 2023
@anurag-rajawat 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
@anurag-rajawat anurag-rajawat moved this to 🏗 In progress in NIMBUS Feb 14, 2024
@nandhued nandhued moved this from 🏗 In progress to 👀 In review in NIMBUS Feb 16, 2024
@nandhued nandhued moved this from 👀 In review to 🏗 In progress in NIMBUS Feb 19, 2024
@VedRatan VedRatan mentioned this issue Feb 20, 2024
7 tasks
@anurag-rajawat anurag-rajawat moved this from 🏗 In progress to 👀 In review in NIMBUS Feb 21, 2024
@anurag-rajawat anurag-rajawat self-assigned this Feb 21, 2024
@nandhued nandhued added this to the Mar 30th, 2024 milestone Feb 22, 2024
@anurag-rajawat anurag-rajawat moved this from 👀 In review to 🏗 In progress in NIMBUS Feb 22, 2024
@anurag-rajawat anurag-rajawat moved this from 🏗 In progress to 📋 Backlog in NIMBUS Feb 22, 2024
@nandhued nandhued moved this from 📋 Backlog to 🏗 In progress in NIMBUS Feb 22, 2024
@nandhued nandhued moved this from 🏗 In progress to 👀 In review in NIMBUS Feb 22, 2024
@github-project-automation github-project-automation bot moved this from 👀 In review to ✅ Done in NIMBUS Feb 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: ✅ Done
Development

Successfully merging a pull request may close this issue.

4 participants