From 0c4b30a471755ada33853e7dc68b8b1b64a85472 Mon Sep 17 00:00:00 2001 From: Michael DeHaan Date: Mon, 19 Nov 2012 10:45:10 -0500 Subject: [PATCH] Aliased node test doesn't make sense locally, so remove it. --- test/TestPlayBook.py | 22 ---------------------- test/alias_hosts | 4 ---- test/alias_playbook.yml | 18 ------------------ 3 files changed, 44 deletions(-) delete mode 100644 test/alias_hosts delete mode 100644 test/alias_playbook.yml diff --git a/test/TestPlayBook.py b/test/TestPlayBook.py index f278932af04..5fa63eb6238 100644 --- a/test/TestPlayBook.py +++ b/test/TestPlayBook.py @@ -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) diff --git a/test/alias_hosts b/test/alias_hosts deleted file mode 100644 index e0ea9ec153a..00000000000 --- a/test/alias_hosts +++ /dev/null @@ -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 diff --git a/test/alias_playbook.yml b/test/alias_playbook.yml deleted file mode 100644 index 3dec28dd798..00000000000 --- a/test/alias_playbook.yml +++ /dev/null @@ -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