Skip to content

Commit

Permalink
drop legacy tests
Browse files Browse the repository at this point in the history
  • Loading branch information
bastelfreak committed Jul 14, 2017
1 parent 444b4e7 commit 62ac72b
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 28 deletions.
6 changes: 0 additions & 6 deletions spec/classes/apache_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -563,12 +563,6 @@
it { is_expected.not_to contain_class('apache::mod::peruser') }
it { is_expected.not_to contain_class('apache::mod::prefork') }
end
context "when declaring mpm_module => breakme" do
let :params do
{ :mpm_module => 'breakme' }
end
it { expect { catalogue }.to raise_error Puppet::Error, /does not match/ }
end
end

describe "different templates for httpd.conf" do
Expand Down
6 changes: 0 additions & 6 deletions spec/classes/mod/passenger_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -68,12 +68,6 @@
end
it { is_expected.to contain_file('passenger.conf').with_content(/^ PassengerMaxRequests 20$/) }
end
describe "with passenger_spawn_method => bogus" do
let :params do
{ :passenger_spawn_method => 'bogus' }
end
it { is_expected.to raise_error(Puppet::Error, /not permitted for passenger_spawn_method/) }
end
describe "with passenger_spawn_method => direct" do
let :params do
{ :passenger_spawn_method => 'direct' }
Expand Down
16 changes: 0 additions & 16 deletions spec/classes/service_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -53,22 +53,6 @@
}
end

context "$service_enable must be a bool" do
let (:params) {{ :service_enable => 'not-a-boolean' }}

it 'should fail' do
expect { catalogue }.to raise_error(Puppet::Error, /is not a boolean/)
end
end

context "$service_manage must be a bool" do
let (:params) {{ :service_manage => 'not-a-boolean' }}

it 'should fail' do
expect { catalogue }.to raise_error(Puppet::Error, /is not a boolean/)
end
end

context "with $service_ensure => 'running'" do
let (:params) {{ :service_ensure => 'running', }}
it { is_expected.to contain_service("httpd").with(
Expand Down

0 comments on commit 62ac72b

Please sign in to comment.