Commit Graph

1233 Commits (909216959a28de936511131686fa5fa023d489f6)

Author SHA1 Message Date
Jonathon Klobucar b150f18382 Fix for serial when percent amount is less than one host (#15396)
Ansible when there was a percentage that was calculated to be less than
1.0 would run all hosts as the value for a rolling update.

The error is due to the fact that Python will round a
float that is under 1.0 to 0, which will trigger the case of
0 hosts. The 0 host case tells ansible to run all hosts.

The fix will see if the percentage calculation after int
conversion is 0 and will else to 1 host.
9 years ago
James Cammarata 0df4bfe063 Don't override the http status code when successful in urls.py 9 years ago
Matt Martz 9fe10860a6 Don't pass context to urlopen, instead add it to the handlers. Fixes https://github.com/ansible/ansible-modules-core/issues/3437 9 years ago
nitzmahone ec2ee01de3 ensure test_win_user fails on bogus error
We weren't previously checking the error message- it failed as expected, but for the wrong reason.
9 years ago
James Cammarata 9b7f466116 Updating the test_script integration tests with the version from devel 9 years ago
James Cammarata d68b463089 New unit tests for #13630 fix 9 years ago
James Cammarata 13cb986873 Removing tests related to filename param (which is not in 2.0) 9 years ago
James Cammarata c1c6142f4b Updating run_tests.sh from devel 9 years ago
James Cammarata d470967902 Removing a test causing problems on Py3 which is not critical for 2.0 9 years ago
James Cammarata c923f614ea Adding acl package to all docker images 9 years ago
Matt Martz 199f593ed3 Revert "Cleaning up tests for uri module which doesn't use fetch_url in 2.0"
This reverts commit bc607127ef.
9 years ago
Toshio Kuratomi c928d13618 Fix ansible_sudo_pass inventory variable so that it overrides setting of sudo password from the command line 9 years ago
James Cammarata 52998646e2 Removing invalid test target as it's not in 2.0 yet 9 years ago
James Cammarata bc607127ef Cleaning up tests for uri module which doesn't use fetch_url in 2.0 9 years ago
James Cammarata 6fe0865fe0 Cleaning up tests which don't apply to 2.0 9 years ago
James Cammarata 07abd05e38 Reorganizing tox stuff and making py3-specific requirements 9 years ago
James Cammarata 89cc762970 Make sure test script fails on any error 9 years ago
James Cammarata 6b1648f708 Mass update of test/ directory from devel 9 years ago
Matt Martz ecdf07eebf Add/improve tests for the uri module 9 years ago
James Cammarata e88934e1d7 Tweak block integration tests to also test the free strategy 9 years ago
James Cammarata 5ee599f3ee Removing .out file for integration tests and adding to .gitignore 9 years ago
James Cammarata 0e4ef296c0 Adding block integration tests 9 years ago
Toshio Kuratomi f601d29ce2 Change url so that we don't test https in the tests for file perms 9 years ago
Toshio Kuratomi 890998d07e Add integration test for #11821 9 years ago
James Cammarata 1ccd534cec Clean up jsonify unit test with format to remove json lib differences 9 years ago
James Cammarata b71fbb9364 Fixing up jsonify and adding unit tests 9 years ago
James Cammarata f7dc7e3aab Make sure dict strings are unicode for jsonify 9 years ago
James Cammarata b0c72c59e4 Adding coding header to action plugin unit test file 9 years ago
James Cammarata 2347e5c14c More unit tests for ActionBase 9 years ago
James Cammarata 971b471595 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
9 years ago
Brian Coca 35a5fe85f0 shell + become fixes
1 less level of shell + quoting
simplified become commands, less quote and shell
9 years ago
James Cammarata 94afe2f0de Fix for copy test as ansible_ssh_user is not set by default now 9 years ago
James Cammarata 7a8520ac1a 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
Toshio Kuratomi 849def8d6e 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 97cd0bc803 fixed unit test to match new output of become/su 9 years ago
Sergii Korochkin c52a35ff34 [hotfix] add missed playbook file 9 years ago
Sergii Korochkin 16ee2090bd Adding support for scm-based role source urls (incl. integration test to cover it) 9 years ago
Brian Coca 8647fdc7f2 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 0d2a9d3f53 Relocate use of ERROR to display class, to avoid doubling up 9 years ago
Toshio Kuratomi 63404821da 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 c06b2e4622 correctly deals with non serializable type
combine_vars shoudl really be data types, but some just get in
in test, add dict to mock and avoid combine_vars using object
9 years ago
Toshio Kuratomi f53cb5f63e Integration tests for https://github.com/ansible/ansible-modules-core/pull/558 9 years ago
Toshio Kuratomi a8f160d2fd More fixes for unicode handling in the connection plugins.
Tested that ssh, docker, local, lxc-libvirt, chroot all work with the
updated unicode integration test.
9 years ago
Toshio Kuratomi add2e9cbd1 Fix problems with non-ascii values passed as part of the command to connection plugins
@drybjed discovered this with non-ascii environment variables and
command line arguments to script and raw module.
9 years ago
Rene Moser 369ed9feed cloudstack: test_cs_instance: more integration tests
cloudstack: extend test_cs_instance addressing recovering

cloudstack: test_cs_instance: add tests for using display_name as indentifier.
9 years ago
Toshio Kuratomi dd59fc176e Going to do this in the connection plugin
Revert "Fix make tests-py3 on devel. Fix for https://github.com/ansible/ansible/issues/13638."

This reverts commit 725e40c5e6.
9 years ago
Brian Coca 2786908bac fixed tests to follow new invocation structure
also added maxdiff setting to see issues clearly when they happen
9 years ago
Yannig Perré 725e40c5e6 Fix make tests-py3 on devel. Fix for https://github.com/ansible/ansible/issues/13638. 9 years ago
James Cammarata b0e7ea78af Actually disable parallel makes for integration runner 9 years ago
James Cammarata 37908735d4 Dropping instance size back down since we're not doing parallel builds 9 years ago