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

Ensure platform is Beaker::Platform in tests #1855

Merged
merged 3 commits into from
Aug 27, 2024

Conversation

ekohl
Copy link
Member

@ekohl ekohl commented Mar 14, 2024

The regular option parser guarantees this and it sort of works because Beaker::Platform can behave as a string (since it inherits from it). When you do want to use extended features, it fails.

This enhances the helper to guarantee it's the correct class instance. Then there are many changes to the tests to ensure a valid platform is passed in.

Still incomplete and I wonder what we should do about the unix platform.

I'm also tempted to drop some platforms instead.

Copy link

codecov bot commented Mar 14, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 74.30%. Comparing base (3d564e8) to head (4a78cae).
Report is 2 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1855      +/-   ##
==========================================
- Coverage   74.32%   74.30%   -0.03%     
==========================================
  Files          79       79              
  Lines        4398     4398              
==========================================
- Hits         3269     3268       -1     
- Misses       1129     1130       +1     

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

@ekohl ekohl force-pushed the ensure-correct-platform branch from bc2c7f0 to 4a78cae Compare July 24, 2024 15:02
@ekohl ekohl marked this pull request as ready for review July 24, 2024 15:02
@bastelfreak bastelfreak mentioned this pull request Jul 26, 2024
ekohl added 3 commits August 13, 2024 19:37
This makes it easier to debug when they don't match.
Rather than updating it after the fact, this calls make_host once with
the correct parameters.
The regular option parser guarantees this and it sort of works because
Beaker::Platform can behave as a string (since it inherits from it).
When you do want to use extended features, it fails.

This enhances the helper to guarantee it's the correct class instance.
Then there are many changes to the tests to ensure a valid platform is
passed in.
@ekohl ekohl force-pushed the ensure-correct-platform branch from 4a78cae to 9d85e89 Compare August 13, 2024 17:38
@bastelfreak bastelfreak merged commit f661a7b into voxpupuli:master Aug 27, 2024
7 checks passed
@ekohl ekohl deleted the ensure-correct-platform branch August 27, 2024 17:19
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