Skip to content

Commit 6293dfa

Browse files
committed
use correct client for test
Signed-off-by: Somtochi Onyekwere <[email protected]>
1 parent d029140 commit 6293dfa

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

pkg/azure/blob_integration_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ func TestBlobClientSASKey_FGetObject(t *testing.T) {
194194
localPath := filepath.Join(tempDir, testFile)
195195

196196
// use the shared key client to create a SAS key for the account
197-
sasKey, err := client.ServiceClient.GetSASURL(azblob.AccountSASResourceTypes{Object: true, Container: true},
197+
sasKey, err := client.GetSASURL(azblob.AccountSASResourceTypes{Object: true, Container: true},
198198
azblob.AccountSASPermissions{List: true, Read: true},
199199
time.Now(),
200200
time.Now().Add(48*time.Hour))
@@ -254,7 +254,7 @@ func TestBlobClientContainerSASKey_BucketExists(t *testing.T) {
254254
g.Expect(createBlob(ctx, client, testContainer, testFile, testFileData))
255255

256256
// use the container client to create a container-level SAS key for the account
257-
containerClient, err := client.ServiceClient.NewContainerClient(testContainer)
257+
containerClient, err := client.NewContainerClient(testContainer)
258258
g.Expect(err).ToNot(HaveOccurred())
259259
// sasKey
260260
sasKey, err := containerClient.GetSASURL(azblob.ContainerSASPermissions{Read: true, List: true},
@@ -282,7 +282,7 @@ func TestBlobClientContainerSASKey_BucketExists(t *testing.T) {
282282
g.Expect(ok).To(BeTrue())
283283

284284
// Test that this still works if bucket doesn't exist
285-
ok, err = client.BucketExists(ctx, "non-existent")
285+
ok, err = sasKeyClient.BucketExists(ctx, "non-existent")
286286
g.Expect(err).ToNot(HaveOccurred())
287287
g.Expect(ok).To(BeFalse())
288288
}

0 commit comments

Comments
 (0)