Skip to content

Commit

Permalink
Update changelog/new tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mccoyp committed May 27, 2021
1 parent 1a2e80e commit 436038a
Show file tree
Hide file tree
Showing 3 changed files with 156 additions and 0 deletions.
3 changes: 3 additions & 0 deletions sdk/keyvault/azure-keyvault-keys/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
# Release History

## 4.4.0b5 (Unreleased)
### Changed
- Key Vault API version 7.2 is now the default

### Added
- `KeyClient` has a `create_oct_key` method for creating symmetric keys

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,89 @@
interactions:
- request:
body: null
headers:
Accept:
- application/json
Accept-Encoding:
- gzip, deflate
Connection:
- keep-alive
Content-Length:
- '0'
Content-Type:
- application/json
User-Agent:
- azsdk-python-keyvault-keys/4.4.0b5 Python/3.5.3 (Windows-10-10.0.19041-SP0)
method: POST
uri: https://managedhsmname.managedhsm.azure.net/keys/livekvtestkey61da15c4/create?api-version=7.2
response:
body:
string: ''
headers:
cache-control:
- no-cache
content-length:
- '0'
content-security-policy:
- default-src 'self'
content-type:
- application/json; charset=utf-8
strict-transport-security:
- max-age=31536000; includeSubDomains
www-authenticate:
- Bearer authorization="https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47",
resource="https://managedhsm.azure.net"
x-content-type-options:
- nosniff
x-frame-options:
- SAMEORIGIN
x-ms-server-latency:
- '1'
status:
code: 401
message: Unauthorized
- request:
body: '{"kty": "oct-HSM", "key_size": 256}'
headers:
Accept:
- application/json
Accept-Encoding:
- gzip, deflate
Connection:
- keep-alive
Content-Length:
- '35'
Content-Type:
- application/json
User-Agent:
- azsdk-python-keyvault-keys/4.4.0b5 Python/3.5.3 (Windows-10-10.0.19041-SP0)
method: POST
uri: https://managedhsmname.managedhsm.azure.net/keys/livekvtestkey61da15c4/create?api-version=7.2
response:
body:
string: '{"attributes":{"created":1622135909,"enabled":true,"exportable":false,"recoverableDays":90,"recoveryLevel":"Recoverable+Purgeable","updated":1622135909},"key":{"key_ops":["wrapKey","unwrapKey","decrypt","encrypt"],"kid":"https://managedhsmname.managedhsm.azure.net/keys/livekvtestkey61da15c4/d27a31941f0a020e9ed3283aea24762d","kty":"oct-HSM"}}'
headers:
cache-control:
- no-cache
content-length:
- '344'
content-security-policy:
- default-src 'self'
content-type:
- application/json; charset=utf-8
strict-transport-security:
- max-age=31536000; includeSubDomains
x-content-type-options:
- nosniff
x-frame-options:
- SAMEORIGIN
x-ms-keyvault-network-info:
- conn_type=Ipv4;addr=172.92.159.124;act_addr_fam=Ipv4;
x-ms-keyvault-region:
- centralus
x-ms-server-latency:
- '255'
status:
code: 200
message: OK
version: 1
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
interactions:
- request:
body: null
headers:
Accept:
- application/json
Content-Length:
- '0'
Content-Type:
- application/json
User-Agent:
- azsdk-python-keyvault-keys/4.4.0b5 Python/3.5.3 (Windows-10-10.0.19041-SP0)
method: POST
uri: https://managedhsmname.managedhsm.azure.net/keys/livekvtestkeyf1a01841/create?api-version=7.2
response:
body:
string: ''
headers:
cache-control: no-cache
content-length: '0'
content-security-policy: default-src 'self'
content-type: application/json; charset=utf-8
strict-transport-security: max-age=31536000; includeSubDomains
www-authenticate: Bearer authorization="https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47",
resource="https://managedhsm.azure.net"
x-content-type-options: nosniff
x-frame-options: SAMEORIGIN
x-ms-server-latency: '0'
status:
code: 401
message: Unauthorized
url: https://mcpatinotesthsm.managedhsm.azure.net/keys/livekvtestkeyf1a01841/create?api-version=7.2
- request:
body: '{"kty": "oct-HSM", "key_size": 256}'
headers:
Accept:
- application/json
Content-Length:
- '35'
Content-Type:
- application/json
User-Agent:
- azsdk-python-keyvault-keys/4.4.0b5 Python/3.5.3 (Windows-10-10.0.19041-SP0)
method: POST
uri: https://managedhsmname.managedhsm.azure.net/keys/livekvtestkeyf1a01841/create?api-version=7.2
response:
body:
string: '{"attributes":{"created":1622135910,"enabled":true,"exportable":false,"recoverableDays":90,"recoveryLevel":"Recoverable+Purgeable","updated":1622135910},"key":{"key_ops":["wrapKey","unwrapKey","decrypt","encrypt"],"kid":"https://managedhsmname.managedhsm.azure.net/keys/livekvtestkeyf1a01841/f6cdb5d6944c05411b483456a095167e","kty":"oct-HSM"}}'
headers:
cache-control: no-cache
content-length: '344'
content-security-policy: default-src 'self'
content-type: application/json; charset=utf-8
strict-transport-security: max-age=31536000; includeSubDomains
x-content-type-options: nosniff
x-frame-options: SAMEORIGIN
x-ms-keyvault-network-info: conn_type=Ipv4;addr=172.92.159.124;act_addr_fam=Ipv4;
x-ms-keyvault-region: centralus
x-ms-server-latency: '190'
status:
code: 200
message: OK
url: https://mcpatinotesthsm.managedhsm.azure.net/keys/livekvtestkeyf1a01841/create?api-version=7.2
version: 1

0 comments on commit 436038a

Please sign in to comment.