mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Add test for checking pip package in check mode (#17360)
This commit is contained in:
parent
547cea556f
commit
2716fe4362
1 changed files with 16 additions and 0 deletions
|
@ -116,3 +116,19 @@
|
|||
assert:
|
||||
that:
|
||||
- "not url_installed.changed"
|
||||
|
||||
|
||||
# Test pip package in check mode doesn't always report changed.
|
||||
|
||||
- name: check for pip package
|
||||
pip: name=pip virtualenv={{ output_dir }}/pipenv state=present
|
||||
|
||||
- name: check for pip package in check_mode
|
||||
pip: name=pip virtualenv={{ output_dir }}/pipenv state=present
|
||||
check_mode: True
|
||||
register: pip_check_mode
|
||||
|
||||
- name: make sure pip in check_mode doesn't report changed
|
||||
assert:
|
||||
that:
|
||||
- "not pip_check_mode.changed"
|
||||
|
|
Loading…
Reference in a new issue