File tree Expand file tree Collapse file tree 4 files changed +72
-29
lines changed Expand file tree Collapse file tree 4 files changed +72
-29
lines changed Original file line number Diff line number Diff line change
1
+ name : Parameterized Integration Tests
2
+
3
+ on :
4
+ workflow_call :
5
+ inputs :
6
+ java-version :
7
+ type : string
8
+ required : true
9
+ kube-version :
10
+ type : string
11
+ required : true
12
+ http-client :
13
+ type : string
14
+ required : false
15
+ default : ' okhttp'
16
+ experimental :
17
+ type : boolean
18
+ required : false
19
+ default : false
20
+
21
+ jobs :
22
+ integration_tests :
23
+ runs-on : ubuntu-latest
24
+ continue-on-error : ${{ inputs.experimental }}
25
+ timeout-minutes : 20
26
+ steps :
27
+ - name : Output test information
28
+ run : echo "Running ITs with ${{ inputs.http-client }}, ${{ inputs.kube-version }}, ${{ inputs.java-version }}"
29
+ - uses : actions/checkout@v3
30
+ - name : Set up Java and Maven
31
+ uses : actions/setup-java@v3
32
+ with :
33
+ distribution : temurin
34
+ java-version : ${{ inputs.java-version }}
35
+ cache : ' maven'
36
+ - name : Set up Minikube
37
+
38
+ with :
39
+ minikube version : ' v1.28.0'
40
+ kubernetes version : ${{ inputs.kube-version }}
41
+ driver : ' docker'
42
+ github token : ${{ secrets.GITHUB_TOKEN }}
43
+ - name : Run integration tests
44
+ run : ./mvnw ${MAVEN_ARGS} -B package -P no-unit-tests -Dfabric8-httpclient-impl.name=${{inputs.http-client}} --file pom.xml
Original file line number Diff line number Diff line change @@ -32,28 +32,26 @@ jobs:
32
32
run : ./mvnw ${MAVEN_ARGS} -B test --file pom.xml
33
33
34
34
integration_tests :
35
- runs-on : ubuntu-latest
36
35
strategy :
37
36
matrix :
38
37
java : [ 11, 17 ]
39
38
kubernetes : [ 'v1.23.15', 'v1.24.9', 'v1.25.5' ]
40
- steps :
41
- - uses : actions/checkout@v3
42
- - name : Set up Java and Maven
43
- uses : actions/setup-java@v3
44
- with :
45
- distribution : temurin
46
- java-version : ${{ matrix.java }}
47
- cache : ' maven'
48
- - name : Set up Minikube
49
-
50
- with :
51
- minikube version : ' v1.28.0'
52
- kubernetes version : ${{ matrix.kubernetes }}
53
- driver : ' docker'
54
- github token : ${{ secrets.GITHUB_TOKEN }}
55
- - name : Run integration tests
56
- run : ./mvnw ${MAVEN_ARGS} -B package -P no-unit-tests --file pom.xml
39
+ uses : ./.github/workflows/integration-tests.yml
40
+ with :
41
+ java-version : ${{ matrix.java }}
42
+ kube-version : ${{ matrix.kubernetes }}
43
+
44
+ httpclient-tests :
45
+ strategy :
46
+ matrix :
47
+ httpclient : [ 'vertx', 'jdk', 'jetty' ]
48
+ uses : ./.github/workflows/integration-tests.yml
49
+ with :
50
+ java-version : 17
51
+ kube-version : ' v1.25.5'
52
+ http-client : ${{ matrix.httpclient }}
53
+ experimental : true
54
+
57
55
special_integration_tests :
58
56
runs-on : ubuntu-latest
59
57
strategy :
Original file line number Diff line number Diff line change 19
19
</dependency >
20
20
<dependency >
21
21
<groupId >io.fabric8</groupId >
22
- <artifactId >kubernetes-httpclient-okhttp </artifactId >
22
+ <artifactId >kubernetes-httpclient-${fabric8-httpclient-impl.name} </artifactId >
23
23
</dependency >
24
24
<dependency >
25
25
<groupId >org.apache.commons</groupId >
Original file line number Diff line number Diff line change 41
41
<maven .compiler.target>${java.version} </maven .compiler.target>
42
42
<sonar .organization>java-operator-sdk</sonar .organization>
43
43
<sonar .host.url>https://sonarcloud.io</sonar .host.url>
44
+ <fabric8-httpclient-impl .name>okhttp</fabric8-httpclient-impl .name>
44
45
45
46
<junit .version>5.9.1</junit .version>
46
47
<fabric8-client .version>6.5.1</fabric8-client .version>
219
220
<version >${fabric8-client.version} </version >
220
221
</dependency >
221
222
<!-- We currently only recommend using the legacy okhttp client and the vert.x-based implementation -->
222
- <!-- <dependency> -- >
223
- <!-- <groupId>io.fabric8</groupId> -- >
224
- <!-- <artifactId>kubernetes-httpclient-jdk</artifactId> -- >
225
- <!-- <version>${fabric8-client.version}</version> -- >
226
- <!-- </dependency> -- >
227
- <!-- <dependency> -- >
228
- <!-- <groupId>io.fabric8</groupId> -- >
229
- <!-- <artifactId>kubernetes-httpclient-jetty</artifactId> -- >
230
- <!-- <version>${fabric8-client.version}</version> -- >
231
- <!-- </dependency> -- >
223
+ <dependency >
224
+ <groupId >io.fabric8</groupId >
225
+ <artifactId >kubernetes-httpclient-jdk</artifactId >
226
+ <version >${fabric8-client.version} </version >
227
+ </dependency >
228
+ <dependency >
229
+ <groupId >io.fabric8</groupId >
230
+ <artifactId >kubernetes-httpclient-jetty</artifactId >
231
+ <version >${fabric8-client.version} </version >
232
+ </dependency >
232
233
</dependencies >
233
234
</dependencyManagement >
234
235
You can’t perform that action at this time.
0 commit comments