Introduce Azure upload test
The test is very simple, it first upload a file with random content and then downloads it back and compare hashes.
This commit is contained in:
parent
91bce12513
commit
364ea62f59
4 changed files with 163 additions and 4 deletions
|
|
@ -35,7 +35,7 @@ func main() {
|
|||
|
||||
fmt.Println("Image to upload is:", fileName)
|
||||
|
||||
azure.UploadImage(azure.Credentials{
|
||||
err := azure.UploadImage(azure.Credentials{
|
||||
StorageAccount: storageAccount,
|
||||
StorageAccessKey: storageAccessKey,
|
||||
}, azure.ImageMetadata{
|
||||
|
|
@ -43,4 +43,7 @@ func main() {
|
|||
ContainerName: containerName,
|
||||
}, fileName, threads)
|
||||
|
||||
if err != nil {
|
||||
fmt.Println("Error: ", err)
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue