1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Delete test that was coded against *local* resolv.conf -- obviously not going to be the same between people's computers

This commit is contained in:
Michael DeHaan 2012-09-18 21:16:35 -04:00
parent 08b70949c7
commit e1ecb95b3d

View file

@ -182,21 +182,3 @@ class TestPlaybook(unittest.TestCase):
play = ansible.playbook.Play(playbook, playbook.playbook[0], os.getcwd())
assert play.hosts == ';'.join(('host1', 'host2', 'host3'))
def test_results_list(self):
# Test that we can iterate over the lines of a command's stdout in a register variable.
test_callbacks = TestCallbacks()
playbook = ansible.playbook.PlayBook(
playbook=os.path.join(self.test_dir, 'results_list.yml'),
host_list='test/ansible_hosts',
stats=ans_callbacks.AggregateStats(),
callbacks=test_callbacks,
runner_callbacks=test_callbacks
)
result = playbook.run()
assert 'localhost' in result
assert 'ok' in result['localhost']
assert result['localhost']['ok'] == 6
assert 'failures' in result['localhost']
assert result['localhost']['failures'] == 0