implement target group tagging

This commit is contained in:
Jack Danger 2017-09-16 19:53:09 -07:00
commit 4b7a157560
3 changed files with 51 additions and 21 deletions

View file

@ -251,6 +251,12 @@ def test_create_target_group_and_listeners():
UnhealthyThresholdCount=2,
Matcher={'HttpCode': '200'})
target_group = response.get('TargetGroups')[0]
target_group_arn = target_group['TargetGroupArn']
# Add tags to the target group
conn.add_tags(ResourceArns=[target_group_arn], Tags=[{'Key': 'target', 'Value': 'group'}])
conn.describe_tags(ResourceArns=[target_group_arn])['TagDescriptions'][0]['Tags'].should.equal(
[{'Key': 'target', 'Value': 'group'}])
# Check it's in the describe_target_groups response
response = conn.describe_target_groups()