summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--test/integration/roles/test_pip/tasks/main.yml16
1 files changed, 16 insertions, 0 deletions
diff --git a/test/integration/roles/test_pip/tasks/main.yml b/test/integration/roles/test_pip/tasks/main.yml
index b95c52c435..592be06a7a 100644
--- a/test/integration/roles/test_pip/tasks/main.yml
+++ b/test/integration/roles/test_pip/tasks/main.yml
@@ -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"