Add more test case for azureblob_util.go

This commit is contained in:
yangtaokm 2019-10-14 13:55:03 +08:00
parent 45d58cf350
commit 78e9974694
1 changed files with 10 additions and 0 deletions

View File

@ -63,6 +63,16 @@ func Test_ValidAzureBlobStorageHost(t *testing.T) {
context: "https://myaccount.blob.core.windows.net/",
expectedResult: false,
},
{
name: "URL with folder structure",
context: "https://myaccount.blob.core.windows.net/fairingcontext/path/to/context.tar.gz",
expectedResult: true,
},
{
name: "URL with $root container",
context: "https://myaccount.blob.core.windows.net/$root/context.tar.gz",
expectedResult: true,
},
}
for _, test := range tests {