mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 13:22:48 +00:00
Add test for checking pip package in check mode (#17360)
This commit is contained in:
committed by
Toshio Kuratomi
parent
547cea556f
commit
2716fe4362
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user