Skip to content

Commit a2274ef

Browse files
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

File tree

test/e2e/features/install.feature

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -325,7 +325,7 @@ Feature: Install ClusterExtension
325325
"""
326326
Then ClusterExtension reports Progressing as True with Reason Retrying and Message includes:
327327
"""
328-
invalid-namespace-
328+
lowercase RFC 1123
329329
"""
330330

331331
@SingleOwnNamespaceInstallSupport

0 commit comments

Comments
 (0)