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

pull/1648/head
Michael DeHaan 12 years ago
parent 9985995a9d
commit 0c4b30a471

@ -163,28 +163,6 @@ class TestPlaybook(unittest.TestCase):
print data print data
assert data.find("ears") != -1, "template success" 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): def test_lookups(self):
pb = os.path.join(self.test_dir, 'lookup_plugins.yml') pb = os.path.join(self.test_dir, 'lookup_plugins.yml')
actual = self._run(pb) actual = self._run(pb)

@ -1,4 +0,0 @@
other-alias-node.example.com ansible_ssh_host=localhost ansible_ssh_port=28848
[aliasgroup]
alias-node.example.com ansible_ssh_host=localhost

@ -1,18 +0,0 @@
---
- 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
Loading…
Cancel
Save