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

Implements screenshot feature for dell #333

Merged
merged 4 commits into from
May 15, 2023
Merged

Implements screenshot feature for dell #333

merged 4 commits into from
May 15, 2023

Conversation

joelrebel
Copy link
Member

@joelrebel joelrebel commented May 9, 2023

What does this PR implement/change/remove?

Implements screenshot capture feature for Dell IDracs.

Checklist

  • Tests added
  • Similar commits squashed

The HW vendor this change applies to (if applicable)

Dell

The HW model number, product name this change applies to (if applicable)

Description for changelog/release notes

- Screenshot feature for Dell Idracs

@joelrebel joelrebel changed the title Implement screenshot feature for dell Implements screenshot feature for dell May 9, 2023
@codecov
Copy link

codecov bot commented May 9, 2023

Codecov Report

Patch coverage: 53.33% and project coverage change: +0.45 🎉

Comparison is base (5f3cb35) 44.14% compared to head (49f837d) 44.59%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #333      +/-   ##
==========================================
+ Coverage   44.14%   44.59%   +0.45%     
==========================================
  Files          37       39       +2     
  Lines        2904     3054     +150     
==========================================
+ Hits         1282     1362      +80     
- Misses       1494     1556      +62     
- Partials      128      136       +8     
Impacted Files Coverage Δ
internal/redfishwrapper/client.go 21.17% <0.00%> (-1.05%) ⬇️
option.go 21.15% <0.00%> (-2.76%) ⬇️
providers/dell/idrac.go 37.20% <37.20%> (ø)
client.go 57.52% <75.00%> (+1.64%) ⬆️
bmc/screenshot.go 94.73% <94.73%> (ø)

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

@joelrebel
Copy link
Member Author

rebase on main with changes

Copy link
Collaborator

@chrisdoherty4 chrisdoherty4 left a comment

Choose a reason for hiding this comment

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

lgtm

@jacobweinstock
Copy link
Member

Hey @joelrebel , a lot of this looks like duplicate code of the redfish provider. Seems like there are just some specific dell endpoints for being able to screenshot. What would this look like if it was incorporated into the redfish provider? Would it make it too messy?

@joelrebel
Copy link
Member Author

@jacobweinstock I did take that approach earlier, and the Redfish provider starts to get messy, which now I'd like to move into the relevant provider. In this case we need to support a minimal set of features that is vendor specific - not present in Redfish spec (and most likely will never be), and so it made more sense have a provider implementation for it.

@jacobweinstock
Copy link
Member

@jacobweinstock I did take that approach earlier, and the Redfish provider starts to get messy, which now I'd like to move into the relevant provider. In this case we need to support a minimal set of features that is vendor specific - not present in Redfish spec (and most likely will never be), and so it made more sense have a provider implementation for it.

Ah i see. Thanks!

@joelrebel joelrebel merged commit 2714c74 into main May 15, 2023
@joelrebel joelrebel deleted the screencap branch May 15, 2023 16:47
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.

3 participants