Skip to content

Commit

Permalink
Merge pull request #561 from agrare/expose_set_description
Browse files Browse the repository at this point in the history
Expose Vmware::Infra::Vm#set_description
  • Loading branch information
Fryguy authored Oct 18, 2024
2 parents 4e555e6 + 185aa88 commit 8a9f945
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 8a9f945

Please sign in to comment.