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

Tests for Vmware::InfraCluster::Clutser#register_host #549

Merged
merged 1 commit into from
Feb 28, 2020

Conversation

agrare
Copy link
Member

@agrare agrare commented Feb 28, 2020

Add tests for the cluster register_host method.

@agrare agrare requested a review from Fryguy as a code owner February 28, 2020 20:10
@agrare agrare added the test label Feb 28, 2020
host.ext_management_system = ext_management_system
host.name = "unknown"
Copy link
Member Author

Choose a reason for hiding this comment

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

Saving the host was failing without a name

@miq-bot
Copy link
Member

miq-bot commented Feb 28, 2020

Checked commit agrare@84f231a with ruby 2.5.7, rubocop 0.69.0, haml-lint 0.20.0, and yamllint
3 files checked, 0 offenses detected
Everything looks fine. 👍

@@ -31,8 +31,8 @@ def register_host(host)
end

host.ems_ref = host_mor
host.ems_ref_obj = host_mor
Copy link
Member

Choose a reason for hiding this comment

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

Is this deletion on purpose?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes, we no longer allow setting this property after the column was removed and this was missed so it was failing the new test

@chessbyte chessbyte self-assigned this Feb 28, 2020
@chessbyte chessbyte added this to the Sprint 131 Ending Mar 2, 2020 milestone Feb 28, 2020
@chessbyte chessbyte merged commit 4fa8d4b into ManageIQ:master Feb 28, 2020
@agrare agrare deleted the test_cluster_register_host branch February 28, 2020 23:24
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.

None yet

4 participants