use of io.debezium.testing.system.tools.WaitConditions in project debezium by debezium.
the class OcpApicurioV1Controller method waitForRegistry.
@Override
public void waitForRegistry() throws InterruptedException {
LOGGER.info("Waiting for deployments of registry '" + name + "'");
await().atMost(scaled(1), MINUTES).pollInterval(5, SECONDS).until(() -> !getRegistryDeployments(name).isEmpty());
DeploymentConfig dc = getRegistryDeployments(name).get(0);
ocp.deploymentConfigs().inNamespace(project).withName(dc.getMetadata().getName()).waitUntilCondition(WaitConditions::deploymentAvailableCondition, scaled(5), MINUTES);
registry = registryOperation().withName(name).get();
}
use of io.debezium.testing.system.tools.WaitConditions in project debezium by debezium.
the class OcpApicurioV2Controller method waitForRegistry.
@Override
public void waitForRegistry() throws InterruptedException {
LOGGER.info("Waiting for deployments of registry '" + name + "'");
await().atMost(scaled(1), MINUTES).pollInterval(5, SECONDS).until(() -> !getRegistryDeployments(name).isEmpty());
Deployment deployment = getRegistryDeployments(name).get(0);
ocp.apps().deployments().inNamespace(project).withName(deployment.getMetadata().getName()).waitUntilCondition(WaitConditions::deploymentAvailableCondition, scaled(5), MINUTES);
registry = registryOperation().withName(name).get();
}
Aggregations