File: test_table_encryption.test_get_payload_formats.yaml

package info (click to toggle)
azure-cosmos-table-python 1.0.5%2Bgit20191025-5
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 6,140 kB
  • sloc: python: 8,856; makefile: 265; sh: 7
file content (224 lines) | stat: -rw-r--r-- 15,427 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
interactions:
- request:
    body: '{"PartitionKey": "pkbe9d1303", "RowKey": "rkbe9d1303fullmetadata", "age":
      "39", "age@odata.type": "Edm.Int64", "sex": "o67GQ0xZmJTZZip05F3yaQ==", "sex@odata.type":
      "Edm.Binary", "name": "gCe8sgkEAOavKUsHO3M9wQ==", "name@odata.type": "Edm.Binary",
      "married": true, "deceased": false, "optional": null, "evenratio": 3.0, "ratio":
      3.1, "large": "933311100", "large@odata.type": "Edm.Int64", "Birthday": "1973-10-04T00:00:00Z",
      "Birthday@odata.type": "Edm.DateTime", "birthday": "1970-10-04T00:00:00Z", "birthday@odata.type":
      "Edm.DateTime", "binary": "YmluYXJ5", "binary@odata.type": "Edm.Binary", "other":
      20, "clsid": "c9da6455-213d-42c9-9a79-3e9149a57833", "clsid@odata.type": "Edm.Guid",
      "_ClientEncryptionMetadata2": "ztOikynGSBhxslPeE3dHAQ==", "_ClientEncryptionMetadata2@odata.type":
      "Edm.Binary", "_ClientEncryptionMetadata1": "{\"WrappedContentKey\": {\"KeyId\":
      \"key1\", \"EncryptedKey\": \"dvhwi5pdKNStXebl+IlhEqnsBFVqb3ULF5fIqGnFAG7kQfijWyQG9A==\",
      \"Algorithm\": \"A256KW\"}, \"EncryptionAgent\": {\"Protocol\": \"1.0\", \"EncryptionAlgorithm\":
      \"AES_CBC_256\"}, \"ContentEncryptionIV\": \"8x73yN1fY02W3c8mXWXHmg==\", \"KeyWrappingMetadata\":
      {\"EncryptionLibrary\": \"Python 0.37.1\"}}"}'
    headers:
      Accept: [application/json;odata=minimalmetadata]
      Connection: [keep-alive]
      Content-Length: ['1200']
      Content-Type: [application/json]
      DataServiceVersion: [3.0;NetFx]
      MaxDataServiceVersion: ['3.0']
      Prefer: [return-no-content]
      User-Agent: [Azure-Storage/0.37.1-None (Python CPython 3.6.0; Windows 10)]
      x-ms-client-request-id: [0ae3fcf4-c5c1-11e7-bec6-a08cfdf04b77]
      x-ms-date: ['Fri, 10 Nov 2017 02:44:16 GMT']
      x-ms-version: ['2017-04-17']
    method: POST
    uri: https://storagename.table.core.windows.net/uttablebe9d1303
  response:
    body: {string: ''}
    headers:
      Cache-Control: [no-cache]
      Content-Length: ['0']
      DataServiceId: ['https://storagename.table.core.windows.net/uttablebe9d1303(PartitionKey=''pkbe9d1303'',RowKey=''rkbe9d1303fullmetadata'')']
      Date: ['Fri, 10 Nov 2017 02:44:15 GMT']
      ETag: [W/"datetime'2017-11-10T02%3A44%3A16.2949326Z'"]
      Location: ['https://storagename.table.core.windows.net/uttablebe9d1303(PartitionKey=''pkbe9d1303'',RowKey=''rkbe9d1303fullmetadata'')']
      Preference-Applied: [return-no-content]
      Server: [Windows-Azure-Table/1.0 Microsoft-HTTPAPI/2.0]
      X-Content-Type-Options: [nosniff]
      x-ms-request-id: [f066dea1-0002-011b-1bcd-59cbbd000000]
      x-ms-version: ['2017-04-17']
    status: {code: 204, message: No Content}
