Skip to content

Commit f6ce568

Browse files
[Storage] Fix datalake rename live tests (Azure#28613)
1 parent 3508a34 commit f6ce568

8 files changed

+375
-66
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,129 @@
1+
{
2+
"Entries": [
3+
{
4+
"RequestUri": "https://storagename.blob.core.windows.net/filesystem9f562fef?restype=container\u0026timeout=5",
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-dfs/12.10.0b1 Python/3.10.6 (Windows-10-10.0.22621-SP0)",
12+
"x-ms-date": "Thu, 02 Feb 2023 19:58:21 GMT",
13+
"x-ms-version": "2021-12-02"
14+
},
15+
"RequestBody": null,
16+
"StatusCode": 201,
17+
"ResponseHeaders": {
18+
"Content-Length": "0",
19+
"Date": "Thu, 02 Feb 2023 19:58:22 GMT",
20+
"ETag": "\u00220x8DB0557D691B10F\u0022",
21+
"Last-Modified": "Thu, 02 Feb 2023 19:58:22 GMT",
22+
"Server": [
23+
"Windows-Azure-Blob/1.0",
24+
"Microsoft-HTTPAPI/2.0"
25+
],
26+
"x-ms-version": "2021-12-02"
27+
},
28+
"ResponseBody": null
29+
},
30+
{
31+
"RequestUri": "https://storagename.dfs.core.windows.net/filesystem9f562fef/olddir?resource=directory\u0026se=end\u0026sp=rwd\u0026sv=2021-12-02\u0026sr=c\u0026sig=fake_token_value",
32+
"RequestMethod": "PUT",
33+
"RequestHeaders": {
34+
"Accept": "application/json",
35+
"Accept-Encoding": "gzip, deflate",
36+
"Connection": "keep-alive",
37+
"Content-Length": "0",
38+
"User-Agent": "azsdk-python-storage-dfs/12.10.0b1 Python/3.10.6 (Windows-10-10.0.22621-SP0)",
39+
"x-ms-date": "Thu, 02 Feb 2023 19:58:22 GMT",
40+
"x-ms-version": "2021-12-02"
41+
},
42+
"RequestBody": null,
43+
"StatusCode": 201,
44+
"ResponseHeaders": {
45+
"Content-Length": "0",
46+
"Date": "Thu, 02 Feb 2023 19:58:22 GMT",
47+
"ETag": "\u00220x8DB0557D6DA0BA9\u0022",
48+
"Last-Modified": "Thu, 02 Feb 2023 19:58:22 GMT",
49+
"Server": [
50+
"Windows-Azure-HDFS/1.0",
51+
"Microsoft-HTTPAPI/2.0"
52+
],
53+
"x-ms-request-server-encrypted": "true",
54+
"x-ms-version": "2021-12-02"
55+
},
56+
"ResponseBody": null
57+
},
58+
{
59+
"RequestUri": "https://storagename.dfs.core.windows.net/filesystem9f562fef/newdir?mode=legacy\u0026se=end\u0026sp=rwd\u0026sv=2021-12-02\u0026sr=c\u0026sig=fake_token_value",
60+
"RequestMethod": "PUT",
61+
"RequestHeaders": {
62+
"Accept": "application/json",
63+
"Accept-Encoding": "gzip, deflate",
64+
"Connection": "keep-alive",
65+
"Content-Length": "0",
66+
"User-Agent": "azsdk-python-storage-dfs/12.10.0b1 Python/3.10.6 (Windows-10-10.0.22621-SP0)",
67+
"x-ms-date": "Thu, 02 Feb 2023 19:58:22 GMT",
68+
"x-ms-rename-source": "/filesystem9f562fef/olddir?se=end\u0026sp=rwd\u0026sv=2021-12-02\u0026sr=c\u0026sig=fake_token_value",
69+
"x-ms-source-lease-id": "",
70+
"x-ms-version": "2021-12-02"
71+
},
72+
"RequestBody": null,
73+
"StatusCode": 201,
74+
"ResponseHeaders": {
75+
"Content-Length": "0",
76+
"Date": "Thu, 02 Feb 2023 19:58:24 GMT",
77+
"ETag": "\u00220x8DB0557D6DA0BA9\u0022",
78+
"Last-Modified": "Thu, 02 Feb 2023 19:58:22 GMT",
79+
"Server": [
80+
"Windows-Azure-HDFS/1.0",
81+
"Microsoft-HTTPAPI/2.0"
82+
],
83+
"x-ms-version": "2021-12-02"
84+
},
85+
"ResponseBody": null
86+
},
87+
{
88+
"RequestUri": "https://storagename.blob.core.windows.net/filesystem9f562fef/newdir?se=end\u0026sp=rwd\u0026sv=2021-12-02\u0026sr=c\u0026sig=fake_token_value",
89+
"RequestMethod": "HEAD",
90+
"RequestHeaders": {
91+
"Accept": "application/xml",
92+
"Accept-Encoding": "gzip, deflate",
93+
"Connection": "keep-alive",
94+
"User-Agent": "azsdk-python-storage-dfs/12.10.0b1 Python/3.10.6 (Windows-10-10.0.22621-SP0)",
95+
"x-ms-date": "Thu, 02 Feb 2023 19:58:24 GMT",
96+
"x-ms-version": "2021-12-02"
97+
},
98+
"RequestBody": null,
99+
"StatusCode": 200,
100+
"ResponseHeaders": {
101+
"Accept-Ranges": "bytes",
102+
"Content-Length": "0",
103+
"Content-Type": "application/octet-stream",
104+
"Date": "Thu, 02 Feb 2023 19:58:24 GMT",
105+
"ETag": "\u00220x8DB0557D6DA0BA9\u0022",
106+
"Last-Modified": "Thu, 02 Feb 2023 19:58:22 GMT",
107+
"Server": [
108+
"Windows-Azure-Blob/1.0",
109+
"Microsoft-HTTPAPI/2.0"
110+
],
111+
"x-ms-access-tier": "Hot",
112+
"x-ms-access-tier-inferred": "true",
113+
"x-ms-blob-type": "BlockBlob",
114+
"x-ms-creation-time": "Thu, 02 Feb 2023 19:58:22 GMT",
115+
"x-ms-group": "$superuser",
116+
"x-ms-lease-state": "available",
117+
"x-ms-lease-status": "unlocked",
118+
"x-ms-meta-hdi_isfolder": "true",
119+
"x-ms-owner": "$superuser",
120+
"x-ms-permissions": "rwxr-x---",
121+
"x-ms-resource-type": "directory",
122+
"x-ms-server-encrypted": "true",
123+
"x-ms-version": "2021-12-02"
124+
},
125+
"ResponseBody": null
126+
}
127+
],
128+
"Variables": {}
129+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,125 @@
1+
{
2+
"Entries": [
3+
{
4+
"RequestUri": "https://storagename.blob.core.windows.net/filesystemd665346a?restype=container\u0026timeout=5",
5+
"RequestMethod": "PUT",
6+
"RequestHeaders": {
7+
"Accept": "application/xml",
8+
"Accept-Encoding": "gzip, deflate",
9+
"Content-Length": "0",
10+
"User-Agent": "azsdk-python-storage-dfs/12.10.0b1 Python/3.10.6 (Windows-10-10.0.22621-SP0)",
11+
"x-ms-date": "Thu, 02 Feb 2023 19:59:41 GMT",
12+
"x-ms-version": "2021-12-02"
13+
},
14+
"RequestBody": null,
15+
"StatusCode": 201,
16+
"ResponseHeaders": {
17+
"Content-Length": "0",
18+
"Date": "Thu, 02 Feb 2023 19:59:41 GMT",
19+
"ETag": "\u00220x8DB055805E28D6C\u0022",
20+
"Last-Modified": "Thu, 02 Feb 2023 19:59:41 GMT",
21+
"Server": [
22+
"Windows-Azure-Blob/1.0",
23+
"Microsoft-HTTPAPI/2.0"
24+
],
25+
"x-ms-version": "2021-12-02"
26+
},
27+
"ResponseBody": null
28+
},
29+
{
30+
"RequestUri": "https://storagename.dfs.core.windows.net/filesystemd665346a/olddir?resource=directory\u0026se=end\u0026sp=rwdm\u0026sv=2021-12-02\u0026sr=c\u0026sig=fake_token_value",
31+
"RequestMethod": "PUT",
32+
"RequestHeaders": {
33+
"Accept": "application/json",
34+
"Accept-Encoding": "gzip, deflate",
35+
"Content-Length": "0",
36+
"User-Agent": "azsdk-python-storage-dfs/12.10.0b1 Python/3.10.6 (Windows-10-10.0.22621-SP0)",
37+
"x-ms-date": "Thu, 02 Feb 2023 19:59:41 GMT",
38+
"x-ms-version": "2021-12-02"
39+
},
40+
"RequestBody": null,
41+
"StatusCode": 201,
42+
"ResponseHeaders": {
43+
"Content-Length": "0",
44+
"Date": "Thu, 02 Feb 2023 19:59:41 GMT",
45+
"ETag": "\u00220x8DB0558063FD28B\u0022",
46+
"Last-Modified": "Thu, 02 Feb 2023 19:59:42 GMT",
47+
"Server": [
48+
"Windows-Azure-HDFS/1.0",
49+
"Microsoft-HTTPAPI/2.0"
50+
],
51+
"x-ms-request-server-encrypted": "true",
52+
"x-ms-version": "2021-12-02"
53+
},
54+
"ResponseBody": null
55+
},
56+
{
57+
"RequestUri": "https://storagename.dfs.core.windows.net/filesystemd665346a/newdir?mode=legacy\u0026se=end\u0026sp=rwdm\u0026sv=2021-12-02\u0026sr=c\u0026sig=fake_token_value",
58+
"RequestMethod": "PUT",
59+
"RequestHeaders": {
60+
"Accept": "application/json",
61+
"Accept-Encoding": "gzip, deflate",
62+
"Content-Length": "0",
63+
"User-Agent": "azsdk-python-storage-dfs/12.10.0b1 Python/3.10.6 (Windows-10-10.0.22621-SP0)",
64+
"x-ms-date": "Thu, 02 Feb 2023 19:59:42 GMT",
65+
"x-ms-rename-source": "/filesystemd665346a/olddir?se=end\u0026sp=rwdm\u0026sv=2021-12-02\u0026sr=c\u0026sig=fake_token_value",
66+
"x-ms-source-lease-id": "",
67+
"x-ms-version": "2021-12-02"
68+
},
69+
"RequestBody": null,
70+
"StatusCode": 201,
71+
"ResponseHeaders": {
72+
"Content-Length": "0",
73+
"Date": "Thu, 02 Feb 2023 19:59:42 GMT",
74+
"ETag": "\u00220x8DB0558063FD28B\u0022",
75+
"Last-Modified": "Thu, 02 Feb 2023 19:59:42 GMT",
76+
"Server": [
77+
"Windows-Azure-HDFS/1.0",
78+
"Microsoft-HTTPAPI/2.0"
79+
],
80+
"x-ms-version": "2021-12-02"
81+
},
82+
"ResponseBody": null
83+
},
84+
{
85+
"RequestUri": "https://storagename.blob.core.windows.net/filesystemd665346a/newdir?se=end\u0026sp=rwdm\u0026sv=2021-12-02\u0026sr=c\u0026sig=fake_token_value",
86+
"RequestMethod": "HEAD",
87+
"RequestHeaders": {
88+
"Accept": "application/xml",
89+
"Accept-Encoding": "gzip, deflate",
90+
"User-Agent": "azsdk-python-storage-dfs/12.10.0b1 Python/3.10.6 (Windows-10-10.0.22621-SP0)",
91+
"x-ms-date": "Thu, 02 Feb 2023 19:59:43 GMT",
92+
"x-ms-version": "2021-12-02"
93+
},
94+
"RequestBody": null,
95+
"StatusCode": 200,
96+
"ResponseHeaders": {
97+
"Accept-Ranges": "bytes",
98+
"Content-Length": "0",
99+
"Content-Type": "application/octet-stream",
100+
"Date": "Thu, 02 Feb 2023 19:59:42 GMT",
101+
"ETag": "\u00220x8DB0558063FD28B\u0022",
102+
"Last-Modified": "Thu, 02 Feb 2023 19:59:42 GMT",
103+
"Server": [
104+
"Windows-Azure-Blob/1.0",
105+
"Microsoft-HTTPAPI/2.0"
106+
],
107+
"x-ms-access-tier": "Hot",
108+
"x-ms-access-tier-inferred": "true",
109+
"x-ms-blob-type": "BlockBlob",
110+
"x-ms-creation-time": "Thu, 02 Feb 2023 19:59:42 GMT",
111+
"x-ms-group": "$superuser",
112+
"x-ms-lease-state": "available",
113+
"x-ms-lease-status": "unlocked",
114+
"x-ms-meta-hdi_isfolder": "true",
115+
"x-ms-owner": "$superuser",
116+
"x-ms-permissions": "rwxr-x---",
117+
"x-ms-resource-type": "directory",
118+
"x-ms-server-encrypted": "true",
119+
"x-ms-version": "2021-12-02"
120+
},
121+
"ResponseBody": null
122+
}
123+
],
124+
"Variables": {}
125+
}

0 commit comments

Comments
 (0)