moto/tests/test_ec2
Don Kuntz abf3db8d8a
Add a test to ensure that ec2.copy_image sets the proper owner id
This test is useful because before the last commit using copy_image
would not set the owner_id to the same one used when calling
describe_images.

For example, this code

    conn = boto3.client("ec2")
    copy_resp = conn.copy_image(
        SourceImageId="ami-whatever",
        ...
    )

    describe_resp = conn.describe_images(
        Owners=["self"]
    )

Would result in describe_resp being empty, when it should contain the
image from the copy_resp before it.

By ensuring the owner ids are the same (see ce4059f6) the code example
now works as expected.
2019-07-22 21:57:15 -05:00
..
__init__.py ec2: add support for creation and importing of real SSH keys (#2108) 2019-05-25 11:17:52 +01:00
helpers.py ec2: add support for creation and importing of real SSH keys (#2108) 2019-05-25 11:17:52 +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 Add a test to ensure that ec2.copy_image sets the proper owner id 2019-07-22 21:57:15 -05: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 Use a consistent owner id between EC2 resources 2019-07-22 21:50:09 -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 Extend EC2 DescribeNetworkInterface filter support 2019-07-15 00:01:37 +02:00
test_general.py Fix for regression in get_console_output() 2017-09-27 20:26:45 +05:30
test_instances.py Fixed value is present in response even if it's None. 2019-07-05 15:24:16 +02: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 ec2: add support for creation and importing of real SSH keys (#2108) 2019-05-25 11:17:52 +01:00
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 Updates to create_subnet and describe_subnets responses (#2053) 2019-05-28 16:33:25 +01:00
test_placement_groups.py from __future__ import unicode_literals 2014-08-27 11:33:55 -04:00
test_regions.py Autoscaling instance azs (#2030) 2019-05-25 11:18:16 +01:00
test_reserved_instances.py from __future__ import unicode_literals 2014-08-27 11:33:55 -04:00
test_route_tables.py VPC IPv4 validation (#2026) 2019-05-25 18:35:07 +01:00
test_security_groups.py VPC IPv4 validation (#2026) 2019-05-25 18:35:07 +01:00
test_server.py Lints. 2017-02-23 21:37:43 -05:00
test_spot_fleet.py VPC IPv4 validation (#2026) 2019-05-25 18:35:07 +01:00
test_spot_instances.py VPC IPv4 validation (#2026) 2019-05-25 18:35:07 +01:00
test_subnets.py Updates to create_subnet and describe_subnets responses (#2053) 2019-05-28 16:33:25 +01:00
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 ec2: add support for creation and importing of real SSH keys (#2108) 2019-05-25 11:17:52 +01: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 VPC IPv4 validation (#2026) 2019-05-25 18:35:07 +01: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