We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6293dfa commit ba2a701Copy full SHA for ba2a701
pkg/azure/blob_integration_test.go
@@ -281,9 +281,10 @@ func TestBlobClientContainerSASKey_BucketExists(t *testing.T) {
281
g.Expect(err).ToNot(HaveOccurred())
282
g.Expect(ok).To(BeTrue())
283
284
- // Test that this still works if bucket doesn't exist
+ // BucketExists returns an error if the bucket doesn't exist with container level SAS
285
+ // since the error code is AuthenticationFailed.
286
ok, err = sasKeyClient.BucketExists(ctx, "non-existent")
- g.Expect(err).ToNot(HaveOccurred())
287
+ g.Expect(err).To(HaveOccurred())
288
g.Expect(ok).To(BeFalse())
289
}
290
0 commit comments