...
1---
2version: 1
3interactions:
4- request:
5 body: |
6 {"TableName":"table48tablebatchsuitetestbatchi"}
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('table48tablebatchsuitetestbatchi')
39 Date:
40 - Tue, 13 Apr 2021 15:57:56 GMT
41 Location:
42 - https://golangrocksonazure.table.core.windows.net/Tables('table48tablebatchsuitetestbatchi')
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 - 21520aa9-6002-0019-4f7d-301f56000000
51 X-Ms-Version:
52 - "2018-03-28"
53 status: 204 No Content
54 code: 204
55 duration: ""
56- request:
57 body: "--batch_03952a3a-21e1-4b1f-b40f-f6fdbf53ad7b\r\nContent-Type: multipart/mixed;
58 boundary=changeset_80e82a4a-4b45-4d24-8002-6bb81d607742\r\n\r\n\r\n--changeset_80e82a4a-4b45-4d24-8002-6bb81d607742\r\nContent-Transfer-Encoding:
59 binary\r\nContent-Type: application/http\r\n\r\nPUT https://golangrocksonazure.table.core.windows.net/table48tablebatchsuitetestbatchi%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_80e82a4a-4b45-4d24-8002-6bb81d607742\r\nContent-Transfer-Encoding:
62 binary\r\nContent-Type: application/http\r\n\r\nDELETE https://golangrocksonazure.table.core.windows.net/table48tablebatchsuitetestbatchi%28PartitionKey=%27mypartitionkey%27,RowKey=%27myrowkey%27%29
63 HTTP/1.1\r\nAccept: application/json;odata=minimalmetadata\r\nContent-Type:
64 application/json\r\nIf-Match: *\r\nPrefer: return-no-content\r\n\r\n\r\n--changeset_80e82a4a-4b45-4d24-8002-6bb81d607742--\r\n\r\n--batch_03952a3a-21e1-4b1f-b40f-f6fdbf53ad7b--\r\n"
65 form: {}
66 headers:
67 Authorization:
68 - SharedKey golangrocksonazure:UOl/IivuqBGGCp6tOZ/wg2vIxHDXHecj1iZR3tT9cSg=
69 Content-Type:
70 - multipart/mixed; boundary=batch_03952a3a-21e1-4b1f-b40f-f6fdbf53ad7b
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_2c8f9985-f8b5-4d64-b2d2-b98a7f3b64ef\r\nContent-Type: multipart/mixed;
82 boundary=changesetresponse_ad55ce80-4352-4a96-a451-ea97b6ae6ccf\r\n\r\n--changesetresponse_ad55ce80-4352-4a96-a451-ea97b6ae6ccf\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\nDataServiceVersion:
85 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:21520ab9-6002-0019-5e7d-301f56000000\\nTime:2021-04-13T15:57:57.2109830Z\"}}}\r\n--changesetresponse_ad55ce80-4352-4a96-a451-ea97b6ae6ccf--\r\n--batchresponse_2c8f9985-f8b5-4d64-b2d2-b98a7f3b64ef--\r\n"
88 headers:
89 Cache-Control:
90 - no-cache
91 Content-Type:
92 - multipart/mixed; boundary=batchresponse_2c8f9985-f8b5-4d64-b2d2-b98a7f3b64ef
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 - 21520ab9-6002-0019-5e7d-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:VL8T5Lb3aGuKJOvHhF7KMLWb4g33DYi88ExYLs5NXWA=
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%27table48tablebatchsuitetestbatchi%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 - 21520ac5-6002-0019-6a7d-301f56000000
140 X-Ms-Version:
141 - "2018-03-28"
142 status: 204 No Content
143 code: 204
144 duration: ""
View as plain text