-
Notifications
You must be signed in to change notification settings - Fork 0
test: unit test for individual patch generator #21
Conversation
0c95d64
to
aa467be
Compare
When I run
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the changes, I like this, lets us run the individual meta handler tests in my IDE.
Just some minor nits and the race condition :(
18a6ab0
to
66c2656
Compare
Fixed the race condition. I tested by running 100 iterations of |
89a8bb9
to
f3883c3
Compare
* test: unit test for individual patch generator * test: package level unit test for HTTPProxy * test: fix data race between multiple unit test that use envtest * test: make patchgenerator generic function * fix: linting errors after rebase from main
Enable execution of unit test for each mutator package.
Resolves Issue: nutanix-cloud-native#474
This PR is first iteration of the refactoring to collect feedback.
This PR addresses patches for two sample variables, which covers all type of patch generator tests.
TestEnv is initialized only if the test that requires is executed.
The existing AWS and Docker MetaMutator tests are not modified or removed yet. Once tests for all variables are moved to their individual packages we should remove MetaMutator tests that runs test cases for all the variables (unless we decided to run the test twice)
AWS region patch
HTTPProxy Patch
Other alternative considered:
Ginkgo's
BeforeSuite
andAfterSuite
seemed better alternative then duplicating the code.Future work: