...

Text file src/github.com/Azure/azure-sdk-for-go/storage/recordings/TableBatchSuite/Test_BatchInsertThenDeleteDifferentBatches.yaml

Documentation: github.com/Azure/azure-sdk-for-go/storage/recordings/TableBatchSuite

     1---
     2version: 1
     3interactions:
     4- request:
     5    body: |
     6      {"TableName":"table58tablebatchsuitetestbatchi"}
     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('table58tablebatchsuitetestbatchi')
    39      Date:
    40      - Tue, 13 Apr 2021 15:57:56 GMT
    41      Location:
    42      - https://golangrocksonazure.table.core.windows.net/Tables('table58tablebatchsuitetestbatchi')
    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      - 21520b0d-6002-0019-2c7d-301f56000000
    51      X-Ms-Version:
    52      - "2018-03-28"
    53    status: 204 No Content
    54    code: 204
    55    duration: ""
    56- request:
    57    body: "--batch_463728a9-8c32-4302-8ef2-4340a51407c5\r\nContent-Type: multipart/mixed;
    58      boundary=changeset_64f00e67-85fa-4deb-9a4f-99546b070285\r\n\r\n\r\n--changeset_64f00e67-85fa-4deb-9a4f-99546b070285\r\nContent-Transfer-Encoding:
    59      binary\r\nContent-Type: application/http\r\n\r\nPUT https://golangrocksonazure.table.core.windows.net/table58tablebatchsuitetestbatchi%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_64f00e67-85fa-4deb-9a4f-99546b070285--\r\n\r\n--batch_463728a9-8c32-4302-8ef2-4340a51407c5--\r\n"
    62    form: {}
    63    headers:
    64      Authorization:
    65      - SharedKey golangrocksonazure:ABCNJyRvlSwG9G5MEDVHOv/Tr0lH15GnlVrQujU6dCM=
    66      Content-Type:
    67      - multipart/mixed; boundary=batch_463728a9-8c32-4302-8ef2-4340a51407c5
    68      User-Agent:
    69      - Go/go1.15.1 (amd64-windows) azure-storage-go/v52.6.0 api-version/2018-03-28
    70        table
    71      X-Ms-Date:
    72      - Tue, 13 Apr 2021 15:57:58 GMT
    73      X-Ms-Version:
    74      - "2018-03-28"
    75    url: https://golangrocksonazure.table.core.windows.net/$batch
    76    method: POST
    77  response:
    78    body: "--batchresponse_6e7f4a82-1402-485d-a925-74658ada2379\r\nContent-Type: multipart/mixed;
    79      boundary=changesetresponse_7ec3861a-2ed5-4b01-8b88-cc7c4a36268c\r\n\r\n--changesetresponse_7ec3861a-2ed5-4b01-8b88-cc7c4a36268c\r\nContent-Type:
    80      application/http\r\nContent-Transfer-Encoding: binary\r\n\r\nHTTP/1.1 204 No
    81      Content\r\nX-Content-Type-Options: nosniff\r\nCache-Control: no-cache\r\nPreference-Applied:
    82      return-no-content\r\nDataServiceVersion: 3.0;\r\nETag: W/\"datetime'2021-04-13T15%3A57%3A57.838362Z'\"\r\n\r\n\r\n--changesetresponse_7ec3861a-2ed5-4b01-8b88-cc7c4a36268c--\r\n--batchresponse_6e7f4a82-1402-485d-a925-74658ada2379--\r\n"
    83    headers:
    84      Cache-Control:
    85      - no-cache
    86      Content-Type:
    87      - multipart/mixed; boundary=batchresponse_6e7f4a82-1402-485d-a925-74658ada2379
    88      Date:
    89      - Tue, 13 Apr 2021 15:57:56 GMT
    90      Server:
    91      - Windows-Azure-Table/1.0 Microsoft-HTTPAPI/2.0
    92      X-Content-Type-Options:
    93      - nosniff
    94      X-Ms-Request-Id:
    95      - 21520b1b-6002-0019-397d-301f56000000
    96      X-Ms-Version:
    97      - "2018-03-28"
    98    status: 202 Accepted
    99    code: 202
   100    duration: ""
   101- request:
   102    body: ""
   103    form: {}
   104    headers:
   105      Accept:
   106      - application/json;odata=fullmetadata
   107      Authorization:
   108      - SharedKey golangrocksonazure:XvyJyU6gnjY9VFDAUnxo/P8DfooiGvRhJaSWPsUj7CA=
   109      User-Agent:
   110      - Go/go1.15.1 (amd64-windows) azure-storage-go/v52.6.0 api-version/2018-03-28
   111        table
   112      x-ms-date:
   113      - Tue, 13 Apr 2021 15:57:58 GMT
   114      x-ms-version:
   115      - "2018-03-28"
   116    url: https://golangrocksonazure.table.core.windows.net/table58tablebatchsuitetestbatchi?%24top=2&timeout=30
   117    method: GET
   118  response:
   119    body: '{"odata.metadata":"https://golangrocksonazure.table.core.windows.net/$metadata#table58tablebatchsuitetestbatchi","value":[{"odata.type":"golangrocksonazure.table58tablebatchsuitetestbatchi","odata.id":"https://golangrocksonazure.table.core.windows.net/table58tablebatchsuitetestbatchi(PartitionKey=''mypartitionkey'',RowKey=''myrowkey'')","odata.etag":"W/\"datetime''2021-04-13T15%3A57%3A57.838362Z''\"","odata.editLink":"table58tablebatchsuitetestbatchi(PartitionKey=''mypartitionkey'',RowKey=''myrowkey'')","PartitionKey":"mypartitionkey","RowKey":"myrowkey","Timestamp@odata.type":"Edm.DateTime","Timestamp":"2021-04-13T15:57:57.838362Z","AmountDue":200.23,"CustomerCode@odata.type":"Edm.Guid","CustomerCode":"c9da6455-213d-42c9-9a79-3e9149a57833","CustomerSince@odata.type":"Edm.DateTime","CustomerSince":"1992-12-20T21:55:00Z","IsActive":true,"NumberOfOrders@odata.type":"Edm.Int64","NumberOfOrders":"255"}]}'
   120    headers:
   121      Cache-Control:
   122      - no-cache
   123      Content-Type:
   124      - application/json;odata=fullmetadata;streaming=true;charset=utf-8
   125      Date:
   126      - Tue, 13 Apr 2021 15:57:56 GMT
   127      Server:
   128      - Windows-Azure-Table/1.0 Microsoft-HTTPAPI/2.0
   129      X-Content-Type-Options:
   130      - nosniff
   131      X-Ms-Request-Id:
   132      - 21520b24-6002-0019-417d-301f56000000
   133      X-Ms-Version:
   134      - "2018-03-28"
   135    status: 200 OK
   136    code: 200
   137    duration: ""
   138- request:
   139    body: "--batch_7cde8db8-8c64-4377-a794-3984f72bcbdf\r\nContent-Type: multipart/mixed;
   140      boundary=changeset_1d5598c0-9095-4552-8733-ed059bc4738b\r\n\r\n\r\n--changeset_1d5598c0-9095-4552-8733-ed059bc4738b\r\nContent-Transfer-Encoding:
   141      binary\r\nContent-Type: application/http\r\n\r\nDELETE https://golangrocksonazure.table.core.windows.net/table58tablebatchsuitetestbatchi%28PartitionKey=%27mypartitionkey%27,RowKey=%27myrowkey%27%29
   142      HTTP/1.1\r\nAccept: application/json;odata=minimalmetadata\r\nContent-Type:
   143      application/json\r\nIf-Match: *\r\nPrefer: return-no-content\r\n\r\n\r\n--changeset_1d5598c0-9095-4552-8733-ed059bc4738b--\r\n\r\n--batch_7cde8db8-8c64-4377-a794-3984f72bcbdf--\r\n"
   144    form: {}
   145    headers:
   146      Authorization:
   147      - SharedKey golangrocksonazure:OXrsNHf/4YZVXwchCC0NW3c3bi9uoAK7JUssGvabvTs=
   148      Content-Type:
   149      - multipart/mixed; boundary=batch_7cde8db8-8c64-4377-a794-3984f72bcbdf
   150      User-Agent:
   151      - Go/go1.15.1 (amd64-windows) azure-storage-go/v52.6.0 api-version/2018-03-28
   152        table
   153      X-Ms-Date:
   154      - Tue, 13 Apr 2021 15:57:58 GMT
   155      X-Ms-Version:
   156      - "2018-03-28"
   157    url: https://golangrocksonazure.table.core.windows.net/$batch
   158    method: POST
   159  response:
   160    body: "--batchresponse_e1d0d4c4-2873-44f3-a80b-f70dc5641d64\r\nContent-Type: multipart/mixed;
   161      boundary=changesetresponse_23244772-d3da-4bfb-94c2-753f596ba86f\r\n\r\n--changesetresponse_23244772-d3da-4bfb-94c2-753f596ba86f\r\nContent-Type:
   162      application/http\r\nContent-Transfer-Encoding: binary\r\n\r\nHTTP/1.1 204 No
   163      Content\r\nX-Content-Type-Options: nosniff\r\nCache-Control: no-cache\r\nDataServiceVersion:
   164      1.0;\r\n\r\n\r\n--changesetresponse_23244772-d3da-4bfb-94c2-753f596ba86f--\r\n--batchresponse_e1d0d4c4-2873-44f3-a80b-f70dc5641d64--\r\n"
   165    headers:
   166      Cache-Control:
   167      - no-cache
   168      Content-Type:
   169      - multipart/mixed; boundary=batchresponse_e1d0d4c4-2873-44f3-a80b-f70dc5641d64
   170      Date:
   171      - Tue, 13 Apr 2021 15:57:56 GMT
   172      Server:
   173      - Windows-Azure-Table/1.0 Microsoft-HTTPAPI/2.0
   174      X-Content-Type-Options:
   175      - nosniff
   176      X-Ms-Request-Id:
   177      - 21520b25-6002-0019-427d-301f56000000
   178      X-Ms-Version:
   179      - "2018-03-28"
   180    status: 202 Accepted
   181    code: 202
   182    duration: ""
   183- request:
   184    body: ""
   185    form: {}
   186    headers:
   187      Accept:
   188      - application/json;odata=fullmetadata
   189      Authorization:
   190      - SharedKey golangrocksonazure:XvyJyU6gnjY9VFDAUnxo/P8DfooiGvRhJaSWPsUj7CA=
   191      User-Agent:
   192      - Go/go1.15.1 (amd64-windows) azure-storage-go/v52.6.0 api-version/2018-03-28
   193        table
   194      x-ms-date:
   195      - Tue, 13 Apr 2021 15:57:58 GMT
   196      x-ms-version:
   197      - "2018-03-28"
   198    url: https://golangrocksonazure.table.core.windows.net/table58tablebatchsuitetestbatchi?%24top=2&timeout=15
   199    method: GET
   200  response:
   201    body: '{"odata.metadata":"https://golangrocksonazure.table.core.windows.net/$metadata#table58tablebatchsuitetestbatchi","value":[]}'
   202    headers:
   203      Cache-Control:
   204      - no-cache
   205      Content-Type:
   206      - application/json;odata=fullmetadata;streaming=true;charset=utf-8
   207      Date:
   208      - Tue, 13 Apr 2021 15:57:57 GMT
   209      Server:
   210      - Windows-Azure-Table/1.0 Microsoft-HTTPAPI/2.0
   211      X-Content-Type-Options:
   212      - nosniff
   213      X-Ms-Request-Id:
   214      - 21520b2c-6002-0019-477d-301f56000000
   215      X-Ms-Version:
   216      - "2018-03-28"
   217    status: 200 OK
   218    code: 200
   219    duration: ""
   220- request:
   221    body: ""
   222    form: {}
   223    headers:
   224      Accept:
   225      - application/json;odata=nometadata
   226      Authorization:
   227      - SharedKey golangrocksonazure:PzODRfv5eIK5f1cptpgCURHG4Vw+461t5xKjZr1pHSk=
   228      Prefer:
   229      - return-no-content
   230      User-Agent:
   231      - Go/go1.15.1 (amd64-windows) azure-storage-go/v52.6.0 api-version/2018-03-28
   232        table
   233      x-ms-date:
   234      - Tue, 13 Apr 2021 15:57:58 GMT
   235      x-ms-version:
   236      - "2018-03-28"
   237    url: https://golangrocksonazure.table.core.windows.net/Tables%28%27table58tablebatchsuitetestbatchi%27%29?timeout=30
   238    method: DELETE
   239  response:
   240    body: ""
   241    headers:
   242      Cache-Control:
   243      - no-cache
   244      Content-Length:
   245      - "0"
   246      Date:
   247      - Tue, 13 Apr 2021 15:57:57 GMT
   248      Server:
   249      - Windows-Azure-Table/1.0 Microsoft-HTTPAPI/2.0
   250      X-Content-Type-Options:
   251      - nosniff
   252      X-Ms-Request-Id:
   253      - 21520b2d-6002-0019-487d-301f56000000
   254      X-Ms-Version:
   255      - "2018-03-28"
   256    status: 204 No Content
   257    code: 204
   258    duration: ""

View as plain text