-
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.
add $display param to class selenium::server
Selects the X display to use
- Loading branch information
Joshua Hoblitt
committed
Oct 1, 2013
1 parent
68d1861
commit 45e77c2
Showing
5 changed files
with
43 additions
and
15 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
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
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 |
---|---|---|
@@ -1,16 +1,26 @@ | ||
require 'spec_helper' | ||
|
||
describe 'selenium::config' do | ||
describe 'selenium::config', :type => :class do | ||
let(:title) { 'redhat' } | ||
let(:facts) {{ :osfamily=> 'RedHat' }} | ||
let :pre_condition do | ||
"class { 'selenium::server': display => 'foo' }" | ||
end | ||
|
||
it do | ||
should contain_file('/etc/init.d/selenium').with({ | ||
'ensure' => 'file', | ||
'owner' => 'root', | ||
'group' => 'root', | ||
'mode' => '0755', | ||
}).with_content(/selenium-server-standalone/) | ||
context 'no params' do | ||
it do | ||
should contain_class('selenium::config') | ||
should contain_file('/etc/init.d/selenium').with({ | ||
'ensure' => 'file', | ||
'owner' => 'root', | ||
'group' => 'root', | ||
'mode' => '0755', | ||
}). | ||
with_content(/selenium-server-standalone/). | ||
with_content(/SLNM_INSTALL_PATH=\/opt\/selenium/) | ||
with_content(/SLNM_DISPLAY=:0/) | ||
with_content(/SLNM_USER=selenium/) | ||
end | ||
end | ||
|
||
end |
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
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