@@ -13,34 +13,14 @@ Describe "choco headers tests" -Tag Chocolatey, HeadersFeature {
13
13
CommandArguments = ' config' , ' list'
14
14
ExpectedHeaders = ' Name|Value|Description'
15
15
}
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
- }
28
16
@ {
29
17
CommandArguments = ' outdated' , ' --ignore-unfound' , ' --ignore-pinned'
30
18
ExpectedHeaders = ' Id|Version|AvailableVersion|Pinned'
31
19
}
32
- @ {
33
- CommandArguments = ' pin' , ' list'
34
- ExpectedHeaders = ' Id|Version'
35
- }
36
20
@ {
37
21
CommandArguments = ' rule' , ' list'
38
22
ExpectedHeaders = ' Severity|Id|Summary|HelpUrl'
39
23
}
40
- @ {
41
- CommandArguments = ' search' , ' windirstat'
42
- ExpectedHeaders = ' Id|Version'
43
- }
44
24
@ {
45
25
CommandArguments = ' source' , ' list'
46
26
ExpectedHeaders = ' Name|Source|Disabled|UserName|Certificate|Priority|BypassProxy|AllowSelfService|AdminOnly'
@@ -57,6 +37,37 @@ Describe "choco headers tests" -Tag Chocolatey, HeadersFeature {
57
37
ExpectedHeaders = ' Name|Type|ExpirationDate|NodeCount'
58
38
}
59
39
}
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
+ }
60
71
}
61
72
BeforeAll {
62
73
Initialize-ChocolateyTestInstall
0 commit comments