-
Notifications
You must be signed in to change notification settings - Fork 0
/
cst_config.yaml
50 lines (47 loc) · 1.11 KB
/
cst_config.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
schemaVersion: '2.0.0' # CST Schema Version
# Test if OS and Python Packages Installed
commandTests:
- name: 'apt-get'
command: 'apt-get'
args: ['help']
excludedError: ['.*FAIL.*']
expectedOutput: ['.*Usage.*']
- name: 'git'
command: 'dpkg'
args: ['-s','git']
excludedError: ['.*FAIL.*']
expectedOutput: ['.*install ok installed.*']
- name: 'pylint'
command: 'dpkg'
args: ['-s','pylint']
excludedError: ['.*FAIL.*']
expectedOutput: ['.*install ok installed.*']
- name: 'pip3'
command: 'pip3'
args: ['help']
excludedError: ['.*FAIL.*']
expectedOutput: ['.*Usage.*']
- name: 'python'
command: 'python'
args: ['--version']
expectedOutput: ['.*Python 3.*']
- name: 'python3'
command: 'python3'
args: ['container-tests/check_installed_py_packages.py']
excludedError: ['.*FAIL.*']
expectedOutput: ['.*SUCCESS.*']
- name: 'ipython'
command: 'ipython'
expectedOutput: ['.*IPython.*']
# Test if needed files exist
fileExistenceTests:
- name: 'Root'
path: '/'
shouldExist: true
uid: 0
gid: 0
- name: 'Python Requirements'
path: '/requirements.txt'
shouldExist: true
uid: 0
gid: 0