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

CI(tests): LFX term 2 Pre-task submission #1

Merged
merged 22 commits into from
May 25, 2024
Merged

Conversation

navin772
Copy link
Owner

@navin772 navin772 commented May 25, 2024

Purpose of PR?:
LFX pre-task - Create atleast 1 new and unique test for KubeArmor in any mode.

New tests:

Tests for KubeArmor running in k8s mode:

  1. tests/k8s_env/multicontainer/

    • Check if policy is applied when there is a non-existent container name in the array - "[container-1, non-existent-container ]"
  2. tests/k8s_env/hsp/ -

    • New test suite to test host policy enforcement in k8s mode
    • Tests added:
      • Process: Block access to date command in the host
      • File path: Block access to /etc/hostname file

Tests for KubeArmor running in systemd mode:

  1. tests/nonk8s_env/hsp/ -
    • New test suite to test KubeArmor in systemd mode
    • Tests added:
      • Process: Block access to sleep command in host
      • File: Block access to /etc/hostname file

Improvement in test coverage:

Does this PR introduce a breaking change?
No

Checklist:

  • Bug fix. Fixes #
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update
  • PR Title follows the convention of <type>(<scope>): <subject>
  • Commit has unit tests
  • Commit has integration tests

@navin772 navin772 merged commit 8756d0b into submission-lfx May 25, 2024
3 checks passed
@navin772 navin772 changed the title test(tests): LFX term 2 Pre-task submission CI(tests): LFX term 2 Pre-task submission May 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant