mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-10-09 09:54:02 -07:00
more whitespace
This commit is contained in:
parent
faed4b5a33
commit
1c9b43df1b
6 changed files with 34 additions and 34 deletions
|
@ -32,7 +32,7 @@ class TestCallbacks(object):
|
|||
|
||||
def on_setup(self):
|
||||
EVENTS.append([ 'primary_setup' ])
|
||||
|
||||
|
||||
def on_skipped(self, host, item=None):
|
||||
EVENTS.append([ 'skipped', [ host ]])
|
||||
|
||||
|
@ -65,7 +65,7 @@ class TestCallbacks(object):
|
|||
del host_result[k]
|
||||
for k in host_result.keys():
|
||||
if k.startswith('facter_') or k.startswith('ohai_'):
|
||||
del host_result[k]
|
||||
del host_result[k]
|
||||
EVENTS.append([ 'ok', [ host, host_result ]])
|
||||
|
||||
def on_play_start(self, pattern):
|
||||
|
@ -85,7 +85,7 @@ class TestCallbacks(object):
|
|||
|
||||
def on_setup(self):
|
||||
pass
|
||||
|
||||
|
||||
def on_no_hosts(self):
|
||||
pass
|
||||
|
||||
|
@ -116,7 +116,7 @@ class TestPlaybook(unittest.TestCase):
|
|||
filename = os.path.join(self.test_dir, filename)
|
||||
assert os.path.exists(filename)
|
||||
return filename
|
||||
|
||||
|
||||
def _get_stage_file(self, filename):
|
||||
# get a file inside the test output directory
|
||||
filename = os.path.join(self.stage_dir, filename)
|
||||
|
@ -144,15 +144,15 @@ class TestPlaybook(unittest.TestCase):
|
|||
pb = os.path.join(self.test_dir, 'playbook1.yml')
|
||||
actual = self._run(pb)
|
||||
|
||||
# if different, this will output to screen
|
||||
# if different, this will output to screen
|
||||
print "**ACTUAL**"
|
||||
print utils.jsonify(actual, format=True)
|
||||
expected = {
|
||||
expected = {
|
||||
"127.0.0.2": {
|
||||
"changed": 9,
|
||||
"failures": 0,
|
||||
"ok": 11,
|
||||
"skipped": 1,
|
||||
"changed": 9,
|
||||
"failures": 0,
|
||||
"ok": 11,
|
||||
"skipped": 1,
|
||||
"unreachable": 0
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue