...
1---
2version: 1
3interactions:
4- request:
5 body: |
6 {"TableName":"table54tablebatchsuitetestbatchi"}
7 form: {}
8 headers:
9 Accept:
10 - application/json;odata=nometadata
11 Accept-Charset:
12 - UTF-8
13 Authorization:
14 - SharedKey golangrocksonazure:8NolwO3CqPvWHSBowfpOE/CNH4dx5FQBidfETVCnzPQ=
15 Content-Length:
16 - "49"
17 Content-Type:
18 - application/json
19 Prefer:
20 - return-no-content
21 User-Agent:
22 - Go/go1.15.1 (amd64-windows) azure-storage-go/v52.6.0 api-version/2018-03-28
23 table
24 x-ms-date:
25 - Tue, 13 Apr 2021 15:57:57 GMT
26 x-ms-version:
27 - "2018-03-28"
28 url: https://golangrocksonazure.table.core.windows.net/Tables?timeout=30
29 method: POST
30 response:
31 body: ""
32 headers:
33 Cache-Control:
34 - no-cache
35 Content-Length:
36 - "0"
37 Dataserviceid:
38 - https://golangrocksonazure.table.core.windows.net/Tables('table54tablebatchsuitetestbatchi')
39 Date:
40 - Tue, 13 Apr 2021 15:57:56 GMT
41 Location:
42 - https://golangrocksonazure.table.core.windows.net/Tables('table54tablebatchsuitetestbatchi')
43 Preference-Applied:
44 - return-no-content
45 Server:
46 - Windows-Azure-Table/1.0 Microsoft-HTTPAPI/2.0
47 X-Content-Type-Options:
48 - nosniff
49 X-Ms-Request-Id:
50 - 21520afc-6002-0019-1d7d-301f56000000
51 X-Ms-Version:
52 - "2018-03-28"
53 status: 204 No Content
54 code: 204
55 duration: ""
56- request:
57 body: "--batch_646079c8-c155-4396-833c-9ef556ad28fa\r\nContent-Type: multipart/mixed;
58 boundary=changeset_ea95571b-53fc-41f3-b2d0-40f8778c071b\r\n\r\n\r\n--changeset_ea95571b-53fc-41f3-b2d0-40f8778c071b\r\nContent-Transfer-Encoding:
59 binary\r\nContent-Type: application/http\r\n\r\nPUT https://golangrocksonazure.table.core.windows.net/table54tablebatchsuitetestbatchi%28PartitionKey=%27mypartitionkey%27,RowKey=%27myrowkey%27%29
60 HTTP/1.1\r\nAccept: application/json;odata=minimalmetadata\r\nContent-Type:
61 application/json\r\nPrefer: return-no-content\r\n\r\n{\"AmountDue\":\"200.23\",\"AmountDue@odata.type\":\"Edm.Double\",\"CustomerCode\":\"c9da6455-213d-42c9-9a79-3e9149a57833\",\"CustomerCode@odata.type\":\"Edm.Guid\",\"CustomerSince\":\"1992-12-20T21:55:00Z\",\"CustomerSince@odata.type\":\"Edm.DateTime\",\"IsActive\":true,\"NumberOfOrders\":\"255\",\"NumberOfOrders@odata.type\":\"Edm.Int64\",\"PartitionKey\":\"mypartitionkey\",\"RowKey\":\"myrowkey\"}\r\n--changeset_ea95571b-53fc-41f3-b2d0-40f8778c071b\r\nContent-Transfer-Encoding:
62 binary\r\nContent-Type: application/http\r\n\r\nPUT https://golangrocksonazure.table.core.windows.net/table54tablebatchsuitetestbatchi%28PartitionKey=%27mypartitionkey%27,RowKey=%27myrowkey%27%29
63 HTTP/1.1\r\nAccept: application/json;odata=minimalmetadata\r\nContent-Type:
64 application/json\r\nPrefer: return-no-content\r\n\r\n{\"AmountDue\":\"200.23\",\"AmountDue@odata.type\":\"Edm.Double\",\"CustomerCode\":\"c9da6455-213d-42c9-9a79-3e9149a57833\",\"CustomerCode@odata.type\":\"Edm.Guid\",\"CustomerSince\":\"1992-12-20T21:55:00Z\",\"CustomerSince@odata.type\":\"Edm.DateTime\",\"IsActive\":true,\"NumberOfOrders\":\"255\",\"NumberOfOrders@odata.type\":\"Edm.Int64\",\"PartitionKey\":\"mypartitionkey\",\"RowKey\":\"myrowkey\"}\r\n--changeset_ea95571b-53fc-41f3-b2d0-40f8778c071b--\r\n\r\n--batch_646079c8-c155-4396-833c-9ef556ad28fa--\r\n"
65 form: {}
66 headers:
67 Authorization:
68 - SharedKey golangrocksonazure:OqI3Bw6l+MOe2vwJ8BiIl1j+mZDTjzJphcPCbihm/ZA=
69 Content-Type:
70 - multipart/mixed; boundary=batch_646079c8-c155-4396-833c-9ef556ad28fa
71 User-Agent:
72 - Go/go1.15.1 (amd64-windows) azure-storage-go/v52.6.0 api-version/2018-03-28
73 table
74 X-Ms-Date:
75 - Tue, 13 Apr 2021 15:57:57 GMT
76 X-Ms-Version:
77 - "2018-03-28"
78 url: https://golangrocksonazure.table.core.windows.net/$batch
79 method: POST
80 response:
81 body: "--batchresponse_e6ccdcb0-628b-4d74-8ea0-6a8a22d8cc3e\r\nContent-Type: multipart/mixed;
82 boundary=changesetresponse_6e9f5be0-97fd-4b50-87af-0155cec5cd2f\r\n\r\n--changesetresponse_6e9f5be0-97fd-4b50-87af-0155cec5cd2f\r\nContent-Type:
83 application/http\r\nContent-Transfer-Encoding: binary\r\n\r\nHTTP/1.1 400 Bad
84 Request\r\nX-Content-Type-Options: nosniff\r\nCache-Control: no-cache\r\nPreference-Applied:
85 return-no-content\r\nDataServiceVersion: 3.0;\r\nContent-Type: application/json;odata=minimalmetadata;streaming=true;charset=utf-8\r\n\r\n{\"odata.error\":{\"code\":\"InvalidDuplicateRow\",\"message\":{\"lang\":\"en-US\",\"value\":\"1:The
86 batch request contains multiple changes with same row key. An entity can appear
87 only once in a batch request.\\nRequestId:21520b09-6002-0019-287d-301f56000000\\nTime:2021-04-13T15:57:57.6102683Z\"}}}\r\n--changesetresponse_6e9f5be0-97fd-4b50-87af-0155cec5cd2f--\r\n--batchresponse_e6ccdcb0-628b-4d74-8ea0-6a8a22d8cc3e--\r\n"
88 headers:
89 Cache-Control:
90 - no-cache
91 Content-Type:
92 - multipart/mixed; boundary=batchresponse_e6ccdcb0-628b-4d74-8ea0-6a8a22d8cc3e
93 Date:
94 - Tue, 13 Apr 2021 15:57:56 GMT
95 Server:
96 - Windows-Azure-Table/1.0 Microsoft-HTTPAPI/2.0
97 X-Content-Type-Options:
98 - nosniff
99 X-Ms-Request-Id:
100 - 21520b09-6002-0019-287d-301f56000000
101 X-Ms-Version:
102 - "2018-03-28"
103 status: 202 Accepted
104 code: 202
105 duration: ""
106- request:
107 body: ""
108 form: {}
109 headers:
110 Accept:
111 - application/json;odata=nometadata
112 Authorization:
113 - SharedKey golangrocksonazure:KiViTvqkhn4Mblq3GezMHjhCi29kFzJd2Xhvw1Un+w8=
114 Prefer:
115 - return-no-content
116 User-Agent:
117 - Go/go1.15.1 (amd64-windows) azure-storage-go/v52.6.0 api-version/2018-03-28
118 table
119 x-ms-date:
120 - Tue, 13 Apr 2021 15:57:57 GMT
121 x-ms-version:
122 - "2018-03-28"
123 url: https://golangrocksonazure.table.core.windows.net/Tables%28%27table54tablebatchsuitetestbatchi%27%29?timeout=30
124 method: DELETE
125 response:
126 body: ""
127 headers:
128 Cache-Control:
129 - no-cache
130 Content-Length:
131 - "0"
132 Date:
133 - Tue, 13 Apr 2021 15:57:56 GMT
134 Server:
135 - Windows-Azure-Table/1.0 Microsoft-HTTPAPI/2.0
136 X-Content-Type-Options:
137 - nosniff
138 X-Ms-Request-Id:
139 - 21520b0b-6002-0019-2a7d-301f56000000
140 X-Ms-Version:
141 - "2018-03-28"
142 status: 204 No Content
143 code: 204
144 duration: ""
View as plain text