Commit Graph

1362 Commits (eed6cf5dadc5e64353635506be82ba8e983cd20a)

Author SHA1 Message Date
Toshio Kuratomi ea58ccfd5e Make the fact gathering give a little more information on failure 8 years ago
James Cammarata 88310a7f28 Adding iproute to certain RH-based docker images 8 years ago
Toshio Kuratomi 9a6a5a5516 add a fact gathering check for the default of all 8 years ago
Toshio Kuratomi f0e6d28815 Make integration tests for fact gathering assert on failure 8 years ago
Toshio Kuratomi 512825455e Make ohai and facter work via module_utils Fact classes rather than in the setup module 8 years ago
Yannig Perré 88772b6003 Add a way to restrict gathered facts in Ansible:
- Using gather_subset options
- By ignoring ohai/chef or facter/puppet facts
8 years ago
James Cammarata 81788e627d Adding unit tests for TaskResult 8 years ago
James Cammarata 2fa1936ff9 Adding python-dev to the list of packages for ubuntu1204 docker
[ci skip]
8 years ago
James Cammarata 9d459386ce Also adding an upgrade of pycrypto to ubuntu1204 config 8 years ago
James Cammarata 90afc5e7d2 Adding rubygems to the ubuntu1204 docker config
[no ci]
8 years ago
James Cammarata af282eb979 Fixing typo in ubuntu1204 docker config 8 years ago
James Cammarata ff5584a349 Updating jinja2 in ubuntu1204 docker image 8 years ago
James Cammarata 1222830155 Initial commit for Ubuntu 12.04 docker config for testing 8 years ago
Matt Clay a44b88936b Add unicode dir to connection tests. 8 years ago
James Cammarata 286d91d722 Reorganizing tox stuff and making py3-specific requirements 8 years ago
James Cammarata ab682b2917 Moving docker tests to pre-compiled images 8 years ago
James Cammarata adc9a25a06 Merge pull request #14904 from mattclay/mysql-test-timeout
Lower connect timeout for test_mysql_variables.
8 years ago
James Cammarata c6af811573 Fixing equality check in run_tests.sh for sanity 8 years ago
Matt Clay 20eee14a2c Lower connect timeout for test_mysql_variables. 8 years ago
Brian Coca 7e3c92e909 predictable docker names and autoremove if no fail 8 years ago
James Cammarata f700a7e3ce Removing forced pull from build step in run_tests.sh 8 years ago
Matt Clay 5c206eaf0b Add additional plugins to connection tests.
- docker
- libvirt_lxc
- jail

These tests will not run as part of the build, but can be run manually.
8 years ago
Brian Coca a07495e4c8 allow tests to run with parameters
also fixed test_test_infra to allow tags
8 years ago
James Cammarata c2441c15c3 Revert "corrected failed_when test"
This reverts commit 140df20504.
8 years ago
James Cammarata 963178f392 Revert "complete correction of test, key exists but is false"
This reverts commit 7e6343213b.
8 years ago
Brian Coca 923548f6d5 removed test_infra from setup as it fails when using --tags 8 years ago
Brian Coca 7e6343213b complete correction of test, key exists but is false 8 years ago
Brian Coca 140df20504 corrected failed_when test 8 years ago
nitzmahone 6c835b2600 ensure assert and fail work before we test anything else 8 years ago
Toshio Kuratomi 2b8a0cdddc Fix ssh connection unittests for python3.4 8 years ago
James Cammarata 9d61a6cba8 Fixing PlayIterator bugs
* Unit tests exposed a problem where nested blocks did not correctly
  hit rescue/always portions of parent blocks
* Cleaned up logic in PlayIterator
* Unfortunately fixing the above exposed a potential problem in the
  block integration tests, where a failure in an "always" section may
  always lead to a failed state and the termination of execution
  beyond that point, so certain parts of the block integration test
  were disabled.
