mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-25 03:41:25 -07:00
Much streamlining around setup steps in playbooks, now only run setup once per play.
This commit is contained in:
parent
931f9f1a61
commit
279b5965b8
6 changed files with 24 additions and 36 deletions
|
@ -194,14 +194,13 @@ class TestRunner(unittest.TestCase):
|
|||
def test_service(self):
|
||||
# TODO: tests for the service module
|
||||
pass
|
||||
|
||||
def test_assemble(self):
|
||||
input = self._get_test_file('assemble.d')
|
||||
metadata = self._get_test_file('metadata.json')
|
||||
output = self._get_stage_file('sample.out')
|
||||
result = self._run('assemble', [
|
||||
"src=%s" % input,
|
||||
"dest=%s" % output,
|
||||
"metadata=%s" % metadata
|
||||
])
|
||||
assert os.path.exists(output)
|
||||
out = file(output).read()
|
||||
|
@ -214,7 +213,6 @@ class TestRunner(unittest.TestCase):
|
|||
result = self._run('assemble', [
|
||||
"src=%s" % input,
|
||||
"dest=%s" % output,
|
||||
"metadata=%s" % metadata
|
||||
])
|
||||
assert result['changed'] == False
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue