-
Notifications
You must be signed in to change notification settings - Fork 897
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
[V2V] Fix allowing address to be blank for the ConversionHost model, and update spec. #18690
[V2V] Fix allowing address to be blank for the ConversionHost model, and update spec. #18690
Conversation
@miq-bot add_label hammer/yes |
@miq-bot add_label bug |
@miq-bot add_label transformation |
@djberg96 unrecognized command 'assign_reviewer', ignoring... Accepted commands are: add_label, add_reviewer, assign, close_issue, move_issue, remove_label, rm_label, remove_reviewer, set_milestone |
Checked commit https://github.com/djberg96/manageiq/commit/d89d83a4a414b08b0f0e19f47efe56ead0020c47 with ruby 2.3.3, rubocop 0.52.1, haml-lint 0.20.0, and yamllint 1.10.0 |
…alidation [V2V] Fix allowing address to be blank for the ConversionHost model, and update spec. (cherry picked from commit afe8714) https://bugzilla.redhat.com/show_bug.cgi?id=1696437
Hammer backport details:
|
Apparently adding
:presence => false
to the address validation for theConversionHost
model wasn't good enough due to some AR precedence issue, and my spec didn't catch it because it already skipped the validation if the underlying resource didn't return an address.So, this explicitly skips the check if the address is blank, and updates the spec to make sure that it will return at least one address.
I validated that without this change, the spec will now fail.
Followup to: #18610
BZ: https://bugzilla.redhat.com/show_bug.cgi?id=1695797