Support SSM Parameter tags (#3739)
This commit is contained in:
parent
3c810ad152
commit
457402fbe2
3 changed files with 34 additions and 2 deletions
|
|
@ -962,6 +962,28 @@ def test_describe_parameters_attributes():
|
|||
parameters[1]["Version"].should.equal(1)
|
||||
|
||||
|
||||
@mock_ssm
|
||||
def test_describe_parameters_tags():
|
||||
client = boto3.client("ssm", region_name="us-east-1")
|
||||
|
||||
client.put_parameter(Name="/foo/bar", Value="spam", Type="String")
|
||||
client.put_parameter(
|
||||
Name="/spam/eggs",
|
||||
Value="eggs",
|
||||
Type="String",
|
||||
Tags=[{"Key": "spam", "Value": "eggs"}],
|
||||
)
|
||||
|
||||
response = client.describe_parameters(
|
||||
ParameterFilters=[{"Key": "tag:spam", "Values": ["eggs"]}]
|
||||
)
|
||||
|
||||
parameters = response["Parameters"]
|
||||
parameters.should.have.length_of(1)
|
||||
|
||||
parameters[0]["Name"].should.equal("/spam/eggs")
|
||||
|
||||
|
||||
@mock_ssm
|
||||
def test_get_parameter_invalid():
|
||||
client = client = boto3.client("ssm", region_name="us-east-1")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue