Skip to content

Commit

Permalink
blob/azureblob: add an additional test of storage_account param
Browse files Browse the repository at this point in the history
  • Loading branch information
ekini committed Aug 12, 2022
1 parent 03704ec commit 49a1715
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions blob/azureblob/azureblob_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -469,6 +469,14 @@ func TestNewServiceURL(t *testing.T) {
opts: ServiceURLOptions{},
wantErrURL: true,
},
{
// Account name set in the query
opts: ServiceURLOptions{},
query: url.Values{
"storage_account": {"testaccount"},
},
want: "https://testaccount.blob.core.windows.net",
},
{
// Basic working case.
opts: ServiceURLOptions{
Expand Down

0 comments on commit 49a1715

Please sign in to comment.