Commit Graph

3629 Commits (2b7edb9eb20afefae1335bb40c5bc8abfd799ec2)

Author SHA1 Message Date
Matt Clay 2b7edb9eb2 Get packages for dnf and yum tests from S3.
(cherry picked from commit 22d5f5d97f)
7 years ago
Matt Clay 302a36db99 Remove obsolete `test/utils/docker/` directory.
(cherry picked from commit 78bd020429)
7 years ago
Matt Clay 3a5b1a1517 List quay.io images during Shippable run.
(cherry picked from commit a96a51b0c6)
7 years ago
Matt Clay b1aef381f8 Switch distro test containers to quay.io images.
(cherry picked from commit 773c0982b0)
7 years ago
Matt Clay ebcba98b38 Fix change detection on retried Shippable jobs.
(cherry picked from commit c0aaf0fff7)
7 years ago
Matt Clay 4c1d64cc94 Ignore CentOS 6.10 for passwordstore test.
(cherry picked from commit 18da873531)
7 years ago
Matt Clay 044399527e Restore repos after zypper_repository test runs.
This also allows the test to run on newer containers by not
manipulating any of the pre-configured repositories.

(cherry picked from commit cac51e6da8)
7 years ago
Toshio Kuratomi b7e31ddb63 [stable-2.4] Fix another corner case of too many warnings for world readable current working directory
There should be no warning if there is no ansible.cfg file i nthe
current working directory.
(cherry picked from commit f46c943)

