The heat.tests.test_vpc Module

class heat.tests.test_vpc.InternetGatewayTest(methodName='runTest')[source]

Bases: heat.tests.test_vpc.VPCTestBase

mock_create_gateway_attachment()[source]
mock_create_internet_gateway()[source]
mock_delete_gateway_attachment()[source]
speed = 'fast'
tag = ['unit', 'resource']
test_internet_gateway()[source]
test_template = "\nHeatTemplateFormatVersion: '2012-12-12'\nResources:\n the_gateway:\n Type: AWS::EC2::InternetGateway\n the_vpc:\n Type: AWS::EC2::VPC\n DependsOn : the_gateway\n Properties:\n CidrBlock: '10.0.0.0/16'\n the_subnet:\n Type: AWS::EC2::Subnet\n Properties:\n CidrBlock: 10.0.0.0/24\n VpcId: {Ref: the_vpc}\n AvailabilityZone: moon\n the_attachment:\n Type: AWS::EC2::VPCGatewayAttachment\n DependsOn : the_subnet\n Properties:\n VpcId: {Ref: the_vpc}\n InternetGatewayId: {Ref: the_gateway}\n"
class heat.tests.test_vpc.NetworkInterfaceTest(methodName='runTest')[source]

Bases: heat.tests.test_vpc.VPCTestBase

mock_create_network_interface()[source]
mock_delete_network_interface()[source]
speed = 'fast'
tag = ['unit', 'resource']
test_network_interface()[source]
test_template = "\nHeatTemplateFormatVersion: '2012-12-12'\nResources:\n the_vpc:\n Type: AWS::EC2::VPC\n Properties: {CidrBlock: '10.0.0.0/16'}\n the_subnet:\n Type: AWS::EC2::Subnet\n Properties:\n CidrBlock: 10.0.0.0/24\n VpcId: {Ref: the_vpc}\n AvailabilityZone: moon\n the_nic:\n Type: AWS::EC2::NetworkInterface\n Properties:\n PrivateIpAddress: 10.0.0.100\n SubnetId: {Ref: the_subnet}\n"
class heat.tests.test_vpc.RouteTableTest(methodName='runTest')[source]

Bases: heat.tests.test_vpc.VPCTestBase

mock_create_association()[source]
mock_create_route_table()[source]
mock_delete_association()[source]
mock_delete_route_table()[source]
speed = 'fast'
tag = ['unit', 'resource']
test_route_table()[source]
test_template = "\nHeatTemplateFormatVersion: '2012-12-12'\nResources:\n the_vpc:\n Type: AWS::EC2::VPC\n Properties:\n CidrBlock: '10.0.0.0/16'\n the_subnet:\n Type: AWS::EC2::Subnet\n Properties:\n CidrBlock: 10.0.0.0/24\n VpcId: {Ref: the_vpc}\n AvailabilityZone: moon\n the_route_table:\n Type: AWS::EC2::RouteTable\n Properties:\n VpcId: {Ref: the_vpc}\n the_association:\n Type: AWS::EC2::SubnetRouteTableAssocation\n Properties:\n RouteTableId: {Ref: the_route_table}\n SubnetId: {Ref: the_subnet}\n"
class heat.tests.test_vpc.SubnetTest(methodName='runTest')[source]

Bases: heat.tests.test_vpc.VPCTestBase

speed = 'fast'
tag = ['unit', 'resource']
test_subnet()[source]
test_template = "\nHeatTemplateFormatVersion: '2012-12-12'\nResources:\n the_vpc:\n Type: AWS::EC2::VPC\n Properties: {CidrBlock: '10.0.0.0/16'}\n the_subnet:\n Type: AWS::EC2::Subnet\n Properties:\n CidrBlock: 10.0.0.0/24\n VpcId: {Ref: the_vpc}\n AvailabilityZone: moon\n"
class heat.tests.test_vpc.VPCTest(methodName='runTest')[source]

Bases: heat.tests.test_vpc.VPCTestBase

speed = 'fast'
tag = ['unit', 'resource']
test_template = "\nHeatTemplateFormatVersion: '2012-12-12'\nResources:\n the_vpc:\n Type: AWS::EC2::VPC\n Properties: {CidrBlock: '10.0.0.0/16'}\n"
test_vpc()[source]
class heat.tests.test_vpc.VPCTestBase(methodName='runTest')[source]

Bases: unittest.case.TestCase

assertResourceState(resource, ref_id, metadata={})[source]
create_stack(template)[source]
mock_create_network()[source]
mock_create_subnet()[source]
mock_delete_network()[source]
mock_delete_subnet()[source]
parse_stack(t)[source]
setUp()[source]
tearDown()[source]

This Page