-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.container-structure-test.yaml
More file actions
70 lines (66 loc) · 2.14 KB
/
.container-structure-test.yaml
File metadata and controls
70 lines (66 loc) · 2.14 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
schemaVersion: '2.0.0'
metadataTest:
env:
- key: PATH
value: /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
entrypoint: []
cmd: ["bash"]
exposedPorts: []
volumes: []
fileExistenceTests:
- name: 'FILE check docker-disable-recommends exists'
path: '/etc/apt/apt.conf.d/docker-disable-recommends'
shouldExist: true
permissions: '-rw-r--r--'
uid: 0
gid: 0
- name: 'check /usr/share/man/man1 exists'
path: '/usr/share/man/man1'
shouldExist: true
permissions: 'drwxr-xr-x'
uid: 0
gid: 0
- name: 'check /usr/share/man/man7 exists'
path: '/usr/share/man/man1'
shouldExist: true
permissions: 'drwxr-xr-x'
uid: 0
gid: 0
- name: 'check docker-install-requirements permissions'
path: '/usr/local/bin/docker-install-requirements'
shouldExist: true
permissions: '-rwxr-xr-x'
uid: 0
gid: 0
- name: 'check docker-layer-clean permissions'
path: '/usr/local/bin/docker-layer-clean'
shouldExist: true
permissions: '-rwxr-xr-x'
uid: 0
gid: 0
- name: 'check docker-package-download permissions'
path: '/usr/local/bin/docker-package-download'
shouldExist: true
permissions: '-rwxr-xr-x'
uid: 0
gid: 0
commandTests:
- name: "check docker-install-requirements is found in $PATH"
command: "which"
args: ["docker-install-requirements"]
expectedOutput: ['/usr/local/bin/docker-install-requirements']
- name: "check docker-layer-clean is found in $PATH"
command: "which"
args: ["docker-layer-clean"]
expectedOutput: ['/usr/local/bin/docker-layer-clean']
- name: "check docker-package-download is found in $PATH"
command: "which"
args: ["docker-package-download"]
expectedOutput: ['/usr/local/bin/docker-package-download']
fileContentTests:
- name: 'APT disable install recommends'
expectedContents: ['APT::Install-Recommends "false";']
path: '/etc/apt/apt.conf.d/docker-disable-recommends'
- name: 'APT debian stretch backports'
expectedContents: ['deb http://http.debian.net/debian stretch-backports main contrib non-free']
path: '/etc/apt/sources.list.d/stretch-backports.list'