Project

General

Profile

action #88195

Updated by okurz about 3 years ago

## Motivation 

 Currently our salt states use this [jinja](https://docs.saltproject.io/en/latest/topics/jinja/index.html) 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 
   * https://www.linkedin.com/pulse/validation-saltstacks-saltcheck-christian-mchugh/ 
   * https://salt.tips/whats-new-in-salt-neon/ 
   * https://docs.saltproject.io/en/latest/ref/modules/all/salt.modules.saltcheck.html 

 * Look into [Kitchen Salt](https://www.linode.com/docs/guides/test-salt-locally-with-kitchen-salt/) 
 * Modify [GitLab CI](https://gitlab.suse.de/openqa/salt-states-openqa/-/blob/master/.gitlab-ci.yml) accordingly

Back