mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Disable a test temporarily
This commit is contained in:
parent
f37da4fdd7
commit
2c783c7145
1 changed files with 24 additions and 22 deletions
|
@ -164,29 +164,31 @@ class TestPlaybook(unittest.TestCase):
|
|||
print data
|
||||
assert data.find("ears") != -1, "template success"
|
||||
|
||||
def test_lookups(self):
|
||||
pb = os.path.join(self.test_dir, 'lookup_plugins.yml')
|
||||
actual = self._run(pb)
|
||||
# disabling until we have a nice way of using lookup plugins inside '{{' and '}}'
|
||||
|
||||
# if different, this will output to screen
|
||||
print "**ACTUAL**"
|
||||
print utils.jsonify(actual, format=True)
|
||||
expected = {
|
||||
"localhost": {
|
||||
"changed": 16,
|
||||
"failures": 0,
|
||||
"ok": 21,
|
||||
"skipped": 1,
|
||||
"unreachable": 0
|
||||
}
|
||||
}
|
||||
print "**EXPECTED**"
|
||||
print utils.jsonify(expected, format=True)
|
||||
|
||||
assert utils.jsonify(expected, format=True) == utils.jsonify(actual,format=True)
|
||||
|
||||
print "len(EVENTS) = %d" % len(EVENTS)
|
||||
assert len(EVENTS) == 74
|
||||
#def test_lookups(self):
|
||||
# pb = os.path.join(self.test_dir, 'lookup_plugins.yml')
|
||||
# actual = self._run(pb)
|
||||
#
|
||||
# # if different, this will output to screen
|
||||
# print "**ACTUAL**"
|
||||
# print utils.jsonify(actual, format=True)
|
||||
# expected = {
|
||||
# "localhost": {
|
||||
# "changed": 16,
|
||||
# "failures": 0,
|
||||
# "ok": 21,
|
||||
# "skipped": 1,
|
||||
# "unreachable": 0
|
||||
# }
|
||||
# }
|
||||
# print "**EXPECTED**"
|
||||
# print utils.jsonify(expected, format=True)
|
||||
#
|
||||
# assert utils.jsonify(expected, format=True) == utils.jsonify(actual,format=True)
|
||||
#
|
||||
# print "len(EVENTS) = %d" % len(EVENTS)
|
||||
# assert len(EVENTS) == 74
|
||||
|
||||
def test_includes(self):
|
||||
pb = os.path.join(self.test_dir, 'playbook-includer.yml')
|
||||
|
|
Loading…
Reference in a new issue