redfish-interop-validator 2.2.5__tar.gz → 2.2.6__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.2.5/redfish_interop_validator.egg-info → redfish_interop_validator-2.2.6}/PKG-INFO +1 -1
- {redfish_interop_validator-2.2.5 → redfish_interop_validator-2.2.6}/redfish_interop_validator/RedfishInteropValidator.py +1 -1
- {redfish_interop_validator-2.2.5 → redfish_interop_validator-2.2.6}/redfish_interop_validator/tohtml.py +11 -6
- {redfish_interop_validator-2.2.5 → redfish_interop_validator-2.2.6}/redfish_interop_validator/traverseInterop.py +4 -2
- {redfish_interop_validator-2.2.5 → redfish_interop_validator-2.2.6}/redfish_interop_validator/validateResource.py +2 -2
- {redfish_interop_validator-2.2.5 → redfish_interop_validator-2.2.6/redfish_interop_validator.egg-info}/PKG-INFO +1 -1
- {redfish_interop_validator-2.2.5 → redfish_interop_validator-2.2.6}/setup.py +1 -1
- {redfish_interop_validator-2.2.5 → redfish_interop_validator-2.2.6}/AUTHORS.md +0 -0
- {redfish_interop_validator-2.2.5 → redfish_interop_validator-2.2.6}/LICENSE.md +0 -0
- {redfish_interop_validator-2.2.5 → redfish_interop_validator-2.2.6}/README.md +0 -0
- {redfish_interop_validator-2.2.5 → redfish_interop_validator-2.2.6}/redfish_interop_validator/RedfishLogo.py +0 -0
- {redfish_interop_validator-2.2.5 → redfish_interop_validator-2.2.6}/redfish_interop_validator/__init__.py +0 -0
- {redfish_interop_validator-2.2.5 → redfish_interop_validator-2.2.6}/redfish_interop_validator/config.py +0 -0
- {redfish_interop_validator-2.2.5 → redfish_interop_validator-2.2.6}/redfish_interop_validator/interop.py +0 -0
- {redfish_interop_validator-2.2.5 → redfish_interop_validator-2.2.6}/redfish_interop_validator/profile.py +0 -0
- {redfish_interop_validator-2.2.5 → redfish_interop_validator-2.2.6}/redfish_interop_validator/redfish.py +0 -0
- {redfish_interop_validator-2.2.5 → redfish_interop_validator-2.2.6}/redfish_interop_validator/session.py +0 -0
- {redfish_interop_validator-2.2.5 → redfish_interop_validator-2.2.6}/redfish_interop_validator.egg-info/SOURCES.txt +0 -0
- {redfish_interop_validator-2.2.5 → redfish_interop_validator-2.2.6}/redfish_interop_validator.egg-info/dependency_links.txt +0 -0
- {redfish_interop_validator-2.2.5 → redfish_interop_validator-2.2.6}/redfish_interop_validator.egg-info/entry_points.txt +0 -0
- {redfish_interop_validator-2.2.5 → redfish_interop_validator-2.2.6}/redfish_interop_validator.egg-info/requires.txt +0 -0
- {redfish_interop_validator-2.2.5 → redfish_interop_validator-2.2.6}/redfish_interop_validator.egg-info/top_level.txt +0 -0
- {redfish_interop_validator-2.2.5 → redfish_interop_validator-2.2.6}/setup.cfg +0 -0
|
@@ -17,7 +17,7 @@ import redfish_interop_validator.traverseInterop as traverseInterop
|
|
|
17
17
|
from redfish_interop_validator.profile import getProfiles, checkProfileAgainstSchema, hashProfile
|
|
18
18
|
from redfish_interop_validator.validateResource import validateSingleURI, validateURITree
|
|
19
19
|
|
|
20
|
-
tool_version = '2.2.
|
|
20
|
+
tool_version = '2.2.6'
|
|
21
21
|
|
|
22
22
|
# Set up the custom debug levels
|
|
23
23
|
VERBOSE1 = logging.INFO - 1
|
|
@@ -158,20 +158,25 @@ def renderHtml(results, finalCounts, tool_version, startTick, nowTick, config):
|
|
|
158
158
|
for cnt, item in enumerate(results):
|
|
159
159
|
entry = []
|
|
160
160
|
val = results[item]
|
|
161
|
-
|
|
161
|
+
response_time = val.get('rtime')
|
|
162
|
+
if isinstance(response_time, float) and response_time >= 0:
|
|
163
|
+
rtime = '(response time: {})'.format(response_time)
|
|
164
|
+
else:
|
|
165
|
+
rtime = ''
|
|
162
166
|
|
|
163
167
|
if len(val['messages']) == 0 and len(val['errors']) == 0 and len(val['warns']) == 0:
|
|
164
168
|
continue
|
|
165
169
|
|
|
166
170
|
# uri block
|
|
167
|
-
prop_type = val['fulltype']
|
|
171
|
+
prop_type, type_name = val['fulltype'], ''
|
|
168
172
|
if prop_type is not None:
|
|
169
|
-
namespace = getNamespace(prop_type)
|
|
170
173
|
type_name = getType(prop_type)
|
|
171
174
|
|
|
172
|
-
infos_a = [str(val.get(x)) for x in ['uri', 'samplemapped'] if val.get(x) not in ['',None]]
|
|
173
|
-
|
|
174
|
-
|
|
175
|
+
infos_a = [str(val.get(x)) for x in ['uri', 'samplemapped'] if val.get(x) not in ['', None]]
|
|
176
|
+
if rtime != '':
|
|
177
|
+
infos_a.append(rtime)
|
|
178
|
+
if type_name:
|
|
179
|
+
infos_a.append(type_name)
|
|
175
180
|
uriTag = tag.tr(tag.th(infoBlock(infos_a, ' '), 'class="titlerow bluebg"'))
|
|
176
181
|
entry.append(uriTag)
|
|
177
182
|
|
|
@@ -336,13 +336,13 @@ def createResourceObject(name, uri, jsondata=None, typename=None, context=None,
|
|
|
336
336
|
""" # Create json from service or from given
|
|
337
337
|
|
|
338
338
|
if jsondata is None and not isComplex:
|
|
339
|
-
success, jsondata, status,
|
|
339
|
+
success, jsondata, status, response_time, response = callResourceURI(uri)
|
|
340
340
|
traverseLogger.debug('{}, {}, {}'.format(success, jsondata, status))
|
|
341
341
|
if not success:
|
|
342
342
|
my_logger.error('{}: URI could not be acquired: {}'.format(uri, status))
|
|
343
343
|
return None, status
|
|
344
344
|
else:
|
|
345
|
-
success, jsondata, status,
|
|
345
|
+
success, jsondata, status, response_time, response = True, jsondata, -1, 0, None
|
|
346
346
|
|
|
347
347
|
# Collect our resource header
|
|
348
348
|
if response:
|
|
@@ -354,6 +354,8 @@ def createResourceObject(name, uri, jsondata=None, typename=None, context=None,
|
|
|
354
354
|
|
|
355
355
|
newResource = ResourceObj(name, uri, jsondata, typename, context, parent, isComplex, headers=my_header)
|
|
356
356
|
|
|
357
|
+
newResource.rtime = response_time
|
|
358
|
+
|
|
357
359
|
return newResource, status
|
|
358
360
|
|
|
359
361
|
|
|
@@ -66,7 +66,7 @@ def validateSingleURI(URI, profile, uriName='', expectedType=None, expectedSchem
|
|
|
66
66
|
'messages': messages,
|
|
67
67
|
'errors': '',
|
|
68
68
|
'warns': '',
|
|
69
|
-
'rtime': '',
|
|
69
|
+
'rtime': 'n/a',
|
|
70
70
|
'context': '',
|
|
71
71
|
'fulltype': '',
|
|
72
72
|
'rcode': 0,
|
|
@@ -465,7 +465,7 @@ def validateURITree(URI, profile, uriName, expectedType=None, expectedSchema=Non
|
|
|
465
465
|
finalResults['n/a'] = {'uri': "Service Level Requirements", 'success': message_counts.get('fail', 0) == 0,
|
|
466
466
|
'counts': message_counts,
|
|
467
467
|
'messages': message_list, 'errors': error_messages.getvalue(), 'warns': '',
|
|
468
|
-
'rtime':
|
|
468
|
+
'rtime': None, 'context': '', 'fulltype': ''}
|
|
469
469
|
finalResults.update(results)
|
|
470
470
|
error_messages.close()
|
|
471
471
|
|
|
@@ -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.2.
|
|
14
|
+
version="2.2.6",
|
|
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
|