Skip to content

Commit 9039f05

Browse files
[Storage] Migrate test_container.py (Azure#25574)
1 parent 922e9c8 commit 9039f05

File tree

300 files changed

+33427
-65688
lines changed

Some content is hidden

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

300 files changed

+33427
-65688
lines changed
Lines changed: 95 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,95 @@
1+
{
2+
"Entries": [
3+
{
4+
"RequestUri": "https://storagename.blob.core.windows.net/container1a5772923?restype=container",
5+
"RequestMethod": "PUT",
6+
"RequestHeaders": {
7+
"Accept": "application/xml",
8+
"Accept-Encoding": "gzip, deflate",
9+
"Connection": "keep-alive",
10+
"Content-Length": "0",
11+
"User-Agent": "azsdk-python-storage-blob/12.14.0b1 Python/3.10.2 (Windows-10-10.0.19044-SP0)",
12+
"x-ms-date": "Mon, 01 Aug 2022 23:12:54 GMT",
13+
"x-ms-version": "2021-08-06"
14+
},
15+
"RequestBody": null,
16+
"StatusCode": 201,
17+
"ResponseHeaders": {
18+
"Content-Length": "0",
19+
"Date": "Mon, 01 Aug 2022 23:12:54 GMT",
20+
"ETag": "\u00220x8DA74135D772B10\u0022",
21+
"Last-Modified": "Mon, 01 Aug 2022 23:12:54 GMT",
22+
"Server": [
23+
"Windows-Azure-Blob/1.0",
24+
"Microsoft-HTTPAPI/2.0"
25+
],
26+
"x-ms-version": "2021-08-06"
27+
},
28+
"ResponseBody": null
29+
},
30+
{
31+
"RequestUri": "https://storagename.blob.core.windows.net/container1a5772923?restype=container",
32+
"RequestMethod": "GET",
33+
"RequestHeaders": {
34+
"Accept": "application/xml",
35+
"Accept-Encoding": "gzip, deflate",
36+
"Connection": "keep-alive",
37+
"User-Agent": "azsdk-python-storage-blob/12.14.0b1 Python/3.10.2 (Windows-10-10.0.19044-SP0)",
38+
"x-ms-date": "Mon, 01 Aug 2022 23:12:54 GMT",
39+
"x-ms-version": "2021-08-06"
40+
},
41+
"RequestBody": null,
42+
"StatusCode": 200,
43+
"ResponseHeaders": {
44+
"Content-Length": "0",
45+
"Date": "Mon, 01 Aug 2022 23:12:54 GMT",
46+
"ETag": "\u00220x8DA74135D772B10\u0022",
47+
"Last-Modified": "Mon, 01 Aug 2022 23:12:54 GMT",
48+
"Server": [
49+
"Windows-Azure-Blob/1.0",
50+
"Microsoft-HTTPAPI/2.0"
51+
],
52+
"x-ms-default-encryption-scope": "$account-encryption-key",
53+
"x-ms-deny-encryption-scope-override": "false",
54+
"x-ms-has-immutability-policy": "false",
55+
"x-ms-has-legal-hold": "false",
56+
"x-ms-immutable-storage-with-versioning-enabled": "false",
57+
"x-ms-lease-state": "available",
58+
"x-ms-lease-status": "unlocked",
59+
"x-ms-version": "2021-08-06"
60+
},
61+
"ResponseBody": null
62+
},
63+
{
64+
"RequestUri": "https://storagename.blob.core.windows.net/container2a5772923?restype=container",
65+
"RequestMethod": "GET",
66+
"RequestHeaders": {
67+
"Accept": "application/xml",
68+
"Accept-Encoding": "gzip, deflate",
69+
"Connection": "keep-alive",
70+
"User-Agent": "azsdk-python-storage-blob/12.14.0b1 Python/3.10.2 (Windows-10-10.0.19044-SP0)",
71+
"x-ms-date": "Mon, 01 Aug 2022 23:12:54 GMT",
72+
"x-ms-version": "2021-08-06"
73+
},
74+
"RequestBody": null,
75+
"StatusCode": 404,
76+
"ResponseHeaders": {
77+
"Content-Length": "225",
78+
"Content-Type": "application/xml",
79+
"Date": "Mon, 01 Aug 2022 23:12:54 GMT",
80+
"Server": [
81+
"Windows-Azure-Blob/1.0",
82+
"Microsoft-HTTPAPI/2.0"
83+
],
84+
"x-ms-error-code": "ContainerNotFound",
85+
"x-ms-version": "2021-08-06"
86+
},
87+
"ResponseBody": [
88+
"\uFEFF\u003C?xml version=\u00221.0\u0022 encoding=\u0022utf-8\u0022?\u003E\u003CError\u003E\u003CCode\u003EContainerNotFound\u003C/Code\u003E\u003CMessage\u003EThe specified container does not exist.\n",
89+
"RequestId:6b61f86e-c01e-0014-3ffc-a592ad000000\n",
90+
"Time:2022-08-01T23:12:54.9367057Z\u003C/Message\u003E\u003C/Error\u003E"
91+
]
92+
}
93+
],
94+
"Variables": {}
95+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,98 @@
1+
{
2+
"Entries": [
3+
{
4+
"RequestUri": "https://storagename.blob.core.windows.net/container8e5f2da7?restype=container",
5+
"RequestMethod": "PUT",
6+
"RequestHeaders": {
7+
"Accept": "application/xml",
8+
"Accept-Encoding": "gzip, deflate",
9+
"Connection": "keep-alive",
10+
"Content-Length": "0",
11+
"User-Agent": "azsdk-python-storage-blob/12.14.0b1 Python/3.10.2 (Windows-10-10.0.19044-SP0)",
12+
"x-ms-date": "Tue, 02 Aug 2022 20:21:03 GMT",
13+
"x-ms-version": "2021-08-06"
14+
},
15+
"RequestBody": null,
16+
"StatusCode": 201,
17+
"ResponseHeaders": {
18+
"Content-Length": "0",
19+
"Date": "Tue, 02 Aug 2022 20:21:03 GMT",
20+
"ETag": "\u00220x8DA74C4861E4DC7\u0022",
21+
"Last-Modified": "Tue, 02 Aug 2022 20:21:03 GMT",
22+
"Server": [
23+
"Windows-Azure-Blob/1.0",
24+
"Microsoft-HTTPAPI/2.0"
25+
],
26+
"x-ms-version": "2021-08-06"
27+
},
28+
"ResponseBody": null
29+
},
30+
{
31+
"RequestUri": "https://storagename.blob.core.windows.net/container8e5f2da7?comp=lease\u0026restype=container",
32+
"RequestMethod": "PUT",
33+
"RequestHeaders": {
34+
"Accept": "application/xml",
35+
"Accept-Encoding": "gzip, deflate",
36+
"Connection": "keep-alive",
37+
"Content-Length": "0",
38+
"User-Agent": "azsdk-python-storage-blob/12.14.0b1 Python/3.10.2 (Windows-10-10.0.19044-SP0)",
39+
"x-ms-date": "Tue, 02 Aug 2022 20:21:04 GMT",
40+
"x-ms-lease-action": "acquire",
41+
"x-ms-lease-duration": "-1",
42+
"x-ms-proposed-lease-id": "00000000-1111-2222-3333-444444444444",
43+
"x-ms-version": "2021-08-06"
44+
},
45+
"RequestBody": null,
46+
"StatusCode": 201,
47+
"ResponseHeaders": {
48+
"Content-Length": "0",
49+
"Date": "Tue, 02 Aug 2022 20:21:03 GMT",
50+
"ETag": "\u00220x8DA74C4861E4DC7\u0022",
51+
"Last-Modified": "Tue, 02 Aug 2022 20:21:03 GMT",
52+
"Server": [
53+
"Windows-Azure-Blob/1.0",
54+
"Microsoft-HTTPAPI/2.0"
55+
],
56+
"x-ms-lease-id": "00000000-1111-2222-3333-444444444444",
57+
"x-ms-version": "2021-08-06"
58+
},
59+
"ResponseBody": null
60+
},
61+
{
62+
"RequestUri": "https://storagename.blob.core.windows.net/container8e5f2da7?restype=container",
63+
"RequestMethod": "GET",
64+
"RequestHeaders": {
65+
"Accept": "application/xml",
66+
"Accept-Encoding": "gzip, deflate",
67+
"Connection": "keep-alive",
68+
"User-Agent": "azsdk-python-storage-blob/12.14.0b1 Python/3.10.2 (Windows-10-10.0.19044-SP0)",
69+
"x-ms-date": "Tue, 02 Aug 2022 20:21:04 GMT",
70+
"x-ms-version": "2021-08-06"
71+
},
72+
"RequestBody": null,
73+
"StatusCode": 200,
74+
"ResponseHeaders": {
75+
"Content-Length": "0",
76+
"Date": "Tue, 02 Aug 2022 20:21:03 GMT",
77+
"ETag": "\u00220x8DA74C4861E4DC7\u0022",
78+
"Last-Modified": "Tue, 02 Aug 2022 20:21:03 GMT",
79+
"Server": [
80+
"Windows-Azure-Blob/1.0",
81+
"Microsoft-HTTPAPI/2.0"
82+
],
83+
"Vary": "Origin",
84+
"x-ms-default-encryption-scope": "$account-encryption-key",
85+
"x-ms-deny-encryption-scope-override": "false",
86+
"x-ms-has-immutability-policy": "false",
87+
"x-ms-has-legal-hold": "false",
88+
"x-ms-immutable-storage-with-versioning-enabled": "false",
89+
"x-ms-lease-duration": "infinite",
90+
"x-ms-lease-state": "leased",
91+
"x-ms-lease-status": "locked",
92+
"x-ms-version": "2021-08-06"
93+
},
94+
"ResponseBody": null
95+
}
96+
],
97+
"Variables": {}
98+
}
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
{
2+
"Entries": [
3+
{
4+
"RequestUri": "https://storagename.blob.core.windows.net/containera31528f7?restype=container",
5+
"RequestMethod": "PUT",
6+
"RequestHeaders": {
7+
"Accept": "application/xml",
8+
"Accept-Encoding": "gzip, deflate",
9+
"Connection": "keep-alive",
10+
"Content-Length": "0",
11+
"User-Agent": "azsdk-python-storage-blob/12.14.0b1 Python/3.10.2 (Windows-10-10.0.19044-SP0)",
12+
"x-ms-date": "Mon, 01 Aug 2022 23:12:37 GMT",
13+
"x-ms-version": "2021-08-06"
14+
},
15+
"RequestBody": null,
16+
"StatusCode": 201,
17+
"ResponseHeaders": {
18+
"Content-Length": "0",
19+
"Date": "Mon, 01 Aug 2022 23:12:37 GMT",
20+
"ETag": "\u00220x8DA74135383795F\u0022",
21+
"Last-Modified": "Mon, 01 Aug 2022 23:12:38 GMT",
22+
"Server": [
23+
"Windows-Azure-Blob/1.0",
24+
"Microsoft-HTTPAPI/2.0"
25+
],
26+
"x-ms-version": "2021-08-06"
27+
},
28+
"ResponseBody": null
29+
}
30+
],
31+
"Variables": {}
32+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
{
2+
"Entries": [
3+
{
4+
"RequestUri": "https://storagename.blob.core.windows.net/containere56c3c02?restype=container",
5+
"RequestMethod": "PUT",
6+
"RequestHeaders": {
7+
"Accept": "application/xml",
8+
"Accept-Encoding": "gzip, deflate",
9+
"Connection": "keep-alive",
10+
"Content-Length": "0",
11+
"User-Agent": "azsdk-python-storage-blob/12.14.0b1 Python/3.10.2 (Windows-10-10.0.19044-SP0)",
12+
"x-ms-date": "Mon, 01 Aug 2022 23:12:38 GMT",
13+
"x-ms-version": "2021-08-06"
14+
},
15+
"RequestBody": null,
16+
"StatusCode": 201,
17+
"ResponseHeaders": {
18+
"Content-Length": "0",
19+
"Date": "Mon, 01 Aug 2022 23:12:38 GMT",
20+
"ETag": "\u00220x8DA741354114CF7\u0022",
21+
"Last-Modified": "Mon, 01 Aug 2022 23:12:38 GMT",
22+
"Server": [
23+
"Windows-Azure-Blob/1.0",
24+
"Microsoft-HTTPAPI/2.0"
25+
],
26+
"x-ms-version": "2021-08-06"
27+
},
28+
"ResponseBody": null
29+
},
30+
{
31+
"RequestUri": "https://storagename.blob.core.windows.net/containere56c3c02?restype=container",
32+
"RequestMethod": "PUT",
33+
"RequestHeaders": {
34+
"Accept": "application/xml",
35+
"Accept-Encoding": "gzip, deflate",
36+
"Connection": "keep-alive",
37+
"Content-Length": "0",
38+
"User-Agent": "azsdk-python-storage-blob/12.14.0b1 Python/3.10.2 (Windows-10-10.0.19044-SP0)",
39+
"x-ms-date": "Mon, 01 Aug 2022 23:12:38 GMT",
40+
"x-ms-version": "2021-08-06"
41+
},
42+
"RequestBody": null,
43+
"StatusCode": 409,
44+
"ResponseHeaders": {
45+
"Content-Length": "230",
46+
"Content-Type": "application/xml",
47+
"Date": "Mon, 01 Aug 2022 23:12:38 GMT",
48+
"Server": [
49+
"Windows-Azure-Blob/1.0",
50+
"Microsoft-HTTPAPI/2.0"
51+
],
52+
"x-ms-error-code": "ContainerAlreadyExists",
53+
"x-ms-version": "2021-08-06"
54+
},
55+
"ResponseBody": [
56+
"\uFEFF\u003C?xml version=\u00221.0\u0022 encoding=\u0022utf-8\u0022?\u003E\u003CError\u003E\u003CCode\u003EContainerAlreadyExists\u003C/Code\u003E\u003CMessage\u003EThe specified container already exists.\n",
57+
"RequestId:6b61dfbd-c01e-0014-49fc-a592ad000000\n",
58+
"Time:2022-08-01T23:12:39.1186409Z\u003C/Message\u003E\u003C/Error\u003E"
59+
]
60+
}
61+
],
62+
"Variables": {}
63+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
{
2+
"Entries": [
3+
{
4+
"RequestUri": "https://storagename.blob.core.windows.net/container177b2eb2?restype=container",
5+
"RequestMethod": "PUT",
6+
"RequestHeaders": {
7+
"Accept": "application/xml",
8+
"Accept-Encoding": "gzip, deflate",
9+
"Connection": "keep-alive",
10+
"Content-Length": "0",
11+
"User-Agent": "azsdk-python-storage-blob/12.14.0b1 Python/3.10.2 (Windows-10-10.0.19044-SP0)",
12+
"x-ms-date": "Mon, 01 Aug 2022 23:12:41 GMT",
13+
"x-ms-meta-hello": "world",
14+
"x-ms-meta-number": "42",
15+
"x-ms-version": "2021-08-06"
16+
},
17+
"RequestBody": null,
18+
"StatusCode": 201,
19+
"ResponseHeaders": {
20+
"Content-Length": "0",
21+
"Date": "Mon, 01 Aug 2022 23:12:41 GMT",
22+
"ETag": "\u00220x8DA7413558F785B\u0022",
23+
"Last-Modified": "Mon, 01 Aug 2022 23:12:41 GMT",
24+
"Server": [
25+
"Windows-Azure-Blob/1.0",
26+
"Microsoft-HTTPAPI/2.0"
27+
],
28+
"x-ms-version": "2021-08-06"
29+
},
30+
"ResponseBody": null
31+
},
32+
{
33+
"RequestUri": "https://storagename.blob.core.windows.net/container177b2eb2?restype=container",
34+
"RequestMethod": "GET",
35+
"RequestHeaders": {
36+
"Accept": "application/xml",
37+
"Accept-Encoding": "gzip, deflate",
38+
"Connection": "keep-alive",
39+
"User-Agent": "azsdk-python-storage-blob/12.14.0b1 Python/3.10.2 (Windows-10-10.0.19044-SP0)",
40+
"x-ms-date": "Mon, 01 Aug 2022 23:12:41 GMT",
41+
"x-ms-version": "2021-08-06"
42+
},
43+
"RequestBody": null,
44+
"StatusCode": 200,
45+
"ResponseHeaders": {
46+
"Content-Length": "0",
47+
"Date": "Mon, 01 Aug 2022 23:12:41 GMT",
48+
"ETag": "\u00220x8DA7413558F785B\u0022",
49+
"Last-Modified": "Mon, 01 Aug 2022 23:12:41 GMT",
50+
"Server": [
51+
"Windows-Azure-Blob/1.0",
52+
"Microsoft-HTTPAPI/2.0"
53+
],
54+
"x-ms-default-encryption-scope": "$account-encryption-key",
55+
"x-ms-deny-encryption-scope-override": "false",
56+
"x-ms-has-immutability-policy": "false",
57+
"x-ms-has-legal-hold": "false",
58+
"x-ms-immutable-storage-with-versioning-enabled": "false",
59+
"x-ms-lease-state": "available",
60+
"x-ms-lease-status": "unlocked",
61+
"x-ms-meta-hello": "world",
62+
"x-ms-meta-number": "42",
63+
"x-ms-version": "2021-08-06"
64+
},
65+
"ResponseBody": null
66+
}
67+
],
68+
"Variables": {}
69+
}

0 commit comments

Comments
 (0)