1
0
Fork 0
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:
Matt Davis 2017-07-14 17:34:29 -07:00 committed by GitHub
parent e63f69464f
commit 5c8e19d630
3 changed files with 37 additions and 42 deletions

View file

@ -1 +1,2 @@
windows/ci/group3
windows/ci/smoketest

View file

@ -16,53 +16,46 @@
# You should have received a copy of the GNU General Public License
# 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:
register: choco_fail
failed_when: "not choco_fail.msg | regex_search('Missing required argument: name')"
name: sysinternals
state: present
register: install_sysinternals
- when: lookup('env', 'ANSIBLE_TEST_CI') != 'shippable'
block:
- name: install sysinternals
win_chocolatey:
name: sysinternals
state: present
register: install_sysinternals
- name: verify install sysinternals
assert:
that:
- 'install_sysinternals.changed == true'
- name: verify install sysinternals
assert:
that:
- 'install_sysinternals.changed == true'
- name: install sysinternals again
win_chocolatey:
name: sysinternals
state: present
register: install_sysinternals_again
- name: install sysinternals again
win_chocolatey:
name: sysinternals
state: present
register: install_sysinternals_again
- name: verify install sysinternals again
assert:
that:
- 'install_sysinternals_again.changed == false'
- name: verify install sysinternals again
assert:
that:
- 'install_sysinternals_again.changed == false'
- name: remove sysinternals
win_chocolatey:
name: sysinternals
state: absent
register: remove_sysinternals
- name: remove sysinternals
win_chocolatey:
name: sysinternals
state: absent
register: remove_sysinternals
- name: verify remove sysinternals
assert:
that:
- 'remove_sysinternals.changed == true'
- name: verify remove sysinternals
assert:
that:
- 'remove_sysinternals.changed == true'
- name: remove sysinternals again
win_chocolatey:
name: sysinternals
state: absent
register: remove_sysinternals_again
- name: remove sysinternals again
win_chocolatey:
name: sysinternals
state: absent
register: remove_sysinternals_again
- name: verify remove sysinternals again
assert:
that:
- 'remove_sysinternals_again.changed == false'
- name: verify remove sysinternals again
assert:
that:
- 'remove_sysinternals_again.changed == false'

View file

@ -1 +1,2 @@
windows/ci/group2
windows/ci/smoketest