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

redfishwrapper changes #374

Merged
merged 28 commits into from
Nov 29, 2023
Merged

redfishwrapper changes #374

merged 28 commits into from
Nov 29, 2023

Conversation

joelrebel
Copy link
Member

@joelrebel joelrebel commented Nov 29, 2023

What does this PR implement/change/remove?

cumulative devel work merge from these approved PRs

#369
#370
#371
#372

This enables other providers to reuse the Inventory method and customise
its use based on the vendor/model
The FirmwareUpload and related methods in redfishwrapper are more
generic and can be re-used by providers with OEM specific update
parameters. Having these methods in the redfish provider makes it
cumbersome to maintain and extend.
…pper

The wrapper provides implementations other providers can call into for
code reuse
…oved method internals

into the redfishwrapper so they can be reused by other providers
This helps with debugging failed tasks
…oadedAndInitiate(), FirmwareInstallStatus() methods
[3/4] redfish/GetBiosConfiguration: move tests and fixtures
[1/4] Move methods under the redfishwrapper for reuse
Copy link

codecov bot commented Nov 29, 2023

Codecov Report

Attention: 226 lines in your changes are missing coverage. Please review.

Comparison is base (b565dd4) 44.60% compared to head (afda0c3) 43.87%.

Files Patch % Lines
providers/dell/firmware.go 9.34% 96 Missing and 1 partial ⚠️
internal/redfishwrapper/inventory.go 11.76% 45 Missing ⚠️
internal/redfishwrapper/inventory_collect.go 10.34% 26 Missing ⚠️
providers/supermicro/supermicro.go 30.43% 14 Missing and 2 partials ⚠️
internal/redfishwrapper/power.go 0.00% 14 Missing ⚠️
client.go 0.00% 7 Missing ⚠️
internal/redfishwrapper/task.go 76.19% 3 Missing and 2 partials ⚠️
providers/redfish/redfish.go 0.00% 5 Missing ⚠️
providers/dell/idrac.go 69.23% 4 Missing ⚠️
internal/redfishwrapper/system.go 40.00% 3 Missing ⚠️
... and 3 more
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #374      +/-   ##
==========================================
- Coverage   44.60%   43.87%   -0.74%     
==========================================
  Files          61       59       -2     
  Lines        5206     5042     -164     
==========================================
- Hits         2322     2212     -110     
+ Misses       2628     2608      -20     
+ Partials      256      222      -34     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Collaborator

@ofaurax ofaurax left a comment

Choose a reason for hiding this comment

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

Big bang!

@joelrebel joelrebel merged commit 0df7b75 into main Nov 29, 2023
5 of 9 checks passed
@joelrebel joelrebel deleted the devel-rework-redfishwrapper branch November 29, 2023 09:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants