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
0c4b30a4
Commit
0c4b30a4
authored
Nov 19, 2012
by
Michael DeHaan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Aliased node test doesn't make sense locally, so remove it.
parent
9985995a
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
0 additions
and
44 deletions
+0
-44
test/TestPlayBook.py
+0
-22
test/alias_hosts
+0
-4
test/alias_playbook.yml
+0
-18
No files found.
test/TestPlayBook.py
View file @
0c4b30a4
...
...
@@ -163,28 +163,6 @@ class TestPlaybook(unittest.TestCase):
print
data
assert
data
.
find
(
"ears"
)
!=
-
1
,
"template success"
def
test_aliased_node
(
self
):
pb
=
os
.
path
.
join
(
self
.
test_dir
,
'alias_playbook.yml'
)
actual
=
self
.
_run
(
pb
,
'test/alias_hosts'
)
expected
=
{
"alias-node.example.com"
:
{
"changed"
:
5
,
"failures"
:
0
,
"ok"
:
6
,
"skipped"
:
1
,
"unreachable"
:
0
,
},
"other-alias-node.example.com"
:
{
"changed"
:
1
,
"failures"
:
0
,
"ok"
:
1
,
"skipped"
:
0
,
"unreachable"
:
1
,
},
}
assert
utils
.
jsonify
(
expected
,
format
=
True
)
==
utils
.
jsonify
(
actual
,
format
=
True
)
def
test_lookups
(
self
):
pb
=
os
.
path
.
join
(
self
.
test_dir
,
'lookup_plugins.yml'
)
actual
=
self
.
_run
(
pb
)
...
...
test/alias_hosts
deleted
100644 → 0
View file @
9985995a
other-alias-node.example.com ansible_ssh_host=localhost ansible_ssh_port=28848
[aliasgroup]
alias-node.example.com ansible_ssh_host=localhost
test/alias_playbook.yml
deleted
100644 → 0
View file @
9985995a
---
-
hosts
:
aliasgroup
connection
:
local
vars
:
test_file
:
/tmp/ansible-alias-test
tasks
:
-
action
:
command creates=$test_file touch $test_file
-
action
:
command creates=$test_file
false
-
local_action
:
command
true
-
action
:
command removes=$test_file rm -f $test_file
-
hosts
:
all
connection
:
local
gather_facts
:
False
tasks
:
-
action
:
command
true
delegate_to
:
alias-node.example.com
-
action
:
command
true
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