forked from gitpod-io/workspace-images
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtool-nginx.yaml
More file actions
52 lines (52 loc) · 1.53 KB
/
tool-nginx.yaml
File metadata and controls
52 lines (52 loc) · 1.53 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
- desc: "it should have nginx installed"
command: [nginx -v]
entrypoint: [/bin/bash, -c]
assert:
- status == 0
- stderr.indexOf("nginx version") != -1
- desc: it should run php
command: [php, --version]
assert:
- status == 0
- stdout.indexOf("PHP 8") != -1
- desc: it should say hi
command: [sh, -c, 'echo ''<?php'' echo \''hi\'' ''?>'' | php']
assert:
- status == 0
- stdout == "hi"
- desc: it should have all modules
command: [sh, -c, "echo '<?php phpinfo(INFO_MODULES) ?>' | php"]
assert:
- stdout.indexOf("ctype\n") != -1
- stdout.indexOf("curl\n") != -1
- stdout.indexOf("date\n") != -1
- stdout.indexOf("gd\n") != -1
- stdout.indexOf("gettext\n") != -1
- stdout.indexOf("intl\n") != -1
- stdout.indexOf("json\n") != -1
- stdout.indexOf("mbstring\n") != -1
- stdout.indexOf("mysql\n") != -1
- stdout.indexOf("ftp\n") != -1
- stdout.indexOf("pgsql\n") != -1
- stdout.indexOf("sqlite3\n") != -1
- stdout.indexOf("tokenizer\n") != -1
- stdout.indexOf("xml\n") != -1
- stdout.indexOf("zip\n") != -1
- stdout.indexOf("bcmath\n") != -1
- desc: it should have valid configuration
command: [nginx, -T]
assert:
- status == 0
- stderr.indexOf("test is successful") != -1
- desc: "it should have composer installed"
command: [composer -v]
entrypoint: [/bin/bash, -c]
assert:
- status == 0
- stdout.indexOf("Composer version 2") != -1
- desc: "it should have apache2 installed"
command: [apache2 -v]
entrypoint: [/bin/bash, -c]
assert:
- status == 0
- stdout.indexOf("Apache") != -1