Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add filtering by resource tags for snapshots (EUCA-4662)
Snapshot filtering using tags is now supported via the new SnapshotFilterSupport class. The SnapshotFilterSupportTest provides unit test coverage of the tag filtering configuration. The SnapshotManager is updated to use filters when describing snapshots.
- Loading branch information
Showing
4 changed files
with
54 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 15 additions & 0 deletions
15
...luster-manager/src/test/java/com/eucalyptus/blockstorage/SnapshotFilterSupportTest.groovy
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
package com.eucalyptus.blockstorage | ||
|
||
import com.eucalyptus.tags.FilterSupportTest | ||
import org.junit.Test | ||
|
||
/** | ||
* Unit tests for snapshot filter support | ||
*/ | ||
class SnapshotFilterSupportTest extends FilterSupportTest.InstanceTest<Snapshot> { | ||
|
||
@Test | ||
void testFilteringSupport() { | ||
assertValid( new Snapshots.SnapshotFilterSupport() ) | ||
} | ||
} |