Skip to content

Commit

Permalink
Add tests for config_mode parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
jsok committed Mar 17, 2019
1 parent 971f4a6 commit fca168e
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions spec/classes/vault_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,16 @@
}
end

context 'when specifying config mode' do
let(:params) do
{
config_mode: '0700'
}
end

it { is_expected.to contain_file('/etc/vault/config.json').with_mode('0700') }
end

context 'when specifying an array of listeners' do
let(:params) do
{
Expand Down

0 comments on commit fca168e

Please sign in to comment.