use of com.mesosphere.sdk.specification.PodInstance in project dcos-commons by mesosphere.
the class CanaryStrategyTest method beforeAll.
@BeforeClass
public static void beforeAll() {
for (int i = 0; i < 5; i++) {
PodSpec podSpec = DefaultPodSpec.newBuilder("executor-uri").type("type" + i).count(1).tasks(Arrays.asList(TestPodFactory.getTaskSpec())).build();
PodInstance podInstance = new DefaultPodInstance(podSpec, 0);
PodInstanceRequirement podInstanceRequirement = PodInstanceRequirement.newBuilder(podInstance, Arrays.asList("task0")).build();
podInstanceRequirements.add(podInstanceRequirement);
}
}
Aggregations