mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-23 05:10:22 -07:00
Fix and re-enable zypper* integration tests in CI.
This commit is contained in:
parent
1980c9e773
commit
781219bcfd
5 changed files with 15 additions and 59 deletions
|
@ -1,4 +1,5 @@
|
|||
destructive
|
||||
posix/ci/group1
|
||||
skip/freebsd
|
||||
skip/osx
|
||||
skip/rhel
|
||||
|
|
|
@ -189,6 +189,7 @@
|
|||
- name: install empty rpm
|
||||
zypper:
|
||||
name: "{{ output_dir | expanduser }}/zypper2/rpm-build/noarch/empty-1-0.noarch.rpm"
|
||||
disable_gpg_check: yes
|
||||
register: zypper_result
|
||||
|
||||
- name: check empty with rpm
|
||||
|
@ -285,7 +286,7 @@
|
|||
- zypper_patch.msg.startswith('Can not remove patches.')
|
||||
|
||||
- name: try rm URL
|
||||
zypper: name=http://download.opensuse.org/repositories/openSUSE:/Leap:/42.1/standard/x86_64/hello-2.9-6.2.x86_64.rpm state=absent
|
||||
zypper: name=http://download.opensuse.org/repositories/openSUSE:/Leap:/{{ ansible_distribution_version }}/standard/x86_64/hello-2.9-6.2.x86_64.rpm state=absent
|
||||
ignore_errors: yes
|
||||
register: zypper_rm
|
||||
- assert:
|
||||
|
@ -293,53 +294,6 @@
|
|||
- zypper_rm|failed
|
||||
- zypper_rm.msg.startswith('Can not remove via URL.')
|
||||
|
||||
# use of version specific (42.1) data in the following
|
||||
- block:
|
||||
# test for #1627
|
||||
- name: in existing patch
|
||||
zypper: name=openSUSE-2016-128 type=patch state=present
|
||||
- name: in existing patch again
|
||||
zypper: name=openSUSE-2016-128 type=patch state=present
|
||||
register: zypper_patch
|
||||
- assert:
|
||||
that: not zypper_patch.changed
|
||||
|
||||
- name: in non-existing patch
|
||||
zypper: name=openSUSE-1800-1 type=patch state=present
|
||||
ignore_errors: yes
|
||||
register: zypper_patch
|
||||
- assert:
|
||||
that: zypper_patch|failed
|
||||
|
||||
- name: remove pattern update_test
|
||||
zypper: name=update_test type=pattern state=absent
|
||||
- name: install pattern update_test
|
||||
zypper: name=update_test type=pattern state=present
|
||||
register: zypper_install_pattern1
|
||||
- name: install pattern update_test again
|
||||
zypper: name=update_test type=pattern state=present
|
||||
register: zypper_install_pattern2
|
||||
- assert:
|
||||
that:
|
||||
- zypper_install_pattern1|changed
|
||||
- not zypper_install_pattern2|changed
|
||||
|
||||
- name: remove hello
|
||||
zypper: name=hello state=absent
|
||||
- name: install via URL
|
||||
zypper: state=present name=http://download.opensuse.org/repositories/openSUSE:/Leap:/42.1/standard/x86_64/hello-2.9-6.2.x86_64.rpm
|
||||
register: zypperin1
|
||||
- name: test install
|
||||
zypper: name=hello state=present
|
||||
register: zypperin2
|
||||
- assert:
|
||||
that:
|
||||
- zypperin1|success
|
||||
- zypperin1|changed
|
||||
- not zypperin2|changed
|
||||
when: ansible_distribution == 'openSUSE Leap' and ansible_distribution_version == '42.1'
|
||||
|
||||
|
||||
# check for https://github.com/ansible/ansible/issues/20139
|
||||
- name: run updatecache
|
||||
zypper:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue