Redfish-Service-Validator icon indicating copy to clipboard operation
Redfish-Service-Validator copied to clipboard

ServiceRoot throws warning on checkPayloadConformance

Open aahmed-2 opened this issue 3 years ago • 1 comments

Call path: RedfishServiceValidator.py:172 - validateURITree(currentService, '/redfish/v1/', 'ServiceRoot', expectedJson=jsonData) validateResource.py:284 - validateSingleURI(service, URI, uriName, expectedType, expectedJson, parent) validateResource.py:91 - checkPayloadConformance(me['payload'], URI) common/helper.py:157 - my_logger.warning("{} {}: Expected @odata.id to match URI link {}".format(uri, key, decoded[key]))

In helper.py, checkPayloadConformance, comparison between "/redfish/v1/" and "/redfish/v1" fails and results in 157 being triggered.

aahmed-2 avatar Apr 14 '22 05:04 aahmed-2

That appears to be a proper warning. While you may redirect or otherwise use "identical" payload, the definition of @odata.id wants that value to match the URI requested. So a warning (not a failure) that the value "/redfish/v1" doesn't match the requested "/redfish/v1/" (or vice versa) is expected.

jautor avatar Apr 22 '22 19:04 jautor