Commit 0dd2057
test: Add regression test for OCPBUGS-62942
Add TestClusterExtensionDeletionWithUnavailableCatalog to verify that
when a ClusterExtension is being deleted, the reconcile loop does not
attempt resolution even if the catalog is unavailable (which would cause
a "cache for catalog not found" error).
This test ensures that both the RevisionStatesGetter and Resolver are
not called during deletion, preventing errors that would block deletion
when catalogs are unavailable.
The test creates a ClusterExtension with a finalizer, deletes it, and
verifies that reconciliation succeeds without calling the resolver or
revision states getter, both of which are configured to return errors.
🤖 Generated with [Claude Code](https://claude.com/claude-code) via /jira:solve OCPBUGS-62942 origin
Co-Authored-By: Claude <noreply@anthropic.com>
Signed-off-by: Todd Short <tshort@redhat.com>1 parent 09ffb5e commit 0dd2057
1 file changed
Lines changed: 64 additions & 0 deletions
Lines changed: 64 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
121 | 121 | | |
122 | 122 | | |
123 | 123 | | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
124 | 188 | | |
125 | 189 | | |
126 | 190 | | |
| |||
0 commit comments