Skip to content

Commit 2d30d7d

Browse files
committed
test updates
1 parent 28f2de3 commit 2d30d7d

File tree

394 files changed

+1123392
-9
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

394 files changed

+1123392
-9
lines changed

tests/recordings/test_storage_blob.test_abort_copy_blob.yaml

Lines changed: 294644 additions & 0 deletions
Large diffs are not rendered by default.

tests/recordings/test_storage_blob.test_abort_copy_blob_with_synchronous_copy_fails.yaml

Lines changed: 100 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,4 +103,104 @@ interactions:
103103
x-ms-request-id: [ba0698f2-0001-0056-084f-ad42cb000000]
104104
x-ms-version: ['2014-02-14']
105105
status: {code: 409, message: There is currently no pending copy operation.}
106+
- request:
107+
body: null
108+
headers:
109+
Accept-Encoding: ['gzip, deflate']
110+
Connection: [keep-alive]
111+
Content-Length: ['0']
112+
Content-Type: [application/octet-stream Charset=UTF-8]
113+
User-Agent: [pyazure/0.20.3]
114+
x-ms-date: ['Mon, 16 Nov 2015 19:27:43 GMT']
115+
x-ms-version: ['2014-02-14']
116+
method: PUT
117+
uri: https://storagename.blob.core.windows.net/utcontainer90641b5d?restype=container
118+
response:
119+
body: {string: ''}
120+
headers:
121+
Date: ['Mon, 16 Nov 2015 19:27:43 GMT']
122+
ETag: ['"0x8D2EEBC002CE11C"']
123+
Last-Modified: ['Mon, 16 Nov 2015 19:27:43 GMT']
124+
Server: [Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0]
125+
Transfer-Encoding: [chunked]
126+
x-ms-request-id: [217f28ee-0001-002d-29a4-207cca000000]
127+
x-ms-version: ['2014-02-14']
128+
status: {code: 201, message: Created}
129+
- request:
130+
body: !!binary |
131+
aGVsbG8gd29ybGQ=
132+
headers:
133+
Accept-Encoding: ['gzip, deflate']
134+
Connection: [keep-alive]
135+
Content-Length: ['11']
136+
Content-Type: [application/octet-stream Charset=UTF-8]
137+
User-Agent: [pyazure/0.20.3]
138+
x-ms-blob-type: [BlockBlob]
139+
x-ms-date: ['Mon, 16 Nov 2015 19:27:43 GMT']
140+
x-ms-version: ['2014-02-14']
141+
method: PUT
142+
uri: https://storagename.blob.core.windows.net/utcontainer90641b5d/sourceblob
143+
response:
144+
body: {string: ''}
145+
headers:
146+
Content-MD5: [XrY7u+Ae7tCTyyK7j1rNww==]
147+
Date: ['Mon, 16 Nov 2015 19:27:43 GMT']
148+
ETag: ['"0x8D2EEBBFFF74DFC"']
149+
Last-Modified: ['Mon, 16 Nov 2015 19:27:43 GMT']
150+
Server: [Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0]
151+
Transfer-Encoding: [chunked]
152+
x-ms-request-id: [217f290f-0001-002d-42a4-207cca000000]
153+
x-ms-version: ['2014-02-14']
154+
status: {code: 201, message: Created}
155+
- request:
156+
body: null
157+
headers:
158+
Accept-Encoding: ['gzip, deflate']
159+
Connection: [keep-alive]
160+
Content-Length: ['0']
161+
Content-Type: [application/octet-stream Charset=UTF-8]
162+
User-Agent: [pyazure/0.20.3]
163+
x-ms-copy-source: ['https://xclientdev.blob.core.windows.net/utcontainer90641b5d/sourceblob']
164+
x-ms-date: ['Mon, 16 Nov 2015 19:27:43 GMT']
165+
x-ms-version: ['2014-02-14']
166+
method: PUT
167+
uri: https://storagename.blob.core.windows.net/utcontainer90641b5d/targetblob
168+
response:
169+
body: {string: ''}
170+
headers:
171+
Date: ['Mon, 16 Nov 2015 19:27:43 GMT']
172+
ETag: ['"0x8D2EEBBFFFE7A40"']
173+
Last-Modified: ['Mon, 16 Nov 2015 19:27:43 GMT']
174+
Server: [Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0]
175+
Transfer-Encoding: [chunked]
176+
x-ms-copy-id: [69eacbf1-870d-4f64-83c0-3fcbb2a541b8]
177+
x-ms-copy-status: [success]
178+
x-ms-request-id: [217f291b-0001-002d-4ea4-207cca000000]
179+
x-ms-version: ['2014-02-14']
180+
status: {code: 202, message: Accepted}
181+
- request:
182+
body: null
183+
headers:
184+
Accept-Encoding: ['gzip, deflate']
185+
Connection: [keep-alive]
186+
Content-Length: ['0']
187+
Content-Type: [application/octet-stream Charset=UTF-8]
188+
User-Agent: [pyazure/0.20.3]
189+
x-ms-copy-action: [abort]
190+
x-ms-date: ['Mon, 16 Nov 2015 19:27:43 GMT']
191+
x-ms-version: ['2014-02-14']
192+
method: PUT
193+
uri: https://storagename.blob.core.windows.net/utcontainer90641b5d/targetblob?comp=copy&copyid=69eacbf1-870d-4f64-83c0-3fcbb2a541b8
194+
response:
195+
body: {string: "\uFEFF<?xml version=\"1.0\" encoding=\"utf-8\"?><Error><Code>NoPendingCopyOperation</Code><Message>There\
196+
\ is currently no pending copy operation.\nRequestId:217f2929-0001-002d-5ca4-207cca000000\n\
197+
Time:2015-11-16T19:27:43.8535074Z</Message></Error>"}
198+
headers:
199+
Content-Length: ['236']
200+
Content-Type: [application/xml]
201+
Date: ['Mon, 16 Nov 2015 19:27:43 GMT']
202+
Server: [Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0]
203+
x-ms-request-id: [217f2929-0001-002d-5ca4-207cca000000]
204+
x-ms-version: ['2014-02-14']
205+
status: {code: 409, message: There is currently no pending copy operation.}
106206
version: 1

tests/recordings/test_storage_blob.test_copy_blob_async_private_blob.yaml

Lines changed: 147265 additions & 0 deletions
Large diffs are not rendered by default.

tests/recordings/test_storage_blob.test_copy_blob_async_private_blob_with_sas.yaml

Lines changed: 147396 additions & 0 deletions
Large diffs are not rendered by default.

tests/recordings/test_storage_blob.test_copy_blob_async_public_blob.yaml

Lines changed: 147397 additions & 0 deletions
Large diffs are not rendered by default.

tests/recordings/test_storage_blob.test_copy_blob_with_existing_blob.yaml

Lines changed: 108 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,4 +112,112 @@ interactions:
112112
x-ms-request-id: [437548a1-0001-0020-334f-adc677000000]
113113
x-ms-version: ['2014-02-14']
114114
status: {code: 200, message: OK}
115+
- request:
116+
body: null
117+
headers:
118+
Accept-Encoding: ['gzip, deflate']
119+
Connection: [keep-alive]
120+
Content-Length: ['0']
121+
Content-Type: [application/octet-stream Charset=UTF-8]
122+
User-Agent: [pyazure/0.20.3]
123+
x-ms-date: ['Mon, 16 Nov 2015 19:31:18 GMT']
124+
x-ms-version: ['2014-02-14']
125+
method: PUT
126+
uri: https://storagename.blob.core.windows.net/utcontainer224914fc?restype=container
127+
response:
128+
body: {string: ''}
129+
headers:
130+
Date: ['Mon, 16 Nov 2015 19:31:18 GMT']
131+
ETag: ['"0x8D2EEBC80BE12FE"']
132+
Last-Modified: ['Mon, 16 Nov 2015 19:31:19 GMT']
133+
Server: [Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0]
134+
Transfer-Encoding: [chunked]
135+
x-ms-request-id: [4ddab823-0001-0079-4ca5-209640000000]
136+
x-ms-version: ['2014-02-14']
137+
status: {code: 201, message: Created}
138+
- request:
139+
body: !!binary |
140+
aGVsbG8gd29ybGQ=
141+
headers:
142+
Accept-Encoding: ['gzip, deflate']
143+
Connection: [keep-alive]
144+
Content-Length: ['11']
145+
Content-Type: [application/octet-stream Charset=UTF-8]
146+
User-Agent: [pyazure/0.20.3]
147+
x-ms-blob-type: [BlockBlob]
148+
x-ms-date: ['Mon, 16 Nov 2015 19:31:19 GMT']
149+
x-ms-version: ['2014-02-14']
150+
method: PUT
151+
uri: https://storagename.blob.core.windows.net/utcontainer224914fc/blob1
152+
response:
153+
body: {string: ''}
154+
headers:
155+
Content-MD5: [XrY7u+Ae7tCTyyK7j1rNww==]
156+
Date: ['Mon, 16 Nov 2015 19:31:18 GMT']
157+
ETag: ['"0x8D2EEBC80A3CBBC"']
158+
Last-Modified: ['Mon, 16 Nov 2015 19:31:19 GMT']
159+
Server: [Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0]
160+
Transfer-Encoding: [chunked]
161+
x-ms-request-id: [4ddab840-0001-0079-66a5-209640000000]
162+
x-ms-version: ['2014-02-14']
163+
status: {code: 201, message: Created}
164+
- request:
165+
body: null
166+
headers:
167+
Accept-Encoding: ['gzip, deflate']
168+
Connection: [keep-alive]
169+
Content-Length: ['0']
170+
Content-Type: [application/octet-stream Charset=UTF-8]
171+
User-Agent: [pyazure/0.20.3]
172+
x-ms-copy-source: ['https://xclientdev.blob.core.windows.net/utcontainer224914fc/blob1']
173+
x-ms-date: ['Mon, 16 Nov 2015 19:31:19 GMT']
174+
x-ms-version: ['2014-02-14']
175+
method: PUT
176+
uri: https://storagename.blob.core.windows.net/utcontainer224914fc/blob1copy
177+
response:
178+
body: {string: ''}
179+
headers:
180+
Date: ['Mon, 16 Nov 2015 19:31:18 GMT']
181+
ETag: ['"0x8D2EEBC80AAD0D8"']
182+
Last-Modified: ['Mon, 16 Nov 2015 19:31:19 GMT']
183+
Server: [Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0]
184+
Transfer-Encoding: [chunked]
185+
x-ms-copy-id: [8a6acd86-066c-46d2-9d12-be351911df52]
186+
x-ms-copy-status: [success]
187+
x-ms-request-id: [4ddab866-0001-0079-09a5-209640000000]
188+
x-ms-version: ['2014-02-14']
189+
status: {code: 202, message: Accepted}
190+
- request:
191+
body: null
192+
headers:
193+
Accept-Encoding: ['gzip, deflate']
194+
Connection: [keep-alive]
195+
Content-Type: [application/octet-stream Charset=UTF-8]
196+
User-Agent: [pyazure/0.20.3]
197+
x-ms-date: ['Mon, 16 Nov 2015 19:31:19 GMT']
198+
x-ms-version: ['2014-02-14']
199+
method: GET
200+
uri: https://storagename.blob.core.windows.net/utcontainer224914fc/blob1copy
201+
response:
202+
body: {string: hello world}
203+
headers:
204+
Accept-Ranges: [bytes]
205+
Content-Length: ['11']
206+
Content-MD5: [XrY7u+Ae7tCTyyK7j1rNww==]
207+
Content-Type: [application/octet-stream Charset=UTF-8]
208+
Date: ['Mon, 16 Nov 2015 19:31:18 GMT']
209+
ETag: ['"0x8D2EEBC80AAD0D8"']
210+
Last-Modified: ['Mon, 16 Nov 2015 19:31:19 GMT']
211+
Server: [Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0]
212+
x-ms-blob-type: [BlockBlob]
213+
x-ms-copy-completion-time: ['Mon, 16 Nov 2015 19:31:19 GMT']
214+
x-ms-copy-id: [8a6acd86-066c-46d2-9d12-be351911df52]
215+
x-ms-copy-progress: [11/11]
216+
x-ms-copy-source: ['https://storagename.blob.core.windows.net/utcontainer224914fc/blob1']
217+
x-ms-copy-status: [success]
218+
x-ms-lease-state: [available]
219+
x-ms-lease-status: [unlocked]
220+
x-ms-request-id: [4ddab886-0001-0079-27a5-209640000000]
221+
x-ms-version: ['2014-02-14']
222+
status: {code: 200, message: OK}
115223
version: 1

tests/recordings/test_storage_blob.test_create_container_no_options.yaml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,27 @@ interactions:
2323
x-ms-request-id: [c3022009-0001-002e-614e-ad2a7c000000]
2424
x-ms-version: ['2014-02-14']
2525
status: {code: 201, message: Created}
26+
- request:
27+
body: null
28+
headers:
29+
Accept-Encoding: ['gzip, deflate']
30+
Connection: [keep-alive]
31+
Content-Length: ['0']
32+
Content-Type: [application/octet-stream Charset=UTF-8]
33+
User-Agent: [pyazure/0.20.3]
34+
x-ms-date: ['Mon, 16 Nov 2015 19:25:30 GMT']
35+
x-ms-version: ['2014-02-14']
36+
method: PUT
37+
uri: https://storagename.blob.core.windows.net/utcontainerb78149d?restype=container
38+
response:
39+
body: {string: ''}
40+
headers:
41+
Date: ['Mon, 16 Nov 2015 19:25:30 GMT']
42+
ETag: ['"0x8D2EEBBB11F06F6"']
43+
Last-Modified: ['Mon, 16 Nov 2015 19:25:31 GMT']
44+
Server: [Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0]
45+
Transfer-Encoding: [chunked]
46+
x-ms-request-id: [00a50f7b-0001-001f-34a4-20241a000000]
47+
x-ms-version: ['2014-02-14']
48+
status: {code: 201, message: Created}
2649
version: 1

tests/recordings/test_storage_blob.test_create_container_no_options_fail_on_exist.yaml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,27 @@ interactions:
2323
x-ms-request-id: [8a459fa3-0001-001e-6a4e-ad7056000000]
2424
x-ms-version: ['2014-02-14']
2525
status: {code: 201, message: Created}
26+
- request:
27+
body: null
28+
headers:
29+
Accept-Encoding: ['gzip, deflate']
30+
Connection: [keep-alive]
31+
Content-Length: ['0']
32+
Content-Type: [application/octet-stream Charset=UTF-8]
33+
User-Agent: [pyazure/0.20.3]
34+
x-ms-date: ['Mon, 16 Nov 2015 19:22:08 GMT']
35+
x-ms-version: ['2014-02-14']
36+
method: PUT
37+
uri: https://storagename.blob.core.windows.net/utcontainer563d1a60?restype=container
38+
response:
39+
body: {string: ''}
40+
headers:
41+
Date: ['Mon, 16 Nov 2015 19:22:08 GMT']
42+
ETag: ['"0x8D2EEBB386CC43A"']
43+
Last-Modified: ['Mon, 16 Nov 2015 19:22:08 GMT']
44+
Server: [Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0]
45+
Transfer-Encoding: [chunked]
46+
x-ms-request-id: [d001dfb8-0001-0015-4ba4-203d93000000]
47+
x-ms-version: ['2014-02-14']
48+
status: {code: 201, message: Created}
2649
version: 1

tests/recordings/test_storage_blob.test_create_container_with_already_existing_container.yaml

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,4 +48,51 @@ interactions:
4848
x-ms-request-id: [c301d951-0001-002e-1e4e-ad2a7c000000]
4949
x-ms-version: ['2014-02-14']
5050
status: {code: 409, message: The specified container already exists.}
51+
- request:
52+
body: null
53+
headers:
54+
Accept-Encoding: ['gzip, deflate']
55+
Connection: [keep-alive]
56+
Content-Length: ['0']
57+
Content-Type: [application/octet-stream Charset=UTF-8]
58+
User-Agent: [pyazure/0.20.3]
59+
x-ms-date: ['Mon, 16 Nov 2015 19:24:29 GMT']
60+
x-ms-version: ['2014-02-14']
61+
method: PUT
62+
uri: https://storagename.blob.core.windows.net/utcontainer19be1d3e?restype=container
63+
response:
64+
body: {string: ''}
65+
headers:
66+
Date: ['Mon, 16 Nov 2015 19:24:28 GMT']
67+
ETag: ['"0x8D2EEBB8C841290"']
68+
Last-Modified: ['Mon, 16 Nov 2015 19:24:29 GMT']
69+
Server: [Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0]
70+
Transfer-Encoding: [chunked]
71+
x-ms-request-id: [713a3ab9-0001-0025-1fa4-2067b9000000]
72+
x-ms-version: ['2014-02-14']
73+
status: {code: 201, message: Created}
74+
- request:
75+
body: null
76+
headers:
77+
Accept-Encoding: ['gzip, deflate']
78+
Connection: [keep-alive]
79+
Content-Length: ['0']
80+
Content-Type: [application/octet-stream Charset=UTF-8]
81+
User-Agent: [pyazure/0.20.3]
82+
x-ms-date: ['Mon, 16 Nov 2015 19:24:29 GMT']
83+
x-ms-version: ['2014-02-14']
84+
method: PUT
85+
uri: https://storagename.blob.core.windows.net/utcontainer19be1d3e?restype=container
86+
response:
87+
body: {string: "\uFEFF<?xml version=\"1.0\" encoding=\"utf-8\"?><Error><Code>ContainerAlreadyExists</Code><Message>The\
88+
\ specified container already exists.\nRequestId:713a3ad2-0001-0025-37a4-2067b9000000\n\
89+
Time:2015-11-16T19:24:29.6862071Z</Message></Error>"}
90+
headers:
91+
Content-Length: ['230']
92+
Content-Type: [application/xml]
93+
Date: ['Mon, 16 Nov 2015 19:24:28 GMT']
94+
Server: [Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0]
95+
x-ms-request-id: [713a3ad2-0001-0025-37a4-2067b9000000]
96+
x-ms-version: ['2014-02-14']
97+
status: {code: 409, message: The specified container already exists.}
5198
version: 1

tests/recordings/test_storage_blob.test_create_container_with_already_existing_container_fail_on_exist.yaml

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,4 +48,51 @@ interactions:
4848
x-ms-request-id: [0cbc11fe-0001-002b-6f4e-adde03000000]
4949
x-ms-version: ['2014-02-14']
5050
status: {code: 409, message: The specified container already exists.}
51+
- request:
52+
body: null
53+
headers:
54+
Accept-Encoding: ['gzip, deflate']
55+
Connection: [keep-alive]
56+
Content-Length: ['0']
57+
Content-Type: [application/octet-stream Charset=UTF-8]
58+
User-Agent: [pyazure/0.20.3]
59+
x-ms-date: ['Mon, 16 Nov 2015 19:30:45 GMT']
60+
x-ms-version: ['2014-02-14']
61+
method: PUT
62+
uri: https://storagename.blob.core.windows.net/utcontainerdd512301?restype=container
63+
response:
64+
body: {string: ''}
65+
headers:
66+
Date: ['Mon, 16 Nov 2015 19:30:45 GMT']
67+
ETag: ['"0x8D2EEBC6CC65E89"']
68+
Last-Modified: ['Mon, 16 Nov 2015 19:30:45 GMT']
69+
Server: [Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0]
70+
Transfer-Encoding: [chunked]
71+
x-ms-request-id: [597f7426-0001-006b-4fa5-20a25c000000]
72+
x-ms-version: ['2014-02-14']
73+
status: {code: 201, message: Created}
74+
- request:
75+
body: null
76+
headers:
77+
Accept-Encoding: ['gzip, deflate']
78+
Connection: [keep-alive]
79+
Content-Length: ['0']
80+
Content-Type: [application/octet-stream Charset=UTF-8]
81+
User-Agent: [pyazure/0.20.3]
82+
x-ms-date: ['Mon, 16 Nov 2015 19:30:45 GMT']
83+
x-ms-version: ['2014-02-14']
84+
method: PUT
85+
uri: https://storagename.blob.core.windows.net/utcontainerdd512301?restype=container
86+
response:
87+
body: {string: "\uFEFF<?xml version=\"1.0\" encoding=\"utf-8\"?><Error><Code>ContainerAlreadyExists</Code><Message>The\
88+
\ specified container already exists.\nRequestId:597f7435-0001-006b-5ca5-20a25c000000\n\
89+
Time:2015-11-16T19:30:45.9213333Z</Message></Error>"}
90+
headers:
91+
Content-Length: ['230']
92+
Content-Type: [application/xml]
93+
Date: ['Mon, 16 Nov 2015 19:30:45 GMT']
94+
Server: [Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0]
95+
x-ms-request-id: [597f7435-0001-006b-5ca5-20a25c000000]
96+
x-ms-version: ['2014-02-14']
97+
status: {code: 409, message: The specified container already exists.}
5198
version: 1

0 commit comments

Comments
 (0)