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

Move more data into hypervisor specific classes #313

Merged
merged 4 commits into from
Jul 17, 2023

Conversation

ekohl
Copy link
Member

@ekohl ekohl commented Jul 14, 2023

The aim is to reduce duplication in the data class. Making it shorter and easier to maintain.

@codecov
Copy link

codecov bot commented Jul 14, 2023

Codecov Report

Patch coverage has no change and project coverage change: +0.06 🎉

Comparison is base (b0747aa) 0.67% compared to head (3c5bb73) 0.74%.

❗ Current head 3c5bb73 differs from pull request most recent head ce36db3. Consider uploading reports for the commit ce36db3 to get more accurate results

Additional details and impacted files
@@            Coverage Diff            @@
##           master    #313      +/-   ##
=========================================
+ Coverage    0.67%   0.74%   +0.06%     
=========================================
  Files          15      15              
  Lines        1930    1756     -174     
=========================================
  Hits           13      13              
+ Misses       1917    1743     -174     
Impacted Files Coverage Δ
lib/beaker-hostgenerator/data.rb 0.00% <0.00%> (ø)
lib/beaker-hostgenerator/hypervisor/docker.rb 0.00% <0.00%> (ø)
lib/beaker-hostgenerator/hypervisor/vmpooler.rb 0.00% <0.00%> (ø)

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

@ekohl ekohl force-pushed the refactor-docker-hypervisor branch from 259c1ac to 2e1711c Compare July 14, 2023 19:21
This creates helpers for the image and image commands. That makes it
easier to expand it in the future without creating one monster method
This uses the Hypervisor to add the commands if needed. It can use logic
to reduce duplication.
@ekohl ekohl force-pushed the refactor-docker-hypervisor branch from 2e1711c to cd37f1a Compare July 14, 2023 19:26
This creates a generate_osinfo method for the simple cases where there's
only an OS and platform tuple.
@ekohl ekohl force-pushed the refactor-docker-hypervisor branch from cd37f1a to ce36db3 Compare July 14, 2023 19:29
@ekohl ekohl merged commit 86df298 into voxpupuli:master Jul 17, 2023
@ekohl ekohl deleted the refactor-docker-hypervisor branch July 17, 2023 19:36
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