Skip to content

Commit

Permalink
Fix the test failure that occurs on the Travis CI site
Browse files Browse the repository at this point in the history
  • Loading branch information
skovic committed Mar 9, 2018
1 parent 8ea3fa3 commit b6997d2
Show file tree
Hide file tree
Showing 3 changed files with 5,129 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
VCR.insert_cassette("#{vcr_path}/mock_aicc", options)
VCR.insert_cassette("#{vcr_path}/mock_cabinet", options)
VCR.insert_cassette("#{vcr_path}/mock_config_patterns", options)
VCR.insert_cassette("#{vcr_path}/full_refresh", options)
end
after(:all) do
while VCR.cassettes.last
Expand All @@ -30,6 +31,19 @@
ems
end

let(:ems2) do
# Note: The hostname below cannot be an IP address because it will
# cause the full refresh test to fail when being executed
# on the Travis CI site.
ems2 = FactoryGirl.create(:physical_infra,
:name => "LXCA2",
:hostname => "lxcahost",
:port => "443",
:ipaddress => "https://10.243.9.123:443")
ems2.authentications = [auth]
ems2
end

let(:targets) { [ems] }

let(:refresher) { described_class.new(targets) }
Expand All @@ -54,8 +68,8 @@
# Perform the refresh twice to verify that a second run with existing data
# does not change anything
2.times do
EmsRefresh.refresh(ems)
ems.reload
EmsRefresh.refresh(ems2)
ems2.reload

assert_table_counts
assert_guest_table_contents
Expand Down
Loading

0 comments on commit b6997d2

Please sign in to comment.