File tree 5 files changed +2
-62
lines changed
5 files changed +2
-62
lines changed Load Diff This file was deleted.
Load Diff This file was deleted.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 2
2
3
3
require 'spec_helper'
4
4
5
- shared_examples 'apache::bool2httpd function ' do
5
+ describe 'apache::bool2httpd' do
6
6
it { is_expected . not_to eq ( nil ) }
7
7
it { is_expected . to run . with_params . and_raise_error ( ArgumentError ) }
8
8
it { is_expected . to run . with_params ( '1' , '2' ) . and_raise_error ( ArgumentError ) }
25
25
it { is_expected . to run . with_params ( :undef ) . and_return ( 'Off' ) }
26
26
it { is_expected . to run . with_params ( 'foo' ) . and_return ( 'foo' ) }
27
27
end
28
-
29
- describe 'apache::bool2httpd' do
30
- it_behaves_like 'apache::bool2httpd function'
31
-
32
- describe 'deprecated non-namespaced shim' do
33
- describe 'bool2httpd' , type : :puppet_function do
34
- it_behaves_like 'apache::bool2httpd function'
35
- end
36
- end
37
- end
Original file line number Diff line number Diff line change 2
2
3
3
require 'spec_helper'
4
4
5
- shared_examples 'apache::pw_hash function ' do
5
+ describe 'apache::pw_hash' do
6
6
it { is_expected . not_to eq ( nil ) }
7
7
it { is_expected . to run . with_params . and_raise_error ( ArgumentError ) }
8
8
it { is_expected . to run . with_params ( '' ) . and_raise_error ( ArgumentError ) }
12
12
it { is_expected . to run . with_params ( [ ] ) . and_raise_error ( ArgumentError ) }
13
13
it { is_expected . to run . with_params ( 'test' ) . and_return ( '{SHA}qUqP5cyxm6YcTAhz05Hph5gvu9M=' ) }
14
14
end
15
-
16
- describe 'apache::pw_hash' do
17
- it_behaves_like 'apache::pw_hash function'
18
-
19
- describe 'deprecated shims' do
20
- describe 'apache_pw_hash' , type : :puppet_function do
21
- it_behaves_like 'apache::pw_hash function'
22
- end
23
-
24
- describe 'apache::apache_pw_hash' , type : :puppet_function do
25
- it_behaves_like 'apache::pw_hash function'
26
- end
27
- end
28
- end
You can’t perform that action at this time.
0 commit comments