mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Diable netcat conflict in zypper tests as one package seems to be no longer available. (#3438) (#3441)
(cherry picked from commit 3715b6ef46
)
Co-authored-by: Felix Fontein <felix@fontein.de>
This commit is contained in:
parent
b475239b4f
commit
e9900f9a8e
1 changed files with 29 additions and 29 deletions
|
@ -419,35 +419,35 @@
|
||||||
- zypper_result_update_cache_check is successful
|
- zypper_result_update_cache_check is successful
|
||||||
- zypper_result_update_cache_check is not changed
|
- zypper_result_update_cache_check is not changed
|
||||||
|
|
||||||
- name: ensure no previous netcat package still exists
|
# - name: ensure no previous netcat package still exists
|
||||||
zypper:
|
# zypper:
|
||||||
name:
|
# name:
|
||||||
- netcat-openbsd
|
# - netcat-openbsd
|
||||||
- gnu-netcat
|
# - gnu-netcat
|
||||||
state: absent
|
# state: absent
|
||||||
|
#
|
||||||
- name: install netcat-openbsd which conflicts with gnu-netcat
|
# - name: install netcat-openbsd which conflicts with gnu-netcat
|
||||||
zypper:
|
# zypper:
|
||||||
name: netcat-openbsd
|
# name: netcat-openbsd
|
||||||
state: present
|
# state: present
|
||||||
|
#
|
||||||
- name: try installation of gnu-netcat which should fail due to the conflict
|
# - name: try installation of gnu-netcat which should fail due to the conflict
|
||||||
zypper:
|
# zypper:
|
||||||
name: gnu-netcat
|
# name: gnu-netcat
|
||||||
state: present
|
# state: present
|
||||||
ignore_errors: yes
|
# ignore_errors: yes
|
||||||
register: zypper_pkg_conflict
|
# register: zypper_pkg_conflict
|
||||||
|
#
|
||||||
- assert:
|
# - assert:
|
||||||
that:
|
# that:
|
||||||
- zypper_pkg_conflict is failed
|
# - zypper_pkg_conflict is failed
|
||||||
- "'conflicts with netcat-openbsd provided' in zypper_pkg_conflict.stdout"
|
# - "'conflicts with netcat-openbsd provided' in zypper_pkg_conflict.stdout"
|
||||||
|
#
|
||||||
- name: retry installation of gnu-netcat with force_resolution set to choose a resolution
|
# - name: retry installation of gnu-netcat with force_resolution set to choose a resolution
|
||||||
zypper:
|
# zypper:
|
||||||
name: gnu-netcat
|
# name: gnu-netcat
|
||||||
state: present
|
# state: present
|
||||||
force_resolution: True
|
# force_resolution: True
|
||||||
|
|
||||||
- name: duplicate rpms block
|
- name: duplicate rpms block
|
||||||
vars:
|
vars:
|
||||||
|
|
Loading…
Reference in a new issue