From 3c72ebc1ae416df80b8cf07f4d404a91ca3a4a14 Mon Sep 17 00:00:00 2001 From: John Murret Date: Wed, 24 Apr 2024 15:39:41 -0600 Subject: [PATCH] fixing failing test --- dependency/health_service_test.go | 31 +------------------------------ 1 file changed, 1 insertion(+), 30 deletions(-) diff --git a/dependency/health_service_test.go b/dependency/health_service_test.go index edf37500f..0c69d4d9d 100644 --- a/dependency/health_service_test.go +++ b/dependency/health_service_test.go @@ -53,7 +53,7 @@ func TestNewHealthServiceQuery(t *testing.T) { tenancyHelper.AppendTenancyInfo("query_only", tenancy), fmt.Sprintf("?ns=%s", tenancy.Namespace), nil, - fmt.Errorf(`health.service: invalid format: "?ns=default"`), + fmt.Errorf(`health.service: invalid format: "?ns=%s"`, tenancy.Namespace), }, testCase{ tenancyHelper.AppendTenancyInfo("invalid query param (unsupported key)", tenancy), @@ -656,35 +656,6 @@ func TestHealthServiceQuery_Fetch(t *testing.T) { }, }, }, - testCase{ - fmt.Sprintf(`service-meta for sameness group "%s" in partition "%s"`, "service-meta-sameness-group", tenancy.Partition), - fmt.Sprintf("service-meta?sameness-group=%s&partition=%s", "service-meta-sameness-group", tenancy.Partition), - []*HealthService{ - { - Node: "node" + tenancy.Partition, - NodeAddress: testConsul.Config.Bind, - NodeTaggedAddresses: map[string]string{ - //"lan": "127.0.0.1", - //"wan": "127.0.0.1", - }, - NodeMeta: map[string]string{ - //"consul-network-segment": "", - }, - ServiceMeta: map[string]string{ - "meta1": "value1", - }, - Address: testConsul.Config.Bind, - ID: "service-meta", - Name: "service-meta", - Tags: []string{"tag1"}, - Status: "passing", - Weights: api.AgentWeights{ - Passing: 1, - Warning: 1, - }, - }, - }, - }, } })...)