diff --git a/agent/config_endpoint_test.go b/agent/config_endpoint_test.go index 13ff251d85..888249625a 100644 --- a/agent/config_endpoint_test.go +++ b/agent/config_endpoint_test.go @@ -116,9 +116,10 @@ func TestConfig_Get(t *testing.T) { ce, ok := obj.(*structs.MeshConfigEntry) require.True(t, ok, "wrong type %T", obj) - // Set indexes to expected values for assertions + // Set indexes and EnterpriseMeta to expected values for assertions ce.CreateIndex = 12 ce.ModifyIndex = 13 + ce.EnterpriseMeta = structs.EnterpriseMeta{} out, err := a.srv.marshalJSON(req, obj) require.NoError(t, err) diff --git a/agent/proxycfg/state_test.go b/agent/proxycfg/state_test.go index 021b4465d2..d2549d1a2b 100644 --- a/agent/proxycfg/state_test.go +++ b/agent/proxycfg/state_test.go @@ -1814,7 +1814,7 @@ func TestState_WatchesAndUpdates(t *testing.T) { }, events: []cache.UpdateEvent{ { - CorrelationID: "discovery-chain:db", + CorrelationID: "discovery-chain:" + db.String(), Result: &structs.DiscoveryChainResponse{ Chain: discoverychain.TestCompileConfigEntries(t, "db", "default", "dc1", "trustdomain.consul", "dc1", nil, &structs.ServiceResolverConfigEntry{