AggregationClusterCommandsIT.java
package redis.clients.jedis.commands.unified.cluster.search;
import io.redis.test.annotations.ConditionalOnEnv;
import io.redis.test.annotations.SinceRedisVersion;
import org.junit.jupiter.api.BeforeAll;
import org.junit.jupiter.params.ParameterizedClass;
import org.junit.jupiter.params.provider.MethodSource;
import redis.clients.jedis.Endpoints;
import redis.clients.jedis.RedisProtocol;
import redis.clients.jedis.UnifiedJedis;
import redis.clients.jedis.commands.unified.cluster.ClusterCommandsTestHelper;
import redis.clients.jedis.commands.unified.search.AggregationCommandsTestBase;
import redis.clients.jedis.util.TestEnvUtil;
@ParameterizedClass
@MethodSource("redis.clients.jedis.commands.CommandsTestsParameters#respVersions")
@SinceRedisVersion(value = "8.0.0", message = "Cluster search tests require Redis 8.0 or higher")
@ConditionalOnEnv(value = TestEnvUtil.ENV_OSS_SOURCE, enabled = false)
public class AggregationClusterCommandsIT extends AggregationCommandsTestBase {
@BeforeAll
public static void prepareEndpoint() {
endpoint = Endpoints.getRedisEndpoint("cluster-stable");
}
public AggregationClusterCommandsIT(RedisProtocol protocol) {
super(protocol);
}
@Override
protected UnifiedJedis createTestClient() {
return ClusterCommandsTestHelper.getCleanCluster(protocol, endpoint);
}
@Override
public void aggregateIteration() {
// skip the test because ftAggregateIteration is not compatible with cluster
}
@Override
public void aggregateIterationCollect() {
// skip the test because ftAggregateIteration is not compatible with cluster
}
@Override
public void cursor() {
// skip the test because ftAggregateIterator should be used instead of raw ftCursor in cluster
// env
}
}