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
b64a5ff7
Commit
b64a5ff7
authored
Jul 29, 2014
by
James Cammarata
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Further enhancements for include params tests
parent
c9bfcf40
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
27 additions
and
7 deletions
+27
-7
test/integration/roles/test_good_parsing/tasks/main.yml
+26
-6
test/integration/roles/test_good_parsing/tasks/test_include.yml
+1
-1
No files found.
test/integration/roles/test_good_parsing/tasks/main.yml
View file @
b64a5ff7
...
...
@@ -118,18 +118,38 @@
-
result.cmd == "echo foo --arg=a --arg=b"
-
name
:
test includes with params
include
:
test_include.yml param={{ test_input }}
register
:
result
include
:
test_include.yml fact_name=include_params param="{{ test_input }}"
-
name
:
assert the include set the correct fact for the param
assert
:
that
:
-
include_params == test_input
-
name
:
test includes with quoted params
include
:
test_include.yml param="this is a param with double quotes"
register
:
result
include
:
test_include.yml fact_name=double_quoted_param param="this is a param with double quotes"
-
name
:
assert the include set the correct fact for the double quoted param
assert
:
that
:
-
double_quoted_param == "this is a param with double quotes"
-
name
:
test includes with single quoted params
include
:
test_include.yml param='this is a param with single quotes'
register
:
result
include
:
test_include.yml fact_name=single_quoted_param param='this is a param with single quotes'
-
name
:
assert the include set the correct fact for the single quoted param
assert
:
that
:
-
single_quoted_param == "this is a param with single quotes"
-
name
:
test includes with quoted params in complex args
include
:
test_include.yml
vars
:
fact_name
:
complex_param
param
:
"
this
is
a
param
in
a
complex
arg
with
double
quotes"
-
name
:
assert the include set the correct fact for the params in complex args
assert
:
that
:
-
complex_param == "this is a param in a complex arg with double quotes"
test/integration/roles/test_good_parsing/tasks/test_include.yml
View file @
b64a5ff7
-
debug
:
var=param
-
set_fact
:
"
{{fact_name}}='{{param}}'"
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