generated from ministryofjustice/template-repository
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathcontainer-structure-test.yml
73 lines (61 loc) · 1.41 KB
/
container-structure-test.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
---
schemaVersion: 2.0.0
commandTests:
- name: "whoami"
command: "whoami"
expectedOutput: ["root"]
- name: "user"
command: "id"
args: ["-u", "root"]
expectedOutput: ["0"]
- name: "group"
command: "id"
args: ["-g", "root"]
expectedOutput: ["0"]
- name: "alpine"
command: "cat"
args: ["/etc/alpine-release"]
expectedOutput: ["3.20"]
- name: "ruby"
command: "ruby"
args: ["--version"]
expectedOutput: ["ruby 3.3.5"]
- name: "git"
command: "git"
args: ["--version"]
expectedOutput: ["git version 2.45.2"]
- name: "node"
command: "node"
args: ["--version"]
expectedOutput: ["v20.15.1"]
fileExistenceTests:
- name: "/opt/publisher/config.rb"
path: "/opt/publisher/config.rb"
shouldExist: true
uid: 0
gid: 0
permissions: "-rw-r--r--"
- name: "/opt/publisher/Gemfile"
path: "/opt/publisher/Gemfile"
shouldExist: true
uid: 0
gid: 0
permissions: "-rw-r--r--"
- name: "/opt/publisher/Gemfile.lock"
path: "/opt/publisher/Gemfile.lock"
shouldExist: true
uid: 0
gid: 0
permissions: "-rw-r--r--"
- name: "/usr/local/bin/package"
path: "/usr/local/bin/package"
shouldExist: true
uid: 0
gid: 0
permissions: "-rwxr-xr-x"
- name: "/usr/local/bin/preview"
path: "/usr/local/bin/preview"
shouldExist: true
uid: 0
gid: 0
permissions: "-rwxr-xr-x"