Commit f45472b pablo gonzalez granados
committed
1 parent d7cbfb9 commit f45472b Copy full SHA for f45472b
File tree 9 files changed +29
-75
lines changed
007-openshift-yaml-health-probes
java/io/quarkus/qe/openshift
020-quarkus-http-non-application-endpoints
test/java/io/quarkus/qe/openshift
9 files changed +29
-75
lines changed Original file line number Diff line number Diff line change 1
- # Quarkus - OpenShift extension
1
+ # Quarkus - OpenShift extension ( [ Moved to 020-quarkus-all-extensions ] ( ../020-quarkus-http-non-application-endpoints ) )
2
2
By adding * quarkus-openshift* extension, maven build creates * /kubernetes* directory under the * /target*
3
3
which includes * .yml* files for deployment
4
4
5
5
### Test goal
6
6
The goal of the test is to ensure that * kubernetes.yml* file has been created
7
- under mentioned * /kubernetes* directory and parse that file to see required fields are present.
7
+ under mentioned * /kubernetes* directory and parse that file to see required fields are present.
8
+
Load Diff This file was deleted.
Load Diff This file was deleted.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1
- # Scenario 020: Quarkus http non-application endpoints
1
+ # Table of Contents
2
+ 1 . [ Quarkus http non-application endpoints] ( #Quarkus-http-non-application-endpoints )
3
+ 2 . [ Quarkus - OpenShift extension] ( #Quarkus-openshift-extension )
4
+
5
+ ## Quarkus http non-application endpoints
2
6
3
7
We have covered the following non-application endpoints:
4
8
@@ -67,4 +71,12 @@ quarkus.http.non-application-root-path=/q
67
71
quarkus.http.redirect-to-non-application-root-path=true
68
72
```
69
73
70
- Valid request example: ` http://localhost:8080/api/health ` , will be redirected to ` http://localhost:8080/q/health `
74
+ Valid request example: ` http://localhost:8080/api/health ` , will be redirected to ` http://localhost:8080/q/health `
75
+
76
+ ## Quarkus OpenShift extension
77
+ By adding * quarkus-openshift* extension, maven build creates * /kubernetes* directory under the * /target*
78
+ which includes * .yml* files for deployment
79
+
80
+ ### Test goal
81
+ The goal of the test is to ensure that * kubernetes.yml* file has been created
82
+ under mentioned * /kubernetes* directory and parse that file to see required fields are present.
Original file line number Diff line number Diff line change 33
33
<groupId >io.quarkus</groupId >
34
34
<artifactId >quarkus-smallrye-openapi</artifactId >
35
35
</dependency >
36
+ <dependency >
37
+ <groupId >io.quarkus</groupId >
38
+ <artifactId >quarkus-openshift</artifactId >
39
+ </dependency >
36
40
37
41
<dependency >
38
42
<groupId >io.quarkus</groupId >
44
48
<artifactId >rest-assured</artifactId >
45
49
<scope >test</scope >
46
50
</dependency >
51
+ <dependency >
52
+ <groupId >org.yaml</groupId >
53
+ <artifactId >snakeyaml</artifactId >
54
+ <scope >test</scope >
55
+ </dependency >
47
56
</dependencies >
48
57
</project >
Original file line number Diff line number Diff line change
1
+ quarkus.container-image.name =demo
1
2
quarkus.application.name =non-application endpoints
2
3
quarkus.http.root-path =/api
3
4
quarkus.http.non-application-root-path =/q
Original file line number Diff line number Diff line change 1
- package org . acme . quickstart ;
1
+ package io . quarkus . qe . openshift ;
2
2
3
3
import static org .junit .jupiter .api .Assertions .assertEquals ;
4
4
import static org .junit .jupiter .api .Assertions .assertTrue ;
@@ -46,4 +46,4 @@ public void testOpenShiftYamlHealthProbesWithCustomImageName() throws FileNotFou
46
46
fail ("Parsed yaml file didn't have expected Deployment definition" );
47
47
}
48
48
}
49
- }
49
+ }
Original file line number Diff line number Diff line change 14
14
<module >004-quarkus-HHH-and-HV</module >
15
15
<module >005-quarkus-and-maven-profiles</module >
16
16
<module >006-quartz-manually-scheduled-job</module >
17
- <module >007-openshift-yaml-health-probes</module >
18
17
<module >008-infinispan-getting-started</module >
19
18
<module >009-quarkus-infinispan-grpc-kafka</module >
20
19
<module >010-quarkus-opentracing-reactive-grpc</module >
You can’t perform that action at this time.
0 commit comments