4fe08441be
* Warn on tests used as filters * Update docs, add aliases for tests that fit more gramatically with test syntax * Fix rst formatting * Add successful filter, alias of success * Remove renamed_deprecation, it was overkill * Make directory alias for is_dir * Update tests to use proper jinja test syntax * Update additional documentation, living outside of YAML files, to reflect proper jinja test syntax * Add conversion script, porting guide updates, and changelog updates * Update newly added uses of tests as filters * No underscore variable * Convert recent tests as filter changes to win_stat * Fix some changes related to rebasing a few integration tests * Make tests_as_filters_warning explicitly accept the name of the test, instead of inferring the name * Add test for tests_as_filters_warning * Update tests as filters in newly added/modified tests * Address recent changes to several integration tests * Address recent changes in cs_vpc
142 lines
4.1 KiB
YAML
142 lines
4.1 KiB
YAML
---
|
|
- name: setup iso
|
|
cs_iso:
|
|
name: "{{ cs_resource_prefix }}-iso"
|
|
state: absent
|
|
register: iso
|
|
- name: verify setup iso
|
|
assert:
|
|
that:
|
|
- iso is successful
|
|
|
|
- name: test download iso in check mode
|
|
cs_iso:
|
|
name: "{{ cs_resource_prefix }}-iso"
|
|
url: http://mirror.switch.ch/ftp/mirror/debian-cd/current/amd64/iso-cd/debian-7.7.0-amd64-netinst.iso
|
|
os_type: Debian GNU/Linux 7(64-bit)
|
|
cross_zones: true
|
|
register: iso
|
|
check_mode: true
|
|
- name: verify test download iso in check mode
|
|
assert:
|
|
that:
|
|
- iso is changed
|
|
|
|
- name: test download iso
|
|
cs_iso:
|
|
name: "{{ cs_resource_prefix }}-iso"
|
|
url: http://mirror.switch.ch/ftp/mirror/debian-cd/current/amd64/iso-cd/debian-7.7.0-amd64-netinst.iso
|
|
os_type: Debian GNU/Linux 7(64-bit)
|
|
cross_zones: true
|
|
register: iso
|
|
- name: verify test download iso
|
|
assert:
|
|
that:
|
|
- iso is changed
|
|
- iso.name == "{{ cs_resource_prefix }}-iso"
|
|
- iso.display_text == "{{ cs_resource_prefix }}-iso"
|
|
- iso.cross_zones == true
|
|
|
|
- name: test download iso idempotence
|
|
cs_iso:
|
|
name: "{{ cs_resource_prefix }}-iso"
|
|
url: http://mirror.switch.ch/ftp/mirror/debian-cd/current/amd64/iso-cd/debian-7.7.0-amd64-netinst.iso
|
|
os_type: Debian GNU/Linux 7(64-bit)
|
|
cross_zones: true
|
|
register: iso
|
|
- name: verify test download iso idempotence
|
|
assert:
|
|
that:
|
|
- iso is not changed
|
|
- iso.name == "{{ cs_resource_prefix }}-iso"
|
|
- iso.display_text == "{{ cs_resource_prefix }}-iso"
|
|
- iso.cross_zones == true
|
|
|
|
- name: test update iso in check mdoe
|
|
cs_iso:
|
|
name: "{{ cs_resource_prefix }}-iso"
|
|
display_text: "{{ cs_resource_prefix }}-iso display_text"
|
|
url: http://mirror.switch.ch/ftp/mirror/debian-cd/current/amd64/iso-cd/debian-7.7.0-amd64-netinst.iso
|
|
os_type: CentOS 7
|
|
cross_zones: true
|
|
register: iso
|
|
check_mode: true
|
|
- name: verify test update iso in check mode
|
|
assert:
|
|
that:
|
|
- iso is changed
|
|
- iso.name == "{{ cs_resource_prefix }}-iso"
|
|
- iso.display_text == "{{ cs_resource_prefix }}-iso"
|
|
- iso.cross_zones == true
|
|
|
|
- name: test update iso
|
|
cs_iso:
|
|
name: "{{ cs_resource_prefix }}-iso"
|
|
display_text: "{{ cs_resource_prefix }}-iso display_text"
|
|
url: http://mirror.switch.ch/ftp/mirror/debian-cd/current/amd64/iso-cd/debian-7.7.0-amd64-netinst.iso
|
|
os_type: CentOS 7
|
|
cross_zones: true
|
|
register: iso
|
|
- name: verify test update iso
|
|
assert:
|
|
that:
|
|
- iso is changed
|
|
- iso.name == "{{ cs_resource_prefix }}-iso"
|
|
- iso.display_text == "{{ cs_resource_prefix }}-iso display_text"
|
|
- iso.cross_zones == true
|
|
|
|
- name: test update iso idempotence
|
|
cs_iso:
|
|
name: "{{ cs_resource_prefix }}-iso"
|
|
display_text: "{{ cs_resource_prefix }}-iso display_text"
|
|
url: http://mirror.switch.ch/ftp/mirror/debian-cd/current/amd64/iso-cd/debian-7.7.0-amd64-netinst.iso
|
|
os_type: CentOS 7
|
|
cross_zones: true
|
|
register: iso
|
|
- name: verify test update iso idempotence
|
|
assert:
|
|
that:
|
|
- iso is not changed
|
|
- iso.name == "{{ cs_resource_prefix }}-iso"
|
|
- iso.display_text == "{{ cs_resource_prefix }}-iso display_text"
|
|
- iso.cross_zones == true
|
|
|
|
- name: test remove iso in check mode
|
|
cs_iso:
|
|
name: "{{ cs_resource_prefix }}-iso"
|
|
state: absent
|
|
cross_zones: true
|
|
register: iso
|
|
check_mode: true
|
|
- name: verify test remove iso in check mode
|
|
assert:
|
|
that:
|
|
- iso is changed
|
|
- iso.name == "{{ cs_resource_prefix }}-iso"
|
|
- iso.display_text == "{{ cs_resource_prefix }}-iso display_text"
|
|
- iso.cross_zones == true
|
|
|
|
- name: test remove iso
|
|
cs_iso:
|
|
name: "{{ cs_resource_prefix }}-iso"
|
|
state: absent
|
|
cross_zones: true
|
|
register: iso
|
|
- name: verify test remove iso
|
|
assert:
|
|
that:
|
|
- iso is changed
|
|
- iso.name == "{{ cs_resource_prefix }}-iso"
|
|
- iso.display_text == "{{ cs_resource_prefix }}-iso display_text"
|
|
- iso.cross_zones == true
|
|
|
|
- name: test remove iso idempotence
|
|
cs_iso:
|
|
name: "{{ cs_resource_prefix }}-iso"
|
|
state: absent
|
|
cross_zones: true
|
|
register: iso
|
|
- name: verify test remove iso idempotence
|
|
assert:
|
|
that:
|
|
- iso is not changed
|