File tree Expand file tree Collapse file tree 5 files changed +2
-62
lines changed Expand file tree Collapse file tree 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 22
33require 'spec_helper'
44
5- shared_examples 'apache::bool2httpd function ' do
5+ describe 'apache::bool2httpd' do
66 it { is_expected . not_to eq ( nil ) }
77 it { is_expected . to run . with_params . and_raise_error ( ArgumentError ) }
88 it { is_expected . to run . with_params ( '1' , '2' ) . and_raise_error ( ArgumentError ) }
2525 it { is_expected . to run . with_params ( :undef ) . and_return ( 'Off' ) }
2626 it { is_expected . to run . with_params ( 'foo' ) . and_return ( 'foo' ) }
2727end
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 22
33require 'spec_helper'
44
5- shared_examples 'apache::pw_hash function ' do
5+ describe 'apache::pw_hash' do
66 it { is_expected . not_to eq ( nil ) }
77 it { is_expected . to run . with_params . and_raise_error ( ArgumentError ) }
88 it { is_expected . to run . with_params ( '' ) . and_raise_error ( ArgumentError ) }
1212 it { is_expected . to run . with_params ( [ ] ) . and_raise_error ( ArgumentError ) }
1313 it { is_expected . to run . with_params ( 'test' ) . and_return ( '{SHA}qUqP5cyxm6YcTAhz05Hph5gvu9M=' ) }
1414end
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