Skip to content

Commit

Permalink
Merge pull request ManageIQ#203 from agrare/fix_datacenter_comparison…
Browse files Browse the repository at this point in the history
…_nil_connection

Fix collector spec nil connection comparison
  • Loading branch information
Ladas authored Mar 1, 2018
2 parents 97a93c0 + 6a2e7a1 commit e1fcf19
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,10 @@ def assert_table_counts(ems)
end

context "#process_object_update (private)" do
let(:root_folder) { RbVmomi::VIM::Folder(nil, "group-d1") }
let(:datacenter) { RbVmomi::VIM::Datacenter(nil, "datacenter-1") }
let(:virtual_machine) { RbVmomi::VIM::VirtualMachine(nil, "vm-1") }
let(:vim) { RbVmomi::VIM.new(:ns => "urn2", :rev => "6.5") }
let(:root_folder) { RbVmomi::VIM::Folder(vim, "group-d1") }
let(:datacenter) { RbVmomi::VIM::Datacenter(vim, "datacenter-1") }
let(:virtual_machine) { RbVmomi::VIM::VirtualMachine(vim, "vm-1") }

context "enter" do
it "Folder" do
Expand All @@ -69,9 +70,8 @@ def assert_table_counts(ems)
expect(props).to include(
"name" => "Datacenters",
"parent" => nil,
"childEntity" => [datacenter],
)

expect(props["childEntity"].first._ref).to eq(datacenter._ref)
end

it "VirtualMachine" do
Expand Down

0 comments on commit e1fcf19

Please sign in to comment.