-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtests.yaml
More file actions
91 lines (88 loc) · 2.7 KB
/
tests.yaml
File metadata and controls
91 lines (88 loc) · 2.7 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
schemaVersion: '2.0.0'
fileExistenceTests:
## ini files
- name: 'Check swoole ini'
path: /usr/local/etc/php/conf.d/swoole.ini
shouldExist: true
- name: 'Check redis ini'
path: /usr/local/etc/php/conf.d/redis.ini
shouldExist: true
- name: 'Check imagick ini'
path: /usr/local/etc/php/conf.d/imagick.ini
shouldExist: true
- name: 'Check yaml ini'
path: /usr/local/etc/php/conf.d/yaml.ini
shouldExist: true
- name: 'Check scrypt ini'
path: /usr/local/etc/php/conf.d/scrypt.ini
shouldExist: true
- name: 'Check zstd ini'
path: /usr/local/etc/php/conf.d/zstd.ini
shouldExist: true
- name: 'Check brotli ini'
path: /usr/local/etc/php/conf.d/brotli.ini
shouldExist: true
- name: 'Check lz4 ini'
path: /usr/local/etc/php/conf.d/lz4.ini
shouldExist: true
- name: 'Check snappy ini'
path: /usr/local/etc/php/conf.d/snappy.ini
shouldExist: true
- name: 'Check mongodb ini'
path: /usr/local/etc/php/conf.d/mongodb.ini
shouldExist: true
fileContentTests:
- name: 'swoole ini'
path: '/usr/local/etc/php/conf.d/swoole.ini'
expectedContents: ['extension=swoole.so']
- name: 'redis ini'
path: '/usr/local/etc/php/conf.d/redis.ini'
expectedContents: ['extension=redis.so']
- name: 'imagick ini'
path: '/usr/local/etc/php/conf.d/imagick.ini'
expectedContents: ['extension=imagick.so']
- name: 'yaml ini'
path: '/usr/local/etc/php/conf.d/yaml.ini'
expectedContents: ['extension=yaml.so']
- name: 'scrypt ini'
path: '/usr/local/etc/php/conf.d/scrypt.ini'
expectedContents: ['extension=scrypt.so']
- name: 'zstd ini'
path: '/usr/local/etc/php/conf.d/zstd.ini'
expectedContents: ['extension=zstd.so']
- name: 'brotli ini'
path: '/usr/local/etc/php/conf.d/brotli.ini'
expectedContents: ['extension=brotli.so']
- name: 'lz4 ini'
path: '/usr/local/etc/php/conf.d/lz4.ini'
expectedContents: ['extension=lz4.so']
- name: 'snappy ini'
path: '/usr/local/etc/php/conf.d/snappy.ini'
expectedContents: ['extension=snappy.so']
- name: 'mongodb ini'
path: '/usr/local/etc/php/conf.d/mongodb.ini'
expectedContents: ['extension=mongodb.so']
commandTests:
- name: 'Imagemagick command'
command: "magick"
args: ["--version"]
expectedOutput: [".*ImageMagick 7.1.*"]
- name: 'rsync command'
command: "rsync"
args: ["--version"]
expectedOutput: ["rsync version 3.*"]
- name: 'PHP info'
command: "php"
args: ["-m"]
expectedOutput:
- ".*imagick.*"
- ".*swoole.*"
- ".*redis.*"
- ".*yaml.*"
- ".*scrypt.*"
- ".*curl.*"
- ".*zstd.*"
- ".*brotli.*"
- ".*lz4.*"
- ".*snappy.*"
- ".*mongodb.*"