Skip to content

Commit

Permalink
A spec for queuing of ManagerRefresh::Target
Browse files Browse the repository at this point in the history
A spec for queuing of ManagerRefresh::Target
  • Loading branch information
Ladas committed Mar 10, 2017
1 parent 2abefbd commit b847cf4
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions spec/models/ems_refresh_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,17 @@
queue_refresh_and_assert_queue_item(target, [target])
end

it "with ManagerRefresh::Target" do
target = ManagerRefresh::Target.load(
:manager_id => @ems.id,
:association => :vms,
:manager_ref => {:ems_ref => "vm_1"},
:options => {:opt1 => "opt1", :opt2 => "opt2"}
)

queue_refresh_and_assert_queue_item(target, [target])
end

it "with Host" do
target = FactoryGirl.create(:host_vmware, :ext_management_system => @ems)
queue_refresh_and_assert_queue_item(target, [target])
Expand Down

0 comments on commit b847cf4

Please sign in to comment.