forked from microsoft/PSRule
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPSRule.Tests.yml
98 lines (88 loc) · 1.71 KB
/
PSRule.Tests.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
# These are options for unit tests
repository:
url: 'https://github.com/microsoft/PSRule.UnitTest'
# Configure baseline
rule:
include:
- rule1
includeLocal: true
exclude:
- rule3
tag:
key1: value1
# Rule configuration
configuration:
option1: option
option2: 2
option3: [ 'option3a', 'option3b' ]
option4:
- location: 'East US'
zones: [ "1", "2", "3" ]
- location: 'Australia South East'
zones: [ ]
option5:
- option5a
- option5b
# Configure conventions
convention:
include:
- 'Convention1'
# Configure binding
binding:
field:
id:
- resourceId
ignoreCase: false
nameSeparator: '::'
preferTargetInfo: true
targetName:
- ResourceName
targetType:
- ResourceType
useQualifiedName: true
# Configure execution options
execution:
aliasReferenceWarning: false
languageMode: ConstrainedLanguage
inconclusiveWarning: false
notProcessedWarning: false
suppressedRuleWarning: false
invariantCultureWarning: false
# Configure input options
input:
format: Yaml
ignoreGitPath: false
ignoreObjectSource: true
ignoreRepositoryCommon: false
objectPath: items
pathIgnore:
- '*.Designer.cs'
targetType:
- virtualMachine
# Configure logging options
logging:
limitDebug:
- TestRule2
limitVerbose:
- TestRule2
ruleFail: Warning
rulePass: Warning
# Configure output options
output:
as: Summary
banner: Minimal
culture: [ 'en-CC' ]
encoding: UTF7
footer: RuleCount
format: Json
outcome: Pass
path: 'out/OutputPath.txt'
sarifProblemsOnly: false
style: GitHubActions
# Configure rule suppression
suppression:
SuppressionTest1:
targetName:
- TestObject1
- TestObject3
SuppressionTest2: [ 'TestObject1', 'TestObject3' ]