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: always:
- name: Clean up - name: Clean up
yum: dnf:
name: foo name: foo
state: absent state: absent

View file

@ -5,6 +5,14 @@
when: when:
- ansible_distribution in ['RedHat'] - 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 - name: Install rpmfluff and deps
package: package:
name: "{{ item }}" name: "{{ item }}"
@ -12,6 +20,8 @@
- python-rpmfluff - python-rpmfluff
- createrepo_c - createrepo_c
- createrepo # used by el6 version of rpmfluff - createrepo # used by el6 version of rpmfluff
when:
- ansible_distribution not in ['Fedora']
- name: Copy script for creating a repo - name: Copy script for creating a repo
copy: copy:

View file

@ -99,6 +99,7 @@
user: user:
name: ansibulluser name: ansibulluser
state: absent state: absent
force: true
register: user_test2 register: user_test2
- name: make a new list of users - name: make a new list of users
script: userlist.sh "{{ ansible_distribution }}" script: userlist.sh "{{ ansible_distribution }}"