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:
|
2022-08-25 17:12:53 +00:00
|
|
|
/mnt/root:
|
2022-10-21 13:59:51 +00:00
|
|
|
/mnt/boot:
|
|
|
|
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-25 22:48:10 +00:00
|
|
|
/etc/os-release:
|
|
|
|
from: test/data/etc/os-release
|
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
|
2022-09-29 20:52:29 +00:00
|
|
|
- /data/apps.json.preloaded
|
2022-09-09 15:08:55 +00:00
|
|
|
- /mnt/root/tmp/balena-supervisor/**/*.lock
|
2022-10-21 13:59:51 +00:00
|
|
|
- /mnt/root/mnt/boot/splash/*.png
|