Skip to content

Commit

Permalink
add class selenium::service
Browse files Browse the repository at this point in the history
  • Loading branch information
Joshua Hoblitt committed Oct 1, 2013
1 parent dcf5ebf commit e0bc408
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 0 deletions.
30 changes: 30 additions & 0 deletions manifests/service.pp
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,
}

}
16 changes: 16 additions & 0 deletions spec/classes/selenium_service_spec.rb
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

0 comments on commit e0bc408

Please sign in to comment.