Commit graph

36684 commits

Author SHA1 Message Date
Matt Clay
5e2d91cad4 [stable-2.5] Reduce testing of Ubuntu versions.
Removing:

- Ubuntu 14.04 with Python 2.7
- Ubuntu 16.04 with Python 3.5

Keeping:

- Ubuntu 16.04 with Python 2.7
- Ubuntu 18.04 with Python 3.6.
(cherry picked from commit c8f2becb7a)

Co-authored-by: Matt Clay <matt@mystile.com>
2019-04-02 22:52:08 -07:00
Matt Clay
7376ca5688 [stable-2.5] Disable failing azure_rm_managed_disk test.
(cherry picked from commit 1a286a95e5)

Co-authored-by: Matt Clay <matt@mystile.com>
2019-03-21 07:10:54 -07:00
Matt Clay
845bf18953 [stable-2.5] Add constraint for deepdiff.
(cherry picked from commit 9a135fbcef)

Co-authored-by: Matt Clay <matt@mystile.com>
2019-03-19 16:32:43 -07:00
Matt Clay
570cc5a519 Disable tests for broken win_chocolatey module. 2019-03-15 13:24:06 -07:00
Wojciech Sciesinski
58bc9d1063 Don't run integration tests for OS'es older than Windows 2016 (#53057) 2019-03-15 10:17:54 -07:00
Matt Clay
062033289f [stable-2.5] Keep existing to_yaml behavior with pyyaml >= 5.1. (#53772)
In pyyaml versions before 5.1 the default_flow_style for yaml.dump
was None. Starting with 5.1 it is now False. This change explicitly
sets the value to None to maintain the original to_yaml behavior.

The change to pyyaml was made in the following commit:

507a464ce6
(cherry picked from commit 7f0e09aa31)

Co-authored-by: Matt Clay <matt@mystile.com>
2019-03-13 20:22:56 -07:00
Dag Wieers
5cbf1bfa03 ACI: Fix examples in documentation (stable-2.5) (#52965) 2019-03-12 09:15:09 -07:00
Matt Davis
4ad6924081 New release v2.5.15 2019-02-21 08:19:04 -08:00
Jordan Borean
7df1ea6e21 git: kill gpg-agent in tests on newer OpenSUSE hosts (#52476) (#52490)
(cherry picked from commit bb0a69e084)
2019-02-18 10:12:07 -08:00
Jordan Borean
fc21a94613 alternatives - fix OpenSUSE dir on newer distros (#52458) (#52462)
(cherry picked from commit 3ecd6e19f7)
2019-02-18 10:11:45 -08:00
Jordan Borean
8ef2d6d3e0 zypper_repository: fix return check on newer OpenSUSE versions (#52457) (#52459)
(cherry picked from commit d6453a79f5)
2019-02-18 10:11:17 -08:00
Jordan Borean
58e0273b89 zypper: fix tests to use new URL for OpenSUSE 15.0 (#52453) (#52454)
(cherry picked from commit 4b296da6a2)
2019-02-18 08:51:55 -08:00
Jordan Borean
542a4dc396 opensuse - install password-store from specific repo (#52439) (#52441)
(cherry picked from commit 4a94bd8d9d)
2019-02-18 08:45:37 -08:00
Matt Martz
f3edc09152 [stable-2.5] Disallow use of remote home directories containing .. in their path (CVE-2019-3828) (#52133) (#52175)
* Disallow use of remote home directories containing .. in their path

* Add CVE to changelog
(cherry picked from commit b34d141)

Co-authored-by: Matt Martz <matt@sivel.net>
2019-02-18 08:45:05 -08:00
Wojciech Sciesinski
ad9be1068b Correct integration tests for the win_disk_facts module (#51044) (#51771)
* Correct integration tests for the win_disk_facts module

* Exclude W2K8, W2K8-R2 from tests run under CI
2019-02-18 08:42:12 -08:00
Brian Coca
8a61f73098 fix no log templating (#44506) (#51500)
* fix tempating issues with no_log and loops (#44468)

* fix tempating issues with no_log and loops

 - task is no log if any item is
 - added test cases

fixes #43294

(cherry picked from commit bda074d34e)

* use play context to avoid bug when jinja2+py3

(cherry picked from commit b0678e71a8)
2019-02-18 08:41:37 -08:00
Jordan Borean
6cf37dc49f test win_setup - make py3 compatible (#51693)
(cherry picked from commit f78cdcd2c5)
2019-02-11 19:47:26 -08:00
Jordan Borean
86f142c6db win_service - use custom binary for tests (#51689)
(cherry picked from commit 2e99dea867)
2019-02-11 19:46:35 -08:00
Matt Davis
83b2ef45b0 [stable-2.5] fix azure_rm_deployment test
* recent changes to args for hosted template file broke the test; changed test to use a specific known-working commit instead of `master`.
* long-term may want to consider hosting the template in httptester or just embedding a local copy
(cherry picked from commit 46bf387)

Co-authored-by: Matt Davis <mrd@redhat.com>
2019-02-07 13:22:07 -08:00
Jordan Borean
ce9585447e Get docker tests working on OpenSUSE (#51896)
(cherry picked from commit c92fcf0b57)
2019-02-07 13:11:38 -08:00
Matt Davis
439af1d4e1
fix string_format sanity check (#51780) (#51783)
* newer version of Pylint moved the impl; use conditional import to find for new/old

(cherry picked from commit 6654c7aeea)
2019-02-05 17:28:45 -08:00
Jordan Borean
42c75b1015 ansible-test: make the httptester for Windows more resiliant around the shell chosen (#51416)
(cherry picked from commit ce8db479f0)
2019-01-31 14:15:35 -08:00
Jordan Borean
34b42ab48b ansible-test: add Ubuntu 18.04 container (#50790) - 2.5 (#51156)
* ansible-test: add Ubuntu 18.04 container (#50790)

* ansible-test: Add Ubuntu 18.04 to Shippable CI nodes

* re-add ubuntu1604/3 to matrix

* forgot to add environment for git kill gpg-agent

(cherry picked from commit 828df4b336)

* ansible-test: apt cleanup and futher 18.04 fixes (#50906)

(cherry picked from commit bbad033a5e)
2019-01-31 13:39:19 -08:00
Felix Fontein
7e36064afd Fixed broken link in _docker.py (#50950) (#51501)
* Fixed broken link in _docker.py

* Update lib/ansible/modules/cloud/docker/_docker.py

Co-Authored-By: ArnabRaxit <arnabready@gmail.com>
(cherry picked from commit 82661d5cf4)
2019-01-31 14:51:27 -06:00
Jordan Borean
465b848985 ansible-test git: kill gpg-agent to remove locks (#50917)
* ansible-test git: kill gpg-agent to remove locks

* skip gpg-agent kill for OpenSUSE

(cherry picked from commit 3db6b9b416)
2019-01-24 13:10:17 -08:00
Jordan Borean
1b767d32e6 ansible-test: fix dpkg_selections on Ubuntu 18.04 (#50915)
(cherry picked from commit a54eb58156)
2019-01-24 13:10:17 -08:00
Jordan Borean
c8cab703af ansible-test: add postgresql var file for Ubuntu 18.04 (#50914)
(cherry picked from commit 8c5b2048de)
2019-01-24 13:10:17 -08:00
Jordan Borean
4506b718a0 ansible-test: rename setup_mysql_db Ubuntu name to work with 18.04 (#50907)
(cherry picked from commit 518699988f)
2019-01-24 13:10:17 -08:00
Jordan Borean
3f67ba3da0 test subversion - support Ubuntu 18.04 (#50791)
(cherry picked from commit 91522bd9c4)
2019-01-24 13:10:17 -08:00
Matt Clay
b2067295af [stable-2.5] Fix subversion integration test on Fedora 29. (#51089)
* Fix subversion integration test on Fedora 29.

This upgrades the sqlite-libs and subversion packages to make sure
that the version of sqlite expected by subversion is installed.

* Fix compatibility with RHEL and CentOS.
(cherry picked from commit d4dbc7f2e0)

Co-authored-by: Matt Clay <matt@mystile.com>
2019-01-18 16:24:47 -08:00
Jordan Borean
251bdc73ae setup_rabbitmq - fix erlang pinned dependencies (#51048)
(cherry picked from commit 18c35b69fb)
2019-01-17 16:57:53 -08:00
Matt Clay
909baa4c58 [stable-2.5] Move unrelated connection test to separate target.
(cherry picked from commit d59bc9ae48)

Co-authored-by: Matt Clay <matt@mystile.com>
2019-01-11 15:50:00 -08:00
Matt Clay
9e3e59041b [stable-2.5] Fix dpkg_selections integration test.
Download package from S3 since the previous location no longer exists.
(cherry picked from commit fd56788a14)

Co-authored-by: Matt Clay <matt@mystile.com>
2019-01-11 10:27:55 -08:00
Sviatoslav Sydorenko
4a2a63ceea [stable-2.5] 🚸 🐍 🍒 ⛏ Integrate cherry picker (#41403)
This enables developers to use cherry-picker for backporting purposes.
This tool originally comes from Core Python Development Workflow.

Ref: https://pypi.org/p/cherry-picker
Ref: https://github.com/python/core-workflow/tree/master/cherry_picker

Also:
* 📝 Add docs about supporting cherry-picker
(cherry picked from commit 97cc0cce7f)

Co-authored-by: Sviatoslav Sydorenko <wk.cvs.github@sydorenko.org.ua>
2019-01-09 22:21:58 -08:00
Matt Clay
c748512c4c [stable-2.5] Fix run.py --branch argument.
The API docs state that both `branch` and `branchName` are valid,
but only `branchName` appears to work.
(cherry picked from commit 31c1bdd6a8)

Co-authored-by: Matt Clay <matt@mystile.com>
2019-01-07 16:50:37 -08:00
Jordan Borean
c93c4fdc49 ansible test: re-enable mysql tests with fix (#50430) (#50519)
(cherry picked from commit 6620facd19)
2019-01-07 11:00:51 -08:00
Matt Clay
6548b7a558 [stable-2.5] Add env command to ansible-test and run in CI. (#50176)
* Add `env` command to ansible-test and run in CI.
* Avoid unnecessary docker pull.
(cherry picked from commit 01833b6fb1)

Co-authored-by: Matt Clay <matt@mystile.com>
2018-12-22 00:10:24 -08:00
Matt Clay
c56a23416b [stable-2.5] Add retries for Invoke-ScriptAnalyzer in pslint.
Hopefully this will work around the intermittent CI failures due
to NullReferenceException, which then succeed on a retry.
(cherry picked from commit 4bd60c313b)

Co-authored-by: Matt Clay <matt@mystile.com>
2018-12-21 20:27:33 -08:00
Jordan Borean
6dbea6d19e ansible-test: change Fedora 24, 25 to 28, 29 (#49586) - 2.5 (#49587)
* ansible-test: change Fedora 24 to 28 (#49586)

(cherry picked from commit 5392caee14)

* fix openssl_certificate tests

* ansible-test - swap Fedora 25 for 29 (#49634)

(cherry picked from commit 6a09db5131)

* test make sure everything passes

* Fix rpm_key test on Fedora 27.

(cherry picked from commit 39aa50022a)

* skip yum tests on Fedora hosts
2018-12-21 17:17:35 -08:00
Matt Clay
64c913b46f Switch remaining Azure DB tests to new SKUs.
This fixes tests which are failing due to unavailable SKUs:

GP_Gen4_2 -> B_Gen5_1
westus -> westus2

Both changes result in lower costs to run tests as well.

Changes derived from: https://github.com/ansible/ansible/pull/45444
2018-12-21 16:06:59 -08:00
Matt Clay
1ccf17b9dd Switch Azure DB tests from GP_Gen4_2 to B_Gen5_1.
Also switch from uswest to uswest2.

GP_Gen4_2 is more expensive and is no longer available in all regions.
The uswest location is also more expensive than uswest2.

This is a bug fix since GP_Gen4_2 is no longer available in uswest.

Applying this fix directly to older stable branches as the tests have
changed significantly in devel.

(cherry picked from commit e5b2b2ff2b)
2018-12-21 12:43:22 -08:00
Matt Clay
5713b33df7 [stable-2.5] Fix MySQL tests when running under Docker. (#50047)
(cherry picked from commit 0ccd231afd)

Co-authored-by: Matt Clay <matt@mystile.com>
2018-12-17 23:02:23 -08:00
Matt Clay
ff6f96849c [stable-2.5] Add OverlayFS work-around for CloudStack tests.
(cherry picked from commit 61b5adcf31)

Co-authored-by: Matt Clay <matt@mystile.com>
2018-12-17 23:02:01 -08:00
Jordan Borean
841b5edc92 ansible-test: do not upgrade homebrew to speed up tests (#49914)
(cherry picked from commit 695feea541)
2018-12-13 19:07:20 -08:00
Matt Davis
208ef77365 New release v2.5.14 2018-12-13 09:32:46 -08:00
Brian Coca
e0a81d133f ensure ssh retry respects no log (#49569) (#49726)
* ensure ssh retry respects no log

backport for fix of (#49569)

(cherry picked from commit ba4c2ebeac)

* peeepeee blank

* added cve
2018-12-10 14:15:05 -08:00
Matt Clay
ad7823dbd5 [stable-2.5] Fix template_jinja2_latest aliases file.
(cherry picked from commit a1a0893ebd)

Co-authored-by: Matt Clay <matt@mystile.com>
2018-12-10 13:40:35 -08:00
Jordan Borean
7e36b632ca win_hotfix: use S3 bucket for update files in test (#49696)
(cherry picked from commit 478fcf7abb)
2018-12-10 10:29:10 -08:00
Jordan Borean
a280a8ac0b create local subversion server for tests (#49047) - 2.5 (#49583)
* create local subversion server for tests (#49047)

* create local subversion server for tests

* fix sanity issues

* don't touch system config when bringing up site

* removed original setup files

* fix opensuse config

(cherry picked from commit 0420d606de)

* manually add setup_passlib for 2.5
2018-12-06 10:12:27 -08:00
Jordan Borean
6713c3bcfd ansible-test: recursively scan setup dependencies (#49170) (#49216)
* ansible-test: recursively scan setup dependencies

* removed need for default set()

(cherry picked from commit 694c505452)
2018-12-06 10:11:44 -08:00