Commit Graph

1456 Commits (3e964dbfaeb1a97480a608566e90747681999130)

Author SHA1 Message Date
jctanner b7479a1dc6 Add a function to check for killed processes in all strategies (#16684)
* Add a function to check for killed processes so that if any
threads are sigkilled or sigtermed, the entire playbook execution is aborted.

(cherry picked from commit 238c6461f6)
8 years ago
James Cammarata 137385059c Fixing type in 293723f (mock_handler -> mock_handler_task) 8 years ago
James Cammarata 293723f4f6 Fix unit test for base strategy in regards to handler changes 8 years ago
nitzmahone e7690b0dd1 Revert "update action unit test for powershell shebang behavior"
This reverts commit 637f6f23e1.
8 years ago
nitzmahone 637f6f23e1 update action unit test for powershell shebang behavior
(cherry picked from commit de549ad675)
8 years ago
= c6faf106f8 fix win_msi tests by setting wait: true on all win_msi tasks.
I suspect this problem was masked previously as older versions of pywinrm
where significantly slower, allowing more time for the windows installer service to complete.
9 years ago
James Cammarata 4b86191a24 Updating integration tests for async testing
(cherry picked from commit cd4412016a)
9 years ago
James Cammarata 68232d10cf Fix unit tests for handler stuff in base strategy test 9 years ago
Robin Roth 5982a0632f Fix git shallow update (#16224)
* add git shallow fetch test

covers https://github.com/ansible/ansible-modules-core/issues/3782

updating a repo with depth=1 fails silently if version==HEAD

* raise git version support supporting depth to 1.9.1

(cherry picked from commit d0ccedc617)
9 years ago
Matt Clay 8659f255df Fix test_async. (#16552)
* Conditionally run test_async in docker containers.
* Revise test_async test.

(cherry picked from commit 4e369a31db)
9 years ago
Matt Clay 6755e9c848 Run test_async after test_connection. 9 years ago
Matt Clay 75fa80f73c Parse async response in async action. (#16534)
* Parse async response in async action.
* Add async test for non-JSON data before module output.
* Fix existing async unit test.

Resolves #16156

(cherry picked from commit 292785ff2b)
9 years ago
Matt Clay a598f26006 Update shippable shared dir for COPY_SOURCE. (#16511)
Tests now use '/shared' instead of '/tmp/shared-dir' when using
COPY_SOURCE. This avoids issues with containers purging '/tmp'.

(cherry picked from commit fbfadc47c7)
9 years ago
Pilou 57eb60757c Lookup password omit salt (#16361)
* Lookup unencrypted password must not include salt
* Integration test lookup: remove previous directory
* Test that lookup password doesn't return salt
* Lookup password: test behavior with empty encrypt parameter

Closes #16189

(cherry picked from commit b361bf90d7)
9 years ago
nitzmahone bb43d4d00b fix win_setup integration test to match fact name
(cherry picked from commit a45e842ba1c030d9022bf2e23ca7ad5002a2019c)
9 years ago
= 5d03a65ee8 added further tests for win_regedit to cover the changes made
under https://github.com/ansible/ansible-modules-extras/pull/2436
9 years ago
James Cammarata 43d1ea0cfc Track notified handlers by object rather than simply their name
Due to the fact that roles may be instantiated with different sets of
params (multiple inclusions of the same role or via role dependencies),
simply tracking notified handlers by name does not work. This patch
changes the way we track handler notifications by using the handler
object itself instead of just the name, allowing for multiple internal
instances. Normally this would be bad, but we also modify the way we
search for handlers by first looking at the notifying tasks dependency
chain (ensuring that roles find their own handlers first) and then at
the main list of handlers, using the first match it finds.

This patch also modifies the way we setup the internal list of handlers,
which should allow us to correctly identify if a notified handler exists
more easily.

Fixes #15084
9 years ago
Matt Clay 4c59c0b31d Fix docker unit test. Not deprecated in 2.1. 9 years ago
Brian Coca efed4e577c raw should not use default executable (#16085)
also removed unused cruft in script
(cherry picked from commit a529a60478)
9 years ago
James Cammarata 2e003adbc8 Expand return code values returned by TQM and strategies
This allows the PlaybookExecutor to receive more information regarding
what happened internal to the TaskQueueManager and strategy, to determine
things like whether or not the play iteration should stop.

Fixes #15523

(cherry picked from commit fbec2d9692)
9 years ago
Robin Roth 263e51095f use userdir module as example instead of alias (#15540)
* alias module is very basic and removing it leads to the suse default
  config failing
* future improvements might test different modules and the effect of
  them being removed
(cherry picked from commit cf62a62b83)
9 years ago
Rene Moser e1765c9d0d tests, postgresql: add ubuntu 16.04 support
(cherry picked from commit 5583027f99)
9 years ago
Rene Moser d14b29efc2 tests, apt_repository: disable Ubuntu 16.04 as there is no package yet
(cherry picked from commit 39e4caafb2)
9 years ago
Matt Clay 8b3ce600d0 Detect use of Travis tests on Shippable.
This can occur when building pre-Shippable branches or PRs.

(cherry picked from commit 03597143d0)
9 years ago
Robin Roth 945fb3411e Run tests on ubuntu1604 and opensuseleap (#15936)
* reduce async sleep time in test
* make zypper test less destructive (don't break following uses of zypper)
* fix ca cert on suse
* fix/enable postgres/mysql on opensuseleap
* fix mysql test for mysql versions 5.7.6 and newer
* skip sni_host check on ubuntu1604
* add HTTPTESTER flag for test_uri

ubuntu 16.04 uses dash which drops env variables containing a dot
we work around this by adding an explicit env variable to enable httptester

(cherry picked from commit c06884eff0)
9 years ago
Rene Moser e2ebae5522 tests: fix tests on Debian 8
(cherry picked from commit c20d1fced7)
9 years ago
Matt Clay 6f0bc4dd82 Corrected reference to httptester container.
(cherry picked from commit b755bcd875)
9 years ago
Matt Martz 247d4ebb8d Add httptester docker container files and update run_tests.sh to use ansible/httptester
(cherry picked from commit 164f247ec8)
9 years ago
Michael Scherer 86516eae05 Do not test vca and vmware.py for py2.4 (#15887)
Since both of them depend on libraries not
working on python 2.4, we shouldn't restrict
ourself on 2.4, cf https://github.com/ansible/ansible/pull/15870
(cherry picked from commit cc61531a74)
9 years ago
Matt Martz df33ff6c65 Use httptester docker image for http tests (#15811)
* Use httptester docker image for http tests

* When not running with an httptester linked container, use public test sites

(cherry picked from commit accf40d8a8)
9 years ago
Brian Coca 73b250ecf7 fix default for removing images
(cherry picked from commit 2af8e3b9d8)
9 years ago
Brian Coca d77ff116c2 added ability to also subset make tests
(cherry picked from commit 27a1ae4732)
9 years ago
Brian Coca 6c80be47a2 another var 'defaulted' in run_tests
(cherry picked from commit 47d58c30e4)
9 years ago
Brian Coca 77dc6a36fd added defaults for 'optional' vars
(cherry picked from commit 3669ab2456)
9 years ago
Brian Coca 217f8fd824 fine tuned shell switches for run_tests.sh
(cherry picked from commit 52a714143f)
9 years ago
Matt Clay dee38ceb95 Update how shippable scripts are called.
(cherry picked from commit 6d74f43eff)
9 years ago
Matt Clay 66f8da7258 Add full support for Shippable CI.
(cherry picked from commit b0e1efbd62)
9 years ago
Toshio Kuratomi ccbcb4b5e9 Update grep for six to not falsely trigger when six is only a substring of a different library 9 years ago
Toshio Kuratomi 4304574c00 Fix unarchive failures when the destination is a symlink to a directory (#15999)
Also add integration tests for this problem and unicode filenames inside
a tarball.

Fixes #3725
9 years ago
Toshio Kuratomi 6b964a1594 Update test off make_become for ssh pty race mitigation (#15931) 9 years ago
nitzmahone ff346a199c fix windows integration tests to run under kerberos users 9 years ago
Robin Roth 03e7f54071 Don't use 'from ansible.module_utils import foo' style here as it breaks (#15756)
py.test"
9 years ago
Toshio Kuratomi cae6240e5e Ship constants to the modules via internal module params rather than a secondary dict. 9 years ago
Toshio Kuratomi 90fb1fb3fa If we can't squash for any reason, then simply do not optimize the items loop.
Also add more squashing testcases

Fixes #15649
9 years ago
Toshio Kuratomi 8a84ef80e2 Strip junk after JSON return. (#15822)
Fixes #15601
9 years ago
Toshio Kuratomi b7cab0533e Remove reload from arg related tests. Changes to how ziploader passes args mean we don't need reload anymore. (#15782) 9 years ago
Toshio Kuratomi d2e8e8d6a7 Switch to a different url for testing SNI right now. (#15798) 9 years ago
nitzmahone 761cdc794e add jimi-c's unit test for squashed skip results, tweaked is_skipped() logic to pass 9 years ago
Yannig 40c0f34c41 When var name is the same as var content, try to template it before reporting that var is not defined. (#13629)
* When var name is the same as var content, try to template it before reporting that var is not defined.
Add asserts in test_var_blending to check this special corner case.

* Fix integration tests when using debug with list or dict.
9 years ago
Toshio Kuratomi 1e5708514b Fix ziploader for the cornercase of ansible invoking ansible.
* Make ziploader's ansible and ansible.module_utils libraries into
  namespace packages.
* Move __version__ and __author__ from ansible/__init__ to
  ansible/release.py.  This is because namespace packages only load one
  __init__.py.  If that is not the __init__.py with the author and
  version info then those won't be available.
* In ziploader, move the version ito ANSIBLE_CONSTANTS.
* Change PluginLoader to properly construct the path to the plugins even
  when namespace packages are present.
9 years ago