Unit tests can be run using
make check (via
External Kola tests can be found in the
tests/kola/server/ test directory contains tests that require access to a mock Cincinnati server. This test directory contains a Fedora CoreOS config that does the following:
- creates a
- sets up an HTTP server at
localhostlistening on port
80serving files from the
- configures Zincati to use
localhostas its Cincinnati base URL
- adds a systemd dropin to set Zincati’s journal log verbosity to max (
Tests place mock release graphs in
/var/www/ for Zincati to fetch.
A built Fedora CoreOS image is required; it is recommended to use the CoreOS Assembler’s
build-fast command for faster iteration.
To run the tests, specify the path to your Zincati project directory and which tests to run using
Example (run all tests):
kola run --qemu-image fastbuild-fedora-coreos-zincati-qemu.qcow2 -E /path/to/zincati/ 'ext.zincati.*'
Example (run only the
kola run --qemu-image fastbuild-fedora-coreos-zincati-qemu.qcow2 -E /path/to/zincati/ 'ext.zincati.server.*'
Refer to kola external tests’ README for instructions on adding additional tests