Skip to content

Commit 78feaf0

Browse files
authored
Merge pull request #466 from WASdev/route-tests
Add tests for default path for a route
2 parents 4511ea4 + 4d014c0 commit 78feaf0

File tree

8 files changed

+72
-3
lines changed

8 files changed

+72
-3
lines changed
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
apiVersion: liberty.websphere.ibm.com/v1
2+
kind: WebSphereLibertyApplication
3+
metadata:
4+
name: route
5+
spec:
6+
route:
7+
host: myapp.mycompany.com
8+
path: /mypath
9+
10+

bundle/tests/scorecard/kuttl/routes/01-assert.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,11 @@ status:
66
replicas: 1
77
readyReplicas: 1
88
updatedReplicas: 1
9+
---
10+
apiVersion: route.openshift.io/v1
11+
kind: Route
12+
metadata:
13+
name: route
14+
spec:
15+
host: myapp.mycompany.com
16+
path: /mypath
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
apiVersion: apps/v1
2+
kind: Deployment
3+
metadata:
4+
name: route
5+
annotations:
6+
step: "02"
7+
status:
8+
replicas: 1
9+
readyReplicas: 1
10+
updatedReplicas: 1
11+
---
12+
apiVersion: route.openshift.io/v1
13+
kind: Route
14+
metadata:
15+
name: route
16+
annotations:
17+
step: "02"
18+
spec:
19+
host: myapp.mycompany.com
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
apiVersion: route.openshift.io/v1
2+
kind: Route
3+
metadata:
4+
name: route
5+
annotations:
6+
step: "02"
7+
spec:
8+
path: /mypath
9+
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
apiVersion: liberty.websphere.ibm.com/v1
2+
kind: WebSphereLibertyApplication
3+
metadata:
4+
name: route
5+
annotations:
6+
step: "02"
7+
spec:
8+
# Add fields here
9+
applicationImage: icr.io/appcafe/websphere-liberty:full-java8-openj9-ubi
10+
replicas: 1
11+
expose: true
12+
license:
13+
accept: true
14+
route:
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
apiVersion: apps/v1
2+
kind: Deployment
3+
metadata:
4+
name: route
5+
status:
6+
replicas: 1
7+
readyReplicas: 1
8+
updatedReplicas: 1

bundle/tests/scorecard/kuttl/routes/01-delete-route.yaml renamed to bundle/tests/scorecard/kuttl/routes/03-delete-route.yaml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,9 @@ kind: WebSphereLibertyApplication
33
metadata:
44
name: route
55
spec:
6+
# Add fields here
7+
applicationImage: icr.io/appcafe/websphere-liberty:full-java8-openj9-ubi
68
license:
79
accept: true
8-
applicationImage: icr.io/appcafe/websphere-liberty:full-java8-openj9-ubi
9-
replicas: 1
10-
expose: false
10+
expose: false
11+

0 commit comments

Comments
 (0)