Skip to content

Commit

Permalink
set selenium user home to /var/lib/selenium
Browse files Browse the repository at this point in the history
  • Loading branch information
jhoblitt committed Aug 8, 2015
1 parent ad7e240 commit 80638ae
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 1 deletion.
1 change: 1 addition & 0 deletions manifests/init.pp
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
gid => $group,
system => true,
managehome => true,
home => '/var/lib/selenium'
}
}

Expand Down
10 changes: 10 additions & 0 deletions spec/acceptance/selenium_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
3 changes: 2 additions & 1 deletion spec/unit/classes/selenium_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 80638ae

Please sign in to comment.