Add exception for empty SEL message field
@@ -224,6 +224,9 @@ class redfish10_api_systems(fit_common.unittest.TestCase):
self.assertIn(item, nodeid, item + ' field not present')
if fit_common.VERBOSITY >= 3:
print ("\t {0}".format(nodeid[item]))
+ if len(nodeid[item]) == 0 and item == 'Message':
+ print "empty message"
+ else:
self.assertGreater(len(nodeid[item]), 0, item + ' field empty')
for link in [ 'OriginOfCondition' ]:
@@ -262,6 +265,9 @@ class redfish10_api_systems(fit_common.unittest.TestCase):
self.assertIn(item, seldata['json'], item + ' field not present')
if fit_common.VERBOSITY >= 3:
print ("\t {0}".format(seldata['json'][item]))
+ if len(seldata['json'][item]) == 0 and item == 'Message':
+ print "message empty"
+ else:
self.assertGreater(len(seldata['json'][item]), 0, item + ' field empty')
for link in [ 'OriginOfCondition' ]:
