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

[Testing] Updating test framework for karmor client #355

Open
2 tasks
PrimalPimmy opened this issue Aug 14, 2023 · 4 comments
Open
2 tasks

[Testing] Updating test framework for karmor client #355

PrimalPimmy opened this issue Aug 14, 2023 · 4 comments

Comments

@PrimalPimmy
Copy link
Member

PrimalPimmy commented Aug 14, 2023

Currently we only have tests for karmor recommend , but other features might also need testing. Here's a list that can be tested:

  • karmor logs (?)
  • karmor probe
@Parthiba-Hazra
Copy link

Hi @PrimalPimmy I want to work on this :)

@PrimalPimmy
Copy link
Member Author

Hello @Parthiba-Hazra , sure! You can start with looking into how we can test Karmor probe here, to ensure any changes don't make the CI fail.

@Parthiba-Hazra
Copy link

Hi @PrimalPimmy I think you want to provide some link on creating test cases for karmor probe ?

@PrimalPimmy
Copy link
Member Author

@Parthiba-Hazra Sure, you can check out how probe works internally, and how we can use it's external functions to test.
https://github.com/kubearmor/kubearmor-client/blob/main/probe/probe.go

We use Ginkgo tests here: https://github.com/kubearmor/kubearmor-client/tree/main/tests
need a new folder named probe and do the necessary testing. But ofcourse, you will have to try out the karmor cli first to understand how it works.

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

No branches or pull requests

3 participants