Fix config entry test for enterprise meta

This commit is contained in:
Daniel Nephin 2021-05-05 12:37:47 -04:00 committed by freddygv
parent c73703c08b
commit c88a77c9a3
1 changed files with 2 additions and 1 deletions

View File

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