Commit Graph

2351 Commits (5bd16d438d21a0ea93046d0cedda76678ac7c978)

Author SHA1 Message Date
Sloane Hertel deaa9a21f9 Fix using loops with environment and add tests (#32796)
(cherry picked from commit 7bb35e8781)
8 years ago
Matt Martz f0cae29d57 Ensure that the become password is written on py3 in the ssh connection plugin. Fixes #34727
(cherry picked from commit 29c1d5cb5d)
8 years ago
Matt Clay 204d0f7bea Make xattr test conditional on feature support.
(cherry picked from commit 77726b471f)
8 years ago
Matt Clay 797d999513 Update FreeBSD completion for ansible-test.
(cherry picked from commit 73132d3906)
8 years ago
Matt Clay 3a963a68c2 Limit pytest < 3.3.0 for python 2.6.
(cherry picked from commit 58286ef93b)
8 years ago
Matt Clay 6e1f29cde2 Limit paramiko to < 2.4.0 for python 2.6.
(cherry picked from commit 5f5e150771)
8 years ago
Matt Clay 218103d540 Update vyos completion in network.txt.
(cherry picked from commit 3a6fad38fa)
8 years ago
Matt Clay f0f2031eaf Use vyos/1.1.8 in CI.
(cherry picked from commit 887f227994)
8 years ago
Matt Clay b123fa4d6f Fix and re-enable zypper* integration tests in CI.
(cherry picked from commit 781219bcfd)
8 years ago
Matt Clay 49f3dda7f6
WIP: Resolve CI issues for stable-2.3. (#32605)
* Revert "If pip install requirements.txt fails, upgrade pip (#32399)"

This reverts commit 2fb4f547a9.

* Avoid pep8 user warning in 1.7.1.
* Limit cryptography version for Windows tests.
* Upgrade pip in virtualenv for pip test.
* Upgrade pip in virtualenv for groupby_filter test.
* Upgrade pip in virtualenv for template_jinja2_latest test.
8 years ago
John R Barker 2fb4f547a9
If pip install requirements.txt fails, upgrade pip (#32399)
* If pip install requirements.txt fails, upgrade pip

* Use pycodestyle instead of pep8 (#25947)

(cherry picked from commit 4b3d6dfa8a)

* Ignore more

* pylint lint fixes

* Ignore more
8 years ago
Matt Martz 4c6612eeba Fix patching to epel package
(cherry picked from commit be9cc70b74)
8 years ago
Matt Clay 4cddc2e7c9 Backport ansible-test updates from devel.
The primary change is use of the new servers for
provisioning remote OS X instances for use in CI.
8 years ago
Matt Clay 09d38049eb Fix wheel dependency on python 2.6. (#29388)
* Fix wheel dependency on python 2.6.
* Limit wheel version for tox on python 2.6.

(cherry picked from commit 50ae33d3c1)
8 years ago
Brian Coca 7787ed26bf less confusing 'args' message (#29053)
* less confusing 'args' message
* fix test

(cherry picked from commit fe3b4325c2)
9 years ago
Matt Clay 051bcb2c6f Replace opensuse42.1 with opensuse42.3 in CI.
(cherry picked from commit af9b0ba47b)
9 years ago
Brian Coca 1e3231c967 removing tests cause they rely on 2.4 semantics 9 years ago
Matt Clay a0c3182f2e Fix PEP 8 issues. 9 years ago
Pilou 873f023b13 alternatives: handle absent link, add integration tests (#27967)
* alternatives: add integration tests

* alternatives: handle absent link (fix AttributeError)

Error occurred at least on Debian Stretch and OpenSuse 42.2:
Traceback (most recent call last):
  File "/tmp/ansible_RY6X41/ansible_module_alternatives.py", line 161, in <module>
    main()
  File "/tmp/ansible_RY6X41/ansible_module_alternatives.py", line 113, in main
    current_path = current_path_regex.search(display_output).group(1)
AttributeError: 'NoneType' object has no attribute 'group'

update-alternatives stdout sample:
dummy - manual mode
  link best version is /usr/bin/dummy1
  link currently absent
  link dummy is /usr/bin/dummy

* alternatives: PEP 8 fixes

* alternatives: fix copyright in integration tests

* alternatives: nested loops handle more than 2 items

Thanks to Michael Scherer (@mscherer) for pointing that.

* alternatives: enable integration tests

(cherry picked from commit 016cd0691c)
9 years ago
Toshio Kuratomi 78d153d5a0 the smart transport is broken by ssh retry code
1fe67f9 introduced retries to the ssh connection put file and fetch
file.  Unfortunately, that change broke the smart transport because it
started raising exceptions instead of returning from _run().  This
breakage is documented in #23711.

An attempt to fix it was made at #23717 but the first attempt was
objected to as needing to touch too much code.  The second attmept was
objected to as smart was forced to encapsulate retries (thus retrying
a sftp "rety" times before trying scp "retry" times and then finally
moving onto piped).  This third attempt has retries encapsulate smart.
So each sub-transport is tried once and if all three fail, another retry
attempt is made which tries each of the three again.

Fixes #23711
Fixes #23717

(cherry picked from commit 3edac559d3)
9 years ago
schwatvogel 5b6b402755 Fixes #23558 rpm key ids (#27847)
* Changed rpm-keyid extraction and verification method
* minor style fixes
* fixed rpm key deletion,added integration test for mono key,fixed wording in integration tests

(cherry picked from commit b8d371ca8b)
9 years ago
David Newswanger e471fb3a94 added integration tests for rpm_key (#26134)
(cherry picked from commit 5242ff1b59)
9 years ago
Jordan Borean 392d268809 win_find: fix for empty nested directories (#26164)
(cherry picked from commit 98fc54f02d)
9 years ago
Matt Clay 6698dc00e3 Add potential work-around for expect on macOS.
http://pexpect.readthedocs.io/en/stable/commonissues.html#truncated-output-just-before-child-exits

(cherry picked from commit 0c7602fb59)
9 years ago
Will Thames 2385e2be27 include_role handlers bug fix (#26335)
* Ensure that include_role properly fires handlers

include_role needs to ensure that any handlers included
with the role are added to the _notified_handler and
_listening_handler lists of the TaskQueueManager, otherwise
it fails when trying to run the handler.

Additionally, the handler needs to be added to the
PlayIterator's `_uuid_cache` or it fails after running
the handler

Add more uuid debug statements - this code was hard
to debug with existing debug statements, so add more
uuid information at little additional output cost.

Fixes #18411

* Add tests for include_role handlers

Tests for #18411

(cherry picked from commit ef8c9798d3)
9 years ago
Toshio Kuratomi 795e75433e Expand the result from pwd to make the test more robust
Sometimes MacOSX's pwd doesn't return an expanded path.  Not sure why
but this test is still valid if we expand it via a playbook filter so
go ahead and do that.

(cherry picked from commit 6a41a4f311)
9 years ago
Matt Clay 0e0400b12e Disable zypper* tests which are timing out.
(cherry picked from commit d031ff8aec)
9 years ago
Ricardo Carrillo Cruz a3817721fc Cherry pick EAPI tearup/down tests changes (#26938)
* Replace Ethernet5 for Ethernet2 on eos integration tests (#26674)

In our CI, we only have 3 NICS: Management1, Ethernet1 and
Ethernet2.
(cherry picked from commit 4006b5d18f)

* Add CHANGELOG entry
9 years ago
Ricardo Carrillo Cruz 4490cc9e9e Cherry pick eapi tearup down changes (#26935)
* Remove enable EAPI from prepare_eos_tests (#26910)

Enabling EAPI is not common on CLI *and* EAPI tests, therefore
enabling it should be put at the eapi.yaml task level.
(cherry picked from commit 258d2058cd)

* Add missing provider on disable eapi tasks (#26928)

(cherry picked from commit 4532c791fd)

* Add CHANGELOG entry
9 years ago
Ricardo Carrillo Cruz 32b4342209 Cherry pick 2.4 eos banner fixes (#26904)
* Fix multiple EOS EAPI code and test issues (#26651)

(cherry picked from commit b81209c187)

* Fix eos_banner basic-motd eapi asserts (#23398)

The commands in EAPI does not contain the plain command sent to the
device as a one liner, but it is split in cmd/input keys.
(cherry picked from commit ce9826d76e)

* Add CHANGELOG entry
9 years ago
Trishna Guha 85e9a07117 privilege escalation for eos integration test (#26597)
Signed-off-by: Trishna Guha <trishnaguha17@gmail.com>
9 years ago
Jordan Borean 7f5a0715bf win_regedit: fix for same dword value (#26415)
(cherry picked from commit 8e9d04043a)
9 years ago
Matt Davis f9f83c5826 converted become runas to explicit CreateProcessWithLogonW
* fixes become_method: runas for unprivileged users
* sets permissions on tempdir appropriately
* allows automatic system environment generation for new token (old Process.Start way prevents this)
* add basic become runas tests

(cherry picked from commit 6d99a0a934)
9 years ago
John R Barker e947321831 Remove trailing newlines (#26350) 9 years ago
John R Barker 9d94a309ca Remove test of openvswitch_db state (#26349)
The `state:` option didn't exist in Ansible 2.3, so don't test it.
9 years ago
Yanis Guenane 1ad1ad6ace Missing prepare_ovs_tests directory (#26337)
openvswitch_db tests have been backported from devel to stable-2.3[1],
but the role to prepare_ovs_tests was missing from the backport, hence
the test, when run complained about missing roles.

This commit aims to bring this directory into stable-2.3 tree.

[1] https://github.com/ansible/ansible/pull/26330
9 years ago
John R Barker 94660f792a Add openvswitch_db tests (#26330)
openvswitch_db tests were added during 2.4 development, though the
module still existed in 2.3, so backport the tests.

This is needed for distributed-ci.
9 years ago
Matt Clay e36f568194 Limit yamllint version on python 2.6.
(cherry picked from commit 55aec8ebc9)
9 years ago
Matt Davis 6cca156fde re-enable non-pipelined mode for Powershell (#26124)
* fixes #23986
* fixes 3rd-party Windows connection plugins that don't support pipelining (eg awsrun)

(cherry picked from commit 6677559c69)
9 years ago
Matt Clay 940a78c5ba Update FreeBSD pg test to use postgresql95-server.
The py-psycopg2 package now requires postgresql95-server instead of
postgresql93-server. Installing py-psycopg2 will automatically remove
postgresql93-server if it is installed, breaking integration tests.

(cherry picked from commit 15beaed6bc)
9 years ago
John R Barker cac3cfa9eb MySQL Password updates (#25825)
* MySQL Password updates

* Disable user_password_update_test

(cherry picked from commit 448efdb9e5)
9 years ago
John R Barker 8813b4f03d Update docs based on 23946 (#25860)
* Update docs based on 23946

Original PR https://github.com/ansible/ansible/pull/23946

* files/copy.py is now clean
9 years ago
John R Barker a40b1c455d Use stronger password for MySQL (#25821) (#25822)
Previously we were getting "Your password does not satisfy the current policy requirements"
Possibly caused by a software update on Fedora
(cherry picked from commit 7ee7fa7332)
9 years ago
Robin Roth 5ebaaf26bb Reenable git tests (#25341)
* Revert "Temporarily disable failing git test."
* Use correct hash for depth=1 test

(cherry picked from commit 8f7c8ef3a5)
9 years ago
Matt Clay dd5dde6c0e Temporarily disable failing git test.
(cherry picked from commit dab1b1fe5b)
9 years ago
Ricardo Carrillo Cruz 8bfc36db6e Add missing provider on basic-motd IOS test (#25307)
Without this it fails, as it needs elevated privs.
(cherry picked from commit ffc74fdca2)
9 years ago
Matt Clay da8963d788 Temporary work-around for setuptools 36.0.0 bug. (#25243)
* Temporary work-around for setuptools 36.0.0 bug.
* Use older setuptools for pip integration test.
* Limit isort version to avoid new test failures.

(cherry picked from commit 9d8aa43c67)
9 years ago
Ricardo Carrillo Cruz ec545d7b42 Add provider param to prepare_iosxr_tests role tasks (#25163)
This will avoid passing -u -k to ansible-playbook
(cherry picked from commit 69efb61008)
9 years ago
John R Barker d07ab49904 Update main.yml 9 years ago
bengerman13 f9d781bcab add xattr integration tests to ci (#24950)
* add xattr integration tests to ci

* fix package syntax

* remove unnecessary become, disable xattr for bsd and osx

(cherry picked from commit 4b6db5db7c)
9 years ago