Commit graph

307 commits

Author SHA1 Message Date
Brian Coca
2816b8679b fixed corner case when counting backwards, added test cases for count=0 and backwards counts 2015-05-22 12:14:17 -07:00
Jesse Rusak
d13646dcc5 Fix --force-handlers, and allow it in plays and ansible.cfg
The --force-handlers command line argument was not correctly running
handlers on hosts which had tasks that later failed. This corrects that,
and also allows you to specify force_handlers in ansible.cfg or in a
play.
2015-04-13 10:20:11 -04:00
Toshio Kuratomi
a00056723f Make run_command() work when we get byte str with non-ascii characters (instead of unicode type like we were expecting)
Fix and test.

Fixes #10536
2015-03-26 07:52:05 -07:00
Brian Coca
608496dbd3 removed debug play from tests 2015-03-20 11:24:35 -04:00
Brian Coca
e3e97f6e06 now correctly aplies add_host passed variables last to override existing vars. 2015-03-20 11:23:50 -04:00
Toshio Kuratomi
0551f36d6b Have selinux allow docker<=>nginx communication 2015-03-19 13:53:35 -07:00
Toshio Kuratomi
cfda56908a Okay, let's see if these pauses are enough to get this passing 2015-03-19 13:53:26 -07:00
Toshio Kuratomi
4009c053f7 Fix the removal of busybox image 2015-03-19 13:53:10 -07:00
Toshio Kuratomi
c571a0e6ea Some debugging for why docker tests are failing in jenkins 2015-03-19 13:53:02 -07:00
Toshio Kuratomi
9082905a62 Add more tests for private docker registries 2015-03-19 13:52:54 -07:00
Toshio Kuratomi
f4878a2bec Remove debug statements 2015-03-19 13:52:41 -07:00
Toshio Kuratomi
67a559ed2b Add tests using a docker private registry 2015-03-19 13:52:33 -07:00
Toshio Kuratomi
cfc90dff4b And ran into a different problem with centos6. Sigh. 2015-03-19 13:52:19 -07:00
Toshio Kuratomi
e02fbcdb0f Attempt to enable docker tests for rhel/centos6 as well 2015-03-19 13:52:09 -07:00
Toshio Kuratomi
2fbfe5cdb2 Would help if I added these files in the right directory 2015-03-19 13:52:01 -07:00
Toshio Kuratomi
dc6a1f42af Ugh, looks like very few distros have the proper packages to run the docker module.
break up the tests so that we can maybe  run this on at least one
platform
2015-03-19 13:51:43 -07:00
Toshio Kuratomi
af90817622 Initial test of the docker module 2015-03-19 13:51:29 -07:00
Toshio Kuratomi
4941755851 Test case for #10426 2015-03-11 20:59:02 -07:00
Brian Coca
4459686099 fix tag test that broke with new tag info displayed in list tasks 2015-03-11 16:29:31 -04:00
Brian Coca
bce4bb2ce2 preliminary privlege escalation unification + pbrun
- become constants inherit existing sudo/su ones
- become command line options, marked sudo/su as deprecated and moved sudo/su passwords to runas group
- changed method signatures as privlege escalation is collapsed to become
- added tests for su and become, diabled su for lack of support in local.py
- updated playbook,play and task objects to become
- added become to runner
- added whoami test for become/sudo/su
- added home override dir for plugins
- removed useless method from ask pass
- forced become pass to always be string also uses to_bytes
- fixed fakerunner for tests
- corrected reference in synchronize action plugin
- added pfexec (needs testing)
- removed unused sudo/su in runner init
- removed deprecated info
- updated pe tests to allow to run under sudo and not need root
- normalized become options into a funciton to avoid duplication and inconsistencies
- pushed suppored list to connection classs property
- updated all connection plugins to latest 'become' pe

- includes fixes from feedback (including typos)
- added draft docs
- stub of become_exe, leaving for future v2 fixes
2015-03-10 17:42:52 -05:00
Toshio Kuratomi
a8c02b7049 Rework the shell quoting of remote checksumming
Instead of getting rid of pipes.quote, use pipes.quote and get rid of
the manually entered toplevel quotes.  This should properly escape
backslashes, quotes, and other characters.

