Commit 0c4b30a4 by Michael DeHaan

Aliased node test doesn't make sense locally, so remove it.

parent 9985995a
......@@ -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)
......
other-alias-node.example.com ansible_ssh_host=localhost ansible_ssh_port=28848
[aliasgroup]
alias-node.example.com ansible_ssh_host=localhost
---
- 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
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment