summaryrefslogtreecommitdiffstats
path: root/roles/lib_openshift/src/test/integration/oc_route.yml
diff options
context:
space:
mode:
authorKenny Woodson <kwoodson@redhat.com>2017-02-08 14:00:40 -0500
committerGitHub <noreply@github.com>2017-02-08 14:00:40 -0500
commit5c6dc36dda1e2ef87f4e43c77e682d829a6bbd3c (patch)
treea125b174d8cf2b659a49e70037c72115c98d63a1 /roles/lib_openshift/src/test/integration/oc_route.yml
parent405bd70f0f94f4a45cb4b7cfc7634a82928b6b2e (diff)
parent28e64664e55c69eaa0a7d87933e1a702cd7ebac7 (diff)
downloadopenshift-5c6dc36dda1e2ef87f4e43c77e682d829a6bbd3c.tar.gz
openshift-5c6dc36dda1e2ef87f4e43c77e682d829a6bbd3c.tar.bz2
openshift-5c6dc36dda1e2ef87f4e43c77e682d829a6bbd3c.tar.xz
openshift-5c6dc36dda1e2ef87f4e43c77e682d829a6bbd3c.zip
Merge pull request #3283 from kwoodson/router_port
Adding test cases. Adding support for specifying port on route.
Diffstat (limited to 'roles/lib_openshift/src/test/integration/oc_route.yml')
-rwxr-xr-xroles/lib_openshift/src/test/integration/oc_route.yml40
1 files changed, 40 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..b9d635eaa 100755
--- a/roles/lib_openshift/src/test/integration/oc_route.yml
+++ b/roles/lib_openshift/src/test/integration/oc_route.yml
@@ -75,3 +75,43 @@
- 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"
+ - "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"
+ - "routeout.results.results[0]['spec']['port']['targetPort'] == 8444"
+ msg: Route update not idempotent