Skip to content
This repository was archived by the owner on Dec 28, 2025. It is now read-only.

Commit 3930010

Browse files
authored
[Improve][E2E] Improve redis e2e for delete (apache#10018)
1 parent c258991 commit 3930010

File tree

14 files changed

+490
-419
lines changed

14 files changed

+490
-419
lines changed

seatunnel-connectors-v2/connector-redis/pom.xml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,20 @@
5959
<version>${jedis.version}</version>
6060
</dependency>
6161

62+
<dependency>
63+
<groupId>org.apache.seatunnel</groupId>
64+
<artifactId>connector-common</artifactId>
65+
<version>${project.version}</version>
66+
<type>test-jar</type>
67+
<scope>test</scope>
68+
</dependency>
69+
70+
<dependency>
71+
<groupId>org.testcontainers</groupId>
72+
<artifactId>testcontainers</artifactId>
73+
<scope>test</scope>
74+
</dependency>
75+
6276
</dependencies>
6377

6478
</project>

seatunnel-e2e/seatunnel-connector-v2-e2e/connector-redis-e2e/src/test/java/org/apache/seatunnel/e2e/connector/redis/RedisContainerInfo.java renamed to seatunnel-connectors-v2/connector-redis/src/main/java/org/apache/seatunnel/connectors/seatunnel/redis/config/RedisContainerInfo.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,11 @@
1414
* See the License for the specific language governing permissions and
1515
* limitations under the License.
1616
*/
17-
package org.apache.seatunnel.e2e.connector.redis;
17+
package org.apache.seatunnel.connectors.seatunnel.redis.config;
1818

19+
import org.apache.seatunnel.shade.com.google.common.annotations.VisibleForTesting;
20+
21+
@VisibleForTesting
1922
public class RedisContainerInfo {
2023
private final String host;
2124
private final int port;
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
/*
2+
* Licensed to the Apache Software Foundation (ASF) under one or more
3+
* contributor license agreements. See the NOTICE file distributed with
4+
* this work for additional information regarding copyright ownership.
5+
* The ASF licenses this file to You under the Apache License, Version 2.0
6+
* (the "License"); you may not use this file except in compliance with
7+
* the License. You may obtain a copy of the License at
8+
*
9+
* http://www.apache.org/licenses/LICENSE-2.0
10+
*
11+
* Unless required by applicable law or agreed to in writing, software
12+
* distributed under the License is distributed on an "AS IS" BASIS,
13+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
* See the License for the specific language governing permissions and
15+
* limitations under the License.
16+
*/
17+
package org.apache.seatunnel.connectors.seatunnel.redis;
18+
19+
import org.apache.seatunnel.connectors.seatunnel.redis.config.RedisContainerInfo;
20+
21+
import org.junit.jupiter.api.condition.DisabledOnOs;
22+
import org.junit.jupiter.api.condition.OS;
23+
24+
@DisabledOnOs(
25+
value = OS.WINDOWS,
26+
disabledReason = "There is no docker environment on the windows test system")
27+
public class Redis5Test extends RedisTemplateTest {
28+
29+
@Override
30+
public RedisContainerInfo getRedisContainerInfo() {
31+
return new RedisContainerInfo("redis-e2e", 6379, "SeaTunnel", "redis:5");
32+
}
33+
}
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
/*
2+
* Licensed to the Apache Software Foundation (ASF) under one or more
3+
* contributor license agreements. See the NOTICE file distributed with
4+
* this work for additional information regarding copyright ownership.
5+
* The ASF licenses this file to You under the Apache License, Version 2.0
6+
* (the "License"); you may not use this file except in compliance with
7+
* the License. You may obtain a copy of the License at
8+
*
9+
* http://www.apache.org/licenses/LICENSE-2.0
10+
*
11+
* Unless required by applicable law or agreed to in writing, software
12+
* distributed under the License is distributed on an "AS IS" BASIS,
13+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
* See the License for the specific language governing permissions and
15+
* limitations under the License.
16+
*/
17+
package org.apache.seatunnel.connectors.seatunnel.redis;
18+
19+
import org.apache.seatunnel.connectors.seatunnel.redis.config.RedisContainerInfo;
20+
21+
import org.junit.jupiter.api.condition.DisabledOnOs;
22+
import org.junit.jupiter.api.condition.OS;
23+
24+
@DisabledOnOs(
25+
value = OS.WINDOWS,
26+
disabledReason = "There is no docker environment on the windows test system")
27+
public class Redis7Test extends RedisTemplateTest {
28+
29+
@Override
30+
public RedisContainerInfo getRedisContainerInfo() {
31+
return new RedisContainerInfo("redis-e2e", 6379, "SeaTunnel", "redis:7");
32+
}
33+
}

0 commit comments

Comments
 (0)