@@ -13,34 +13,14 @@ Describe "choco headers tests" -Tag Chocolatey, HeadersFeature {
1313 CommandArguments = ' config' , ' list'
1414 ExpectedHeaders = ' Name|Value|Description'
1515 }
16- @ {
17- CommandArguments = ' feature' , ' list'
18- ExpectedHeaders = ' Name|Enabled|Description'
19- }
20- @ {
21- CommandArguments = ' info' , ' chocolatey' , ' --local-only' , ' --pre'
22- ExpectedHeaders = ' Id|Version'
23- }
24- @ {
25- CommandArguments = ' list'
26- ExpectedHeaders = ' Id|Version'
27- }
2816 @ {
2917 CommandArguments = ' outdated' , ' --ignore-unfound' , ' --ignore-pinned'
3018 ExpectedHeaders = ' Id|Version|AvailableVersion|Pinned'
3119 }
32- @ {
33- CommandArguments = ' pin' , ' list'
34- ExpectedHeaders = ' Id|Version'
35- }
3620 @ {
3721 CommandArguments = ' rule' , ' list'
3822 ExpectedHeaders = ' Severity|Id|Summary|HelpUrl'
3923 }
40- @ {
41- CommandArguments = ' search' , ' windirstat'
42- ExpectedHeaders = ' Id|Version'
43- }
4424 @ {
4525 CommandArguments = ' source' , ' list'
4626 ExpectedHeaders = ' Name|Source|Disabled|UserName|Certificate|Priority|BypassProxy|AllowSelfService|AdminOnly'
@@ -57,6 +37,37 @@ Describe "choco headers tests" -Tag Chocolatey, HeadersFeature {
5737 ExpectedHeaders = ' Name|Type|ExpirationDate|NodeCount'
5838 }
5939 }
40+
41+ # Since the concept of including a header row has _not_ yet been added to
42+ # Chocolatey Licensed Extension, when running tests when it is installed
43+ # will fail, as the header rows will not be output correctly. Until a new
44+ # release of Licensed Extension is made (the currently released version is
45+ # 6.3.1), we can only run the following tests when running open source
46+ # Chocolatey CLI.
47+ if (-Not $isLicensed ) {
48+ $Commands += @ (
49+ @ {
50+ CommandArguments = ' feature' , ' list'
51+ ExpectedHeaders = ' Name|Enabled|Description'
52+ }
53+ @ {
54+ CommandArguments = ' info' , ' chocolatey' , ' --local-only' , ' --pre'
55+ ExpectedHeaders = ' Id|Version'
56+ }
57+ @ {
58+ CommandArguments = ' list'
59+ ExpectedHeaders = ' Id|Version'
60+ }
61+ @ {
62+ CommandArguments = ' pin' , ' list'
63+ ExpectedHeaders = ' Id|Version'
64+ }
65+ @ {
66+ CommandArguments = ' search' , ' windirstat'
67+ ExpectedHeaders = ' Id|Version'
68+ }
69+ )
70+ }
6071 }
6172 BeforeAll {
6273 Initialize-ChocolateyTestInstall
0 commit comments