Fix some TODOs to use generic_urlparse which allows proper netrc selection. Fixes #34360 (#34372)

This commit is contained in:
Matt Martz 2018-01-03 09:52:56 -06:00 committed by GitHub
commit b762eb2d92
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 45 additions and 17 deletions

View file

@ -373,3 +373,17 @@
register: result
failed_when: result is not failed
when: has_httptester
- name: Write out netrc template
template:
src: netrc.j2
dest: "{{ output_dir }}/netrc"
- debug:
msg: "{{ lookup('file', output_dir ~ '/netrc') }}"
- name: Test netrc with port
uri:
url: "https://{{ httpbin_host }}:443/basic-auth/user/passwd"
environment:
NETRC: "{{ output_dir|expanduser }}/netrc"

View file

@ -0,0 +1,3 @@
machine {{ httpbin_host }}
login user
password passwd