Skip to content

Commit

Permalink
update grpc tests
Browse files Browse the repository at this point in the history
  • Loading branch information
David Christofas committed Jul 8, 2021
1 parent ca28492 commit 225aacd
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions tests/integration/grpc/storageprovider_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -322,7 +322,7 @@ var _ = Describe("storage providers", func() {
Expect(res.Status.Code).To(Equal(rpcv1beta1.Code_CODE_OK))

By("listing the recycle items")
listRes, err := serviceClient.ListRecycle(ctx, &storagep.ListRecycleRequest{})
listRes, err := serviceClient.ListRecycle(ctx, &storagep.ListRecycleRequest{Ref: homeRef})
Expect(err).ToNot(HaveOccurred())
Expect(listRes.Status.Code).To(Equal(rpcv1beta1.Code_CODE_OK))

Expand All @@ -337,7 +337,7 @@ var _ = Describe("storage providers", func() {

restoreRes, err := serviceClient.RestoreRecycleItem(ctx,
&storagep.RestoreRecycleItemRequest{
Ref: subdirRef,
Ref: homeRef,
Key: item.Key,
},
)
Expand All @@ -357,7 +357,7 @@ var _ = Describe("storage providers", func() {
Expect(res.Status.Code).To(Equal(rpcv1beta1.Code_CODE_OK))

By("listing the recycle items")
listRes, err := serviceClient.ListRecycle(ctx, &storagep.ListRecycleRequest{})
listRes, err := serviceClient.ListRecycle(ctx, &storagep.ListRecycleRequest{Ref: homeRef})
Expect(err).ToNot(HaveOccurred())
Expect(listRes.Status.Code).To(Equal(rpcv1beta1.Code_CODE_OK))

Expand All @@ -372,7 +372,7 @@ var _ = Describe("storage providers", func() {

restoreRes, err := serviceClient.RestoreRecycleItem(ctx,
&storagep.RestoreRecycleItemRequest{
Ref: subdirRef,
Ref: homeRef,
Key: item.Key,
RestoreRef: &storagep.Reference{Path: "/subdirRestored"},
},
Expand All @@ -392,7 +392,7 @@ var _ = Describe("storage providers", func() {
Expect(res.Status.Code).To(Equal(rpcv1beta1.Code_CODE_OK))

By("listing recycle items")
listRes, err := serviceClient.ListRecycle(ctx, &storagep.ListRecycleRequest{})
listRes, err := serviceClient.ListRecycle(ctx, &storagep.ListRecycleRequest{Ref: homeRef})
Expect(err).ToNot(HaveOccurred())
Expect(listRes.Status.Code).To(Equal(rpcv1beta1.Code_CODE_OK))
Expect(len(listRes.RecycleItems)).To(Equal(1))
Expand All @@ -402,7 +402,7 @@ var _ = Describe("storage providers", func() {
Expect(err).ToNot(HaveOccurred())
Expect(purgeRes.Status.Code).To(Equal(rpcv1beta1.Code_CODE_OK))

listRes, err = serviceClient.ListRecycle(ctx, &storagep.ListRecycleRequest{})
listRes, err = serviceClient.ListRecycle(ctx, &storagep.ListRecycleRequest{Ref: homeRef})
Expect(err).ToNot(HaveOccurred())
Expect(listRes.Status.Code).To(Equal(rpcv1beta1.Code_CODE_OK))
Expect(len(listRes.RecycleItems)).To(Equal(0))
Expand Down

0 comments on commit 225aacd

Please sign in to comment.