Skip to content

Commit

Permalink
Merge pull request #123 from felipedf/fixing_tests_hostname
Browse files Browse the repository at this point in the history
Fixing tests for the new hostname validation
(cherry picked from commit f7509d2)
  • Loading branch information
agrare authored and simaishi committed Jan 22, 2018
1 parent c39f0eb commit 9a21a5d
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
let(:ems) do
FactoryGirl.create(:physical_infra_with_authentication,
:name => "LXCA",
:hostname => "https://10.243.9.123")
:hostname => "10.243.9.123")
end

let(:runner) { described_class.new(:ems_id => ems.id) }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
let(:ems) do
FactoryGirl.create(:physical_infra_with_authentication,
:name => "LXCA",
:hostname => "https://10.243.9.123",
:hostname => "10.243.9.123",
:port => "443")
end

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
it 'will retrieve physical servers' do
pim = FactoryGirl.create(:physical_infra,
:name => "LXCA",
:hostname => "https://10.243.9.123",
:hostname => "10.243.9.123",
:port => "443",
:ipaddress => "https://10.243.9.123:443")
auth = FactoryGirl.create(:authentication,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
let(:ems) do
FactoryGirl.create(:physical_infra,
:name => "LXCA",
:hostname => "https://10.243.9.123",
:hostname => "10.243.9.123",
:port => "443",
:ipaddress => "https://10.243.9.123:443")
end
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
:ems_ref => "BD775D06821111E189A3E41F13ED5A1A")
pim = FactoryGirl.create(:physical_infra,
:name => "LXCA",
:hostname => "https://10.243.9.123",
:hostname => "10.243.9.123",
:port => "443",
:ipaddress => "https://10.243.9.123")
auth = FactoryGirl.create(:authentication,
Expand All @@ -32,7 +32,7 @@
:ems_ref => "BD775D06821111E189A3E41F13ED5A1A")
pim = FactoryGirl.create(:physical_infra,
:name => "LXCA",
:hostname => "https://10.243.9.123",
:hostname => "10.243.9.123",
:port => "443",
:ipaddress => "https://10.243.9.123")
auth = FactoryGirl.create(:authentication,
Expand All @@ -52,7 +52,7 @@
:ems_ref => "BD775D06821111E189A3E41F13ED5A1A")
pim = FactoryGirl.create(:physical_infra,
:name => "LXCA",
:hostname => "https://10.243.9.123",
:hostname => "10.243.9.123",
:port => "443",
:ipaddress => "https://10.243.9.123")
auth = FactoryGirl.create(:authentication,
Expand All @@ -72,7 +72,7 @@
:ems_ref => "EADEBE8316174750A27FEC2E8226AC48")
pim = FactoryGirl.create(:physical_infra,
:name => "LXCA",
:hostname => "https://10.243.9.123",
:hostname => "10.243.9.123",
:port => "443",
:ipaddress => "https://10.243.9.123")
auth = FactoryGirl.create(:authentication,
Expand All @@ -92,7 +92,7 @@
:ems_ref => "EADEBE8316174750A27FEC2E8226AC48")
pim = FactoryGirl.create(:physical_infra,
:name => "LXCA",
:hostname => "https://10.243.9.123",
:hostname => "10.243.9.123",
:port => "443",
:ipaddress => "https://10.243.9.123")
auth = FactoryGirl.create(:authentication,
Expand All @@ -112,7 +112,7 @@
:ems_ref => "7936DD182C5311E3A8D6000AF7256738")
pim = FactoryGirl.create(:physical_infra,
:name => "LXCA",
:hostname => "https://10.243.9.123",
:hostname => "10.243.9.123",
:port => "443",
:ipaddress => "https://10.243.9.123")
auth = FactoryGirl.create(:authentication,
Expand All @@ -132,7 +132,7 @@
:ems_ref => "EADEBE8316174750A27FEC2E8226AC48")
pim = FactoryGirl.create(:physical_infra,
:name => "LXCA",
:hostname => "https://10.243.9.123",
:hostname => "10.243.9.123",
:port => "443",
:ipaddress => "https://10.243.9.123")
auth = FactoryGirl.create(:authentication,
Expand All @@ -152,7 +152,7 @@
:ems_ref => "7936DD182C5311E3A8D6000AF7256738")
pim = FactoryGirl.create(:physical_infra,
:name => "LXCA",
:hostname => "https://10.243.9.123",
:hostname => "10.243.9.123",
:port => "443",
:ipaddress => "https://10.243.9.123")
auth = FactoryGirl.create(:authentication,
Expand All @@ -172,7 +172,7 @@
:ems_ref => "7936DD182C5311E3A8D6000AF7256738")
pim = FactoryGirl.create(:physical_infra,
:name => "LXCA",
:hostname => "https://10.243.9.123",
:hostname => "10.243.9.123",
:port => "443",
:ipaddress => "https://10.243.9.123")
auth = FactoryGirl.create(:authentication,
Expand All @@ -192,7 +192,7 @@
:ems_ref => "7936DD182C5311E3A8D6000AF7256738")
pim = FactoryGirl.create(:physical_infra,
:name => "LXCA",
:hostname => "https://10.243.9.123",
:hostname => "10.243.9.123",
:port => "443",
:ipaddress => "https://10.243.9.123")
auth = FactoryGirl.create(:authentication,
Expand Down Expand Up @@ -231,9 +231,9 @@
it 'should build the console URI' do
pim = FactoryGirl.create(:physical_infra,
:name => "LXCA1",
:hostname => "10.241.5.555",
:hostname => "10.243.5.255",
:port => "443",
:ipaddress => "10.243.5.555")
:ipaddress => "10.243.5.255")
console_uri = URI::HTTPS.build(:host => pim.hostname,
:port => pim.port)

Expand Down

0 comments on commit 9a21a5d

Please sign in to comment.