File tree Expand file tree Collapse file tree 3 files changed +48
-3
lines changed
integration/windows/controls Expand file tree Collapse file tree 3 files changed +48
-3
lines changed Original file line number Diff line number Diff line change @@ -64,14 +64,14 @@ packages:
6464
6565 chocolatey :
6666 wanted :
67- firefox :
68- install_args : " l=fr-FR "
67+ Firefox :
68+ package_args : " /l:en-GB "
6969 packagename :
7070 version : ' 12.04'
7171 source : ' mychocolatey/source'
7272 force : true
7373 unwanted :
74- - googlechrome
74+ - GoogleChrome
7575
7676 snaps :
7777 wanted :
Original file line number Diff line number Diff line change 1+ # frozen_string_literal: true
2+
3+ pkgs_wanted = %w[ Firefox jq notepadplusplus ]
4+ pkgs_unwanted = %w[ GoogleChrome hg ]
5+
6+ ### WANTED
7+ control 'Wanted packages' do
8+ title 'should be installed'
9+
10+ pkgs_wanted . each do |p |
11+ describe chocolatey_package ( p ) do
12+ it { should be_installed }
13+ end
14+ end
15+ end
16+
17+ ### UNWANTED
18+ control 'Unwanted packages' do
19+ title 'should be uninstalled'
20+
21+ pkgs_unwanted . each do |p |
22+ describe chocolatey_package ( p ) do
23+ it { should_not be_installed }
24+ end
25+ end
26+ end
Original file line number Diff line number Diff line change 1+ # -*- coding: utf-8 -*-
2+ # vim: ft=yaml
3+ ---
4+ packages :
5+ chocolatey :
6+ required :
7+ pkgs : []
8+ wanted :
9+ Firefox :
10+ package_args : " /l:en-GB"
11+ jq :
12+ version : ' 1.5'
13+ # `1.6` already installed on the pre-salted image
14+ force : true
15+ notepadplusplus :
16+ version : ' 7.8.8'
17+ unwanted :
18+ - GoogleChrome
19+ - hg
You can’t perform that action at this time.
0 commit comments