Commit 5c4bf7b
authored
🌱 test: ensure single/own namespace increase coverage for both runtimes (#2463)
* test: ensure single/own namespace increase coverage for both runtimes
Add E2E test scenarios for single/own namespace support that run for
both Helm and Boxcutter runtimes:
1. Invalid DNS-1123 watchNamespace - tests namespace name validation
2. Reject watchNamespace for AllNamespaces-only operators
Tests use assertions compatible with both runtimes. Unit tests in
provider_test.go provide comprehensive validation coverage via shared
RegistryV1ManifestProvider.
Achieves 100% parity with downstream OCP test coverage.
* test: improve error message assertions for validation scenarios
Enhance both new test scenarios with more complete error message assertions:
1. DNS-1123 validation test: Now checks for the full error context
including "invalid ClusterExtension configuration: invalid target
namespaces [invalid-namespace-]: a lowercase RFC 1123 subdomain..."
instead of just "lowercase RFC 1123".
2. AllNamespaces operator rejection test: Now verifies the complete error
about "invalid ClusterExtension configuration: supported install modes
[AllNamespaces] do not support target namespaces" instead of just
"watchNamespace".
These more comprehensive assertions better demonstrate that proper
validation is occurring and provide clearer test documentation of the
expected error behavior.
Assisted-by: Claude Sonnet 4.5 <noreply@anthropic.com>1 parent e50144a commit 5c4bf7b
1 file changed
+61
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
298 | 298 | | |
299 | 299 | | |
300 | 300 | | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
| 351 | + | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
| 361 | + | |
301 | 362 | | |
302 | 363 | | |
303 | 364 | | |
| |||
0 commit comments