mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-04-22 16:51:17 +00:00
Fix a test and a typo in an example
This commit is contained in:
@@ -53,4 +53,4 @@
|
||||
action: template src=templates/etc_cron.d_ansible-pull.j2 dest=/etc/cron.d/ansible-pull owner=root group=root mode=0644
|
||||
|
||||
- name: Create logrotate entry for ansible-pull.log
|
||||
action: template src=templates/etc_logrotate.d_ansible-pull.j2 dest=/etc/logrorate.d/ansible-pull owner=root group=root mode=0644
|
||||
action: template src=templates/etc_logrotate.d_ansible-pull.j2 dest=/etc/logrotate.d/ansible-pull owner=root group=root mode=0644
|
||||
|
||||
@@ -193,8 +193,10 @@ class TestPlaybook(unittest.TestCase):
|
||||
runner_callbacks=test_callbacks
|
||||
)
|
||||
result = playbook.run()
|
||||
self.assertIn('localhost', result)
|
||||
self.assertIn('ok', result['localhost'])
|
||||
self.assertEqual(result['localhost']['ok'], 6)
|
||||
self.assertIn('failures', result['localhost'])
|
||||
self.assertEqual(result['localhost']['failures'], 0)
|
||||
assert 'localhost' in result
|
||||
assert 'ok' in result['localhost']
|
||||
assert result['localhost']['ok'] == 6
|
||||
assert 'failures' in result['localhost']
|
||||
assert result['localhost']['failures'] == 0
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user