enable minimal test for win_chocolatey in shippable (#26731)
* until we can have a robust internal source for chocolatey (and/or PSScriptAnalyzer sanity tests), we want to at least make sure that the module is syntactially valid.
This commit is contained in:
parent
20d49af475
commit
74cc99fa35
2 changed files with 43 additions and 35 deletions
|
@ -0,0 +1 @@
|
|||
windows/ci/group3
|
|
@ -16,46 +16,53 @@
|
|||
# You should have received a copy of the GNU General Public License
|
||||
# along with Ansible. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
- name: install sysinternals
|
||||
- name: simple failure smoke test # NB: this is the only test that runs under shippable until others can use non-internet endpoints
|
||||
win_chocolatey:
|
||||
register: choco_fail
|
||||
failed_when: "not choco_fail.msg | regex_search('Missing required argument: name')"
|
||||
|
||||
- when: lookup('env', 'ANSIBLE_TEST_CI') != 'shippable'
|
||||
block:
|
||||
- name: install sysinternals
|
||||
win_chocolatey:
|
||||
name: sysinternals
|
||||
state: present
|
||||
register: install_sysinternals
|
||||
|
||||
- name: verify install sysinternals
|
||||
- name: verify install sysinternals
|
||||
assert:
|
||||
that:
|
||||
- 'install_sysinternals.changed == true'
|
||||
|
||||
- name: install sysinternals again
|
||||
- name: install sysinternals again
|
||||
win_chocolatey:
|
||||
name: sysinternals
|
||||
state: present
|
||||
register: install_sysinternals_again
|
||||
|
||||
- name: verify install sysinternals again
|
||||
- name: verify install sysinternals again
|
||||
assert:
|
||||
that:
|
||||
- 'install_sysinternals_again.changed == false'
|
||||
|
||||
- name: remove sysinternals
|
||||
- name: remove sysinternals
|
||||
win_chocolatey:
|
||||
name: sysinternals
|
||||
state: absent
|
||||
register: remove_sysinternals
|
||||
|
||||
- name: verify remove sysinternals
|
||||
- name: verify remove sysinternals
|
||||
assert:
|
||||
that:
|
||||
- 'remove_sysinternals.changed == true'
|
||||
|
||||
- name: remove sysinternals again
|
||||
- name: remove sysinternals again
|
||||
win_chocolatey:
|
||||
name: sysinternals
|
||||
state: absent
|
||||
register: remove_sysinternals_again
|
||||
|
||||
- name: verify remove sysinternals again
|
||||
- name: verify remove sysinternals again
|
||||
assert:
|
||||
that:
|
||||
- 'remove_sysinternals_again.changed == false'
|
||||
|
|
Loading…
Reference in a new issue