Commit 359954d7 authored by Jamie Tanna's avatar Jamie Tanna

Fix: manage a user's home directory

This allows us to have i.e. `/home/jamie` created when the user is
created, which means our integration tests succeed.
parent 0c881e50
Pipeline #8517378 passed with stage
in 1 minute and 18 seconds
......@@ -25,6 +25,7 @@ end
user "create user #{node['user']}" do
username node['user']
group node['group']
manage_home true
end
file 'creates the hello.txt file' do
......
......@@ -40,6 +40,7 @@ describe 'user-cookbook::default' do
expect(chef_run).to create_user('create user jamie')
.with(username: 'jamie')
.with(group: nil)
.with(manage_home: true)
end
it 'doesn\'t create the hello.txt file' do
......@@ -67,6 +68,7 @@ describe 'user-cookbook::default' do
expect(chef_run).to create_user('create user test')
.with(username: 'test')
.with(group: nil)
.with(manage_home: true)
end
it 'doesn\'t create the hello.txt file' do
......@@ -96,6 +98,7 @@ describe 'user-cookbook::default' do
expect(chef_run).to create_user('create user test')
.with(username: 'test')
.with(group: 'users')
.with(manage_home: true)
end
it 'doesn\'t create the hello.txt file' do
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment