Fix unittests #434
Reference in New Issue
Block a user
No description provided.
Delete Branch "refs/pull/434/head"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Unclear why it only appeared now and not earlier.
Based on the build logs the recent build downloaded https://github.com/helm-unittest/helm-unittest/releases/tag/v0.3.1. The last main build https://github.com/helm-unittest/helm-unittest/releases/tag/v0.3.0. From a quick glance I don't agree with the changes. We should not need to add any signing key related values if the signing is disabled.
@ -0,0 +17,4 @@
- it: skips gpg env in `init-directories` init container
template: templates/gitea/statefulset.yaml
set:
signing.enabled: false
It looks like as if this should be
signing.enabled: false
and the respective secret should/could then be removed.You are right. Good catch.
The tests failed for the cases in which signing is enabled and hence were missing either a key or a secret. I think the new failure is valid and the non-failure previously might actually be a false-positive pass.
There is one case in the filed marked above where the
signing.enabled
value might be wrong, according to the unittest scope.After having a more detailed look at the changes, I fully agree.
unittests/statefulset/signing-disabled.yaml
is incorrect. The fact that it did not fail previously shows that this test case is currently not testing the correct thing - or does not assert all necessary parts.Other tests might be not fully reliable, too.
Additionally, we should pin the helm plugin version in our builds together with a
--version ...
in the install instructions insideCONTRIBUTING.md
. That way we have much more stable build environment. And let renovate bump both references together.This key usually holds the armored string of the private key, not the file reference. For testing purposes this would not make a difference but would be more consistent.
Otherwise LGTM
LGTM