Skip to content

Commit f85bfb6

Browse files
committed
add admission test for starting with dot
Signed-off-by: everettraven <[email protected]>
1 parent bfaf8cb commit f85bfb6

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

internal/controllers/clusterextension_admission_test.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,7 @@ func TestClusterExtensionAdmissionPackageName(t *testing.T) {
9696
{"special characters", "my-$pecial-package-name", regexMismatchError},
9797
{"dot separated", "some.package", ""},
9898
{"underscore separated", "some_package", regexMismatchError},
99+
{"starts with dot", ".some.package", regexMismatchError},
99100
}
100101

101102
t.Parallel()
@@ -247,6 +248,7 @@ func TestClusterExtensionAdmissionChannel(t *testing.T) {
247248
{"starts with period", ".start-with-period", regexMismatchError},
248249
{"ends with period", "end-with-period.", regexMismatchError},
249250
{"contains underscore", "some_thing", regexMismatchError},
251+
{"starts with dot", ".some.thing", regexMismatchError},
250252
}
251253

252254
t.Parallel()

0 commit comments

Comments
 (0)