Skip to content

Commit

Permalink
Fixes #17 - Updating the location of the file download.
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewwippler committed May 26, 2017
1 parent 6ef0771 commit c9b3224
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions manifests/params.pp
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@
$allowed_hosts = []
$service_state = 'running'
$service_enable = true
$package_source_location = 'https://www.nsclient.org/files/stable'
$package_source_location = 'https://github.com/mickem/nscp/releases/download/0.5.1.28'
$package_name = 'NSClient++ (x64)'
$package_source = 'NSCP-0.4.1.101-x64.msi'
$package_source = 'NSCP-0.5.1.28-x64.msi'
$download_destination = 'c:/temp'
$config_template = 'nsclient/nsclient.ini.erb'
$install_path = 'C:\Program Files\NSClient++'
Expand Down
10 changes: 5 additions & 5 deletions spec/classes/nsclient_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
end
let(:params) do
{
package_source_location: 'http://files.nsclient.org/stable',
package_name: 'NSCP-0.4.1.101-x64.msi',
package_source_location: 'https://github.com/mickem/nscp/releases/download/0.5.1.28',
package_name: 'NSCP-0.5.1.28-x64.msi',
download_destination: 'c:/temp'
}
end
Expand All @@ -21,15 +21,15 @@
it { is_expected.to contain_class('nsclient::params') }
it do
is_expected.to contain_download_file('NSCP-Installer').with(
'url' => 'http://files.nsclient.org/stable/NSCP-0.4.1.101-x64.msi',
'url' => 'https://github.com/mickem/nscp/releases/download/0.5.1.28/NSCP-0.5.1.28-x64.msi',
'destination_directory' => 'c:/temp'
)
end
it do
is_expected.to contain_package('NSCP-0.4.1.101-x64.msi').with(
is_expected.to contain_package('NSCP-0.5.1.28-x64.msi').with(
'ensure' => 'installed',
'provider' => 'windows',
'source' => 'c:/temp/NSCP-0.4.1.101-x64.msi',
'source' => 'c:/temp/NSCP-0.5.1.28-x64.msi',
'require' => 'Download_file[NSCP-Installer]'
)
end
Expand Down

0 comments on commit c9b3224

Please sign in to comment.