Skip to content

Commit

Permalink
Added extra API call and test for "migrate_virtual_machine_with_volume"
Browse files Browse the repository at this point in the history
  • Loading branch information
Craig.Howlett committed Sep 23, 2015
1 parent a57290b commit 70b4e47
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
1 change: 1 addition & 0 deletions lib/cloudstack_ruby_client/api/vm_api.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ module VirtualMachine
:change_service_for_virtual_machine,
:assign_virtual_machine,
:migrate_virtual_machine,
:migrate_virtual_machine_with_volume,
:recover_virtual_machine,
:add_nic_to_virtual_machine,
:remove_nic_from_virtual_machine,
Expand Down
2 changes: 1 addition & 1 deletion lib/cloudstack_ruby_client/version.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module CloudstackRubyClient
VERSION = "1.0.2"
VERSION = "1.0.3"
end
6 changes: 6 additions & 0 deletions test/unit/vm_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,12 @@ def test_migrate_virtual_machine
end
end

def test_migrate_virtual_machine_with_volume
assert_raise(ArgumentError) do
@client.migrate_virtual_machine_with_volume
end
end

def test_recover_virtual_machine
assert_raise(ArgumentError) do
@client.recover_virtual_machine
Expand Down

0 comments on commit 70b4e47

Please sign in to comment.