Repository navigation
Commit 31ead5f
committed
fix(platform tests): make negated containsDocument assertions load-bearing with any: true
Seven platform-chart helm-unittest cases used a negated containsDocument
without any: true. In that form the assertion negates 'every document
matches', which any multi-document render satisfies, so the cases stayed
green regardless of what the template emitted.
Add any: true to each and drop the redundant documentIndex: -1, matching
the correct form already in the tree (bundles_isp_hosted_dependency_closure_test.yaml:132).
Fixes #3864
Proven by mutation: suppressing cozystack.velero emission now fails the
velero-absent guard; force-emitting cozystack.ouroboros now fails the
proxyProtocol-absent guard. Reverted run: 139/139 pass.
Signed-off-by: Mehrdad Biukian Naeini <[email protected]>1 parent 9c7bfb8 commit 31ead5f
4 files changed
Lines changed: 6 additions & 4 deletions
File tree
- packages/core/platform/tests
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
| 31 | + | |
31 | 32 | | |
32 | | - | |
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
56 | 56 | | |
57 | 57 | | |
58 | 58 | | |
| 59 | + | |
59 | 60 | | |
60 | | - | |
61 | 61 | | |
62 | 62 | | |
63 | 63 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| 21 | + | |
21 | 22 | | |
22 | | - | |
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
| |||
150 | 150 | | |
151 | 151 | | |
152 | 152 | | |
| 153 | + | |
153 | 154 | | |
154 | | - | |
155 | 155 | | |
156 | 156 | | |
157 | 157 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
| 40 | + | |
40 | 41 | | |
41 | 42 | | |
42 | 43 | | |
43 | 44 | | |
44 | 45 | | |
| 46 | + | |
45 | 47 | | |
0 commit comments