diff --git a/internal/schema/utils_test.go b/internal/schema/utils_test.go index b5201b39b..1b17edcbd 100644 --- a/internal/schema/utils_test.go +++ b/internal/schema/utils_test.go @@ -11,3 +11,10 @@ func TestAppendIfUnique(t *testing.T) { fmt.Println(AppendIfUnique([]string{"1", "2", "3"}, []string{"3", "4"})) assert.ElementsMatch(t, AppendIfUnique([]string{"1", "2", "3"}, []string{"3", "4"}), []string{"1", "2", "3", "4"}) } + +func TestGetNamespace(t *testing.T) { + fmt.Println(GetNamespace("project")) + assert.Equal(t, "shield/project", GetNamespace("project")) + fmt.Println(GetNamespace("entropy/firehose")) + assert.Equal(t, "entropy/firehose", GetNamespace("entropy/firehose")) +}