use of io.strimzi.operator.cluster.operator.resource.ZookeeperScalerProvider in project strimzi by strimzi.
the class ResourceUtils method zookeeperScalerProvider.
public static ZookeeperScalerProvider zookeeperScalerProvider() {
return new ZookeeperScalerProvider() {
@Override
public ZookeeperScaler createZookeeperScaler(Reconciliation reconciliation, Vertx vertx, String zookeeperConnectionString, Function<Integer, String> zkNodeAddress, Secret clusterCaCertSecret, Secret coKeySecret, long operationTimeoutMs, int zkAdminSessionTimoutMs) {
ZookeeperScaler mockZooScaler = mock(ZookeeperScaler.class);
when(mockZooScaler.scale(anyInt())).thenReturn(Future.succeededFuture());
return mockZooScaler;
}
};
}
use of io.strimzi.operator.cluster.operator.resource.ZookeeperScalerProvider in project strimzi-kafka-operator by strimzi.
the class ResourceUtils method zookeeperScalerProvider.
public static ZookeeperScalerProvider zookeeperScalerProvider() {
return new ZookeeperScalerProvider() {
@Override
public ZookeeperScaler createZookeeperScaler(Reconciliation reconciliation, Vertx vertx, String zookeeperConnectionString, Function<Integer, String> zkNodeAddress, Secret clusterCaCertSecret, Secret coKeySecret, long operationTimeoutMs, int zkAdminSessionTimoutMs) {
ZookeeperScaler mockZooScaler = mock(ZookeeperScaler.class);
when(mockZooScaler.scale(anyInt())).thenReturn(Future.succeededFuture());
return mockZooScaler;
}
};
}
Aggregations