Fix tags for resource in ListTagsForResource (#3931)
* Fix tags for resource in ListTagsForResource * Fix review comments * Fix tests
This commit is contained in:
parent
eaac32b130
commit
58fd4aeaae
2 changed files with 23 additions and 0 deletions
|
|
@ -1000,6 +1000,24 @@ def test_describe_parameters_tags():
|
|||
parameters[0]["Name"].should.equal("/spam/eggs")
|
||||
|
||||
|
||||
@mock_ssm
|
||||
def test_tags_in_list_tags_from_resource():
|
||||
client = boto3.client("ssm", region_name="us-east-1")
|
||||
|
||||
client.put_parameter(
|
||||
Name="/spam/eggs",
|
||||
Value="eggs",
|
||||
Type="String",
|
||||
Tags=[{"Key": "spam", "Value": "eggs"}],
|
||||
)
|
||||
|
||||
tags = client.list_tags_for_resource(
|
||||
ResourceId="/spam/eggs", ResourceType="Parameter"
|
||||
)
|
||||
|
||||
assert tags.get("TagList") == [{"Key": "spam", "Value": "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