Loading spec/defines/postfix_conffile_spec.rb +0 −14 Original line number Diff line number Diff line Loading @@ -13,20 +13,6 @@ describe 'postfix::conffile' do facts end context 'when passing wrong type for ensure' do let(:params) do { ensure: ['present'], } end it 'fails' do expect do is_expected.to contain_file('postfix conffile foo') end.to raise_error end end context 'when passing wrong value for ensure' do let(:params) do { Loading spec/defines/postfix_config_spec.rb +1 −30 Original line number Diff line number Diff line Loading @@ -23,36 +23,7 @@ describe 'postfix::config' do it 'fails' do expect do is_expected.to contain_augeas("set postfix 'foo'") end.to raise_error end end context 'when passing wrong type for value' do let(:params) do { value: ['bar'], } end it 'fails' do expect do is_expected.to contain_augeas("set postfix 'foo'") end.to raise_error end end context 'when passing wrong type for ensure' do let(:params) do { value: 'bar', ensure: ['present'], } end it 'fails' do expect do is_expected.to contain_augeas("set postfix 'foo'") end.to raise_error end.to raise_error(Puppet::Error, %r{can not be empty if ensure = present}) end end Loading spec/defines/postfix_hash_spec.rb +0 −14 Original line number Diff line number Diff line Loading @@ -13,20 +13,6 @@ describe 'postfix::hash' do facts end context 'when passing wrong type for ensure' do let(:params) do { ensure: ['present'], } end it 'fails' do expect do is_expected.to contain_file('/tmp/foo') end.to raise_error end end context 'when passing wrong value for ensure' do let(:params) do { Loading spec/defines/postfix_map_spec.rb +0 −14 Original line number Diff line number Diff line Loading @@ -20,20 +20,6 @@ describe 'postfix::map' do facts end context 'when passing wrong type for ensure' do let(:params) do { ensure: ['present'], } end it 'fails' do expect do is_expected.to contain_file('postfix map foo') end.to raise_error end end context 'when passing wrong value for ensure' do let(:params) do { Loading spec/defines/postfix_transport_spec.rb +0 −59 Original line number Diff line number Diff line Loading @@ -24,50 +24,6 @@ describe 'postfix::transport' do puppetversion: Puppet.version) end context 'when sending wrong type for destination' do let(:params) do { destination: ['bar'], } end it 'fails' do expect do is_expected.to contain_augeas('Postfix transport - foo') end.to raise_error end end context 'when sending wrong type for nexthop' do let(:params) do { destination: 'bar', nexthop: ['baz'], } end it 'fails' do expect do is_expected.to contain_augeas('Postfix transport - foo') end.to raise_error end end context 'when sending wrong type for file' do let(:params) do { destination: 'bar', file: ['baz'], } end it 'fails' do expect do is_expected.to contain_augeas('Postfix transport - foo') end.to raise_error end end context 'when sending wrong value for file' do let(:params) do { Loading @@ -83,21 +39,6 @@ describe 'postfix::transport' do end end context 'when sending wrong type for ensure' do let(:params) do { destination: 'bar', ensure: ['baz'], } end it 'fails' do expect do is_expected.to contain_augeas('Postfix transport - foo') end.to raise_error end end context 'when sending wrong value for ensure' do let(:params) do { Loading Loading
spec/defines/postfix_conffile_spec.rb +0 −14 Original line number Diff line number Diff line Loading @@ -13,20 +13,6 @@ describe 'postfix::conffile' do facts end context 'when passing wrong type for ensure' do let(:params) do { ensure: ['present'], } end it 'fails' do expect do is_expected.to contain_file('postfix conffile foo') end.to raise_error end end context 'when passing wrong value for ensure' do let(:params) do { Loading
spec/defines/postfix_config_spec.rb +1 −30 Original line number Diff line number Diff line Loading @@ -23,36 +23,7 @@ describe 'postfix::config' do it 'fails' do expect do is_expected.to contain_augeas("set postfix 'foo'") end.to raise_error end end context 'when passing wrong type for value' do let(:params) do { value: ['bar'], } end it 'fails' do expect do is_expected.to contain_augeas("set postfix 'foo'") end.to raise_error end end context 'when passing wrong type for ensure' do let(:params) do { value: 'bar', ensure: ['present'], } end it 'fails' do expect do is_expected.to contain_augeas("set postfix 'foo'") end.to raise_error end.to raise_error(Puppet::Error, %r{can not be empty if ensure = present}) end end Loading
spec/defines/postfix_hash_spec.rb +0 −14 Original line number Diff line number Diff line Loading @@ -13,20 +13,6 @@ describe 'postfix::hash' do facts end context 'when passing wrong type for ensure' do let(:params) do { ensure: ['present'], } end it 'fails' do expect do is_expected.to contain_file('/tmp/foo') end.to raise_error end end context 'when passing wrong value for ensure' do let(:params) do { Loading
spec/defines/postfix_map_spec.rb +0 −14 Original line number Diff line number Diff line Loading @@ -20,20 +20,6 @@ describe 'postfix::map' do facts end context 'when passing wrong type for ensure' do let(:params) do { ensure: ['present'], } end it 'fails' do expect do is_expected.to contain_file('postfix map foo') end.to raise_error end end context 'when passing wrong value for ensure' do let(:params) do { Loading
spec/defines/postfix_transport_spec.rb +0 −59 Original line number Diff line number Diff line Loading @@ -24,50 +24,6 @@ describe 'postfix::transport' do puppetversion: Puppet.version) end context 'when sending wrong type for destination' do let(:params) do { destination: ['bar'], } end it 'fails' do expect do is_expected.to contain_augeas('Postfix transport - foo') end.to raise_error end end context 'when sending wrong type for nexthop' do let(:params) do { destination: 'bar', nexthop: ['baz'], } end it 'fails' do expect do is_expected.to contain_augeas('Postfix transport - foo') end.to raise_error end end context 'when sending wrong type for file' do let(:params) do { destination: 'bar', file: ['baz'], } end it 'fails' do expect do is_expected.to contain_augeas('Postfix transport - foo') end.to raise_error end end context 'when sending wrong value for file' do let(:params) do { Loading @@ -83,21 +39,6 @@ describe 'postfix::transport' do end end context 'when sending wrong type for ensure' do let(:params) do { destination: 'bar', ensure: ['baz'], } end it 'fails' do expect do is_expected.to contain_augeas('Postfix transport - foo') end.to raise_error end end context 'when sending wrong value for ensure' do let(:params) do { Loading