From c0ae5d6dd4a451a1ab8687554075ba29d33987f2 Mon Sep 17 00:00:00 2001 From: Carson Anderson Date: Fri, 23 Apr 2021 11:39:47 -0600 Subject: [PATCH] fix tests --- pkg/naming/metrics_query_test.go | 23 ----------------------- 1 file changed, 23 deletions(-) diff --git a/pkg/naming/metrics_query_test.go b/pkg/naming/metrics_query_test.go index df4cc8de..36f0d110 100644 --- a/pkg/naming/metrics_query_test.go +++ b/pkg/naming/metrics_query_test.go @@ -83,14 +83,6 @@ func TestBuildSelector(t *testing.T) { return mq } - mustNewNonNamespacedQuery := func(queryTemplate string, namespaced bool) MetricsQuery { - mq, err := NewMetricsQuery(queryTemplate, &resourceConverterMock{namespaced}, false) - if err != nil { - t.Fatal(err) - } - return mq - } - mustNewLabelRequirement := func(key string, op selection.Operator, vals []string) *labels.Requirement { req, err := labels.NewRequirement(key, op, vals) if err != nil { @@ -212,21 +204,6 @@ func TestBuildSelector(t *testing.T) { ), }, - { - name: "multiple LabelValuesByName values with namespace disabled", - - mq: mustNewNonNamespacedQuery(`<> <>`, true), - metricSelector: labels.NewSelector(), - resource: schema.GroupResource{Group: "group", Resource: "resource"}, - namespace: "default", - names: []string{"bar", "baz"}, - - check: checks( - hasError(nil), - hasSelector(" bar|baz"), - ), - }, - { name: "single GroupBy value",