Skip to content

Commit

Permalink
mv service resource into selenium::config to prevent circular deps
Browse files Browse the repository at this point in the history
  • Loading branch information
Joshua Hoblitt committed Oct 2, 2013
1 parent ba59bb7 commit c96870b
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 12 deletions.
6 changes: 6 additions & 0 deletions manifests/config.pp
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,12 @@
group => 'root',
mode => '0755',
content => template("${module_name}/init.d/selenium.erb"),
} ->
service { $prog:
ensure => running,
hasstatus => true,
hasrestart => true,
enable => true,
}

}
6 changes: 0 additions & 6 deletions manifests/server.pp
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,6 @@
options => $options,
java => $selenium::java,
} ->
service { 'seleniumserver':
ensure => running,
hasstatus => true,
hasrestart => true,
enable => true,
} ->
Class[ 'selenium::server' ]

}
6 changes: 0 additions & 6 deletions spec/classes/selenium_server_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,6 @@
'display' => p[:display],
'options' => p[:options],
})
should contain_service('seleniumserver').with({
:ensure => 'running',
:hasstatus => 'true',
:hasrestart => 'true',
:enable => 'true',
})
should contain_class('selenium::server')
end
end
Expand Down
6 changes: 6 additions & 0 deletions spec/defines/selenium_config_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,12 @@
with_content(/SLNM_JAVA='#{p[:java]}'/).
with_content(/SLNM_LOG_NAME='#{title}'/).
with_content(/prog='selenium#{title}'/)
should contain_service("selenium#{title}").with({
:ensure => 'running',
:hasstatus => 'true',
:hasrestart => 'true',
:enable => 'true',
})
end
end

Expand Down

0 comments on commit c96870b

Please sign in to comment.