mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Run tests with macOS 10.15. (#971)
* Run tests with macOS 10.15.
* Restrict to macOS CI runs for now until they pass.
* Skip tests on macOS that are skipped on OSX.
* Disable consul test for macOS.
* Disable chroot connection tests for macOS.
* Add setup_gnutar role from https://github.com/ansible/ansible/pull/71841.
* Use setup_gnutar for yarn and npm tests.
* Revert "Restrict to macOS CI runs for now until they pass."
This reverts commit d945d0399f
.
* hashi_vault lookup tests seem to be always unstable, disabling for now.
* Use homebrew module instead of command.
This commit is contained in:
parent
951a7e2758
commit
eba5216be5
80 changed files with 109 additions and 0 deletions
|
@ -49,6 +49,7 @@ matrix:
|
|||
|
||||
#- env: T=devel/aix/7.2/1
|
||||
- env: T=devel/osx/10.11/1
|
||||
- env: T=devel/macos/10.15/1
|
||||
- env: T=devel/rhel/7.8/1
|
||||
- env: T=devel/rhel/8.2/1
|
||||
- env: T=devel/freebsd/11.1/1
|
||||
|
@ -65,6 +66,7 @@ matrix:
|
|||
|
||||
#- env: T=devel/aix/7.2/2
|
||||
- env: T=devel/osx/10.11/2
|
||||
- env: T=devel/macos/10.15/2
|
||||
- env: T=devel/rhel/7.8/2
|
||||
- env: T=devel/rhel/8.2/2
|
||||
- env: T=devel/freebsd/11.1/2
|
||||
|
@ -81,6 +83,7 @@ matrix:
|
|||
|
||||
#- env: T=devel/aix/7.2/3
|
||||
- env: T=devel/osx/10.11/3
|
||||
- env: T=devel/macos/10.15/3
|
||||
- env: T=devel/rhel/7.8/3
|
||||
- env: T=devel/rhel/8.2/3
|
||||
- env: T=devel/freebsd/11.1/3
|
||||
|
@ -97,6 +100,7 @@ matrix:
|
|||
|
||||
#- env: T=devel/aix/7.2/4
|
||||
- env: T=devel/osx/10.11/4
|
||||
- env: T=devel/macos/10.15/4
|
||||
- env: T=devel/rhel/7.8/4
|
||||
- env: T=devel/rhel/8.2/4
|
||||
- env: T=devel/freebsd/11.1/4
|
||||
|
@ -113,6 +117,7 @@ matrix:
|
|||
|
||||
#- env: T=devel/aix/7.2/5
|
||||
- env: T=devel/osx/10.11/5
|
||||
- env: T=devel/macos/10.15/5
|
||||
- env: T=devel/rhel/7.8/5
|
||||
- env: T=devel/rhel/8.2/5
|
||||
- env: T=devel/freebsd/11.1/5
|
||||
|
|
|
@ -4,3 +4,4 @@ needs/root
|
|||
skip/aix
|
||||
skip/freebsd
|
||||
skip/osx
|
||||
skip/macos
|
||||
|
|
|
@ -2,4 +2,5 @@ destructive
|
|||
shippable/posix/group1
|
||||
skip/aix
|
||||
skip/osx
|
||||
skip/macos
|
||||
skip/freebsd
|
||||
|
|
|
@ -1,2 +1,3 @@
|
|||
needs/root
|
||||
shippable/posix/group3
|
||||
skip/macos # FIXME
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
shippable/posix/group2
|
||||
destructive
|
||||
skip/aix
|
||||
skip/macos # cannot simply create binaries in system locations on newer macOS versions
|
||||
|
|
|
@ -2,3 +2,4 @@ destructive
|
|||
shippable/posix/group4
|
||||
skip/aix
|
||||
skip/osx
|
||||
skip/macos
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
shippable/posix/group3
|
||||
skip/osx
|
||||
skip/macos
|
||||
skip/freebsd
|
||||
skip/aix
|
||||
destructive
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
shippable/posix/group5
|
||||
skip/osx
|
||||
skip/macos
|
||||
skip/freebsd
|
||||
skip/aix
|
||||
destructive
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
shippable/posix/group2
|
||||
skip/osx
|
||||
skip/macos
|
||||
skip/freebsd
|
||||
skip/aix
|
||||
destructive
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
shippable/posix/group2
|
||||
skip/aix
|
||||
skip/osx
|
||||
skip/macos
|
||||
skip/freebsd
|
||||
destructive
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
shippable/posix/group5
|
||||
skip/aix
|
||||
skip/osx
|
||||
skip/macos
|
||||
skip/freebsd
|
||||
destructive
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
shippable/posix/group2
|
||||
skip/aix
|
||||
skip/osx
|
||||
skip/macos
|
||||
skip/freebsd
|
||||
destructive
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
shippable/posix/group3
|
||||
skip/aix
|
||||
skip/osx
|
||||
skip/macos
|
||||
skip/freebsd
|
||||
destructive
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
shippable/posix/group5
|
||||
skip/aix
|
||||
skip/osx
|
||||
skip/macos
|
||||
skip/freebsd
|
||||
destructive
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
shippable/posix/group2
|
||||
skip/aix
|
||||
skip/osx
|
||||
skip/macos
|
||||
skip/freebsd
|
||||
destructive
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
shippable/posix/group2
|
||||
skip/aix
|
||||
skip/osx
|
||||
skip/macos
|
||||
skip/freebsd
|
||||
destructive
|
||||
skip/docker # The tests sometimes make docker daemon unstable; hence,
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
shippable/posix/group3
|
||||
skip/aix
|
||||
skip/osx
|
||||
skip/macos
|
||||
skip/freebsd
|
||||
destructive
|
||||
skip/docker # The tests sometimes make docker daemon unstable; hence,
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
shippable/posix/group2
|
||||
skip/aix
|
||||
skip/osx
|
||||
skip/macos
|
||||
skip/freebsd
|
||||
destructive
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
shippable/posix/group2
|
||||
skip/aix
|
||||
skip/osx
|
||||
skip/macos
|
||||
skip/freebsd
|
||||
destructive
|
||||
skip/docker # The tests sometimes make docker daemon unstable; hence,
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
shippable/posix/group2
|
||||
skip/aix
|
||||
skip/osx
|
||||
skip/macos
|
||||
skip/freebsd
|
||||
destructive
|
||||
skip/docker # The tests sometimes make docker daemon unstable; hence,
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
shippable/posix/group1
|
||||
skip/aix
|
||||
skip/osx
|
||||
skip/macos
|
||||
skip/freebsd
|
||||
destructive
|
||||
skip/docker # The tests sometimes make docker daemon unstable; hence,
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
shippable/posix/group1
|
||||
skip/aix
|
||||
skip/osx
|
||||
skip/macos
|
||||
skip/freebsd
|
||||
destructive
|
||||
skip/docker # The tests sometimes make docker daemon unstable; hence,
|
||||
|
|
|
@ -2,6 +2,7 @@ shippable/posix/group2
|
|||
disabled # See: https://github.com/ansible/ansible/issues/61815
|
||||
skip/aix
|
||||
skip/osx
|
||||
skip/macos
|
||||
skip/freebsd
|
||||
destructive
|
||||
skip/docker # The tests sometimes make docker daemon unstable; hence,
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
shippable/posix/group1
|
||||
skip/aix
|
||||
skip/osx
|
||||
skip/macos
|
||||
skip/freebsd
|
||||
destructive
|
||||
skip/docker # The tests sometimes make docker daemon unstable; hence,
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
shippable/posix/group5
|
||||
skip/aix
|
||||
skip/osx
|
||||
skip/macos
|
||||
skip/freebsd
|
||||
destructive
|
||||
skip/docker # The tests sometimes make docker daemon unstable; hence,
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
shippable/posix/group3
|
||||
skip/aix
|
||||
skip/osx
|
||||
skip/macos
|
||||
skip/freebsd
|
||||
destructive
|
||||
skip/docker # The tests sometimes make docker daemon unstable; hence,
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
shippable/posix/group2
|
||||
skip/aix
|
||||
skip/osx
|
||||
skip/macos
|
||||
skip/freebsd
|
||||
destructive
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
shippable/posix/group1
|
||||
skip/aix
|
||||
skip/osx
|
||||
skip/macos
|
||||
skip/freebsd
|
||||
destructive
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
shippable/posix/group4
|
||||
skip/aix
|
||||
skip/osx
|
||||
skip/macos
|
||||
skip/rhel
|
||||
skip/freebsd
|
||||
|
|
|
@ -2,6 +2,7 @@ shippable/posix/group1
|
|||
destructive
|
||||
skip/aix
|
||||
skip/osx
|
||||
skip/macos
|
||||
skip/freebsd
|
||||
skip/python2.6 # installing etcd3 python module will fail on python < 2.7
|
||||
disabled # see https://github.com/ansible-collections/community.general/issues/322
|
||||
|
|
|
@ -2,3 +2,4 @@ destructive
|
|||
shippable/posix/group3
|
||||
skip/aix
|
||||
skip/osx
|
||||
skip/macos
|
||||
|
|
|
@ -3,6 +3,7 @@ destructive
|
|||
skip/aix
|
||||
skip/freebsd
|
||||
skip/osx
|
||||
skip/macos
|
||||
skip/rhel
|
||||
needs/root
|
||||
needs/privileged
|
||||
|
|
|
@ -3,5 +3,6 @@ destructive
|
|||
skip/aix
|
||||
skip/freebsd
|
||||
skip/osx
|
||||
skip/macos
|
||||
skip/rhel
|
||||
needs/root
|
||||
|
|
|
@ -2,3 +2,4 @@ destructive
|
|||
shippable/posix/group1
|
||||
skip/aix
|
||||
skip/osx
|
||||
skip/macos
|
||||
|
|
|
@ -2,5 +2,6 @@ destructive
|
|||
shippable/posix/group1
|
||||
disabled
|
||||
skip/osx
|
||||
skip/macos
|
||||
skip/freebsd
|
||||
skip/rhel
|
||||
|
|
|
@ -2,6 +2,7 @@ disabled
|
|||
shippable/posix/group2
|
||||
skip/aix
|
||||
skip/osx
|
||||
skip/macos
|
||||
skip/freebsd
|
||||
destructive
|
||||
skip/docker # We need SSH access to the VM and need to be able to let
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
shippable/posix/group2
|
||||
skip/aix
|
||||
skip/osx
|
||||
skip/macos
|
||||
skip/freebsd
|
||||
destructive
|
||||
skip/docker # The tests sometimes make docker daemon unstable; hence,
|
||||
|
|
|
@ -3,4 +3,5 @@ shippable/posix/group4
|
|||
skip/docker # kernel modules not loadable
|
||||
skip/freebsd # no iptables/netfilter (Linux specific)
|
||||
skip/osx # no iptables/netfilter (Linux specific)
|
||||
skip/macos # no iptables/netfilter (Linux specific)
|
||||
skip/aix # no iptables/netfilter (Linux specific)
|
||||
|
|
|
@ -2,6 +2,7 @@ destructive
|
|||
shippable/posix/group1
|
||||
skip/aix
|
||||
skip/osx
|
||||
skip/macos
|
||||
skip/freebsd
|
||||
skip/rhel
|
||||
needs/root
|
||||
|
|
|
@ -2,5 +2,6 @@ shippable/posix/group1
|
|||
skip/aix
|
||||
skip/freebsd
|
||||
skip/osx
|
||||
skip/macos
|
||||
skip/rhel
|
||||
needs/root
|
||||
|
|
|
@ -2,4 +2,5 @@ shippable/posix/group3
|
|||
destructive
|
||||
skip/aix
|
||||
skip/osx
|
||||
skip/macos
|
||||
skip/freebsd
|
||||
|
|
|
@ -4,6 +4,7 @@ needs/file/tests/utils/constraints.txt
|
|||
needs/target/setup_etcd3
|
||||
skip/aix
|
||||
skip/osx
|
||||
skip/macos
|
||||
skip/freebsd
|
||||
skip/python2.6 # lookups are controller only, and we no longer support Python 2.6 on the controller
|
||||
disabled # see https://github.com/ansible-collections/community.general/issues/322
|
||||
|
|
|
@ -4,3 +4,4 @@ needs/target/setup_openssl
|
|||
needs/file/tests/utils/constraints.txt
|
||||
skip/aix
|
||||
skip/python2.6 # lookups are controller only, and we no longer support Python 2.6 on the controller
|
||||
skip/macos # FIXME seems to be always unstable
|
||||
|
|
|
@ -4,3 +4,4 @@ shippable/posix/group1
|
|||
skip/aix
|
||||
skip/freebsd
|
||||
skip/osx
|
||||
skip/macos
|
||||
|
|
|
@ -2,5 +2,6 @@ notification/mqtt
|
|||
shippable/posix/group1
|
||||
skip/aix
|
||||
skip/osx
|
||||
skip/macos
|
||||
skip/freebsd
|
||||
skip/rhel
|
||||
|
|
|
@ -1,2 +1,3 @@
|
|||
dependencies:
|
||||
- setup_pkg_mgr
|
||||
- setup_gnutar
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
destructive
|
||||
shippable/posix/group1
|
||||
skip/osx
|
||||
skip/macos
|
||||
skip/rhel8.0
|
||||
skip/freebsd
|
||||
|
|
|
@ -2,3 +2,4 @@ destructive
|
|||
shippable/posix/group4
|
||||
skip/aix
|
||||
skip/osx
|
||||
skip/macos
|
||||
|
|
|
@ -3,3 +3,4 @@ shippable/posix/group4
|
|||
postgresql_db
|
||||
skip/aix
|
||||
skip/osx
|
||||
skip/macos
|
||||
|
|
|
@ -2,4 +2,5 @@ destructive
|
|||
shippable/posix/group4
|
||||
skip/aix
|
||||
skip/osx
|
||||
skip/macos
|
||||
skip/freebsd
|
||||
|
|
|
@ -2,3 +2,4 @@ destructive
|
|||
shippable/posix/group4
|
||||
skip/aix
|
||||
skip/osx
|
||||
skip/macos
|
||||
|
|
|
@ -2,5 +2,6 @@ destructive
|
|||
shippable/posix/group1
|
||||
skip/aix
|
||||
skip/osx
|
||||
skip/macos
|
||||
skip/freebsd
|
||||
skip/rhel
|
||||
|
|
|
@ -2,3 +2,4 @@ destructive
|
|||
shippable/posix/group4
|
||||
skip/aix
|
||||
skip/osx
|
||||
skip/macos
|
||||
|
|
|
@ -2,3 +2,4 @@ destructive
|
|||
shippable/posix/group4
|
||||
skip/aix
|
||||
skip/osx
|
||||
skip/macos
|
||||
|
|
|
@ -2,3 +2,4 @@ destructive
|
|||
shippable/posix/group4
|
||||
skip/aix
|
||||
skip/osx
|
||||
skip/macos
|
||||
|
|
|
@ -2,3 +2,4 @@ destructive
|
|||
shippable/posix/group4
|
||||
skip/aix
|
||||
skip/osx
|
||||
skip/macos
|
||||
|
|
|
@ -2,3 +2,4 @@ destructive
|
|||
shippable/posix/group4
|
||||
skip/aix
|
||||
skip/osx
|
||||
skip/macos
|
||||
|
|
|
@ -2,3 +2,4 @@ destructive
|
|||
shippable/posix/group4
|
||||
skip/aix
|
||||
skip/osx
|
||||
skip/macos
|
||||
|
|
|
@ -2,4 +2,5 @@ destructive
|
|||
shippable/posix/group4
|
||||
skip/aix
|
||||
skip/osx
|
||||
skip/macos
|
||||
skip/freebsd
|
||||
|
|
|
@ -2,3 +2,4 @@ destructive
|
|||
shippable/posix/group4
|
||||
skip/aix
|
||||
skip/osx
|
||||
skip/macos
|
||||
|
|
|
@ -2,3 +2,4 @@ destructive
|
|||
shippable/posix/group4
|
||||
skip/aix
|
||||
skip/osx
|
||||
skip/macos
|
||||
|
|
|
@ -2,3 +2,4 @@ destructive
|
|||
shippable/posix/group4
|
||||
skip/aix
|
||||
skip/osx
|
||||
skip/macos
|
||||
|
|
|
@ -2,3 +2,4 @@ destructive
|
|||
shippable/posix/group4
|
||||
skip/aix
|
||||
skip/osx
|
||||
skip/macos
|
||||
|
|
|
@ -2,3 +2,4 @@ destructive
|
|||
shippable/posix/group4
|
||||
skip/aix
|
||||
skip/osx
|
||||
skip/macos
|
||||
|
|
|
@ -2,5 +2,6 @@ destructive
|
|||
shippable/posix/group1
|
||||
skip/aix
|
||||
skip/osx
|
||||
skip/macos
|
||||
skip/freebsd
|
||||
skip/rhel
|
||||
|
|
|
@ -2,3 +2,4 @@ destructive
|
|||
shippable/posix/group5
|
||||
skip/aix
|
||||
skip/osx
|
||||
skip/macos
|
||||
|
|
|
@ -2,3 +2,4 @@ destructive
|
|||
shippable/posix/group4
|
||||
skip/aix
|
||||
skip/osx
|
||||
skip/macos
|
||||
|
|
|
@ -2,3 +2,4 @@ destructive
|
|||
shippable/posix/group4
|
||||
skip/aix
|
||||
skip/osx
|
||||
skip/macos
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
destructive
|
||||
shippable/posix/group1
|
||||
skip/osx
|
||||
skip/macos
|
||||
skip/freebsd
|
||||
skip/rhel
|
||||
skip/aix
|
||||
|
|
|
@ -2,4 +2,5 @@ destructive
|
|||
shippable/posix/group1
|
||||
skip/aix
|
||||
skip/osx
|
||||
skip/macos
|
||||
skip/rhel
|
||||
|
|
7
tests/integration/targets/setup_gnutar/handlers/main.yml
Normal file
7
tests/integration/targets/setup_gnutar/handlers/main.yml
Normal file
|
@ -0,0 +1,7 @@
|
|||
---
|
||||
- name: uninstall gnu-tar
|
||||
community.general.homebrew:
|
||||
name: gnu-tar
|
||||
state: absent
|
||||
become: yes
|
||||
become_user: "{{ brew_stat.stat.pw_name }}"
|
20
tests/integration/targets/setup_gnutar/tasks/main.yml
Normal file
20
tests/integration/targets/setup_gnutar/tasks/main.yml
Normal file
|
@ -0,0 +1,20 @@
|
|||
---
|
||||
- when: ansible_facts.distribution == 'MacOSX'
|
||||
block:
|
||||
- name: MACOS | Find brew binary
|
||||
command: which brew
|
||||
register: brew_which
|
||||
|
||||
- name: MACOS | Get owner of brew binary
|
||||
stat:
|
||||
path: "{{ brew_which.stdout }}"
|
||||
register: brew_stat
|
||||
|
||||
- name: MACOS | Install gnu-tar
|
||||
community.general.homebrew:
|
||||
name: gnu-tar
|
||||
state: present
|
||||
become: yes
|
||||
become_user: "{{ brew_stat.stat.pw_name }}"
|
||||
notify:
|
||||
- uninstall gnu-tar
|
|
@ -2,3 +2,4 @@ destructive
|
|||
shippable/posix/group1
|
||||
skip/aix
|
||||
skip/osx
|
||||
skip/macos
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
shippable/posix/group2
|
||||
skip/aix
|
||||
skip/osx
|
||||
skip/macos
|
||||
skip/freebsd
|
||||
skip/rhel8.0
|
||||
skip/rhel8.0b
|
||||
|
|
|
@ -3,4 +3,5 @@ skip/aix
|
|||
skip/docker
|
||||
skip/freebsd
|
||||
skip/osx
|
||||
skip/macos
|
||||
destructive
|
||||
|
|
|
@ -3,4 +3,5 @@ needs/root
|
|||
shippable/posix/group1
|
||||
skip/aix
|
||||
skip/osx
|
||||
skip/macos
|
||||
skip/freebsd
|
||||
|
|
|
@ -1,2 +1,3 @@
|
|||
dependencies:
|
||||
- setup_pkg_mgr
|
||||
- setup_gnutar
|
||||
|
|
|
@ -3,4 +3,5 @@ shippable/posix/group1
|
|||
skip/aix
|
||||
skip/freebsd
|
||||
skip/osx
|
||||
skip/macos
|
||||
skip/rhel
|
||||
|
|
|
@ -3,4 +3,5 @@ shippable/posix/group1
|
|||
skip/aix
|
||||
skip/freebsd
|
||||
skip/osx
|
||||
skip/macos
|
||||
skip/rhel
|
||||
|
|
1
tests/utils/shippable/macos.sh
Symbolic link
1
tests/utils/shippable/macos.sh
Symbolic link
|
@ -0,0 +1 @@
|
|||
remote.sh
|
Loading…
Reference in a new issue