You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For context we are attempting to test a kubernetes operator. It's OS, see: https://github.com/kartverket/skiperator. The operator creates new resources if certain parts of the spec has been set. It should delete the same resources if you remove this field from the spec.
Currently the tests are somewhat lacking, so I've added a bunch of new tests in the branch test-improvements. However, we see that a lot of the error assertions which look for deleted resources do not work in a mocked control plane, in addition, a few of the tests do not even work in a kind context.
What happened:
The tests:
probes
gcp
Fail for both mocked and kind.
The tests:
access-policy
service-port
Only fail during mocked control plane.
When checking the application CR while running kuttl using kind, I can see that the CR is not updated, in spite of the step being completed, which should update the CR.
Running through each of the failing tests step by step locally matches the assert and errors files.
What you expected to happen:
CR is updated as expected, and tests are running fine.
How to reproduce it (as minimally and precisely as possible):
Run the tests in the test-improvements branch with the Make command make build-test. This should run the tests locally using a mocked control plane.
Run the tests using kubectl kuttl test --config tests/config-test-local.yaml --kind-context=<YOUR_KIND_CONTEXT> --start-control-plane=false --suppress-log=events to run the tests in a kind cluster.
Anything else we need to know?:
I get a lot of errors like this:
Just pointing at a branch in a different repo is asking a bit too much of us I'm afraid.
Please paste here the kuttl files which create the CR and the file(s) which is supposed to remove some fields.
For context we are attempting to test a kubernetes operator. It's OS, see: https://github.com/kartverket/skiperator. The operator creates new resources if certain parts of the spec has been set. It should delete the same resources if you remove this field from the spec.
Currently the tests are somewhat lacking, so I've added a bunch of new tests in the branch
test-improvements
. However, we see that a lot of the error assertions which look for deleted resources do not work in a mocked control plane, in addition, a few of the tests do not even work in a kind context.What happened:
The tests:
Fail for both mocked and kind.
The tests:
Only fail during mocked control plane.
When checking the application CR while running kuttl using kind, I can see that the CR is not updated, in spite of the step being completed, which should update the CR.
Running through each of the failing tests step by step locally matches the assert and errors files.
What you expected to happen:
CR is updated as expected, and tests are running fine.
How to reproduce it (as minimally and precisely as possible):
Run the tests in the
test-improvements
branch with the Make commandmake build-test
. This should run the tests locally using a mocked control plane.Run the tests using
kubectl kuttl test --config tests/config-test-local.yaml --kind-context=<YOUR_KIND_CONTEXT> --start-control-plane=false --suppress-log=events
to run the tests in a kind cluster.Anything else we need to know?:
I get a lot of errors like this:
Which may be relevant, but it also happens during tests that run fine.
Environment:
kubectl version
):kubectl kuttl version
): KUTTL Version: version.Info{GitVersion:"dev", GitCommit:"dev", BuildDate:"1970-01-01T00:00:00Z", GoVersion:"go1.20.1", Compiler:"gc", Platform:"darwin/arm64"}uname -a
): 21.6.0 Darwin Kernel Version 21.6.0: Mon Aug 22 20:19:52 PDT 2022; root:xnu-8020.140.49~2/RELEASE_ARM64_T6000 arm64The text was updated successfully, but these errors were encountered: