use of io.strimzi.test.Resources in project strimzi by strimzi.
the class ConnectClusterTest method testDeployConnectClusterViaTemplate.
@Test
@Resources(value = "../examples/templates/cluster-controller", asAdmin = true)
@OpenShiftOnly
public void testDeployConnectClusterViaTemplate() {
Oc oc = (Oc) this.kubeClient;
String clusterName = "openshift-my-connect-cluster";
oc.newApp("strimzi-connect", map("CLUSTER_NAME", clusterName, "KAFKA_CONNECT_BOOTSTRAP_SERVERS", BOOTSTRAP_SERVERS));
String deploymentName = clusterName + "-connect";
oc.waitForDeployment(deploymentName);
oc.deleteByName("cm", clusterName);
oc.waitForResourceDeletion("deployment", deploymentName);
}
use of io.strimzi.test.Resources in project strimzi by strimzi.
the class KafkaClusterTest method testDeployKafkaClusterViaTemplate.
@Test
@Resources(value = "../examples/templates/cluster-controller", asAdmin = true)
@OpenShiftOnly
public void testDeployKafkaClusterViaTemplate() {
Oc oc = (Oc) this.kubeClient;
String clusterName = "openshift-my-cluster";
oc.newApp("strimzi-ephemeral", map("CLUSTER_NAME", clusterName));
oc.waitForStatefulSet(zookeeperStatefulSetName(clusterName), 1);
oc.waitForStatefulSet(kafkaStatefulSetName(clusterName), 3);
oc.deleteByName("cm", clusterName);
oc.waitForResourceDeletion("statefulset", kafkaStatefulSetName(clusterName));
oc.waitForResourceDeletion("statefulset", zookeeperStatefulSetName(clusterName));
}
Aggregations