summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorToshio Kuratomi <toshio@fedoraproject.org>2015-05-13 11:04:12 -0700
committerToshio Kuratomi <toshio@fedoraproject.org>2015-05-13 11:04:12 -0700
commitbbda86ad0a43183236e58c44a63db93b9631deac (patch)
treec7eca5d712a750eea44e861c4e60b10817a6cbcb
parentb94e2a1f4ee1631d311f6943f6653c391d5022de (diff)
downloadansible-bbda86ad0a43183236e58c44a63db93b9631deac.tar.gz
Fix parsing tests so that they all run
-rw-r--r--test/integration/roles/test_bad_parsing/tasks/main.yml20
-rw-r--r--test/integration/roles/test_bad_parsing/tasks/scenario1.yml5
-rw-r--r--test/integration/roles/test_bad_parsing/tasks/scenario2.yml5
-rw-r--r--test/integration/roles/test_bad_parsing/tasks/scenario3.yml5
-rw-r--r--test/integration/roles/test_bad_parsing/tasks/scenario4.yml5
5 files changed, 28 insertions, 12 deletions
diff --git a/test/integration/roles/test_bad_parsing/tasks/main.yml b/test/integration/roles/test_bad_parsing/tasks/main.yml
index 3899821de6..4636383d9e 100644
--- a/test/integration/roles/test_bad_parsing/tasks/main.yml
+++ b/test/integration/roles/test_bad_parsing/tasks/main.yml
@@ -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
diff --git a/test/integration/roles/test_bad_parsing/tasks/scenario1.yml b/test/integration/roles/test_bad_parsing/tasks/scenario1.yml
new file mode 100644
index 0000000000..dab20be749
--- /dev/null
+++ b/test/integration/roles/test_bad_parsing/tasks/scenario1.yml
@@ -0,0 +1,5 @@
+- 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
+
diff --git a/test/integration/roles/test_bad_parsing/tasks/scenario2.yml b/test/integration/roles/test_bad_parsing/tasks/scenario2.yml
new file mode 100644
index 0000000000..4f14f81b23
--- /dev/null
+++ b/test/integration/roles/test_bad_parsing/tasks/scenario2.yml
@@ -0,0 +1,5 @@
+- 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
+
diff --git a/test/integration/roles/test_bad_parsing/tasks/scenario3.yml b/test/integration/roles/test_bad_parsing/tasks/scenario3.yml
new file mode 100644
index 0000000000..cd4da7baba
--- /dev/null
+++ b/test/integration/roles/test_bad_parsing/tasks/scenario3.yml
@@ -0,0 +1,5 @@
+- name: test that we can't do this for the shell module
+ shell: echo hi {{ chdir }}
+ failed_when: False
+ tags: scenario3
+
diff --git a/test/integration/roles/test_bad_parsing/tasks/scenario4.yml b/test/integration/roles/test_bad_parsing/tasks/scenario4.yml
new file mode 100644
index 0000000000..9ed1eae0b5
--- /dev/null
+++ b/test/integration/roles/test_bad_parsing/tasks/scenario4.yml
@@ -0,0 +1,5 @@
+- 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
+