Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add filtering on resource tags for instances (EUCA-4655)
Instance filtering using tags is now supported via the new VmInstanceFilterSupport class. The VmInstanceFilterSupportTest provides unit test coverage of the tag filtering configuration. VmControl is updated to use filters when describing instances. VmInstances is updated to allow use of a Criteria / alias Map for instance lookup (for database filters)
- Loading branch information
Showing
6 changed files
with
96 additions
and
30 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
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
clc/modules/cluster-manager/src/test/java/com/eucalyptus/vm/VmInstanceFilterSupport.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.vm | ||
|
||
import org.junit.Test | ||
import com.eucalyptus.tags.FilterSupportTest | ||
|
||
/** | ||
* Unit tests for instance filter support | ||
*/ | ||
class VmInstanceFilterSupport extends FilterSupportTest.InstanceTest<VmInstance> { | ||
|
||
@Test | ||
void testFilteringSupport() { | ||
assertValid( new VmInstances.VmInstanceFilterSupport() ) | ||
} | ||
} |