Post by veedug on Aug 3, 2017 8:35:00 GMT
I am using github.com/DMTF/Redfish-Service-Validator to validate our product schema. I get the following result:
@odata.context /redfish/v1/$metadata#ServiceRoot.ServiceRoot odata Exists PASS
@odata.id /redfish/v1/ odata Exists PASS
@odata.type #ServiceRoot.v1_0_2.ServiceRoot odata Exists PASS
Id RootService - Exists -
Name Root Service - Exists -
RedfishVersion 1.0.2 - Exists -
UUID 92384634-2938-2342-8820-489239905423 - Exists -
Systems OrderedDict([('@odata.id', '/redfish/v1/Systems')]) - Exists -
Chassis OrderedDict([('@odata.id', '/redfish/v1/Chassis')]) - Exists -
Managers OrderedDict([('@odata.id', '/redfish/v1/Managers')]) - Exists -
SessionService OrderedDict([('@odata.id', '/redfish/v1/SessionService')]) - Exists -
AccountService OrderedDict([('@odata.id', '/redfish/v1/AccountService')]) - Exists -
Links OrderedDict([('Sessions', OrderedDict([('@odata.id', '/redfish/v1/SessionService/Sessions')]))]) - Exists -
Oem OrderedDict() - Exists -
@redfish.Copyright Copyright 2014-2016 Distributed Management Task Force, Inc. (DMTF). For the full DMTF copyright policy, see www.dmtf.org/about/policies/copyright. - Exists -
I used the same product to validate Redfish mockup server and I am facing the same issue as below:
ERROR - SchemaURI missing reference link: /redfish/v1/$metadata ServiceRoot.ServiceRoot
ERROR - Got XML, but schema still doesn't exist...? ServiceRoot.v1_0_2, #ServiceRoot.v1_0_2.ServiceRoot
ERROR - Something went wrong
Traceback (most recent call last):
File "/home/vidhyag/Redfish-Service-Validator-master/traverseService.py", line 506, in __init__
baseSoup, baseRefs, baseType, self.tagType, topVersion)
File "/home/vidhyag/Redfish-Service-Validator-master/traverseService.py", line 549, in getTypeDetails
str(refs.get(getNamespace(SchemaAlias), (getNamespace(SchemaAlias), None))))
Exception: exceptionType: Was not able to get type, is Schema in XML? ('ServiceRoot.v1_0_2', None)
ERROR - : Getting type failed for #ServiceRoot.v1_0_2.ServiceRoot #ServiceRoot.v1_0_2.ServiceRoot
ERROR - Id: Appears to be an extra property (check inheritance or casing?)
ERROR - Name: Appears to be an extra property (check inheritance or casing?)
ERROR - RedfishVersion: Appears to be an extra property (check inheritance or casing?)
ERROR - UUID: Appears to be an extra property (check inheritance or casing?)
ERROR - Systems: Appears to be an extra property (check inheritance or casing?)
ERROR - Chassis: Appears to be an extra property (check inheritance or casing?)
ERROR - Managers: Appears to be an extra property (check inheritance or casing?)
ERROR - SessionService: Appears to be an extra property (check inheritance or casing?)
ERROR - AccountService: Appears to be an extra property (check inheritance or casing?)
ERROR - Links: Appears to be an extra property (check inheritance or casing?)
ERROR - Oem: Appears to be an extra property (check inheritance or casing?)
ERROR - @redfish.Copyright: Appears to be an extra property (check inheritance or casing?)
Can someone tell me what is the format in which the validator expects schema files to be stored in local as well as in the server? Can the Redfish validator developers throw some light on this issue?
@odata.context /redfish/v1/$metadata#ServiceRoot.ServiceRoot odata Exists PASS
@odata.id /redfish/v1/ odata Exists PASS
@odata.type #ServiceRoot.v1_0_2.ServiceRoot odata Exists PASS
Id RootService - Exists -
Name Root Service - Exists -
RedfishVersion 1.0.2 - Exists -
UUID 92384634-2938-2342-8820-489239905423 - Exists -
Systems OrderedDict([('@odata.id', '/redfish/v1/Systems')]) - Exists -
Chassis OrderedDict([('@odata.id', '/redfish/v1/Chassis')]) - Exists -
Managers OrderedDict([('@odata.id', '/redfish/v1/Managers')]) - Exists -
SessionService OrderedDict([('@odata.id', '/redfish/v1/SessionService')]) - Exists -
AccountService OrderedDict([('@odata.id', '/redfish/v1/AccountService')]) - Exists -
Links OrderedDict([('Sessions', OrderedDict([('@odata.id', '/redfish/v1/SessionService/Sessions')]))]) - Exists -
Oem OrderedDict() - Exists -
@redfish.Copyright Copyright 2014-2016 Distributed Management Task Force, Inc. (DMTF). For the full DMTF copyright policy, see www.dmtf.org/about/policies/copyright. - Exists -
I used the same product to validate Redfish mockup server and I am facing the same issue as below:
ERROR - SchemaURI missing reference link: /redfish/v1/$metadata ServiceRoot.ServiceRoot
ERROR - Got XML, but schema still doesn't exist...? ServiceRoot.v1_0_2, #ServiceRoot.v1_0_2.ServiceRoot
ERROR - Something went wrong
Traceback (most recent call last):
File "/home/vidhyag/Redfish-Service-Validator-master/traverseService.py", line 506, in __init__
baseSoup, baseRefs, baseType, self.tagType, topVersion)
File "/home/vidhyag/Redfish-Service-Validator-master/traverseService.py", line 549, in getTypeDetails
str(refs.get(getNamespace(SchemaAlias), (getNamespace(SchemaAlias), None))))
Exception: exceptionType: Was not able to get type, is Schema in XML? ('ServiceRoot.v1_0_2', None)
ERROR - : Getting type failed for #ServiceRoot.v1_0_2.ServiceRoot #ServiceRoot.v1_0_2.ServiceRoot
ERROR - Id: Appears to be an extra property (check inheritance or casing?)
ERROR - Name: Appears to be an extra property (check inheritance or casing?)
ERROR - RedfishVersion: Appears to be an extra property (check inheritance or casing?)
ERROR - UUID: Appears to be an extra property (check inheritance or casing?)
ERROR - Systems: Appears to be an extra property (check inheritance or casing?)
ERROR - Chassis: Appears to be an extra property (check inheritance or casing?)
ERROR - Managers: Appears to be an extra property (check inheritance or casing?)
ERROR - SessionService: Appears to be an extra property (check inheritance or casing?)
ERROR - AccountService: Appears to be an extra property (check inheritance or casing?)
ERROR - Links: Appears to be an extra property (check inheritance or casing?)
ERROR - Oem: Appears to be an extra property (check inheritance or casing?)
ERROR - @redfish.Copyright: Appears to be an extra property (check inheritance or casing?)
Can someone tell me what is the format in which the validator expects schema files to be stored in local as well as in the server? Can the Redfish validator developers throw some light on this issue?