Skip to content

Commit

Permalink
(MODULES-2655) Fix acceptance testing for SSLProtocol behaviour for real
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidS committed Oct 14, 2015
1 parent 3c953de commit 72df6f3
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions spec/acceptance/vhost_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -1345,11 +1345,13 @@ class { 'apache': }
pp = <<-EOS
class { 'apache': }
apache::vhost { 'test.server':
docroot => '/tmp',
docroot => '/tmp',
ssl => true,
ssl_protocol => ['All', '-SSLv2'],
}
apache::vhost { 'test2.server':
docroot => '/tmp',
docroot => '/tmp',
ssl => true,
ssl_protocol => 'All -SSLv2',
}
EOS
Expand All @@ -1358,12 +1360,12 @@ class { 'apache': }

describe file("#{$vhost_dir}/25-test.server.conf") do
it { is_expected.to be_file }
it { is_expected.to contain 'SSLProtocol All -SSLv2' }
it { is_expected.to contain 'SSLProtocol *All -SSLv2' }
end

describe file("#{$vhost_dir}/25-test2.server.conf") do
it { is_expected.to be_file }
it { is_expected.to contain 'SSLProtocol All -SSLv2' }
it { is_expected.to contain 'SSLProtocol *All -SSLv2' }
end
end
end

0 comments on commit 72df6f3

Please sign in to comment.