Closed iben12 closed 1 year ago
Maybe something like this could achieve that: https://github.com/iben12/helm-unittest/commit/b5ccd70a31a737606efbeb847fd2320dcf8d3940
Should I open a PR?
FYI: isSubset
needs to be documented here: https://github.com/quintush/helm-unittest/blob/master/DOCUMENT.md
Currently not even the current implementation is documented.
It would be a nice feature if
isSubset
could handle multiple keys, not just one.What I mean? Take this manifest:
For this I would like to assert that a subset of the labels are present, but do not care about the rest:
I think this is in line what subset means. The current implementation of
isSubset
is ratherhasElement
.If I want to achieve the above now, I can either assert
isSubset
one-by-one for relevant labels, orequal
to all labels including all irrelevant keys.What do you think?