8 years ago
James Cammarata f0d3284ead Adding more unit tests for ssh connection plugin 8 years ago
James Cammarata 2f472fd4e9 Adding start of ssh connection unit tests 8 years ago
Matt Davis 22344c5320 Merge pull request #14812 from mattclay/test-connection
Add tests for connection plugins.
8 years ago
Matt Martz 8aee648bc9 Add as dependency of the parsing make target 8 years ago
Matt Martz 098333b2ec Fix redirects for get_url
* fetch_url shouldn't both accept follow_redirects and support follow_redircts via module.params
* Default follow_redirects for open_url should be 'urllib2'
* Add redirect test for get_url
8 years ago
James Cammarata 299d93f6e9 Updating unit tests for PlayIterator
This knowingly introduces a broken test, planning to fix that later.
8 years ago
James Cammarata 8cfdaa16f4 Fixing error in localedef usage for f23 docker image 8 years ago
James Cammarata 0e17a6f036 Another attempt at fixing random f23 locale failures in docker image 8 years ago
James Cammarata 2ee0c1b175 Fixing centos6 docker image for pycrytpo too 8 years ago
James Cammarata 762c99f77c Fixing centos6 docker image to upgrade jinja2 8 years ago
James Cammarata 56670bd150 More tweaks for fedora on docker 8 years ago
James Cammarata b97a98f69e Trying to fix up the fedora23 docker image 8 years ago
James Cammarata b72cd3a6d2 Adding fedora rawhide to the travis mix 8 years ago
James Cammarata c632873936 Adding centos 6 to the travis mix 8 years ago
James Cammarata e5844ee03d Revert "Testing adding -j2 to the run_tests.sh script to speed up docker tests"
This reverts commit db2a0ae255, as it does not
add any speed to the tests on Travis.
8 years ago
James Cammarata db2a0ae255 Testing adding -j2 to the run_tests.sh script to speed up docker tests 8 years ago
Matt Clay 49892b287b Use vars to eliminate redundant test commands. 8 years ago
Matt Clay ca62bc5db3 Add tests for connection plugins. 8 years ago
James Cammarata 981f451f0e Adding fedora 23 to the Docker tests on travis 8 years ago
James Cammarata 7f34705b0c Fixing up Dockerfiles some more to get tests passing fully 8 years ago
James Cammarata fa630872d9 Minor update to the Dockerfiles 8 years ago
James Cammarata 069e597aaa Fixing locale stuff in ubuntu 14.04 Dockerfile 8 years ago
James Cammarata f56af2ec3f Updating docker files for tests 8 years ago
James Cammarata e4acd44e23 Make sure test script fails on any error 8 years ago
Matt Martz d8876b5c03 Run /sbin/init in the ubuntu docker image, as we do with centos 8 years ago
James Cammarata 92dcad8e99 Adding docker container capabilities to Travis 8 years ago
James Cammarata 80b10bd669 Moving creating of testing work dir out of dep role and into Makefile 8 years ago
Toshio Kuratomi 7160b40ab1 Fix the Makefile to run under dash (POSIX /bin/test syntax) 8 years ago
James Cammarata b853e932d1 Adding unit tests for symbolic mode conversion stuff in basic.py 8 years ago
James Cammarata 18240d350c Adding a skip for the literal_eval test on py3 8 years ago
James Cammarata 0ea3a9d08d Removing tabs from test_basic.py 8 years ago
James Cammarata 1de9357c2f Attempt at cleaning up issues introduced by new basic.py unit tests 8 years ago
James Cammarata e011f52557 Expanding unit tests for module_utils/basic.py 8 years ago
Matt Davis 3d58fd1402 Merge pull request #13481 from jhawkesworth/a21_reg_merge_tests
windows; adding integration tests for win_regmerge (extras module)
8 years ago
James Cammarata c56e3aabfb Clean up jsonify unit test with format to remove json lib differences 8 years ago
James Cammarata 7c049c3200 Fixing up jsonify and adding unit tests 8 years ago
James Cammarata a9d25f455c More unit tests for ActionBase 8 years ago
James Cammarata e588437067 Adding some unicode params to the ActionBase module formatting test 8 years ago
Toshio Kuratomi 7cb29cdbec Workaround py2.6's StringIO 8 years ago
Toshio Kuratomi b70bf3b056 Use io.StringIO and io.BytesIO instead of StringIO.StringIO for compat with py3 8 years ago
Toshio Kuratomi c29f51804b Fix mixing of bytes and str in module replacer (caused traceback on python3) 8 years ago
James Cammarata 01d835700b Cleaning up some py version problems with ActionBase unit tests 8 years ago
James Cammarata 3518a05db6 Starting to expand unit tests for ActionBase plugin class 8 years ago
James Cammarata 9de24a3735 Assert things against the recursive copy result to make sure it did something 8 years ago
James Cammarata e02b98274b issue callbacks per item and retry fails
- now workers passes queue to task_executor so it can send back events per item and on retry attempt
- updated result class to pass along events to strategy
- base strategy updated to forward new events to callback
- callbacks now remove 'items' on final result but process them directly when invoked per item
- new callback method to deal with retry attempt messages (also now obeys nolog)
- updated tests to match new signature of task_executor

