missed this test adjustment (#12331)

This commit is contained in:
R.B. Boyer 2022-02-14 11:39:00 -06:00 committed by GitHub
parent fa4577d1a9
commit 52009ae86a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 1 deletions

View File

@ -387,7 +387,7 @@ func TestAgentAntiEntropy_Services_ConnectProxy(t *testing.T) {
// We should have 5 services (consul included) // We should have 5 services (consul included)
require.Len(t, services.NodeServices.Services, 5) require.Len(t, services.NodeServices.Services, 5)
// Check that virtual IPs have been set // check that virtual ips have been set
vips := make(map[string]struct{}) vips := make(map[string]struct{})
serviceToVIP := make(map[string]string) serviceToVIP := make(map[string]string)
for _, serv := range services.NodeServices.Services { for _, serv := range services.NodeServices.Services {
@ -593,6 +593,7 @@ func TestAgentAntiEntropy_EnableTagOverride(t *testing.T) {
Passing: 1, Passing: 1,
Warning: 1, Warning: 1,
}, },
EnterpriseMeta: *structs.DefaultEnterpriseMetaInDefaultPartition(),
} }
a.State.AddService(srv1, "") a.State.AddService(srv1, "")
@ -607,6 +608,7 @@ func TestAgentAntiEntropy_EnableTagOverride(t *testing.T) {
Passing: 1, Passing: 1,
Warning: 1, Warning: 1,
}, },
EnterpriseMeta: *structs.DefaultEnterpriseMetaInDefaultPartition(),
} }
a.State.AddService(srv2, "") a.State.AddService(srv2, "")
@ -628,6 +630,7 @@ func TestAgentAntiEntropy_EnableTagOverride(t *testing.T) {
Passing: 1, Passing: 1,
Warning: 1, Warning: 1,
}, },
EnterpriseMeta: *structs.DefaultEnterpriseMetaInDefaultPartition(),
} }
if err := a.RPC("Catalog.Register", args, &out); err != nil { if err := a.RPC("Catalog.Register", args, &out); err != nil {
t.Fatalf("err: %v", err) t.Fatalf("err: %v", err)
@ -643,6 +646,7 @@ func TestAgentAntiEntropy_EnableTagOverride(t *testing.T) {
Passing: 1, Passing: 1,
Warning: 0, Warning: 0,
}, },
EnterpriseMeta: *structs.DefaultEnterpriseMetaInDefaultPartition(),
} }
if err := a.RPC("Catalog.Register", args, &out); err != nil { if err := a.RPC("Catalog.Register", args, &out); err != nil {
t.Fatalf("err: %v", err) t.Fatalf("err: %v", err)
@ -867,6 +871,7 @@ func TestAgentAntiEntropy_Services_ACLDeny(t *testing.T) {
Passing: 1, Passing: 1,
Warning: 1, Warning: 1,
}, },
EnterpriseMeta: *structs.DefaultEnterpriseMetaInDefaultPartition(),
} }
a.State.AddService(srv1, token) a.State.AddService(srv1, token)
@ -880,6 +885,7 @@ func TestAgentAntiEntropy_Services_ACLDeny(t *testing.T) {
Passing: 1, Passing: 1,
Warning: 0, Warning: 0,
}, },
EnterpriseMeta: *structs.DefaultEnterpriseMetaInDefaultPartition(),
} }
a.State.AddService(srv2, token) a.State.AddService(srv2, token)