moto/tests/test_ec2
Hans 9b12ce6809 Fix #1842 Create cross region VPC peering connection in both region (#2195)
Add a class level store in models/VPCPeeringConnectionBackend of ec2
for saving vpc peering connection.
Any instance can correctly save VPC peering connection info
on both region when it create vpc peering connection.

Update vpc_peering_connections in ec2/responses to meet new version:
DESCRIBE_VPC_PEERING_CONNECTIONS_RESPONSE,
ACCEPT_VPC_PEERING_CONNECTION_RESPONSE,

Previous code only create one region VPC peering connection but
doesn't create the other region VPC peering connection
when create cross region VPC peering connection.

Tested in real AWS environment at first
and create unit test case according to real AWS environment response.

Add 5 test cases
VPC cross region delete case
VPC cross region accept case
VPC cross region accept wrong region case
VPC cross region reject case
VPC cross region reject wrong region case

Related: #1842, #1830
2019-05-25 10:21:57 +01:00
..
test_account_attributes.py Added DescribeAccountAttributes 2017-07-17 23:33:40 +00:00
test_amazon_dev_pay.py from __future__ import unicode_literals 2014-08-27 11:33:55 -04:00
test_amis.py AWS is case-sensitive when using is-public to filter for AMIs and expects lower-case values 2018-12-06 12:18:59 -06:00
test_availability_zones_and_regions.py add test for descrie_regions with args 2017-12-28 21:02:58 +00:00
test_customer_gateways.py Lints. 2017-02-23 21:37:43 -05:00
test_dhcp_options.py Lints. 2017-02-23 21:37:43 -05:00
test_ec2_core.py Get standalone server mode working for all tests. 2017-02-23 19:43:48 -05:00
test_elastic_block_store.py Add test for case where ebs volume has no tags. 2019-03-07 17:25:18 -05:00
test_elastic_ip_addresses.py adding Address reallocate capability for EIP 2018-05-10 23:39:19 -07:00
test_elastic_network_interfaces.py Add test to CloudFormation and PrimaryPrivateIpAddress GetAtt 2019-03-27 16:28:18 -04:00
test_general.py Fix for regression in get_console_output() 2017-09-27 20:26:45 +05:30
test_instances.py Added test case for running multiple instances in the same command. 2019-01-15 17:34:22 +01:00
test_internet_gateways.py Fix typo in test name (#1729) 2018-07-24 23:11:04 +01:00
test_ip_addresses.py from __future__ import unicode_literals 2014-08-27 11:33:55 -04:00
test_key_pairs.py Added keypair filtering 2017-09-14 14:59:13 +05:30
test_monitoring.py from __future__ import unicode_literals 2014-08-27 11:33:55 -04:00
test_nat_gateway.py Lints. 2017-02-23 21:37:43 -05:00
test_network_acls.py Implemented adding default entries to default network ACLs. 2019-01-21 15:36:49 +01:00
test_placement_groups.py from __future__ import unicode_literals 2014-08-27 11:33:55 -04:00
test_regions.py Use region list from Boto. 2017-05-26 12:47:28 -07:00
test_reserved_instances.py from __future__ import unicode_literals 2014-08-27 11:33:55 -04:00
test_route_tables.py Fixed some tests. 2017-10-25 19:29:56 +01:00
test_security_groups.py Fix security group rules for single rule case. Closes #1522. 2018-04-13 15:03:07 -04:00
test_server.py Lints. 2017-02-23 21:37:43 -05:00
test_spot_fleet.py tag specifications for spot fleet requests 2019-01-24 11:38:07 -08:00
test_spot_instances.py Fix tests for py3. 2017-02-23 22:28:09 -05:00
test_subnets.py Added invalid id exceptions when filtering vpcs and subnets 2017-09-18 23:38:39 +05:30
test_tags.py Fix #2129 EC2 tag should raise ClientError when resource is empty 2019-03-30 23:26:50 +08:00
test_utils.py Remade ec2.utils.random_key_pair for be really random 2015-09-15 20:09:35 -04:00
test_virtual_private_gateways.py Lints. 2017-02-23 21:37:43 -05:00
test_vm_export.py from __future__ import unicode_literals 2014-08-27 11:33:55 -04:00
test_vm_import.py from __future__ import unicode_literals 2014-08-27 11:33:55 -04:00
test_vpc_peering.py Fix #1842 Create cross region VPC peering connection in both region (#2195) 2019-05-25 10:21:57 +01:00
test_vpcs.py Enable Extended CIDR Associations on VPC (#1511) 2018-03-21 09:10:38 -07:00
test_vpn_connections.py Lints. 2017-02-23 21:37:43 -05:00
test_windows.py from __future__ import unicode_literals 2014-08-27 11:33:55 -04:00