|
| 1 | +--- |
| 2 | +- name: setup iso |
| 3 | + ngine_io.cloudstack.iso: |
| 4 | + name: "{{ cs_resource_prefix }}-iso" |
| 5 | + cross_zones: true |
| 6 | + state: absent |
| 7 | + register: iso |
| 8 | +- name: verify setup iso |
| 9 | + assert: |
| 10 | + that: |
| 11 | + - iso is successful |
| 12 | + |
| 13 | +- name: test download iso in check mode |
| 14 | + ngine_io.cloudstack.iso: |
| 15 | + name: "{{ cs_resource_prefix }}-iso" |
| 16 | + url: "{{ cs_iso_url }}" |
| 17 | + os_type: Debian GNU/Linux 7(64-bit) |
| 18 | + cross_zones: true |
| 19 | + register: iso |
| 20 | + check_mode: true |
| 21 | +- name: verify test download iso in check mode |
| 22 | + assert: |
| 23 | + that: |
| 24 | + - iso is changed |
| 25 | + |
| 26 | +- name: test download iso |
| 27 | + ngine_io.cloudstack.iso: |
| 28 | + name: "{{ cs_resource_prefix }}-iso" |
| 29 | + url: "{{ cs_iso_url }}" |
| 30 | + os_type: Debian GNU/Linux 7(64-bit) |
| 31 | + cross_zones: true |
| 32 | + register: iso |
| 33 | +- name: verify test download iso |
| 34 | + assert: |
| 35 | + that: |
| 36 | + - iso is changed |
| 37 | + - iso.name == cs_resource_prefix + "-iso" |
| 38 | + - iso.display_text == cs_resource_prefix + "-iso" |
| 39 | + - iso.cross_zones == true |
| 40 | + |
| 41 | +- name: test download iso idempotence |
| 42 | + ngine_io.cloudstack.iso: |
| 43 | + name: "{{ cs_resource_prefix }}-iso" |
| 44 | + url: "{{ cs_iso_url }}" |
| 45 | + os_type: Debian GNU/Linux 7(64-bit) |
| 46 | + cross_zones: true |
| 47 | + register: iso |
| 48 | +- name: verify test download iso idempotence |
| 49 | + assert: |
| 50 | + that: |
| 51 | + - iso is not changed |
| 52 | + - iso.name == cs_resource_prefix + "-iso" |
| 53 | + - iso.display_text == cs_resource_prefix + "-iso" |
| 54 | + - iso.cross_zones == true |
| 55 | + |
| 56 | +- name: test update iso in check mode |
| 57 | + ngine_io.cloudstack.iso: |
| 58 | + name: "{{ cs_resource_prefix }}-iso" |
| 59 | + display_text: "{{ cs_resource_prefix }}-iso display_text" |
| 60 | + url: "{{ cs_iso_url }}" |
| 61 | + os_type: CentOS 7 |
| 62 | + cross_zones: true |
| 63 | + register: iso |
| 64 | + check_mode: true |
| 65 | +- name: verify test update iso in check mode |
| 66 | + assert: |
| 67 | + that: |
| 68 | + - iso is changed |
| 69 | + - iso.name == cs_resource_prefix + "-iso" |
| 70 | + - iso.display_text == cs_resource_prefix + "-iso" |
| 71 | + - iso.cross_zones == true |
| 72 | + |
| 73 | +- name: test update iso |
| 74 | + ngine_io.cloudstack.iso: |
| 75 | + name: "{{ cs_resource_prefix }}-iso" |
| 76 | + display_text: "{{ cs_resource_prefix }}-iso display_text" |
| 77 | + url: "{{ cs_iso_url }}" |
| 78 | + os_type: CentOS 7 |
| 79 | + cross_zones: true |
| 80 | + register: iso |
| 81 | +- name: verify test update iso |
| 82 | + assert: |
| 83 | + that: |
| 84 | + - iso is changed |
| 85 | + - iso.name == cs_resource_prefix + "-iso" |
| 86 | + - iso.display_text == cs_resource_prefix + "-iso display_text" |
| 87 | + - iso.cross_zones == true |
| 88 | + |
| 89 | +- name: test update iso idempotence |
| 90 | + ngine_io.cloudstack.iso: |
| 91 | + name: "{{ cs_resource_prefix }}-iso" |
| 92 | + display_text: "{{ cs_resource_prefix }}-iso display_text" |
| 93 | + url: "{{ cs_iso_url }}" |
| 94 | + os_type: CentOS 7 |
| 95 | + cross_zones: true |
| 96 | + register: iso |
| 97 | +- name: verify test update iso idempotence |
| 98 | + assert: |
| 99 | + that: |
| 100 | + - iso is not changed |
| 101 | + - iso.name == cs_resource_prefix + "-iso" |
| 102 | + - iso.display_text == cs_resource_prefix + "-iso display_text" |
| 103 | + - iso.cross_zones == true |
| 104 | + |
| 105 | +- name: test remove iso in check mode |
| 106 | + ngine_io.cloudstack.iso: |
| 107 | + name: "{{ cs_resource_prefix }}-iso" |
| 108 | + state: absent |
| 109 | + cross_zones: true |
| 110 | + register: iso |
| 111 | + check_mode: true |
| 112 | +- name: verify test remove iso in check mode |
| 113 | + assert: |
| 114 | + that: |
| 115 | + - iso is changed |
| 116 | + - iso.name == cs_resource_prefix + "-iso" |
| 117 | + - iso.display_text == cs_resource_prefix + "-iso display_text" |
| 118 | + - iso.cross_zones == true |
| 119 | + |
| 120 | +- name: test remove iso |
| 121 | + ngine_io.cloudstack.iso: |
| 122 | + name: "{{ cs_resource_prefix }}-iso" |
| 123 | + state: absent |
| 124 | + cross_zones: true |
| 125 | + register: iso |
| 126 | +- name: verify test remove iso |
| 127 | + assert: |
| 128 | + that: |
| 129 | + - iso is changed |
| 130 | + - iso.name == cs_resource_prefix + "-iso" |
| 131 | + - iso.display_text == cs_resource_prefix + "-iso display_text" |
| 132 | + - iso.cross_zones == true |
| 133 | + |
| 134 | +- name: test remove iso idempotence |
| 135 | + ngine_io.cloudstack.iso: |
| 136 | + name: "{{ cs_resource_prefix }}-iso" |
| 137 | + state: absent |
| 138 | + cross_zones: true |
| 139 | + register: iso |
| 140 | +- name: verify test remove iso idempotence |
| 141 | + assert: |
| 142 | + that: |
| 143 | + - iso is not changed |
0 commit comments