atomic-host-tests
atomic-host-tests copied to clipboard
i-s-t repetitiveness
There is some repetitiveness in the i-s-t suite. Consider moving things which are done multiple times into their own role OR playbook which gets included more than once.
Definitely not doubting you here, but could you provide an example that stuck out to you?
Sure. Quick example:
# Compare 'atomic host status' and 'rpm-ostree status' again
- role: atomic_host_status_verify
stop_daemon: true
tags:
- atomic_host_status_verify
# Re-subscribe
- role: redhat_subscription
when: ansible_distribution == 'RedHat'
tags:
- redhat_subscription
# Verify correct SELinux labels again
- role: selinux_verify
tags:
- selinux_verify
Instead of doing the same sets 2x they could be part of one test suite role.
Not the worst thing in the world at all. One could also say that it's easier to read by being explicit like it is today. I just wanted to call it out. By switching to suites run by a playbook you could make it less verbose.