mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-08 06:12:51 +00:00
Fixes for uri under python3 and local (non-httptester) testing
This commit is contained in:
@@ -198,10 +198,6 @@
|
||||
set_fact:
|
||||
is_ubuntu_precise: "{{ ansible_distribution == 'Ubuntu' and ansible_distribution_release == 'precise' }}"
|
||||
|
||||
# These tests are just side effects of how the site is hosted. It's not
|
||||
# specifically a test site. So the tests may break due to the hosting
|
||||
# changing. Eventually we need to standup a webserver with SNI as part of the
|
||||
# test run.
|
||||
- name: Test that SNI succeeds on python versions that have SNI
|
||||
uri:
|
||||
url: 'https://{{ sni_host }}/'
|
||||
@@ -213,7 +209,7 @@
|
||||
assert:
|
||||
that:
|
||||
- result|success
|
||||
- 'sni_host == result.content'
|
||||
- 'sni_host in result.content'
|
||||
when: ansible_python.has_sslcontext
|
||||
|
||||
- name: Verify SNI verification fails on old python without urllib3 contrib
|
||||
@@ -253,7 +249,7 @@
|
||||
assert:
|
||||
that:
|
||||
- result|success
|
||||
- 'sni_host == result.content'
|
||||
- 'sni_host in result.content'
|
||||
when: not ansible_python.has_sslcontext and not is_ubuntu_precise|bool
|
||||
|
||||
- name: Uninstall ndg-httpsclient and urllib3
|
||||
|
||||
Reference in New Issue
Block a user