Fixes for dnf and user integration tests. (#34603)
* Fix user test. * Use `dnf` instead of `yum` in dnf test. * Install correct version of rpmfluff for tests.
This commit is contained in:
parent
70cafcdef6
commit
9599630976
3 changed files with 12 additions and 1 deletions
|
@ -209,6 +209,6 @@
|
|||
# ============================================================================
|
||||
always:
|
||||
- name: Clean up
|
||||
yum:
|
||||
dnf:
|
||||
name: foo
|
||||
state: absent
|
||||
|
|
|
@ -5,6 +5,14 @@
|
|||
when:
|
||||
- ansible_distribution in ['RedHat']
|
||||
|
||||
- name: Install rpmfluff and deps
|
||||
package:
|
||||
name: "{{ item }}"
|
||||
with_items:
|
||||
- python{{ ansible_python_version.split(".")[0] }}-rpmfluff
|
||||
when:
|
||||
- ansible_distribution in ['Fedora']
|
||||
|
||||
- name: Install rpmfluff and deps
|
||||
package:
|
||||
name: "{{ item }}"
|
||||
|
@ -12,6 +20,8 @@
|
|||
- python-rpmfluff
|
||||
- createrepo_c
|
||||
- createrepo # used by el6 version of rpmfluff
|
||||
when:
|
||||
- ansible_distribution not in ['Fedora']
|
||||
|
||||
- name: Copy script for creating a repo
|
||||
copy:
|
||||
|
|
|
@ -99,6 +99,7 @@
|
|||
user:
|
||||
name: ansibulluser
|
||||
state: absent
|
||||
force: true
|
||||
register: user_test2
|
||||
- name: make a new list of users
|
||||
script: userlist.sh "{{ ansible_distribution }}"
|
||||
|
|
Loading…
Reference in a new issue