File: test_keys.test_key_crud_operations.yaml

package info (click to toggle)
python-azure 20181112%2Bgit-2
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 407,300 kB
  • sloc: python: 717,190; makefile: 201; sh: 76
file content (253 lines) | stat: -rw-r--r-- 13,917 bytes parent folder | download
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
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
interactions:
- request:
    body: ''
    headers:
      Accept: [application/json]
      Accept-Encoding: ['gzip, deflate']
      Connection: [keep-alive]
      Content-Length: [0]
      Content-Type: [application/json; charset=utf-8]
      User-Agent: [python/3.6.2 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.1
          msrest_azure/0.4.33 azure-keyvault/1.0.0 Azure-SDK-For-Python]
      accept-language: [en-US]
    method: POST
    uri: https://vaultf6150e22.vault.azure.net/keys/keyf6150e22/create?api-version=7.0
  response:
    body: {string: ''}
    headers:
      cache-control: [no-cache]
      content-length: ['0']
      date: ['Fri, 22 Jun 2018 17:11:24 GMT']
      expires: ['-1']
      pragma: [no-cache]
      server: [Microsoft-IIS/10.0]
      strict-transport-security: [max-age=31536000;includeSubDomains]
      www-authenticate: ['Bearer authorization="https://login.windows.net/72f988bf-86f1-41af-91ab-2d7cd011db47",
          resource="https://vault.azure.net"']
      x-aspnet-version: [4.0.30319]
      x-content-type-options: [nosniff]
      x-ms-keyvault-network-info: [addr=167.220.0.182;act_addr_fam=InterNetwork;]
      x-ms-keyvault-region: [westus]
      x-ms-keyvault-service-version: [1.0.0.849]
      x-powered-by: [ASP.NET]
    status: {code: 401, message: Unauthorized}
- request:
    body: '{"kty": "RSA"}'
    headers:
      Accept: [application/json]
      Accept-Encoding: ['gzip, deflate']
      Connection: [keep-alive]
      Content-Length: ['14']
      Content-Type: [application/json; charset=utf-8]
      User-Agent: [python/3.6.2 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.1
          msrest_azure/0.4.33 azure-keyvault/1.0.0 Azure-SDK-For-Python]
      accept-language: [en-US]
    method: POST
    uri: https://vaultf6150e22.vault.azure.net/keys/keyf6150e22/create?api-version=7.0
  response:
    body: {string: '{"key":{"kid":"https://vaultf6150e22.vault.azure.net/keys/keyf6150e22/5aee2822cb9949b3803e89941408d728","kty":"RSA","key_ops":["encrypt","decrypt","sign","verify","wrapKey","unwrapKey"],"n":"tRbLIcahkVRv7Qfz4RZE0QktP1aZHoxLzxku1poEWJoALlukpdp23lWHv_bCiY8JT4rVr6zVxdGZP_exUhE94JlnJoCWtSJI7PtjrJ7LPv50wobZPju2GsUeTSp89oWyKeKjnoJihm6t8U0wtqrV5XwMmV74N6hNNBhTL1TjKQijRJlqud8--o7pnWLvd98BV4LaJH94sU5tmgaXGu5VGjFSv79_4UX0TDsEZdoAVuaEgV4EAgy6ZG9QNuzKLebeW8phXXDNodfsFzxBthwfvOjiDnC6ItHjRCCrkjCyMqrunEuQELXIMbrJrsGrrlAYfIU-f7FtvaI-oqGqFjW13w","e":"AQAB"},"attributes":{"enabled":true,"created":1529687486,"updated":1529687486,"recoveryLevel":"Purgeable"}}'}
    headers:
      cache-control: [no-cache]
      content-length: ['647']
      content-type: [application/json; charset=utf-8]
      date: ['Fri, 22 Jun 2018 17:11:25 GMT']
      expires: ['-1']
      pragma: [no-cache]
      server: [Microsoft-IIS/10.0]
      strict-transport-security: [max-age=31536000;includeSubDomains]
      x-aspnet-version: [4.0.30319]
      x-content-type-options: [nosniff]
      x-ms-keyvault-network-info: [addr=167.220.0.182;act_addr_fam=InterNetwork;]
      x-ms-keyvault-region: [westus]
      x-ms-keyvault-service-version: [1.0.0.849]
      x-powered-by: [ASP.NET]
    status: {code: 200, message: OK}
- request:
    body: null
    headers:
      Accept: [application/json]
      Accept-Encoding: ['gzip, deflate']
      Connection: [keep-alive]
      Content-Type: [application/json; charset=utf-8]
      User-Agent: [python/3.6.2 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.1
          msrest_azure/0.4.33 azure-keyvault/1.0.0 Azure-SDK-For-Python]
      accept-language: [en-US]
    method: GET
    uri: https://vaultf6150e22.vault.azure.net/keys/keyf6150e22/?api-version=7.0
  response:
    body: {string: '{"key":{"kid":"https://vaultf6150e22.vault.azure.net/keys/keyf6150e22/5aee2822cb9949b3803e89941408d728","kty":"RSA","key_ops":["encrypt","decrypt","sign","verify","wrapKey","unwrapKey"],"n":"tRbLIcahkVRv7Qfz4RZE0QktP1aZHoxLzxku1poEWJoALlukpdp23lWHv_bCiY8JT4rVr6zVxdGZP_exUhE94JlnJoCWtSJI7PtjrJ7LPv50wobZPju2GsUeTSp89oWyKeKjnoJihm6t8U0wtqrV5XwMmV74N6hNNBhTL1TjKQijRJlqud8--o7pnWLvd98BV4LaJH94sU5tmgaXGu5VGjFSv79_4UX0TDsEZdoAVuaEgV4EAgy6ZG9QNuzKLebeW8phXXDNodfsFzxBthwfvOjiDnC6ItHjRCCrkjCyMqrunEuQELXIMbrJrsGrrlAYfIU-f7FtvaI-oqGqFjW13w","e":"AQAB"},"attributes":{"enabled":true,"created":1529687486,"updated":1529687486,"recoveryLevel":"Purgeable"}}'}
    headers:
      cache-control: [no-cache]
      content-length: ['647']
      content-type: [application/json; charset=utf-8]
      date: ['Fri, 22 Jun 2018 17:11:26 GMT']
      expires: ['-1']
      pragma: [no-cache]
      server: [Microsoft-IIS/10.0]
      strict-transport-security: [max-age=31536000;includeSubDomains]
      x-aspnet-version: [4.0.30319]
      x-content-type-options: [nosniff]
      x-ms-keyvault-network-info: [addr=167.220.0.182;act_addr_fam=InterNetwork;]
      x-ms-keyvault-region: [westus]
      x-ms-keyvault-service-version: [1.0.0.849]
      x-powered-by: [ASP.NET]
    status: {code: 200, message: OK}
- request:
    body: null
    headers:
      Accept: [application/json]
      Accept-Encoding: ['gzip, deflate']
      Connection: [keep-alive]
      Content-Type: [application/json; charset=utf-8]
      User-Agent: [python/3.6.2 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.1
          msrest_azure/0.4.33 azure-keyvault/1.0.0 Azure-SDK-For-Python]
      accept-language: [en-US]
    method: GET
    uri: https://vaultf6150e22.vault.azure.net/keys/keyf6150e22/5aee2822cb9949b3803e89941408d728?api-version=7.0
  response:
    body: {string: '{"key":{"kid":"https://vaultf6150e22.vault.azure.net/keys/keyf6150e22/5aee2822cb9949b3803e89941408d728","kty":"RSA","key_ops":["encrypt","decrypt","sign","verify","wrapKey","unwrapKey"],"n":"tRbLIcahkVRv7Qfz4RZE0QktP1aZHoxLzxku1poEWJoALlukpdp23lWHv_bCiY8JT4rVr6zVxdGZP_exUhE94JlnJoCWtSJI7PtjrJ7LPv50wobZPju2GsUeTSp89oWyKeKjnoJihm6t8U0wtqrV5XwMmV74N6hNNBhTL1TjKQijRJlqud8--o7pnWLvd98BV4LaJH94sU5tmgaXGu5VGjFSv79_4UX0TDsEZdoAVuaEgV4EAgy6ZG9QNuzKLebeW8phXXDNodfsFzxBthwfvOjiDnC6ItHjRCCrkjCyMqrunEuQELXIMbrJrsGrrlAYfIU-f7FtvaI-oqGqFjW13w","e":"AQAB"},"attributes":{"enabled":true,"created":1529687486,"updated":1529687486,"recoveryLevel":"Purgeable"}}'}
    headers:
      cache-control: [no-cache]
      content-length: ['647']
      content-type: [application/json; charset=utf-8]
      date: ['Fri, 22 Jun 2018 17:11:27 GMT']
      expires: ['-1']
      pragma: [no-cache]
      server: [Microsoft-IIS/10.0]
      strict-transport-security: [max-age=31536000;includeSubDomains]
      x-aspnet-version: [4.0.30319]
      x-content-type-options: [nosniff]
      x-ms-keyvault-network-info: [addr=167.220.0.182;act_addr_fam=InterNetwork;]
      x-ms-keyvault-region: [westus]
      x-ms-keyvault-service-version: [1.0.0.849]
      x-powered-by: [ASP.NET]
    status: {code: 200, message: OK}
- request:
    body: '{"key_ops": ["encrypt", "decrypt"], "attributes": {"enabled": true, "exp":
      2527401600}, "tags": {"foo": "updated tag"}}'
    headers:
      Accept: [application/json]
      Accept-Encoding: ['gzip, deflate']
      Connection: [keep-alive]
      Content-Length: ['119']
      Content-Type: [application/json; charset=utf-8]
      User-Agent: [python/3.6.2 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.1
          msrest_azure/0.4.33 azure-keyvault/1.0.0 Azure-SDK-For-Python]
      accept-language: [en-US]
    method: PATCH
    uri: https://vaultf6150e22.vault.azure.net/keys/keyf6150e22/?api-version=7.0
  response:
    body: {string: '{"key":{"kid":"https://vaultf6150e22.vault.azure.net/keys/keyf6150e22/5aee2822cb9949b3803e89941408d728","kty":"RSA","key_ops":["encrypt","decrypt"],"n":"tRbLIcahkVRv7Qfz4RZE0QktP1aZHoxLzxku1poEWJoALlukpdp23lWHv_bCiY8JT4rVr6zVxdGZP_exUhE94JlnJoCWtSJI7PtjrJ7LPv50wobZPju2GsUeTSp89oWyKeKjnoJihm6t8U0wtqrV5XwMmV74N6hNNBhTL1TjKQijRJlqud8--o7pnWLvd98BV4LaJH94sU5tmgaXGu5VGjFSv79_4UX0TDsEZdoAVuaEgV4EAgy6ZG9QNuzKLebeW8phXXDNodfsFzxBthwfvOjiDnC6ItHjRCCrkjCyMqrunEuQELXIMbrJrsGrrlAYfIU-f7FtvaI-oqGqFjW13w","e":"AQAB"},"attributes":{"enabled":true,"exp":2527401600,"created":1529687486,"updated":1529687487,"recoveryLevel":"Purgeable"},"tags":{"foo":"updated
        tag"}}'}
    headers:
      cache-control: [no-cache]
      content-length: ['655']
      content-type: [application/json; charset=utf-8]
      date: ['Fri, 22 Jun 2018 17:11:27 GMT']
      expires: ['-1']
      pragma: [no-cache]
      server: [Microsoft-IIS/10.0]
      strict-transport-security: [max-age=31536000;includeSubDomains]
      x-aspnet-version: [4.0.30319]
      x-content-type-options: [nosniff]
      x-ms-keyvault-network-info: [addr=167.220.0.182;act_addr_fam=InterNetwork;]
      x-ms-keyvault-region: [westus]
      x-ms-keyvault-service-version: [1.0.0.849]
      x-powered-by: [ASP.NET]
    status: {code: 200, message: OK}
- request:
    body: '{"key_ops": ["encrypt", "decrypt"], "attributes": {"enabled": true, "exp":
      2527401600}, "tags": {"foo": "updated tag"}}'
    headers:
      Accept: [application/json]
      Accept-Encoding: ['gzip, deflate']
      Connection: [keep-alive]
      Content-Length: ['119']
      Content-Type: [application/json; charset=utf-8]
      User-Agent: [python/3.6.2 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.1
          msrest_azure/0.4.33 azure-keyvault/1.0.0 Azure-SDK-For-Python]
      accept-language: [en-US]
    method: PATCH
    uri: https://vaultf6150e22.vault.azure.net/keys/keyf6150e22/5aee2822cb9949b3803e89941408d728?api-version=7.0
  response:
    body: {string: '{"key":{"kid":"https://vaultf6150e22.vault.azure.net/keys/keyf6150e22/5aee2822cb9949b3803e89941408d728","kty":"RSA","key_ops":["encrypt","decrypt"],"n":"tRbLIcahkVRv7Qfz4RZE0QktP1aZHoxLzxku1poEWJoALlukpdp23lWHv_bCiY8JT4rVr6zVxdGZP_exUhE94JlnJoCWtSJI7PtjrJ7LPv50wobZPju2GsUeTSp89oWyKeKjnoJihm6t8U0wtqrV5XwMmV74N6hNNBhTL1TjKQijRJlqud8--o7pnWLvd98BV4LaJH94sU5tmgaXGu5VGjFSv79_4UX0TDsEZdoAVuaEgV4EAgy6ZG9QNuzKLebeW8phXXDNodfsFzxBthwfvOjiDnC6ItHjRCCrkjCyMqrunEuQELXIMbrJrsGrrlAYfIU-f7FtvaI-oqGqFjW13w","e":"AQAB"},"attributes":{"enabled":true,"exp":2527401600,"created":1529687486,"updated":1529687488,"recoveryLevel":"Purgeable"},"tags":{"foo":"updated
        tag"}}'}
    headers:
      cache-control: [no-cache]
      content-length: ['655']
      content-type: [application/json; charset=utf-8]
      date: ['Fri, 22 Jun 2018 17:11:27 GMT']
      expires: ['-1']
      pragma: [no-cache]
      server: [Microsoft-IIS/10.0]
      strict-transport-security: [max-age=31536000;includeSubDomains]
      x-aspnet-version: [4.0.30319]
      x-content-type-options: [nosniff]
      x-ms-keyvault-network-info: [addr=167.220.0.182;act_addr_fam=InterNetwork;]
      x-ms-keyvault-region: [westus]
      x-ms-keyvault-service-version: [1.0.0.849]
      x-powered-by: [ASP.NET]
    status: {code: 200, message: OK}
- request:
    body: null
    headers:
      Accept: [application/json]
      Accept-Encoding: ['gzip, deflate']
      Connection: [keep-alive]
      Content-Length: ['0']
      Content-Type: [application/json; charset=utf-8]
      User-Agent: [python/3.6.2 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.1
          msrest_azure/0.4.33 azure-keyvault/1.0.0 Azure-SDK-For-Python]
      accept-language: [en-US]
    method: DELETE
    uri: https://vaultf6150e22.vault.azure.net/keys/keyf6150e22?api-version=7.0
  response:
    body: {string: '{"key":{"kid":"https://vaultf6150e22.vault.azure.net/keys/keyf6150e22/5aee2822cb9949b3803e89941408d728","kty":"RSA","key_ops":["encrypt","decrypt"],"n":"tRbLIcahkVRv7Qfz4RZE0QktP1aZHoxLzxku1poEWJoALlukpdp23lWHv_bCiY8JT4rVr6zVxdGZP_exUhE94JlnJoCWtSJI7PtjrJ7LPv50wobZPju2GsUeTSp89oWyKeKjnoJihm6t8U0wtqrV5XwMmV74N6hNNBhTL1TjKQijRJlqud8--o7pnWLvd98BV4LaJH94sU5tmgaXGu5VGjFSv79_4UX0TDsEZdoAVuaEgV4EAgy6ZG9QNuzKLebeW8phXXDNodfsFzxBthwfvOjiDnC6ItHjRCCrkjCyMqrunEuQELXIMbrJrsGrrlAYfIU-f7FtvaI-oqGqFjW13w","e":"AQAB"},"attributes":{"enabled":true,"exp":2527401600,"created":1529687486,"updated":1529687488,"recoveryLevel":"Purgeable"},"tags":{"foo":"updated
        tag"}}'}
    headers:
      cache-control: [no-cache]
      content-length: ['655']
      content-type: [application/json; charset=utf-8]
      date: ['Fri, 22 Jun 2018 17:11:28 GMT']
      expires: ['-1']
      pragma: [no-cache]
      server: [Microsoft-IIS/10.0]
      strict-transport-security: [max-age=31536000;includeSubDomains]
      x-aspnet-version: [4.0.30319]
      x-content-type-options: [nosniff]
      x-ms-keyvault-network-info: [addr=167.220.0.182;act_addr_fam=InterNetwork;]
      x-ms-keyvault-region: [westus]
      x-ms-keyvault-service-version: [1.0.0.849]
      x-powered-by: [ASP.NET]
    status: {code: 200, message: OK}
- request:
    body: null
    headers:
      Accept: [application/json]
      Accept-Encoding: ['gzip, deflate']
      Connection: [keep-alive]
      Content-Type: [application/json; charset=utf-8]
      User-Agent: [python/3.6.2 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.1
          msrest_azure/0.4.33 azure-keyvault/1.0.0 Azure-SDK-For-Python]
      accept-language: [en-US]
    method: GET
    uri: https://vaultf6150e22.vault.azure.net/keys/keyf6150e22/?api-version=7.0
  response:
    body: {string: '{"error":{"code":"KeyNotFound","message":"Key not found: keyf6150e22"}}'}
    headers:
      cache-control: [no-cache]
      content-length: ['71']
      content-type: [application/json; charset=utf-8]
      date: ['Fri, 22 Jun 2018 17:11:28 GMT']
      expires: ['-1']
      pragma: [no-cache]
      server: [Microsoft-IIS/10.0]
      strict-transport-security: [max-age=31536000;includeSubDomains]
      x-aspnet-version: [4.0.30319]
      x-content-type-options: [nosniff]
      x-ms-keyvault-network-info: [addr=167.220.0.182;act_addr_fam=InterNetwork;]
      x-ms-keyvault-region: [westus]
      x-ms-keyvault-service-version: [1.0.0.849]
      x-powered-by: [ASP.NET]
    status: {code: 404, message: Not Found}
version: 1