add config properties to the SyncResponse of the management gRpc service (#66)

* feature: add config properties to the SyncResponse of the management gRpc service
This commit is contained in:
Mikhail Bragin
2021-07-25 17:08:16 +02:00
committed by GitHub
parent 9e4aa4f1f1
commit 3b30beb567
4 changed files with 648 additions and 76 deletions
+5 -5
View File
@@ -112,8 +112,8 @@ var _ = Describe("Management service", func() {
err = pb.Unmarshal(decryptedBytes, resp)
Expect(err).NotTo(HaveOccurred())
Expect(resp.Peers).To(HaveLen(2))
Expect(resp.Peers).To(ContainElements(key1.PublicKey().String(), key2.PublicKey().String()))
Expect(resp.GetPeers()).To(HaveLen(2))
Expect(resp.GetPeers()).To(ContainElements(key1.PublicKey().String(), key2.PublicKey().String()))
})
})
@@ -143,7 +143,7 @@ var _ = Describe("Management service", func() {
Expect(err).NotTo(HaveOccurred())
resp := &mgmtProto.SyncResponse{}
err = pb.Unmarshal(decryptedBytes, resp)
Expect(resp.Peers).To(HaveLen(0))
Expect(resp.GetPeers()).To(HaveLen(0))
wg := sync2.WaitGroup{}
wg.Add(1)
@@ -167,8 +167,8 @@ var _ = Describe("Management service", func() {
wg.Wait()
Expect(err).NotTo(HaveOccurred())
Expect(resp.Peers).To(ContainElements(key1.PublicKey().String()))
Expect(resp.Peers).To(HaveLen(1))
Expect(resp.GetPeers()).To(ContainElements(key1.PublicKey().String()))
Expect(resp.GetPeers()).To(HaveLen(1))
})
})
})