Fix integration tests that install MarkupSafe.

pull/77113/head
Matt Clay 4 years ago
parent 65792c3035
commit 972bcfe7eb

@ -16,7 +16,7 @@ pip install 'setuptools<45'
# Install Jinja 2.6 since we want to test the fallback to Ansible's custom
# urlencode functions. Jinja 2.6 does not have urlencode so we will trigger the
# fallback.
pip install 'jinja2 >= 2.6, < 2.7'
pip install 'jinja2 >= 2.6, < 2.7' 'markupsafe < 2.1'
# Run the playbook again in the venv with Jinja 2.6
ansible-playbook runme.yml "$@"

@ -7,10 +7,10 @@ source virtualenv.sh
# Update pip in the venv to a version that supports constraints
pip install --requirement requirements.txt
pip install -U jinja2==2.9.4 --constraint "../../../lib/ansible_test/_data/requirements/constraints.txt"
pip install -U jinja2==2.9.4 "markupsafe<2.1.0" --constraint "../../../lib/ansible_test/_data/requirements/constraints.txt"
ansible-playbook -i ../../inventory test_jinja2_groupby.yml -v "$@"
pip install -U "jinja2<2.9.0" --constraint "../../../lib/ansible_test/_data/requirements/constraints.txt"
pip install -U "jinja2<2.9.0" "markupsafe<2.1.0" --constraint "../../../lib/ansible_test/_data/requirements/constraints.txt"
ansible-playbook -i ../../inventory test_jinja2_groupby.yml -v "$@"

Loading…
Cancel
Save