Azure-Samples / azure-sdk-for-go-samples

Examples of how to utilize Azure services from Go.
MIT License
296 stars 184 forks source link

go test list.Blobs undefined #272

Open saraswat40 opened 4 years ago

saraswat40 commented 4 years ago

Thank you for your contribution and feedback! Help us review faster by providing the following information:

This issue is a: (mark with an x)

Steps to reproduce:

I cloned the repository and created a .env file: AZURE_TENANT_ID=cxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx6 AZURE_CLIENT_ID=6xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxc AZURE_CLIENT_SECRET=Oxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx6 AZURE_SUBSCRIPTION_ID=5xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx1 AZURE_STORAGE_ACCOUNT_NAME= AZURE_STORAGE_ACCOUNT_GROUP_NAME= AZURE_RG_NAME=Pxxxxxxxxxxxl AZURE_LOCATION=test

Errors and log messages:

running go test gives me the following error:

github.com/Azure-Samples/azure-sdk-for-go-samples/storage [github.com/Azure-Samples/azure-sdk-for-go-samples/storage.test]

./container_test.go:44:58: list.Blobs undefined (type *azblob.ListBlobsFlatSegmentResponse has no field or method Blobs) FAIL github.com/Azure-Samples/azure-sdk-for-go-samples/storage [build failed]

Expected behavior:

maybe the test should fail but the build should pass.

OS and Go versions:

Ubuntu 19.10 go 1.1.2.17

Further info: