summaryrefslogtreecommitdiff
path: root/test/integration/targets/include_vars/tasks/main.yml
diff options
context:
space:
mode:
Diffstat (limited to 'test/integration/targets/include_vars/tasks/main.yml')
-rw-r--r--test/integration/targets/include_vars/tasks/main.yml28
1 files changed, 14 insertions, 14 deletions
diff --git a/test/integration/targets/include_vars/tasks/main.yml b/test/integration/targets/include_vars/tasks/main.yml
index db15ba3c..6fc4e85a 100644
--- a/test/integration/targets/include_vars/tasks/main.yml
+++ b/test/integration/targets/include_vars/tasks/main.yml
@@ -15,7 +15,7 @@
that:
- "testing == 789"
- "base_dir == 'environments/development'"
- - "{{ included_one_file.ansible_included_var_files | length }} == 1"
+ - "included_one_file.ansible_included_var_files | length == 1"
- "'vars/environments/development/all.yml' in included_one_file.ansible_included_var_files[0]"
- name: include the vars/environments/development/all.yml and save results in all
@@ -51,7 +51,7 @@
assert:
that:
- webapp_version is defined
- - "'file_without_extension' in '{{ include_without_file_extension.ansible_included_var_files | join(' ') }}'"
+ - "'file_without_extension' in include_without_file_extension.ansible_included_var_files | join(' ')"
- name: include every directory in vars
include_vars:
@@ -67,7 +67,7 @@
- "testing == 456"
- "base_dir == 'services'"
- "webapp_containers == 10"
- - "{{ include_every_dir.ansible_included_var_files | length }} == 7"
+ - "include_every_dir.ansible_included_var_files | length == 7"
- "'vars/all/all.yml' in include_every_dir.ansible_included_var_files[0]"
- "'vars/environments/development/all.yml' in include_every_dir.ansible_included_var_files[1]"
- "'vars/environments/development/services/webapp.yml' in include_every_dir.ansible_included_var_files[2]"
@@ -88,9 +88,9 @@
that:
- "testing == 789"
- "base_dir == 'environments/development'"
- - "{{ include_without_webapp.ansible_included_var_files | length }} == 4"
- - "'webapp.yml' not in '{{ include_without_webapp.ansible_included_var_files | join(' ') }}'"
- - "'file_without_extension' not in '{{ include_without_webapp.ansible_included_var_files | join(' ') }}'"
+ - "include_without_webapp.ansible_included_var_files | length == 4"
+ - "'webapp.yml' not in include_without_webapp.ansible_included_var_files | join(' ')"
+ - "'file_without_extension' not in include_without_webapp.ansible_included_var_files | join(' ')"
- name: include only files matching webapp.yml
include_vars:
@@ -104,9 +104,9 @@
- "testing == 101112"
- "base_dir == 'development/services'"
- "webapp_containers == 20"
- - "{{ include_match_webapp.ansible_included_var_files | length }} == 1"
+ - "include_match_webapp.ansible_included_var_files | length == 1"
- "'vars/environments/development/services/webapp.yml' in include_match_webapp.ansible_included_var_files[0]"
- - "'all.yml' not in '{{ include_match_webapp.ansible_included_var_files | join(' ') }}'"
+ - "'all.yml' not in include_match_webapp.ansible_included_var_files | join(' ')"
- name: include only files matching webapp.yml and store results in webapp
include_vars:
@@ -173,10 +173,10 @@
- name: Verify the hash variable
assert:
that:
- - "{{ config | length }} == 3"
+ - "config | length == 3"
- "config.key0 == 0"
- "config.key1 == 0"
- - "{{ config.key2 | length }} == 1"
+ - "config.key2 | length == 1"
- "config.key2.a == 21"
- name: Include the second file to merge the hash variable
@@ -187,10 +187,10 @@
- name: Verify that the hash is merged
assert:
that:
- - "{{ config | length }} == 4"
+ - "config | length == 4"
- "config.key0 == 0"
- "config.key1 == 1"
- - "{{ config.key2 | length }} == 2"
+ - "config.key2 | length == 2"
- "config.key2.a == 21"
- "config.key2.b == 22"
- "config.key3 == 3"
@@ -202,9 +202,9 @@
- name: Verify that the properties from the first file is cleared
assert:
that:
- - "{{ config | length }} == 3"
+ - "config | length == 3"
- "config.key1 == 1"
- - "{{ config.key2 | length }} == 1"
+ - "config.key2 | length == 1"
- "config.key2.b == 22"
- "config.key3 == 3"