Skip to content

Commit

Permalink
Add test for windows package
Browse files Browse the repository at this point in the history
  • Loading branch information
chefsalim committed Jul 29, 2015
1 parent f65e608 commit 8dcec6a
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .kitchen.yml
Expand Up @@ -45,4 +45,8 @@ suites:
- name: certificate
run_list:
- recipe[windows::default]
- recipe[minimal::certificate]
- recipe[minimal::certificate]
- name: package
run_list:
- recipe[windows::default]
- recipe[minimal::package]
10 changes: 10 additions & 0 deletions test/cookbooks/minimal/recipes/package.rb
@@ -0,0 +1,10 @@
remote_file 'C:\\Firefox Setup 5.0.exe' do
source 'http://archive.mozilla.org/pub/mozilla.org/mozilla.org/firefox/releases/5.0/win32/en-US/Firefox%20Setup%205.0.exe'
end

windows_package 'Mozilla Firefox 5.0 (x86 en-US)' do
source 'file:///C:/Firefox Setup 5.0.exe'
options '-ms'
installer_type :custom
action :install
end
11 changes: 11 additions & 0 deletions test/integration/package/pester/minimal.package.Tests.ps1
@@ -0,0 +1,11 @@
$global:progressPreference = 'SilentlyContinue'

describe 'minimal::package' {
context 'minimal_package' {

it "task 'task_for_system' was created" {
Test-Path "C:\Program Files (x86)\Mozilla Firefox\firefox.exe" | Should Be True
}
}
}

0 comments on commit 8dcec6a

Please sign in to comment.