add KeyId value to kms.responses.encrypt and kms.responses.decrypt
This commit is contained in:
parent
62da0839ae
commit
dbdc8925e3
2 changed files with 4 additions and 2 deletions
|
|
@ -171,6 +171,7 @@ def test_encrypt():
|
|||
conn = boto.kms.connect_to_region("us-west-2")
|
||||
response = conn.encrypt('key_id', 'encryptme'.encode('utf-8'))
|
||||
response['CiphertextBlob'].should.equal(b'ZW5jcnlwdG1l')
|
||||
response['KeyId'].should.equal('key_id')
|
||||
|
||||
|
||||
@mock_kms_deprecated
|
||||
|
|
@ -178,6 +179,7 @@ def test_decrypt():
|
|||
conn = boto.kms.connect_to_region('us-west-2')
|
||||
response = conn.decrypt('ZW5jcnlwdG1l'.encode('utf-8'))
|
||||
response['Plaintext'].should.equal(b'encryptme')
|
||||
response['KeyId'].should.equal('key_id')
|
||||
|
||||
|
||||
@mock_kms_deprecated
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue