Skip to content

Commit fce9f2c

Browse files
committed
userapi: send mesh root
1 parent b9373e4 commit fce9f2c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

coordinator/userapi.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ func (s *userAPIServer) GetManifests(_ context.Context, _ *userapi.GetManifestsR
134134
Manifests: manifestBytes,
135135
Policies: policySliceToBytesSlice(policies),
136136
CoordinatorRoot: s.caChainGetter.GetCoordinatorRootCert(),
137-
MeshRoot: s.caChainGetter.GetIntermCert(),
137+
MeshRoot: s.caChainGetter.GetMeshRootCert(),
138138
}
139139

140140
s.logger.Info("GetManifest succeeded")

coordinator/userapi_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,7 @@ func TestGetManifests(t *testing.T) {
294294
}
295295
require.NoError(err)
296296
assert.Equal([]byte("root"), resp.CoordinatorRoot)
297-
assert.Equal([]byte("inter"), resp.MeshRoot)
297+
assert.Equal([]byte("mesh"), resp.MeshRoot)
298298
assert.Len(resp.Policies, len(tc.policyStoreContent))
299299
})
300300
}

0 commit comments

Comments
 (0)