Added key_name support to instances
This commit is contained in:
parent
4ba4dd5e26
commit
b244457c4f
3 changed files with 17 additions and 3 deletions
|
|
@ -201,3 +201,12 @@ def test_run_instance_with_subnet():
|
|||
instance = reservation.instances[0]
|
||||
|
||||
instance.subnet_id.should.equal("subnet-abcd1234")
|
||||
|
||||
|
||||
@mock_ec2
|
||||
def test_run_instance_with_keypair():
|
||||
conn = boto.connect_ec2('the_key', 'the_secret')
|
||||
reservation = conn.run_instances('ami-1234abcd', key_name="keypair_name")
|
||||
instance = reservation.instances[0]
|
||||
|
||||
instance.key_name.should.equal("keypair_name")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue