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
9985995a
Commit
9985995a
authored
Nov 19, 2012
by
Michael DeHaan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make tests use the local connection type, fix missing callback in tests.
parent
75620220
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
12 additions
and
0 deletions
+12
-0
test/TestPlayBook.py
+3
-0
test/TestRunner.py
+1
-0
test/alias_playbook.yml
+2
-0
test/hosts_list.yml
+1
-0
test/lookup_plugins.yml
+1
-0
test/playbook-included.yml
+2
-0
test/playbook1.yml
+1
-0
test/results_list.yml
+1
-0
No files found.
test/TestPlayBook.py
View file @
9985995a
...
...
@@ -22,6 +22,9 @@ class TestCallbacks(object):
def
set_playbook
(
self
,
playbook
):
self
.
playbook
=
playbook
def
on_no_hosts_remaining
(
self
):
pass
def
on_start
(
self
):
EVENTS
.
append
(
'start'
)
...
...
test/TestRunner.py
View file @
9985995a
...
...
@@ -35,6 +35,7 @@ class TestRunner(unittest.TestCase):
forks
=
1
,
background
=
0
,
pattern
=
'all'
,
transport
=
'local'
,
)
self
.
cwd
=
os
.
getcwd
()
self
.
test_dir
=
os
.
path
.
join
(
self
.
cwd
,
'test'
)
...
...
test/alias_playbook.yml
View file @
9985995a
---
-
hosts
:
aliasgroup
connection
:
local
vars
:
test_file
:
/tmp/ansible-alias-test
tasks
:
...
...
@@ -9,6 +10,7 @@
-
action
:
command removes=$test_file rm -f $test_file
-
hosts
:
all
connection
:
local
gather_facts
:
False
tasks
:
-
action
:
command
true
...
...
test/hosts_list.yml
View file @
9985995a
# Test that playbooks support YAML lists of hosts.
---
-
hosts
:
[
host1
,
host2
,
host3
]
connection
:
local
tasks
:
-
action
:
command
true
test/lookup_plugins.yml
View file @
9985995a
# simple test of lookup plugins in with_*
---
-
hosts
:
all
connection
:
local
vars
:
empty_list
:
[]
tasks
:
...
...
test/playbook-included.yml
View file @
9985995a
---
-
hosts
:
all
connection
:
local
gather_facts
:
False
tasks
:
-
action
:
debug msg="$variable"
-
hosts
:
all
connection
:
local
vars
:
-
ugly
:
var
gather_facts
:
False
...
...
test/playbook1.yml
View file @
9985995a
# extremely simple test of the most basic of playbook engine/functions
---
-
hosts
:
all
connection
:
local
# the 'weasels' string should show up in the output
...
...
test/results_list.yml
View file @
9985995a
---
# Test iterating over lines of stdout stored in a register.
-
hosts
:
localhost
connection
:
local
vars
:
small_file
:
/etc/resolv.conf
temp_file
:
/tmp/ansible_result_list.tmp
...
...
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