From 49a17155deaf91a446894936d803c2c128e2b61e Mon Sep 17 00:00:00 2001 From: Eugene Dementyev Date: Fri, 12 Aug 2022 22:21:56 +1200 Subject: [PATCH] blob/azureblob: add an additional test of storage_account param --- blob/azureblob/azureblob_test.go | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/blob/azureblob/azureblob_test.go b/blob/azureblob/azureblob_test.go index 85d251f607..2183977516 100644 --- a/blob/azureblob/azureblob_test.go +++ b/blob/azureblob/azureblob_test.go @@ -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{