summaryrefslogtreecommitdiff
path: root/lib/ansible/plugins/test
Commit message (Collapse)AuthorAgeFilesLines
* Migrate most uses of if type() to if isinstance()Toshio Kuratomi2017-04-041-5/+6
| | | | | | Also convert those checks to use abcs instead of dict and list. Make a sentinel class for strategies to report when they've reache the end
* added new tests any and all (#22665)Brian Coca2017-03-151-0/+3
| | | | | | * added new tests any and all * updated code names
* restored 'results' filtersBrian Coca2016-10-131-4/+0
| | | | | tests do not work the same, restoring old filters to keep backwards compat tests now only implment the new normalized 'tense'
* J2 test docs (#16646)Brian Coca2016-07-122-0/+42
| | | | | | | | | | | | | * moved tests from filters to actual jinja2 tests also removed some unused declarations and imports * split tests into their own docs removed isnan as existing jinja2's 'number' already covers same added missing docs for several tests * updated as per feedback
* removed defined/undefined as jinja2 already has emBrian Coca2016-07-081-12/+0
|
* added defined/undefined testsBrian Coca2016-07-081-0/+13
|
* Reverse boilerplate order because from __future__ must be the first code in ↵Toshio Kuratomi2016-03-241-1/+1
| | | | the file
* Add python3 compat boilerplateToshio Kuratomi2016-03-241-1/+2
|
* Add `issubset` and `issuperset` testsGeorge Christou2016-03-211-0/+34
|
* adds multiline flag to regex test for search and matchPeter Sprygada2016-03-061-8/+9
| | | | | | | | This commit adds the multiline flag to the regexp search and match test plugin. It defaults to re.M = False for backwards compatibility. To use the multiline feature add multiline=True to the test filter {{ config | search('^hostname', multiline=True) }}
* test aliases to enable gramatical consistancyBrian Coca2016-01-141-2/+6
| | | | | | keeps backwards compat by not removing the previouslly non grammer matching states and introduces new ones so user can decide which one he wants (or keep both and still be inconsistent to annoy those that care)
* Revert "success should not include skipped"Brian Coca2015-11-191-1/+1
| | | | This reverts commit 300ee227a2e6d8017b9c9b34cf56702a827407f5.
* success should not include skippedBrian Coca2015-11-141-1/+1
| | | | fixes #13161
* Add python3-compat boilerplate to all .py files in lib/ansibleToshio Kuratomi2015-10-193-0/+11
|
* moved mandatory back to filters as it does not always return a boolean, it ↵Brian Coca2015-08-211-11/+0
| | | | does an exception on failure
* added file testsBrian Coca2015-08-201-0/+37
|
* isnotanumber is not needed as jinja2 has builtin number testBrian Coca2015-08-201-36/+0
|
* fixed mandatory testBrian Coca2015-08-201-9/+8
|
* Merge branch 'pluggable_jinja_tests' of https://github.com/quixoten/ansible ↵James Cammarata2015-07-293-0/+149
into quixoten-pluggable_jinja_tests