1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

yum: add integration test for incompatible arch rpm (#31185)

This commit is contained in:
Martin Krizek 2017-10-05 14:57:15 +02:00 committed by GitHub
parent 4337b7a777
commit 488534b906

View file

@ -456,3 +456,17 @@
that:
- "not yum_result.changed"
- "'Packages providing httpd not installed due to update_only specified' in yum_result.results"
- name: try to install not compatible arch rpm, should fail
yum:
name: http://download.fedoraproject.org/pub/epel/7/ppc64le/b/banner-1.3.4-3.el7.ppc64le.rpm
state: present
register: yum_result
ignore_errors: True
- name: verify that yum failed
assert:
that:
- "yum_result.rc == 1"
- "not yum_result.changed"
- "yum_result|failed"