From d62ed944158a7f48d8f0bcfa97d5bd6d22500ddc Mon Sep 17 00:00:00 2001 From: Daniel Nephin Date: Thu, 25 Mar 2021 17:40:22 -0400 Subject: [PATCH] Set default enterprise meta in test case --- agent/agent_endpoint_test.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/agent/agent_endpoint_test.go b/agent/agent_endpoint_test.go index 5e3784726b..47ac0868f4 100644 --- a/agent/agent_endpoint_test.go +++ b/agent/agent_endpoint_test.go @@ -3316,6 +3316,7 @@ func testAgent_RegisterService_TranslateKeys(t *testing.T, extraHCL string) { // there worked by inspecting the registered sidecar below. SidecarService: nil, }, + EnterpriseMeta: *structs.DefaultEnterpriseMeta(), } got := a.State.Service(structs.NewServiceID("test", nil)) @@ -3352,6 +3353,7 @@ func testAgent_RegisterService_TranslateKeys(t *testing.T, extraHCL string) { }, }, }, + EnterpriseMeta: *structs.DefaultEnterpriseMeta(), } gotSidecar := a.State.Service(structs.NewServiceID("test-sidecar-proxy", nil)) hasNoCorrectTCPCheck := true