Fix and enable more tests for osx and freebsd. (#20482)

* Fix `iterators` test for osx.
* Enable `git` test for osx.
* Enable `get_url` test for osx and freebsd.
* Remove unused SNI_URI from uri test.
* Use ansible hosted SNI host oustside docker.
* Enable `uri` test for osx and freebsd.
* Enable `gathering_facts` test for osx.
* Skip single task on osx until test is fixed.
This commit is contained in:
Matt Clay 2017-01-19 17:10:33 -08:00 committed by GitHub
parent 75437bbe3c
commit 9213d0c5b0
10 changed files with 7 additions and 16 deletions

View file

@ -1,2 +1 @@
posix/ci/group3 posix/ci/group3
skip/osx

View file

@ -55,7 +55,7 @@
that: that:
- 'ansible_user_id|default("UNDEF_MIN") != "UNDEF_MIN"' - 'ansible_user_id|default("UNDEF_MIN") != "UNDEF_MIN"'
- 'ansible_interfaces|default("UNDEF_NET") == "UNDEF_NET"' - 'ansible_interfaces|default("UNDEF_NET") == "UNDEF_NET"'
- 'ansible_mounts|default("UNDEF_HW") != "UNDEF_HW"' - 'ansible_mounts|default("UNDEF_HW") != "UNDEF_HW" or ansible_distribution == "MacOSX"'
- 'ansible_virtualization_role|default("UNDEF_VIRT") == "UNDEF_VIRT"' - 'ansible_virtualization_role|default("UNDEF_VIRT") == "UNDEF_VIRT"'
- hosts: facthost4 - hosts: facthost4

View file

@ -1,4 +1,2 @@
destructive destructive
posix/ci/group1 posix/ci/group1
skip/freebsd
skip/osx

View file

@ -1,3 +1,2 @@
destructive destructive
posix/ci/group1 posix/ci/group1
skip/osx

View file

@ -48,6 +48,9 @@
that: that:
- not update_new_tag|changed - not update_new_tag|changed
- "'newtag' in listoftags.stdout_lines" - "'newtag' in listoftags.stdout_lines"
# This test fails on osx.
# Skipping it here so the remaining tests can be enabled.
when: '{{ ansible_distribution != "MacOSX" }}'
- name: clear checkout_dir - name: clear checkout_dir

View file

@ -1,2 +1 @@
posix/ci/group2 posix/ci/group2
skip/osx

View file

@ -193,10 +193,10 @@
- "{{ output_dir + '/bar1' }}" - "{{ output_dir + '/bar1' }}"
- name: set expected - name: set expected
set_fact: first_expected="{{ output_dir | expanduser + '/foo1' }}" set_fact: first_expected="{{ output_dir | expanduser | realpath + '/foo1' }}"
- name: set unexpected - name: set unexpected
set_fact: first_unexpected="{{ output_dir | expanduser + '/bar1' }}" set_fact: first_unexpected="{{ output_dir | expanduser | realpath + '/bar1' }}"
- name: verify with_first_found results - name: verify with_first_found results
assert: assert:

View file

@ -1,4 +1,4 @@
badssl_host: wrong.host.badssl.com badssl_host: wrong.host.badssl.com
httpbin_host: httpbin.org httpbin_host: httpbin.org
sni_host: sni.velox.ch sni_host: ci-files.testing.ansible.com
badssl_host_substring: wrong.host.badssl.com badssl_host_substring: wrong.host.badssl.com

View file

@ -1,4 +1,2 @@
destructive destructive
posix/ci/group1 posix/ci/group1
skip/freebsd
skip/osx

View file

@ -7,8 +7,3 @@ uri_os_packages:
- python-pyasn1 - python-pyasn1
- python-openssl - python-openssl
- python-urllib3 - python-urllib3
# Needs to be a url to a site that is hosted using SNI.
# Eventually we should make this a test server that we stand up as part of the test run.
#SNI_URI: 'https://sni.velox.ch'
SNI_URI: "https://www.mnot.net/blog/2014/05/09/if_you_can_read_this_youre_sniing"