summaryrefslogtreecommitdiff
path: root/test/integration/targets/pip
diff options
context:
space:
mode:
authorZhikang Zhang <zzhang63@ncsu.edu>2018-11-26 11:12:36 -0500
committerSviatoslav Sydorenko <wk.cvs.github@sydorenko.org.ua>2018-11-26 17:12:36 +0100
commit93c5781f61aa13c951c06840f5c611698710461c (patch)
tree6709e0fdae33be16e975c8911c80ceaa412bf44a /test/integration/targets/pip
parent3a9eadb22f4996691188031df1d0545e6f045103 (diff)
downloadansible-93c5781f61aa13c951c06840f5c611698710461c.tar.gz
pip: Fix the mistake replacement from 'distribute' to 'setuptools' (#47403)
* Fix the mistake replace from distribute to setuptools * Add a testcase for this bug
Diffstat (limited to 'test/integration/targets/pip')
-rw-r--r--test/integration/targets/pip/tasks/pip.yml12
1 files changed, 12 insertions, 0 deletions
diff --git a/test/integration/targets/pip/tasks/pip.yml b/test/integration/targets/pip/tasks/pip.yml
index b7036de99d..7c924d5a0e 100644
--- a/test/integration/targets/pip/tasks/pip.yml
+++ b/test/integration/targets/pip/tasks/pip.yml
@@ -499,3 +499,15 @@
pip:
name: "{{ pip_test_packages }}"
state: absent
+
+# https://github.com/ansible/ansible/issues/47198
+- name: try to remove distribute
+ pip:
+ state: "absent"
+ name: "distribute"
+ ignore_errors: yes
+ register: remove_distribute
+
+- name: inspect the cmd
+ assert:
+ that: "'distribute' in remove_distribute.cmd"