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

Temporarily fix CI by setting total_space for the mocked storage #7559

Closed
wants to merge 1 commit into from

Conversation

skateman
Copy link
Member

@skateman skateman commented Jan 7, 2021

This is a temporary fix for making the CI happy, since ManageIQ/manageiq#20871 was merged into core. The Storage#total_space can return nil which causes the zero? method to fail which is a problem when testing the report_data of storages. As this problem might affect other callsites as well so IMO it should be fixed in the model. If I'm wrong, then we might want to add a dummy value into the storage factory for the tests to stay happy.

FYI @djberg96 @Fryguy

@miq-bot
Copy link
Member

miq-bot commented Jan 7, 2021

Checked commit skateman@4486046 with ruby 2.6.3, rubocop 0.82.0, haml-lint 0.35.0, and yamllint
1 file checked, 0 offenses detected
Everything looks fine. 🍰

@Fryguy
Copy link
Member

Fryguy commented Jan 7, 2021

Since total storage can return nil, I agree we should fix this in core.

cc @djberg96 @agrare

@Fryguy
Copy link
Member

Fryguy commented Jan 7, 2021

Closing in favor of ManageIQ/manageiq#20937

@Fryguy Fryguy closed this Jan 7, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants