Repository navigation
Commit 5c57db5
committed
test(tests): fix the same ineffective api-resources guard in monitoring OIDC bats
Both suites skip when the EDP Keycloak CRDs are absent, but the probe
tested the exit code of `kubectl api-resources`, which is 0 for an absent
API group. The skip therefore never fired: on a runner without the
Keycloak operator, monitoring-oidc-system spent its 60s timeout waiting
for a KeycloakClient that can never exist, and
monitoring-oidc-customconfig passed for the wrong reason (its negative
assertions succeed on an unknown resource type).
Test the discovery output instead, like the ValidatingAdmissionPolicy
preflight in e2e-install-cozystack.bats already does.
Signed-off-by: Mattia Eleuteri <[email protected]>1 parent 50f3fae commit 5c57db5
2 files changed
Lines changed: 10 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
107 | 107 | | |
108 | 108 | | |
109 | 109 | | |
110 | | - | |
111 | | - | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
112 | 115 | | |
113 | 116 | | |
114 | 117 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
128 | 128 | | |
129 | 129 | | |
130 | 130 | | |
131 | | - | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
132 | 136 | | |
133 | 137 | | |
134 | 138 | | |
| |||
0 commit comments