Commit c55432d
committed
tests: Wait for webhook to serve new cert after recovery
The certificate recovery tests (certificates_test.go) verify that a
deleted secret/caBundle gets regenerated, but do not wait for the
webhook server to actually reload and serve the new certificate.
Due to kubelet secret volume propagation delay (~60s), subsequent
tests can hit "x509: certificate signed by unknown authority" if
they call the webhook before the new cert is in place.
Add a probe in checkCertLibraryRecovery that creates a VM via the
webhook and retries until it succeeds, ensuring the new certificate
is fully operational before the test completes.
Assisted-by: Claude Opus 4.6 <noreply@anthropic.com>
Signed-off-by: Ram Lavi <ralavi@redhat.com>1 parent a5e4c50 commit c55432d
1 file changed
+15
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| 12 | + | |
| 13 | + | |
12 | 14 | | |
13 | 15 | | |
14 | 16 | | |
| |||
79 | 81 | | |
80 | 82 | | |
81 | 83 | | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
82 | 87 | | |
83 | 88 | | |
84 | 89 | | |
| |||
120 | 125 | | |
121 | 126 | | |
122 | 127 | | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
0 commit comments