Set default enterprise meta in test case

This commit is contained in:
Daniel Nephin 2021-03-25 17:40:22 -04:00
parent 45ad1bb7e7
commit f132efde98
1 changed files with 2 additions and 0 deletions

View File

@ -3316,6 +3316,7 @@ func testAgent_RegisterService_TranslateKeys(t *testing.T, extraHCL string) {
// there worked by inspecting the registered sidecar below. // there worked by inspecting the registered sidecar below.
SidecarService: nil, SidecarService: nil,
}, },
EnterpriseMeta: *structs.DefaultEnterpriseMeta(),
} }
got := a.State.Service(structs.NewServiceID("test", nil)) 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)) gotSidecar := a.State.Service(structs.NewServiceID("test-sidecar-proxy", nil))
hasNoCorrectTCPCheck := true hasNoCorrectTCPCheck := true