Skip to content

Commit ba2a701

Browse files
committed
expect error from when bucket doesn't exist
Signed-off-by: Somtochi Onyekwere <[email protected]>
1 parent 6293dfa commit ba2a701

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

pkg/azure/blob_integration_test.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -281,9 +281,10 @@ func TestBlobClientContainerSASKey_BucketExists(t *testing.T) {
281281
g.Expect(err).ToNot(HaveOccurred())
282282
g.Expect(ok).To(BeTrue())
283283

284-
// Test that this still works if bucket doesn't exist
284+
// BucketExists returns an error if the bucket doesn't exist with container level SAS
285+
// since the error code is AuthenticationFailed.
285286
ok, err = sasKeyClient.BucketExists(ctx, "non-existent")
286-
g.Expect(err).ToNot(HaveOccurred())
287+
g.Expect(err).To(HaveOccurred())
287288
g.Expect(ok).To(BeFalse())
288289
}
289290

0 commit comments

Comments
 (0)