diff --git a/manifests/init.pp b/manifests/init.pp index 72ff506..02720be 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -32,6 +32,7 @@ gid => $group, system => true, managehome => true, + home => '/var/lib/selenium' } } diff --git a/spec/acceptance/selenium_spec.rb b/spec/acceptance/selenium_spec.rb index 67461c7..4ebb4a0 100644 --- a/spec/acceptance/selenium_spec.rb +++ b/spec/acceptance/selenium_spec.rb @@ -43,4 +43,14 @@ class { 'selenium': } it { should be_grouped_into 'root' } it { should be_mode 444 } end + + describe user('selenium') do + it { should exist } + it { should belong_to_group 'selenium' } + it { should have_home_directory '/var/lib/selenium' } + end + + describe group('selenium') do + it { should exist } + end end diff --git a/spec/unit/classes/selenium_spec.rb b/spec/unit/classes/selenium_spec.rb index 03c79f0..67c998d 100644 --- a/spec/unit/classes/selenium_spec.rb +++ b/spec/unit/classes/selenium_spec.rb @@ -29,7 +29,8 @@ should contain_user(p[:user]).with( :gid => p[:group], :system => true, - :managehome => true + :managehome => true, + :home => '/var/lib/selenium' ) should contain_group(p[:group]).with( :system => true