Skip to content

Commit

Permalink
fixing failing test
Browse files Browse the repository at this point in the history
  • Loading branch information
jmurret committed May 2, 2024
1 parent 7e5a98e commit 3c72ebc
Showing 1 changed file with 1 addition and 30 deletions.
31 changes: 1 addition & 30 deletions dependency/health_service_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down Expand Up @@ -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,
},
},
},
},
}
})...)

Expand Down

0 comments on commit 3c72ebc

Please sign in to comment.