action #88195
openFull test of salt states including DBus on CI
0%
Description
Motivation¶
Currently our salt states use this jinja template a lot:
{%- if not grains.get('noservices', False) %}
The purpose of it is to allow sanity checks of salt states without spinning up a full system which has DBus services and potentially other components running. Currently other types of problems won't be caught. So the CI should be extended to have a more complete approach.
Acceptance criteria¶
- AC1: CI can test salt states without special conditions in definitions
Suggestions¶
- Try out if we can just use systemd in our test containers, e.g. following https://feldspaten.org/2021/03/23/openSUSE-Leap-Ansible-Container/
Research if https://www.linkedin.com/pulse/validation-saltstacks-saltcheck-christian-mchugh/ can do the job for us, see
Look into Kitchen Salt
Modify GitLab CI accordingly
Updated by okurz almost 4 years ago
- Priority changed from Normal to Low
- Target version set to future
nice idea. Unfortunately currently no place on our backlog yet.
Updated by okurz almost 4 years ago
also https://docs.saltproject.io/en/latest/ref/modules/all/salt.modules.saltcheck.html looks very promising. Likely we should start with that.
Updated by okurz almost 4 years ago
- Target version changed from Ready to future
before following up with that I suggest to do #90167 first as it will change our CI environment
Updated by crameleon 9 months ago
Heya,
in our openSUSE infrastructure we use a container image with systemd for full highstate tests in the GitLab CI - maybe it's interesting for you as a reference:
https://build.opensuse.org/package/show/openSUSE:infrastructure/container-heroes-salt-testing-systemd