summaryrefslogtreecommitdiffstats
path: root/roles/lib_openshift/src/test/integration/oc_route.yml
diff options
context:
space:
mode:
Diffstat (limited to 'roles/lib_openshift/src/test/integration/oc_route.yml')
-rwxr-xr-xroles/lib_openshift/src/test/integration/oc_route.yml38
1 files changed, 38 insertions, 0 deletions
diff --git a/roles/lib_openshift/src/test/integration/oc_route.yml b/roles/lib_openshift/src/test/integration/oc_route.yml
index 620d5d5e7..489e982ce 100755
--- a/roles/lib_openshift/src/test/integration/oc_route.yml
+++ b/roles/lib_openshift/src/test/integration/oc_route.yml
@@ -75,3 +75,41 @@
- assert:
that: "routeout.changed == False"
msg: Route create not idempotent
+
+ - name: delete route
+ oc_route:
+ name: test
+ namespace: default
+ state: absent
+ register: routeout
+
+ - name: create route
+ oc_route:
+ name: test
+ namespace: default
+ tls_termination: passthrough
+ service_name: test
+ host: test.example
+ port: 8443
+ register: routeout
+
+ - assert:
+ that: "routeout.changed == True"
+ that: "routeout.results['results'][0]['spec']['port']['targetPort'] == 8443"
+ msg: Route create not idempotent
+
+ - name: create route
+ oc_route:
+ name: test
+ namespace: default
+ tls_termination: passthrough
+ service_name: test
+ host: test.example
+ port: 8444
+ register: routeout
+ - debug: var=routeout
+
+ - assert:
+ that: "routeout.changed == True"
+ that: "routeout.results.results[0]['spec']['port']['targetPort'] == 8444"
+ msg: Route update not idempotent