Also fix the new checksumming python "one-liner" for csh.
ansible_shell_type needs to be set to csh.

Fixes #10363
Fixes #10353
2015-03-02 15:42:18 -08:00
Toshio Kuratomi
9399290cca Proper git commit of the new integration test 2015-02-26 14:53:51 -08:00
Toshio Kuratomi
89159951dc Fix name of a task containing a template causing traceback
Workaround for #10321 Need to fix better in v2
2015-02-26 14:05:33 -08:00
Toshio Kuratomi
e146245a0d Integration test for #10300 2015-02-25 11:26:43 -08:00
Brian Coca
c81d981164 Merge pull request #10183 from bcoca/tag_control
adds complex tag management
2015-02-25 10:36:11 -05:00
Brian Coca
1cb47c807e changed fetch test to match new functionality 2015-02-20 11:32:10 -05:00
Toshio Kuratomi
9bb8e60ed1 Merge pull request #10269 from danrue/unarchive_creates_behavior
Make behavior consistent when using 'creates' option with modules
2015-02-17 23:04:26 -08:00
Dan Rue
787388ac30 Do not mark "skipped" when changed is false
When using the "creates" option with the unarchive module, set changed
to False if the file already exists. This behavior is consistent with
other modules which use "creates", such as command and shell.
2015-02-17 15:02:08 -06:00
Matt Martz
1d0ceb37a4 Remove explicit msg match for invalid size 2015-02-17 12:32:22 -06:00
Brian Coca
1861be8f31 Merge pull request #9957 from hfinucane/apt-deb-tests
Add tests for using .deb files
2015-02-16 19:15:34 -05:00
Toshio Kuratomi
8f05e4eaaf Tests for: https://github.com/ansible/ansible-modules-core/issues/778 2015-02-16 07:12:18 -08:00
Brian Coca
65c08d1364 added tests
refactored task selection into method
list-tasks now uses common method of task selection
always is now skippable if specified in --skip-tags
2015-02-13 08:27:07 -05:00
Matt Martz
be6e49dd1f Add tests for rax_cdb_database 2015-02-11 12:59:02 -06:00
Matt Martz
952aa0c2d8 Don't hardcode list of delete functions to loop through 2015-02-11 12:59:02 -06:00
Matt Martz
9485d82eca Add tests for rax_cdb 2015-02-11 12:59:02 -06:00
Matt Martz
29cd7e3fc1 Add tests for rax_identity 2015-02-11 12:59:02 -06:00
Matt Martz
74f4d186cc Add tests for rax_cbs_attachments 2015-02-11 12:59:01 -06:00
Matt Martz
5e00e72f7a Remove unecessary prep tasks 2015-02-11 12:59:01 -06:00
Matt Martz
3ae1014fd3 Add tests for rax_cbs 2015-02-11 12:59:01 -06:00
Matt Martz
f01ae9f509 Add test_rax_network role 2015-02-11 12:59:01 -06:00
Matt Martz
e54c45ee6d Add test_rax_keypair role 2015-02-11 12:59:01 -06:00
Matt Martz
abac45dafc Add test_rax_meta role 2015-02-11 12:59:01 -06:00
Matt Martz
9878ebf0ee Add tests for rax instance_ids with state=absent 2015-02-11 12:59:01 -06:00
Matt Martz
340b845c38 Add test_rax_facts 2015-02-11 12:59:01 -06:00
Matt Martz
dab9c30584 Add some extra vars and create a dependent role prepare_rax_tests 2015-02-11 12:59:01 -06:00
Matt Martz
5a862328f0 Add test_rax_clb_nodes 2015-02-11 12:59:00 -06:00
Matt Martz
b151c7ffac Add some additional output to cleanup_rax.py 2015-02-11 12:59:00 -06:00
Matt Martz
b8e7211661 Update rax_clb tests for fixes in the module 2015-02-11 12:59:00 -06:00
Matt Martz
7ba7e3bd69 Add tests for rax_clb 2015-02-11 12:59:00 -06:00
Brian Coca
788889225d Merge pull request #10078 from sgargan/consul
Ansible support for Consul
2015-02-11 13:58:15 -05:00