Added GetParameter support
This commit is contained in:
parent
2937cf4c45
commit
cf7e07b728
3 changed files with 43 additions and 0 deletions
|
|
@ -66,6 +66,25 @@ def test_put_parameter():
|
|||
response['Parameters'][0]['Type'].should.equal('String')
|
||||
|
||||
|
||||
@mock_ssm
|
||||
def test_get_parameter():
|
||||
client = boto3.client('ssm', region_name='us-east-1')
|
||||
|
||||
client.put_parameter(
|
||||
Name='test',
|
||||
Description='A test parameter',
|
||||
Value='value',
|
||||
Type='String')
|
||||
|
||||
response = client.get_parameter(
|
||||
Name='test',
|
||||
WithDecryption=False)
|
||||
|
||||
response['Parameter']['Name'].should.equal('test')
|
||||
response['Parameter']['Value'].should.equal('value')
|
||||
response['Parameter']['Type'].should.equal('String')
|
||||
|
||||
|
||||
@mock_ssm
|
||||
def test_describe_parameters():
|
||||
client = boto3.client('ssm', region_name='us-east-1')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue