File tree Expand file tree Collapse file tree 7 files changed +147
-4
lines changed
src/test/java/org/apache/flink/streaming/connectors/redis/table Expand file tree Collapse file tree 7 files changed +147
-4
lines changed Original file line number Diff line number Diff line change
1
+ # Licensed to the Apache Software Foundation (ASF) under one
2
+ # or more contributor license agreements. See the NOTICE file
3
+ # distributed with this work for additional information
4
+ # regarding copyright ownership. The ASF licenses this file
5
+ # to you under the Apache License, Version 2.0 (the
6
+ # "License"); you may not use this file except in compliance
7
+ # with 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,
12
+ # software distributed under the License is distributed on an
13
+ # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14
+ # KIND, either express or implied. See the License for the
15
+ # specific language governing permissions and limitations
16
+ # under the License.
17
+ #
18
+ ---
19
+ name : Build Redis Connector
20
+ on :
21
+ pull_request :
22
+ push :
23
+
24
+ jobs :
25
+ build-extension :
26
+ name : " Build Connector"
27
+ runs-on : ubuntu-latest
28
+ defaults :
29
+ run :
30
+ shell : bash
31
+ steps :
32
+ - name : Checkout
33
+ uses : actions/checkout@master
34
+
35
+ - name : Setup java
36
+ uses : actions/setup-java@v2
37
+ with :
38
+ distribution : adopt
39
+ java-version : ' 8'
40
+
41
+ - name : Build flink connector 1.15
42
+ run : |
43
+ mvn clean package -DskipTests \
44
+ -Dflink.version=1.15.0
Original file line number Diff line number Diff line change
1
+ # Licensed to the Apache Software Foundation (ASF) under one
2
+ # or more contributor license agreements. See the NOTICE file
3
+ # distributed with this work for additional information
4
+ # regarding copyright ownership. The ASF licenses this file
5
+ # to you under the Apache License, Version 2.0 (the
6
+ # "License"); you may not use this file except in compliance
7
+ # with 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,
12
+ # software distributed under the License is distributed on an
13
+ # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14
+ # KIND, either express or implied. See the License for the
15
+ # specific language governing permissions and limitations
16
+ # under the License.
17
+ #
18
+ ---
19
+ name : Code Style Checker
20
+
21
+ on :
22
+ pull_request :
23
+ push :
24
+ branches :
25
+ - dev
26
+
27
+ jobs :
28
+ java-checkstyle :
29
+ name : " CheckStyle"
30
+ runs-on : ubuntu-24.04
31
+ steps :
32
+ - name : Checkout
33
+ uses : actions/checkout@v3
34
+ with :
35
+ persist-credentials : false
36
+ submodules : recursive
37
+
38
+ - name : Setup java
39
+ uses : actions/setup-java@v2
40
+ with :
41
+ distribution : adopt
42
+ java-version : ' 8'
43
+
44
+ - name : Run java checkstyle
45
+ run :
46
+ mvn clean compile checkstyle:checkstyle
Original file line number Diff line number Diff line change
1
+ #
2
+ # Licensed to the Apache Software Foundation (ASF) under one
3
+ # or more contributor license agreements. See the NOTICE file
4
+ # distributed with this work for additional information
5
+ # regarding copyright ownership. The ASF licenses this file
6
+ # to you under the Apache License, Version 2.0 (the
7
+ # "License"); you may not use this file except in compliance
8
+ # with the License. You may obtain a copy of the License at
9
+ #
10
+ # http://www.apache.org/licenses/LICENSE-2.0
11
+ #
12
+ # Unless required by applicable law or agreed to in writing,
13
+ # software distributed under the License is distributed on an
14
+ # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15
+ # KIND, either express or implied. See the License for the
16
+ # specific language governing permissions and limitations
17
+ # under the License.
18
+ #
19
+ ---
20
+ name : License Check
21
+ on :
22
+ pull_request :
23
+ push :
24
+ branches :
25
+ - dev
26
+ jobs :
27
+ license-check :
28
+ name : " License Check"
29
+ runs-on : ubuntu-24.04
30
+ steps :
31
+ - name : " Checkout ${{ github.ref }} ( ${{ github.sha }} )"
32
+ uses : actions/checkout@v2
33
+ - name : Check License
34
+ uses : apache/skywalking-eyes@v0.2.0
35
+ env :
36
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
Original file line number Diff line number Diff line change @@ -44,7 +44,7 @@ public void testSinkValueWithExpire() throws Exception {
44
44
45
45
String sink =
46
46
"create table sink_redis(name varchar, level varchar, age varchar) with ( "
47
- + sigleWith ()
47
+ + singleWith ()
48
48
+ "'ttl'='10', '"
49
49
+ REDIS_COMMAND
50
50
+ "'='"
@@ -74,7 +74,7 @@ public void testSinkValueWithExpireOnKeyPresent() throws Exception {
74
74
75
75
String dim =
76
76
"create table sink_redis(name varchar, level varchar, age varchar) with ( "
77
- + sigleWith ()
77
+ + singleWith ()
78
78
+ " 'ttl'='8', 'ttl.key.not.absent'='true', '"
79
79
+ REDIS_COMMAND
80
80
+ "'='"
Original file line number Diff line number Diff line change @@ -44,7 +44,7 @@ public void testSinkLimitLettucePool() throws Exception {
44
44
45
45
String sink =
46
46
"create table sink_redis(name varchar, level varchar, age varchar) with ( "
47
- + sigleWith ()
47
+ + singleWith ()
48
48
+ "'ttl'='10', '"
49
49
+ REDIS_COMMAND
50
50
+ "'='"
Original file line number Diff line number Diff line change @@ -63,7 +63,7 @@ public static void stopSingle() {
63
63
redisClient .shutdown ();
64
64
}
65
65
66
- protected String sigleWith () {
66
+ protected String singleWith () {
67
67
return "'connector'='redis', "
68
68
+ "'host'='"
69
69
+ REDIS_HOST
Original file line number Diff line number Diff line change 1
1
<?xml version =" 1.0" encoding =" UTF-8" standalone =" no" ?>
2
+ <!--
3
+ Licensed to the Apache Software Foundation (ASF) under one
4
+ or more contributor license agreements. See the NOTICE file
5
+ distributed with this work for additional information
6
+ regarding copyright ownership. The ASF licenses this file
7
+ to you under the Apache License, Version 2.0 (the
8
+ "License"); you may not use this file except in compliance
9
+ with the License. You may obtain a copy of the License at
2
10
11
+ http://www.apache.org/licenses/LICENSE-2.0
12
+
13
+ Unless required by applicable law or agreed to in writing,
14
+ software distributed under the License is distributed on an
15
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16
+ KIND, either express or implied. See the License for the
17
+ specific language governing permissions and limitations
18
+ under the License.
19
+ -->
3
20
<profiles version =" 13" >
4
21
<profile kind =" CodeFormatterProfile" name =" 'Flink Connector for Redis'" version =" 13" >
5
22
<setting id =" org.eclipse.jdt.core.compiler.source" value =" 1.8" />
You can’t perform that action at this time.
0 commit comments