Richard Isaacson
eb4a730933
Merge pull request #5969 from risaacson/pull_5136
...
Updates for the unarchive module and action_plugin.
11 years ago
Richard C Isaacson
598b9c6b7c
Cleanup per notes.
...
Some small changes to per notes from @mpdehann.
11 years ago
Richard C Isaacson
cb7c2b7524
Updates for the unarchive module and action_plugin.
...
There is a bit going on with the changes here. Most of the changes are cleanup of files so that they line up with the standard files.
PR #5136 was merged into the current devel and brought up to working order. A few bug fixes had to be done to get the code to test correctly. Thanks out to @pib!
Issue #5431 was not able to be confirmed as it behaved as expected with a sudo user.
Tests were added via a playbook with archive files to verify functionality.
All tests fire clean including custom playbooks across multiple linux and solaris systems.
11 years ago
James Cammarata
ce0b1a8a96
Fixing tests for git
11 years ago
James Tanner
89c89c8ed2
Re-add synchronize unit tests
11 years ago
James Cammarata
3260e695f4
Make tmp paths in TestRunner dynamic based on pid
...
Fixes #4723
11 years ago
jctanner
59d99c17b3
Merge pull request #5337 from bob-smith/bugfixFQDNParsing
...
Fix inventory parsing so that FQDN can be parsed without throwing ssh port error
11 years ago
Michael DeHaan
8e5b7d3095
Remove code underlying when_* and only_if, which are deprecated features slated for removal in the 1.5 release.
11 years ago
John Barker
4bf9f714d0
Fix inventory parsing so that FQDN can be parsed without throwing ssh
...
port parsing errors
Fixes problesm introduced by 948d019fef
Adds testcases to defend
11 years ago
Matthew Thode
c0a7f51671
tests depend on the default encoding being utf8
...
So we set the utils default encoding to be utf8
11 years ago
willthames
40a44ce6ea
Ensure test_command tests are actually correct
...
Using
```
assert 'changed' in result
```
doesn't actually check if something is changed, which is presumably
the reason for the assertion. What is actually needed is
```
assert result.get('changed')
```
which checks that changed is set and not False. Tests still pass after
this change
11 years ago
Eric Johnson
8ff58eb46e
fixes #4954 plus updates for gcutil/v1beta16 tests
11 years ago
Rene Moser
b5580389f6
host: added test playbook
11 years ago
James Tanner
4391cbfd91
Fix git bare test in el6 by adding origin to remote
11 years ago
jctanner
ad5012f930
Merge pull request #4691 from cg-soft/git-bare-ref-repo-support
...
Add support for bare git reference repos
11 years ago
James Tanner
9e197d3958
Fix bool comparision in recursive copy tests
11 years ago
James Tanner
33242cacf3
Merge pull request #4375 from pfalcon/ansible
...
copy: Implement recursive copying if src is a directory.
11 years ago
jctanner
9a7765daf7
Merge pull request #4351 from 2m/leading-range-fix
...
Allow leading ranges in the inventory host entries.
11 years ago
Christian Goetze
f41d4ac390
Add support for bare git reference repos
...
This adds two parameters to the git module:
bare (boolean)
Indicates this is to be a bare repositori
reference (string)
Indicates the path or url to the reference repo.
Check out the "--reference" option in the "git clone"
man page
Added appropriate tests.
11 years ago
James Tanner
d154bf8781
Revert templating enhancements from 73dbab70
e6c28658
d409352c
9858b1f2
4587528b
9b1fe455
214b0b05
8d3db803
7f9504d1
5031104c
35cb9dc2
2bd8cb57
1e85c754
11 years ago
Michael DeHaan
603db60828
Merge pull request #4288 from sivel/3725-regex
...
Add regex (search, match, regex) jinja2 filters. Fixes #3725
11 years ago
Michael DeHaan
3778b39115
Merge pull request #4380 from joshkehn/lineinfile_validate
...
Added validate option to lineinfile
11 years ago
Michael DeHaan
5031104c3a
Finishing touches on template cleanup.
11 years ago
Michael DeHaan
35cb9dc22f
Work in progress about cleaning up template code.
11 years ago
Michael DeHaan
baa13a5cc7
Merge pull request #4395 from erjohnso/devel
...
adding Google Compute Engine modules and inventory plugin
11 years ago
Martynas Mickevicius
7ecb5fbc9c
Handle comment on inventory group line.
11 years ago
Martynas Mickevicius
44279ce34f
Allow leading ranges in the inventory host entries.
11 years ago
Jascha Geerds
76ed19d279
Fix TestInventory class by explicitly using /bin/bash
11 years ago
Paul Sokolovsky
3ad61ef310
copy: Add testcase for recursive copy.
11 years ago
Michael DeHaan
43df00550d
Merge pull request #3827 from mscherer/disable_callbacks
...
add a way for callback to disable itself
11 years ago
Michael DeHaan
2032489617
Prune legacy tests -- many of these are not part of the official API or documented syntax.
11 years ago
Michael DeHaan
e8b043332f
Remove some obsolete tests (mechanism of error detection suboptimal, replacements pending)
11 years ago
Michael DeHaan
add45d2ca9
Fixup legacy var detector.
11 years ago
Michael DeHaan
709ffda3d1
Tweak only_if deprecation detector.
11 years ago
Michael DeHaan
25dc0ef8d7
Remove out of date tests.
11 years ago
Michael DeHaan
800f12618e
Remove out of date tests.
11 years ago
Matt Martz
61525a97df
Add regex (search, match, regex) jinja2 filters. Fixes #3725
11 years ago
Eric Johnson
9ca824c16d
adding Google Compute Engine modules and inventory plugin
11 years ago
Michael DeHaan
8fc46a3a5a
Return inventory objects in the order they are presented. Additionally, fix host slicing such that it works on Python terms with
...
zero indexed lists and a non-inclusive final element.
11 years ago
Joshua Kehn
cc0c908cee
Added validate option to lineinfile
...
The validate option is constructed similarly to the template command's
validate option. TestRunner.py has been updated to include two new
tests, one for passing and one for failing validation.
11 years ago
Matt Martz
535ce97067
Add fileglob Jinja2 filter. Fixes #3563
11 years ago
Michael DeHaan
ef28d62846
Update TestUtils.py
...
tests shouldn't be making symlinks to system dirs, also fixes unit test report on OS X.
11 years ago
Jasper Capel
d4dec5f577
Allow creating empty inventory
...
Instantiating the Inventory class with host_list=None now results in an
empty inventory instead of an error.
11 years ago
Michael Scherer
399d57a651
add more tests :
...
- test part of ansible.runner.filter_plugins.core
- test ansible.utils.unfrackpath
11 years ago
James Cammarata
3b801dec72
Merge branch 'failed_when' of https://github.com/hnakamur/ansible into hnakamur-failed_when
11 years ago
James Cammarata
aac3090909
Merge branch 'play_remote_user' of https://github.com/bcoca/ansible into bcoca-play_remote_user
11 years ago
Hiroaki Nakamura
2357194b39
Add failed_when module variable.
...
Implementation note: Ternery operator trick for python prior to 2.5 is used.
(test and [when_true_value] or [when_false_value])[0]
http://stackoverflow.com/questions/394809/ternary-conditional-operator-in-python#comment1466794_394887
11 years ago
James Cammarata
8d0487c31e
Removing broken tests for now
11 years ago
Brian Coca
d47c48e30a
Added remote_user to plays
...
Still compatible with user: but deprecating it so we can have
a matching remote_user: in tasks, cannot be user: because of the
module of the same name. #3932
Signed-off-by: Brian Coca <briancoca+dev@gmail.com>
11 years ago
Michael Scherer
a0b73b18c3
add one last test, for combined range, which make ansible.inventory.expand_hosts
...
covered to 100%
11 years ago