From a5fbe2f25f297d5dcf6f4ae730282865b6a233c3 Mon Sep 17 00:00:00 2001 From: tombuildsstuff Date: Mon, 2 Aug 2021 10:48:54 +0200 Subject: [PATCH 1/4] readme: udpating to include 2020-08-04 from #49 --- README.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index de2c91d..da1232f 100644 --- a/README.md +++ b/README.md @@ -13,6 +13,7 @@ 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`) @@ -20,7 +21,7 @@ At this time we support the following API Versions: 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. @@ -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 From 977b899967951f323569c051a3d875e04912c469 Mon Sep 17 00:00:00 2001 From: tombuildsstuff Date: Mon, 2 Aug 2021 12:37:35 +0200 Subject: [PATCH 2/4] updating the dependencies --- go.mod | 11 +++++++---- go.sum | 34 +++++++++++++++++++++++----------- 2 files changed, 30 insertions(+), 15 deletions(-) diff --git a/go.mod b/go.mod index 7dbfd09..ef705c4 100644 --- a/go.mod +++ b/go.mod @@ -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 ) diff --git a/go.sum b/go.sum index 23024b6..c0dec48 100644 --- a/go.sum +++ b/go.sum @@ -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= @@ -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= @@ -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= From 5496b076ed0ba02dbe8b7e69375e947665c75343 Mon Sep 17 00:00:00 2001 From: tombuildsstuff Date: Mon, 2 Aug 2021 12:42:09 +0200 Subject: [PATCH 3/4] tests: updating to account for this major versions rename --- storage/2020-08-04/blob/containers/lifecycle_test.go | 2 +- testhelpers/client.go | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/storage/2020-08-04/blob/containers/lifecycle_test.go b/storage/2020-08-04/blob/containers/lifecycle_test.go index 122a2a6..9103b50 100644 --- a/storage/2020-08-04/blob/containers/lifecycle_test.go +++ b/storage/2020-08-04/blob/containers/lifecycle_test.go @@ -24,7 +24,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) } diff --git a/testhelpers/client.go b/testhelpers/client.go index 5d9d894..390ec45 100644 --- a/testhelpers/client.go +++ b/testhelpers/client.go @@ -51,14 +51,14 @@ func (client Client) buildTestResources(ctx context.Context, resourceGroup, name } props := storage.AccountPropertiesCreateParameters{} - if kind == storage.BlobStorage { - props.AccessTier = storage.Hot + if kind == storage.KindBlobStorage { + props.AccessTier = storage.AccessTierHot } if enableHns { props.IsHnsEnabled = &enableHns } if sku == "" { - sku = storage.StandardLRS + sku = storage.SkuNameStandardLRS } future, err := client.StorageClient.Create(ctx, resourceGroup, name, storage.AccountCreateParameters{ From ee5a631c6a437af4515b13126132d1af974b5c97 Mon Sep 17 00:00:00 2001 From: tombuildsstuff Date: Mon, 2 Aug 2021 13:12:11 +0200 Subject: [PATCH 4/4] updating to use this months aliases --- storage/2017-07-29/blob/blobs/blob_append_test.go | 2 +- storage/2017-07-29/blob/blobs/blob_page_test.go | 2 +- storage/2017-07-29/blob/blobs/copy_test.go | 4 ++-- storage/2017-07-29/blob/blobs/lease_test.go | 2 +- storage/2017-07-29/blob/blobs/lifecycle_test.go | 2 +- storage/2017-07-29/blob/blobs/snapshot_test.go | 2 +- storage/2017-07-29/blob/containers/lifecycle_test.go | 2 +- storage/2017-07-29/file/directories/lifecycle_test.go | 2 +- storage/2017-07-29/file/files/copy_wait_test.go | 4 ++-- storage/2017-07-29/file/files/lifecycle_test.go | 2 +- storage/2017-07-29/file/files/range_get_file_test.go | 2 +- storage/2017-07-29/file/files/range_put_file_test.go | 2 +- storage/2017-07-29/file/shares/lifecycle_test.go | 4 ++-- storage/2017-07-29/queue/messages/lifecycle_test.go | 2 +- storage/2017-07-29/queue/queues/lifecycle_test.go | 2 +- storage/2017-07-29/table/entities/lifecycle_test.go | 2 +- storage/2017-07-29/table/tables/lifecycle_test.go | 2 +- storage/2018-03-28/blob/blobs/blob_append_test.go | 2 +- storage/2018-03-28/blob/blobs/blob_page_test.go | 2 +- storage/2018-03-28/blob/blobs/copy_test.go | 4 ++-- storage/2018-03-28/blob/blobs/lease_test.go | 2 +- storage/2018-03-28/blob/blobs/lifecycle_test.go | 2 +- storage/2018-03-28/blob/blobs/snapshot_test.go | 2 +- storage/2018-03-28/blob/containers/lifecycle_test.go | 2 +- storage/2018-03-28/datalakestore/filesystems/create_test.go | 2 +- .../2018-03-28/datalakestore/filesystems/lifecycle_test.go | 2 +- storage/2018-03-28/file/directories/lifecycle_test.go | 2 +- storage/2018-03-28/file/files/copy_wait_test.go | 4 ++-- storage/2018-03-28/file/files/lifecycle_test.go | 2 +- storage/2018-03-28/file/files/range_get_file_test.go | 2 +- storage/2018-03-28/file/files/range_put_file_test.go | 2 +- storage/2018-03-28/file/shares/lifecycle_test.go | 4 ++-- storage/2018-03-28/queue/messages/lifecycle_test.go | 2 +- storage/2018-03-28/queue/queues/lifecycle_test.go | 2 +- storage/2018-03-28/table/entities/lifecycle_test.go | 2 +- storage/2018-03-28/table/tables/lifecycle_test.go | 2 +- .../2018-11-09/blob/accounts/set_service_properties_test.go | 2 +- storage/2018-11-09/blob/blobs/blob_append_test.go | 2 +- storage/2018-11-09/blob/blobs/blob_page_test.go | 2 +- storage/2018-11-09/blob/blobs/copy_test.go | 4 ++-- storage/2018-11-09/blob/blobs/lease_test.go | 2 +- storage/2018-11-09/blob/blobs/lifecycle_test.go | 2 +- storage/2018-11-09/blob/blobs/snapshot_test.go | 2 +- storage/2018-11-09/blob/containers/lifecycle_test.go | 2 +- storage/2018-11-09/datalakestore/filesystems/create_test.go | 2 +- .../2018-11-09/datalakestore/filesystems/lifecycle_test.go | 2 +- storage/2018-11-09/datalakestore/paths/create_test.go | 2 +- storage/2018-11-09/datalakestore/paths/lifecycle_test.go | 2 +- storage/2018-11-09/file/directories/lifecycle_test.go | 2 +- storage/2018-11-09/file/files/copy_wait_test.go | 4 ++-- storage/2018-11-09/file/files/lifecycle_test.go | 2 +- storage/2018-11-09/file/files/range_get_file_test.go | 2 +- storage/2018-11-09/file/files/range_put_file_test.go | 2 +- storage/2018-11-09/file/shares/lifecycle_test.go | 4 ++-- storage/2018-11-09/queue/messages/lifecycle_test.go | 2 +- storage/2018-11-09/queue/queues/lifecycle_test.go | 2 +- storage/2018-11-09/table/entities/lifecycle_test.go | 2 +- storage/2018-11-09/table/tables/lifecycle_test.go | 2 +- .../2019-12-12/blob/accounts/set_service_properties_test.go | 2 +- storage/2019-12-12/blob/blobs/blob_append_test.go | 2 +- storage/2019-12-12/blob/blobs/blob_page_test.go | 2 +- storage/2019-12-12/blob/blobs/copy_test.go | 4 ++-- storage/2019-12-12/blob/blobs/lease_test.go | 2 +- storage/2019-12-12/blob/blobs/lifecycle_test.go | 2 +- storage/2019-12-12/blob/blobs/snapshot_test.go | 2 +- storage/2019-12-12/blob/containers/lifecycle_test.go | 2 +- storage/2019-12-12/datalakestore/filesystems/create_test.go | 2 +- .../2019-12-12/datalakestore/filesystems/lifecycle_test.go | 2 +- storage/2019-12-12/datalakestore/paths/create_test.go | 2 +- storage/2019-12-12/datalakestore/paths/lifecycle_test.go | 2 +- storage/2019-12-12/file/directories/lifecycle_test.go | 2 +- storage/2019-12-12/file/files/copy_wait_test.go | 4 ++-- storage/2019-12-12/file/files/lifecycle_test.go | 2 +- storage/2019-12-12/file/files/range_get_file_test.go | 2 +- storage/2019-12-12/file/files/range_put_file_test.go | 2 +- storage/2019-12-12/file/shares/lifecycle_test.go | 4 ++-- storage/2019-12-12/queue/messages/lifecycle_test.go | 2 +- storage/2019-12-12/queue/queues/lifecycle_test.go | 2 +- storage/2019-12-12/table/entities/lifecycle_test.go | 2 +- storage/2019-12-12/table/tables/lifecycle_test.go | 2 +- .../2020-08-04/blob/accounts/set_service_properties_test.go | 2 +- storage/2020-08-04/blob/blobs/blob_append_test.go | 2 +- storage/2020-08-04/blob/blobs/blob_page_test.go | 2 +- storage/2020-08-04/blob/blobs/copy_test.go | 4 ++-- storage/2020-08-04/blob/blobs/lease_test.go | 2 +- storage/2020-08-04/blob/blobs/lifecycle_test.go | 2 +- storage/2020-08-04/blob/blobs/snapshot_test.go | 2 +- storage/2020-08-04/datalakestore/filesystems/create_test.go | 2 +- .../2020-08-04/datalakestore/filesystems/lifecycle_test.go | 2 +- storage/2020-08-04/datalakestore/paths/create_test.go | 2 +- storage/2020-08-04/datalakestore/paths/lifecycle_test.go | 2 +- storage/2020-08-04/file/directories/lifecycle_test.go | 2 +- storage/2020-08-04/file/files/copy_wait_test.go | 4 ++-- storage/2020-08-04/file/files/lifecycle_test.go | 2 +- storage/2020-08-04/file/files/range_get_file_test.go | 2 +- storage/2020-08-04/file/files/range_put_file_test.go | 2 +- storage/2020-08-04/file/shares/lifecycle_test.go | 4 ++-- storage/2020-08-04/queue/messages/lifecycle_test.go | 2 +- storage/2020-08-04/queue/queues/lifecycle_test.go | 2 +- storage/2020-08-04/table/entities/lifecycle_test.go | 2 +- storage/2020-08-04/table/tables/lifecycle_test.go | 2 +- 101 files changed, 116 insertions(+), 116 deletions(-) diff --git a/storage/2017-07-29/blob/blobs/blob_append_test.go b/storage/2017-07-29/blob/blobs/blob_append_test.go index c54d42e..a06df3c 100644 --- a/storage/2017-07-29/blob/blobs/blob_append_test.go +++ b/storage/2017-07-29/blob/blobs/blob_append_test.go @@ -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) } diff --git a/storage/2017-07-29/blob/blobs/blob_page_test.go b/storage/2017-07-29/blob/blobs/blob_page_test.go index 83abcd5..c0bfeb4 100644 --- a/storage/2017-07-29/blob/blobs/blob_page_test.go +++ b/storage/2017-07-29/blob/blobs/blob_page_test.go @@ -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) } diff --git a/storage/2017-07-29/blob/blobs/copy_test.go b/storage/2017-07-29/blob/blobs/copy_test.go index 0d191ac..779dfe9 100644 --- a/storage/2017-07-29/blob/blobs/copy_test.go +++ b/storage/2017-07-29/blob/blobs/copy_test.go @@ -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) } @@ -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) } diff --git a/storage/2017-07-29/blob/blobs/lease_test.go b/storage/2017-07-29/blob/blobs/lease_test.go index dabf5ce..9db85db 100644 --- a/storage/2017-07-29/blob/blobs/lease_test.go +++ b/storage/2017-07-29/blob/blobs/lease_test.go @@ -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) } diff --git a/storage/2017-07-29/blob/blobs/lifecycle_test.go b/storage/2017-07-29/blob/blobs/lifecycle_test.go index 10e3784..d6c53cb 100644 --- a/storage/2017-07-29/blob/blobs/lifecycle_test.go +++ b/storage/2017-07-29/blob/blobs/lifecycle_test.go @@ -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) } diff --git a/storage/2017-07-29/blob/blobs/snapshot_test.go b/storage/2017-07-29/blob/blobs/snapshot_test.go index a5c157f..aef1ad7 100644 --- a/storage/2017-07-29/blob/blobs/snapshot_test.go +++ b/storage/2017-07-29/blob/blobs/snapshot_test.go @@ -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) } diff --git a/storage/2017-07-29/blob/containers/lifecycle_test.go b/storage/2017-07-29/blob/containers/lifecycle_test.go index 6ef385c..f1bcd62 100644 --- a/storage/2017-07-29/blob/containers/lifecycle_test.go +++ b/storage/2017-07-29/blob/containers/lifecycle_test.go @@ -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) } diff --git a/storage/2017-07-29/file/directories/lifecycle_test.go b/storage/2017-07-29/file/directories/lifecycle_test.go index 2469c18..c4d6318 100644 --- a/storage/2017-07-29/file/directories/lifecycle_test.go +++ b/storage/2017-07-29/file/directories/lifecycle_test.go @@ -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) } diff --git a/storage/2017-07-29/file/files/copy_wait_test.go b/storage/2017-07-29/file/files/copy_wait_test.go index 95a6b3d..6257ddd 100644 --- a/storage/2017-07-29/file/files/copy_wait_test.go +++ b/storage/2017-07-29/file/files/copy_wait_test.go @@ -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) } @@ -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) } diff --git a/storage/2017-07-29/file/files/lifecycle_test.go b/storage/2017-07-29/file/files/lifecycle_test.go index 1ec9d59..883e583 100644 --- a/storage/2017-07-29/file/files/lifecycle_test.go +++ b/storage/2017-07-29/file/files/lifecycle_test.go @@ -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) } diff --git a/storage/2017-07-29/file/files/range_get_file_test.go b/storage/2017-07-29/file/files/range_get_file_test.go index c5a2b9c..3932e16 100644 --- a/storage/2017-07-29/file/files/range_get_file_test.go +++ b/storage/2017-07-29/file/files/range_get_file_test.go @@ -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) } diff --git a/storage/2017-07-29/file/files/range_put_file_test.go b/storage/2017-07-29/file/files/range_put_file_test.go index a94dc0a..4b94e8b 100644 --- a/storage/2017-07-29/file/files/range_put_file_test.go +++ b/storage/2017-07-29/file/files/range_put_file_test.go @@ -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) } diff --git a/storage/2017-07-29/file/shares/lifecycle_test.go b/storage/2017-07-29/file/shares/lifecycle_test.go index 0837037..e006fec 100644 --- a/storage/2017-07-29/file/shares/lifecycle_test.go +++ b/storage/2017-07-29/file/shares/lifecycle_test.go @@ -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) } @@ -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) } diff --git a/storage/2017-07-29/queue/messages/lifecycle_test.go b/storage/2017-07-29/queue/messages/lifecycle_test.go index 005f258..9ecd73e 100644 --- a/storage/2017-07-29/queue/messages/lifecycle_test.go +++ b/storage/2017-07-29/queue/messages/lifecycle_test.go @@ -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) } diff --git a/storage/2017-07-29/queue/queues/lifecycle_test.go b/storage/2017-07-29/queue/queues/lifecycle_test.go index 481a1b2..d36660c 100644 --- a/storage/2017-07-29/queue/queues/lifecycle_test.go +++ b/storage/2017-07-29/queue/queues/lifecycle_test.go @@ -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) } diff --git a/storage/2017-07-29/table/entities/lifecycle_test.go b/storage/2017-07-29/table/entities/lifecycle_test.go index 5a01910..b47b7c6 100644 --- a/storage/2017-07-29/table/entities/lifecycle_test.go +++ b/storage/2017-07-29/table/entities/lifecycle_test.go @@ -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) } diff --git a/storage/2017-07-29/table/tables/lifecycle_test.go b/storage/2017-07-29/table/tables/lifecycle_test.go index 815624b..816eebb 100644 --- a/storage/2017-07-29/table/tables/lifecycle_test.go +++ b/storage/2017-07-29/table/tables/lifecycle_test.go @@ -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) } diff --git a/storage/2018-03-28/blob/blobs/blob_append_test.go b/storage/2018-03-28/blob/blobs/blob_append_test.go index a8f3634..6ba2dbc 100644 --- a/storage/2018-03-28/blob/blobs/blob_append_test.go +++ b/storage/2018-03-28/blob/blobs/blob_append_test.go @@ -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) } diff --git a/storage/2018-03-28/blob/blobs/blob_page_test.go b/storage/2018-03-28/blob/blobs/blob_page_test.go index 6cd09ec..7d414a7 100644 --- a/storage/2018-03-28/blob/blobs/blob_page_test.go +++ b/storage/2018-03-28/blob/blobs/blob_page_test.go @@ -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) } diff --git a/storage/2018-03-28/blob/blobs/copy_test.go b/storage/2018-03-28/blob/blobs/copy_test.go index 0538849..92061ed 100644 --- a/storage/2018-03-28/blob/blobs/copy_test.go +++ b/storage/2018-03-28/blob/blobs/copy_test.go @@ -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) } @@ -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) } diff --git a/storage/2018-03-28/blob/blobs/lease_test.go b/storage/2018-03-28/blob/blobs/lease_test.go index 0e169da..7a5818f 100644 --- a/storage/2018-03-28/blob/blobs/lease_test.go +++ b/storage/2018-03-28/blob/blobs/lease_test.go @@ -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) } diff --git a/storage/2018-03-28/blob/blobs/lifecycle_test.go b/storage/2018-03-28/blob/blobs/lifecycle_test.go index ffc13f3..33ce43b 100644 --- a/storage/2018-03-28/blob/blobs/lifecycle_test.go +++ b/storage/2018-03-28/blob/blobs/lifecycle_test.go @@ -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) } diff --git a/storage/2018-03-28/blob/blobs/snapshot_test.go b/storage/2018-03-28/blob/blobs/snapshot_test.go index b89560f..87b9d95 100644 --- a/storage/2018-03-28/blob/blobs/snapshot_test.go +++ b/storage/2018-03-28/blob/blobs/snapshot_test.go @@ -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) } diff --git a/storage/2018-03-28/blob/containers/lifecycle_test.go b/storage/2018-03-28/blob/containers/lifecycle_test.go index 6ef385c..f1bcd62 100644 --- a/storage/2018-03-28/blob/containers/lifecycle_test.go +++ b/storage/2018-03-28/blob/containers/lifecycle_test.go @@ -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) } diff --git a/storage/2018-03-28/datalakestore/filesystems/create_test.go b/storage/2018-03-28/datalakestore/filesystems/create_test.go index 19643c7..d8e90df 100644 --- a/storage/2018-03-28/datalakestore/filesystems/create_test.go +++ b/storage/2018-03-28/datalakestore/filesystems/create_test.go @@ -20,7 +20,7 @@ func TestCreateHasNoTagsByDefault(t *testing.T) { accountName := fmt.Sprintf("acctestsa%s", testhelpers.RandomString()) fileSystemName := fmt.Sprintf("acctestfs-%s", testhelpers.RandomString()) - if _, err = client.BuildTestResources(ctx, resourceGroup, accountName, storage.BlobStorage); err != nil { + if _, err = client.BuildTestResources(ctx, resourceGroup, accountName, storage.KindBlobStorage); err != nil { t.Fatal(err) } defer client.DestroyTestResources(ctx, resourceGroup, accountName) diff --git a/storage/2018-03-28/datalakestore/filesystems/lifecycle_test.go b/storage/2018-03-28/datalakestore/filesystems/lifecycle_test.go index 778884b..fde45ee 100644 --- a/storage/2018-03-28/datalakestore/filesystems/lifecycle_test.go +++ b/storage/2018-03-28/datalakestore/filesystems/lifecycle_test.go @@ -20,7 +20,7 @@ func TestLifecycle(t *testing.T) { accountName := fmt.Sprintf("acctestsa%s", testhelpers.RandomString()) fileSystemName := fmt.Sprintf("acctestfs-%s", testhelpers.RandomString()) - if _, err = client.BuildTestResources(ctx, resourceGroup, accountName, storage.BlobStorage); err != nil { + if _, err = client.BuildTestResources(ctx, resourceGroup, accountName, storage.KindBlobStorage); err != nil { t.Fatal(err) } defer client.DestroyTestResources(ctx, resourceGroup, accountName) diff --git a/storage/2018-03-28/file/directories/lifecycle_test.go b/storage/2018-03-28/file/directories/lifecycle_test.go index 30ef8b0..1b00ab7 100644 --- a/storage/2018-03-28/file/directories/lifecycle_test.go +++ b/storage/2018-03-28/file/directories/lifecycle_test.go @@ -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) } diff --git a/storage/2018-03-28/file/files/copy_wait_test.go b/storage/2018-03-28/file/files/copy_wait_test.go index 9d5d1ad..9b416fc 100644 --- a/storage/2018-03-28/file/files/copy_wait_test.go +++ b/storage/2018-03-28/file/files/copy_wait_test.go @@ -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) } @@ -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) } diff --git a/storage/2018-03-28/file/files/lifecycle_test.go b/storage/2018-03-28/file/files/lifecycle_test.go index 144ef1f..5855090 100644 --- a/storage/2018-03-28/file/files/lifecycle_test.go +++ b/storage/2018-03-28/file/files/lifecycle_test.go @@ -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) } diff --git a/storage/2018-03-28/file/files/range_get_file_test.go b/storage/2018-03-28/file/files/range_get_file_test.go index bf8ef40..c12493a 100644 --- a/storage/2018-03-28/file/files/range_get_file_test.go +++ b/storage/2018-03-28/file/files/range_get_file_test.go @@ -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) } diff --git a/storage/2018-03-28/file/files/range_put_file_test.go b/storage/2018-03-28/file/files/range_put_file_test.go index d0344dc..3d70576 100644 --- a/storage/2018-03-28/file/files/range_put_file_test.go +++ b/storage/2018-03-28/file/files/range_put_file_test.go @@ -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) } diff --git a/storage/2018-03-28/file/shares/lifecycle_test.go b/storage/2018-03-28/file/shares/lifecycle_test.go index 0837037..e006fec 100644 --- a/storage/2018-03-28/file/shares/lifecycle_test.go +++ b/storage/2018-03-28/file/shares/lifecycle_test.go @@ -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) } @@ -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) } diff --git a/storage/2018-03-28/queue/messages/lifecycle_test.go b/storage/2018-03-28/queue/messages/lifecycle_test.go index 124cf90..f6d75aa 100644 --- a/storage/2018-03-28/queue/messages/lifecycle_test.go +++ b/storage/2018-03-28/queue/messages/lifecycle_test.go @@ -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) } diff --git a/storage/2018-03-28/queue/queues/lifecycle_test.go b/storage/2018-03-28/queue/queues/lifecycle_test.go index 0c53749..0f2cf62 100644 --- a/storage/2018-03-28/queue/queues/lifecycle_test.go +++ b/storage/2018-03-28/queue/queues/lifecycle_test.go @@ -20,7 +20,7 @@ func TestQueuesLifecycle(t *testing.T) { accountName := fmt.Sprintf("acctestsa%s", testhelpers.RandomString()) queueName := fmt.Sprintf("queue-%d", testhelpers.RandomInt()) - _, err = client.BuildTestResources(ctx, resourceGroup, accountName, storage.Storage) + _, err = client.BuildTestResources(ctx, resourceGroup, accountName, storage.KindStorage) if err != nil { t.Fatal(err) } diff --git a/storage/2018-03-28/table/entities/lifecycle_test.go b/storage/2018-03-28/table/entities/lifecycle_test.go index 6ea977b..881cc89 100644 --- a/storage/2018-03-28/table/entities/lifecycle_test.go +++ b/storage/2018-03-28/table/entities/lifecycle_test.go @@ -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) } diff --git a/storage/2018-03-28/table/tables/lifecycle_test.go b/storage/2018-03-28/table/tables/lifecycle_test.go index 815624b..816eebb 100644 --- a/storage/2018-03-28/table/tables/lifecycle_test.go +++ b/storage/2018-03-28/table/tables/lifecycle_test.go @@ -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) } diff --git a/storage/2018-11-09/blob/accounts/set_service_properties_test.go b/storage/2018-11-09/blob/accounts/set_service_properties_test.go index 0aa2653..24be49f 100644 --- a/storage/2018-11-09/blob/accounts/set_service_properties_test.go +++ b/storage/2018-11-09/blob/accounts/set_service_properties_test.go @@ -20,7 +20,7 @@ func TestContainerLifecycle(t *testing.T) { resourceGroup := fmt.Sprintf("acctestrg-%d", testhelpers.RandomInt()) accountName := fmt.Sprintf("acctestsa%s", testhelpers.RandomString()) - _, err = client.BuildTestResources(ctx, resourceGroup, accountName, storage.StorageV2) + _, err = client.BuildTestResources(ctx, resourceGroup, accountName, storage.KindStorageV2) if err != nil { t.Fatal(err) } diff --git a/storage/2018-11-09/blob/blobs/blob_append_test.go b/storage/2018-11-09/blob/blobs/blob_append_test.go index 83665b0..0867951 100644 --- a/storage/2018-11-09/blob/blobs/blob_append_test.go +++ b/storage/2018-11-09/blob/blobs/blob_append_test.go @@ -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) } diff --git a/storage/2018-11-09/blob/blobs/blob_page_test.go b/storage/2018-11-09/blob/blobs/blob_page_test.go index 2ff227a..6e67630 100644 --- a/storage/2018-11-09/blob/blobs/blob_page_test.go +++ b/storage/2018-11-09/blob/blobs/blob_page_test.go @@ -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) } diff --git a/storage/2018-11-09/blob/blobs/copy_test.go b/storage/2018-11-09/blob/blobs/copy_test.go index b170044..4eddc0b 100644 --- a/storage/2018-11-09/blob/blobs/copy_test.go +++ b/storage/2018-11-09/blob/blobs/copy_test.go @@ -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) } @@ -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) } diff --git a/storage/2018-11-09/blob/blobs/lease_test.go b/storage/2018-11-09/blob/blobs/lease_test.go index e476f80..7c1c4b7 100644 --- a/storage/2018-11-09/blob/blobs/lease_test.go +++ b/storage/2018-11-09/blob/blobs/lease_test.go @@ -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) } diff --git a/storage/2018-11-09/blob/blobs/lifecycle_test.go b/storage/2018-11-09/blob/blobs/lifecycle_test.go index 8ab04cc..89ad782 100644 --- a/storage/2018-11-09/blob/blobs/lifecycle_test.go +++ b/storage/2018-11-09/blob/blobs/lifecycle_test.go @@ -26,7 +26,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) } diff --git a/storage/2018-11-09/blob/blobs/snapshot_test.go b/storage/2018-11-09/blob/blobs/snapshot_test.go index 88523a9..0f9afad 100644 --- a/storage/2018-11-09/blob/blobs/snapshot_test.go +++ b/storage/2018-11-09/blob/blobs/snapshot_test.go @@ -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) } diff --git a/storage/2018-11-09/blob/containers/lifecycle_test.go b/storage/2018-11-09/blob/containers/lifecycle_test.go index 122a2a6..9103b50 100644 --- a/storage/2018-11-09/blob/containers/lifecycle_test.go +++ b/storage/2018-11-09/blob/containers/lifecycle_test.go @@ -24,7 +24,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) } diff --git a/storage/2018-11-09/datalakestore/filesystems/create_test.go b/storage/2018-11-09/datalakestore/filesystems/create_test.go index 19643c7..d8e90df 100644 --- a/storage/2018-11-09/datalakestore/filesystems/create_test.go +++ b/storage/2018-11-09/datalakestore/filesystems/create_test.go @@ -20,7 +20,7 @@ func TestCreateHasNoTagsByDefault(t *testing.T) { accountName := fmt.Sprintf("acctestsa%s", testhelpers.RandomString()) fileSystemName := fmt.Sprintf("acctestfs-%s", testhelpers.RandomString()) - if _, err = client.BuildTestResources(ctx, resourceGroup, accountName, storage.BlobStorage); err != nil { + if _, err = client.BuildTestResources(ctx, resourceGroup, accountName, storage.KindBlobStorage); err != nil { t.Fatal(err) } defer client.DestroyTestResources(ctx, resourceGroup, accountName) diff --git a/storage/2018-11-09/datalakestore/filesystems/lifecycle_test.go b/storage/2018-11-09/datalakestore/filesystems/lifecycle_test.go index 778884b..fde45ee 100644 --- a/storage/2018-11-09/datalakestore/filesystems/lifecycle_test.go +++ b/storage/2018-11-09/datalakestore/filesystems/lifecycle_test.go @@ -20,7 +20,7 @@ func TestLifecycle(t *testing.T) { accountName := fmt.Sprintf("acctestsa%s", testhelpers.RandomString()) fileSystemName := fmt.Sprintf("acctestfs-%s", testhelpers.RandomString()) - if _, err = client.BuildTestResources(ctx, resourceGroup, accountName, storage.BlobStorage); err != nil { + if _, err = client.BuildTestResources(ctx, resourceGroup, accountName, storage.KindBlobStorage); err != nil { t.Fatal(err) } defer client.DestroyTestResources(ctx, resourceGroup, accountName) diff --git a/storage/2018-11-09/datalakestore/paths/create_test.go b/storage/2018-11-09/datalakestore/paths/create_test.go index cce9e3c..24710da 100644 --- a/storage/2018-11-09/datalakestore/paths/create_test.go +++ b/storage/2018-11-09/datalakestore/paths/create_test.go @@ -22,7 +22,7 @@ func TestCreateDirectory(t *testing.T) { fileSystemName := fmt.Sprintf("acctestfs-%s", testhelpers.RandomString()) path := "test" - if _, err = client.BuildTestResourcesWithHns(ctx, resourceGroup, accountName, storage.BlobStorage); err != nil { + if _, err = client.BuildTestResourcesWithHns(ctx, resourceGroup, accountName, storage.KindBlobStorage); err != nil { t.Fatal(err) } defer client.DestroyTestResources(ctx, resourceGroup, accountName) diff --git a/storage/2018-11-09/datalakestore/paths/lifecycle_test.go b/storage/2018-11-09/datalakestore/paths/lifecycle_test.go index 18f9a66..46149ca 100644 --- a/storage/2018-11-09/datalakestore/paths/lifecycle_test.go +++ b/storage/2018-11-09/datalakestore/paths/lifecycle_test.go @@ -25,7 +25,7 @@ func TestLifecycle(t *testing.T) { fileSystemName := fmt.Sprintf("acctestfs-%s", testhelpers.RandomString()) path := "test" - if _, err = client.BuildTestResourcesWithHns(ctx, resourceGroup, accountName, storage.BlobStorage); err != nil { + if _, err = client.BuildTestResourcesWithHns(ctx, resourceGroup, accountName, storage.KindBlobStorage); err != nil { t.Fatal(err) } defer client.DestroyTestResources(ctx, resourceGroup, accountName) diff --git a/storage/2018-11-09/file/directories/lifecycle_test.go b/storage/2018-11-09/file/directories/lifecycle_test.go index c1c2faa..791d51b 100644 --- a/storage/2018-11-09/file/directories/lifecycle_test.go +++ b/storage/2018-11-09/file/directories/lifecycle_test.go @@ -24,7 +24,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) } diff --git a/storage/2018-11-09/file/files/copy_wait_test.go b/storage/2018-11-09/file/files/copy_wait_test.go index e0000fd..3cf3118 100644 --- a/storage/2018-11-09/file/files/copy_wait_test.go +++ b/storage/2018-11-09/file/files/copy_wait_test.go @@ -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) } @@ -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) } diff --git a/storage/2018-11-09/file/files/lifecycle_test.go b/storage/2018-11-09/file/files/lifecycle_test.go index c40b013..ab7616e 100644 --- a/storage/2018-11-09/file/files/lifecycle_test.go +++ b/storage/2018-11-09/file/files/lifecycle_test.go @@ -23,7 +23,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) } diff --git a/storage/2018-11-09/file/files/range_get_file_test.go b/storage/2018-11-09/file/files/range_get_file_test.go index 2e859de..13d1717 100644 --- a/storage/2018-11-09/file/files/range_get_file_test.go +++ b/storage/2018-11-09/file/files/range_get_file_test.go @@ -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) } diff --git a/storage/2018-11-09/file/files/range_put_file_test.go b/storage/2018-11-09/file/files/range_put_file_test.go index 1d02905..c11defe 100644 --- a/storage/2018-11-09/file/files/range_put_file_test.go +++ b/storage/2018-11-09/file/files/range_put_file_test.go @@ -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) } diff --git a/storage/2018-11-09/file/shares/lifecycle_test.go b/storage/2018-11-09/file/shares/lifecycle_test.go index 4b5d6b5..fb3531a 100644 --- a/storage/2018-11-09/file/shares/lifecycle_test.go +++ b/storage/2018-11-09/file/shares/lifecycle_test.go @@ -22,7 +22,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) } @@ -163,7 +163,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) } diff --git a/storage/2018-11-09/queue/messages/lifecycle_test.go b/storage/2018-11-09/queue/messages/lifecycle_test.go index a501ab9..7635f11 100644 --- a/storage/2018-11-09/queue/messages/lifecycle_test.go +++ b/storage/2018-11-09/queue/messages/lifecycle_test.go @@ -23,7 +23,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) } diff --git a/storage/2018-11-09/queue/queues/lifecycle_test.go b/storage/2018-11-09/queue/queues/lifecycle_test.go index 75b2205..a84b2d5 100644 --- a/storage/2018-11-09/queue/queues/lifecycle_test.go +++ b/storage/2018-11-09/queue/queues/lifecycle_test.go @@ -22,7 +22,7 @@ func TestQueuesLifecycle(t *testing.T) { accountName := fmt.Sprintf("acctestsa%s", testhelpers.RandomString()) queueName := fmt.Sprintf("queue-%d", testhelpers.RandomInt()) - _, err = client.BuildTestResources(ctx, resourceGroup, accountName, storage.Storage) + _, err = client.BuildTestResources(ctx, resourceGroup, accountName, storage.KindStorage) if err != nil { t.Fatal(err) } diff --git a/storage/2018-11-09/table/entities/lifecycle_test.go b/storage/2018-11-09/table/entities/lifecycle_test.go index 530ecbf..603c2c0 100644 --- a/storage/2018-11-09/table/entities/lifecycle_test.go +++ b/storage/2018-11-09/table/entities/lifecycle_test.go @@ -23,7 +23,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) } diff --git a/storage/2018-11-09/table/tables/lifecycle_test.go b/storage/2018-11-09/table/tables/lifecycle_test.go index 3b14122..1ad5bc4 100644 --- a/storage/2018-11-09/table/tables/lifecycle_test.go +++ b/storage/2018-11-09/table/tables/lifecycle_test.go @@ -23,7 +23,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) } diff --git a/storage/2019-12-12/blob/accounts/set_service_properties_test.go b/storage/2019-12-12/blob/accounts/set_service_properties_test.go index 0aa2653..24be49f 100644 --- a/storage/2019-12-12/blob/accounts/set_service_properties_test.go +++ b/storage/2019-12-12/blob/accounts/set_service_properties_test.go @@ -20,7 +20,7 @@ func TestContainerLifecycle(t *testing.T) { resourceGroup := fmt.Sprintf("acctestrg-%d", testhelpers.RandomInt()) accountName := fmt.Sprintf("acctestsa%s", testhelpers.RandomString()) - _, err = client.BuildTestResources(ctx, resourceGroup, accountName, storage.StorageV2) + _, err = client.BuildTestResources(ctx, resourceGroup, accountName, storage.KindStorageV2) if err != nil { t.Fatal(err) } diff --git a/storage/2019-12-12/blob/blobs/blob_append_test.go b/storage/2019-12-12/blob/blobs/blob_append_test.go index dfe8bc2..208c147 100644 --- a/storage/2019-12-12/blob/blobs/blob_append_test.go +++ b/storage/2019-12-12/blob/blobs/blob_append_test.go @@ -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) } diff --git a/storage/2019-12-12/blob/blobs/blob_page_test.go b/storage/2019-12-12/blob/blobs/blob_page_test.go index 5a16221..0e14b8a 100644 --- a/storage/2019-12-12/blob/blobs/blob_page_test.go +++ b/storage/2019-12-12/blob/blobs/blob_page_test.go @@ -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) } diff --git a/storage/2019-12-12/blob/blobs/copy_test.go b/storage/2019-12-12/blob/blobs/copy_test.go index c388cbc..18e5370 100644 --- a/storage/2019-12-12/blob/blobs/copy_test.go +++ b/storage/2019-12-12/blob/blobs/copy_test.go @@ -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) } @@ -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) } diff --git a/storage/2019-12-12/blob/blobs/lease_test.go b/storage/2019-12-12/blob/blobs/lease_test.go index 302229b..82bfc8d 100644 --- a/storage/2019-12-12/blob/blobs/lease_test.go +++ b/storage/2019-12-12/blob/blobs/lease_test.go @@ -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) } diff --git a/storage/2019-12-12/blob/blobs/lifecycle_test.go b/storage/2019-12-12/blob/blobs/lifecycle_test.go index 06d7d8d..3ee39a4 100644 --- a/storage/2019-12-12/blob/blobs/lifecycle_test.go +++ b/storage/2019-12-12/blob/blobs/lifecycle_test.go @@ -26,7 +26,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) } diff --git a/storage/2019-12-12/blob/blobs/snapshot_test.go b/storage/2019-12-12/blob/blobs/snapshot_test.go index 6e0d2c2..d1e76db 100644 --- a/storage/2019-12-12/blob/blobs/snapshot_test.go +++ b/storage/2019-12-12/blob/blobs/snapshot_test.go @@ -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) } diff --git a/storage/2019-12-12/blob/containers/lifecycle_test.go b/storage/2019-12-12/blob/containers/lifecycle_test.go index 122a2a6..9103b50 100644 --- a/storage/2019-12-12/blob/containers/lifecycle_test.go +++ b/storage/2019-12-12/blob/containers/lifecycle_test.go @@ -24,7 +24,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) } diff --git a/storage/2019-12-12/datalakestore/filesystems/create_test.go b/storage/2019-12-12/datalakestore/filesystems/create_test.go index 19643c7..d8e90df 100644 --- a/storage/2019-12-12/datalakestore/filesystems/create_test.go +++ b/storage/2019-12-12/datalakestore/filesystems/create_test.go @@ -20,7 +20,7 @@ func TestCreateHasNoTagsByDefault(t *testing.T) { accountName := fmt.Sprintf("acctestsa%s", testhelpers.RandomString()) fileSystemName := fmt.Sprintf("acctestfs-%s", testhelpers.RandomString()) - if _, err = client.BuildTestResources(ctx, resourceGroup, accountName, storage.BlobStorage); err != nil { + if _, err = client.BuildTestResources(ctx, resourceGroup, accountName, storage.KindBlobStorage); err != nil { t.Fatal(err) } defer client.DestroyTestResources(ctx, resourceGroup, accountName) diff --git a/storage/2019-12-12/datalakestore/filesystems/lifecycle_test.go b/storage/2019-12-12/datalakestore/filesystems/lifecycle_test.go index 778884b..fde45ee 100644 --- a/storage/2019-12-12/datalakestore/filesystems/lifecycle_test.go +++ b/storage/2019-12-12/datalakestore/filesystems/lifecycle_test.go @@ -20,7 +20,7 @@ func TestLifecycle(t *testing.T) { accountName := fmt.Sprintf("acctestsa%s", testhelpers.RandomString()) fileSystemName := fmt.Sprintf("acctestfs-%s", testhelpers.RandomString()) - if _, err = client.BuildTestResources(ctx, resourceGroup, accountName, storage.BlobStorage); err != nil { + if _, err = client.BuildTestResources(ctx, resourceGroup, accountName, storage.KindBlobStorage); err != nil { t.Fatal(err) } defer client.DestroyTestResources(ctx, resourceGroup, accountName) diff --git a/storage/2019-12-12/datalakestore/paths/create_test.go b/storage/2019-12-12/datalakestore/paths/create_test.go index 429bad1..b8d8391 100644 --- a/storage/2019-12-12/datalakestore/paths/create_test.go +++ b/storage/2019-12-12/datalakestore/paths/create_test.go @@ -22,7 +22,7 @@ func TestCreateDirectory(t *testing.T) { fileSystemName := fmt.Sprintf("acctestfs-%s", testhelpers.RandomString()) path := "test" - if _, err = client.BuildTestResourcesWithHns(ctx, resourceGroup, accountName, storage.BlobStorage); err != nil { + if _, err = client.BuildTestResourcesWithHns(ctx, resourceGroup, accountName, storage.KindBlobStorage); err != nil { t.Fatal(err) } defer client.DestroyTestResources(ctx, resourceGroup, accountName) diff --git a/storage/2019-12-12/datalakestore/paths/lifecycle_test.go b/storage/2019-12-12/datalakestore/paths/lifecycle_test.go index 71c6bc0..04786e9 100644 --- a/storage/2019-12-12/datalakestore/paths/lifecycle_test.go +++ b/storage/2019-12-12/datalakestore/paths/lifecycle_test.go @@ -25,7 +25,7 @@ func TestLifecycle(t *testing.T) { fileSystemName := fmt.Sprintf("acctestfs-%s", testhelpers.RandomString()) path := "test" - if _, err = client.BuildTestResourcesWithHns(ctx, resourceGroup, accountName, storage.BlobStorage); err != nil { + if _, err = client.BuildTestResourcesWithHns(ctx, resourceGroup, accountName, storage.KindBlobStorage); err != nil { t.Fatal(err) } defer client.DestroyTestResources(ctx, resourceGroup, accountName) diff --git a/storage/2019-12-12/file/directories/lifecycle_test.go b/storage/2019-12-12/file/directories/lifecycle_test.go index 9c3a30d..a20ed7c 100644 --- a/storage/2019-12-12/file/directories/lifecycle_test.go +++ b/storage/2019-12-12/file/directories/lifecycle_test.go @@ -24,7 +24,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) } diff --git a/storage/2019-12-12/file/files/copy_wait_test.go b/storage/2019-12-12/file/files/copy_wait_test.go index 47423c9..8f21181 100644 --- a/storage/2019-12-12/file/files/copy_wait_test.go +++ b/storage/2019-12-12/file/files/copy_wait_test.go @@ -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) } @@ -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) } diff --git a/storage/2019-12-12/file/files/lifecycle_test.go b/storage/2019-12-12/file/files/lifecycle_test.go index c1d40ca..e46c6ff 100644 --- a/storage/2019-12-12/file/files/lifecycle_test.go +++ b/storage/2019-12-12/file/files/lifecycle_test.go @@ -23,7 +23,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) } diff --git a/storage/2019-12-12/file/files/range_get_file_test.go b/storage/2019-12-12/file/files/range_get_file_test.go index 66b7eec..a604e06 100644 --- a/storage/2019-12-12/file/files/range_get_file_test.go +++ b/storage/2019-12-12/file/files/range_get_file_test.go @@ -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) } diff --git a/storage/2019-12-12/file/files/range_put_file_test.go b/storage/2019-12-12/file/files/range_put_file_test.go index a06e492..4e76cf1 100644 --- a/storage/2019-12-12/file/files/range_put_file_test.go +++ b/storage/2019-12-12/file/files/range_put_file_test.go @@ -37,7 +37,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) } diff --git a/storage/2019-12-12/file/shares/lifecycle_test.go b/storage/2019-12-12/file/shares/lifecycle_test.go index 4b5d6b5..fb3531a 100644 --- a/storage/2019-12-12/file/shares/lifecycle_test.go +++ b/storage/2019-12-12/file/shares/lifecycle_test.go @@ -22,7 +22,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) } @@ -163,7 +163,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) } diff --git a/storage/2019-12-12/queue/messages/lifecycle_test.go b/storage/2019-12-12/queue/messages/lifecycle_test.go index fd5d8c4..12b186a 100644 --- a/storage/2019-12-12/queue/messages/lifecycle_test.go +++ b/storage/2019-12-12/queue/messages/lifecycle_test.go @@ -23,7 +23,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) } diff --git a/storage/2019-12-12/queue/queues/lifecycle_test.go b/storage/2019-12-12/queue/queues/lifecycle_test.go index 75b2205..a84b2d5 100644 --- a/storage/2019-12-12/queue/queues/lifecycle_test.go +++ b/storage/2019-12-12/queue/queues/lifecycle_test.go @@ -22,7 +22,7 @@ func TestQueuesLifecycle(t *testing.T) { accountName := fmt.Sprintf("acctestsa%s", testhelpers.RandomString()) queueName := fmt.Sprintf("queue-%d", testhelpers.RandomInt()) - _, err = client.BuildTestResources(ctx, resourceGroup, accountName, storage.Storage) + _, err = client.BuildTestResources(ctx, resourceGroup, accountName, storage.KindStorage) if err != nil { t.Fatal(err) } diff --git a/storage/2019-12-12/table/entities/lifecycle_test.go b/storage/2019-12-12/table/entities/lifecycle_test.go index 8a8f386..253e27a 100644 --- a/storage/2019-12-12/table/entities/lifecycle_test.go +++ b/storage/2019-12-12/table/entities/lifecycle_test.go @@ -23,7 +23,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) } diff --git a/storage/2019-12-12/table/tables/lifecycle_test.go b/storage/2019-12-12/table/tables/lifecycle_test.go index 3b14122..1ad5bc4 100644 --- a/storage/2019-12-12/table/tables/lifecycle_test.go +++ b/storage/2019-12-12/table/tables/lifecycle_test.go @@ -23,7 +23,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) } diff --git a/storage/2020-08-04/blob/accounts/set_service_properties_test.go b/storage/2020-08-04/blob/accounts/set_service_properties_test.go index 0aa2653..24be49f 100644 --- a/storage/2020-08-04/blob/accounts/set_service_properties_test.go +++ b/storage/2020-08-04/blob/accounts/set_service_properties_test.go @@ -20,7 +20,7 @@ func TestContainerLifecycle(t *testing.T) { resourceGroup := fmt.Sprintf("acctestrg-%d", testhelpers.RandomInt()) accountName := fmt.Sprintf("acctestsa%s", testhelpers.RandomString()) - _, err = client.BuildTestResources(ctx, resourceGroup, accountName, storage.StorageV2) + _, err = client.BuildTestResources(ctx, resourceGroup, accountName, storage.KindStorageV2) if err != nil { t.Fatal(err) } diff --git a/storage/2020-08-04/blob/blobs/blob_append_test.go b/storage/2020-08-04/blob/blobs/blob_append_test.go index f54bd4d..e964023 100644 --- a/storage/2020-08-04/blob/blobs/blob_append_test.go +++ b/storage/2020-08-04/blob/blobs/blob_append_test.go @@ -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) } diff --git a/storage/2020-08-04/blob/blobs/blob_page_test.go b/storage/2020-08-04/blob/blobs/blob_page_test.go index ba1630c..ecf3633 100644 --- a/storage/2020-08-04/blob/blobs/blob_page_test.go +++ b/storage/2020-08-04/blob/blobs/blob_page_test.go @@ -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) } diff --git a/storage/2020-08-04/blob/blobs/copy_test.go b/storage/2020-08-04/blob/blobs/copy_test.go index 8ad8604..dcde875 100644 --- a/storage/2020-08-04/blob/blobs/copy_test.go +++ b/storage/2020-08-04/blob/blobs/copy_test.go @@ -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) } @@ -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) } diff --git a/storage/2020-08-04/blob/blobs/lease_test.go b/storage/2020-08-04/blob/blobs/lease_test.go index ea6a0ac..7d583c3 100644 --- a/storage/2020-08-04/blob/blobs/lease_test.go +++ b/storage/2020-08-04/blob/blobs/lease_test.go @@ -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) } diff --git a/storage/2020-08-04/blob/blobs/lifecycle_test.go b/storage/2020-08-04/blob/blobs/lifecycle_test.go index fd333c8..6ef2a5a 100644 --- a/storage/2020-08-04/blob/blobs/lifecycle_test.go +++ b/storage/2020-08-04/blob/blobs/lifecycle_test.go @@ -26,7 +26,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) } diff --git a/storage/2020-08-04/blob/blobs/snapshot_test.go b/storage/2020-08-04/blob/blobs/snapshot_test.go index 4d4ff6f..346b897 100644 --- a/storage/2020-08-04/blob/blobs/snapshot_test.go +++ b/storage/2020-08-04/blob/blobs/snapshot_test.go @@ -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) } diff --git a/storage/2020-08-04/datalakestore/filesystems/create_test.go b/storage/2020-08-04/datalakestore/filesystems/create_test.go index 19643c7..d8e90df 100644 --- a/storage/2020-08-04/datalakestore/filesystems/create_test.go +++ b/storage/2020-08-04/datalakestore/filesystems/create_test.go @@ -20,7 +20,7 @@ func TestCreateHasNoTagsByDefault(t *testing.T) { accountName := fmt.Sprintf("acctestsa%s", testhelpers.RandomString()) fileSystemName := fmt.Sprintf("acctestfs-%s", testhelpers.RandomString()) - if _, err = client.BuildTestResources(ctx, resourceGroup, accountName, storage.BlobStorage); err != nil { + if _, err = client.BuildTestResources(ctx, resourceGroup, accountName, storage.KindBlobStorage); err != nil { t.Fatal(err) } defer client.DestroyTestResources(ctx, resourceGroup, accountName) diff --git a/storage/2020-08-04/datalakestore/filesystems/lifecycle_test.go b/storage/2020-08-04/datalakestore/filesystems/lifecycle_test.go index 778884b..fde45ee 100644 --- a/storage/2020-08-04/datalakestore/filesystems/lifecycle_test.go +++ b/storage/2020-08-04/datalakestore/filesystems/lifecycle_test.go @@ -20,7 +20,7 @@ func TestLifecycle(t *testing.T) { accountName := fmt.Sprintf("acctestsa%s", testhelpers.RandomString()) fileSystemName := fmt.Sprintf("acctestfs-%s", testhelpers.RandomString()) - if _, err = client.BuildTestResources(ctx, resourceGroup, accountName, storage.BlobStorage); err != nil { + if _, err = client.BuildTestResources(ctx, resourceGroup, accountName, storage.KindBlobStorage); err != nil { t.Fatal(err) } defer client.DestroyTestResources(ctx, resourceGroup, accountName) diff --git a/storage/2020-08-04/datalakestore/paths/create_test.go b/storage/2020-08-04/datalakestore/paths/create_test.go index b42fe19..b3b54d4 100644 --- a/storage/2020-08-04/datalakestore/paths/create_test.go +++ b/storage/2020-08-04/datalakestore/paths/create_test.go @@ -22,7 +22,7 @@ func TestCreateDirectory(t *testing.T) { fileSystemName := fmt.Sprintf("acctestfs-%s", testhelpers.RandomString()) path := "test" - if _, err = client.BuildTestResourcesWithHns(ctx, resourceGroup, accountName, storage.BlobStorage); err != nil { + if _, err = client.BuildTestResourcesWithHns(ctx, resourceGroup, accountName, storage.KindBlobStorage); err != nil { t.Fatal(err) } defer client.DestroyTestResources(ctx, resourceGroup, accountName) diff --git a/storage/2020-08-04/datalakestore/paths/lifecycle_test.go b/storage/2020-08-04/datalakestore/paths/lifecycle_test.go index 9d6a38f..15fda13 100644 --- a/storage/2020-08-04/datalakestore/paths/lifecycle_test.go +++ b/storage/2020-08-04/datalakestore/paths/lifecycle_test.go @@ -25,7 +25,7 @@ func TestLifecycle(t *testing.T) { fileSystemName := fmt.Sprintf("acctestfs-%s", testhelpers.RandomString()) path := "test" - if _, err = client.BuildTestResourcesWithHns(ctx, resourceGroup, accountName, storage.BlobStorage); err != nil { + if _, err = client.BuildTestResourcesWithHns(ctx, resourceGroup, accountName, storage.KindBlobStorage); err != nil { t.Fatal(err) } defer client.DestroyTestResources(ctx, resourceGroup, accountName) diff --git a/storage/2020-08-04/file/directories/lifecycle_test.go b/storage/2020-08-04/file/directories/lifecycle_test.go index 1b9c90b..3f8bd94 100644 --- a/storage/2020-08-04/file/directories/lifecycle_test.go +++ b/storage/2020-08-04/file/directories/lifecycle_test.go @@ -24,7 +24,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) } diff --git a/storage/2020-08-04/file/files/copy_wait_test.go b/storage/2020-08-04/file/files/copy_wait_test.go index d6c9f6c..aa20012 100644 --- a/storage/2020-08-04/file/files/copy_wait_test.go +++ b/storage/2020-08-04/file/files/copy_wait_test.go @@ -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) } @@ -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) } diff --git a/storage/2020-08-04/file/files/lifecycle_test.go b/storage/2020-08-04/file/files/lifecycle_test.go index e245c9b..cd784eb 100644 --- a/storage/2020-08-04/file/files/lifecycle_test.go +++ b/storage/2020-08-04/file/files/lifecycle_test.go @@ -23,7 +23,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) } diff --git a/storage/2020-08-04/file/files/range_get_file_test.go b/storage/2020-08-04/file/files/range_get_file_test.go index 45f5a60..f58364c 100644 --- a/storage/2020-08-04/file/files/range_get_file_test.go +++ b/storage/2020-08-04/file/files/range_get_file_test.go @@ -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) } diff --git a/storage/2020-08-04/file/files/range_put_file_test.go b/storage/2020-08-04/file/files/range_put_file_test.go index 4823dd4..a50e53b 100644 --- a/storage/2020-08-04/file/files/range_put_file_test.go +++ b/storage/2020-08-04/file/files/range_put_file_test.go @@ -37,7 +37,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) } diff --git a/storage/2020-08-04/file/shares/lifecycle_test.go b/storage/2020-08-04/file/shares/lifecycle_test.go index 4b5d6b5..fb3531a 100644 --- a/storage/2020-08-04/file/shares/lifecycle_test.go +++ b/storage/2020-08-04/file/shares/lifecycle_test.go @@ -22,7 +22,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) } @@ -163,7 +163,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) } diff --git a/storage/2020-08-04/queue/messages/lifecycle_test.go b/storage/2020-08-04/queue/messages/lifecycle_test.go index fd791bc..dbd9137 100644 --- a/storage/2020-08-04/queue/messages/lifecycle_test.go +++ b/storage/2020-08-04/queue/messages/lifecycle_test.go @@ -23,7 +23,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) } diff --git a/storage/2020-08-04/queue/queues/lifecycle_test.go b/storage/2020-08-04/queue/queues/lifecycle_test.go index 75b2205..a84b2d5 100644 --- a/storage/2020-08-04/queue/queues/lifecycle_test.go +++ b/storage/2020-08-04/queue/queues/lifecycle_test.go @@ -22,7 +22,7 @@ func TestQueuesLifecycle(t *testing.T) { accountName := fmt.Sprintf("acctestsa%s", testhelpers.RandomString()) queueName := fmt.Sprintf("queue-%d", testhelpers.RandomInt()) - _, err = client.BuildTestResources(ctx, resourceGroup, accountName, storage.Storage) + _, err = client.BuildTestResources(ctx, resourceGroup, accountName, storage.KindStorage) if err != nil { t.Fatal(err) } diff --git a/storage/2020-08-04/table/entities/lifecycle_test.go b/storage/2020-08-04/table/entities/lifecycle_test.go index 8b5abcf..e9348ad 100644 --- a/storage/2020-08-04/table/entities/lifecycle_test.go +++ b/storage/2020-08-04/table/entities/lifecycle_test.go @@ -23,7 +23,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) } diff --git a/storage/2020-08-04/table/tables/lifecycle_test.go b/storage/2020-08-04/table/tables/lifecycle_test.go index 3b14122..1ad5bc4 100644 --- a/storage/2020-08-04/table/tables/lifecycle_test.go +++ b/storage/2020-08-04/table/tables/lifecycle_test.go @@ -23,7 +23,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) }