James Cammarata
069e597aaa
Fixing locale stuff in ubuntu 14.04 Dockerfile
2016-03-03 22:29:21 -05:00
James Cammarata
f56af2ec3f
Updating docker files for tests
2016-03-03 21:03:28 -05:00
James Cammarata
e4acd44e23
Make sure test script fails on any error
2016-03-03 20:44:13 -05:00
Matt Martz
d8876b5c03
Run /sbin/init in the ubuntu docker image, as we do with centos
2016-03-03 16:45:47 -06:00
James Cammarata
92dcad8e99
Adding docker container capabilities to Travis
2016-03-03 15:26:08 -05:00
James Cammarata
80b10bd669
Moving creating of testing work dir out of dep role and into Makefile
2016-03-03 15:26:08 -05:00
Toshio Kuratomi
7160b40ab1
Fix the Makefile to run under dash (POSIX /bin/test syntax)
2016-03-03 09:25:12 -08:00
James Cammarata
b853e932d1
Adding unit tests for symbolic mode conversion stuff in basic.py
2016-03-01 16:41:57 -05:00
James Cammarata
18240d350c
Adding a skip for the literal_eval test on py3
2016-03-01 14:33:05 -05:00
James Cammarata
0ea3a9d08d
Removing tabs from test_basic.py
2016-03-01 14:15:15 -05:00
James Cammarata
1de9357c2f
Attempt at cleaning up issues introduced by new basic.py unit tests
2016-03-01 14:06:58 -05:00
James Cammarata
e011f52557
Expanding unit tests for module_utils/basic.py
2016-03-01 13:53:13 -05:00
Matt Davis
3d58fd1402
Merge pull request #13481 from jhawkesworth/a21_reg_merge_tests
...
windows; adding integration tests for win_regmerge (extras module)
2016-03-01 00:42:09 +00:00
James Cammarata
c56e3aabfb
Clean up jsonify unit test with format to remove json lib differences
2016-02-29 15:08:59 -05:00
James Cammarata
7c049c3200
Fixing up jsonify and adding unit tests
2016-02-29 14:51:23 -05:00
James Cammarata
a9d25f455c
More unit tests for ActionBase
2016-02-29 12:59:58 -05:00
James Cammarata
e588437067
Adding some unicode params to the ActionBase module formatting test
2016-02-27 10:05:22 -05:00
Toshio Kuratomi
7cb29cdbec
Workaround py2.6's StringIO
2016-02-26 17:59:00 -08:00
Toshio Kuratomi
b70bf3b056
Use io.StringIO and io.BytesIO instead of StringIO.StringIO for compat with py3
2016-02-26 16:43:05 -08:00
Toshio Kuratomi
c29f51804b
Fix mixing of bytes and str in module replacer (caused traceback on python3)
2016-02-26 16:43:05 -08:00
James Cammarata
01d835700b
Cleaning up some py version problems with ActionBase unit tests
2016-02-26 16:22:35 -05:00
James Cammarata
3518a05db6
Starting to expand unit tests for ActionBase plugin class
2016-02-26 12:47:59 -05:00
James Cammarata
9de24a3735
Assert things against the recursive copy result to make sure it did something
2016-02-23 16:29:08 -05:00
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
2016-02-23 15:07:06 -05:00
Matt Martz
cacb74aeeb
Merge pull request #14340 from sivel/uri-no-httplib2
...
Add RedirectHandler class for controlling redirects in urllib2
2016-02-23 11:53:16 -06:00
Matt Martz
3e9408e317
Add some additional integration tests that mix SSL verification and redirects
2016-02-23 11:48:09 -06:00
Brian Coca
3b3709e715
Merge pull request #14488 from bcoca/become_shell_fixes
...
shell + become fixes
2016-02-18 01:45:37 -08:00
James Cammarata
58a6cf822a
Merge pull request #13203 from willthames/galaxy_10620
...
Allow tree-ish versions for ansible-galaxy
2016-02-17 08:41:29 -05:00
Brian Coca
6dc910c13a
shell + become fixes
...
1 less level of shell + quoting
simplified become commands, less quote and shell
2016-02-15 13:00:13 -05:00
Brian Coca
bb155e1142
added test for cartesian lookup
2016-02-11 10:46:44 -05:00
Brian Coca
08b3dbcda3
corrected several usages of deprecated bare vars
2016-02-08 13:13:15 -05:00
Brian Coca
ba51ed06cf
changed from deprecated implicit bare var
2016-02-08 13:05:19 -05:00
Matt Martz
97e0f29a5b
Add/improve tests for the uri module
2016-02-05 12:14:57 -06:00
James Cammarata
b713f1ca53
Fix for copy test as ansible_ssh_user is not set by default now
2016-02-05 10:36:07 -05:00
James Cammarata
8039ceee0f
Tweak block integration tests to also test the free strategy
2016-02-03 18:42:06 -05:00
James Cammarata
5466510edb
Removing .out file for integration tests and adding to .gitignore
2016-02-03 15:00:37 -05:00
James Cammarata
f4bd3be71f
Adding block integration tests
2016-02-03 15:00:37 -05:00
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
2016-02-02 12:18:04 +01:00
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
2016-01-27 21:55:00 -08:00
Brian Coca
fad6eb1844
fixed unit test to match new output of become/su
2016-01-27 16:49:51 -05:00
Brian Coca
46fde754af
Merge pull request #14044 from skorochkin/devel
...
Adding support for scm-based role source urls (ansible-galaxy)
2016-01-26 10:41:05 -05:00
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
2016-01-22 12:54:00 -05:00
Sergii Korochkin
13e8732598
[hotfix] add missed playbook file
2016-01-21 14:08:26 +02:00
Sergii Korochkin
1325c21ca0
Adding support for scm-based role source urls (incl. integration test to cover it)
2016-01-21 14:00:29 +02:00
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…
2016-01-20 12:13:43 -08:00
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.
2016-01-20 12:03:32 -08:00
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
2016-01-19 22:09:17 -05:00
James Cammarata
b1223746cd
Relocate use of ERROR to display class, to avoid doubling up
2016-01-19 12:10:39 -05:00
Brian Coca
27f4730c29
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
2016-01-18 15:17:43 -05:00
Matt Davis
acf49cf837
Merge pull request #13569 from mattclay/apt-repository-filename
...
Test for filename option in apt_repository module.
2016-01-15 09:01:48 -08:00