litmus icon indicating copy to clipboard operation
litmus copied to clipboard

Litmus E2E: Auxiliary app test in litmus-e2e

Open uditgaurav opened this issue 4 years ago • 7 comments

Details

  • Litmus E2E has a number of chaos component tests like annotationCheck, engineState, and other tests. We can also add an auxiliary app info test which includes the addition of auxiliary app as part of node level chaos and the experiment will check for the status of auxiliary apps after chaos completion. We just need to check is the experiment runs fine along with the provided auxiliary app info.

Language

  • Go Test

Key points:

  • We can add the test in litmus-e2ehttps://github.com/litmuschaos/litmus-e2e repo under generic branch. Just fork the repo and clone it and switch to generic branch for writing this test. Eg: git clone https://github.com/litmuschaos/litmus-e2e.git -b generic.

  • Start writing the test under tests dir. You can refer pod-delete test. The only change will be in the step of creating the chaosengine, we need to provide the auxiliary app info value here.

Once the test has been created:

  • Raise a PR in litmus-e2e on generic branch. And don't forget to add the logs of go test <test-name>_test.go -v.

Litmus E2E website - https://litmuschaos.github.io/litmus-e2e/

uditgaurav avatar Oct 01 '20 08:10 uditgaurav

Can I try this to solve this issue? it would be great to learn something out of it. @uditgaurav

MexsonFernandes avatar Oct 01 '20 17:10 MexsonFernandes

Thanks, @MexsonFernandes for showing your interest! please let me know if you need any help! :)

uditgaurav avatar Oct 01 '20 17:10 uditgaurav

@uditgaurav any medium to have better communication?

MexsonFernandes avatar Oct 02 '20 05:10 MexsonFernandes

@MexsonFernandes you can join our slack community if not already joined!

uditgaurav avatar Oct 02 '20 08:10 uditgaurav

@uditgaurav how to get the invite link? email -> robomex2020[at]gmail[dot]com

MexsonFernandes avatar Oct 02 '20 10:10 MexsonFernandes

@uditgaurav , can i take this issue?

Nageshbansal avatar Feb 04 '23 10:02 Nageshbansal

Hello @uditgaurav I went through the mentioned links also through the pod_delete_test file . Just wanted little more context on auxiliary app info test on what exactly we are running the tests on , some more hints on how to approach this issue . Thank you!

jignyasamishra avatar Jan 05 '24 05:01 jignyasamishra

The auxiliary app test was initially introduced to perform health checks on dependent components. However, we now have the concept of probes, which offer a better and more customizable way to perform these checks. Therefore, we plan to deprecate the auxiliary app check in the future. With this in mind, I am closing this issue.

uditgaurav avatar Mar 07 '24 06:03 uditgaurav