Skip to content

Commit

Permalink
Expose Vmware::Infra::Vm#set_description
Browse files Browse the repository at this point in the history
  • Loading branch information
agrare committed Oct 18, 2024
1 parent 4e555e6 commit 185aa88
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
module MiqAeMethodService
class MiqAeServiceManageIQ_Providers_Vmware_InfraManager_Vm < MiqAeServiceManageIQ_Providers_InfraManager_Vm
def set_description(new_description, options = {})
sync_or_async_ems_operation(options[:sync], "set_description", [new_description])
end

def set_number_of_cpus(count, options = {})
sync_or_async_ems_operation(options[:sync], "set_number_of_cpus", [count])
end
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,14 @@
}
end

it "#set_description" do
service_vm.set_description("new-description")

expect(MiqQueue.first).to have_attributes(
@base_queue_options.merge(:method_name => "set_description", :args => %w[new-description])
)
end

it "#set_number_of_cpus" do
service_vm.set_number_of_cpus(1)

Expand Down

0 comments on commit 185aa88

Please sign in to comment.