Set snapshots to be in a completed state after being created and added

test case
This commit is contained in:
nuwan_ag 2015-10-14 02:07:47 +11:00
commit 0b3ad166c0
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)