mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-02 14:40:19 -07:00
WIP on data structure processing patterns.
This commit is contained in:
parent
f3714c88a6
commit
f066e361f1
6 changed files with 575 additions and 56 deletions
|
@ -16,24 +16,39 @@ class TestTask(unittest.TestCase):
|
|||
def tearDown(self):
|
||||
pass
|
||||
|
||||
def test_can_construct_empty_task(self):
|
||||
def test_construct_empty_task(self):
|
||||
t = Task()
|
||||
|
||||
def test_can_construct_task_with_role(self):
|
||||
def test_construct_task_with_role(self):
|
||||
pass
|
||||
|
||||
def test_can_construct_task_with_block(self):
|
||||
def test_construct_task_with_block(self):
|
||||
pass
|
||||
|
||||
def test_can_construct_task_with_role_and_block(self):
|
||||
def test_construct_task_with_role_and_block(self):
|
||||
pass
|
||||
|
||||
def test_can_load_simple_task(self):
|
||||
t = Task.load(basic_shell_task)
|
||||
assert t is not None
|
||||
print "NAME=%s" % t.name
|
||||
assert t.name == basic_shell_task['name']
|
||||
#assert t.module == 'shell'
|
||||
#assert t.args == 'echo hi'
|
||||
def test_load_simple_task(self):
|
||||
t = Task.load(basic_shell_task)
|
||||
assert t is not None
|
||||
assert t.name == basic_shell_task['name']
|
||||
assert t.module == 'shell'
|
||||
assert t.args == 'echo hi'
|
||||
|
||||
def test_can_load_action_kv_form(self):
|
||||
pass
|
||||
|
||||
def test_can_load_action_complex_form(self):
|
||||
pass
|
||||
|
||||
def test_can_load_module_complex_form(self):
|
||||
pass
|
||||
|
||||
def test_local_action_implies_delegate(self):
|
||||
pass
|
||||
|
||||
def test_local_action_conflicts_with_delegate(self):
|
||||
pass
|
||||
|
||||
def test_delegate_to_parses(self):
|
||||
pass
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue