...

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

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

     1---
     2version: 1
     3interactions:
     4- request:
     5    body: |
     6      {"TableName":"tableme48tablebatchsuitetestbatc"}
     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('tableme48tablebatchsuitetestbatc')
    39      Date:
    40      - Tue, 13 Apr 2021 15:57:56 GMT
    41      Location:
    42      - https://golangrocksonazure.table.core.windows.net/Tables('tableme48tablebatchsuitetestbatc')
    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      - 21520ad6-6002-0019-7a7d-301f56000000
    51      X-Ms-Version:
    52      - "2018-03-28"
    53    status: 204 No Content
    54    code: 204
    55    duration: ""
    56- request:
    57    body: "--batch_e4fd2ca4-9a7c-48ec-81b7-10f9e9c4e34b\r\nContent-Type: multipart/mixed;
    58      boundary=changeset_a8f839cd-d27c-44a3-a942-bd478489442f\r\n\r\n\r\n--changeset_a8f839cd-d27c-44a3-a942-bd478489442f\r\nContent-Transfer-Encoding:
    59      binary\r\nContent-Type: application/http\r\n\r\nPUT https://golangrocksonazure.table.core.windows.net/tableme48tablebatchsuitetestbatc%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_a8f839cd-d27c-44a3-a942-bd478489442f\r\nContent-Transfer-Encoding:
    62      binary\r\nContent-Type: application/http\r\n\r\nPUT https://golangrocksonazure.table.core.windows.net/tableme48tablebatchsuitetestbatc%28PartitionKey=%27mypartitionkey%27,RowKey=%27myrowkey2%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\":\"111.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\":\"myrowkey2\"}\r\n--changeset_a8f839cd-d27c-44a3-a942-bd478489442f--\r\n\r\n--batch_e4fd2ca4-9a7c-48ec-81b7-10f9e9c4e34b--\r\n"
    65    form: {}
    66    headers:
    67      Authorization:
    68      - SharedKey golangrocksonazure:Atsn2U0hli2PL/y2wQMH5PMKLwZM3l/hdjEsgGqmhFE=
    69      Content-Type:
    70      - multipart/mixed; boundary=batch_e4fd2ca4-9a7c-48ec-81b7-10f9e9c4e34b
    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_b262a732-800c-4684-8544-0beb50ec6c7d\r\nContent-Type: multipart/mixed;
    82      boundary=changesetresponse_d82442ff-3330-4101-8a63-4d47adccf8d3\r\n\r\n--changesetresponse_d82442ff-3330-4101-8a63-4d47adccf8d3\r\nContent-Type:
    83      application/http\r\nContent-Transfer-Encoding: binary\r\n\r\nHTTP/1.1 204 No
    84      Content\r\nX-Content-Type-Options: nosniff\r\nCache-Control: no-cache\r\nPreference-Applied:
    85      return-no-content\r\nDataServiceVersion: 3.0;\r\nETag: W/\"datetime'2021-04-13T15%3A57%3A57.4260683Z'\"\r\n\r\n\r\n--changesetresponse_d82442ff-3330-4101-8a63-4d47adccf8d3\r\nContent-Type:
    86      application/http\r\nContent-Transfer-Encoding: binary\r\n\r\nHTTP/1.1 204 No
    87      Content\r\nX-Content-Type-Options: nosniff\r\nCache-Control: no-cache\r\nPreference-Applied:
    88      return-no-content\r\nDataServiceVersion: 3.0;\r\nETag: W/\"datetime'2021-04-13T15%3A57%3A57.4270693Z'\"\r\n\r\n\r\n--changesetresponse_d82442ff-3330-4101-8a63-4d47adccf8d3--\r\n--batchresponse_b262a732-800c-4684-8544-0beb50ec6c7d--\r\n"
    89    headers:
    90      Cache-Control:
    91      - no-cache
    92      Content-Type:
    93      - multipart/mixed; boundary=batchresponse_b262a732-800c-4684-8544-0beb50ec6c7d
    94      Date:
    95      - Tue, 13 Apr 2021 15:57:56 GMT
    96      Server:
    97      - Windows-Azure-Table/1.0 Microsoft-HTTPAPI/2.0
    98      X-Content-Type-Options:
    99      - nosniff
   100      X-Ms-Request-Id:
   101      - 21520ae0-6002-0019-037d-301f56000000
   102      X-Ms-Version:
   103      - "2018-03-28"
   104    status: 202 Accepted
   105    code: 202
   106    duration: ""
   107- request:
   108    body: ""
   109    form: {}
   110    headers:
   111      Accept:
   112      - application/json;odata=fullmetadata
   113      Authorization:
   114      - SharedKey golangrocksonazure:xlroYt9KjKQwPiC2pjvlzKufMeFX7EjV4n3wpZZmC08=
   115      User-Agent:
   116      - Go/go1.15.1 (amd64-windows) azure-storage-go/v52.6.0 api-version/2018-03-28
   117        table
   118      x-ms-date:
   119      - Tue, 13 Apr 2021 15:57:57 GMT
   120      x-ms-version:
   121      - "2018-03-28"
   122    url: https://golangrocksonazure.table.core.windows.net/tableme48tablebatchsuitetestbatc?%24top=2&timeout=30
   123    method: GET
   124  response:
   125    body: '{"odata.metadata":"https://golangrocksonazure.table.core.windows.net/$metadata#tableme48tablebatchsuitetestbatc","value":[{"odata.type":"golangrocksonazure.tableme48tablebatchsuitetestbatc","odata.id":"https://golangrocksonazure.table.core.windows.net/tableme48tablebatchsuitetestbatc(PartitionKey=''mypartitionkey'',RowKey=''myrowkey'')","odata.etag":"W/\"datetime''2021-04-13T15%3A57%3A57.4260683Z''\"","odata.editLink":"tableme48tablebatchsuitetestbatc(PartitionKey=''mypartitionkey'',RowKey=''myrowkey'')","PartitionKey":"mypartitionkey","RowKey":"myrowkey","Timestamp@odata.type":"Edm.DateTime","Timestamp":"2021-04-13T15:57:57.4260683Z","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"},{"odata.type":"golangrocksonazure.tableme48tablebatchsuitetestbatc","odata.id":"https://golangrocksonazure.table.core.windows.net/tableme48tablebatchsuitetestbatc(PartitionKey=''mypartitionkey'',RowKey=''myrowkey2'')","odata.etag":"W/\"datetime''2021-04-13T15%3A57%3A57.4270693Z''\"","odata.editLink":"tableme48tablebatchsuitetestbatc(PartitionKey=''mypartitionkey'',RowKey=''myrowkey2'')","PartitionKey":"mypartitionkey","RowKey":"myrowkey2","Timestamp@odata.type":"Edm.DateTime","Timestamp":"2021-04-13T15:57:57.4270693Z","AmountDue":111.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"}]}'
   126    headers:
   127      Cache-Control:
   128      - no-cache
   129      Content-Type:
   130      - application/json;odata=fullmetadata;streaming=true;charset=utf-8
   131      Date:
   132      - Tue, 13 Apr 2021 15:57:56 GMT
   133      Server:
   134      - Windows-Azure-Table/1.0 Microsoft-HTTPAPI/2.0
   135      X-Content-Type-Options:
   136      - nosniff
   137      X-Ms-Request-Id:
   138      - 21520aec-6002-0019-0e7d-301f56000000
   139      X-Ms-Version:
   140      - "2018-03-28"
   141    status: 200 OK
   142    code: 200
   143    duration: ""
   144- request:
   145    body: ""
   146    form: {}
   147    headers:
   148      Accept:
   149      - application/json;odata=nometadata
   150      Authorization:
   151      - SharedKey golangrocksonazure:s1XgR4zndlmOxBnOlgeuiDVv5iOqpa0WNszAjCEVM3g=
   152      Prefer:
   153      - return-no-content
   154      User-Agent:
   155      - Go/go1.15.1 (amd64-windows) azure-storage-go/v52.6.0 api-version/2018-03-28
   156        table
   157      x-ms-date:
   158      - Tue, 13 Apr 2021 15:57:57 GMT
   159      x-ms-version:
   160      - "2018-03-28"
   161    url: https://golangrocksonazure.table.core.windows.net/Tables%28%27tableme48tablebatchsuitetestbatc%27%29?timeout=30
   162    method: DELETE
   163  response:
   164    body: ""
   165    headers:
   166      Cache-Control:
   167      - no-cache
   168      Content-Length:
   169      - "0"
   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      - 21520af4-6002-0019-157d-301f56000000
   178      X-Ms-Version:
   179      - "2018-03-28"
   180    status: 204 No Content
   181    code: 204
   182    duration: ""

View as plain text