fixes #14558
fixes #14072
8 years ago
Matt Martz cacb74aeeb Merge pull request #14340 from sivel/uri-no-httplib2
Add RedirectHandler class for controlling redirects in urllib2
8 years ago
Matt Martz 3e9408e317 Add some additional integration tests that mix SSL verification and redirects 8 years ago
Brian Coca 3b3709e715 Merge pull request #14488 from bcoca/become_shell_fixes
shell + become fixes
8 years ago
James Cammarata 58a6cf822a Merge pull request #13203 from willthames/galaxy_10620
Allow tree-ish versions for ansible-galaxy
8 years ago
Brian Coca 6dc910c13a shell + become fixes
1 less level of shell + quoting
simplified become commands, less quote and shell
9 years ago
Brian Coca bb155e1142 added test for cartesian lookup 9 years ago
Brian Coca 08b3dbcda3 corrected several usages of deprecated bare vars 9 years ago
Brian Coca ba51ed06cf changed from deprecated implicit bare var 9 years ago
Matt Martz 97e0f29a5b Add/improve tests for the uri module 9 years ago
James Cammarata b713f1ca53 Fix for copy test as ansible_ssh_user is not set by default now 9 years ago
James Cammarata 8039ceee0f Tweak block integration tests to also test the free strategy 9 years ago
James Cammarata 5466510edb Removing .out file for integration tests and adding to .gitignore 9 years ago
James Cammarata f4bd3be71f Adding block integration tests 9 years ago
Robin Roth ed059ffca9 add integration test for ansible-pull
* this test includes the behavior described in #13688 and #13681
* it runs a minimal playbook and checks for correct use of inventory and limit
9 years ago
Toshio Kuratomi 0e410bbc8a Squashing was occuring even though pkgs didn't have a template that would be affected by squash
This broke other uses of looping (looping for delegate_to in the
reported bug)

Fixes #13980
9 years ago
Brian Coca fad6eb1844 fixed unit test to match new output of become/su 9 years ago
Brian Coca 46fde754af Merge pull request #14044 from skorochkin/devel
Adding support for scm-based role source urls (ansible-galaxy)
9 years ago
James Cammarata fb797a9e77 Fixing role dependency chain creation
The dep chain for roles created during the compile step had bugs, in
which the dep chain was overwriten and the original tasks in the role
were not assigned a dep chain. This lead to problems in determining
whether roles had already run when in a "diamond" structure, and in
some cases roles were not correctly getting variables from parents.

Fixes #14046
9 years ago
Sergii Korochkin 13e8732598 [hotfix] add missed playbook file 9 years ago
Sergii Korochkin 1325c21ca0 Adding support for scm-based role source urls (incl. integration test to cover it) 9 years ago
Toshio Kuratomi d97d28ecb0 Merge pull request #14025 from ansible/run_command-env-rework
rework run_command's env setting to not change os.environ for the res…
9 years ago
Toshio Kuratomi a68d90a71a rework run_command's env setting to not change os.environ for the rest of the module.
New param to run_command to modify the environment for just this invocation.
Documentation and comment adjustments.
9 years ago
Brian Coca c09c01a1f5 go back to defaulting wrapping commands in shell
this was taken out in an effort to default to the user's shell but creates issues as this is not known ahead of time
and its painful to set executable and shell_type for all servers, it should only be needed for those that restrict the user
to specific shells and when /bin/sh is not available. raw and command may still bypass this by explicitly passing None.
fixes #13882

still conditional
9 years ago
James Cammarata b1223746cd Relocate use of ERROR to display class, to avoid doubling up 9 years ago