Merge pull request #9932 from hashicorp/dnephin/use-ent-meta-default

Set default enterprise meta in test case
This commit is contained in:
Daniel Nephin 2021-03-29 18:44:39 -04:00 committed by GitHub
commit 80827e8615
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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