use of com.spotify.helios.common.descriptors.HostSelector in project helios by spotify.
the class HostMatcherTest method group.
private static DeploymentGroup group(String... selectorStrings) {
final List<HostSelector> selectors = new ArrayList<>();
for (final String selectorString : selectorStrings) {
final HostSelector selector = HostSelector.parse(selectorString);
if (selector == null) {
throw new IllegalArgumentException("bad selector: " + selectorString);
}
selectors.add(selector);
}
return DeploymentGroup.newBuilder().setHostSelectors(selectors).build();
}
Aggregations