| 1 |
From: Shengjing Zhu <[email protected]> |
| 2 |
Date: Fri, 10 Feb 2023 19:31:44 +0800 |
| 3 |
Subject: golang-github-azure-azure-sdk-for-go v68 |
| 4 |
|
| 5 |
--- |
| 6 |
go.mod | 2 +- |
| 7 |
go.sum | 2 ++ |
| 8 |
storage/2017-07-29/blob/blobs/blob_append_test.go | 2 +- |
| 9 |
storage/2017-07-29/blob/blobs/blob_page_test.go | 2 +- |
| 10 |
storage/2017-07-29/blob/blobs/copy_test.go | 4 ++-- |
| 11 |
storage/2017-07-29/blob/blobs/lease_test.go | 2 +- |
| 12 |
storage/2017-07-29/blob/blobs/lifecycle_test.go | 2 +- |
| 13 |
storage/2017-07-29/blob/blobs/snapshot_test.go | 2 +- |
| 14 |
storage/2017-07-29/blob/containers/lifecycle_test.go | 2 +- |
| 15 |
storage/2017-07-29/file/directories/lifecycle_test.go | 2 +- |
| 16 |
storage/2017-07-29/file/files/copy_wait_test.go | 4 ++-- |
| 17 |
storage/2017-07-29/file/files/lifecycle_test.go | 2 +- |
| 18 |
storage/2017-07-29/file/files/range_get_file_test.go | 2 +- |
| 19 |
storage/2017-07-29/file/files/range_put_file_test.go | 2 +- |
| 20 |
storage/2017-07-29/file/shares/lifecycle_test.go | 4 ++-- |
| 21 |
storage/2017-07-29/queue/messages/lifecycle_test.go | 2 +- |
| 22 |
storage/2017-07-29/queue/queues/lifecycle_test.go | 2 +- |
| 23 |
storage/2017-07-29/table/entities/lifecycle_test.go | 2 +- |
| 24 |
storage/2017-07-29/table/tables/lifecycle_test.go | 2 +- |
| 25 |
storage/2018-03-28/blob/blobs/blob_append_test.go | 2 +- |
| 26 |
storage/2018-03-28/blob/blobs/blob_page_test.go | 2 +- |
| 27 |
storage/2018-03-28/blob/blobs/copy_test.go | 4 ++-- |
| 28 |
storage/2018-03-28/blob/blobs/lease_test.go | 2 +- |
| 29 |
storage/2018-03-28/blob/blobs/lifecycle_test.go | 2 +- |
| 30 |
storage/2018-03-28/blob/blobs/snapshot_test.go | 2 +- |
| 31 |
storage/2018-03-28/blob/containers/lifecycle_test.go | 2 +- |
| 32 |
storage/2018-03-28/datalakestore/filesystems/create_test.go | 2 +- |
| 33 |
storage/2018-03-28/datalakestore/filesystems/lifecycle_test.go | 2 +- |
| 34 |
storage/2018-03-28/file/directories/lifecycle_test.go | 2 +- |
| 35 |
storage/2018-03-28/file/files/copy_wait_test.go | 4 ++-- |
| 36 |
storage/2018-03-28/file/files/lifecycle_test.go | 2 +- |
| 37 |
storage/2018-03-28/file/files/range_get_file_test.go | 2 +- |
| 38 |
storage/2018-03-28/file/files/range_put_file_test.go | 2 +- |
| 39 |
storage/2018-03-28/file/shares/lifecycle_test.go | 4 ++-- |
| 40 |
storage/2018-03-28/queue/messages/lifecycle_test.go | 2 +- |
| 41 |
storage/2018-03-28/queue/queues/lifecycle_test.go | 2 +- |
| 42 |
storage/2018-03-28/table/entities/lifecycle_test.go | 2 +- |
| 43 |
storage/2018-03-28/table/tables/lifecycle_test.go | 2 +- |
| 44 |
storage/2018-11-09/blob/accounts/set_service_properties_test.go | 2 +- |
| 45 |
storage/2018-11-09/blob/blobs/blob_append_test.go | 2 +- |
| 46 |
storage/2018-11-09/blob/blobs/blob_page_test.go | 2 +- |
| 47 |
storage/2018-11-09/blob/blobs/copy_test.go | 4 ++-- |
| 48 |
storage/2018-11-09/blob/blobs/lease_test.go | 2 +- |
| 49 |
storage/2018-11-09/blob/blobs/lifecycle_test.go | 2 +- |
| 50 |
storage/2018-11-09/blob/blobs/snapshot_test.go | 2 +- |
| 51 |
storage/2018-11-09/blob/containers/lifecycle_test.go | 2 +- |
| 52 |
storage/2018-11-09/datalakestore/filesystems/create_test.go | 2 +- |
| 53 |
storage/2018-11-09/datalakestore/filesystems/lifecycle_test.go | 2 +- |
| 54 |
storage/2018-11-09/datalakestore/paths/create_test.go | 2 +- |
| 55 |
storage/2018-11-09/datalakestore/paths/lifecycle_test.go | 2 +- |
| 56 |
storage/2018-11-09/file/directories/lifecycle_test.go | 2 +- |
| 57 |
storage/2018-11-09/file/files/copy_wait_test.go | 4 ++-- |
| 58 |
storage/2018-11-09/file/files/lifecycle_test.go | 2 +- |
| 59 |
storage/2018-11-09/file/files/range_get_file_test.go | 2 +- |
| 60 |
storage/2018-11-09/file/files/range_put_file_test.go | 2 +- |
| 61 |
storage/2018-11-09/file/shares/lifecycle_test.go | 4 ++-- |
| 62 |
storage/2018-11-09/queue/messages/lifecycle_test.go | 2 +- |
| 63 |
storage/2018-11-09/queue/queues/lifecycle_test.go | 2 +- |
| 64 |
storage/2018-11-09/table/entities/lifecycle_test.go | 2 +- |
| 65 |
storage/2018-11-09/table/tables/lifecycle_test.go | 2 +- |
| 66 |
storage/2019-12-12/blob/accounts/set_service_properties_test.go | 2 +- |
| 67 |
storage/2019-12-12/blob/blobs/blob_append_test.go | 2 +- |
| 68 |
storage/2019-12-12/blob/blobs/blob_page_test.go | 2 +- |
| 69 |
storage/2019-12-12/blob/blobs/copy_test.go | 4 ++-- |
| 70 |
storage/2019-12-12/blob/blobs/lease_test.go | 2 +- |
| 71 |
storage/2019-12-12/blob/blobs/lifecycle_test.go | 2 +- |
| 72 |
storage/2019-12-12/blob/blobs/snapshot_test.go | 2 +- |
| 73 |
storage/2019-12-12/blob/containers/lifecycle_test.go | 2 +- |
| 74 |
storage/2019-12-12/datalakestore/filesystems/create_test.go | 2 +- |
| 75 |
storage/2019-12-12/datalakestore/filesystems/lifecycle_test.go | 2 +- |
| 76 |
storage/2019-12-12/datalakestore/paths/create_test.go | 2 +- |
| 77 |
storage/2019-12-12/datalakestore/paths/lifecycle_test.go | 2 +- |
| 78 |
storage/2019-12-12/file/directories/lifecycle_test.go | 2 +- |
| 79 |
storage/2019-12-12/file/files/copy_wait_test.go | 4 ++-- |
| 80 |
storage/2019-12-12/file/files/lifecycle_test.go | 2 +- |
| 81 |
storage/2019-12-12/file/files/range_get_file_test.go | 2 +- |
| 82 |
storage/2019-12-12/file/files/range_put_file_test.go | 2 +- |
| 83 |
storage/2019-12-12/file/shares/lifecycle_test.go | 4 ++-- |
| 84 |
storage/2019-12-12/queue/messages/lifecycle_test.go | 2 +- |
| 85 |
storage/2019-12-12/queue/queues/lifecycle_test.go | 2 +- |
| 86 |
storage/2019-12-12/table/entities/lifecycle_test.go | 2 +- |
| 87 |
storage/2019-12-12/table/tables/lifecycle_test.go | 2 +- |
| 88 |
storage/2020-08-04/blob/accounts/set_service_properties_test.go | 2 +- |
| 89 |
storage/2020-08-04/blob/blobs/blob_append_test.go | 2 +- |
| 90 |
storage/2020-08-04/blob/blobs/blob_page_test.go | 2 +- |
| 91 |
storage/2020-08-04/blob/blobs/copy_test.go | 4 ++-- |
| 92 |
storage/2020-08-04/blob/blobs/lease_test.go | 2 +- |
| 93 |
storage/2020-08-04/blob/blobs/lifecycle_test.go | 2 +- |
| 94 |
storage/2020-08-04/blob/blobs/snapshot_test.go | 2 +- |
| 95 |
storage/2020-08-04/blob/containers/lifecycle_test.go | 2 +- |
| 96 |
storage/2020-08-04/datalakestore/filesystems/create_test.go | 2 +- |
| 97 |
storage/2020-08-04/datalakestore/filesystems/lifecycle_test.go | 2 +- |
| 98 |
storage/2020-08-04/datalakestore/paths/create_test.go | 2 +- |
| 99 |
storage/2020-08-04/datalakestore/paths/lifecycle_test.go | 2 +- |
| 100 |
storage/2020-08-04/file/directories/lifecycle_test.go | 2 +- |
| 101 |
storage/2020-08-04/file/files/copy_wait_test.go | 4 ++-- |
| 102 |
storage/2020-08-04/file/files/lifecycle_test.go | 2 +- |
| 103 |
storage/2020-08-04/file/files/range_get_file_test.go | 2 +- |
| 104 |
storage/2020-08-04/file/files/range_put_file_test.go | 2 +- |
| 105 |
storage/2020-08-04/file/shares/lifecycle_test.go | 6 +++--- |
| 106 |
storage/2020-08-04/queue/messages/lifecycle_test.go | 2 +- |
| 107 |
storage/2020-08-04/queue/queues/lifecycle_test.go | 2 +- |
| 108 |
storage/2020-08-04/table/entities/lifecycle_test.go | 2 +- |
| 109 |
storage/2020-08-04/table/tables/lifecycle_test.go | 2 +- |
| 110 |
testhelpers/client.go | 8 ++++---- |
| 111 |
105 files changed, 125 insertions(+), 123 deletions(-) |
| 112 |
|
| 113 |
diff --git a/go.mod b/go.mod |
| 114 |
index ef705c4..6ced045 100644 |
| 115 |
--- a/go.mod |
| 116 |
+++ b/go.mod |
| 117 |
@@ -3,7 +3,7 @@ module github.com/tombuildsstuff/giovanni |
| 118 |
go 1.13 |
| 119 |
|
| 120 |
require ( |
| 121 |
|
| 122 |
+ github.com/Azure/azure-sdk-for-go v68.0.0+incompatible |
| 123 |
github.com/Azure/go-autorest/autorest v0.11.19 |
| 124 |
github.com/Azure/go-autorest/autorest/adal v0.9.14 // indirect |
| 125 |
github.com/Azure/go-autorest/autorest/azure/cli v0.4.2 // indirect |
| 126 |
diff --git a/go.sum b/go.sum |
| 127 |
index c0dec48..a8da48e 100644 |
| 128 |
--- a/go.sum |
| 129 |
+++ b/go.sum |
| 130 |
@@ -1,6 +1,8 @@ |
| 131 |
github.com/Azure/azure-sdk-for-go v45.0.0+incompatible/go.mod h1:9XXNKU+eRnpl9moKnB4QOLf1HestfXbmab5FXxiDBjc= |
| 132 |
github.com/Azure/azure-sdk-for-go v56.0.0+incompatible h1:jp/df9XKIJYtf4HIVA9cgmVbQpp12lxk73pcHvDsgDE= |
| 133 |
github.com/Azure/azure-sdk-for-go v56.0.0+incompatible/go.mod h1:9XXNKU+eRnpl9moKnB4QOLf1HestfXbmab5FXxiDBjc= |
| 134 |
+github.com/Azure/azure-sdk-for-go v68.0.0+incompatible h1:fcYLmCpyNYRnvJbPerq7U0hS+6+I79yEDJBqVNcqUzU= |
| 135 |
+github.com/Azure/azure-sdk-for-go v68.0.0+incompatible/go.mod h1:9XXNKU+eRnpl9moKnB4QOLf1HestfXbmab5FXxiDBjc= |
| 136 |
github.com/Azure/go-autorest v14.2.0+incompatible h1:V5VMDjClD3GiElqLWO7mz2MxNAK/vTfRHdAubSIPRgs= |
| 137 |
github.com/Azure/go-autorest v14.2.0+incompatible/go.mod h1:r+4oMnoxhatjLLJ6zxSWATqVooLgysK6ZNox3g/xq24= |
| 138 |
github.com/Azure/go-autorest/autorest v0.11.3/go.mod h1:JFgpikqFJ/MleTTxwepExTKnFUKKszPS8UavbQYUMuw= |
| 139 |
diff --git a/storage/2017-07-29/blob/blobs/blob_append_test.go b/storage/2017-07-29/blob/blobs/blob_append_test.go |
| 140 |
index a06df3c..c54d42e 100644 |
| 141 |
--- a/storage/2017-07-29/blob/blobs/blob_append_test.go |
| 142 |
+++ b/storage/2017-07-29/blob/blobs/blob_append_test.go |
| 143 |
@@ -23,7 +23,7 @@ func TestAppendBlobLifecycle(t *testing.T) { |
| 144 |
containerName := fmt.Sprintf("cont-%d", testhelpers.RandomInt()) |
| 145 |
fileName := "append-blob.txt" |
| 146 |
|
| 147 |
|
| 148 |
+ testData, err := client.BuildTestResources(ctx, resourceGroup, accountName, storage.BlobStorage) |
| 149 |
if err != nil { |
| 150 |
t.Fatal(err) |
| 151 |
} |
| 152 |
diff --git a/storage/2017-07-29/blob/blobs/blob_page_test.go b/storage/2017-07-29/blob/blobs/blob_page_test.go |
| 153 |
index c0bfeb4..83abcd5 100644 |
| 154 |
--- a/storage/2017-07-29/blob/blobs/blob_page_test.go |
| 155 |
+++ b/storage/2017-07-29/blob/blobs/blob_page_test.go |
| 156 |
@@ -23,7 +23,7 @@ func TestPageBlobLifecycle(t *testing.T) { |
| 157 |
containerName := fmt.Sprintf("cont-%d", testhelpers.RandomInt()) |
| 158 |
fileName := "append-blob.txt" |
| 159 |
|
| 160 |
|
| 161 |
+ testData, err := client.BuildTestResources(ctx, resourceGroup, accountName, storage.StorageV2) |
| 162 |
if err != nil { |
| 163 |
t.Fatal(err) |
| 164 |
} |
| 165 |
diff --git a/storage/2017-07-29/blob/blobs/copy_test.go b/storage/2017-07-29/blob/blobs/copy_test.go |
| 166 |
index 779dfe9..0d191ac 100644 |
| 167 |
--- a/storage/2017-07-29/blob/blobs/copy_test.go |
| 168 |
+++ b/storage/2017-07-29/blob/blobs/copy_test.go |
| 169 |
@@ -26,7 +26,7 @@ func TestCopyFromExistingFile(t *testing.T) { |
| 170 |
fileName := "ubuntu.iso" |
| 171 |
copiedFileName := "copied.iso" |
| 172 |
|
| 173 |
|
| 174 |
+ testData, err := client.BuildTestResources(ctx, resourceGroup, accountName, storage.BlobStorage) |
| 175 |
if err != nil { |
| 176 |
t.Fatal(err) |
| 177 |
} |
| 178 |
@@ -102,7 +102,7 @@ func TestCopyFromURL(t *testing.T) { |
| 179 |
containerName := fmt.Sprintf("cont-%d", testhelpers.RandomInt()) |
| 180 |
fileName := "ubuntu.iso" |
| 181 |
|
| 182 |
|
| 183 |
+ testData, err := client.BuildTestResources(ctx, resourceGroup, accountName, storage.BlobStorage) |
| 184 |
if err != nil { |
| 185 |
t.Fatal(err) |
| 186 |
} |
| 187 |
diff --git a/storage/2017-07-29/blob/blobs/lease_test.go b/storage/2017-07-29/blob/blobs/lease_test.go |
| 188 |
index 9db85db..dabf5ce 100644 |
| 189 |
--- a/storage/2017-07-29/blob/blobs/lease_test.go |
| 190 |
+++ b/storage/2017-07-29/blob/blobs/lease_test.go |
| 191 |
@@ -24,7 +24,7 @@ func TestLeaseLifecycle(t *testing.T) { |
| 192 |
containerName := fmt.Sprintf("cont-%d", testhelpers.RandomInt()) |
| 193 |
fileName := "ubuntu.iso" |
| 194 |
|
| 195 |
|
| 196 |
+ testData, err := client.BuildTestResources(ctx, resourceGroup, accountName, storage.BlobStorage) |
| 197 |
if err != nil { |
| 198 |
t.Fatal(err) |
| 199 |
} |
| 200 |
diff --git a/storage/2017-07-29/blob/blobs/lifecycle_test.go b/storage/2017-07-29/blob/blobs/lifecycle_test.go |
| 201 |
index d6c53cb..10e3784 100644 |
| 202 |
--- a/storage/2017-07-29/blob/blobs/lifecycle_test.go |
| 203 |
+++ b/storage/2017-07-29/blob/blobs/lifecycle_test.go |
| 204 |
@@ -24,7 +24,7 @@ func TestLifecycle(t *testing.T) { |
| 205 |
containerName := fmt.Sprintf("cont-%d", testhelpers.RandomInt()) |
| 206 |
fileName := "example.txt" |
| 207 |
|
| 208 |
|
| 209 |
+ testData, err := client.BuildTestResources(ctx, resourceGroup, accountName, storage.BlobStorage) |
| 210 |
if err != nil { |
| 211 |
t.Fatal(err) |
| 212 |
} |
| 213 |
diff --git a/storage/2017-07-29/blob/blobs/snapshot_test.go b/storage/2017-07-29/blob/blobs/snapshot_test.go |
| 214 |
index aef1ad7..a5c157f 100644 |
| 215 |
--- a/storage/2017-07-29/blob/blobs/snapshot_test.go |
| 216 |
+++ b/storage/2017-07-29/blob/blobs/snapshot_test.go |
| 217 |
@@ -25,7 +25,7 @@ func TestSnapshotLifecycle(t *testing.T) { |
| 218 |
containerName := fmt.Sprintf("cont-%d", testhelpers.RandomInt()) |
| 219 |
fileName := "example.txt" |
| 220 |
|
| 221 |
|
| 222 |
+ testData, err := client.BuildTestResources(ctx, resourceGroup, accountName, storage.BlobStorage) |
| 223 |
if err != nil { |
| 224 |
t.Fatal(err) |
| 225 |
} |
| 226 |
diff --git a/storage/2017-07-29/blob/containers/lifecycle_test.go b/storage/2017-07-29/blob/containers/lifecycle_test.go |
| 227 |
index f1bcd62..6ef385c 100644 |
| 228 |
--- a/storage/2017-07-29/blob/containers/lifecycle_test.go |
| 229 |
+++ b/storage/2017-07-29/blob/containers/lifecycle_test.go |
| 230 |
@@ -22,7 +22,7 @@ func TestContainerLifecycle(t *testing.T) { |
| 231 |
accountName := fmt.Sprintf("acctestsa%s", testhelpers.RandomString()) |
| 232 |
containerName := fmt.Sprintf("cont-%d", testhelpers.RandomInt()) |
| 233 |
|
| 234 |
|
| 235 |
+ testData, err := client.BuildTestResources(ctx, resourceGroup, accountName, storage.BlobStorage) |
| 236 |
if err != nil { |
| 237 |
t.Fatal(err) |
| 238 |
} |
| 239 |
diff --git a/storage/2017-07-29/file/directories/lifecycle_test.go b/storage/2017-07-29/file/directories/lifecycle_test.go |
| 240 |
index c4d6318..2469c18 100644 |
| 241 |
--- a/storage/2017-07-29/file/directories/lifecycle_test.go |
| 242 |
+++ b/storage/2017-07-29/file/directories/lifecycle_test.go |
| 243 |
@@ -22,7 +22,7 @@ func TestDirectoriesLifeCycle(t *testing.T) { |
| 244 |
accountName := fmt.Sprintf("acctestsa%s", testhelpers.RandomString()) |
| 245 |
shareName := fmt.Sprintf("share-%d", testhelpers.RandomInt()) |
| 246 |
|
| 247 |
|
| 248 |
+ testData, err := client.BuildTestResources(ctx, resourceGroup, accountName, storage.Storage) |
| 249 |
if err != nil { |
| 250 |
t.Fatal(err) |
| 251 |
} |
| 252 |
diff --git a/storage/2017-07-29/file/files/copy_wait_test.go b/storage/2017-07-29/file/files/copy_wait_test.go |
| 253 |
index 6257ddd..95a6b3d 100644 |
| 254 |
--- a/storage/2017-07-29/file/files/copy_wait_test.go |
| 255 |
+++ b/storage/2017-07-29/file/files/copy_wait_test.go |
| 256 |
@@ -23,7 +23,7 @@ func TestFilesCopyAndWaitFromURL(t *testing.T) { |
| 257 |
accountName := fmt.Sprintf("acctestsa%s", testhelpers.RandomString()) |
| 258 |
shareName := fmt.Sprintf("share-%d", testhelpers.RandomInt()) |
| 259 |
|
| 260 |
|
| 261 |
+ testData, err := client.BuildTestResources(ctx, resourceGroup, accountName, storage.Storage) |
| 262 |
if err != nil { |
| 263 |
t.Fatal(err) |
| 264 |
} |
| 265 |
@@ -77,7 +77,7 @@ func TestFilesCopyAndWaitFromBlob(t *testing.T) { |
| 266 |
accountName := fmt.Sprintf("acctestsa%s", testhelpers.RandomString()) |
| 267 |
shareName := fmt.Sprintf("share-%d", testhelpers.RandomInt()) |
| 268 |
|
| 269 |
|
| 270 |
+ testData, err := client.BuildTestResources(ctx, resourceGroup, accountName, storage.Storage) |
| 271 |
if err != nil { |
| 272 |
t.Fatal(err) |
| 273 |
} |
| 274 |
diff --git a/storage/2017-07-29/file/files/lifecycle_test.go b/storage/2017-07-29/file/files/lifecycle_test.go |
| 275 |
index 883e583..1ec9d59 100644 |
| 276 |
--- a/storage/2017-07-29/file/files/lifecycle_test.go |
| 277 |
+++ b/storage/2017-07-29/file/files/lifecycle_test.go |
| 278 |
@@ -21,7 +21,7 @@ func TestFilesLifeCycle(t *testing.T) { |
| 279 |
accountName := fmt.Sprintf("acctestsa%s", testhelpers.RandomString()) |
| 280 |
shareName := fmt.Sprintf("share-%d", testhelpers.RandomInt()) |
| 281 |
|
| 282 |
|
| 283 |
+ testData, err := client.BuildTestResources(ctx, resourceGroup, accountName, storage.Storage) |
| 284 |
if err != nil { |
| 285 |
t.Fatal(err) |
| 286 |
} |
| 287 |
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 |
| 288 |
index 3932e16..c5a2b9c 100644 |
| 289 |
--- a/storage/2017-07-29/file/files/range_get_file_test.go |
| 290 |
+++ b/storage/2017-07-29/file/files/range_get_file_test.go |
| 291 |
@@ -32,7 +32,7 @@ func testGetFile(t *testing.T, fileName string, contentType string) { |
| 292 |
accountName := fmt.Sprintf("acctestsa%s", testhelpers.RandomString()) |
| 293 |
shareName := fmt.Sprintf("share-%d", testhelpers.RandomInt()) |
| 294 |
|
| 295 |
|
| 296 |
+ testData, err := client.BuildTestResources(ctx, resourceGroup, accountName, storage.Storage) |
| 297 |
if err != nil { |
| 298 |
t.Fatal(err) |
| 299 |
} |
| 300 |
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 |
| 301 |
index 4b94e8b..a94dc0a 100644 |
| 302 |
--- a/storage/2017-07-29/file/files/range_put_file_test.go |
| 303 |
+++ b/storage/2017-07-29/file/files/range_put_file_test.go |
| 304 |
@@ -32,7 +32,7 @@ func testPutFile(t *testing.T, fileName string, contentType string) { |
| 305 |
accountName := fmt.Sprintf("acctestsa%s", testhelpers.RandomString()) |
| 306 |
shareName := fmt.Sprintf("share-%d", testhelpers.RandomInt()) |
| 307 |
|
| 308 |
|
| 309 |
+ testData, err := client.BuildTestResources(ctx, resourceGroup, accountName, storage.Storage) |
| 310 |
if err != nil { |
| 311 |
t.Fatal(err) |
| 312 |
} |
| 313 |
diff --git a/storage/2017-07-29/file/shares/lifecycle_test.go b/storage/2017-07-29/file/shares/lifecycle_test.go |
| 314 |
index e006fec..0837037 100644 |
| 315 |
--- a/storage/2017-07-29/file/shares/lifecycle_test.go |
| 316 |
+++ b/storage/2017-07-29/file/shares/lifecycle_test.go |
| 317 |
@@ -20,7 +20,7 @@ func TestSharesLifecycle(t *testing.T) { |
| 318 |
accountName := fmt.Sprintf("acctestsa%s", testhelpers.RandomString()) |
| 319 |
shareName := fmt.Sprintf("share-%d", testhelpers.RandomInt()) |
| 320 |
|
| 321 |
|
| 322 |
+ testData, err := client.BuildTestResources(ctx, resourceGroup, accountName, storage.Storage) |
| 323 |
if err != nil { |
| 324 |
t.Fatal(err) |
| 325 |
} |
| 326 |
@@ -161,7 +161,7 @@ func TestSharesLifecycleLargeQuota(t *testing.T) { |
| 327 |
accountName := fmt.Sprintf("acctestsa%s", testhelpers.RandomString()) |
| 328 |
shareName := fmt.Sprintf("share-%d", testhelpers.RandomInt()) |
| 329 |
|
| 330 |
|
| 331 |
+ testData, err := client.BuildTestResourcesWithSku(ctx, resourceGroup, accountName, storage.FileStorage, storage.PremiumLRS) |
| 332 |
if err != nil { |
| 333 |
t.Fatal(err) |
| 334 |
} |
| 335 |
diff --git a/storage/2017-07-29/queue/messages/lifecycle_test.go b/storage/2017-07-29/queue/messages/lifecycle_test.go |
| 336 |
index 9ecd73e..005f258 100644 |
| 337 |
--- a/storage/2017-07-29/queue/messages/lifecycle_test.go |
| 338 |
+++ b/storage/2017-07-29/queue/messages/lifecycle_test.go |
| 339 |
@@ -21,7 +21,7 @@ func TestLifeCycle(t *testing.T) { |
| 340 |
accountName := fmt.Sprintf("acctestsa%s", testhelpers.RandomString()) |
| 341 |
queueName := fmt.Sprintf("queue-%d", testhelpers.RandomInt()) |
| 342 |
|
| 343 |
|
| 344 |
+ testData, err := client.BuildTestResources(ctx, resourceGroup, accountName, storage.Storage) |
| 345 |
if err != nil { |
| 346 |
t.Fatal(err) |
| 347 |
} |
| 348 |
diff --git a/storage/2017-07-29/queue/queues/lifecycle_test.go b/storage/2017-07-29/queue/queues/lifecycle_test.go |
| 349 |
index d36660c..481a1b2 100644 |
| 350 |
--- a/storage/2017-07-29/queue/queues/lifecycle_test.go |
| 351 |
+++ b/storage/2017-07-29/queue/queues/lifecycle_test.go |
| 352 |
@@ -21,7 +21,7 @@ func TestQueuesLifecycle(t *testing.T) { |
| 353 |
accountName := fmt.Sprintf("acctestsa%s", testhelpers.RandomString()) |
| 354 |
queueName := fmt.Sprintf("queue-%d", testhelpers.RandomInt()) |
| 355 |
|
| 356 |
|
| 357 |
+ testData, err := client.BuildTestResources(ctx, resourceGroup, accountName, storage.Storage) |
| 358 |
if err != nil { |
| 359 |
t.Fatal(err) |
| 360 |
} |
| 361 |
diff --git a/storage/2017-07-29/table/entities/lifecycle_test.go b/storage/2017-07-29/table/entities/lifecycle_test.go |
| 362 |
index b47b7c6..5a01910 100644 |
| 363 |
--- a/storage/2017-07-29/table/entities/lifecycle_test.go |
| 364 |
+++ b/storage/2017-07-29/table/entities/lifecycle_test.go |
| 365 |
@@ -21,7 +21,7 @@ func TestEntitiesLifecycle(t *testing.T) { |
| 366 |
accountName := fmt.Sprintf("acctestsa%s", testhelpers.RandomString()) |
| 367 |
tableName := fmt.Sprintf("table%d", testhelpers.RandomInt()) |
| 368 |
|
| 369 |
|
| 370 |
+ testData, err := client.BuildTestResources(ctx, resourceGroup, accountName, storage.Storage) |
| 371 |
if err != nil { |
| 372 |
t.Fatal(err) |
| 373 |
} |
| 374 |
diff --git a/storage/2017-07-29/table/tables/lifecycle_test.go b/storage/2017-07-29/table/tables/lifecycle_test.go |
| 375 |
index 816eebb..815624b 100644 |
| 376 |
--- a/storage/2017-07-29/table/tables/lifecycle_test.go |
| 377 |
+++ b/storage/2017-07-29/table/tables/lifecycle_test.go |
| 378 |
@@ -21,7 +21,7 @@ func TestTablesLifecycle(t *testing.T) { |
| 379 |
accountName := fmt.Sprintf("acctestsa%s", testhelpers.RandomString()) |
| 380 |
tableName := fmt.Sprintf("table%d", testhelpers.RandomInt()) |
| 381 |
|
| 382 |
|
| 383 |
+ testData, err := client.BuildTestResources(ctx, resourceGroup, accountName, storage.Storage) |
| 384 |
if err != nil { |
| 385 |
t.Fatal(err) |
| 386 |
} |
| 387 |
diff --git a/storage/2018-03-28/blob/blobs/blob_append_test.go b/storage/2018-03-28/blob/blobs/blob_append_test.go |
| 388 |
index 6ba2dbc..a8f3634 100644 |
| 389 |
--- a/storage/2018-03-28/blob/blobs/blob_append_test.go |
| 390 |
+++ b/storage/2018-03-28/blob/blobs/blob_append_test.go |
| 391 |
@@ -23,7 +23,7 @@ func TestAppendBlobLifecycle(t *testing.T) { |
| 392 |
containerName := fmt.Sprintf("cont-%d", testhelpers.RandomInt()) |
| 393 |
fileName := "append-blob.txt" |
| 394 |
|
| 395 |
|
| 396 |
+ testData, err := client.BuildTestResources(ctx, resourceGroup, accountName, storage.BlobStorage) |
| 397 |
if err != nil { |
| 398 |
t.Fatal(err) |
| 399 |
} |
| 400 |
diff --git a/storage/2018-03-28/blob/blobs/blob_page_test.go b/storage/2018-03-28/blob/blobs/blob_page_test.go |
| 401 |
index 7d414a7..6cd09ec 100644 |
| 402 |
--- a/storage/2018-03-28/blob/blobs/blob_page_test.go |
| 403 |
+++ b/storage/2018-03-28/blob/blobs/blob_page_test.go |
| 404 |
@@ -23,7 +23,7 @@ func TestPageBlobLifecycle(t *testing.T) { |
| 405 |
containerName := fmt.Sprintf("cont-%d", testhelpers.RandomInt()) |
| 406 |
fileName := "append-blob.txt" |
| 407 |
|
| 408 |
|
| 409 |
+ testData, err := client.BuildTestResources(ctx, resourceGroup, accountName, storage.StorageV2) |
| 410 |
if err != nil { |
| 411 |
t.Fatal(err) |
| 412 |
} |
| 413 |
diff --git a/storage/2018-03-28/blob/blobs/copy_test.go b/storage/2018-03-28/blob/blobs/copy_test.go |
| 414 |
index 92061ed..0538849 100644 |
| 415 |
--- a/storage/2018-03-28/blob/blobs/copy_test.go |
| 416 |
+++ b/storage/2018-03-28/blob/blobs/copy_test.go |
| 417 |
@@ -26,7 +26,7 @@ func TestCopyFromExistingFile(t *testing.T) { |
| 418 |
fileName := "ubuntu.iso" |
| 419 |
copiedFileName := "copied.iso" |
| 420 |
|
| 421 |
|
| 422 |
+ testData, err := client.BuildTestResources(ctx, resourceGroup, accountName, storage.BlobStorage) |
| 423 |
if err != nil { |
| 424 |
t.Fatal(err) |
| 425 |
} |
| 426 |
@@ -102,7 +102,7 @@ func TestCopyFromURL(t *testing.T) { |
| 427 |
containerName := fmt.Sprintf("cont-%d", testhelpers.RandomInt()) |
| 428 |
fileName := "ubuntu.iso" |
| 429 |
|
| 430 |
|
| 431 |
+ testData, err := client.BuildTestResources(ctx, resourceGroup, accountName, storage.BlobStorage) |
| 432 |
if err != nil { |
| 433 |
t.Fatal(err) |
| 434 |
} |
| 435 |
diff --git a/storage/2018-03-28/blob/blobs/lease_test.go b/storage/2018-03-28/blob/blobs/lease_test.go |
| 436 |
index 7a5818f..0e169da 100644 |
| 437 |
--- a/storage/2018-03-28/blob/blobs/lease_test.go |
| 438 |
+++ b/storage/2018-03-28/blob/blobs/lease_test.go |
| 439 |
@@ -24,7 +24,7 @@ func TestLeaseLifecycle(t *testing.T) { |
| 440 |
containerName := fmt.Sprintf("cont-%d", testhelpers.RandomInt()) |
| 441 |
fileName := "ubuntu.iso" |
| 442 |
|
| 443 |
|
| 444 |
+ testData, err := client.BuildTestResources(ctx, resourceGroup, accountName, storage.BlobStorage) |
| 445 |
if err != nil { |
| 446 |
t.Fatal(err) |
| 447 |
} |
| 448 |
diff --git a/storage/2018-03-28/blob/blobs/lifecycle_test.go b/storage/2018-03-28/blob/blobs/lifecycle_test.go |
| 449 |
index 33ce43b..ffc13f3 100644 |
| 450 |
--- a/storage/2018-03-28/blob/blobs/lifecycle_test.go |
| 451 |
+++ b/storage/2018-03-28/blob/blobs/lifecycle_test.go |
| 452 |
@@ -24,7 +24,7 @@ func TestLifecycle(t *testing.T) { |
| 453 |
containerName := fmt.Sprintf("cont-%d", testhelpers.RandomInt()) |
| 454 |
fileName := "example.txt" |
| 455 |
|
| 456 |
|
| 457 |
+ testData, err := client.BuildTestResources(ctx, resourceGroup, accountName, storage.BlobStorage) |
| 458 |
if err != nil { |
| 459 |
t.Fatal(err) |
| 460 |
} |
| 461 |
diff --git a/storage/2018-03-28/blob/blobs/snapshot_test.go b/storage/2018-03-28/blob/blobs/snapshot_test.go |
| 462 |
index 87b9d95..b89560f 100644 |
| 463 |
--- a/storage/2018-03-28/blob/blobs/snapshot_test.go |
| 464 |
+++ b/storage/2018-03-28/blob/blobs/snapshot_test.go |
| 465 |
@@ -25,7 +25,7 @@ func TestSnapshotLifecycle(t *testing.T) { |
| 466 |
containerName := fmt.Sprintf("cont-%d", testhelpers.RandomInt()) |
| 467 |
fileName := "example.txt" |
| 468 |
|
| 469 |
|
| 470 |
+ testData, err := client.BuildTestResources(ctx, resourceGroup, accountName, storage.BlobStorage) |
| 471 |
if err != nil { |
| 472 |
t.Fatal(err) |
| 473 |
} |
| 474 |
diff --git a/storage/2018-03-28/blob/containers/lifecycle_test.go b/storage/2018-03-28/blob/containers/lifecycle_test.go |
| 475 |
index f1bcd62..6ef385c 100644 |
| 476 |
--- a/storage/2018-03-28/blob/containers/lifecycle_test.go |
| 477 |
+++ b/storage/2018-03-28/blob/containers/lifecycle_test.go |
| 478 |
@@ -22,7 +22,7 @@ func TestContainerLifecycle(t *testing.T) { |
| 479 |
accountName := fmt.Sprintf("acctestsa%s", testhelpers.RandomString()) |
| 480 |
containerName := fmt.Sprintf("cont-%d", testhelpers.RandomInt()) |
| 481 |
|
| 482 |
|
| 483 |
+ testData, err := client.BuildTestResources(ctx, resourceGroup, accountName, storage.BlobStorage) |
| 484 |
if err != nil { |
| 485 |
t.Fatal(err) |
| 486 |
} |
| 487 |
diff --git a/storage/2018-03-28/datalakestore/filesystems/create_test.go b/storage/2018-03-28/datalakestore/filesystems/create_test.go |
| 488 |
index d8e90df..19643c7 100644 |
| 489 |
--- a/storage/2018-03-28/datalakestore/filesystems/create_test.go |
| 490 |
+++ b/storage/2018-03-28/datalakestore/filesystems/create_test.go |
| 491 |
@@ -20,7 +20,7 @@ func TestCreateHasNoTagsByDefault(t *testing.T) { |
| 492 |
accountName := fmt.Sprintf("acctestsa%s", testhelpers.RandomString()) |
| 493 |
fileSystemName := fmt.Sprintf("acctestfs-%s", testhelpers.RandomString()) |
| 494 |
|
| 495 |
|
| 496 |
+ if _, err = client.BuildTestResources(ctx, resourceGroup, accountName, storage.BlobStorage); err != nil { |
| 497 |
t.Fatal(err) |
| 498 |
} |
| 499 |
defer client.DestroyTestResources(ctx, resourceGroup, accountName) |
| 500 |
diff --git a/storage/2018-03-28/datalakestore/filesystems/lifecycle_test.go b/storage/2018-03-28/datalakestore/filesystems/lifecycle_test.go |
| 501 |
index fde45ee..778884b 100644 |
| 502 |
--- a/storage/2018-03-28/datalakestore/filesystems/lifecycle_test.go |
| 503 |
+++ b/storage/2018-03-28/datalakestore/filesystems/lifecycle_test.go |
| 504 |
@@ -20,7 +20,7 @@ func TestLifecycle(t *testing.T) { |
| 505 |
accountName := fmt.Sprintf("acctestsa%s", testhelpers.RandomString()) |
| 506 |
fileSystemName := fmt.Sprintf("acctestfs-%s", testhelpers.RandomString()) |
| 507 |
|
| 508 |
|
| 509 |
+ if _, err = client.BuildTestResources(ctx, resourceGroup, accountName, storage.BlobStorage); err != nil { |
| 510 |
t.Fatal(err) |
| 511 |
} |
| 512 |
defer client.DestroyTestResources(ctx, resourceGroup, accountName) |
| 513 |
diff --git a/storage/2018-03-28/file/directories/lifecycle_test.go b/storage/2018-03-28/file/directories/lifecycle_test.go |
| 514 |
index 1b00ab7..30ef8b0 100644 |
| 515 |
--- a/storage/2018-03-28/file/directories/lifecycle_test.go |
| 516 |
+++ b/storage/2018-03-28/file/directories/lifecycle_test.go |
| 517 |
@@ -22,7 +22,7 @@ func TestDirectoriesLifeCycle(t *testing.T) { |
| 518 |
accountName := fmt.Sprintf("acctestsa%s", testhelpers.RandomString()) |
| 519 |
shareName := fmt.Sprintf("share-%d", testhelpers.RandomInt()) |
| 520 |
|
| 521 |
|
| 522 |
+ testData, err := client.BuildTestResources(ctx, resourceGroup, accountName, storage.Storage) |
| 523 |
if err != nil { |
| 524 |
t.Fatal(err) |
| 525 |
} |
| 526 |
diff --git a/storage/2018-03-28/file/files/copy_wait_test.go b/storage/2018-03-28/file/files/copy_wait_test.go |
| 527 |
index 9b416fc..9d5d1ad 100644 |
| 528 |
--- a/storage/2018-03-28/file/files/copy_wait_test.go |
| 529 |
+++ b/storage/2018-03-28/file/files/copy_wait_test.go |
| 530 |
@@ -23,7 +23,7 @@ func TestFilesCopyAndWaitFromURL(t *testing.T) { |
| 531 |
accountName := fmt.Sprintf("acctestsa%s", testhelpers.RandomString()) |
| 532 |
shareName := fmt.Sprintf("share-%d", testhelpers.RandomInt()) |
| 533 |
|
| 534 |
|
| 535 |
+ testData, err := client.BuildTestResources(ctx, resourceGroup, accountName, storage.Storage) |
| 536 |
if err != nil { |
| 537 |
t.Fatal(err) |
| 538 |
} |
| 539 |
@@ -77,7 +77,7 @@ func TestFilesCopyAndWaitFromBlob(t *testing.T) { |
| 540 |
accountName := fmt.Sprintf("acctestsa%s", testhelpers.RandomString()) |
| 541 |
shareName := fmt.Sprintf("share-%d", testhelpers.RandomInt()) |
| 542 |
|
| 543 |
|
| 544 |
+ testData, err := client.BuildTestResources(ctx, resourceGroup, accountName, storage.Storage) |
| 545 |
if err != nil { |
| 546 |
t.Fatal(err) |
| 547 |
} |
| 548 |
diff --git a/storage/2018-03-28/file/files/lifecycle_test.go b/storage/2018-03-28/file/files/lifecycle_test.go |
| 549 |
index 5855090..144ef1f 100644 |
| 550 |
--- a/storage/2018-03-28/file/files/lifecycle_test.go |
| 551 |
+++ b/storage/2018-03-28/file/files/lifecycle_test.go |
| 552 |
@@ -21,7 +21,7 @@ func TestFilesLifeCycle(t *testing.T) { |
| 553 |
accountName := fmt.Sprintf("acctestsa%s", testhelpers.RandomString()) |
| 554 |
shareName := fmt.Sprintf("share-%d", testhelpers.RandomInt()) |
| 555 |
|
| 556 |
|
| 557 |
+ testData, err := client.BuildTestResources(ctx, resourceGroup, accountName, storage.Storage) |
| 558 |
if err != nil { |
| 559 |
t.Fatal(err) |
| 560 |
} |
| 561 |
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 |
| 562 |
index c12493a..bf8ef40 100644 |
| 563 |
--- a/storage/2018-03-28/file/files/range_get_file_test.go |
| 564 |
+++ b/storage/2018-03-28/file/files/range_get_file_test.go |
| 565 |
@@ -32,7 +32,7 @@ func testGetFile(t *testing.T, fileName string, contentType string) { |
| 566 |
accountName := fmt.Sprintf("acctestsa%s", testhelpers.RandomString()) |
| 567 |
shareName := fmt.Sprintf("share-%d", testhelpers.RandomInt()) |
| 568 |
|
| 569 |
|
| 570 |
+ testData, err := client.BuildTestResources(ctx, resourceGroup, accountName, storage.Storage) |
| 571 |
if err != nil { |
| 572 |
t.Fatal(err) |
| 573 |
} |
| 574 |
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 |
| 575 |
index 3d70576..d0344dc 100644 |
| 576 |
--- a/storage/2018-03-28/file/files/range_put_file_test.go |
| 577 |
+++ b/storage/2018-03-28/file/files/range_put_file_test.go |
| 578 |
@@ -32,7 +32,7 @@ func testPutFile(t *testing.T, fileName string, contentType string) { |
| 579 |
accountName := fmt.Sprintf("acctestsa%s", testhelpers.RandomString()) |
| 580 |
shareName := fmt.Sprintf("share-%d", testhelpers.RandomInt()) |
| 581 |
|
| 582 |
|
| 583 |
+ testData, err := client.BuildTestResources(ctx, resourceGroup, accountName, storage.Storage) |
| 584 |
if err != nil { |
| 585 |
t.Fatal(err) |
| 586 |
} |
| 587 |
diff --git a/storage/2018-03-28/file/shares/lifecycle_test.go b/storage/2018-03-28/file/shares/lifecycle_test.go |
| 588 |
index e006fec..0837037 100644 |
| 589 |
--- a/storage/2018-03-28/file/shares/lifecycle_test.go |
| 590 |
+++ b/storage/2018-03-28/file/shares/lifecycle_test.go |
| 591 |
@@ -20,7 +20,7 @@ func TestSharesLifecycle(t *testing.T) { |
| 592 |
accountName := fmt.Sprintf("acctestsa%s", testhelpers.RandomString()) |
| 593 |
shareName := fmt.Sprintf("share-%d", testhelpers.RandomInt()) |
| 594 |
|
| 595 |
|
| 596 |
+ testData, err := client.BuildTestResources(ctx, resourceGroup, accountName, storage.Storage) |
| 597 |
if err != nil { |
| 598 |
t.Fatal(err) |
| 599 |
} |
| 600 |
@@ -161,7 +161,7 @@ func TestSharesLifecycleLargeQuota(t *testing.T) { |
| 601 |
accountName := fmt.Sprintf("acctestsa%s", testhelpers.RandomString()) |
| 602 |
shareName := fmt.Sprintf("share-%d", testhelpers.RandomInt()) |
| 603 |
|
| 604 |
|
| 605 |
+ testData, err := client.BuildTestResourcesWithSku(ctx, resourceGroup, accountName, storage.FileStorage, storage.PremiumLRS) |
| 606 |
if err != nil { |
| 607 |
t.Fatal(err) |
| 608 |
} |
| 609 |
diff --git a/storage/2018-03-28/queue/messages/lifecycle_test.go b/storage/2018-03-28/queue/messages/lifecycle_test.go |
| 610 |
index f6d75aa..124cf90 100644 |
| 611 |
--- a/storage/2018-03-28/queue/messages/lifecycle_test.go |
| 612 |
+++ b/storage/2018-03-28/queue/messages/lifecycle_test.go |
| 613 |
@@ -21,7 +21,7 @@ func TestLifeCycle(t *testing.T) { |
| 614 |
accountName := fmt.Sprintf("acctestsa%s", testhelpers.RandomString()) |
| 615 |
queueName := fmt.Sprintf("queue-%d", testhelpers.RandomInt()) |
| 616 |
|
| 617 |
|
| 618 |
+ testData, err := client.BuildTestResources(ctx, resourceGroup, accountName, storage.Storage) |
| 619 |
if err != nil { |
| 620 |
t.Fatal(err) |
| 621 |
} |
| 622 |
diff --git a/storage/2018-03-28/queue/queues/lifecycle_test.go b/storage/2018-03-28/queue/queues/lifecycle_test.go |
| 623 |
index 0f2cf62..0c53749 100644 |
| 624 |
--- a/storage/2018-03-28/queue/queues/lifecycle_test.go |
| 625 |
+++ b/storage/2018-03-28/queue/queues/lifecycle_test.go |
| 626 |
@@ -20,7 +20,7 @@ func TestQueuesLifecycle(t *testing.T) { |
| 627 |
accountName := fmt.Sprintf("acctestsa%s", testhelpers.RandomString()) |
| 628 |
queueName := fmt.Sprintf("queue-%d", testhelpers.RandomInt()) |
| 629 |
|
| 630 |
|
| 631 |
+ _, err = client.BuildTestResources(ctx, resourceGroup, accountName, storage.Storage) |
| 632 |
if err != nil { |
| 633 |
t.Fatal(err) |
| 634 |
} |
| 635 |
diff --git a/storage/2018-03-28/table/entities/lifecycle_test.go b/storage/2018-03-28/table/entities/lifecycle_test.go |
| 636 |
index 881cc89..6ea977b 100644 |
| 637 |
--- a/storage/2018-03-28/table/entities/lifecycle_test.go |
| 638 |
+++ b/storage/2018-03-28/table/entities/lifecycle_test.go |
| 639 |
@@ -21,7 +21,7 @@ func TestEntitiesLifecycle(t *testing.T) { |
| 640 |
accountName := fmt.Sprintf("acctestsa%s", testhelpers.RandomString()) |
| 641 |
tableName := fmt.Sprintf("table%d", testhelpers.RandomInt()) |
| 642 |
|
| 643 |
|
| 644 |
+ testData, err := client.BuildTestResources(ctx, resourceGroup, accountName, storage.Storage) |
| 645 |
if err != nil { |
| 646 |
t.Fatal(err) |
| 647 |
} |
| 648 |
diff --git a/storage/2018-03-28/table/tables/lifecycle_test.go b/storage/2018-03-28/table/tables/lifecycle_test.go |
| 649 |
index 816eebb..815624b 100644 |
| 650 |
--- a/storage/2018-03-28/table/tables/lifecycle_test.go |
| 651 |
+++ b/storage/2018-03-28/table/tables/lifecycle_test.go |
| 652 |
@@ -21,7 +21,7 @@ func TestTablesLifecycle(t *testing.T) { |
| 653 |
accountName := fmt.Sprintf("acctestsa%s", testhelpers.RandomString()) |
| 654 |
tableName := fmt.Sprintf("table%d", testhelpers.RandomInt()) |
| 655 |
|
| 656 |
|
| 657 |
+ testData, err := client.BuildTestResources(ctx, resourceGroup, accountName, storage.Storage) |
| 658 |
if err != nil { |
| 659 |
t.Fatal(err) |
| 660 |
} |
| 661 |
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 |
| 662 |
index 24be49f..0aa2653 100644 |
| 663 |
--- a/storage/2018-11-09/blob/accounts/set_service_properties_test.go |
| 664 |
+++ b/storage/2018-11-09/blob/accounts/set_service_properties_test.go |
| 665 |
@@ -20,7 +20,7 @@ func TestContainerLifecycle(t *testing.T) { |
| 666 |
resourceGroup := fmt.Sprintf("acctestrg-%d", testhelpers.RandomInt()) |
| 667 |
accountName := fmt.Sprintf("acctestsa%s", testhelpers.RandomString()) |
| 668 |
|
| 669 |
|
| 670 |
+ _, err = client.BuildTestResources(ctx, resourceGroup, accountName, storage.StorageV2) |
| 671 |
if err != nil { |
| 672 |
t.Fatal(err) |
| 673 |
} |
| 674 |
diff --git a/storage/2018-11-09/blob/blobs/blob_append_test.go b/storage/2018-11-09/blob/blobs/blob_append_test.go |
| 675 |
index 0867951..83665b0 100644 |
| 676 |
--- a/storage/2018-11-09/blob/blobs/blob_append_test.go |
| 677 |
+++ b/storage/2018-11-09/blob/blobs/blob_append_test.go |
| 678 |
@@ -23,7 +23,7 @@ func TestAppendBlobLifecycle(t *testing.T) { |
| 679 |
containerName := fmt.Sprintf("cont-%d", testhelpers.RandomInt()) |
| 680 |
fileName := "append-blob.txt" |
| 681 |
|
| 682 |
|
| 683 |
+ testData, err := client.BuildTestResources(ctx, resourceGroup, accountName, storage.BlobStorage) |
| 684 |
if err != nil { |
| 685 |
t.Fatal(err) |
| 686 |
} |
| 687 |
diff --git a/storage/2018-11-09/blob/blobs/blob_page_test.go b/storage/2018-11-09/blob/blobs/blob_page_test.go |
| 688 |
index 6e67630..2ff227a 100644 |
| 689 |
--- a/storage/2018-11-09/blob/blobs/blob_page_test.go |
| 690 |
+++ b/storage/2018-11-09/blob/blobs/blob_page_test.go |
| 691 |
@@ -23,7 +23,7 @@ func TestPageBlobLifecycle(t *testing.T) { |
| 692 |
containerName := fmt.Sprintf("cont-%d", testhelpers.RandomInt()) |
| 693 |
fileName := "append-blob.txt" |
| 694 |
|
| 695 |
|
| 696 |
+ testData, err := client.BuildTestResources(ctx, resourceGroup, accountName, storage.StorageV2) |
| 697 |
if err != nil { |
| 698 |
t.Fatal(err) |
| 699 |
} |
| 700 |
diff --git a/storage/2018-11-09/blob/blobs/copy_test.go b/storage/2018-11-09/blob/blobs/copy_test.go |
| 701 |
index 4eddc0b..b170044 100644 |
| 702 |
--- a/storage/2018-11-09/blob/blobs/copy_test.go |
| 703 |
+++ b/storage/2018-11-09/blob/blobs/copy_test.go |
| 704 |
@@ -26,7 +26,7 @@ func TestCopyFromExistingFile(t *testing.T) { |
| 705 |
fileName := "ubuntu.iso" |
| 706 |
copiedFileName := "copied.iso" |
| 707 |
|
| 708 |
|
| 709 |
+ testData, err := client.BuildTestResources(ctx, resourceGroup, accountName, storage.BlobStorage) |
| 710 |
if err != nil { |
| 711 |
t.Fatal(err) |
| 712 |
} |
| 713 |
@@ -102,7 +102,7 @@ func TestCopyFromURL(t *testing.T) { |
| 714 |
containerName := fmt.Sprintf("cont-%d", testhelpers.RandomInt()) |
| 715 |
fileName := "ubuntu.iso" |
| 716 |
|
| 717 |
|
| 718 |
+ testData, err := client.BuildTestResources(ctx, resourceGroup, accountName, storage.BlobStorage) |
| 719 |
if err != nil { |
| 720 |
t.Fatal(err) |
| 721 |
} |
| 722 |
diff --git a/storage/2018-11-09/blob/blobs/lease_test.go b/storage/2018-11-09/blob/blobs/lease_test.go |
| 723 |
index 7c1c4b7..e476f80 100644 |
| 724 |
--- a/storage/2018-11-09/blob/blobs/lease_test.go |
| 725 |
+++ b/storage/2018-11-09/blob/blobs/lease_test.go |
| 726 |
@@ -24,7 +24,7 @@ func TestLeaseLifecycle(t *testing.T) { |
| 727 |
containerName := fmt.Sprintf("cont-%d", testhelpers.RandomInt()) |
| 728 |
fileName := "ubuntu.iso" |
| 729 |
|
| 730 |
|
| 731 |
+ testData, err := client.BuildTestResources(ctx, resourceGroup, accountName, storage.BlobStorage) |
| 732 |
if err != nil { |
| 733 |
t.Fatal(err) |
| 734 |
} |
| 735 |
diff --git a/storage/2018-11-09/blob/blobs/lifecycle_test.go b/storage/2018-11-09/blob/blobs/lifecycle_test.go |
| 736 |
index 89ad782..8ab04cc 100644 |
| 737 |
--- a/storage/2018-11-09/blob/blobs/lifecycle_test.go |
| 738 |
+++ b/storage/2018-11-09/blob/blobs/lifecycle_test.go |
| 739 |
@@ -26,7 +26,7 @@ func TestLifecycle(t *testing.T) { |
| 740 |
containerName := fmt.Sprintf("cont-%d", testhelpers.RandomInt()) |
| 741 |
fileName := "example.txt" |
| 742 |
|
| 743 |
|
| 744 |
+ testData, err := client.BuildTestResources(ctx, resourceGroup, accountName, storage.BlobStorage) |
| 745 |
if err != nil { |
| 746 |
t.Fatal(err) |
| 747 |
} |
| 748 |
diff --git a/storage/2018-11-09/blob/blobs/snapshot_test.go b/storage/2018-11-09/blob/blobs/snapshot_test.go |
| 749 |
index 0f9afad..88523a9 100644 |
| 750 |
--- a/storage/2018-11-09/blob/blobs/snapshot_test.go |
| 751 |
+++ b/storage/2018-11-09/blob/blobs/snapshot_test.go |
| 752 |
@@ -25,7 +25,7 @@ func TestSnapshotLifecycle(t *testing.T) { |
| 753 |
containerName := fmt.Sprintf("cont-%d", testhelpers.RandomInt()) |
| 754 |
fileName := "example.txt" |
| 755 |
|
| 756 |
|
| 757 |
+ testData, err := client.BuildTestResources(ctx, resourceGroup, accountName, storage.BlobStorage) |
| 758 |
if err != nil { |
| 759 |
t.Fatal(err) |
| 760 |
} |
| 761 |
diff --git a/storage/2018-11-09/blob/containers/lifecycle_test.go b/storage/2018-11-09/blob/containers/lifecycle_test.go |
| 762 |
index 9103b50..122a2a6 100644 |
| 763 |
--- a/storage/2018-11-09/blob/containers/lifecycle_test.go |
| 764 |
+++ b/storage/2018-11-09/blob/containers/lifecycle_test.go |
| 765 |
@@ -24,7 +24,7 @@ func TestContainerLifecycle(t *testing.T) { |
| 766 |
accountName := fmt.Sprintf("acctestsa%s", testhelpers.RandomString()) |
| 767 |
containerName := fmt.Sprintf("cont-%d", testhelpers.RandomInt()) |
| 768 |
|
| 769 |
|
| 770 |
+ testData, err := client.BuildTestResources(ctx, resourceGroup, accountName, storage.BlobStorage) |
| 771 |
if err != nil { |
| 772 |
t.Fatal(err) |
| 773 |
} |
| 774 |
diff --git a/storage/2018-11-09/datalakestore/filesystems/create_test.go b/storage/2018-11-09/datalakestore/filesystems/create_test.go |
| 775 |
index d8e90df..19643c7 100644 |
| 776 |
--- a/storage/2018-11-09/datalakestore/filesystems/create_test.go |
| 777 |
+++ b/storage/2018-11-09/datalakestore/filesystems/create_test.go |
| 778 |
@@ -20,7 +20,7 @@ func TestCreateHasNoTagsByDefault(t *testing.T) { |
| 779 |
accountName := fmt.Sprintf("acctestsa%s", testhelpers.RandomString()) |
| 780 |
fileSystemName := fmt.Sprintf("acctestfs-%s", testhelpers.RandomString()) |
| 781 |
|
| 782 |
|
| 783 |
+ if _, err = client.BuildTestResources(ctx, resourceGroup, accountName, storage.BlobStorage); err != nil { |
| 784 |
t.Fatal(err) |
| 785 |
} |
| 786 |
defer client.DestroyTestResources(ctx, resourceGroup, accountName) |
| 787 |
diff --git a/storage/2018-11-09/datalakestore/filesystems/lifecycle_test.go b/storage/2018-11-09/datalakestore/filesystems/lifecycle_test.go |
| 788 |
index fde45ee..778884b 100644 |
| 789 |
--- a/storage/2018-11-09/datalakestore/filesystems/lifecycle_test.go |
| 790 |
+++ b/storage/2018-11-09/datalakestore/filesystems/lifecycle_test.go |
| 791 |
@@ -20,7 +20,7 @@ func TestLifecycle(t *testing.T) { |
| 792 |
accountName := fmt.Sprintf("acctestsa%s", testhelpers.RandomString()) |
| 793 |
fileSystemName := fmt.Sprintf("acctestfs-%s", testhelpers.RandomString()) |
| 794 |
|
| 795 |
|
| 796 |
+ if _, err = client.BuildTestResources(ctx, resourceGroup, accountName, storage.BlobStorage); err != nil { |
| 797 |
t.Fatal(err) |
| 798 |
} |
| 799 |
defer client.DestroyTestResources(ctx, resourceGroup, accountName) |
| 800 |
diff --git a/storage/2018-11-09/datalakestore/paths/create_test.go b/storage/2018-11-09/datalakestore/paths/create_test.go |
| 801 |
index 24710da..cce9e3c 100644 |
| 802 |
--- a/storage/2018-11-09/datalakestore/paths/create_test.go |
| 803 |
+++ b/storage/2018-11-09/datalakestore/paths/create_test.go |
| 804 |
@@ -22,7 +22,7 @@ func TestCreateDirectory(t *testing.T) { |
| 805 |
fileSystemName := fmt.Sprintf("acctestfs-%s", testhelpers.RandomString()) |
| 806 |
path := "test" |
| 807 |
|
| 808 |
|
| 809 |
+ if _, err = client.BuildTestResourcesWithHns(ctx, resourceGroup, accountName, storage.BlobStorage); err != nil { |
| 810 |
t.Fatal(err) |
| 811 |
} |
| 812 |
defer client.DestroyTestResources(ctx, resourceGroup, accountName) |
| 813 |
diff --git a/storage/2018-11-09/datalakestore/paths/lifecycle_test.go b/storage/2018-11-09/datalakestore/paths/lifecycle_test.go |
| 814 |
index 46149ca..18f9a66 100644 |
| 815 |
--- a/storage/2018-11-09/datalakestore/paths/lifecycle_test.go |
| 816 |
+++ b/storage/2018-11-09/datalakestore/paths/lifecycle_test.go |
| 817 |
@@ -25,7 +25,7 @@ func TestLifecycle(t *testing.T) { |
| 818 |
fileSystemName := fmt.Sprintf("acctestfs-%s", testhelpers.RandomString()) |
| 819 |
path := "test" |
| 820 |
|
| 821 |
|
| 822 |
+ if _, err = client.BuildTestResourcesWithHns(ctx, resourceGroup, accountName, storage.BlobStorage); err != nil { |
| 823 |
t.Fatal(err) |
| 824 |
} |
| 825 |
defer client.DestroyTestResources(ctx, resourceGroup, accountName) |
| 826 |
diff --git a/storage/2018-11-09/file/directories/lifecycle_test.go b/storage/2018-11-09/file/directories/lifecycle_test.go |
| 827 |
index 791d51b..c1c2faa 100644 |
| 828 |
--- a/storage/2018-11-09/file/directories/lifecycle_test.go |
| 829 |
+++ b/storage/2018-11-09/file/directories/lifecycle_test.go |
| 830 |
@@ -24,7 +24,7 @@ func TestDirectoriesLifeCycle(t *testing.T) { |
| 831 |
accountName := fmt.Sprintf("acctestsa%s", testhelpers.RandomString()) |
| 832 |
shareName := fmt.Sprintf("share-%d", testhelpers.RandomInt()) |
| 833 |
|
| 834 |
|
| 835 |
+ testData, err := client.BuildTestResources(ctx, resourceGroup, accountName, storage.Storage) |
| 836 |
if err != nil { |
| 837 |
t.Fatal(err) |
| 838 |
} |
| 839 |
diff --git a/storage/2018-11-09/file/files/copy_wait_test.go b/storage/2018-11-09/file/files/copy_wait_test.go |
| 840 |
index 3cf3118..e0000fd 100644 |
| 841 |
--- a/storage/2018-11-09/file/files/copy_wait_test.go |
| 842 |
+++ b/storage/2018-11-09/file/files/copy_wait_test.go |
| 843 |
@@ -23,7 +23,7 @@ func TestFilesCopyAndWaitFromURL(t *testing.T) { |
| 844 |
accountName := fmt.Sprintf("acctestsa%s", testhelpers.RandomString()) |
| 845 |
shareName := fmt.Sprintf("share-%d", testhelpers.RandomInt()) |
| 846 |
|
| 847 |
|
| 848 |
+ testData, err := client.BuildTestResources(ctx, resourceGroup, accountName, storage.Storage) |
| 849 |
if err != nil { |
| 850 |
t.Fatal(err) |
| 851 |
} |
| 852 |
@@ -77,7 +77,7 @@ func TestFilesCopyAndWaitFromBlob(t *testing.T) { |
| 853 |
accountName := fmt.Sprintf("acctestsa%s", testhelpers.RandomString()) |
| 854 |
shareName := fmt.Sprintf("share-%d", testhelpers.RandomInt()) |
| 855 |
|
| 856 |
|
| 857 |
+ testData, err := client.BuildTestResources(ctx, resourceGroup, accountName, storage.Storage) |
| 858 |
if err != nil { |
| 859 |
t.Fatal(err) |
| 860 |
} |
| 861 |
diff --git a/storage/2018-11-09/file/files/lifecycle_test.go b/storage/2018-11-09/file/files/lifecycle_test.go |
| 862 |
index ab7616e..c40b013 100644 |
| 863 |
--- a/storage/2018-11-09/file/files/lifecycle_test.go |
| 864 |
+++ b/storage/2018-11-09/file/files/lifecycle_test.go |
| 865 |
@@ -23,7 +23,7 @@ func TestFilesLifeCycle(t *testing.T) { |
| 866 |
accountName := fmt.Sprintf("acctestsa%s", testhelpers.RandomString()) |
| 867 |
shareName := fmt.Sprintf("share-%d", testhelpers.RandomInt()) |
| 868 |
|
| 869 |
|
| 870 |
+ testData, err := client.BuildTestResources(ctx, resourceGroup, accountName, storage.Storage) |
| 871 |
if err != nil { |
| 872 |
t.Fatal(err) |
| 873 |
} |
| 874 |
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 |
| 875 |
index 13d1717..2e859de 100644 |
| 876 |
--- a/storage/2018-11-09/file/files/range_get_file_test.go |
| 877 |
+++ b/storage/2018-11-09/file/files/range_get_file_test.go |
| 878 |
@@ -32,7 +32,7 @@ func testGetFile(t *testing.T, fileName string, contentType string) { |
| 879 |
accountName := fmt.Sprintf("acctestsa%s", testhelpers.RandomString()) |
| 880 |
shareName := fmt.Sprintf("share-%d", testhelpers.RandomInt()) |
| 881 |
|
| 882 |
|
| 883 |
+ testData, err := client.BuildTestResources(ctx, resourceGroup, accountName, storage.Storage) |
| 884 |
if err != nil { |
| 885 |
t.Fatal(err) |
| 886 |
} |
| 887 |
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 |
| 888 |
index c11defe..1d02905 100644 |
| 889 |
--- a/storage/2018-11-09/file/files/range_put_file_test.go |
| 890 |
+++ b/storage/2018-11-09/file/files/range_put_file_test.go |
| 891 |
@@ -32,7 +32,7 @@ func testPutFile(t *testing.T, fileName string, contentType string) { |
| 892 |
accountName := fmt.Sprintf("acctestsa%s", testhelpers.RandomString()) |
| 893 |
shareName := fmt.Sprintf("share-%d", testhelpers.RandomInt()) |
| 894 |
|
| 895 |
|
| 896 |
+ testData, err := client.BuildTestResources(ctx, resourceGroup, accountName, storage.Storage) |
| 897 |
if err != nil { |
| 898 |
t.Fatal(err) |
| 899 |
} |
| 900 |
diff --git a/storage/2018-11-09/file/shares/lifecycle_test.go b/storage/2018-11-09/file/shares/lifecycle_test.go |
| 901 |
index fb3531a..4b5d6b5 100644 |
| 902 |
--- a/storage/2018-11-09/file/shares/lifecycle_test.go |
| 903 |
+++ b/storage/2018-11-09/file/shares/lifecycle_test.go |
| 904 |
@@ -22,7 +22,7 @@ func TestSharesLifecycle(t *testing.T) { |
| 905 |
accountName := fmt.Sprintf("acctestsa%s", testhelpers.RandomString()) |
| 906 |
shareName := fmt.Sprintf("share-%d", testhelpers.RandomInt()) |
| 907 |
|
| 908 |
|
| 909 |
+ testData, err := client.BuildTestResources(ctx, resourceGroup, accountName, storage.Storage) |
| 910 |
if err != nil { |
| 911 |
t.Fatal(err) |
| 912 |
} |
| 913 |
@@ -163,7 +163,7 @@ func TestSharesLifecycleLargeQuota(t *testing.T) { |
| 914 |
accountName := fmt.Sprintf("acctestsa%s", testhelpers.RandomString()) |
| 915 |
shareName := fmt.Sprintf("share-%d", testhelpers.RandomInt()) |
| 916 |
|
| 917 |
|
| 918 |
+ testData, err := client.BuildTestResourcesWithSku(ctx, resourceGroup, accountName, storage.FileStorage, storage.PremiumLRS) |
| 919 |
if err != nil { |
| 920 |
t.Fatal(err) |
| 921 |
} |
| 922 |
diff --git a/storage/2018-11-09/queue/messages/lifecycle_test.go b/storage/2018-11-09/queue/messages/lifecycle_test.go |
| 923 |
index 7635f11..a501ab9 100644 |
| 924 |
--- a/storage/2018-11-09/queue/messages/lifecycle_test.go |
| 925 |
+++ b/storage/2018-11-09/queue/messages/lifecycle_test.go |
| 926 |
@@ -23,7 +23,7 @@ func TestLifeCycle(t *testing.T) { |
| 927 |
accountName := fmt.Sprintf("acctestsa%s", testhelpers.RandomString()) |
| 928 |
queueName := fmt.Sprintf("queue-%d", testhelpers.RandomInt()) |
| 929 |
|
| 930 |
|
| 931 |
+ testData, err := client.BuildTestResources(ctx, resourceGroup, accountName, storage.Storage) |
| 932 |
if err != nil { |
| 933 |
t.Fatal(err) |
| 934 |
} |
| 935 |
diff --git a/storage/2018-11-09/queue/queues/lifecycle_test.go b/storage/2018-11-09/queue/queues/lifecycle_test.go |
| 936 |
index a84b2d5..75b2205 100644 |
| 937 |
--- a/storage/2018-11-09/queue/queues/lifecycle_test.go |
| 938 |
+++ b/storage/2018-11-09/queue/queues/lifecycle_test.go |
| 939 |
@@ -22,7 +22,7 @@ func TestQueuesLifecycle(t *testing.T) { |
| 940 |
accountName := fmt.Sprintf("acctestsa%s", testhelpers.RandomString()) |
| 941 |
queueName := fmt.Sprintf("queue-%d", testhelpers.RandomInt()) |
| 942 |
|
| 943 |
|
| 944 |
+ _, err = client.BuildTestResources(ctx, resourceGroup, accountName, storage.Storage) |
| 945 |
if err != nil { |
| 946 |
t.Fatal(err) |
| 947 |
} |
| 948 |
diff --git a/storage/2018-11-09/table/entities/lifecycle_test.go b/storage/2018-11-09/table/entities/lifecycle_test.go |
| 949 |
index 603c2c0..530ecbf 100644 |
| 950 |
--- a/storage/2018-11-09/table/entities/lifecycle_test.go |
| 951 |
+++ b/storage/2018-11-09/table/entities/lifecycle_test.go |
| 952 |
@@ -23,7 +23,7 @@ func TestEntitiesLifecycle(t *testing.T) { |
| 953 |
accountName := fmt.Sprintf("acctestsa%s", testhelpers.RandomString()) |
| 954 |
tableName := fmt.Sprintf("table%d", testhelpers.RandomInt()) |
| 955 |
|
| 956 |
|
| 957 |
+ testData, err := client.BuildTestResources(ctx, resourceGroup, accountName, storage.Storage) |
| 958 |
if err != nil { |
| 959 |
t.Fatal(err) |
| 960 |
} |
| 961 |
diff --git a/storage/2018-11-09/table/tables/lifecycle_test.go b/storage/2018-11-09/table/tables/lifecycle_test.go |
| 962 |
index 1ad5bc4..3b14122 100644 |
| 963 |
--- a/storage/2018-11-09/table/tables/lifecycle_test.go |
| 964 |
+++ b/storage/2018-11-09/table/tables/lifecycle_test.go |
| 965 |
@@ -23,7 +23,7 @@ func TestTablesLifecycle(t *testing.T) { |
| 966 |
accountName := fmt.Sprintf("acctestsa%s", testhelpers.RandomString()) |
| 967 |
tableName := fmt.Sprintf("table%d", testhelpers.RandomInt()) |
| 968 |
|
| 969 |
|
| 970 |
+ testData, err := client.BuildTestResources(ctx, resourceGroup, accountName, storage.Storage) |
| 971 |
if err != nil { |
| 972 |
t.Fatal(err) |
| 973 |
} |
| 974 |
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 |
| 975 |
index 24be49f..0aa2653 100644 |
| 976 |
--- a/storage/2019-12-12/blob/accounts/set_service_properties_test.go |
| 977 |
+++ b/storage/2019-12-12/blob/accounts/set_service_properties_test.go |
| 978 |
@@ -20,7 +20,7 @@ func TestContainerLifecycle(t *testing.T) { |
| 979 |
resourceGroup := fmt.Sprintf("acctestrg-%d", testhelpers.RandomInt()) |
| 980 |
accountName := fmt.Sprintf("acctestsa%s", testhelpers.RandomString()) |
| 981 |
|
| 982 |
|
| 983 |
+ _, err = client.BuildTestResources(ctx, resourceGroup, accountName, storage.StorageV2) |
| 984 |
if err != nil { |
| 985 |
t.Fatal(err) |
| 986 |
} |
| 987 |
diff --git a/storage/2019-12-12/blob/blobs/blob_append_test.go b/storage/2019-12-12/blob/blobs/blob_append_test.go |
| 988 |
index 208c147..dfe8bc2 100644 |
| 989 |
--- a/storage/2019-12-12/blob/blobs/blob_append_test.go |
| 990 |
+++ b/storage/2019-12-12/blob/blobs/blob_append_test.go |
| 991 |
@@ -23,7 +23,7 @@ func TestAppendBlobLifecycle(t *testing.T) { |
| 992 |
containerName := fmt.Sprintf("cont-%d", testhelpers.RandomInt()) |
| 993 |
fileName := "append-blob.txt" |
| 994 |
|
| 995 |
|
| 996 |
+ testData, err := client.BuildTestResources(ctx, resourceGroup, accountName, storage.BlobStorage) |
| 997 |
if err != nil { |
| 998 |
t.Fatal(err) |
| 999 |
} |
| 1000 |
diff --git a/storage/2019-12-12/blob/blobs/blob_page_test.go b/storage/2019-12-12/blob/blobs/blob_page_test.go |
| 1001 |
index 0e14b8a..5a16221 100644 |
| 1002 |
--- a/storage/2019-12-12/blob/blobs/blob_page_test.go |
| 1003 |
+++ b/storage/2019-12-12/blob/blobs/blob_page_test.go |
| 1004 |
@@ -23,7 +23,7 @@ func TestPageBlobLifecycle(t *testing.T) { |
| 1005 |
containerName := fmt.Sprintf("cont-%d", testhelpers.RandomInt()) |
| 1006 |
fileName := "append-blob.txt" |
| 1007 |
|
| 1008 |
|
| 1009 |
+ testData, err := client.BuildTestResources(ctx, resourceGroup, accountName, storage.StorageV2) |
| 1010 |
if err != nil { |
| 1011 |
t.Fatal(err) |
| 1012 |
} |
| 1013 |
diff --git a/storage/2019-12-12/blob/blobs/copy_test.go b/storage/2019-12-12/blob/blobs/copy_test.go |
| 1014 |
index 18e5370..c388cbc 100644 |
| 1015 |
--- a/storage/2019-12-12/blob/blobs/copy_test.go |
| 1016 |
+++ b/storage/2019-12-12/blob/blobs/copy_test.go |
| 1017 |
@@ -26,7 +26,7 @@ func TestCopyFromExistingFile(t *testing.T) { |
| 1018 |
fileName := "ubuntu.iso" |
| 1019 |
copiedFileName := "copied.iso" |
| 1020 |
|
| 1021 |
|
| 1022 |
+ testData, err := client.BuildTestResources(ctx, resourceGroup, accountName, storage.BlobStorage) |
| 1023 |
if err != nil { |
| 1024 |
t.Fatal(err) |
| 1025 |
} |
| 1026 |
@@ -102,7 +102,7 @@ func TestCopyFromURL(t *testing.T) { |
| 1027 |
containerName := fmt.Sprintf("cont-%d", testhelpers.RandomInt()) |
| 1028 |
fileName := "ubuntu.iso" |
| 1029 |
|
| 1030 |
|
| 1031 |
+ testData, err := client.BuildTestResources(ctx, resourceGroup, accountName, storage.BlobStorage) |
| 1032 |
if err != nil { |
| 1033 |
t.Fatal(err) |
| 1034 |
} |
| 1035 |
diff --git a/storage/2019-12-12/blob/blobs/lease_test.go b/storage/2019-12-12/blob/blobs/lease_test.go |
| 1036 |
index 82bfc8d..302229b 100644 |
| 1037 |
--- a/storage/2019-12-12/blob/blobs/lease_test.go |
| 1038 |
+++ b/storage/2019-12-12/blob/blobs/lease_test.go |
| 1039 |
@@ -24,7 +24,7 @@ func TestLeaseLifecycle(t *testing.T) { |
| 1040 |
containerName := fmt.Sprintf("cont-%d", testhelpers.RandomInt()) |
| 1041 |
fileName := "ubuntu.iso" |
| 1042 |
|
| 1043 |
|
| 1044 |
+ testData, err := client.BuildTestResources(ctx, resourceGroup, accountName, storage.BlobStorage) |
| 1045 |
if err != nil { |
| 1046 |
t.Fatal(err) |
| 1047 |
} |
| 1048 |
diff --git a/storage/2019-12-12/blob/blobs/lifecycle_test.go b/storage/2019-12-12/blob/blobs/lifecycle_test.go |
| 1049 |
index 3ee39a4..06d7d8d 100644 |
| 1050 |
--- a/storage/2019-12-12/blob/blobs/lifecycle_test.go |
| 1051 |
+++ b/storage/2019-12-12/blob/blobs/lifecycle_test.go |
| 1052 |
@@ -26,7 +26,7 @@ func TestLifecycle(t *testing.T) { |
| 1053 |
containerName := fmt.Sprintf("cont-%d", testhelpers.RandomInt()) |
| 1054 |
fileName := "example.txt" |
| 1055 |
|
| 1056 |
|
| 1057 |
+ testData, err := client.BuildTestResources(ctx, resourceGroup, accountName, storage.BlobStorage) |
| 1058 |
if err != nil { |
| 1059 |
t.Fatal(err) |
| 1060 |
} |
| 1061 |
diff --git a/storage/2019-12-12/blob/blobs/snapshot_test.go b/storage/2019-12-12/blob/blobs/snapshot_test.go |
| 1062 |
index d1e76db..6e0d2c2 100644 |
| 1063 |
--- a/storage/2019-12-12/blob/blobs/snapshot_test.go |
| 1064 |
+++ b/storage/2019-12-12/blob/blobs/snapshot_test.go |
| 1065 |
@@ -25,7 +25,7 @@ func TestSnapshotLifecycle(t *testing.T) { |
| 1066 |
containerName := fmt.Sprintf("cont-%d", testhelpers.RandomInt()) |
| 1067 |
fileName := "example.txt" |
| 1068 |
|
| 1069 |
|
| 1070 |
+ testData, err := client.BuildTestResources(ctx, resourceGroup, accountName, storage.BlobStorage) |
| 1071 |
if err != nil { |
| 1072 |
t.Fatal(err) |
| 1073 |
} |
| 1074 |
diff --git a/storage/2019-12-12/blob/containers/lifecycle_test.go b/storage/2019-12-12/blob/containers/lifecycle_test.go |
| 1075 |
index 9103b50..122a2a6 100644 |
| 1076 |
--- a/storage/2019-12-12/blob/containers/lifecycle_test.go |
| 1077 |
+++ b/storage/2019-12-12/blob/containers/lifecycle_test.go |
| 1078 |
@@ -24,7 +24,7 @@ func TestContainerLifecycle(t *testing.T) { |
| 1079 |
accountName := fmt.Sprintf("acctestsa%s", testhelpers.RandomString()) |
| 1080 |
containerName := fmt.Sprintf("cont-%d", testhelpers.RandomInt()) |
| 1081 |
|
| 1082 |
|
| 1083 |
+ testData, err := client.BuildTestResources(ctx, resourceGroup, accountName, storage.BlobStorage) |
| 1084 |
if err != nil { |
| 1085 |
t.Fatal(err) |
| 1086 |
} |
| 1087 |
diff --git a/storage/2019-12-12/datalakestore/filesystems/create_test.go b/storage/2019-12-12/datalakestore/filesystems/create_test.go |
| 1088 |
index d8e90df..19643c7 100644 |
| 1089 |
--- a/storage/2019-12-12/datalakestore/filesystems/create_test.go |
| 1090 |
+++ b/storage/2019-12-12/datalakestore/filesystems/create_test.go |
| 1091 |
@@ -20,7 +20,7 @@ func TestCreateHasNoTagsByDefault(t *testing.T) { |
| 1092 |
accountName := fmt.Sprintf("acctestsa%s", testhelpers.RandomString()) |
| 1093 |
fileSystemName := fmt.Sprintf("acctestfs-%s", testhelpers.RandomString()) |
| 1094 |
|
| 1095 |
|
| 1096 |
+ if _, err = client.BuildTestResources(ctx, resourceGroup, accountName, storage.BlobStorage); err != nil { |
| 1097 |
t.Fatal(err) |
| 1098 |
} |
| 1099 |
defer client.DestroyTestResources(ctx, resourceGroup, accountName) |
| 1100 |
diff --git a/storage/2019-12-12/datalakestore/filesystems/lifecycle_test.go b/storage/2019-12-12/datalakestore/filesystems/lifecycle_test.go |
| 1101 |
index fde45ee..778884b 100644 |
| 1102 |
--- a/storage/2019-12-12/datalakestore/filesystems/lifecycle_test.go |
| 1103 |
+++ b/storage/2019-12-12/datalakestore/filesystems/lifecycle_test.go |
| 1104 |
@@ -20,7 +20,7 @@ func TestLifecycle(t *testing.T) { |
| 1105 |
accountName := fmt.Sprintf("acctestsa%s", testhelpers.RandomString()) |
| 1106 |
fileSystemName := fmt.Sprintf("acctestfs-%s", testhelpers.RandomString()) |
| 1107 |
|
| 1108 |
|
| 1109 |
+ if _, err = client.BuildTestResources(ctx, resourceGroup, accountName, storage.BlobStorage); err != nil { |
| 1110 |
t.Fatal(err) |
| 1111 |
} |
| 1112 |
defer client.DestroyTestResources(ctx, resourceGroup, accountName) |
| 1113 |
diff --git a/storage/2019-12-12/datalakestore/paths/create_test.go b/storage/2019-12-12/datalakestore/paths/create_test.go |
| 1114 |
index b8d8391..429bad1 100644 |
| 1115 |
--- a/storage/2019-12-12/datalakestore/paths/create_test.go |
| 1116 |
+++ b/storage/2019-12-12/datalakestore/paths/create_test.go |
| 1117 |
@@ -22,7 +22,7 @@ func TestCreateDirectory(t *testing.T) { |
| 1118 |
fileSystemName := fmt.Sprintf("acctestfs-%s", testhelpers.RandomString()) |
| 1119 |
path := "test" |
| 1120 |
|
| 1121 |
|
| 1122 |
+ if _, err = client.BuildTestResourcesWithHns(ctx, resourceGroup, accountName, storage.BlobStorage); err != nil { |
| 1123 |
t.Fatal(err) |
| 1124 |
} |
| 1125 |
defer client.DestroyTestResources(ctx, resourceGroup, accountName) |
| 1126 |
diff --git a/storage/2019-12-12/datalakestore/paths/lifecycle_test.go b/storage/2019-12-12/datalakestore/paths/lifecycle_test.go |
| 1127 |
index 04786e9..71c6bc0 100644 |
| 1128 |
--- a/storage/2019-12-12/datalakestore/paths/lifecycle_test.go |
| 1129 |
+++ b/storage/2019-12-12/datalakestore/paths/lifecycle_test.go |
| 1130 |
@@ -25,7 +25,7 @@ func TestLifecycle(t *testing.T) { |
| 1131 |
fileSystemName := fmt.Sprintf("acctestfs-%s", testhelpers.RandomString()) |
| 1132 |
path := "test" |
| 1133 |
|
| 1134 |
|
| 1135 |
+ if _, err = client.BuildTestResourcesWithHns(ctx, resourceGroup, accountName, storage.BlobStorage); err != nil { |
| 1136 |
t.Fatal(err) |
| 1137 |
} |
| 1138 |
defer client.DestroyTestResources(ctx, resourceGroup, accountName) |
| 1139 |
diff --git a/storage/2019-12-12/file/directories/lifecycle_test.go b/storage/2019-12-12/file/directories/lifecycle_test.go |
| 1140 |
index a20ed7c..9c3a30d 100644 |
| 1141 |
--- a/storage/2019-12-12/file/directories/lifecycle_test.go |
| 1142 |
+++ b/storage/2019-12-12/file/directories/lifecycle_test.go |
| 1143 |
@@ -24,7 +24,7 @@ func TestDirectoriesLifeCycle(t *testing.T) { |
| 1144 |
accountName := fmt.Sprintf("acctestsa%s", testhelpers.RandomString()) |
| 1145 |
shareName := fmt.Sprintf("share-%d", testhelpers.RandomInt()) |
| 1146 |
|
| 1147 |
|
| 1148 |
+ testData, err := client.BuildTestResources(ctx, resourceGroup, accountName, storage.Storage) |
| 1149 |
if err != nil { |
| 1150 |
t.Fatal(err) |
| 1151 |
} |
| 1152 |
diff --git a/storage/2019-12-12/file/files/copy_wait_test.go b/storage/2019-12-12/file/files/copy_wait_test.go |
| 1153 |
index 8f21181..47423c9 100644 |
| 1154 |
--- a/storage/2019-12-12/file/files/copy_wait_test.go |
| 1155 |
+++ b/storage/2019-12-12/file/files/copy_wait_test.go |
| 1156 |
@@ -23,7 +23,7 @@ func TestFilesCopyAndWaitFromURL(t *testing.T) { |
| 1157 |
accountName := fmt.Sprintf("acctestsa%s", testhelpers.RandomString()) |
| 1158 |
shareName := fmt.Sprintf("share-%d", testhelpers.RandomInt()) |
| 1159 |
|
| 1160 |
|
| 1161 |
+ testData, err := client.BuildTestResources(ctx, resourceGroup, accountName, storage.Storage) |
| 1162 |
if err != nil { |
| 1163 |
t.Fatal(err) |
| 1164 |
} |
| 1165 |
@@ -77,7 +77,7 @@ func TestFilesCopyAndWaitFromBlob(t *testing.T) { |
| 1166 |
accountName := fmt.Sprintf("acctestsa%s", testhelpers.RandomString()) |
| 1167 |
shareName := fmt.Sprintf("share-%d", testhelpers.RandomInt()) |
| 1168 |
|
| 1169 |
|
| 1170 |
+ testData, err := client.BuildTestResources(ctx, resourceGroup, accountName, storage.Storage) |
| 1171 |
if err != nil { |
| 1172 |
t.Fatal(err) |
| 1173 |
} |
| 1174 |
diff --git a/storage/2019-12-12/file/files/lifecycle_test.go b/storage/2019-12-12/file/files/lifecycle_test.go |
| 1175 |
index e46c6ff..c1d40ca 100644 |
| 1176 |
--- a/storage/2019-12-12/file/files/lifecycle_test.go |
| 1177 |
+++ b/storage/2019-12-12/file/files/lifecycle_test.go |
| 1178 |
@@ -23,7 +23,7 @@ func TestFilesLifeCycle(t *testing.T) { |
| 1179 |
accountName := fmt.Sprintf("acctestsa%s", testhelpers.RandomString()) |
| 1180 |
shareName := fmt.Sprintf("share-%d", testhelpers.RandomInt()) |
| 1181 |
|
| 1182 |
|
| 1183 |
+ testData, err := client.BuildTestResources(ctx, resourceGroup, accountName, storage.Storage) |
| 1184 |
if err != nil { |
| 1185 |
t.Fatal(err) |
| 1186 |
} |
| 1187 |
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 |
| 1188 |
index a604e06..66b7eec 100644 |
| 1189 |
--- a/storage/2019-12-12/file/files/range_get_file_test.go |
| 1190 |
+++ b/storage/2019-12-12/file/files/range_get_file_test.go |
| 1191 |
@@ -32,7 +32,7 @@ func testGetFile(t *testing.T, fileName string, contentType string) { |
| 1192 |
accountName := fmt.Sprintf("acctestsa%s", testhelpers.RandomString()) |
| 1193 |
shareName := fmt.Sprintf("share-%d", testhelpers.RandomInt()) |
| 1194 |
|
| 1195 |
|
| 1196 |
+ testData, err := client.BuildTestResources(ctx, resourceGroup, accountName, storage.Storage) |
| 1197 |
if err != nil { |
| 1198 |
t.Fatal(err) |
| 1199 |
} |
| 1200 |
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 |
| 1201 |
index 4e76cf1..a06e492 100644 |
| 1202 |
--- a/storage/2019-12-12/file/files/range_put_file_test.go |
| 1203 |
+++ b/storage/2019-12-12/file/files/range_put_file_test.go |
| 1204 |
@@ -37,7 +37,7 @@ func testPutFile(t *testing.T, fileName string, contentType string) { |
| 1205 |
accountName := fmt.Sprintf("acctestsa%s", testhelpers.RandomString()) |
| 1206 |
shareName := fmt.Sprintf("share-%d", testhelpers.RandomInt()) |
| 1207 |
|
| 1208 |
|
| 1209 |
+ testData, err := client.BuildTestResources(ctx, resourceGroup, accountName, storage.Storage) |
| 1210 |
if err != nil { |
| 1211 |
t.Fatal(err) |
| 1212 |
} |
| 1213 |
diff --git a/storage/2019-12-12/file/shares/lifecycle_test.go b/storage/2019-12-12/file/shares/lifecycle_test.go |
| 1214 |
index fb3531a..4b5d6b5 100644 |
| 1215 |
--- a/storage/2019-12-12/file/shares/lifecycle_test.go |
| 1216 |
+++ b/storage/2019-12-12/file/shares/lifecycle_test.go |
| 1217 |
@@ -22,7 +22,7 @@ func TestSharesLifecycle(t *testing.T) { |
| 1218 |
accountName := fmt.Sprintf("acctestsa%s", testhelpers.RandomString()) |
| 1219 |
shareName := fmt.Sprintf("share-%d", testhelpers.RandomInt()) |
| 1220 |
|
| 1221 |
|
| 1222 |
+ testData, err := client.BuildTestResources(ctx, resourceGroup, accountName, storage.Storage) |
| 1223 |
if err != nil { |
| 1224 |
t.Fatal(err) |
| 1225 |
} |
| 1226 |
@@ -163,7 +163,7 @@ func TestSharesLifecycleLargeQuota(t *testing.T) { |
| 1227 |
accountName := fmt.Sprintf("acctestsa%s", testhelpers.RandomString()) |
| 1228 |
shareName := fmt.Sprintf("share-%d", testhelpers.RandomInt()) |
| 1229 |
|
| 1230 |
|
| 1231 |
+ testData, err := client.BuildTestResourcesWithSku(ctx, resourceGroup, accountName, storage.FileStorage, storage.PremiumLRS) |
| 1232 |
if err != nil { |
| 1233 |
t.Fatal(err) |
| 1234 |
} |
| 1235 |
diff --git a/storage/2019-12-12/queue/messages/lifecycle_test.go b/storage/2019-12-12/queue/messages/lifecycle_test.go |
| 1236 |
index 12b186a..fd5d8c4 100644 |
| 1237 |
--- a/storage/2019-12-12/queue/messages/lifecycle_test.go |
| 1238 |
+++ b/storage/2019-12-12/queue/messages/lifecycle_test.go |
| 1239 |
@@ -23,7 +23,7 @@ func TestLifeCycle(t *testing.T) { |
| 1240 |
accountName := fmt.Sprintf("acctestsa%s", testhelpers.RandomString()) |
| 1241 |
queueName := fmt.Sprintf("queue-%d", testhelpers.RandomInt()) |
| 1242 |
|
| 1243 |
|
| 1244 |
+ testData, err := client.BuildTestResources(ctx, resourceGroup, accountName, storage.Storage) |
| 1245 |
if err != nil { |
| 1246 |
t.Fatal(err) |
| 1247 |
} |
| 1248 |
diff --git a/storage/2019-12-12/queue/queues/lifecycle_test.go b/storage/2019-12-12/queue/queues/lifecycle_test.go |
| 1249 |
index a84b2d5..75b2205 100644 |
| 1250 |
--- a/storage/2019-12-12/queue/queues/lifecycle_test.go |
| 1251 |
+++ b/storage/2019-12-12/queue/queues/lifecycle_test.go |
| 1252 |
@@ -22,7 +22,7 @@ func TestQueuesLifecycle(t *testing.T) { |
| 1253 |
accountName := fmt.Sprintf("acctestsa%s", testhelpers.RandomString()) |
| 1254 |
queueName := fmt.Sprintf("queue-%d", testhelpers.RandomInt()) |
| 1255 |
|
| 1256 |
|
| 1257 |
+ _, err = client.BuildTestResources(ctx, resourceGroup, accountName, storage.Storage) |
| 1258 |
if err != nil { |
| 1259 |
t.Fatal(err) |
| 1260 |
} |
| 1261 |
diff --git a/storage/2019-12-12/table/entities/lifecycle_test.go b/storage/2019-12-12/table/entities/lifecycle_test.go |
| 1262 |
index 253e27a..8a8f386 100644 |
| 1263 |
--- a/storage/2019-12-12/table/entities/lifecycle_test.go |
| 1264 |
+++ b/storage/2019-12-12/table/entities/lifecycle_test.go |
| 1265 |
@@ -23,7 +23,7 @@ func TestEntitiesLifecycle(t *testing.T) { |
| 1266 |
accountName := fmt.Sprintf("acctestsa%s", testhelpers.RandomString()) |
| 1267 |
tableName := fmt.Sprintf("table%d", testhelpers.RandomInt()) |
| 1268 |
|
| 1269 |
|
| 1270 |
+ testData, err := client.BuildTestResources(ctx, resourceGroup, accountName, storage.Storage) |
| 1271 |
if err != nil { |
| 1272 |
t.Fatal(err) |
| 1273 |
} |
| 1274 |
diff --git a/storage/2019-12-12/table/tables/lifecycle_test.go b/storage/2019-12-12/table/tables/lifecycle_test.go |
| 1275 |
index 1ad5bc4..3b14122 100644 |
| 1276 |
--- a/storage/2019-12-12/table/tables/lifecycle_test.go |
| 1277 |
+++ b/storage/2019-12-12/table/tables/lifecycle_test.go |
| 1278 |
@@ -23,7 +23,7 @@ func TestTablesLifecycle(t *testing.T) { |
| 1279 |
accountName := fmt.Sprintf("acctestsa%s", testhelpers.RandomString()) |
| 1280 |
tableName := fmt.Sprintf("table%d", testhelpers.RandomInt()) |
| 1281 |
|
| 1282 |
|
| 1283 |
+ testData, err := client.BuildTestResources(ctx, resourceGroup, accountName, storage.Storage) |
| 1284 |
if err != nil { |
| 1285 |
t.Fatal(err) |
| 1286 |
} |
| 1287 |
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 |
| 1288 |
index 24be49f..0aa2653 100644 |
| 1289 |
--- a/storage/2020-08-04/blob/accounts/set_service_properties_test.go |
| 1290 |
+++ b/storage/2020-08-04/blob/accounts/set_service_properties_test.go |
| 1291 |
@@ -20,7 +20,7 @@ func TestContainerLifecycle(t *testing.T) { |
| 1292 |
resourceGroup := fmt.Sprintf("acctestrg-%d", testhelpers.RandomInt()) |
| 1293 |
accountName := fmt.Sprintf("acctestsa%s", testhelpers.RandomString()) |
| 1294 |
|
| 1295 |
|
| 1296 |
+ _, err = client.BuildTestResources(ctx, resourceGroup, accountName, storage.StorageV2) |
| 1297 |
if err != nil { |
| 1298 |
t.Fatal(err) |
| 1299 |
} |
| 1300 |
diff --git a/storage/2020-08-04/blob/blobs/blob_append_test.go b/storage/2020-08-04/blob/blobs/blob_append_test.go |
| 1301 |
index e964023..f54bd4d 100644 |
| 1302 |
--- a/storage/2020-08-04/blob/blobs/blob_append_test.go |
| 1303 |
+++ b/storage/2020-08-04/blob/blobs/blob_append_test.go |
| 1304 |
@@ -23,7 +23,7 @@ func TestAppendBlobLifecycle(t *testing.T) { |
| 1305 |
containerName := fmt.Sprintf("cont-%d", testhelpers.RandomInt()) |
| 1306 |
fileName := "append-blob.txt" |
| 1307 |
|
| 1308 |
|
| 1309 |
+ testData, err := client.BuildTestResources(ctx, resourceGroup, accountName, storage.BlobStorage) |
| 1310 |
if err != nil { |
| 1311 |
t.Fatal(err) |
| 1312 |
} |
| 1313 |
diff --git a/storage/2020-08-04/blob/blobs/blob_page_test.go b/storage/2020-08-04/blob/blobs/blob_page_test.go |
| 1314 |
index ecf3633..ba1630c 100644 |
| 1315 |
--- a/storage/2020-08-04/blob/blobs/blob_page_test.go |
| 1316 |
+++ b/storage/2020-08-04/blob/blobs/blob_page_test.go |
| 1317 |
@@ -23,7 +23,7 @@ func TestPageBlobLifecycle(t *testing.T) { |
| 1318 |
containerName := fmt.Sprintf("cont-%d", testhelpers.RandomInt()) |
| 1319 |
fileName := "append-blob.txt" |
| 1320 |
|
| 1321 |
|
| 1322 |
+ testData, err := client.BuildTestResources(ctx, resourceGroup, accountName, storage.StorageV2) |
| 1323 |
if err != nil { |
| 1324 |
t.Fatal(err) |
| 1325 |
} |
| 1326 |
diff --git a/storage/2020-08-04/blob/blobs/copy_test.go b/storage/2020-08-04/blob/blobs/copy_test.go |
| 1327 |
index dcde875..8ad8604 100644 |
| 1328 |
--- a/storage/2020-08-04/blob/blobs/copy_test.go |
| 1329 |
+++ b/storage/2020-08-04/blob/blobs/copy_test.go |
| 1330 |
@@ -26,7 +26,7 @@ func TestCopyFromExistingFile(t *testing.T) { |
| 1331 |
fileName := "ubuntu.iso" |
| 1332 |
copiedFileName := "copied.iso" |
| 1333 |
|
| 1334 |
|
| 1335 |
+ testData, err := client.BuildTestResources(ctx, resourceGroup, accountName, storage.BlobStorage) |
| 1336 |
if err != nil { |
| 1337 |
t.Fatal(err) |
| 1338 |
} |
| 1339 |
@@ -102,7 +102,7 @@ func TestCopyFromURL(t *testing.T) { |
| 1340 |
containerName := fmt.Sprintf("cont-%d", testhelpers.RandomInt()) |
| 1341 |
fileName := "ubuntu.iso" |
| 1342 |
|
| 1343 |
|
| 1344 |
+ testData, err := client.BuildTestResources(ctx, resourceGroup, accountName, storage.BlobStorage) |
| 1345 |
if err != nil { |
| 1346 |
t.Fatal(err) |
| 1347 |
} |
| 1348 |
diff --git a/storage/2020-08-04/blob/blobs/lease_test.go b/storage/2020-08-04/blob/blobs/lease_test.go |
| 1349 |
index 7d583c3..ea6a0ac 100644 |
| 1350 |
--- a/storage/2020-08-04/blob/blobs/lease_test.go |
| 1351 |
+++ b/storage/2020-08-04/blob/blobs/lease_test.go |
| 1352 |
@@ -24,7 +24,7 @@ func TestLeaseLifecycle(t *testing.T) { |
| 1353 |
containerName := fmt.Sprintf("cont-%d", testhelpers.RandomInt()) |
| 1354 |
fileName := "ubuntu.iso" |
| 1355 |
|
| 1356 |
|
| 1357 |
+ testData, err := client.BuildTestResources(ctx, resourceGroup, accountName, storage.BlobStorage) |
| 1358 |
if err != nil { |
| 1359 |
t.Fatal(err) |
| 1360 |
} |
| 1361 |
diff --git a/storage/2020-08-04/blob/blobs/lifecycle_test.go b/storage/2020-08-04/blob/blobs/lifecycle_test.go |
| 1362 |
index 6ef2a5a..fd333c8 100644 |
| 1363 |
--- a/storage/2020-08-04/blob/blobs/lifecycle_test.go |
| 1364 |
+++ b/storage/2020-08-04/blob/blobs/lifecycle_test.go |
| 1365 |
@@ -26,7 +26,7 @@ func TestLifecycle(t *testing.T) { |
| 1366 |
containerName := fmt.Sprintf("cont-%d", testhelpers.RandomInt()) |
| 1367 |
fileName := "example.txt" |
| 1368 |
|
| 1369 |
|
| 1370 |
+ testData, err := client.BuildTestResources(ctx, resourceGroup, accountName, storage.BlobStorage) |
| 1371 |
if err != nil { |
| 1372 |
t.Fatal(err) |
| 1373 |
} |
| 1374 |
diff --git a/storage/2020-08-04/blob/blobs/snapshot_test.go b/storage/2020-08-04/blob/blobs/snapshot_test.go |
| 1375 |
index 346b897..4d4ff6f 100644 |
| 1376 |
--- a/storage/2020-08-04/blob/blobs/snapshot_test.go |
| 1377 |
+++ b/storage/2020-08-04/blob/blobs/snapshot_test.go |
| 1378 |
@@ -25,7 +25,7 @@ func TestSnapshotLifecycle(t *testing.T) { |
| 1379 |
containerName := fmt.Sprintf("cont-%d", testhelpers.RandomInt()) |
| 1380 |
fileName := "example.txt" |
| 1381 |
|
| 1382 |
|
| 1383 |
+ testData, err := client.BuildTestResources(ctx, resourceGroup, accountName, storage.BlobStorage) |
| 1384 |
if err != nil { |
| 1385 |
t.Fatal(err) |
| 1386 |
} |
| 1387 |
diff --git a/storage/2020-08-04/blob/containers/lifecycle_test.go b/storage/2020-08-04/blob/containers/lifecycle_test.go |
| 1388 |
index 9103b50..122a2a6 100644 |
| 1389 |
--- a/storage/2020-08-04/blob/containers/lifecycle_test.go |
| 1390 |
+++ b/storage/2020-08-04/blob/containers/lifecycle_test.go |
| 1391 |
@@ -24,7 +24,7 @@ func TestContainerLifecycle(t *testing.T) { |
| 1392 |
accountName := fmt.Sprintf("acctestsa%s", testhelpers.RandomString()) |
| 1393 |
containerName := fmt.Sprintf("cont-%d", testhelpers.RandomInt()) |
| 1394 |
|
| 1395 |
|
| 1396 |
+ testData, err := client.BuildTestResources(ctx, resourceGroup, accountName, storage.BlobStorage) |
| 1397 |
if err != nil { |
| 1398 |
t.Fatal(err) |
| 1399 |
} |
| 1400 |
diff --git a/storage/2020-08-04/datalakestore/filesystems/create_test.go b/storage/2020-08-04/datalakestore/filesystems/create_test.go |
| 1401 |
index d8e90df..19643c7 100644 |
| 1402 |
--- a/storage/2020-08-04/datalakestore/filesystems/create_test.go |
| 1403 |
+++ b/storage/2020-08-04/datalakestore/filesystems/create_test.go |
| 1404 |
@@ -20,7 +20,7 @@ func TestCreateHasNoTagsByDefault(t *testing.T) { |
| 1405 |
accountName := fmt.Sprintf("acctestsa%s", testhelpers.RandomString()) |
| 1406 |
fileSystemName := fmt.Sprintf("acctestfs-%s", testhelpers.RandomString()) |
| 1407 |
|
| 1408 |
|
| 1409 |
+ if _, err = client.BuildTestResources(ctx, resourceGroup, accountName, storage.BlobStorage); err != nil { |
| 1410 |
t.Fatal(err) |
| 1411 |
} |
| 1412 |
defer client.DestroyTestResources(ctx, resourceGroup, accountName) |
| 1413 |
diff --git a/storage/2020-08-04/datalakestore/filesystems/lifecycle_test.go b/storage/2020-08-04/datalakestore/filesystems/lifecycle_test.go |
| 1414 |
index fde45ee..778884b 100644 |
| 1415 |
--- a/storage/2020-08-04/datalakestore/filesystems/lifecycle_test.go |
| 1416 |
+++ b/storage/2020-08-04/datalakestore/filesystems/lifecycle_test.go |
| 1417 |
@@ -20,7 +20,7 @@ func TestLifecycle(t *testing.T) { |
| 1418 |
accountName := fmt.Sprintf("acctestsa%s", testhelpers.RandomString()) |
| 1419 |
fileSystemName := fmt.Sprintf("acctestfs-%s", testhelpers.RandomString()) |
| 1420 |
|
| 1421 |
|
| 1422 |
+ if _, err = client.BuildTestResources(ctx, resourceGroup, accountName, storage.BlobStorage); err != nil { |
| 1423 |
t.Fatal(err) |
| 1424 |
} |
| 1425 |
defer client.DestroyTestResources(ctx, resourceGroup, accountName) |
| 1426 |
diff --git a/storage/2020-08-04/datalakestore/paths/create_test.go b/storage/2020-08-04/datalakestore/paths/create_test.go |
| 1427 |
index b3b54d4..b42fe19 100644 |
| 1428 |
--- a/storage/2020-08-04/datalakestore/paths/create_test.go |
| 1429 |
+++ b/storage/2020-08-04/datalakestore/paths/create_test.go |
| 1430 |
@@ -22,7 +22,7 @@ func TestCreateDirectory(t *testing.T) { |
| 1431 |
fileSystemName := fmt.Sprintf("acctestfs-%s", testhelpers.RandomString()) |
| 1432 |
path := "test" |
| 1433 |
|
| 1434 |
|
| 1435 |
+ if _, err = client.BuildTestResourcesWithHns(ctx, resourceGroup, accountName, storage.BlobStorage); err != nil { |
| 1436 |
t.Fatal(err) |
| 1437 |
} |
| 1438 |
defer client.DestroyTestResources(ctx, resourceGroup, accountName) |
| 1439 |
diff --git a/storage/2020-08-04/datalakestore/paths/lifecycle_test.go b/storage/2020-08-04/datalakestore/paths/lifecycle_test.go |
| 1440 |
index 15fda13..9d6a38f 100644 |
| 1441 |
--- a/storage/2020-08-04/datalakestore/paths/lifecycle_test.go |
| 1442 |
+++ b/storage/2020-08-04/datalakestore/paths/lifecycle_test.go |
| 1443 |
@@ -25,7 +25,7 @@ func TestLifecycle(t *testing.T) { |
| 1444 |
fileSystemName := fmt.Sprintf("acctestfs-%s", testhelpers.RandomString()) |
| 1445 |
path := "test" |
| 1446 |
|
| 1447 |
|
| 1448 |
+ if _, err = client.BuildTestResourcesWithHns(ctx, resourceGroup, accountName, storage.BlobStorage); err != nil { |
| 1449 |
t.Fatal(err) |
| 1450 |
} |
| 1451 |
defer client.DestroyTestResources(ctx, resourceGroup, accountName) |
| 1452 |
diff --git a/storage/2020-08-04/file/directories/lifecycle_test.go b/storage/2020-08-04/file/directories/lifecycle_test.go |
| 1453 |
index 3f8bd94..1b9c90b 100644 |
| 1454 |
--- a/storage/2020-08-04/file/directories/lifecycle_test.go |
| 1455 |
+++ b/storage/2020-08-04/file/directories/lifecycle_test.go |
| 1456 |
@@ -24,7 +24,7 @@ func TestDirectoriesLifeCycle(t *testing.T) { |
| 1457 |
accountName := fmt.Sprintf("acctestsa%s", testhelpers.RandomString()) |
| 1458 |
shareName := fmt.Sprintf("share-%d", testhelpers.RandomInt()) |
| 1459 |
|
| 1460 |
|
| 1461 |
+ testData, err := client.BuildTestResources(ctx, resourceGroup, accountName, storage.Storage) |
| 1462 |
if err != nil { |
| 1463 |
t.Fatal(err) |
| 1464 |
} |
| 1465 |
diff --git a/storage/2020-08-04/file/files/copy_wait_test.go b/storage/2020-08-04/file/files/copy_wait_test.go |
| 1466 |
index aa20012..d6c9f6c 100644 |
| 1467 |
--- a/storage/2020-08-04/file/files/copy_wait_test.go |
| 1468 |
+++ b/storage/2020-08-04/file/files/copy_wait_test.go |
| 1469 |
@@ -23,7 +23,7 @@ func TestFilesCopyAndWaitFromURL(t *testing.T) { |
| 1470 |
accountName := fmt.Sprintf("acctestsa%s", testhelpers.RandomString()) |
| 1471 |
shareName := fmt.Sprintf("share-%d", testhelpers.RandomInt()) |
| 1472 |
|
| 1473 |
|
| 1474 |
+ testData, err := client.BuildTestResources(ctx, resourceGroup, accountName, storage.Storage) |
| 1475 |
if err != nil { |
| 1476 |
t.Fatal(err) |
| 1477 |
} |
| 1478 |
@@ -77,7 +77,7 @@ func TestFilesCopyAndWaitFromBlob(t *testing.T) { |
| 1479 |
accountName := fmt.Sprintf("acctestsa%s", testhelpers.RandomString()) |
| 1480 |
shareName := fmt.Sprintf("share-%d", testhelpers.RandomInt()) |
| 1481 |
|
| 1482 |
|
| 1483 |
+ testData, err := client.BuildTestResources(ctx, resourceGroup, accountName, storage.Storage) |
| 1484 |
if err != nil { |
| 1485 |
t.Fatal(err) |
| 1486 |
} |
| 1487 |
diff --git a/storage/2020-08-04/file/files/lifecycle_test.go b/storage/2020-08-04/file/files/lifecycle_test.go |
| 1488 |
index cd784eb..e245c9b 100644 |
| 1489 |
--- a/storage/2020-08-04/file/files/lifecycle_test.go |
| 1490 |
+++ b/storage/2020-08-04/file/files/lifecycle_test.go |
| 1491 |
@@ -23,7 +23,7 @@ func TestFilesLifeCycle(t *testing.T) { |
| 1492 |
accountName := fmt.Sprintf("acctestsa%s", testhelpers.RandomString()) |
| 1493 |
shareName := fmt.Sprintf("share-%d", testhelpers.RandomInt()) |
| 1494 |
|
| 1495 |
|
| 1496 |
+ testData, err := client.BuildTestResources(ctx, resourceGroup, accountName, storage.Storage) |
| 1497 |
if err != nil { |
| 1498 |
t.Fatal(err) |
| 1499 |
} |
| 1500 |
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 |
| 1501 |
index f58364c..45f5a60 100644 |
| 1502 |
--- a/storage/2020-08-04/file/files/range_get_file_test.go |
| 1503 |
+++ b/storage/2020-08-04/file/files/range_get_file_test.go |
| 1504 |
@@ -32,7 +32,7 @@ func testGetFile(t *testing.T, fileName string, contentType string) { |
| 1505 |
accountName := fmt.Sprintf("acctestsa%s", testhelpers.RandomString()) |
| 1506 |
shareName := fmt.Sprintf("share-%d", testhelpers.RandomInt()) |
| 1507 |
|
| 1508 |
|
| 1509 |
+ testData, err := client.BuildTestResources(ctx, resourceGroup, accountName, storage.Storage) |
| 1510 |
if err != nil { |
| 1511 |
t.Fatal(err) |
| 1512 |
} |
| 1513 |
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 |
| 1514 |
index a50e53b..4823dd4 100644 |
| 1515 |
--- a/storage/2020-08-04/file/files/range_put_file_test.go |
| 1516 |
+++ b/storage/2020-08-04/file/files/range_put_file_test.go |
| 1517 |
@@ -37,7 +37,7 @@ func testPutFile(t *testing.T, fileName string, contentType string) { |
| 1518 |
accountName := fmt.Sprintf("acctestsa%s", testhelpers.RandomString()) |
| 1519 |
shareName := fmt.Sprintf("share-%d", testhelpers.RandomInt()) |
| 1520 |
|
| 1521 |
|
| 1522 |
+ testData, err := client.BuildTestResources(ctx, resourceGroup, accountName, storage.Storage) |
| 1523 |
if err != nil { |
| 1524 |
t.Fatal(err) |
| 1525 |
} |
| 1526 |
diff --git a/storage/2020-08-04/file/shares/lifecycle_test.go b/storage/2020-08-04/file/shares/lifecycle_test.go |
| 1527 |
index 0f9f7e9..4225698 100644 |
| 1528 |
--- a/storage/2020-08-04/file/shares/lifecycle_test.go |
| 1529 |
+++ b/storage/2020-08-04/file/shares/lifecycle_test.go |
| 1530 |
@@ -22,7 +22,7 @@ func TestSharesLifecycle(t *testing.T) { |
| 1531 |
accountName := fmt.Sprintf("acctestsa%s", testhelpers.RandomString()) |
| 1532 |
shareName := fmt.Sprintf("share-%d", testhelpers.RandomInt()) |
| 1533 |
|
| 1534 |
|
| 1535 |
+ testData, err := client.BuildTestResources(ctx, resourceGroup, accountName, storage.StorageV2) |
| 1536 |
if err != nil { |
| 1537 |
t.Fatal(err) |
| 1538 |
} |
| 1539 |
@@ -181,7 +181,7 @@ func TestSharesLifecycleLargeQuota(t *testing.T) { |
| 1540 |
accountName := fmt.Sprintf("acctestsa%s", testhelpers.RandomString()) |
| 1541 |
shareName := fmt.Sprintf("share-%d", testhelpers.RandomInt()) |
| 1542 |
|
| 1543 |
|
| 1544 |
+ testData, err := client.BuildTestResourcesWithSku(ctx, resourceGroup, accountName, storage.FileStorage, storage.PremiumLRS) |
| 1545 |
if err != nil { |
| 1546 |
t.Fatal(err) |
| 1547 |
} |
| 1548 |
@@ -326,7 +326,7 @@ func TestSharesLifecycleNFSProtocol(t *testing.T) { |
| 1549 |
accountName := fmt.Sprintf("acctestsa%s", testhelpers.RandomString()) |
| 1550 |
shareName := fmt.Sprintf("share-%d", testhelpers.RandomInt()) |
| 1551 |
|
| 1552 |
|
| 1553 |
+ testData, err := client.BuildTestResourcesWithSku(ctx, resourceGroup, accountName, storage.FileStorage, storage.PremiumLRS) |
| 1554 |
if err != nil { |
| 1555 |
t.Fatal(err) |
| 1556 |
} |
| 1557 |
diff --git a/storage/2020-08-04/queue/messages/lifecycle_test.go b/storage/2020-08-04/queue/messages/lifecycle_test.go |
| 1558 |
index dbd9137..fd791bc 100644 |
| 1559 |
--- a/storage/2020-08-04/queue/messages/lifecycle_test.go |
| 1560 |
+++ b/storage/2020-08-04/queue/messages/lifecycle_test.go |
| 1561 |
@@ -23,7 +23,7 @@ func TestLifeCycle(t *testing.T) { |
| 1562 |
accountName := fmt.Sprintf("acctestsa%s", testhelpers.RandomString()) |
| 1563 |
queueName := fmt.Sprintf("queue-%d", testhelpers.RandomInt()) |
| 1564 |
|
| 1565 |
|
| 1566 |
+ testData, err := client.BuildTestResources(ctx, resourceGroup, accountName, storage.Storage) |
| 1567 |
if err != nil { |
| 1568 |
t.Fatal(err) |
| 1569 |
} |
| 1570 |
diff --git a/storage/2020-08-04/queue/queues/lifecycle_test.go b/storage/2020-08-04/queue/queues/lifecycle_test.go |
| 1571 |
index a84b2d5..75b2205 100644 |
| 1572 |
--- a/storage/2020-08-04/queue/queues/lifecycle_test.go |
| 1573 |
+++ b/storage/2020-08-04/queue/queues/lifecycle_test.go |
| 1574 |
@@ -22,7 +22,7 @@ func TestQueuesLifecycle(t *testing.T) { |
| 1575 |
accountName := fmt.Sprintf("acctestsa%s", testhelpers.RandomString()) |
| 1576 |
queueName := fmt.Sprintf("queue-%d", testhelpers.RandomInt()) |
| 1577 |
|
| 1578 |
|
| 1579 |
+ _, err = client.BuildTestResources(ctx, resourceGroup, accountName, storage.Storage) |
| 1580 |
if err != nil { |
| 1581 |
t.Fatal(err) |
| 1582 |
} |
| 1583 |
diff --git a/storage/2020-08-04/table/entities/lifecycle_test.go b/storage/2020-08-04/table/entities/lifecycle_test.go |
| 1584 |
index e9348ad..8b5abcf 100644 |
| 1585 |
--- a/storage/2020-08-04/table/entities/lifecycle_test.go |
| 1586 |
+++ b/storage/2020-08-04/table/entities/lifecycle_test.go |
| 1587 |
@@ -23,7 +23,7 @@ func TestEntitiesLifecycle(t *testing.T) { |
| 1588 |
accountName := fmt.Sprintf("acctestsa%s", testhelpers.RandomString()) |
| 1589 |
tableName := fmt.Sprintf("table%d", testhelpers.RandomInt()) |
| 1590 |
|
| 1591 |
|
| 1592 |
+ testData, err := client.BuildTestResources(ctx, resourceGroup, accountName, storage.Storage) |
| 1593 |
if err != nil { |
| 1594 |
t.Fatal(err) |
| 1595 |
} |
| 1596 |
diff --git a/storage/2020-08-04/table/tables/lifecycle_test.go b/storage/2020-08-04/table/tables/lifecycle_test.go |
| 1597 |
index 1ad5bc4..3b14122 100644 |
| 1598 |
--- a/storage/2020-08-04/table/tables/lifecycle_test.go |
| 1599 |
+++ b/storage/2020-08-04/table/tables/lifecycle_test.go |
| 1600 |
@@ -23,7 +23,7 @@ func TestTablesLifecycle(t *testing.T) { |
| 1601 |
accountName := fmt.Sprintf("acctestsa%s", testhelpers.RandomString()) |
| 1602 |
tableName := fmt.Sprintf("table%d", testhelpers.RandomInt()) |
| 1603 |
|
| 1604 |
|
| 1605 |
+ testData, err := client.BuildTestResources(ctx, resourceGroup, accountName, storage.Storage) |
| 1606 |
if err != nil { |
| 1607 |
t.Fatal(err) |
| 1608 |
} |
| 1609 |
diff --git a/testhelpers/client.go b/testhelpers/client.go |
| 1610 |
index 390ec45..56c0e5b 100644 |
| 1611 |
--- a/testhelpers/client.go |
| 1612 |
+++ b/testhelpers/client.go |
| 1613 |
@@ -51,14 +51,14 @@ func (client Client) buildTestResources(ctx context.Context, resourceGroup, name |
| 1614 |
} |
| 1615 |
|
| 1616 |
props := storage.AccountPropertiesCreateParameters{} |
| 1617 |
|
| 1618 |
|
| 1619 |
+ if kind == storage.BlobStorage { |
| 1620 |
+ props.AccessTier = storage.Hot |
| 1621 |
} |
| 1622 |
if enableHns { |
| 1623 |
props.IsHnsEnabled = &enableHns |
| 1624 |
} |
| 1625 |
if sku == "" { |
| 1626 |
|
| 1627 |
+ sku = storage.StandardLRS |
| 1628 |
} |
| 1629 |
|
| 1630 |
future, err := client.StorageClient.Create(ctx, resourceGroup, name, storage.AccountCreateParameters{ |
| 1631 |
@@ -101,7 +101,7 @@ func (client Client) DestroyTestResources(ctx context.Context, resourceGroup, na |
| 1632 |
return fmt.Errorf("Error deleting Account %q (Resource Group %q): %s", name, resourceGroup, err) |
| 1633 |
} |
| 1634 |
|
| 1635 |
|
| 1636 |
+ future, err := client.ResourceGroupsClient.Delete(ctx, resourceGroup, "") |
| 1637 |
if err != nil { |
| 1638 |
return fmt.Errorf("Error deleting Resource Group %q: %s", resourceGroup, err) |
| 1639 |
} |