Post by jyundt on Apr 4, 2022 20:50:20 GMT
What is the correct syntax for specifying a list of valid values for a given mandatory property? Based on section 8.4.2.1 from DSP0272, I thought that this was the correct syntax:
However, If I provide a test case with invalid values, I'm not getting a failure. As an example:
Will still result in a "Pass". Sample log below:
{
"SchemaDefinition": "RedfishInteroperabilityProfile.v1_5_0",
"ProfileName": "test",
"ProfileVersion": "0.0.1",
"Resources": {
"Chassis": {
"PropertyRequirements": {
"ChassisType": {
"Comparison": "AnyOf",
"Values": [
"Enclosure",
"RackMount",
"StorageEnclosure"
]
}
}
}
}
}
However, If I provide a test case with invalid values, I'm not getting a failure. As an example:
{
"SchemaDefinition": "RedfishInteroperabilityProfile.v1_5_0",
"ProfileName": "test",
"ProfileVersion": "0.0.1",
"Resources": {
"Chassis": {
"PropertyRequirements": {
"ChassisType": {
"Comparison": "AnyOf",
"Values": [
"Foo",
"Bar"
]
}
}
}
}
}
Will still result in a "Pass". Sample log below:
Attachments:
InteropHtmlLog_04_04_2022_164410.html (29.1 KB)
InteropLog_04_04_2022_164410.txt (2.12 KB)