-
Notifications
You must be signed in to change notification settings - Fork 62
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
Add specs for reconfiguring vm with OvirtSDK #22
Conversation
7564e61
to
fa8f904
Compare
@masayag please take a look |
bca9fb6
to
2e1a1c0
Compare
Add Hakiri Badge
This pull request is not mergeable. Please rebase and repush. |
2e1a1c0
to
9306d65
Compare
@masayag can you please review? |
context "use_ovirt_engine_sdk is set to false" do | ||
let(:use_ovirt_engine_sdk) { false } | ||
it 'sends vm_reconfigure to the right ovirt_services' do | ||
expect(@v4_strategy_instance).to receive(:vm_reconfigure).with(@vm, {}) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this seems incorrect: if sdk shouldn't be used, the v4 strategy instance shouldn't be used.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It should. The vm_reconfigure should always run through v4 if it is available even when the use_ovirt_sdk is toggled off, this is by design.
end | ||
end | ||
|
||
context "memory is less than vms memory should be rounded up to" do |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should there be any text after "up do" ? this seems like the sentence is ended prematurely.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
Tests look good, added few comments inline. For v4 we support also reconfigure of vm's disks. Those aren't covered by the tests. |
9306d65
to
a86f931
Compare
Checked commit borod108@a86f931 with ruby 2.2.6, rubocop 0.47.1, and haml-lint 0.20.0 |
@masayag if I fixed your comments properly and you do not have any more, can you approve this and assign oourfali? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fine backport (to manageiq repo) details:
|
Add some specs to the reconfiguring vm process