diff options
Diffstat (limited to 'test/integration/targets/cs_instancegroup/tasks/main.yml')
-rw-r--r-- | test/integration/targets/cs_instancegroup/tasks/main.yml | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/test/integration/targets/cs_instancegroup/tasks/main.yml b/test/integration/targets/cs_instancegroup/tasks/main.yml index d0f3c2258c..c9296c100b 100644 --- a/test/integration/targets/cs_instancegroup/tasks/main.yml +++ b/test/integration/targets/cs_instancegroup/tasks/main.yml @@ -17,6 +17,16 @@ - ig|failed - "ig.msg == 'missing required arguments: name'" +- name: test present instance group in check mode + cs_instancegroup: name={{ cs_resource_prefix }}_ig + register: ig + check_mode: true +- name: verify results of create instance group in check mode + assert: + that: + - ig|success + - ig|changed + - name: test present instance group cs_instancegroup: name={{ cs_resource_prefix }}_ig register: ig @@ -37,6 +47,17 @@ - not ig|changed - ig.name == "{{ cs_resource_prefix }}_ig" +- name: test absent instance group in check mode + cs_instancegroup: name={{ cs_resource_prefix }}_ig state=absent + register: ig + check_mode: true +- name: verify results of absent instance group in check mode + assert: + that: + - ig|success + - ig|changed + - ig.name == "{{ cs_resource_prefix }}_ig" + - name: test absent instance group cs_instancegroup: name={{ cs_resource_prefix }}_ig state=absent register: ig |