-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Missing or invalid Resources do not result in a Fail #159
Comments
Definitely a bug; we'll need to look into this |
Hmm, I thought that's expected? Doesn't we only validate the resource requirement when that resource exists in the Redfish tree? (I also found this before, for example we have some property requirements for resourceA, the validation would pass when the Redfish service reports 0 resources for resourceA. So I need to add |
The default requirement on a resource is "Mandatory" when you stub it out like that. So, the expectation is at least one instance of the resource must exist. If you add "ReadRequirement: Recommended" at the root level of the resource definition, you can loosen it to be optional. MinCount is used specifically for arrays. It is possible to achieve similar behavior by specifying "MinCount" in "Members" for a resource collection though. |
Related to this redfishforum.com post, a defined Resource in an Interop Profile will not result in a Fail when that Resource is missing / not detected.
As an example, this profile provides as Pass as expected:
However, if I list a Resource that is not present, I'm not getting any type of Fail. Example:
(edit: fixed typo for the "working" Chassis example)
The text was updated successfully, but these errors were encountered: