Run tests on ubuntu1604 and opensuseleap (#15936)

* reduce async sleep time in test
* make zypper test less destructive (don't break following uses of zypper)
* fix ca cert on suse
* fix/enable postgres/mysql on opensuseleap
* fix mysql test for mysql versions 5.7.6 and newer
* skip sni_host check on ubuntu1604
* add HTTPTESTER flag for test_uri

ubuntu 16.04 uses dash which drops env variables containing a dot
we work around this by adding an explicit env variable to enable httptester
This commit is contained in:
Robin Roth
2016-05-31 23:47:36 +02:00
committed by Matt Clay
parent 027006b846
commit c06884eff0
9 changed files with 93 additions and 37 deletions

View File

@@ -8,24 +8,10 @@
paths: '../vars'
# Make sure we start fresh
- name: remove rpm dependencies for postgresql test
package: name={{ postgresql_package_item }} state=absent
with_items: "{{postgresql_packages}}"
loop_control:
loop_var: postgresql_package_item
when: ansible_os_family == "RedHat"
- name: remove dpkg dependencies for postgresql test
apt: name={{ postgresql_package_item }} state=absent
with_items: "{{postgresql_packages}}"
loop_control:
loop_var: postgresql_package_item
when: ansible_pkg_mgr == 'apt'
- name: remove old db (red hat)
- name: remove old db (RedHat or Suse)
command: rm -rf "{{ pg_dir }}"
ignore_errors: True
when: ansible_os_family == "RedHat"
when: ansible_os_family == "RedHat" or ansible_os_family == "Suse"
# Theoretically, pg_dropcluster should work but it doesn't so rm files
- name: remove old db config (debian)
@@ -43,7 +29,7 @@
with_items: "{{postgresql_packages}}"
loop_control:
loop_var: postgresql_package_item
when: ansible_os_family == "RedHat"
when: ansible_os_family == "RedHat" or ansible_os_family == "Suse"
- name: install dpkg dependencies for postgresql test
apt: name={{ postgresql_package_item }} state=latest
@@ -66,6 +52,10 @@
ignore_errors: True
when: ansible_os_family == 'Debian'
- name: Initialize postgres (Suse)
service: name=postgresql state=restarted
when: ansible_os_family == 'Suse'
- name: Copy pg_hba into place
copy: src=pg_hba.conf dest="{{ pg_hba_location }}" owner="postgres" group="root" mode="0644"
@@ -77,13 +67,17 @@
command: locale-gen es_MX
when: ansible_os_family == 'Debian'
- name: install i18ndata
zypper: name=glibc-i18ndata state=present
when: ansible_os_family == 'Suse'
- name: Generate pt_BR locale (Red Hat)
command: localedef -f ISO-8859-1 -i pt_BR pt_BR
when: ansible_os_family == 'RedHat'
when: ansible_os_family == "RedHat" or ansible_os_family == "Suse"
- name: Generate es_MX locale (Red Hat)
command: localedef -f ISO-8859-1 -i es_MX es_MX
when: ansible_os_family == 'RedHat'
when: ansible_os_family == "RedHat" or ansible_os_family == "Suse"
- name: restart postgresql service
service: name={{ postgresql_service }} state=restarted