-
-
Notifications
You must be signed in to change notification settings - Fork 581
Expand file tree
/
Copy path.container-structure-test-config.yaml
More file actions
142 lines (123 loc) · 2.26 KB
/
.container-structure-test-config.yaml
File metadata and controls
142 lines (123 loc) · 2.26 KB
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
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
schemaVersion: 2.0.0
commandTests:
- name: git
command: git
args:
- --version
expectedOutput:
- ^git version 2\.[0-9]+\.[0-9]+\n$
- name: pre-commit
command: pre-commit
args:
- -V
expectedOutput:
- ^pre-commit ([0-9]+\.){2}[0-9]+\n$
- name: gcc
command: gcc
args:
- --version
expectedOutput:
- ^gcc \(Alpine 14\.
- name: checkov
command: checkov
args:
- --version
expectedOutput:
- ^([0-9]+\.){2}[0-9]+\n$
- name: infracost
command: infracost
args:
- --version
expectedOutput:
- ^Infracost v([0-9]+\.){2}[0-9]+
- name: opentofu
command: tofu
args:
- --version
expectedOutput:
- ^OpenTofu v([0-9]+\.){2}[0-9]+\n
- name: terraform
command: terraform
args:
- --version
expectedOutput:
- ^Terraform v([0-9]+\.){2}[0-9]+\n
- name: terraform-docs
command: terraform-docs
args:
- --version
expectedOutput:
- ^terraform-docs version v([0-9]+\.){2}[0-9]+ [a-z0-9]+
- name: terragrunt
command: terragrunt
args:
- --version
expectedOutput:
- ^terragrunt version v([0-9]+\.){2}[0-9]+\n$
- name: terrascan
command: terrascan
args:
- version
expectedOutput:
- >-
^version: v([0-9]+\.){2}[0-9]+\n$
- name: tflint
command: tflint
args:
- --version
expectedOutput:
- TFLint version ([0-9]+\.){2}[0-9]+\n
- name: tfsec
command: tfsec
args:
- --version
expectedOutput:
- ([0-9]+\.){2}[0-9]+\n$
- name: trivy
command: trivy
args:
- --version
expectedOutput:
- >-
Version: ([0-9]+\.){2}[0-9]+\n
- name: tfupdate
command: tfupdate
args:
- --version
expectedOutput:
- ([0-9]+\.){2}[0-9]+\n$
- name: hcledit
command: hcledit
args:
- version
expectedOutput:
- ([0-9]+\.){2}[0-9]+\n$
- name: entrypoint.sh
envVars:
- key: USERID
value: 1000:1000
command: /entrypoint.sh
args:
- -V
expectedError:
- >-
^ERROR: uid:gid 1000:1000 lacks permissions to //\n$
exitCode: 1
- name: su-exec
command: su-exec
expectedOutput:
- >-
^Usage: su-exec user-spec command \[args\]\n$
- name: ssh
command: ssh
args:
- -V
expectedError:
- ^OpenSSH_10\.[0-9]+
fileExistenceTests:
- name: terrascan init
path: >-
/root/.terrascan/pkg/policies/opa/rego/github/github_repository/privateRepoEnabled.rego
shouldExist: true
uid: 0
gid: 0