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
464a436f
Commit
464a436f
authored
Aug 12, 2015
by
Brian Coca
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed testplay host, included lookup path tests in all, added stage for easier debugging
parent
60803a1d
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
8 deletions
+8
-8
test/integration/Makefile
+1
-1
test/integration/lookup_paths/play.yml
+5
-5
test/integration/lookup_paths/testplay.yml
+2
-2
No files found.
test/integration/Makefile
View file @
464a436f
...
...
@@ -21,7 +21,7 @@ VAULT_PASSWORD_FILE = vault-password
CONSUL_RUNNING
:=
$(
shell
python consul_running.py
)
all
:
parsing test_var_precedence unicode test_templating_settings non_destructive destructive includes check_mode test_hash test_handlers test_group_by test_vault test_tags
all
:
parsing test_var_precedence unicode test_templating_settings non_destructive destructive includes check_mode test_hash test_handlers test_group_by test_vault test_tags
test_lookup_paths
parsing
:
ansible-playbook bad_parsing.yml
-i
$(INVENTORY)
-e
@
$(VARS_FILE)
$(CREDENTIALS_ARG)
-vvv
$(TEST_FLAGS)
--tags
prepare,common,scenario5
...
...
test/integration/lookup_paths/play.yml
View file @
464a436f
...
...
@@ -8,7 +8,7 @@
-
copy
:
dest={{playbook_dir}}/roles/showfile/testfile content='in role'
-
copy
:
dest={{playbook_dir}}/files/testfile content='in files'
-
copy
:
dest={{playbook_dir}}/testfile content='in local'
-
set_fact
:
role_out="in role files" play_out="in files"
-
set_fact
:
role_out="in role files" play_out="in files"
stage='setup'
-
include
:
testplay.yml
...
...
@@ -18,7 +18,7 @@
gather_facts
:
false
tasks
:
-
file
:
path={{playbook_dir}}/roles/showfile/files/testfile state=absent
-
set_fact
:
role_out="in role tasks" play_out="in files"
-
set_fact
:
role_out="in role tasks" play_out="in files"
stage='remove 1'
-
include
:
testplay.yml
...
...
@@ -28,7 +28,7 @@
gather_facts
:
false
tasks
:
-
file
:
path={{playbook_dir}}/roles/showfile/tasks/testfile state=absent
-
set_fact
:
role_out="in files" play_out="in files"
-
set_fact
:
role_out="in files" play_out="in files"
stage='remote 2'
-
include
:
testplay.yml
...
...
@@ -38,7 +38,7 @@
gather_facts
:
false
tasks
:
-
file
:
path={{playbook_dir}}/roles/showfile/testfile state=absent
-
set_fact
:
role_out="in files" play_out="in files"
-
set_fact
:
role_out="in files" play_out="in files"
stage='remove 3'
-
include
:
testplay.yml
...
...
@@ -48,7 +48,7 @@
gather_facts
:
false
tasks
:
-
file
:
path={{playbook_dir}}/files/testfile state=absent
-
set_fact
:
role_out="in local" play_out="in local"
-
set_fact
:
role_out="in local" play_out="in local"
stage='remove 4'
-
include
:
testplay.yml
...
...
test/integration/lookup_paths/testplay.yml
View file @
464a436f
-
name
:
test initial state
hosts
:
local
host
hosts
:
test
host
connection
:
local
gather_facts
:
false
roles
:
...
...
@@ -8,7 +8,7 @@
-
name
:
from play
set_fact
:
play_result="{{lookup('file', 'testfile')}}"
-
name
:
output output
-
name
:
output output
{{stage}}
debug
:
msg="play> {{play_out}}, role> {{role_out}}"
-
name
:
verify that result match expected
...
...
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