Skip to content

Commit

Permalink
unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
DrFaust92 committed May 16, 2021
1 parent 5919c84 commit 2fae5f5
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions kubernetes/structures_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,12 @@ func TestIsInternalKey(t *testing.T) {
{"anyKey", false},
{"any.hostname.io", false},
{"any.hostname.com/with/path", false},
{"any.kubernetes.io", true},
{"kubernetes.io", true},
{"pv.kubernetes.io/any/path", true},
{"any.kubernetes.io", false},
{"kubernetes.io", false},
{"pv.kubernetes.io/any/path", false},
{"pv.kubernetes.io/any/path", false},
{"kubernetes.io/hostname", true},
{"statefulset.kubernetes.io/pod-name", true},
}
for i, tc := range testCases {
t.Run(fmt.Sprintf("%d", i), func(t *testing.T) {
Expand Down

0 comments on commit 2fae5f5

Please sign in to comment.