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
bbda86ad
Commit
bbda86ad
authored
May 13, 2015
by
Toshio Kuratomi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix parsing tests so that they all run
parent
b94e2a1f
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
28 additions
and
12 deletions
+28
-12
test/integration/roles/test_bad_parsing/tasks/main.yml
+8
-12
test/integration/roles/test_bad_parsing/tasks/scenario1.yml
+5
-0
test/integration/roles/test_bad_parsing/tasks/scenario2.yml
+5
-0
test/integration/roles/test_bad_parsing/tasks/scenario3.yml
+5
-0
test/integration/roles/test_bad_parsing/tasks/scenario4.yml
+5
-0
No files found.
test/integration/roles/test_bad_parsing/tasks/main.yml
View file @
bbda86ad
...
...
@@ -29,24 +29,20 @@
-
file
:
name={{test_file}} state=touch
tags
:
common
-
name
:
test that we cannot insert arguments
file
:
path={{ test_file }} {{ test_input }}
failed_when
:
False
# ignore the module, just test the parser
-
name
:
include test that we cannot insert arguments
include
:
scenario1.yml
tags
:
scenario1
-
name
:
test that we cannot duplicate arguments
file
:
path={{ test_file }} owner=test2 {{ test_input }}
failed_when
:
False
# ignore the module, just test the parser
-
name
:
include test that we cannot duplicate arguments
include
:
scenario2.yml
tags
:
scenario2
-
name
:
test that we can't do this for the shell module
shell
:
echo hi {{ chdir }}
failed_when
:
False
-
name
:
include test that we can't do this for the shell module
include
:
scneario3.yml
tags
:
scenario3
-
name
:
test that we can't go all Little Bobby Droptables on a quoted var to add more
file
:
"
name={{
bad_var
}}"
failed_when
:
False
-
name
:
include test that we can't go all Little Bobby Droptables on a quoted var to add more
include
:
scenario4.yml
tags
:
scenario4
-
name
:
test that a missing/malformed jinja2 filter fails
...
...
test/integration/roles/test_bad_parsing/tasks/scenario1.yml
0 → 100644
View file @
bbda86ad
-
name
:
test that we cannot insert arguments
file
:
path={{ test_file }} {{ test_input }}
failed_when
:
False
# ignore the module, just test the parser
tags
:
scenario1
test/integration/roles/test_bad_parsing/tasks/scenario2.yml
0 → 100644
View file @
bbda86ad
-
name
:
test that we cannot duplicate arguments
file
:
path={{ test_file }} owner=test2 {{ test_input }}
failed_when
:
False
# ignore the module, just test the parser
tags
:
scenario2
test/integration/roles/test_bad_parsing/tasks/scenario3.yml
0 → 100644
View file @
bbda86ad
-
name
:
test that we can't do this for the shell module
shell
:
echo hi {{ chdir }}
failed_when
:
False
tags
:
scenario3
test/integration/roles/test_bad_parsing/tasks/scenario4.yml
0 → 100644
View file @
bbda86ad
-
name
:
test that we can't go all Little Bobby Droptables on a quoted var to add more
file
:
"
name={{
bad_var
}}"
failed_when
:
False
tags
:
scenario4
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