File tree 2 files changed +46
-0
lines changed
2 files changed +46
-0
lines changed Original file line number Diff line number Diff line change
1
+ # == Class: selenium::service
2
+ #
3
+ # This class controls the selenium daemon / system service.
4
+ #
5
+ #
6
+ # === Parameters
7
+ #
8
+ # Accepts no parameters.
9
+ #
10
+ #
11
+ # === Examples
12
+ #
13
+ # class{ 'selenium::service': }
14
+ #
15
+ #
16
+ # === Authors
17
+ #
18
+ # Joshua Hoblitt <[email protected] >
19
+ #
20
+ #
21
+ class selenium::service inherits selenium::server {
22
+
23
+ service { 'selenium' :
24
+ ensure => running ,
25
+ hasstatus => true ,
26
+ hasrestart => true ,
27
+ enable => true ,
28
+ }
29
+
30
+ }
Original file line number Diff line number Diff line change
1
+ require 'spec_helper'
2
+
3
+ describe 'selenium::service' do
4
+ let ( :title ) { 'redhat' }
5
+ let ( :facts ) { { :osfamily => 'RedHat' } }
6
+
7
+ it do
8
+ should contain_service ( 'selenium' ) . with ( {
9
+ :ensure => 'running' ,
10
+ :hasstatus => 'true' ,
11
+ :hasrestart => 'true' ,
12
+ :enable => 'true' ,
13
+ } )
14
+ end
15
+
16
+ end
You can’t perform that action at this time.
0 commit comments