Search in sources :

Example 1 with WaitConditions

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();
}
Also used : WaitConditions(io.debezium.testing.system.tools.WaitConditions) DeploymentConfig(io.fabric8.openshift.api.model.DeploymentConfig)

Example 2 with WaitConditions

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();
}
Also used : WaitConditions(io.debezium.testing.system.tools.WaitConditions) Deployment(io.fabric8.kubernetes.api.model.apps.Deployment)

Aggregations

WaitConditions (io.debezium.testing.system.tools.WaitConditions)2 Deployment (io.fabric8.kubernetes.api.model.apps.Deployment)1 DeploymentConfig (io.fabric8.openshift.api.model.DeploymentConfig)1