Since version 0.13.0 the cesapp is able to execute tests to verify goss specs.
There are two ways to write goss specs for a dogu. The hard way and the easy way.
- create a file at
- add test cases as described in the goss documentation
- test your spec with
cesapp verify dogu-directory
- create a empty file at
- verify the spec, keep the test container with
cesapp verify dogu-directory --keep-containerand ignore the verify error
- jump into the container with
docker exec -ti dogu-name bash
- change the directory to
- now you can add tests to goss spec e.g.:
goss add file /etc/nginx/nginx.conf, for a complete list have a look at the goss documentation
- The cesapp will build the container image of the dogu
- Dogu container is created with volumes for goss binary and spec directory
- Container is started with goss binary mounted at
/usr/bin/gossand spec directory at
- The cesapp will wait until the dogu is healthy
- Goss will be executed with in the container and
- The test container will be stopped and removed
verify command is able to store the results in a build server friendly manner e.g.:
cesapp verify dogu-directory --ci --report-directory reports.
The command will now format the output in the junit format and write the report to the file