- request:
    body: null
    headers:
      Accept: [application/json;odata=fullmetadata]
      Connection: [keep-alive]
      DataServiceVersion: [3.0;NetFx]
      MaxDataServiceVersion: ['3.0']
      User-Agent: [Azure-Storage/0.37.1-None (Python CPython 3.6.0; Windows 10)]
      x-ms-client-request-id: [0b243264-c5c1-11e7-9889-a08cfdf04b77]
      x-ms-date: ['Fri, 10 Nov 2017 02:44:16 GMT']
      x-ms-version: ['2017-04-17']
    method: GET
    uri: https://storagename.table.core.windows.net/uttablebe9d1303(PartitionKey='pkbe9d1303',RowKey='rkbe9d1303fullmetadata')
  response:
    body: {string: '{"odata.metadata":"https://storagename.table.core.windows.net/$metadata#uttablebe9d1303/@Element","odata.type":"storagename.uttablebe9d1303","odata.id":"https://storagename.table.core.windows.net/uttablebe9d1303(PartitionKey=''pkbe9d1303'',RowKey=''rkbe9d1303fullmetadata'')","odata.etag":"W/\"datetime''2017-11-10T02%3A44%3A16.2949326Z''\"","odata.editLink":"uttablebe9d1303(PartitionKey=''pkbe9d1303'',RowKey=''rkbe9d1303fullmetadata'')","PartitionKey":"pkbe9d1303","RowKey":"rkbe9d1303fullmetadata","Timestamp@odata.type":"Edm.DateTime","Timestamp":"2017-11-10T02:44:16.2949326Z","age@odata.type":"Edm.Int64","age":"39","sex@odata.type":"Edm.Binary","sex":"o67GQ0xZmJTZZip05F3yaQ==","name@odata.type":"Edm.Binary","name":"gCe8sgkEAOavKUsHO3M9wQ==","married":true,"deceased":false,"evenratio":3.0,"ratio":3.1,"large@odata.type":"Edm.Int64","large":"933311100","Birthday@odata.type":"Edm.DateTime","Birthday":"1973-10-04T00:00:00Z","birthday@odata.type":"Edm.DateTime","birthday":"1970-10-04T00:00:00Z","binary@odata.type":"Edm.Binary","binary":"YmluYXJ5","other":20,"clsid@odata.type":"Edm.Guid","clsid":"c9da6455-213d-42c9-9a79-3e9149a57833","_ClientEncryptionMetadata2@odata.type":"Edm.Binary","_ClientEncryptionMetadata2":"ztOikynGSBhxslPeE3dHAQ==","_ClientEncryptionMetadata1":"{\"WrappedContentKey\":
        {\"KeyId\": \"key1\", \"EncryptedKey\": \"dvhwi5pdKNStXebl+IlhEqnsBFVqb3ULF5fIqGnFAG7kQfijWyQG9A==\",
        \"Algorithm\": \"A256KW\"}, \"EncryptionAgent\": {\"Protocol\": \"1.0\", \"EncryptionAlgorithm\":
        \"AES_CBC_256\"}, \"ContentEncryptionIV\": \"8x73yN1fY02W3c8mXWXHmg==\", \"KeyWrappingMetadata\":
        {\"EncryptionLibrary\": \"Python 0.37.1\"}}"}'}
    headers:
      Cache-Control: [no-cache]
      Content-Type: [application/json;odata=fullmetadata;streaming=true;charset=utf-8]
      Date: ['Fri, 10 Nov 2017 02:44:15 GMT']
      ETag: [W/"datetime'2017-11-10T02%3A44%3A16.2949326Z'"]
      Server: [Windows-Azure-Table/1.0 Microsoft-HTTPAPI/2.0]
      Transfer-Encoding: [chunked]
      X-Content-Type-Options: [nosniff]
      x-ms-request-id: [f066dea8-0002-011b-20cd-59cbbd000000]
      x-ms-version: ['2017-04-17']
    status: {code: 200, message: OK}
- request:
    body: '{"PartitionKey": "pkbe9d1303", "RowKey": "rkbe9d1303minimalmetadata", "age":
      "39", "age@odata.type": "Edm.Int64", "sex": "DXqPdw2BcnwQDqxJbKNuMA==", "sex@odata.type":
      "Edm.Binary", "name": "UuUgE9stpSjBluaa4q6N+Q==", "name@odata.type": "Edm.Binary",
      "married": true, "deceased": false, "optional": null, "evenratio": 3.0, "ratio":
      3.1, "large": "933311100", "large@odata.type": "Edm.Int64", "Birthday": "1973-10-04T00:00:00Z",
      "Birthday@odata.type": "Edm.DateTime", "birthday": "1970-10-04T00:00:00Z", "birthday@odata.type":
      "Edm.DateTime", "binary": "YmluYXJ5", "binary@odata.type": "Edm.Binary", "other":
      20, "clsid": "c9da6455-213d-42c9-9a79-3e9149a57833", "clsid@odata.type": "Edm.Guid",
      "_ClientEncryptionMetadata2": "ImOa6wxbbSlXphAKgAKIxQ==", "_ClientEncryptionMetadata2@odata.type":
      "Edm.Binary", "_ClientEncryptionMetadata1": "{\"WrappedContentKey\": {\"KeyId\":
      \"key1\", \"EncryptedKey\": \"DsmNlMY1aWvMsGc1Xxvn5M3Pb9/I91oWt+cyvrM5+6agYxzeoGvU0w==\",
      \"Algorithm\": \"A256KW\"}, \"EncryptionAgent\": {\"Protocol\": \"1.0\", \"EncryptionAlgorithm\":
      \"AES_CBC_256\"}, \"ContentEncryptionIV\": \"w85h1gR4rOsB5B2cxyxRSg==\", \"KeyWrappingMetadata\":
      {\"EncryptionLibrary\": \"Python 0.37.1\"}}"}'
    headers:
      Accept: [application/json;odata=minimalmetadata]
      Connection: [keep-alive]
      Content-Length: ['1203']
      Content-Type: [application/json]
      DataServiceVersion: [3.0;NetFx]
      MaxDataServiceVersion: ['3.0']
      Prefer: [return-no-content]
      User-Agent: [Azure-Storage/0.37.1-None (Python CPython 3.6.0; Windows 10)]
      x-ms-client-request-id: [0b356008-c5c1-11e7-826b-a08cfdf04b77]
      x-ms-date: ['Fri, 10 Nov 2017 02:44:16 GMT']
      x-ms-version: ['2017-04-17']
    method: POST
    uri: https://storagename.table.core.windows.net/uttablebe9d1303
  response:
    body: {string: ''}
    headers:
      Cache-Control: [no-cache]
      Content-Length: ['0']
      DataServiceId: ['https://storagename.table.core.windows.net/uttablebe9d1303(PartitionKey=''pkbe9d1303'',RowKey=''rkbe9d1303minimalmetadata'')']
      Date: ['Fri, 10 Nov 2017 02:44:15 GMT']
      ETag: [W/"datetime'2017-11-10T02%3A44%3A16.5041349Z'"]
      Location: ['https://storagename.table.core.windows.net/uttablebe9d1303(PartitionKey=''pkbe9d1303'',RowKey=''rkbe9d1303minimalmetadata'')']
      Preference-Applied: [return-no-content]
      Server: [Windows-Azure-Table/1.0 Microsoft-HTTPAPI/2.0]
      X-Content-Type-Options: [nosniff]
      x-ms-request-id: [f066deb5-0002-011b-2ccd-59cbbd000000]
      x-ms-version: ['2017-04-17']
    status: {code: 204, message: No Content}
- request:
    body: null
    headers:
      Accept: [application/json;odata=minimalmetadata]
      Connection: [keep-alive]
      DataServiceVersion: [3.0;NetFx]
      MaxDataServiceVersion: ['3.0']
      User-Agent: [Azure-Storage/0.37.1-None (Python CPython 3.6.0; Windows 10)]
      x-ms-client-request-id: [0b442fda-c5c1-11e7-acc2-a08cfdf04b77]
      x-ms-date: ['Fri, 10 Nov 2017 02:44:16 GMT']
      x-ms-version: ['2017-04-17']
    method: GET
    uri: https://storagename.table.core.windows.net/uttablebe9d1303(PartitionKey='pkbe9d1303',RowKey='rkbe9d1303minimalmetadata')
  response:
    body: {string: '{"odata.metadata":"https://storagename.table.core.windows.net/$metadata#uttablebe9d1303/@Element","odata.etag":"W/\"datetime''2017-11-10T02%3A44%3A16.5041349Z''\"","PartitionKey":"pkbe9d1303","RowKey":"rkbe9d1303minimalmetadata","Timestamp":"2017-11-10T02:44:16.5041349Z","age@odata.type":"Edm.Int64","age":"39","sex@odata.type":"Edm.Binary","sex":"DXqPdw2BcnwQDqxJbKNuMA==","name@odata.type":"Edm.Binary","name":"UuUgE9stpSjBluaa4q6N+Q==","married":true,"deceased":false,"evenratio":3.0,"ratio":3.1,"large@odata.type":"Edm.Int64","large":"933311100","Birthday@odata.type":"Edm.DateTime","Birthday":"1973-10-04T00:00:00Z","birthday@odata.type":"Edm.DateTime","birthday":"1970-10-04T00:00:00Z","binary@odata.type":"Edm.Binary","binary":"YmluYXJ5","other":20,"clsid@odata.type":"Edm.Guid","clsid":"c9da6455-213d-42c9-9a79-3e9149a57833","_ClientEncryptionMetadata2@odata.type":"Edm.Binary","_ClientEncryptionMetadata2":"ImOa6wxbbSlXphAKgAKIxQ==","_ClientEncryptionMetadata1":"{\"WrappedContentKey\":
        {\"KeyId\": \"key1\", \"EncryptedKey\": \"DsmNlMY1aWvMsGc1Xxvn5M3Pb9/I91oWt+cyvrM5+6agYxzeoGvU0w==\",
        \"Algorithm\": \"A256KW\"}, \"EncryptionAgent\": {\"Protocol\": \"1.0\", \"EncryptionAlgorithm\":
        \"AES_CBC_256\"}, \"ContentEncryptionIV\": \"w85h1gR4rOsB5B2cxyxRSg==\", \"KeyWrappingMetadata\":
        {\"EncryptionLibrary\": \"Python 0.37.1\"}}"}'}
    headers:
      Cache-Control: [no-cache]
      Content-Type: [application/json;odata=minimalmetadata;streaming=true;charset=utf-8]
      Date: ['Fri, 10 Nov 2017 02:44:15 GMT']
      ETag: [W/"datetime'2017-11-10T02%3A44%3A16.5041349Z'"]
      Server: [Windows-Azure-Table/1.0 Microsoft-HTTPAPI/2.0]
      Transfer-Encoding: [chunked]
      X-Content-Type-Options: [nosniff]
      x-ms-request-id: [f066deb9-0002-011b-2fcd-59cbbd000000]
      x-ms-version: ['2017-04-17']
    status: {code: 200, message: OK}
- request:
    body: '{"PartitionKey": "pkbe9d1303", "RowKey": "rkbe9d1303nometadata", "age":
      "39", "age@odata.type": "Edm.Int64", "sex": "TWziXIv6Xw2Ospc8AAEBnw==", "sex@odata.type":
      "Edm.Binary", "name": "IyhH43x+rVOXDaqTMiNTVQ==", "name@odata.type": "Edm.Binary",
      "married": true, "deceased": false, "optional": null, "evenratio": 3.0, "ratio":
      3.1, "large": "933311100", "large@odata.type": "Edm.Int64", "Birthday": "1973-10-04T00:00:00Z",
      "Birthday@odata.type": "Edm.DateTime", "birthday": "1970-10-04T00:00:00Z", "birthday@odata.type":
      "Edm.DateTime", "binary": "YmluYXJ5", "binary@odata.type": "Edm.Binary", "other":
      20, "clsid": "c9da6455-213d-42c9-9a79-3e9149a57833", "clsid@odata.type": "Edm.Guid",
      "_ClientEncryptionMetadata2": "lVYy5kw1ykKSDuLjHh43IQ==", "_ClientEncryptionMetadata2@odata.type":
      "Edm.Binary", "_ClientEncryptionMetadata1": "{\"WrappedContentKey\": {\"KeyId\":
      \"key1\", \"EncryptedKey\": \"hYIwFN26ihHx+EKLFvkSBiTdobEMo5pCw+s97l0YTOvISOne6Arc8Q==\",
      \"Algorithm\": \"A256KW\"}, \"EncryptionAgent\": {\"Protocol\": \"1.0\", \"EncryptionAlgorithm\":
      \"AES_CBC_256\"}, \"ContentEncryptionIV\": \"95i0qkuvMIHBfHmnBynZVA==\", \"KeyWrappingMetadata\":
      {\"EncryptionLibrary\": \"Python 0.37.1\"}}"}'
    headers:
      Accept: [application/json;odata=minimalmetadata]
      Connection: [keep-alive]
      Content-Length: ['1198']
      Content-Type: [application/json]
      DataServiceVersion: [3.0;NetFx]
      MaxDataServiceVersion: ['3.0']
      Prefer: [return-no-content]
      User-Agent: [Azure-Storage/0.37.1-None (Python CPython 3.6.0; Windows 10)]
      x-ms-client-request-id: [0b54d4a8-c5c1-11e7-bb85-a08cfdf04b77]
      x-ms-date: ['Fri, 10 Nov 2017 02:44:16 GMT']
      x-ms-version: ['2017-04-17']
    method: POST
    uri: https://storagename.table.core.windows.net/uttablebe9d1303
  response:
    body: {string: ''}
    headers:
      Cache-Control: [no-cache]
      Content-Length: ['0']
      DataServiceId: ['https://storagename.table.core.windows.net/uttablebe9d1303(PartitionKey=''pkbe9d1303'',RowKey=''rkbe9d1303nometadata'')']
      Date: ['Fri, 10 Nov 2017 02:44:15 GMT']
      ETag: [W/"datetime'2017-11-10T02%3A44%3A16.7113348Z'"]
      Location: ['https://storagename.table.core.windows.net/uttablebe9d1303(PartitionKey=''pkbe9d1303'',RowKey=''rkbe9d1303nometadata'')']
      Preference-Applied: [return-no-content]
      Server: [Windows-Azure-Table/1.0 Microsoft-HTTPAPI/2.0]
      X-Content-Type-Options: [nosniff]
      x-ms-request-id: [f066dec0-0002-011b-36cd-59cbbd000000]
      x-ms-version: ['2017-04-17']
    status: {code: 204, message: No Content}
- request:
    body: null
    headers:
      Accept: [application/json;odata=nometadata]
      Connection: [keep-alive]
      DataServiceVersion: [3.0;NetFx]
      MaxDataServiceVersion: ['3.0']
      User-Agent: [Azure-Storage/0.37.1-None (Python CPython 3.6.0; Windows 10)]
      x-ms-client-request-id: [0b63b83e-c5c1-11e7-8ba6-a08cfdf04b77]
      x-ms-date: ['Fri, 10 Nov 2017 02:44:16 GMT']
      x-ms-version: ['2017-04-17']
    method: GET
    uri: https://storagename.table.core.windows.net/uttablebe9d1303(PartitionKey='pkbe9d1303',RowKey='rkbe9d1303nometadata')
  response:
    body: {string: '{"PartitionKey":"pkbe9d1303","RowKey":"rkbe9d1303nometadata","Timestamp":"2017-11-10T02:44:16.7113348Z","age":"39","sex":"TWziXIv6Xw2Ospc8AAEBnw==","name":"IyhH43x+rVOXDaqTMiNTVQ==","married":true,"deceased":false,"evenratio":3.0,"ratio":3.1,"large":"933311100","Birthday":"1973-10-04T00:00:00Z","birthday":"1970-10-04T00:00:00Z","binary":"YmluYXJ5","other":20,"clsid":"c9da6455-213d-42c9-9a79-3e9149a57833","_ClientEncryptionMetadata2":"lVYy5kw1ykKSDuLjHh43IQ==","_ClientEncryptionMetadata1":"{\"WrappedContentKey\":
        {\"KeyId\": \"key1\", \"EncryptedKey\": \"hYIwFN26ihHx+EKLFvkSBiTdobEMo5pCw+s97l0YTOvISOne6Arc8Q==\",
        \"Algorithm\": \"A256KW\"}, \"EncryptionAgent\": {\"Protocol\": \"1.0\", \"EncryptionAlgorithm\":
        \"AES_CBC_256\"}, \"ContentEncryptionIV\": \"95i0qkuvMIHBfHmnBynZVA==\", \"KeyWrappingMetadata\":
        {\"EncryptionLibrary\": \"Python 0.37.1\"}}"}'}
    headers:
      Cache-Control: [no-cache]
      Content-Type: [application/json;odata=nometadata;streaming=true;charset=utf-8]
      Date: ['Fri, 10 Nov 2017 02:44:16 GMT']
      ETag: [W/"datetime'2017-11-10T02%3A44%3A16.7113348Z'"]
      Server: [Windows-Azure-Table/1.0 Microsoft-HTTPAPI/2.0]
      Transfer-Encoding: [chunked]
      X-Content-Type-Options: [nosniff]
      x-ms-request-id: [f066dec6-0002-011b-3ccd-59cbbd000000]
      x-ms-version: ['2017-04-17']
    status: {code: 200, message: OK}
version: 1