-
Notifications
You must be signed in to change notification settings - Fork 994
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
[improve][HIP] HIP-01: Implement refactoring AbstractCollect #1966
Conversation
@@ -77,88 +79,96 @@ void mockCollect() throws Exception { | |||
CollectRep.MetricsData.Builder builder = CollectRep.MetricsData.newBuilder(); | |||
List<String> aliasField = new ArrayList<>(); | |||
aliasField.add("$.['@odata.id']"); | |||
redfishProtocol.setSchema("/redfish/v1/Chassis/{ChassisId}/PowerSubsystem/PowerSupplies"); | |||
redfishProtocol.setSchema("/redfish/v1/chassis/{ChassisId}/PowerSubsystem/PowerSupplies"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi, redifshProtocol schema field means the Resource collection URI which you want to monitor. Users can refer to DSP0268 Section 5.2 content to find the according Resource collection URI. So in this test, we want to monitor PowerSupplies in PowerSupplyCollection. Refer to the table, the according URI is "/redfish/v1/Chassis/{ChassisId}/PowerSubsystem/PowerSupplies". So I think "Chassis" with capital “C” is correct, misspelled test cases may confuse developers. Sorry for not providing detailed documentation explaining usage details. I will impove the redfish collect and complete documentation soon.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the clarification, I've reverted.
Now just change the variable name: String Chassis
-> String chassis
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍LGTM
What's changed?
HIP: #1930
Checklist
Add or update API