Skip to content

Commit

Permalink
Correct error msg
Browse files Browse the repository at this point in the history
Signed-off-by: Somtochi Onyekwere <somtochionyekwere@gmail.com>
  • Loading branch information
somtochiama committed Oct 7, 2022
1 parent b7f20d5 commit d0bbe2c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/azure/blob_integration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -281,11 +281,11 @@ func TestBlobClientContainerSASKey_BucketExists(t *testing.T) {
g.Expect(err).ToNot(HaveOccurred())
g.Expect(ok).To(BeTrue())

// BucketExists returns a good error message if the bucket doesn't exist with container level SAS
// BucketExists returns an error if the bucket doesn't exist with container level SAS
// since the error code is AuthenticationFailed.
ok, err = sasKeyClient.BucketExists(ctx, "non-existent")
g.Expect(err).To(HaveOccurred())
g.Expect(err.Error()).To(ContainSubstring("Bucket might not exist"))
g.Expect(err.Error()).To(ContainSubstring("Bucket name may be incorrect, it does not exist"))
g.Expect(ok).To(BeFalse())
}

Expand Down

0 comments on commit d0bbe2c

Please sign in to comment.