Fix:Added Tags for Network-ACL,RouteTable,InternetGateway (#3430)
* Fix:Added Tags for Network-ACL,RouteTable,InternetGateway * Modified internet-gateway tags * Lint Co-authored-by: usmankb <usman@krazybee.com>
This commit is contained in:
parent
171130fe7b
commit
f57a77451c
7 changed files with 83 additions and 8 deletions
|
|
@ -715,3 +715,22 @@ def test_create_vpc_end_point():
|
|||
)
|
||||
vpc_end_point["VpcEndpoint"]["VpcId"].should.equal(vpc["Vpc"]["VpcId"])
|
||||
len(vpc_end_point["VpcEndpoint"]["DnsEntries"]).should.be.greater_than(0)
|
||||
|
||||
|
||||
@mock_ec2
|
||||
def test_create_route_tables_with_tags():
|
||||
ec2 = boto3.resource("ec2", region_name="eu-central-1")
|
||||
|
||||
vpc = ec2.create_vpc(CidrBlock="10.0.0.0/16")
|
||||
|
||||
route_table = ec2.create_route_table(
|
||||
VpcId=vpc.id,
|
||||
TagSpecifications=[
|
||||
{
|
||||
"ResourceType": "route-table",
|
||||
"Tags": [{"Key": "test", "Value": "TestRouteTable"}],
|
||||
}
|
||||
],
|
||||
)
|
||||
|
||||
route_table.tags.should.have.length_of(1)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue