summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--test/TestInventory.py3
-rw-r--r--test/action_plugins/categorized_plugin.py15
-rw-r--r--test/action_plugins/category/categorized_plugin.py11
-rw-r--r--test/action_plugins/uncategorized_plugin.py11
-rw-r--r--test/inventory_test_data/ansible_hosts (renamed from test/ansible_hosts)0
-rw-r--r--test/inventory_test_data/common_vars.yml (renamed from test/common_vars.yml)0
-rw-r--r--test/inventory_test_data/complex_hosts (renamed from test/complex_hosts)0
-rw-r--r--test/inventory_test_data/hosts_list.yml (renamed from test/hosts_list.yml)0
-rw-r--r--test/inventory_test_data/inventory/test_alpha_end_before_beg (renamed from test/inventory/test_alpha_end_before_beg)0
-rw-r--r--test/inventory_test_data/inventory/test_combined_range (renamed from test/inventory/test_combined_range)0
-rw-r--r--test/inventory_test_data/inventory/test_incorrect_format (renamed from test/inventory/test_incorrect_format)0
-rw-r--r--test/inventory_test_data/inventory/test_incorrect_range (renamed from test/inventory/test_incorrect_range)0
-rw-r--r--test/inventory_test_data/inventory/test_leading_range (renamed from test/inventory/test_leading_range)0
-rw-r--r--test/inventory_test_data/inventory/test_missing_end (renamed from test/inventory/test_missing_end)0
-rw-r--r--test/inventory_test_data/inventory_api.py (renamed from test/inventory_api.py)0
-rw-r--r--test/inventory_test_data/inventory_dir/0hosts (renamed from test/inventory_dir/0hosts)0
-rw-r--r--test/inventory_test_data/inventory_dir/1mythology (renamed from test/inventory_dir/1mythology)0
-rw-r--r--test/inventory_test_data/inventory_dir/2levels (renamed from test/inventory_dir/2levels)0
-rw-r--r--test/inventory_test_data/inventory_dir/3comments (renamed from test/inventory_dir/3comments)0
-rw-r--r--test/inventory_test_data/large_range (renamed from test/large_range)0
-rw-r--r--test/inventory_test_data/restrict_pattern (renamed from test/restrict_pattern)0
-rw-r--r--test/inventory_test_data/simple_hosts (renamed from test/simple_hosts)0
-rw-r--r--test/test_callbacks/callback_plugins/test_log.py27
-rw-r--r--test/test_callbacks/test_playbook.yml5
-rw-r--r--test/test_hash_behavior/goodbye.yml3
-rw-r--r--test/test_hash_behavior/hello.yml3
-rw-r--r--test/test_hash_behavior/message.j23
-rw-r--r--test/test_hash_behavior/playbook.yml16
-rw-r--r--test/test_hash_behavior/roles/hash_behavior_test_role/tasks/main.yml2
-rw-r--r--test/test_hash_behavior/roles/hash_behavior_test_role/templates/role_message.j23
30 files changed, 2 insertions, 100 deletions
diff --git a/test/TestInventory.py b/test/TestInventory.py
index 43c9bc82ab..1fd7b88744 100644
--- a/test/TestInventory.py
+++ b/test/TestInventory.py
@@ -8,8 +8,9 @@ from ansible.inventory import Inventory
class TestInventory(unittest.TestCase):
def setUp(self):
+
self.cwd = os.getcwd()
- self.test_dir = os.path.join(self.cwd, 'test')
+ self.test_dir = os.path.join(self.cwd, 'test', 'inventory_test_data')
self.inventory_file = os.path.join(self.test_dir, 'simple_hosts')
self.large_range_inventory_file = os.path.join(self.test_dir, 'large_range')
diff --git a/test/action_plugins/categorized_plugin.py b/test/action_plugins/categorized_plugin.py
deleted file mode 100644
index 62fa6ab510..0000000000
--- a/test/action_plugins/categorized_plugin.py
+++ /dev/null
@@ -1,15 +0,0 @@
-from ansible.runner import return_data
-
-
-class ActionModule (object):
- def __init__(self, runner):
- self.runner = runner
-
- def run(self, conn, tmp, module_name, module_args, inject,
- complex_args=None, **kwargs):
- # This plug-in should be ignored in deference to
- # category/categorized_plugin.py, so it should never actually
- # run.
- return return_data.ReturnData(
- conn=conn, comm_ok=True,
- result={"msg": "this plug-in should never be run"})
diff --git a/test/action_plugins/category/categorized_plugin.py b/test/action_plugins/category/categorized_plugin.py
deleted file mode 100644
index da23814c18..0000000000
--- a/test/action_plugins/category/categorized_plugin.py
+++ /dev/null
@@ -1,11 +0,0 @@
-from ansible.runner import return_data
-
-
-class ActionModule (object):
- def __init__(self, runner):
- self.runner = runner
-
- def run(self, conn, tmp, module_name, module_args, inject,
- complex_args=None, **kwargs):
- return return_data.ReturnData(conn=conn, comm_ok=True,
- result={"msg": "categorized"})
diff --git a/test/action_plugins/uncategorized_plugin.py b/test/action_plugins/uncategorized_plugin.py
deleted file mode 100644
index bf4bf809bd..0000000000
--- a/test/action_plugins/uncategorized_plugin.py
+++ /dev/null
@@ -1,11 +0,0 @@
-from ansible.runner import return_data
-
-
-class ActionModule (object):
- def __init__(self, runner):
- self.runner = runner
-
- def run(self, conn, tmp, module_name, module_args, inject,
- complex_args=None, **kwargs):
- return return_data.ReturnData(conn=conn, comm_ok=True,
- result={"msg": "uncategorized"})
diff --git a/test/ansible_hosts b/test/inventory_test_data/ansible_hosts
index 94074edc3c..94074edc3c 100644
--- a/test/ansible_hosts
+++ b/test/inventory_test_data/ansible_hosts
diff --git a/test/common_vars.yml b/test/inventory_test_data/common_vars.yml
index c4c09b67f2..c4c09b67f2 100644
--- a/test/common_vars.yml
+++ b/test/inventory_test_data/common_vars.yml
diff --git a/test/complex_hosts b/test/inventory_test_data/complex_hosts
index d7f172f203..d7f172f203 100644
--- a/test/complex_hosts
+++ b/test/inventory_test_data/complex_hosts
diff --git a/test/hosts_list.yml b/test/inventory_test_data/hosts_list.yml
index 09c5ca7c17..09c5ca7c17 100644
--- a/test/hosts_list.yml
+++ b/test/inventory_test_data/hosts_list.yml
diff --git a/test/inventory/test_alpha_end_before_beg b/test/inventory_test_data/inventory/test_alpha_end_before_beg
index 1b7a478d87..1b7a478d87 100644
--- a/test/inventory/test_alpha_end_before_beg
+++ b/test/inventory_test_data/inventory/test_alpha_end_before_beg
diff --git a/test/inventory/test_combined_range b/test/inventory_test_data/inventory/test_combined_range
index cbcb41753e..cbcb41753e 100644
--- a/test/inventory/test_combined_range
+++ b/test/inventory_test_data/inventory/test_combined_range
diff --git a/test/inventory/test_incorrect_format b/test/inventory_test_data/inventory/test_incorrect_format
index 339bd59edf..339bd59edf 100644
--- a/test/inventory/test_incorrect_format
+++ b/test/inventory_test_data/inventory/test_incorrect_format
diff --git a/test/inventory/test_incorrect_range b/test/inventory_test_data/inventory/test_incorrect_range
index 272ca7be71..272ca7be71 100644
--- a/test/inventory/test_incorrect_range
+++ b/test/inventory_test_data/inventory/test_incorrect_range
diff --git a/test/inventory/test_leading_range b/test/inventory_test_data/inventory/test_leading_range
index bf390de42a..bf390de42a 100644
--- a/test/inventory/test_leading_range
+++ b/test/inventory_test_data/inventory/test_leading_range
diff --git a/test/inventory/test_missing_end b/test/inventory_test_data/inventory/test_missing_end
index ff32042402..ff32042402 100644
--- a/test/inventory/test_missing_end
+++ b/test/inventory_test_data/inventory/test_missing_end
diff --git a/test/inventory_api.py b/test/inventory_test_data/inventory_api.py
index 0510862a10..0510862a10 100644
--- a/test/inventory_api.py
+++ b/test/inventory_test_data/inventory_api.py
diff --git a/test/inventory_dir/0hosts b/test/inventory_test_data/inventory_dir/0hosts
index 27fc46e853..27fc46e853 100644
--- a/test/inventory_dir/0hosts
+++ b/test/inventory_test_data/inventory_dir/0hosts
diff --git a/test/inventory_dir/1mythology b/test/inventory_test_data/inventory_dir/1mythology
index 43fa181bd5..43fa181bd5 100644
--- a/test/inventory_dir/1mythology
+++ b/test/inventory_test_data/inventory_dir/1mythology
diff --git a/test/inventory_dir/2levels b/test/inventory_test_data/inventory_dir/2levels
index 22f06bcd43..22f06bcd43 100644
--- a/test/inventory_dir/2levels
+++ b/test/inventory_test_data/inventory_dir/2levels
diff --git a/test/inventory_dir/3comments b/test/inventory_test_data/inventory_dir/3comments
index 74642f13cc..74642f13cc 100644
--- a/test/inventory_dir/3comments
+++ b/test/inventory_test_data/inventory_dir/3comments
diff --git a/test/large_range b/test/inventory_test_data/large_range
index 18cfc22078..18cfc22078 100644
--- a/test/large_range
+++ b/test/inventory_test_data/large_range
diff --git a/test/restrict_pattern b/test/inventory_test_data/restrict_pattern
index fb16b4dda5..fb16b4dda5 100644
--- a/test/restrict_pattern
+++ b/test/inventory_test_data/restrict_pattern
diff --git a/test/simple_hosts b/test/inventory_test_data/simple_hosts
index 4625b3dbab..4625b3dbab 100644
--- a/test/simple_hosts
+++ b/test/inventory_test_data/simple_hosts
diff --git a/test/test_callbacks/callback_plugins/test_log.py b/test/test_callbacks/callback_plugins/test_log.py
deleted file mode 100644
index 3bed373bf7..0000000000
--- a/test/test_callbacks/callback_plugins/test_log.py
+++ /dev/null
@@ -1,27 +0,0 @@
-# (C) 2013, Michael Scherer, <misc@zarb.org>
-
-# This file is part of Ansible
-#
-# Ansible is free software: you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation, either version 3 of the License, or
-# (at your option) any later version.
-#
-# Ansible is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with Ansible. If not, see <http://www.gnu.org/licenses/>.
-
-import os
-
-
-class CallbackModule(object):
- def playbook_on_play_start(self, foo):
- if os.path.exists('/tmp/ansible_test_disable'):
- self.disabled = True
-
- def playbook_on_stats(self, stats):
- open('/tmp/ansible_test_finish', 'w').close()
diff --git a/test/test_callbacks/test_playbook.yml b/test/test_callbacks/test_playbook.yml
deleted file mode 100644
index b3049153f1..0000000000
--- a/test/test_callbacks/test_playbook.yml
+++ /dev/null
@@ -1,5 +0,0 @@
----
-- hosts: 127.0.0.1
- connection: local
- tasks:
- shell: id
diff --git a/test/test_hash_behavior/goodbye.yml b/test/test_hash_behavior/goodbye.yml
deleted file mode 100644
index d04fd368e8..0000000000
--- a/test/test_hash_behavior/goodbye.yml
+++ /dev/null
@@ -1,3 +0,0 @@
----
-messages:
- goodbye: "Goodbye World!"
diff --git a/test/test_hash_behavior/hello.yml b/test/test_hash_behavior/hello.yml
deleted file mode 100644
index a50c088353..0000000000
--- a/test/test_hash_behavior/hello.yml
+++ /dev/null
@@ -1,3 +0,0 @@
----
-messages:
- hello: "Hello World!"
diff --git a/test/test_hash_behavior/message.j2 b/test/test_hash_behavior/message.j2
deleted file mode 100644
index c2da7b9e71..0000000000
--- a/test/test_hash_behavior/message.j2
+++ /dev/null
@@ -1,3 +0,0 @@
-{% for k, v in messages.iteritems() %}
-{{ k }}: {{ v }}
-{% endfor %}
diff --git a/test/test_hash_behavior/playbook.yml b/test/test_hash_behavior/playbook.yml
deleted file mode 100644
index 2f7c32bffb..0000000000
--- a/test/test_hash_behavior/playbook.yml
+++ /dev/null
@@ -1,16 +0,0 @@
----
-- hosts: all
- connection: local
-
- vars_files:
- - hello.yml
- - goodbye.yml
-
- tasks:
- - name: generate messages
- action: template src=message.j2 dest=/tmp/ansible_test_messages.out
-
- roles:
- - role: hash_behavior_test_role
- messages:
- inside_a_role: "Indeed!"
diff --git a/test/test_hash_behavior/roles/hash_behavior_test_role/tasks/main.yml b/test/test_hash_behavior/roles/hash_behavior_test_role/tasks/main.yml
deleted file mode 100644
index f297fb6a99..0000000000
--- a/test/test_hash_behavior/roles/hash_behavior_test_role/tasks/main.yml
+++ /dev/null
@@ -1,2 +0,0 @@
-- name: generate role messages
- action: template src=role_message.j2 dest=/tmp/ansible_test_role_messages.out
diff --git a/test/test_hash_behavior/roles/hash_behavior_test_role/templates/role_message.j2 b/test/test_hash_behavior/roles/hash_behavior_test_role/templates/role_message.j2
deleted file mode 100644
index c2da7b9e71..0000000000
--- a/test/test_hash_behavior/roles/hash_behavior_test_role/templates/role_message.j2
+++ /dev/null
@@ -1,3 +0,0 @@
-{% for k, v in messages.iteritems() %}
-{{ k }}: {{ v }}
-{% endfor %}