Skip to content

Commit

Permalink
Merge pull request #51 from tombuildsstuff/f/update-deps
Browse files Browse the repository at this point in the history
updating dependencies / adding 2020-08-04 to the readme
  • Loading branch information
tombuildsstuff authored Aug 2, 2021
2 parents b9ec21b + ee5a631 commit 211bde8
Show file tree
Hide file tree
Showing 106 changed files with 153 additions and 137 deletions.
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,15 @@ This repository is an alternative Azure Storage SDK for Go; which supports for:

At this time we support the following API Versions:

* `2020-08-04` (`./storage/2020-08-04`)
* `2019-12-12` (`./storage/2019-12-12`)
* `2018-11-09` (`./storage/2018-11-09`)
* `2018-03-28` (`./storage/2018-03-28`)
* `2017-07-29` (`./storage/2017-07-29`)

We're also open to supporting other versions of the Azure Storage SDK as necessary.

Documentation for how to use each SDK can be found within the README for that SDK version - for example [here's the README for 2018-11-09](storage/2018-11-09/README.md).
Documentation for how to use each SDK can be found within the README for that SDK version - for example [here's the README for 2020-08-04](storage/2020-08-04/README.md).

Each Package also contains Unit and Acceptance tests to ensure that the functionality works; instructions on how to run the tests can be found below.

Expand Down Expand Up @@ -87,7 +88,7 @@ $ ACCTEST=1 go test -v ./storage/...
You can also run them for a specific API version by running:

```bash
$ ACCTEST=1 go test -v ./storage/2018-11-09/...
$ ACCTEST=1 go test -v ./storage/2020-08-04/...
```

## Debugging
Expand Down
11 changes: 7 additions & 4 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,15 @@ module github.com/tombuildsstuff/giovanni
go 1.13

require (
github.com/Azure/azure-sdk-for-go v47.1.0+incompatible
github.com/Azure/go-autorest/autorest v0.11.10
github.com/Azure/azure-sdk-for-go v56.0.0+incompatible
github.com/Azure/go-autorest/autorest v0.11.19
github.com/Azure/go-autorest/autorest/adal v0.9.14 // indirect
github.com/Azure/go-autorest/autorest/azure/cli v0.4.2 // indirect
github.com/Azure/go-autorest/autorest/validation v0.3.0
github.com/Azure/go-autorest/autorest/validation v0.3.1
github.com/dimchansky/utfbom v1.1.1 // indirect
github.com/form3tech-oss/jwt-go v3.2.3+incompatible // indirect
github.com/google/uuid v1.1.1
github.com/hashicorp/go-azure-helpers v0.12.0
github.com/stretchr/testify v1.3.0
golang.org/x/crypto v0.0.0-20201016220609-9e8e0b390897 // indirect
golang.org/x/crypto v0.0.0-20210711020723-a769d52b0f97 // indirect
)
34 changes: 23 additions & 11 deletions go.sum
Original file line number Diff line number Diff line change
@@ -1,14 +1,16 @@
github.com/Azure/azure-sdk-for-go v45.0.0+incompatible/go.mod h1:9XXNKU+eRnpl9moKnB4QOLf1HestfXbmab5FXxiDBjc=
github.com/Azure/azure-sdk-for-go v47.1.0+incompatible h1:D6MsWmsxF+pEjN/yZDyKXoUrsamdBdTlPedIgBlvVx4=
github.com/Azure/azure-sdk-for-go v47.1.0+incompatible/go.mod h1:9XXNKU+eRnpl9moKnB4QOLf1HestfXbmab5FXxiDBjc=
github.com/Azure/azure-sdk-for-go v56.0.0+incompatible h1:jp/df9XKIJYtf4HIVA9cgmVbQpp12lxk73pcHvDsgDE=
github.com/Azure/azure-sdk-for-go v56.0.0+incompatible/go.mod h1:9XXNKU+eRnpl9moKnB4QOLf1HestfXbmab5FXxiDBjc=
github.com/Azure/go-autorest v14.2.0+incompatible h1:V5VMDjClD3GiElqLWO7mz2MxNAK/vTfRHdAubSIPRgs=
github.com/Azure/go-autorest v14.2.0+incompatible/go.mod h1:r+4oMnoxhatjLLJ6zxSWATqVooLgysK6ZNox3g/xq24=
github.com/Azure/go-autorest/autorest v0.11.3/go.mod h1:JFgpikqFJ/MleTTxwepExTKnFUKKszPS8UavbQYUMuw=
github.com/Azure/go-autorest/autorest v0.11.10 h1:j5sGbX7uj1ieYYkQ3Mpvewd4DCsEQ+ZeJpqnSM9pjnM=
github.com/Azure/go-autorest/autorest v0.11.10/go.mod h1:eipySxLmqSyC5s5k1CLupqet0PSENBEDP93LQ9a8QYw=
github.com/Azure/go-autorest/autorest v0.11.19 h1:7/IqD2fEYVha1EPeaiytVKhzmPV223pfkRIQUGOK2IE=
github.com/Azure/go-autorest/autorest v0.11.19/go.mod h1:dSiJPy22c3u0OtOKDNttNgqpNFY/GeWa7GH/Pz56QRA=
github.com/Azure/go-autorest/autorest/adal v0.9.0/go.mod h1:/c022QCutn2P7uY+/oQWWNcK9YU+MH96NgK+jErpbcg=
github.com/Azure/go-autorest/autorest/adal v0.9.5 h1:Y3bBUV4rTuxenJJs41HU3qmqsb+auo+a3Lz+PlJPpL0=
github.com/Azure/go-autorest/autorest/adal v0.9.5/go.mod h1:B7KF7jKIeC9Mct5spmyCB/A8CG/sEz1vwIRGv/bbw7A=
github.com/Azure/go-autorest/autorest/adal v0.9.13/go.mod h1:W/MM4U6nLxnIskrw4UwWzlHfGjwUS50aOsc/I3yuU8M=
github.com/Azure/go-autorest/autorest/adal v0.9.14 h1:G8hexQdV5D4khOXrWG2YuLCFKhWYmWD8bHYaXN5ophk=
github.com/Azure/go-autorest/autorest/adal v0.9.14/go.mod h1:W/MM4U6nLxnIskrw4UwWzlHfGjwUS50aOsc/I3yuU8M=
github.com/Azure/go-autorest/autorest/azure/cli v0.4.0/go.mod h1:JljT387FplPzBA31vUcvsetLKF3pec5bdAxjVU4kI2s=
github.com/Azure/go-autorest/autorest/azure/cli v0.4.2 h1:dMOmEJfkLKW/7JsokJqkyoYSgmR08hi9KrhjZb+JALY=
github.com/Azure/go-autorest/autorest/azure/cli v0.4.2/go.mod h1:7qkJkT+j6b+hIpzMOwPChJhTqS8VbsqqgULzMNRugoM=
Expand All @@ -19,20 +21,24 @@ github.com/Azure/go-autorest/autorest/mocks v0.4.1 h1:K0laFcLE6VLTOwNgSxaGbUcLPu
github.com/Azure/go-autorest/autorest/mocks v0.4.1/go.mod h1:LTp+uSrOhSkaKrUy935gNZuuIPPVsHlr9DSOxSayd+k=
github.com/Azure/go-autorest/autorest/to v0.4.0 h1:oXVqrxakqqV1UZdSazDOPOLvOIz+XA683u8EctwboHk=
github.com/Azure/go-autorest/autorest/to v0.4.0/go.mod h1:fE8iZBn7LQR7zH/9XU2NcPR4o9jEImooCeWJcYV/zLE=
github.com/Azure/go-autorest/autorest/validation v0.3.0 h1:3I9AAI63HfcLtphd9g39ruUwRI+Ca+z/f36KHPFRUss=
github.com/Azure/go-autorest/autorest/validation v0.3.0/go.mod h1:yhLgjC0Wda5DYXl6JAsWyUe4KVNffhoDhG0zVzUMo3E=
github.com/Azure/go-autorest/logger v0.2.0 h1:e4RVHVZKC5p6UANLJHkM4OfR1UKZPj8Wt8Pcx+3oqrE=
github.com/Azure/go-autorest/autorest/validation v0.3.1 h1:AgyqjAd94fwNAoTjl/WQXg4VvFeRFpO+UhNyRXqF1ac=
github.com/Azure/go-autorest/autorest/validation v0.3.1/go.mod h1:yhLgjC0Wda5DYXl6JAsWyUe4KVNffhoDhG0zVzUMo3E=
github.com/Azure/go-autorest/logger v0.2.0/go.mod h1:T9E3cAhj2VqvPOtCYAvby9aBXkZmbF5NWuPV8+WeEW8=
github.com/Azure/go-autorest/logger v0.2.1 h1:IG7i4p/mDa2Ce4TRyAO8IHnVhAVF3RFU+ZtXWSmf4Tg=
github.com/Azure/go-autorest/logger v0.2.1/go.mod h1:T9E3cAhj2VqvPOtCYAvby9aBXkZmbF5NWuPV8+WeEW8=
github.com/Azure/go-autorest/tracing v0.6.0 h1:TYi4+3m5t6K48TGI9AUdb+IzbnSxvnvUMfuitfgcfuo=
github.com/Azure/go-autorest/tracing v0.6.0/go.mod h1:+vhtPC754Xsa23ID7GlGsrdKBpUA79WCAKPPZVC2DeU=
github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c=
github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
github.com/dgrijalva/jwt-go v3.2.0+incompatible/go.mod h1:E3ru+11k8xSBh+hMPgOLZmtrrCbhqsmaPHjLKYnJCaQ=
github.com/dimchansky/utfbom v1.1.0 h1:FcM3g+nofKgUteL8dm/UpdRXNC9KmADgTpLKsu0TRo4=
github.com/dimchansky/utfbom v1.1.0/go.mod h1:rO41eb7gLfo8SF1jd9F8HplJm1Fewwi4mQvIirEdv+8=
github.com/form3tech-oss/jwt-go v3.2.2+incompatible h1:TcekIExNqud5crz4xD2pavyTgWiPvpYe4Xau31I0PRk=
github.com/dimchansky/utfbom v1.1.1 h1:vV6w1AhK4VMnhBno/TPVCoK9U/LP0PkLCS9tbxHdi/U=
github.com/dimchansky/utfbom v1.1.1/go.mod h1:SxdoEBH5qIqFocHMyGOXVAybYJdr71b1Q/j0mACtrfE=
github.com/form3tech-oss/jwt-go v3.2.2+incompatible/go.mod h1:pbq4aXjuKjdthFRnoDwaVPLA+WlJuPGy+QneDUgJi2k=
github.com/form3tech-oss/jwt-go v3.2.3+incompatible h1:7ZaBxOI7TMoYBfyA3cQHErNNyAWIKUMIwqxEtgHOs5c=
github.com/form3tech-oss/jwt-go v3.2.3+incompatible/go.mod h1:pbq4aXjuKjdthFRnoDwaVPLA+WlJuPGy+QneDUgJi2k=
github.com/google/uuid v1.1.1 h1:Gkbcsh/GbpXz7lPftLA3P6TYMwjCLYm83jiFQZF/3gY=
github.com/google/uuid v1.1.1/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo=
github.com/hashicorp/errwrap v1.0.0 h1:hLrqtEDnRye3+sgx6z4qVLNuviH3MR5aQ0ykNJa/UYA=
Expand All @@ -51,9 +57,15 @@ github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UV
golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w=
golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto=
golang.org/x/crypto v0.0.0-20201002170205-7f63de1d35b0/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto=
golang.org/x/crypto v0.0.0-20201016220609-9e8e0b390897 h1:pLI5jrR7OSLijeIDcmRxNmw2api+jEfxLoykJVice/E=
golang.org/x/crypto v0.0.0-20201016220609-9e8e0b390897/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto=
golang.org/x/crypto v0.0.0-20210711020723-a769d52b0f97 h1:/UOmuWzQfxxo9UtlXMwuQU8CMgg1eZXqTRwkSQJWKOI=
golang.org/x/crypto v0.0.0-20210711020723-a769d52b0f97/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc=
golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg=
golang.org/x/net v0.0.0-20210226172049-e18ecbb05110/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg=
golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20201119102817-f84b799fce68/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20210615035016-665e8c7367d1/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo=
golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ=
2 changes: 1 addition & 1 deletion storage/2017-07-29/blob/blobs/blob_append_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ func TestAppendBlobLifecycle(t *testing.T) {
containerName := fmt.Sprintf("cont-%d", testhelpers.RandomInt())
fileName := "append-blob.txt"

testData, err := client.BuildTestResources(ctx, resourceGroup, accountName, storage.BlobStorage)
testData, err := client.BuildTestResources(ctx, resourceGroup, accountName, storage.KindBlobStorage)
if err != nil {
t.Fatal(err)
}
Expand Down
2 changes: 1 addition & 1 deletion storage/2017-07-29/blob/blobs/blob_page_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ func TestPageBlobLifecycle(t *testing.T) {
containerName := fmt.Sprintf("cont-%d", testhelpers.RandomInt())
fileName := "append-blob.txt"

testData, err := client.BuildTestResources(ctx, resourceGroup, accountName, storage.StorageV2)
testData, err := client.BuildTestResources(ctx, resourceGroup, accountName, storage.KindStorageV2)
if err != nil {
t.Fatal(err)
}
Expand Down
4 changes: 2 additions & 2 deletions storage/2017-07-29/blob/blobs/copy_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ func TestCopyFromExistingFile(t *testing.T) {
fileName := "ubuntu.iso"
copiedFileName := "copied.iso"

testData, err := client.BuildTestResources(ctx, resourceGroup, accountName, storage.BlobStorage)
testData, err := client.BuildTestResources(ctx, resourceGroup, accountName, storage.KindBlobStorage)
if err != nil {
t.Fatal(err)
}
Expand Down Expand Up @@ -102,7 +102,7 @@ func TestCopyFromURL(t *testing.T) {
containerName := fmt.Sprintf("cont-%d", testhelpers.RandomInt())
fileName := "ubuntu.iso"

testData, err := client.BuildTestResources(ctx, resourceGroup, accountName, storage.BlobStorage)
testData, err := client.BuildTestResources(ctx, resourceGroup, accountName, storage.KindBlobStorage)
if err != nil {
t.Fatal(err)
}
Expand Down
2 changes: 1 addition & 1 deletion storage/2017-07-29/blob/blobs/lease_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ func TestLeaseLifecycle(t *testing.T) {
containerName := fmt.Sprintf("cont-%d", testhelpers.RandomInt())
fileName := "ubuntu.iso"

testData, err := client.BuildTestResources(ctx, resourceGroup, accountName, storage.BlobStorage)
testData, err := client.BuildTestResources(ctx, resourceGroup, accountName, storage.KindBlobStorage)
if err != nil {
t.Fatal(err)
}
Expand Down
2 changes: 1 addition & 1 deletion storage/2017-07-29/blob/blobs/lifecycle_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ func TestLifecycle(t *testing.T) {
containerName := fmt.Sprintf("cont-%d", testhelpers.RandomInt())
fileName := "example.txt"

testData, err := client.BuildTestResources(ctx, resourceGroup, accountName, storage.BlobStorage)
testData, err := client.BuildTestResources(ctx, resourceGroup, accountName, storage.KindBlobStorage)
if err != nil {
t.Fatal(err)
}
Expand Down
2 changes: 1 addition & 1 deletion storage/2017-07-29/blob/blobs/snapshot_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ func TestSnapshotLifecycle(t *testing.T) {
containerName := fmt.Sprintf("cont-%d", testhelpers.RandomInt())
fileName := "example.txt"

testData, err := client.BuildTestResources(ctx, resourceGroup, accountName, storage.BlobStorage)
testData, err := client.BuildTestResources(ctx, resourceGroup, accountName, storage.KindBlobStorage)
if err != nil {
t.Fatal(err)
}
Expand Down
2 changes: 1 addition & 1 deletion storage/2017-07-29/blob/containers/lifecycle_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ func TestContainerLifecycle(t *testing.T) {
accountName := fmt.Sprintf("acctestsa%s", testhelpers.RandomString())
containerName := fmt.Sprintf("cont-%d", testhelpers.RandomInt())

testData, err := client.BuildTestResources(ctx, resourceGroup, accountName, storage.BlobStorage)
testData, err := client.BuildTestResources(ctx, resourceGroup, accountName, storage.KindBlobStorage)
if err != nil {
t.Fatal(err)
}
Expand Down
2 changes: 1 addition & 1 deletion storage/2017-07-29/file/directories/lifecycle_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ func TestDirectoriesLifeCycle(t *testing.T) {
accountName := fmt.Sprintf("acctestsa%s", testhelpers.RandomString())
shareName := fmt.Sprintf("share-%d", testhelpers.RandomInt())

testData, err := client.BuildTestResources(ctx, resourceGroup, accountName, storage.Storage)
testData, err := client.BuildTestResources(ctx, resourceGroup, accountName, storage.KindStorage)
if err != nil {
t.Fatal(err)
}
Expand Down
4 changes: 2 additions & 2 deletions storage/2017-07-29/file/files/copy_wait_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ func TestFilesCopyAndWaitFromURL(t *testing.T) {
accountName := fmt.Sprintf("acctestsa%s", testhelpers.RandomString())
shareName := fmt.Sprintf("share-%d", testhelpers.RandomInt())

testData, err := client.BuildTestResources(ctx, resourceGroup, accountName, storage.Storage)
testData, err := client.BuildTestResources(ctx, resourceGroup, accountName, storage.KindStorage)
if err != nil {
t.Fatal(err)
}
Expand Down Expand Up @@ -77,7 +77,7 @@ func TestFilesCopyAndWaitFromBlob(t *testing.T) {
accountName := fmt.Sprintf("acctestsa%s", testhelpers.RandomString())
shareName := fmt.Sprintf("share-%d", testhelpers.RandomInt())

testData, err := client.BuildTestResources(ctx, resourceGroup, accountName, storage.Storage)
testData, err := client.BuildTestResources(ctx, resourceGroup, accountName, storage.KindStorage)
if err != nil {
t.Fatal(err)
}
Expand Down
2 changes: 1 addition & 1 deletion storage/2017-07-29/file/files/lifecycle_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ func TestFilesLifeCycle(t *testing.T) {
accountName := fmt.Sprintf("acctestsa%s", testhelpers.RandomString())
shareName := fmt.Sprintf("share-%d", testhelpers.RandomInt())

testData, err := client.BuildTestResources(ctx, resourceGroup, accountName, storage.Storage)
testData, err := client.BuildTestResources(ctx, resourceGroup, accountName, storage.KindStorage)
if err != nil {
t.Fatal(err)
}
Expand Down
2 changes: 1 addition & 1 deletion storage/2017-07-29/file/files/range_get_file_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ func testGetFile(t *testing.T, fileName string, contentType string) {
accountName := fmt.Sprintf("acctestsa%s", testhelpers.RandomString())
shareName := fmt.Sprintf("share-%d", testhelpers.RandomInt())

testData, err := client.BuildTestResources(ctx, resourceGroup, accountName, storage.Storage)
testData, err := client.BuildTestResources(ctx, resourceGroup, accountName, storage.KindStorage)
if err != nil {
t.Fatal(err)
}
Expand Down
2 changes: 1 addition & 1 deletion storage/2017-07-29/file/files/range_put_file_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ func testPutFile(t *testing.T, fileName string, contentType string) {
accountName := fmt.Sprintf("acctestsa%s", testhelpers.RandomString())
shareName := fmt.Sprintf("share-%d", testhelpers.RandomInt())

testData, err := client.BuildTestResources(ctx, resourceGroup, accountName, storage.Storage)
testData, err := client.BuildTestResources(ctx, resourceGroup, accountName, storage.KindStorage)
if err != nil {
t.Fatal(err)
}
Expand Down
4 changes: 2 additions & 2 deletions storage/2017-07-29/file/shares/lifecycle_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ func TestSharesLifecycle(t *testing.T) {
accountName := fmt.Sprintf("acctestsa%s", testhelpers.RandomString())
shareName := fmt.Sprintf("share-%d", testhelpers.RandomInt())

testData, err := client.BuildTestResources(ctx, resourceGroup, accountName, storage.Storage)
testData, err := client.BuildTestResources(ctx, resourceGroup, accountName, storage.KindStorage)
if err != nil {
t.Fatal(err)
}
Expand Down Expand Up @@ -161,7 +161,7 @@ func TestSharesLifecycleLargeQuota(t *testing.T) {
accountName := fmt.Sprintf("acctestsa%s", testhelpers.RandomString())
shareName := fmt.Sprintf("share-%d", testhelpers.RandomInt())

testData, err := client.BuildTestResourcesWithSku(ctx, resourceGroup, accountName, storage.FileStorage, storage.PremiumLRS)
testData, err := client.BuildTestResourcesWithSku(ctx, resourceGroup, accountName, storage.KindFileStorage, storage.SkuNamePremiumLRS)
if err != nil {
t.Fatal(err)
}
Expand Down
2 changes: 1 addition & 1 deletion storage/2017-07-29/queue/messages/lifecycle_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ func TestLifeCycle(t *testing.T) {
accountName := fmt.Sprintf("acctestsa%s", testhelpers.RandomString())
queueName := fmt.Sprintf("queue-%d", testhelpers.RandomInt())

testData, err := client.BuildTestResources(ctx, resourceGroup, accountName, storage.Storage)
testData, err := client.BuildTestResources(ctx, resourceGroup, accountName, storage.KindStorage)
if err != nil {
t.Fatal(err)
}
Expand Down
2 changes: 1 addition & 1 deletion storage/2017-07-29/queue/queues/lifecycle_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ func TestQueuesLifecycle(t *testing.T) {
accountName := fmt.Sprintf("acctestsa%s", testhelpers.RandomString())
queueName := fmt.Sprintf("queue-%d", testhelpers.RandomInt())

testData, err := client.BuildTestResources(ctx, resourceGroup, accountName, storage.Storage)
testData, err := client.BuildTestResources(ctx, resourceGroup, accountName, storage.KindStorage)
if err != nil {
t.Fatal(err)
}
Expand Down
2 changes: 1 addition & 1 deletion storage/2017-07-29/table/entities/lifecycle_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ func TestEntitiesLifecycle(t *testing.T) {
accountName := fmt.Sprintf("acctestsa%s", testhelpers.RandomString())
tableName := fmt.Sprintf("table%d", testhelpers.RandomInt())

testData, err := client.BuildTestResources(ctx, resourceGroup, accountName, storage.Storage)
testData, err := client.BuildTestResources(ctx, resourceGroup, accountName, storage.KindStorage)
if err != nil {
t.Fatal(err)
}
Expand Down
2 changes: 1 addition & 1 deletion storage/2017-07-29/table/tables/lifecycle_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ func TestTablesLifecycle(t *testing.T) {
accountName := fmt.Sprintf("acctestsa%s", testhelpers.RandomString())
tableName := fmt.Sprintf("table%d", testhelpers.RandomInt())

testData, err := client.BuildTestResources(ctx, resourceGroup, accountName, storage.Storage)
testData, err := client.BuildTestResources(ctx, resourceGroup, accountName, storage.KindStorage)
if err != nil {
t.Fatal(err)
}
Expand Down
2 changes: 1 addition & 1 deletion storage/2018-03-28/blob/blobs/blob_append_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ func TestAppendBlobLifecycle(t *testing.T) {
containerName := fmt.Sprintf("cont-%d", testhelpers.RandomInt())
fileName := "append-blob.txt"

testData, err := client.BuildTestResources(ctx, resourceGroup, accountName, storage.BlobStorage)
testData, err := client.BuildTestResources(ctx, resourceGroup, accountName, storage.KindBlobStorage)
if err != nil {
t.Fatal(err)
}
Expand Down
2 changes: 1 addition & 1 deletion storage/2018-03-28/blob/blobs/blob_page_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ func TestPageBlobLifecycle(t *testing.T) {
containerName := fmt.Sprintf("cont-%d", testhelpers.RandomInt())
fileName := "append-blob.txt"

testData, err := client.BuildTestResources(ctx, resourceGroup, accountName, storage.StorageV2)
testData, err := client.BuildTestResources(ctx, resourceGroup, accountName, storage.KindStorageV2)
if err != nil {
t.Fatal(err)
}
Expand Down
4 changes: 2 additions & 2 deletions storage/2018-03-28/blob/blobs/copy_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ func TestCopyFromExistingFile(t *testing.T) {
fileName := "ubuntu.iso"
copiedFileName := "copied.iso"

testData, err := client.BuildTestResources(ctx, resourceGroup, accountName, storage.BlobStorage)
testData, err := client.BuildTestResources(ctx, resourceGroup, accountName, storage.KindBlobStorage)
if err != nil {
t.Fatal(err)
}
Expand Down Expand Up @@ -102,7 +102,7 @@ func TestCopyFromURL(t *testing.T) {
containerName := fmt.Sprintf("cont-%d", testhelpers.RandomInt())
fileName := "ubuntu.iso"

testData, err := client.BuildTestResources(ctx, resourceGroup, accountName, storage.BlobStorage)
testData, err := client.BuildTestResources(ctx, resourceGroup, accountName, storage.KindBlobStorage)
if err != nil {
t.Fatal(err)
}
Expand Down
2 changes: 1 addition & 1 deletion storage/2018-03-28/blob/blobs/lease_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ func TestLeaseLifecycle(t *testing.T) {
containerName := fmt.Sprintf("cont-%d", testhelpers.RandomInt())
fileName := "ubuntu.iso"

testData, err := client.BuildTestResources(ctx, resourceGroup, accountName, storage.BlobStorage)
testData, err := client.BuildTestResources(ctx, resourceGroup, accountName, storage.KindBlobStorage)
if err != nil {
t.Fatal(err)
}
Expand Down
2 changes: 1 addition & 1 deletion storage/2018-03-28/blob/blobs/lifecycle_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ func TestLifecycle(t *testing.T) {
containerName := fmt.Sprintf("cont-%d", testhelpers.RandomInt())
fileName := "example.txt"

testData, err := client.BuildTestResources(ctx, resourceGroup, accountName, storage.BlobStorage)
testData, err := client.BuildTestResources(ctx, resourceGroup, accountName, storage.KindBlobStorage)
if err != nil {
t.Fatal(err)
}
Expand Down
2 changes: 1 addition & 1 deletion storage/2018-03-28/blob/blobs/snapshot_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ func TestSnapshotLifecycle(t *testing.T) {
containerName := fmt.Sprintf("cont-%d", testhelpers.RandomInt())
fileName := "example.txt"

testData, err := client.BuildTestResources(ctx, resourceGroup, accountName, storage.BlobStorage)
testData, err := client.BuildTestResources(ctx, resourceGroup, accountName, storage.KindBlobStorage)
if err != nil {
t.Fatal(err)
}
Expand Down
Loading

0 comments on commit 211bde8

Please sign in to comment.