2022-08-19 20:07:33 +00:00
|
|
|
# This defines default configuration that
|
2022-08-22 23:54:21 +00:00
|
|
|
# should apply to all mocha-pod/testfs instances
|
2022-08-19 20:07:33 +00:00
|
|
|
testfs:
|
2022-08-22 23:54:21 +00:00
|
|
|
# These are test files that need to be configured
|
|
|
|
# for all tests. The `from` defines where to find
|
|
|
|
# them in the local source. These can be overriden
|
|
|
|
# in the `testfs` configuration.
|
2022-08-19 20:07:33 +00:00
|
|
|
filesystem:
|
2023-02-21 06:11:27 +00:00
|
|
|
/mnt/boot:
|
|
|
|
os-release:
|
2022-08-25 22:48:10 +00:00
|
|
|
from: test/data/etc/os-release
|
2023-02-21 06:11:27 +00:00
|
|
|
config.json:
|
|
|
|
from: test/data/testconfig.json
|
|
|
|
config.txt:
|
|
|
|
from: test/data/mnt/boot/config.txt
|
|
|
|
device-type.json:
|
|
|
|
from: test/data/mnt/boot/device-type.json
|
2022-08-22 23:54:21 +00:00
|
|
|
# The `keep` list defines files that already exist in the
|
|
|
|
# filesystem and need to be backed up before setting up the test environment
|
|
|
|
keep: []
|
|
|
|
# The `cleanup` list defines files created by the tests that need to be removed
|
|
|
|
# when restoring the filesystem
|
2022-08-19 20:07:33 +00:00
|
|
|
cleanup:
|
|
|
|
- /data/database.sqlite
|
2023-02-21 06:46:15 +00:00
|
|
|
- /mnt/data/apps.json.preloaded
|
2022-09-09 15:08:55 +00:00
|
|
|
- /mnt/root/tmp/balena-supervisor/**/*.lock
|
2023-02-21 06:11:27 +00:00
|
|
|
- /mnt/boot/splash/*.png
|