mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
re-enable win_chocolatey tests, add win_template to smoketest (#26835)
This commit is contained in:
parent
e63f69464f
commit
5c8e19d630
3 changed files with 37 additions and 42 deletions
|
@ -1 +1,2 @@
|
||||||
windows/ci/group3
|
windows/ci/group3
|
||||||
|
windows/ci/smoketest
|
||||||
|
|
|
@ -16,53 +16,46 @@
|
||||||
# You should have received a copy of the GNU General Public License
|
# You should have received a copy of the GNU General Public License
|
||||||
# along with Ansible. If not, see <http://www.gnu.org/licenses/>.
|
# along with Ansible. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
- name: simple failure smoke test # NB: this is the only test that runs under shippable until others can use non-internet endpoints
|
- name: install sysinternals
|
||||||
win_chocolatey:
|
win_chocolatey:
|
||||||
register: choco_fail
|
name: sysinternals
|
||||||
failed_when: "not choco_fail.msg | regex_search('Missing required argument: name')"
|
state: present
|
||||||
|
register: install_sysinternals
|
||||||
|
|
||||||
- when: lookup('env', 'ANSIBLE_TEST_CI') != 'shippable'
|
- name: verify install sysinternals
|
||||||
block:
|
assert:
|
||||||
- name: install sysinternals
|
that:
|
||||||
win_chocolatey:
|
- 'install_sysinternals.changed == true'
|
||||||
name: sysinternals
|
|
||||||
state: present
|
|
||||||
register: install_sysinternals
|
|
||||||
|
|
||||||
- name: verify install sysinternals
|
- name: install sysinternals again
|
||||||
assert:
|
win_chocolatey:
|
||||||
that:
|
name: sysinternals
|
||||||
- 'install_sysinternals.changed == true'
|
state: present
|
||||||
|
register: install_sysinternals_again
|
||||||
|
|
||||||
- name: install sysinternals again
|
- name: verify install sysinternals again
|
||||||
win_chocolatey:
|
assert:
|
||||||
name: sysinternals
|
that:
|
||||||
state: present
|
- 'install_sysinternals_again.changed == false'
|
||||||
register: install_sysinternals_again
|
|
||||||
|
|
||||||
- name: verify install sysinternals again
|
- name: remove sysinternals
|
||||||
assert:
|
win_chocolatey:
|
||||||
that:
|
name: sysinternals
|
||||||
- 'install_sysinternals_again.changed == false'
|
state: absent
|
||||||
|
register: remove_sysinternals
|
||||||
|
|
||||||
- name: remove sysinternals
|
- name: verify remove sysinternals
|
||||||
win_chocolatey:
|
assert:
|
||||||
name: sysinternals
|
that:
|
||||||
state: absent
|
- 'remove_sysinternals.changed == true'
|
||||||
register: remove_sysinternals
|
|
||||||
|
|
||||||
- name: verify remove sysinternals
|
- name: remove sysinternals again
|
||||||
assert:
|
win_chocolatey:
|
||||||
that:
|
name: sysinternals
|
||||||
- 'remove_sysinternals.changed == true'
|
state: absent
|
||||||
|
register: remove_sysinternals_again
|
||||||
|
|
||||||
- name: remove sysinternals again
|
- name: verify remove sysinternals again
|
||||||
win_chocolatey:
|
assert:
|
||||||
name: sysinternals
|
that:
|
||||||
state: absent
|
- 'remove_sysinternals_again.changed == false'
|
||||||
register: remove_sysinternals_again
|
|
||||||
|
|
||||||
- name: verify remove sysinternals again
|
|
||||||
assert:
|
|
||||||
that:
|
|
||||||
- 'remove_sysinternals_again.changed == false'
|
|
||||||
|
|
|
@ -1 +1,2 @@
|
||||||
windows/ci/group2
|
windows/ci/group2
|
||||||
|
windows/ci/smoketest
|
||||||
|
|
Loading…
Reference in a new issue