From b9b9565170308a0a3d04577a37c88fa743f5a96e Mon Sep 17 00:00:00 2001 From: tphoney Date: Fri, 13 Nov 2015 15:00:59 +0000 Subject: [PATCH] updating the test to use ipv4 addresses --- spec/acceptance/vhost_spec.rb | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/spec/acceptance/vhost_spec.rb b/spec/acceptance/vhost_spec.rb index 2d3b83474..c4a34b1f1 100644 --- a/spec/acceptance/vhost_spec.rb +++ b/spec/acceptance/vhost_spec.rb @@ -198,12 +198,12 @@ class { 'apache': } apache::vhost { 'example.com': port => '80', - ip => ['127.0.0.1','::1'], + ip => ['127.0.0.1','127.0.0.2'], ip_based => true, docroot => '/var/www/html', } host { 'ipv4.example.com': ip => '127.0.0.1', } - host { 'ipv6.example.com': ip => '::1', } + host { 'ipv6.example.com': ip => '127.0.0.2', } file { '/var/www/html/index.html': ensure => file, content => "Hello from vhost\\n", @@ -218,16 +218,16 @@ class { 'apache': end describe file("#{$vhost_dir}/25-example.com.conf") do - it { is_expected.to contain '' } + it { is_expected.to contain '' } it { is_expected.to contain "ServerName example.com" } end describe file($ports_file) do it { is_expected.to be_file } it { is_expected.to contain 'Listen 127.0.0.1:80' } - it { is_expected.to contain 'Listen ::1:80' } + it { is_expected.to contain 'Listen 127.0.0.2:80' } it { is_expected.not_to contain 'NameVirtualHost 127.0.0.1:80' } - it { is_expected.not_to contain 'NameVirtualHost ::1:80' } + it { is_expected.not_to contain 'NameVirtualHost 127.0.0.2:80' } end it 'should answer to ipv4.example.com' do