Issue #2141 Adding owner-id to the filter for Snapshot (#2142)

* Adding owner-id to the filter for Snapshot
This commit is contained in:
Jeffery Smith 2019-05-25 05:34:59 -04:00 committed by Terry Cain
commit 4a99dcddb2
2 changed files with 7 additions and 0 deletions

View file

@ -394,6 +394,11 @@ def test_snapshot_filters():
set([snap.id for snap in snapshots_by_encrypted]
).should.equal({snapshot3.id})
snapshots_by_owner_id = conn.get_all_snapshots(
filters={'owner-id': '123456789012'})
set([snap.id for snap in snapshots_by_owner_id]
).should.equal({snapshot1.id, snapshot2.id, snapshot3.id})
@mock_ec2_deprecated
def test_snapshot_attribute():