mirror of
https://github.com/GoogleContainerTools/kaniko
synced 2026-10-22 10:38:44 +02:00
Add more test case for azureblob_util.go
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user