-
Notifications
You must be signed in to change notification settings - Fork 3
/
structure-test.yaml
74 lines (74 loc) · 1.86 KB
/
structure-test.yaml
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
schemaVersion: 2.0.0
commandTests:
- name: run
command: /kubegraph
exitCode: 1
expectedError: ['Error: accepts [0-9] arg\(s\), received 0', 'Usage:']
fileExistenceTests:
- name: binary
path: /kubegraph
shouldExist: true
permissions: -rwxr-xr-x
uid: 10001
gid: 10001
isExecutableBy: any
- name: group
path: /etc/group
shouldExist: true
permissions: -rw-r--r--
uid: 0
gid: 0
- name: passwd
path: /etc/passwd
shouldExist: true
permissions: -rw-r--r--
uid: 0
gid: 0
fileContentTests:
- name: group file
path: /etc/group
expectedContents: ['kubegraph:x:10001:.*']
excludedContents: ['root:.*']
- name: passwd file
path: /etc/passwd
expectedContents: ['kubegraph:x:10001:10001::/:/dev/null']
excludedContents: ['root:.*']
metadataTest:
entrypoint: ["/kubegraph"]
cmd: []
labels:
- key: org.opencontainers.image.title
value: kubegraph
- key: org.opencontainers.image.description
value: Kubernetes resource graph generator
- key: org.opencontainers.image.url
value: 'https://.+'
isRegex: true
- key: org.opencontainers.image.source
value: 'https://.+'
isRegex: true
- key: org.opencontainers.image.version
# yamllint disable-line rule:line-length
value: '^\d{1}\.\d{1}\.\d{1}(-[\w\d-]+(\.[\w\d]+)*?)?(\+[\w\d-]+)?$|^pr-\d+$|^(master)$'
isRegex: true
- key: org.opencontainers.image.created
value: '^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d{3})?Z$'
isRegex: true
- key: org.opencontainers.image.revision
value: '^[\w-.]+$'
isRegex: true
- key: org.opencontainers.image.licenses
value: MIT
- key: org.opencontainers.image.documentation
value: 'https://.+'
isRegex: true
- key: org.opencontainers.image.authors
value: '.+'
isRegex: true
- key: org.opencontainers.image.vendor
value: '.+'
isRegex: true
env: []
exposedPorts: []
volumes: []
workdir: "/"