From ff5cdf9068822b1f81c6b3beeea06b3c9eb2ba18 Mon Sep 17 00:00:00 2001 From: Dafydd Jones Date: Mon, 8 Jul 2019 19:15:14 +0100 Subject: [PATCH] test(user+group): test for vault user/group existence --- test/integration/prod_server/vault_spec.rb | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/test/integration/prod_server/vault_spec.rb b/test/integration/prod_server/vault_spec.rb index 15a4d5a..1eb2989 100644 --- a/test/integration/prod_server/vault_spec.rb +++ b/test/integration/prod_server/vault_spec.rb @@ -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