1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00
community.general/test/integration/targets/yum/tasks
Pilou 47d8d8c36e Fix yum integration tests (#35177)
* use tests instead of filters

* Don't check 'rc', use success/failed tests

- yum module use 'fail_json' which set 'failed'
- 'rc' is for backward compatibility:
  bbd6b8bb42/lib/ansible/executor/task_executor.py (L571)
- besides yum module doesn't document any return values

* Allow to run tests twice in a row

ansible-test is executed with '--retry-on-error' switch, then tests must
be able to executed twice in a row.

Error was:
TASK [yum : install group] ***
ok: [testhost] => {
    "attempts": 1,
    "changed": false,
    "failed": false,
    "invocation": { [...] },
    "msg": "",
    "rc": 0,
    "results": []
}

TASK [yum : verify installation of the group] ***
fatal: [testhost]: FAILED! => {
    "assertion": "yum_result.changed",
    "attempts": 1,
    "changed": false,
    "evaluated_to": false,
    "failed": true
}
2018-01-27 12:35:18 +01:00
..
main.yml Fix yum integration tests (#35177) 2018-01-27 12:35:18 +01:00
repo.yml Use custom rpm repo script for dnf testing (#32737) 2017-11-21 09:40:58 +01:00
yum.yml Fix yum integration tests (#35177) 2018-01-27 12:35:18 +01:00
yum_group_remove.yml Add yum integration tests using fake repo (#31646) 2017-10-18 13:07:48 +02:00
yuminstallroot.yml Add yum integration tests using fake repo (#31646) 2017-10-18 13:07:48 +02:00