diff --git a/manifests/install.pp b/manifests/install.pp index 9a98a4b..4cb79f6 100644 --- a/manifests/install.pp +++ b/manifests/install.pp @@ -71,7 +71,7 @@ wget::fetch { 'selenium-server-standalone': source => $jar_url, - destination => "${selenium::server::jar_path}/${jar_name}", + destination => "${jar_path}/${jar_name}", timeout => 30, execuser => $selenium::server::user, require => File[$jar_path], diff --git a/spec/classes/selenium_install_spec.rb b/spec/classes/selenium_install_spec.rb index c323a3b..9c6b8fa 100644 --- a/spec/classes/selenium_install_spec.rb +++ b/spec/classes/selenium_install_spec.rb @@ -32,7 +32,12 @@ 'owner' => 'root', 'group' => 'root', }) - should contain_wget__fetch('selenium-server-standalone') + should contain_wget__fetch('selenium-server-standalone').with({ + 'source' => 'https://selenium.googlecode.com/files/selenium-server-standalone-2.35.0.jar', + 'destination' => '/opt/selenium/jars/selenium-server-standalone-2.35.0.jar', + 'timeout' => '30', + 'execuser' => 'selenium', + }) end end