Skip to content

Commit b9b9565

Browse files
author
tphoney
committed
updating the test to use ipv4 addresses
1 parent aadfffb commit b9b9565

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

spec/acceptance/vhost_spec.rb

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -198,12 +198,12 @@ class { 'apache':
198198
}
199199
apache::vhost { 'example.com':
200200
port => '80',
201-
ip => ['127.0.0.1','::1'],
201+
ip => ['127.0.0.1','127.0.0.2'],
202202
ip_based => true,
203203
docroot => '/var/www/html',
204204
}
205205
host { 'ipv4.example.com': ip => '127.0.0.1', }
206-
host { 'ipv6.example.com': ip => '::1', }
206+
host { 'ipv6.example.com': ip => '127.0.0.2', }
207207
file { '/var/www/html/index.html':
208208
ensure => file,
209209
content => "Hello from vhost\\n",
@@ -218,16 +218,16 @@ class { 'apache':
218218
end
219219

220220
describe file("#{$vhost_dir}/25-example.com.conf") do
221-
it { is_expected.to contain '<VirtualHost 127.0.0.1:80 ::1:80>' }
221+
it { is_expected.to contain '<VirtualHost 127.0.0.1:80 127.0.0.2:80>' }
222222
it { is_expected.to contain "ServerName example.com" }
223223
end
224224

225225
describe file($ports_file) do
226226
it { is_expected.to be_file }
227227
it { is_expected.to contain 'Listen 127.0.0.1:80' }
228-
it { is_expected.to contain 'Listen ::1:80' }
228+
it { is_expected.to contain 'Listen 127.0.0.2:80' }
229229
it { is_expected.not_to contain 'NameVirtualHost 127.0.0.1:80' }
230-
it { is_expected.not_to contain 'NameVirtualHost ::1:80' }
230+
it { is_expected.not_to contain 'NameVirtualHost 127.0.0.2:80' }
231231
end
232232

233233
it 'should answer to ipv4.example.com' do

0 commit comments

Comments
 (0)