redfish-interop-validator 2.3.4__tar.gz → 2.3.5__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {redfish_interop_validator-2.3.4/redfish_interop_validator.egg-info → redfish_interop_validator-2.3.5}/PKG-INFO +1 -1
- {redfish_interop_validator-2.3.4 → redfish_interop_validator-2.3.5}/redfish_interop_validator/RedfishInteropValidator.py +43 -12
- {redfish_interop_validator-2.3.4 → redfish_interop_validator-2.3.5/redfish_interop_validator.egg-info}/PKG-INFO +1 -1
- {redfish_interop_validator-2.3.4 → redfish_interop_validator-2.3.5}/setup.py +1 -1
- {redfish_interop_validator-2.3.4 → redfish_interop_validator-2.3.5}/AUTHORS.md +0 -0
- {redfish_interop_validator-2.3.4 → redfish_interop_validator-2.3.5}/LICENSE.md +0 -0
- {redfish_interop_validator-2.3.4 → redfish_interop_validator-2.3.5}/README.md +0 -0
- {redfish_interop_validator-2.3.4 → redfish_interop_validator-2.3.5}/redfish_interop_validator/RedfishLogo.py +0 -0
- {redfish_interop_validator-2.3.4 → redfish_interop_validator-2.3.5}/redfish_interop_validator/__init__.py +0 -0
- {redfish_interop_validator-2.3.4 → redfish_interop_validator-2.3.5}/redfish_interop_validator/config.py +0 -0
- {redfish_interop_validator-2.3.4 → redfish_interop_validator-2.3.5}/redfish_interop_validator/helper.py +0 -0
- {redfish_interop_validator-2.3.4 → redfish_interop_validator-2.3.5}/redfish_interop_validator/interop.py +0 -0
- {redfish_interop_validator-2.3.4 → redfish_interop_validator-2.3.5}/redfish_interop_validator/logger.py +0 -0
- {redfish_interop_validator-2.3.4 → redfish_interop_validator-2.3.5}/redfish_interop_validator/profile.py +0 -0
- {redfish_interop_validator-2.3.4 → redfish_interop_validator-2.3.5}/redfish_interop_validator/session.py +0 -0
- {redfish_interop_validator-2.3.4 → redfish_interop_validator-2.3.5}/redfish_interop_validator/tohtml.py +0 -0
- {redfish_interop_validator-2.3.4 → redfish_interop_validator-2.3.5}/redfish_interop_validator/traverseInterop.py +0 -0
- {redfish_interop_validator-2.3.4 → redfish_interop_validator-2.3.5}/redfish_interop_validator/validateResource.py +0 -0
- {redfish_interop_validator-2.3.4 → redfish_interop_validator-2.3.5}/redfish_interop_validator.egg-info/SOURCES.txt +0 -0
- {redfish_interop_validator-2.3.4 → redfish_interop_validator-2.3.5}/redfish_interop_validator.egg-info/dependency_links.txt +0 -0
- {redfish_interop_validator-2.3.4 → redfish_interop_validator-2.3.5}/redfish_interop_validator.egg-info/entry_points.txt +0 -0
- {redfish_interop_validator-2.3.4 → redfish_interop_validator-2.3.5}/redfish_interop_validator.egg-info/requires.txt +0 -0
- {redfish_interop_validator-2.3.4 → redfish_interop_validator-2.3.5}/redfish_interop_validator.egg-info/top_level.txt +0 -0
- {redfish_interop_validator-2.3.4 → redfish_interop_validator-2.3.5}/setup.cfg +0 -0
|
@@ -19,7 +19,7 @@ from redfish_interop_validator.validateResource import validateSingleURI, valida
|
|
|
19
19
|
from redfish_interop_validator.interop import testResultEnum
|
|
20
20
|
from redfish_interop_validator import logger
|
|
21
21
|
|
|
22
|
-
tool_version = '2.3.
|
|
22
|
+
tool_version = '2.3.5'
|
|
23
23
|
|
|
24
24
|
def main(argslist=None, configfile=None):
|
|
25
25
|
"""Main command
|
|
@@ -76,6 +76,7 @@ def main(argslist=None, configfile=None):
|
|
|
76
76
|
|
|
77
77
|
log_level = logger.Level.INFO if not args.debugging else logger.Level.DEBUG
|
|
78
78
|
file_name = datetime.strftime(start_tick, os.path.join(logpath, "ConformanceLog_%m_%d_%Y_%H%M%S.txt"))
|
|
79
|
+
text_log_file = file_name
|
|
79
80
|
|
|
80
81
|
logger.create_logging_file_handler(log_level, file_name)
|
|
81
82
|
|
|
@@ -290,22 +291,52 @@ def main(argslist=None, configfile=None):
|
|
|
290
291
|
|
|
291
292
|
tohtml.writeHtml(html_str, lastResultsPage)
|
|
292
293
|
|
|
293
|
-
my_logger.info("\nResults Summary:")
|
|
294
|
-
my_logger.info(", ".join([
|
|
295
|
-
'Pass: {}'.format(final_counts['pass']),
|
|
296
|
-
'Fail: {}'.format(final_counts['error']),
|
|
297
|
-
'Warning: {}'.format(final_counts['warning']),
|
|
298
|
-
'Not Tested: {}'.format(final_counts['nottested']),
|
|
299
|
-
]))
|
|
300
|
-
|
|
301
294
|
success = final_counts['error'] == 0
|
|
302
295
|
|
|
296
|
+
# Results Summary table
|
|
297
|
+
summary_rows = [
|
|
298
|
+
('Pass', final_counts['pass']),
|
|
299
|
+
('Fail', final_counts['error']),
|
|
300
|
+
('Warning', final_counts['warning']),
|
|
301
|
+
('Not Tested', final_counts['not_tested']),
|
|
302
|
+
]
|
|
303
|
+
col1_w = max(len(r[0]) for r in summary_rows)
|
|
304
|
+
col2_w = max(len(str(r[1])) for r in summary_rows)
|
|
305
|
+
col1_w = max(col1_w, len('Result'))
|
|
306
|
+
col2_w = max(col2_w, len('Count'))
|
|
307
|
+
sep = '+{}+{}+'.format('-' * (col1_w + 2), '-' * (col2_w + 2))
|
|
308
|
+
header = '| {:<{}} | {:>{}} |'.format('Result', col1_w, 'Count', col2_w)
|
|
309
|
+
summary_lines = [
|
|
310
|
+
'',
|
|
311
|
+
'Results Summary:',
|
|
312
|
+
'',
|
|
313
|
+
sep,
|
|
314
|
+
header,
|
|
315
|
+
sep,
|
|
316
|
+
]
|
|
317
|
+
for label, count in summary_rows:
|
|
318
|
+
summary_lines.append('| {:<{}} | {:>{}} |'.format(label, col1_w, count, col2_w))
|
|
319
|
+
summary_lines += [sep, '']
|
|
320
|
+
|
|
303
321
|
if not success:
|
|
304
|
-
|
|
322
|
+
summary_lines.append('Validation has FAILED: {} problems found'.format(final_counts['error']))
|
|
305
323
|
else:
|
|
306
|
-
|
|
324
|
+
summary_lines.append('Validation has SUCCEEDED.')
|
|
307
325
|
status_code = 0
|
|
308
|
-
|
|
326
|
+
|
|
327
|
+
summary_lines += [
|
|
328
|
+
'',
|
|
329
|
+
'Log Files:',
|
|
330
|
+
'',
|
|
331
|
+
' Text report : {}'.format(text_log_file),
|
|
332
|
+
'',
|
|
333
|
+
' HTML report : {}'.format(lastResultsPage),
|
|
334
|
+
'',
|
|
335
|
+
]
|
|
336
|
+
|
|
337
|
+
summary_text = '\n'.join(summary_lines)
|
|
338
|
+
print(summary_text)
|
|
339
|
+
|
|
309
340
|
return status_code, lastResultsPage, 'Validation done'
|
|
310
341
|
|
|
311
342
|
|
|
@@ -11,7 +11,7 @@ with open("README.md", "r", "utf-8") as f:
|
|
|
11
11
|
|
|
12
12
|
setup(
|
|
13
13
|
name="redfish_interop_validator",
|
|
14
|
-
version="2.3.
|
|
14
|
+
version="2.3.5",
|
|
15
15
|
description="Redfish Interop Validator",
|
|
16
16
|
long_description=long_description,
|
|
17
17
|
long_description_content_type="text/markdown",
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|