Merge pull request #437 from gvlproject/master

Set snapshots to be in a completed state after being created and added
This commit is contained in:
Steve Pulec 2015-10-17 23:10:14 -04:00
commit 3622fd172e
2 changed files with 5 additions and 3 deletions

View file

@ -93,7 +93,9 @@ def test_create_snapshot():
conn = boto.connect_ec2('the_key', 'the_secret')
volume = conn.create_volume(80, "us-east-1a")
volume.create_snapshot('a test snapshot')
snapshot = volume.create_snapshot('a test snapshot')
snapshot.update()
snapshot.status.should.equal('completed')
snapshots = conn.get_all_snapshots()
snapshots.should.have.length_of(1)