atomic-host-tests icon indicating copy to clipboard operation
atomic-host-tests copied to clipboard

i-s-t repetitiveness

Open ashcrow opened this issue 8 years ago • 3 comments

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.

ashcrow avatar Dec 19 '17 14:12 ashcrow

Definitely not doubting you here, but could you provide an example that stuck out to you?

miabbott avatar Dec 19 '17 17:12 miabbott

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.

ashcrow avatar Dec 19 '17 18:12 ashcrow

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.

ashcrow avatar Dec 19 '17 18:12 ashcrow