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
Jascha Geerds
76ed19d279
Fix TestInventory class by explicitly using /bin/bash
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
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
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
Michael Scherer
64d35cb3b6
test that using non ordered range of char send a exception
11 years ago
Michael Scherer
4f69b63fec
add test for incorrect format in range host
11 years ago
Michael Scherer
835fdd1ec2
add test for missing end in host range
11 years ago
Michael Scherer
2aea8a6368
add a test to verify ansible detect invalid range
11 years ago
Michael Scherer
7fec9c3eba
add a test to cover bound stepping in inventory
11 years ago
James Cammarata
157b697a83
Merge branch 'always_run-6' of https://github.com/stoned/ansible into stoned-always_run-6
11 years ago
Michael Scherer
ddd582269c
increase test coverage of inventory by around 5% according to nose
11 years ago
Stoned Elipot
f0743fc32a
Introduce the 'always_run' task clause.
...
The 'always_run' task clause allows one to execute a task even in
check mode.
While here implement Runner.noop_on_check() to check if a runner
really should execute its task, with respect to check mode option
and 'always_run' clause.
Also add the optional 'jinja2' argument to check_conditional() :
it allows to give this function a jinja2 expression without exposing
the 'jinja2_compare' implementation mechanism.
11 years ago
Petr Svoboda
e3adfbf5f8
Add tests for undefined variable detection
...
Tests `test_playbook_undefined_varsX_fail` check if ansible detects
undefined variables when `error_on_undefined_vars` is enabled. These
tests fail without "Improve behavior with error_on_undefined_vars
enabled" patch.
Tests `test_playbook_undefined_varsX_ignore` check if ansible ignores
undefined variables when `error_on_undefined_vars` is disabled.
Also modify PlayBook._run_task_internal() so error_on_undefined_vars is
testable.
11 years ago
Michael Scherer
b655d5798b
add tests for the -i option when used with raw string for ipv4
...
and ipv6 addresses.
11 years ago
Michael Scherer
498a550f01
add test for the disabling of callback plugins
11 years ago
Michael DeHaan
4bdbe4dc4f
Remove some test prints
11 years ago
Michael DeHaan
76fd769704
Merge pull request #3685 from mspaulding06/indexed_items
...
Indexed items lookup plugin
11 years ago
Michael DeHaan
3ebbb56479
Merge pull request #3654 from MaxIV-KitsControls/devel
...
Fix nested loop for more than 3 elements
11 years ago
Matt Spaulding
b7154cf2cf
Add tests for indexed_items lookup plugin
11 years ago
Vincent Hardion
09ef7751e1
Fix nested loop for more than 3 elements
...
- combine flatten list for each nested level instead once at the end
11 years ago
Stoned Elipot
a1503c4d59
stringify conditional before handing it to Jinja2 for evaluation.
...
This should fix simple conditionals like:
when: ansible_selinux
While here add tests for ansible.utils.check_conditional() in
"jinja2_compare mode".
11 years ago
Michael DeHaan
88720516a1
Merge branch 'changed_when' of git://github.com/stoned/ansible into changed_when
11 years ago
Tin Tvrtkovic
4a732c1e9f
Enabled the use of extra vars in playbook file paths when including playbooks from other playbooks.
12 years ago
Stoned Elipot
eb45f07ae3
Introduce 'changed_when' keyword to override a task's changed status with the evaluation of a Jinja2 expression
12 years ago
Stoned Elipot
baf868f825
Add test for 'ignore_errors:'
12 years ago
Dale Sedivec
b32131c867
expanduser on each component of plug-in paths
...
ansible.constants was calling expanduser (by way of shell_expand_path)
on the entire configured value for the library and *_plugins
configuration values, but these values have always been interpreted as
multiple directories separated by os.pathsep. Thus, if you supplied
multiple directories for one of these values, typically only the first
(at least on *nix) would have e.g. "~" expanded to HOME.
Now PluginLoader does expansion on each individual path in each of
these variables.
12 years ago
George Miroshnykov
c642ba77ae
Added basic support for hash_behaviour=merge in roles
...
Dict vars passed to roles are now properly merged
instead of simply overriding dict vars that are
coming from vars_files.
12 years ago
Michael DeHaan
4ae3ef8af9
Disable inventory test
12 years ago
Pol Llovet
4432c01ceb
Handle '#' in var strings by splitting on ' #'
...
If someone has a " #" in a quoted var string, it
will interpret that as a comment and refuse to
load the inventory file due to an unbalanced
quote. Noisy failure > unexpected behavior.
12 years ago
Pol Llovet
ba78360c52
Remove inline comments from inventory tokenizing.
12 years ago
Michael DeHaan
a9fcea5893
Merge branch 'escape' of git://github.com/ngrilly/ansible into repr
12 years ago