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
ddf91a3d
Commit
ddf91a3d
authored
Feb 20, 2014
by
Michael DeHaan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add a partial test of variable blending to the test infrastructure.
parent
701af19f
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
40 additions
and
0 deletions
+40
-0
tests_new/integration/integration_config.yml
+5
-0
tests_new/integration/inventory
+25
-0
tests_new/integration/non_destructive.yml
+10
-0
No files found.
tests_new/integration/integration_config.yml
View file @
ddf91a3d
...
...
@@ -2,3 +2,8 @@
output_dir
:
~/ansible_testing
non_root_test_user
:
ansible
pip_test_package
:
epdb
# variables used in precedence tests, here passed to -e
etest
:
'
from
-e'
tests_new/integration/inventory
View file @
ddf91a3d
[local]
testhost ansible_ssh_host=127.0.0.1 ansible_connection=local
testhost2 ansible_ssh_host=127.0.0.1 ansible_connection=local
# the following inline declarations are accompanied
# by (preferred) group_vars/ and host_vars/ variables
# and are used in testing of variable precedence
[arbitrary_parent:children]
local
[local:vars]
parent_var=6000
groups_tree_var=5000
[arbitrary_parent:vars]
groups_tree_var=4000
overridden_in_parent=1000
[arbitrary_grandparent:children]
arbitrary_parent
[arbitrary_grandparent:vars]
groups_tree_var=3000
grandparent_var=2000
overridden_in_parent=2000
tests_new/integration/non_destructive.yml
View file @
ddf91a3d
-
hosts
:
testhost
# these variables are defined here for variable blending tests only.
# in general, define test variables in the role/rolenamevars/main.yml
vars_files
:
-
vars_file.yml
vars
:
vars_var
:
123
gather_facts
:
True
roles
:
-
{
role
:
test_copy
,
tags
:
test_copy
}
...
...
@@ -11,4 +20,5 @@
-
{
role
:
test_git
,
tags
:
test_git
}
-
{
role
:
test_hg
,
tags
:
test_hg
}
-
{
role
:
test_changed_when
,
tags
:
test_changed_when
}
-
{
role
:
test_var_blending
,
tags
:
test_var_blending
}
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