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:
Martin Sehnoutka 2019-11-27 14:01:05 +01:00 committed by Tom Gundersen
parent 91bce12513
commit 364ea62f59
4 changed files with 163 additions and 4 deletions

View file

@ -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)
}
}