mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Fix tests for OpenSUSE 15.1 (#139)
* [zypper] Fix tests for OpenSUSE 15.1 Signed-off-by: Rick Elrod <rick@elrod.me> * [setup_mysql_db] Fix tests for OpenSUSE 15.1 Signed-off-by: Rick Elrod <rick@elrod.me> * Update tests/integration/targets/setup_mysql_db/tasks/main.yml * Re-enable zypper_repository tests. Co-authored-by: Felix Fontein <felix@fontein.de>
This commit is contained in:
parent
1acb4d18e6
commit
6dd5cb5dea
3 changed files with 14 additions and 3 deletions
|
@ -63,6 +63,13 @@
|
||||||
when: ansible_facts.pkg_mgr == 'apt'
|
when: ansible_facts.pkg_mgr == 'apt'
|
||||||
notify: cleanup mysql
|
notify: cleanup mysql
|
||||||
|
|
||||||
|
- name: install mysqldb_test opensuse dependencies
|
||||||
|
zypper:
|
||||||
|
name: "{{ mysql_packages }}"
|
||||||
|
state: latest
|
||||||
|
when: ansible_facts.pkg_mgr in ['zypper', 'community.general.zypper']
|
||||||
|
notify: cleanup mysql
|
||||||
|
|
||||||
- name: install mysqldb_test FreeBSD dependencies
|
- name: install mysqldb_test FreeBSD dependencies
|
||||||
package:
|
package:
|
||||||
name: "{{ mysql_packages }}"
|
name: "{{ mysql_packages }}"
|
||||||
|
|
|
@ -1,10 +1,10 @@
|
||||||
- name: get hello package version
|
- name: get hello package version
|
||||||
shell: zypper --xml se -svx hello | grep 'name="hello"' | sed 's/.*edition="\([^ ]*\)".*/\1/'
|
shell: zypper --xml se -svx hello | grep 'name="hello"' | grep 'repository="Main Repository"' | sed 's/.*edition="\([^ ]*\)".*/\1/'
|
||||||
register: hello_version
|
register: hello_version
|
||||||
|
|
||||||
- name: set URL of test package
|
- name: set URL of test package
|
||||||
set_fact:
|
set_fact:
|
||||||
hello_package_url: http://download.opensuse.org/repositories/openSUSE:/Leap:/{{ ansible_distribution_version }}/standard/x86_64/hello-{{ hello_version.stdout }}.x86_64.rpm
|
hello_package_url: https://download.opensuse.org/distribution/leap/{{ ansible_distribution_version }}/repo/oss/x86_64/hello-{{ hello_version.stdout }}.x86_64.rpm
|
||||||
|
|
||||||
- debug: var=hello_package_url
|
- debug: var=hello_package_url
|
||||||
|
|
||||||
|
@ -179,6 +179,11 @@
|
||||||
name: empty
|
name: empty
|
||||||
state: removed
|
state: removed
|
||||||
|
|
||||||
|
- name: install rpmbuild
|
||||||
|
zypper:
|
||||||
|
name: rpmbuild
|
||||||
|
state: present
|
||||||
|
|
||||||
- name: clean zypper RPM cache
|
- name: clean zypper RPM cache
|
||||||
file:
|
file:
|
||||||
name: /var/cache/zypper/RPMS
|
name: /var/cache/zypper/RPMS
|
||||||
|
|
|
@ -4,4 +4,3 @@ skip/aix
|
||||||
skip/freebsd
|
skip/freebsd
|
||||||
skip/osx
|
skip/osx
|
||||||
skip/rhel
|
skip/rhel
|
||||||
disabled #fixme
|
|
||||||
|
|
Loading…
Reference in a new issue