Support wildcard tag filters on SecurityGroups
This commit is contained in:
parent
da4934fd37
commit
88fb732302
2 changed files with 16 additions and 1 deletions
|
|
@ -613,6 +613,20 @@ def test_security_group_tagging_boto3():
|
|||
tag['Key'].should.equal("Test")
|
||||
|
||||
|
||||
@mock_ec2
|
||||
def test_security_group_wildcard_tag_filter_boto3():
|
||||
conn = boto3.client('ec2', region_name='us-east-1')
|
||||
sg = conn.create_security_group(GroupName="test-sg", Description="Test SG")
|
||||
conn.create_tags(Resources=[sg['GroupId']], Tags=[
|
||||
{'Key': 'Test', 'Value': 'Tag'}])
|
||||
describe = conn.describe_security_groups(
|
||||
Filters=[{'Name': 'tag-value', 'Values': ['*']}])
|
||||
|
||||
tag = describe["SecurityGroups"][0]['Tags'][0]
|
||||
tag['Value'].should.equal("Tag")
|
||||
tag['Key'].should.equal("Test")
|
||||
|
||||
|
||||
@mock_ec2
|
||||
def test_authorize_and_revoke_in_bulk():
|
||||
ec2 = boto3.resource('ec2', region_name='us-west-1')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue