#198 Add task for enabling services
Merged 5 years ago by astepano. Opened 5 years ago by dhodovsk.
dhodovsk/standard-test-roles required-services  into  master

@@ -15,5 +15,7 @@ 

     using the `rpm-ostree` command which is affecting the test subject (it's

     similar as rebuilding an rpm package to be tested) so this should be used

     with caution and only when necessary.

+  * **required_services**: A list of services to be started before running tests.

+    Please use `required_packages` for specifying packages that provide the services.

  

  Check `glib2` package tests to find examples for using this role.

@@ -31,3 +31,10 @@ 

      src: "{{ playbook_dir }}/"

      dest: "{{ tenv_workdir }}"

      ssh_args: "-o UserKnownHostsFile=/dev/null"

+ 

+ - name: Start services defined in `required_services`

+   service:

+     name: "{{ item }}"

+     state: started

+   with_flattened:

+     - "{{ required_services|d|list|flatten }}"

The wording is a bit cumbersome, how about: A list of services to be started before running tests.

I propose not to do this, since a bunch of services have different name than the package which installs them. Therefore please just advise people to use required_packages variable.

please remove this line, as described above

Final nit: how about just Start services defined in \required_services``

rebased onto 218f3f7

5 years ago

Commit b8b6ef9 fixes this pull-request

Pull-Request has been merged by astepano

5 years ago

Pull-Request has been merged by astepano

5 years ago