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
e5344a71
Commit
e5344a71
authored
Nov 26, 2014
by
Toshio Kuratomi
Committed by
James Cammarata
Nov 26, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Integration tests for #9242 and #9640
parent
7fcfc745
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
1 deletions
+12
-1
test/integration/Makefile
+1
-1
test/integration/inventory
+4
-0
test/integration/test_var_precedence.yml
+7
-0
No files found.
test/integration/Makefile
View file @
e5344a71
...
...
@@ -57,7 +57,7 @@ test_hash:
ANSIBLE_HASH_BEHAVIOUR
=
merge ansible-playbook test_hash.yml
-i
$(INVENTORY)
$(CREDENTIALS_ARG)
-v
-e
'{"test_hash":{"extra_args":"this is an extra arg"}}'
test_var_precedence
:
ansible-playbook test_var_precedence.yml
-i
$(INVENTORY)
$(CREDENTIALS_ARG)
-v
-e
'extra_var=extra_var'
ansible-playbook test_var_precedence.yml
-i
$(INVENTORY)
$(CREDENTIALS_ARG)
-v
-e
'extra_var=extra_var'
-e
'extra_var_override=extra_var_override'
test_vault
:
ansible-playbook test_vault.yml
-i
$(INVENTORY)
$(CREDENTIALS_ARG)
-v
$(TEST_FLAGS)
--vault-password-file
$(VAULT_PASSWORD_FILE)
--list-tasks
...
...
test/integration/inventory
View file @
e5344a71
...
...
@@ -9,6 +9,10 @@ testhost2 ansible_ssh_host=127.0.0.1 ansible_connection=local
[inven_overridehosts]
invenoverride ansible_ssh_host=127.0.0.1 ansible_connection=local
[all:vars]
extra_var_override=FROM_INVENTORY
inven_var=inventory_var
[inven_overridehosts:vars]
foo=foo
var_dir=vars
...
...
test/integration/test_var_precedence.yml
View file @
e5344a71
...
...
@@ -4,6 +4,8 @@
-
vars_var
:
"
vars_var"
-
param_var
:
"
BAD!"
-
vars_files_var
:
"
BAD!"
-
extra_var_override_once_removed
:
"
{{
extra_var_override
}}"
-
from_inventory_once_removed
:
"
{{
inven_var
|
default('BAD!')
}}"
vars_files
:
-
vars/test_var_precedence.yml
roles
:
...
...
@@ -15,17 +17,22 @@
-
name
:
use set_fact to override the registered_var
set_fact
:
registered_var="this is from set_fact"
-
debug
:
var=extra_var
-
debug
:
var=extra_var_override_once_removed
-
debug
:
var=vars_var
-
debug
:
var=vars_files_var
-
debug
:
var=vars_files_var_role
-
debug
:
var=registered_var
-
debug
:
var=from_inventory_once_removed
-
assert
:
that
:
-
'
extra_var
==
"extra_var"'
-
'
extra_var_override
==
"extra_var_override"'
-
'
extra_var_override_once_removed
==
"extra_var_override"'
-
'
vars_var
==
"vars_var"'
-
'
vars_files_var
==
"vars_files_var"'
-
'
vars_files_var_role
==
"vars_files_var_role3"'
-
'
registered_var
==
"this
is
from
set_fact"'
-
'
from_inventory_once_removed
==
"inventory_var"'
-
hosts
:
inven_overridehosts
vars_files
:
...
...
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