Commit a2274ef
committed
test: improve DNS-1123 validation error assertion
Update the watchNamespace DNS-1123 validation test to assert on a more
meaningful portion of the error message. Instead of just checking for
the invalid value "invalid-namespace-", the test now verifies that the
error message includes "lowercase RFC 1123", which better demonstrates
that proper namespace name validation is occurring.
The error message from Kubernetes DNS-1123 validation includes detailed
information about RFC 1123 requirements, making this assertion more
robust and informative.
Assisted-by: Claude Sonnet 4.5 <noreply@anthropic.com>1 parent 2269890 commit a2274ef
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
325 | 325 | | |
326 | 326 | | |
327 | 327 | | |
328 | | - | |
| 328 | + | |
329 | 329 | | |
330 | 330 | | |
331 | 331 | | |
| |||
0 commit comments