def test_sandbox_internet_gateway_exists(self) -> None: """ Determine if the sandbox-vpc-internet-gateway exists """ self.assertTrue( len(VPC.get_internet_gateways('sandbox-vpc-internet-gateway')) == 1)
def test_application_internet_gateway_exists(self) -> None: """ Determine if the application-vpc-internet-gateway exists """ self.assertTrue( len(VPC.get_internet_gateways('application-vpc-internet-gateway')) == 1)
def test_application_lisag_public_subnet_rt_configured(self) -> None: """ Determine if the saints-xctf-com-lisag-public-subnet routing table is configured and available as expected. """ vpc = VPC.get_vpcs('application-vpc')[0] subnet = VPC.get_subnets('saints-xctf-com-lisag-public-subnet')[0] route_table = VPC.get_route_table( 'application-vpc-public-subnet-rt')[0] internet_gateway = VPC.get_internet_gateways( 'application-vpc-internet-gateway')[0] self.assertTrue( VPC.route_table_configured( route_table, vpc.get('VpcId'), subnet.get('SubnetId'), internet_gateway.get('InternetGatewayId')))
def test_jarombek_com_yeezus_public_subnet_rt_configured(self) -> None: """ Determine if the jarombek-com-yeezus-public-subnet routing table is configured and available as expected. """ vpc = VPC.get_vpcs('jarombek-com-vpc')[0] subnet = VPC.get_subnets('jarombek-com-yeezus-public-subnet')[0] route_table = VPC.get_route_table('jarombek-com-vpc-public-subnet-rt')[0] internet_gateway = VPC.get_internet_gateways('jarombek-com-vpc-internet-gateway')[0] self.assertTrue(VPC.route_table_configured( route_table, vpc.get('VpcId'), subnet.get('SubnetId'), internet_gateway.get('InternetGatewayId') ))
def test_sandbox_fearless_public_subnet_rt_configured(self) -> None: """ Determine if the sandbox 'fearless' public subnet routing table is configured and available as expected. """ vpc = VPC.get_vpcs('sandbox-vpc')[0] subnet = VPC.get_subnets('sandbox-vpc-fearless-public-subnet')[0] route_table = VPC.get_route_table('sandbox-vpc-public-subnet-rt')[0] internet_gateway = VPC.get_internet_gateways( 'sandbox-vpc-internet-gateway')[0] self.assertTrue( VPC.route_table_configured( route_table=route_table, vpc_id=vpc.get('VpcId'), subnet_id=subnet.get('SubnetId'), igw_id=internet_gateway.get('InternetGatewayId'), cidr='10.2.0.0/16'))
def test_kubernetes_dotty_public_subnet_rt_configured(self) -> None: """ Determine if the kubernetes dotty public subnet routing table is configured and available as expected. """ vpc = VPC.get_vpcs('application-vpc')[0] subnet = VPC.get_subnets('kubernetes-dotty-public-subnet')[0] route_table = VPC.get_route_table( 'application-vpc-public-subnet-rt')[0] internet_gateway = VPC.get_internet_gateways( 'application-vpc-internet-gateway')[0] self.assertTrue( VPC.route_table_configured( route_table=route_table, vpc_id=vpc.get('VpcId'), subnet_id=subnet.get('SubnetId'), igw_id=internet_gateway.get('InternetGatewayId'), cidr='10.0.0.0/16'))
def test_jarombek_com_internet_gateway_exists(self) -> None: """ Determine if the jarombek-com-vpc-internet-gateway exists """ self.assertTrue(len(VPC.get_internet_gateways('jarombek-com-vpc-internet-gateway')) == 1)