INNER CODE UNIT · Go
TestIsE2ENamespace
vmware-tanzu/sonobuoy · pkg/client/delete_test.go:68
func TestIsE2ENamespace(t *testing.T) {
testcases := []struct {
desc string
ns v1.Namespace
expectedResult bool
}{
{
desc: "Namespace with no labels is not classified as E2E namespace",
ns: v1.Namespace{},
expectedResult: false,
},
{
desc: "Namespace with non E2E labels is not classified as E2E namespace",
ns: v1.Namespace{
ObjectMeta: metav1.ObjectMeta{
Labels: map[string]string{
"non-e2e-label": "some value",
},