Co-authored-by: Toshio Kuratomi <a.badger@gmail.com>
7 years ago
Matt Clay a3bc0ac6cf Use runtime instead of datetime for test output.
(cherry picked from commit 31a5b874a1)
7 years ago
Toshio Kuratomi cdfdced5d8 [stable-2.4] Only print warning when ansible.cfg is actually skipped (#43583)
Only print warning when ansible.cfg is actually skipped

* Also add unittests for the find_ini_config_file function
* Add documentation on world writable current working directory
  config files can no longer be loaded from a world writable current
  working directory but the end user is allowed to specify that
  explicitly.  Give appropriate warnings and information on how.

Fixes #42388.
(cherry picked from commit 30662bedad)

Co-authored-by: Toshio Kuratomi <a.badger@gmail.com>
8 years ago
Matt Clay 9d08bc8242 Disable uri tests on RHEL, FreeBSD and OSX.
The httpbin.org test endpoint is too unstable for the tests to pass reliably.
8 years ago
Matt Clay dbf28d7f8f Disable get_url tests on RHEL, FreeBSD and OSX.
The httpbin.org test endpoint is too unstable for the tests to pass reliably.
8 years ago
Matt Clay 96b53bd40a Remove unwanted containers at CI job start.
(cherry picked from commit 528de5b82f)
8 years ago
Matt Clay 90580f96e9 Temporarily disable gem test on osx.
Disabled due to lack of newer TLS version support on the test system.

(cherry picked from commit dce708e63e)
8 years ago
Toshio Kuratomi 9a2ef71d2d Tasks that are expected to fail need to begin with a special string
https://github.com/ansible/ansible/pull/41462

Commit: a5fd86c
8 years ago
Brian Coca 17830a01ba no_log even when task_result doesn't provide key
- now also checks task property
 - added reproducer to tests for unreachable status on item loop

(cherry picked from commit 336b3762b2)
8 years ago
Nilashish Chakraborty b3a1761365
Fixes ios_logging idempotency issues in 2.4 (#41076)
* Fixes ios_logging & Added more tests

* Fixes buffered dest Shippable errors

* Fixed review comments

* Added entry to CHANGELOG.md
8 years ago
Nilashish Chakraborty eedb78a8ba
Fix eos_logging idempotency issue CP into 2.4 (#40933)
* Fixes eos_logging idempotence issue #31862 (#40604)

* eos_logging idempotence fix

* fixed eos_logging idempotence issue

* Fixed pylint and pep8 errors

* Added tests for eos_logging & minor fix

* Removed q statements

(cherry picked from commit b9ea646839)

* Added eos_logging fix in CHANGELOG
8 years ago
Matt Clay 0967cc0c70 Fix FreeBSD package install in test setup.sh.
(cherry picked from commit c3d3b6cedc)
8 years ago
Sviatoslav Sydorenko ea68bb33d0
[backport] Detect separate git dir and set git config path value appropriately
PR #38016

Co-authored-by: Sviatoslav Sydorenko <wk.cvs.github@sydorenko.org.ua>
(cherry picked from commit 0a701ff)

Co-authored-by: Senya <senya@riseup.net>
8 years ago
Matt Clay e450722867 Fix uri test on Python 2.6.
(cherry picked from commit 5c124876fa)
8 years ago
Matt Clay d68900d728 Use HTTPS instead of HTTP for httpbin tests. (#39457)
The httpbin.org site is now redirecting HTTP to HTTPS.

(cherry picked from commit b92ef8e54a)
8 years ago
Matt Clay 169cfbb25b Disable failing tests.
(cherry picked from commit f9ba5bc5e9)
8 years ago
Matt Clay ddc9708557 Update the cloudstack test container reference.
(cherry picked from commit ac1fbbeabc)
8 years ago
Matt Clay 05d6b2086f Fix mysql-server install/upgrade on Ubuntu 16.04. (#39241)
* Fix mysql-server install/upgrade on Ubuntu 16.04.
* Prevent service restart in docker_secret test.

(cherry picked from commit 996f9c2467)
8 years ago
Matt Clay b34402178e Update httptester container reference.
(cherry picked from commit 35748e5228)
8 years ago
Matt Clay cff1cc6cc8 Restore docker_secret test on RHEL.
(cherry picked from commit 57f1298074)
8 years ago
Matt Clay 2cffb28b3d Disable failing fortios_* tests.
(cherry picked from commit 938625add7)
8 years ago
Matt Clay e985272791 Use new vcenter simulator container location.
(cherry picked from commit 1d5c933ecf)
8 years ago
John R Barker 00348c3db0
Explicitly exclude W504 (#38539) (#38553)
pycodestyle 2.4 has changed the default for W504
(cherry picked from commit 38491fe93d)
8 years ago
Trishna Guha 9be623dd95
fix nxos_snapshot test assert (#38458)
Signed-off-by: Trishna Guha <trishnaguha17@gmail.com>
8 years ago
Trishna Guha 846bfbf378 add nxos_snapshot test for missing required param (#37248)
Signed-off-by: Trishna Guha <trishnaguha17@gmail.com>
(cherry picked from commit 2501834c42)
8 years ago
Matt Clay dff97aa252 Fix docker_secret test on RHEL.
(cherry picked from commit f1899f784b)
8 years ago
Matt Clay 03245022a2 Pin httptester SHA.
(cherry picked from commit 8232c95f42)
8 years ago
Matt Clay a1abc2788d Fix uri test on Python 2.6.
(cherry picked from commit 1fd9a616a4)
8 years ago
Pilou 4f071bdc2f Connection error messages are unsafe: wrap them (#37329)
* Check that connection error msg are not unsafe

* Connection error messages are unsafe: wrap them

For example, in case of error, docker connection plugin returns exception
message containing Go template. These messages weren't tagged as unsafe
and were consequently rendered:

The conditional check 'result is failed' failed. The error was:
{
  'msg': u'Docker version check ([\'/usr/bin/docker\', \'version\', \'--format\', "\'{{.Server.Version}}\'"]) failed: Got permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Get http://%2Fvar%2Frun%2Fdocker.sock/v1.35/version: dial unix /var/run/docker.sock: connect: permission denied\n',
  'failed': True
}:
template error while templating string: unexpected '.'.
String: Docker version check (['/usr/bin/docker', 'version', '--format', "'{{.Server.Version}}'"]) failed: Got permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Get http://%2Fvar%2Frun%2Fdocker.sock/v1.35/version: dial unix /var/run/docker.sock: connect: permission denied

(cherry picked from commit 4378542ac7)
8 years ago
s-hertel 02e591746c Use hyphens in bucket name instead of underscores
As of March 1st underscores are not supported in us-east-1
8 years ago
Matt Clay 7fdc56724a Disable failing github_issue integration test.
(cherry picked from commit 30bb70cf2d)
8 years ago
Jordan Borean 1f888d9f51 powershell: backport of environment key and value fix 8 years ago
Brian Coca 0d57282a1a remove extra fields from debug output
fixes #35493

updated tests

(cherry picked from commit a79378fccb)
8 years ago
Trishna Guha 92cea82a4e
vyos_l3_interface fix (#36721)
* vyos_l3_interface fix

Signed-off-by: Trishna Guha <trishnaguha17@gmail.com>

* update test and changelog

Signed-off-by: Trishna Guha <trishnaguha17@gmail.com>
8 years ago
Matt Clay 2d05ecb26c Temporarily disable subversion test on osx.
(cherry picked from commit f283edcb19)
8 years ago
Matt Martz 668a17cfba
Backport #36602 for stable-2.4 (#36607)
* Start of tests for modify_module, specifically to ensure proper shebang replacement on old style modules (#36602)

(cherry picked from commit a7062b7587)

* Modify test to work on 2.4 due to lacking templar kwarg
8 years ago
Deepak Agrawal 3b0686ffe8
vyos_config IndexError in sanitize_config (#36375) (#36566)
* Bug in del(list) logic. Say you have a list of 4 elements a[0-3]
and you have to remove index 1 and 3, if you remove index 1 first
then list is cut short a[0-2] and does not have index 3

Fix: Remove indexes in reverse sorted order e.g. 3 and 1 in above
example so that order of indexes remain preserved even after deleting

fix is to remove indexes in reverse sorted order

* Add test cases for failed case

(cherry picked from commit 0bbea9a579)
8 years ago
Sam Doran 23289bd2f2 Check for regexp match when using insertbefore or insertafter (#36474)
Add tests to cover this scenario
Fixes #36156

(cherry picked from commit 723daf3e3a)

# Conflicts:
#	lib/ansible/modules/files/lineinfile.py
8 years ago
David Newswanger a98700917f added support for --testcase flag in ansible-test (#36134)
* added support for --testcase flag in ansible-test

* fixed command format

* added tab completion

* fixed sanity issues

* added documenation for --testcase

* don't autocomplete when multiple modules are selected

(cherry picked from commit 3f5caf659e)
8 years ago
Trishna Guha 7c4e343864
networking fix cherry-pick (#35936)
* Add minor conditional checks to nxos_bgp sanity test (#35476)

* Add minor conditional checks to nxos_bgp sanity test

* Make ansibot happy

(cherry picked from commit 5a198e1e6a)

* fixing the removed_in_version to 2.6. (#35853)

(cherry picked from commit 73650cf854)

* fix eos_config second-level indent idempotece (#35588)

* fix eos_config second-level indent idempotece

Signed-off-by: Trishna Guha <trishnaguha17@gmail.com>

* address ganeshrn's comment - update doc

Signed-off-by: Trishna Guha <trishnaguha17@gmail.com>
(cherry picked from commit b30f3b9f4d)

* update CHANGELOG

Signed-off-by: Trishna Guha <trishnaguha17@gmail.com>
8 years ago
Matt Clay 61fe2efa48 Temp install of setuptools for import coverage. (#35752)
(cherry picked from commit f46f6c8dec)
8 years ago
Sam Doran ed5a73251b Fix lineinfile to insert line when pattern exists elsewhere in the file. (#33393)
* Insert lines before or after when the regexp exists elsewhere in the file

* Correct filter syntax in lineinfile integration test

* Use multi-line YAML syntax on lineinfile tests

Unify indentation

* Add lineinfile tests for same line matched to different regexps

* Remove debug statement from test

(cherry picked from commit f8f2b6d61d)
8 years ago
Matt Clay feea6425f3 Fix pip integration test.
(cherry picked from commit ea70b49b11)
8 years ago