Skip to content

Commit

Permalink
Drop deprecated apache_pw_hash, apache::apache_pw_hash and bool2httpd
Browse files Browse the repository at this point in the history
  • Loading branch information
ekohl committed Jan 2, 2024
1 parent 4b316af commit f6d1e13
Show file tree
Hide file tree
Showing 5 changed files with 2 additions and 62 deletions.
12 changes: 0 additions & 12 deletions lib/puppet/functions/apache/apache_pw_hash.rb

This file was deleted.

12 changes: 0 additions & 12 deletions lib/puppet/functions/apache_pw_hash.rb

This file was deleted.

12 changes: 0 additions & 12 deletions lib/puppet/functions/bool2httpd.rb

This file was deleted.

12 changes: 1 addition & 11 deletions spec/functions/bool2httpd_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

require 'spec_helper'

shared_examples 'apache::bool2httpd function' do
describe 'apache::bool2httpd' do
it { is_expected.not_to eq(nil) }
it { is_expected.to run.with_params.and_raise_error(ArgumentError) }
it { is_expected.to run.with_params('1', '2').and_raise_error(ArgumentError) }
Expand All @@ -25,13 +25,3 @@
it { is_expected.to run.with_params(:undef).and_return('Off') }
it { is_expected.to run.with_params('foo').and_return('foo') }
end

describe 'apache::bool2httpd' do
it_behaves_like 'apache::bool2httpd function'

describe 'deprecated non-namespaced shim' do
describe 'bool2httpd', type: :puppet_function do
it_behaves_like 'apache::bool2httpd function'
end
end
end
16 changes: 1 addition & 15 deletions spec/functions/pw_hash_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

require 'spec_helper'

shared_examples 'apache::pw_hash function' do
describe 'apache::pw_hash' do
it { is_expected.not_to eq(nil) }
it { is_expected.to run.with_params.and_raise_error(ArgumentError) }
it { is_expected.to run.with_params('').and_raise_error(ArgumentError) }
Expand All @@ -12,17 +12,3 @@
it { is_expected.to run.with_params([]).and_raise_error(ArgumentError) }
it { is_expected.to run.with_params('test').and_return('{SHA}qUqP5cyxm6YcTAhz05Hph5gvu9M=') }
end

describe 'apache::pw_hash' do
it_behaves_like 'apache::pw_hash function'

describe 'deprecated shims' do
describe 'apache_pw_hash', type: :puppet_function do
it_behaves_like 'apache::pw_hash function'
end

describe 'apache::apache_pw_hash', type: :puppet_function do
it_behaves_like 'apache::pw_hash function'
end
end
end

0 comments on commit f6d1e13

Please sign in to comment.