Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
ansible
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
OpenEdx
ansible
Commits
96807072
Commit
96807072
authored
Jun 15, 2015
by
Toshio Kuratomi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add test that url lookup checks tls certificates
parent
2829d0f6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
30 additions
and
0 deletions
+30
-0
test/integration/roles/test_lookups/tasks/main.yml
+30
-0
No files found.
test/integration/roles/test_lookups/tasks/main.yml
View file @
96807072
...
...
@@ -129,3 +129,33 @@
debug
:
msg={{item}}
with_items
:
things2
# URL Lookups
-
name
:
Test that retrieving a url works
set_fact
:
web_data
:
"
{{
lookup('url',
'https://gist.githubusercontent.com/abadger/9858c22712f62a8effff/raw/43dd47ea691c90a5fa7827892c70241913351963/test')
}}"
-
name
:
Assert that the url was retrieved
assert
:
that
:
-
"
'one'
in
web_data"
-
name
:
Test that retrieving a url with invalid cert fails
set_fact
:
web_data
:
"
{{
lookup('url',
'https://kennethreitz.org/')
}}"
ignore_errors
:
True
register
:
url_invalid_cert
-
assert
:
that
:
-
"
url_invalid_cert.failed"
-
"
'Error
validating
the
server'
in
url_invalid_cert.msg"
-
name
:
Test that retrieving a url with invalid cert with validate_certs=False works
set_fact
:
web_data
:
"
{{
lookup('url',
'https://kennethreitz.org/',
validate_certs=False)
}}"
register
:
url_no_validate_cert
-
assert
:
that
:
-
"
'kennethreitz.org'
in
web_data"
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment