Skip to content

Commit

Permalink
test(user+group): test for vault user/group existence
Browse files Browse the repository at this point in the history
  • Loading branch information
dafyddj committed Jul 8, 2019
1 parent f54879b commit b9e89a7
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions test/integration/prod_server/vault_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,16 @@
its(:stdout) { should match(/\/vault = cap_ipc_lock\+ep$/) }
end

describe user('vault') do
it { should exist }
its('group') { should eq 'vault' }
end

describe file('/etc/vault/conf.d/config.json') do
it { should be_a_file }
its('owner') { should eq 'root' }
its('group') { should eq 'vault' }
its('mode') { should cmp '0640' }
end

describe.one do
Expand Down

0 comments on commit b9e89a7

Please sign in to comment.