Skip to content

Commit c629ded

Browse files
committed
add admission test for multiple sequential separators
Signed-off-by: everettraven <[email protected]>
1 parent f85bfb6 commit c629ded

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

internal/controllers/clusterextension_admission_test.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,7 @@ func TestClusterExtensionAdmissionPackageName(t *testing.T) {
9797
{"dot separated", "some.package", ""},
9898
{"underscore separated", "some_package", regexMismatchError},
9999
{"starts with dot", ".some.package", regexMismatchError},
100+
{"multiple sequential separators", "a.-b", regexMismatchError},
100101
}
101102

102103
t.Parallel()
@@ -249,6 +250,7 @@ func TestClusterExtensionAdmissionChannel(t *testing.T) {
249250
{"ends with period", "end-with-period.", regexMismatchError},
250251
{"contains underscore", "some_thing", regexMismatchError},
251252
{"starts with dot", ".some.thing", regexMismatchError},
253+
{"multiple sequential separators", "a.-b", regexMismatchError},
252254
}
253255

254256
t.Parallel()
@@ -356,6 +358,7 @@ func TestClusterExtensionAdmissionServiceAccount(t *testing.T) {
356358
{"ends with hyphen", "end-with-hyphen-", regexMismatchError},
357359
{"starts with period", ".start-with-period", regexMismatchError},
358360
{"ends with period", "end-with-period.", regexMismatchError},
361+
{"multiple sequential separators", "a.-b", regexMismatchError},
359362
}
360363

361364
t.Parallel()

0 commit comments

Comments
 (0)