diff options
author | Kenny Woodson <kwoodson@redhat.com> | 2017-01-27 09:25:57 -0500 |
---|---|---|
committer | Kenny Woodson <kwoodson@redhat.com> | 2017-01-27 09:25:57 -0500 |
commit | 8a95bb14d811f0e7fbb9f6504d1b66f78adfd877 (patch) | |
tree | 6d504b5fd16163b493a7bf897908f33e9e9adb75 /roles/lib_openshift/src/test/integration | |
parent | 8f2b3f132bc6cd03640c31c0c33cffb01f80138c (diff) | |
download | openshift-8a95bb14d811f0e7fbb9f6504d1b66f78adfd877.tar.gz openshift-8a95bb14d811f0e7fbb9f6504d1b66f78adfd877.tar.bz2 openshift-8a95bb14d811f0e7fbb9f6504d1b66f78adfd877.tar.xz openshift-8a95bb14d811f0e7fbb9f6504d1b66f78adfd877.zip |
Adding fix for when the resource does not exist. Added test cases.
Diffstat (limited to 'roles/lib_openshift/src/test/integration')
-rwxr-xr-x | roles/lib_openshift/src/test/integration/oc_scale.yml | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/roles/lib_openshift/src/test/integration/oc_scale.yml b/roles/lib_openshift/src/test/integration/oc_scale.yml index e96e16820..43a42c589 100755 --- a/roles/lib_openshift/src/test/integration/oc_scale.yml +++ b/roles/lib_openshift/src/test/integration/oc_scale.yml @@ -90,3 +90,22 @@ - "'results' in pods and 'results' in pods.results" - "{{ pods.results.results[0]['items']|length }} == 2" msg: "Did not find 1 replica in scale results." + + + # Test scale on non-existent dc + - name: scale non-existent dc + oc_scale: + name: not_there + kind: dc + replicas: 2 + register: scaleout + ignore_errors: True + + - debug: var=scaleout + + - assert: + that: + - scaleout.changed == False + - scaleout.msg.returncode == 1 + - "'msg' in scaleout and 'stderr' in scaleout.msg" + msg: "Deploymentconfig exists. This should error." |