-
Notifications
You must be signed in to change notification settings - Fork 49
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Joshua Hoblitt
committed
Oct 1, 2013
1 parent
dcf5ebf
commit e0bc408
Showing
2 changed files
with
46 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
# == Class: selenium::service | ||
# | ||
# This class controls the selenium daemon / system service. | ||
# | ||
# | ||
# === Parameters | ||
# | ||
# Accepts no parameters. | ||
# | ||
# | ||
# === Examples | ||
# | ||
# class{ 'selenium::service': } | ||
# | ||
# | ||
# === Authors | ||
# | ||
# Joshua Hoblitt <[email protected]> | ||
# | ||
# | ||
class selenium::service inherits selenium::server { | ||
|
||
service { 'selenium': | ||
ensure => running, | ||
hasstatus => true, | ||
hasrestart => true, | ||
enable => true, | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
require 'spec_helper' | ||
|
||
describe 'selenium::service' do | ||
let(:title) { 'redhat' } | ||
let(:facts) {{ :osfamily=> 'RedHat' }} | ||
|
||
it do | ||
should contain_service('selenium').with({ | ||
:ensure => 'running', | ||
:hasstatus => 'true', | ||
:hasrestart => 'true', | ||
:enable => 'true', | ||
}) | ||
end | ||
|
||
end |