Skip to content

Commit eb0178c

Browse files
authored
Merge pull request #34 from ggriffiths/fix_no_creds_expect
Fix expected status codes for requests with missing credentials
2 parents 5668e7f + 57d3744 commit eb0178c

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

pkg/sanity/cloudbackup.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,7 @@ var _ = Describe("Cloud backup [OpenStorageClusterBackup]", func() {
272272
Expect(err).To(HaveOccurred())
273273
serverError, ok := status.FromError(err)
274274
Expect(ok).To(BeTrue())
275-
Expect(serverError.Code()).To(BeEquivalentTo(codes.Internal))
275+
Expect(serverError.Code()).To(BeEquivalentTo(codes.NotFound))
276276
})
277277

278278
It("Should fail to create back up if empty credentials is passed", func() {
@@ -469,7 +469,7 @@ var _ = Describe("Cloud backup [OpenStorageClusterBackup]", func() {
469469

470470
serverError, ok := status.FromError(err)
471471
Expect(ok).To(BeTrue())
472-
Expect(serverError.Code()).To(BeEquivalentTo(codes.Internal))
472+
Expect(serverError.Code()).To(BeEquivalentTo(codes.NotFound))
473473
})
474474

475475
It("Should fail to enumerate back up if empty credentials is passed", func() {

0 commit comments

Comments
 (0)