Skip to content

Commit

Permalink
add more test cases
Browse files Browse the repository at this point in the history
  • Loading branch information
mallow111 committed Sep 30, 2021
1 parent 61187c4 commit 7cf7212
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions pkg/options/types_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,18 @@ func TestNamespaceListGetAllowedNamespaces(t *testing.T) {
NamespaceDeniedList NamespaceList
Wanted NamespaceList
}{
{
Desc: "empty Namespaces",
Namespaces: NamespaceList{},
NamespaceDeniedList: NamespaceList{"default", "kube-system"},
Wanted: NamespaceList{""},
},
{
Desc: "all Namespaces",
Namespaces: DefaultNamespaces,
NamespaceDeniedList: NamespaceList{"default", "kube-system"},
Wanted: NamespaceList{""},
},
{
Desc: "empty namespaceDenylist",
Namespaces: NamespaceList{"default", "kube-system"},
Expand Down

0 comments on commit 7cf7212

Please sign in to comment.