Skip to content
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

Merged
merged 9 commits into from
May 12, 2024

Conversation

crossoverJie
Copy link
Contributor

What's changed?

HIP: #1930

Checklist

  • I have read the Contributing Guide
  • I have written the necessary doc or comment.
  • I have added the necessary unit tests and all cases have passed.

Add or update API

  • I have added the necessary e2e tests and all cases have passed.

@@ -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");
Copy link
Contributor

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.

Copy link
Contributor Author

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.

@tomsun28 tomsun28 added the good first pull request Good for newcomers label May 12, 2024
Copy link
Contributor

@tomsun28 tomsun28 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍LGTM

@tomsun28 tomsun28 merged commit d52ae67 into apache:master May 12, 2024
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Development

Successfully merging this pull request may close these issues.

None yet

3 participants