Skip to content

Commit

Permalink
make selenium user/group "system" accounts
Browse files Browse the repository at this point in the history
  • Loading branch information
jhoblitt committed Aug 8, 2015
1 parent 44d05e7 commit ad7e240
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
2 changes: 2 additions & 0 deletions manifests/init.pp
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,15 @@
if $manage_user {
user { $user:
gid => $group,
system => true,
managehome => true,
}
}

if $manage_group {
group { $group:
ensure => present,
system => true,
}
}

Expand Down
10 changes: 8 additions & 2 deletions spec/unit/classes/selenium_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,14 @@
path_version = p[:version].match(/^(\d+\.\d+)\./)[1]

it do
should contain_user(p[:user]).with_gid(p[:group])
should contain_group(p[:group])
should contain_user(p[:user]).with(
:gid => p[:group],
:system => true,
:managehome => true
)
should contain_group(p[:group]).with(
:system => true
)
should contain_class('wget')
should contain_class('selenium').with_version(p[:version])
should contain_file("#{p[:install_root]}").with({
Expand Down

0 comments on commit ad7e240

Please sign in to comment.