Filter dicts have not been implemented in Moto for '%s' yet - mock_ec2
This commit is contained in:
parent
100ec4e7c8
commit
cf529ec3f9
2 changed files with 16 additions and 6 deletions
|
|
@ -278,6 +278,17 @@ def test_get_instances_filtering_by_vpc_id():
|
|||
reservations2[0].instances[0].id.should.equal(instance2.id)
|
||||
|
||||
|
||||
@mock_ec2
|
||||
def test_get_instances_filtering_by_architecture():
|
||||
conn = boto.connect_ec2()
|
||||
reservation = conn.run_instances('ami-1234abcd', min_count=1)
|
||||
instance = reservation.instances
|
||||
|
||||
reservations = conn.get_all_instances(filters={'architecture': 'x86_64'})
|
||||
# get_all_instances should return the instance
|
||||
reservations[0].instances.should.have.length_of(1)
|
||||
|
||||
|
||||
@mock_ec2
|
||||
def test_get_instances_filtering_by_tag():
|
||||
conn = boto.connect_ec2()
|
||||
|
|
@ -519,7 +530,6 @@ def test_run_instance_with_security_group_name():
|
|||
def test_run_instance_with_security_group_id():
|
||||
conn = boto.connect_ec2('the_key', 'the_secret')
|
||||
group = conn.create_security_group('group1', "some description")
|
||||
|
||||
reservation = conn.run_instances('ami-1234abcd',
|
||||
security_group_ids=[group.id])
|
||||
instance = reservation.instances[0]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue