summaryrefslogtreecommitdiff
path: root/test/integration/targets/get_url
diff options
context:
space:
mode:
authorMatt Clay <matt@mystile.com>2018-05-01 16:28:42 -0700
committerGitHub <noreply@github.com>2018-05-01 16:28:42 -0700
commitb92ef8e54a50b98a58b1146890dad64eed04dc35 (patch)
tree3c052d43bac47c2b4837029299ab27a07a7f20a9 /test/integration/targets/get_url
parent054efb8d806b479dd1520e927809eed86f491755 (diff)
downloadansible-b92ef8e54a50b98a58b1146890dad64eed04dc35.tar.gz
Use HTTPS instead of HTTP for httpbin tests. (#39457)
The httpbin.org site is now redirecting HTTP to HTTPS.
Diffstat (limited to 'test/integration/targets/get_url')
-rw-r--r--test/integration/targets/get_url/aliases1
-rw-r--r--test/integration/targets/get_url/tasks/main.yml12
2 files changed, 6 insertions, 7 deletions
diff --git a/test/integration/targets/get_url/aliases b/test/integration/targets/get_url/aliases
index 458c0b6085..8e7d715f9c 100644
--- a/test/integration/targets/get_url/aliases
+++ b/test/integration/targets/get_url/aliases
@@ -1,3 +1,2 @@
destructive
posix/ci/group1
-disabled
diff --git a/test/integration/targets/get_url/tasks/main.yml b/test/integration/targets/get_url/tasks/main.yml
index 52e6e86c71..bc962eb640 100644
--- a/test/integration/targets/get_url/tasks/main.yml
+++ b/test/integration/targets/get_url/tasks/main.yml
@@ -14,7 +14,7 @@
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
-# along with Ansible. If not, see <http://www.gnu.org/licenses/>.
+# along with Ansible. If not, see <https://www.gnu.org/licenses/>.
- name: Determine if python looks like it will support modern ssl features like SNI
command: "{{ ansible_python.executable }} -c 'from ssl import SSLContext'"
@@ -67,7 +67,7 @@
- result.failed
- name: test HTTP HEAD request for file in check mode
- get_url: url="http://{{ httpbin_host }}/get" dest={{ output_dir }}/get_url_check.txt force=yes
+ get_url: url="https://{{ httpbin_host }}/get" dest={{ output_dir }}/get_url_check.txt force=yes
check_mode: True
register: result
@@ -78,7 +78,7 @@
- '"OK" in result.msg'
- name: test HTTP HEAD for nonexistent URL in check mode
- get_url: url="http://{{ httpbin_host }}/DOESNOTEXIST" dest={{ output_dir }}/shouldnotexist.html force=yes
+ get_url: url="https://{{ httpbin_host }}/DOESNOTEXIST" dest={{ output_dir }}/shouldnotexist.html force=yes
check_mode: True
register: result
ignore_errors: True
@@ -191,12 +191,12 @@
- name: Test get_url with redirect
get_url:
- url: 'http://{{ httpbin_host }}/redirect/6'
+ url: 'https://{{ httpbin_host }}/redirect/6'
dest: "{{ output_dir }}/redirect.json"
- name: Test that setting file modes work
get_url:
- url: 'http://{{ httpbin_host }}/'
+ url: 'https://{{ httpbin_host }}/'
dest: '{{ output_dir }}/test'
mode: '0707'
register: result
@@ -213,7 +213,7 @@
- name: Test that setting file modes on an already downlaoded file work
get_url:
- url: 'http://{{ httpbin_host }}/'
+ url: 'https://{{ httpbin_host }}/'
dest: '{{ output_dir }}/test'
mode: '0070'
register: result