diff options
author | Nicklaus McClendon <nicklaus@kulinacs.com> | 2017-09-12 12:01:29 -0500 |
---|---|---|
committer | Toshio Kuratomi <a.badger@gmail.com> | 2017-09-12 10:01:29 -0700 |
commit | 6dbc3c63f8db7451b02c8282250e340c1a7f08e6 (patch) | |
tree | 3b0ea1ee5eabc64e73d72ad2f05ad6d8456d1602 /test/integration/targets/pip | |
parent | 1e2ce4c8ab3f4dfbd802a71216d2445482527480 (diff) | |
download | ansible-6dbc3c63f8db7451b02c8282250e340c1a7f08e6.tar.gz |
Updated pip module to always return changed if venv is created (#24233)
* Updated pip module to always return changed if venv is created
Fixes #23204
* Add integration test to pip (see #23204)
Diffstat (limited to 'test/integration/targets/pip')
-rw-r--r-- | test/integration/targets/pip/tasks/pip.yml | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/test/integration/targets/pip/tasks/pip.yml b/test/integration/targets/pip/tasks/pip.yml index fe7c7da080..44c00a786b 100644 --- a/test/integration/targets/pip/tasks/pip.yml +++ b/test/integration/targets/pip/tasks/pip.yml @@ -166,3 +166,20 @@ assert: that: - "not q_check_mode.changed" + +# ansible#23204 +- name: ensure is a fresh virtualenv + file: + state: absent + name: "{{ output_dir }}/pipenv" + +- name: install pip throught pip into fresh virtualenv + pip: + name: pip + virtualenv: "{{ output_dir }}/pipenv" + register: pip_install_venv + +- name: make sure pip in fresh virtualenv report changed + assert: + that: + - "pip_install_venv.changed" |