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
0f4a3409
Commit
0f4a3409
authored
May 28, 2015
by
Toshio Kuratomi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add test that validate_certs=no works
parent
4d842753
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
3 deletions
+18
-3
test/integration/roles/test_get_url/tasks/main.yml
+18
-3
No files found.
test/integration/roles/test_get_url/tasks/main.yml
View file @
0f4a3409
...
@@ -26,7 +26,7 @@
...
@@ -26,7 +26,7 @@
-
result.changed
-
result.changed
-
'
"OK"
in
result.msg'
-
'
"OK"
in
result.msg'
-
name
:
test https fetch to a site with
invalid domain
-
name
:
test https fetch to a site with
mismatched hostname and certificate
get_url
:
get_url
:
url
:
"
https://kennethreitz.org/"
url
:
"
https://kennethreitz.org/"
dest
:
"
{{
output_dir
}}/shouldnotexist.html"
dest
:
"
{{
output_dir
}}/shouldnotexist.html"
...
@@ -37,11 +37,26 @@
...
@@ -37,11 +37,26 @@
path
:
"
{{
output_dir
}}/shouldnotexist.html"
path
:
"
{{
output_dir
}}/shouldnotexist.html"
register
:
stat_result
register
:
stat_result
-
debug
:
var=result
-
name
:
Assert that the file was not downloaded
-
name
:
Assert that the file was not downloaded
assert
:
assert
:
that
:
that
:
-
"
result.failed
==
true"
-
"
result.failed
==
true"
-
"
'Certificate
does
not
belong
to
'
in
result.msg"
-
"
'Certificate
does
not
belong
to
'
in
result.msg"
-
"
stat_result.stat.exists
==
false"
-
"
stat_result.stat.exists
==
false"
-
name
:
test https fetch to a site with mismatched hostname and certificate and validate_certs=no
get_url
:
url
:
"
https://kennethreitz.org/"
dest
:
"
{{
output_dir
}}/kreitz.html"
validate_certs
:
no
register
:
result
-
stat
:
path
:
"
{{
output_dir
}}/kreitz.html"
register
:
stat_result
-
name
:
Assert that the file was not downloaded
assert
:
that
:
-
"
result.failed
==
false"
-
"
stat_result.stat.exists
==
true"
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