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:
Matt Clay 2018-01-08 16:36:53 -08:00 committed by GitHub
parent 70cafcdef6
commit 9599630976
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 12 additions and 1 deletions

View file

@ -209,6 +209,6 @@
# ============================================================================
always:
- name: Clean up
yum:
dnf:
name: foo
state: absent

View file

@ -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:

View file

@ -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 }}"