Toshio Kuratomi
6e5055e786
Update the use of no_log values to cover everything that heuristic_log_sanitize does.
...
Fixes #12792
2015-10-21 08:15:46 -07:00
Toshio Kuratomi
c2d188baff
Hide values in json returns which were given in parameters marked no_log.
2015-10-20 12:42:36 -07:00
Toshio Kuratomi
a22cf8ffc1
Properly add the new test and limit six test to lib
2015-10-19 18:39:15 -07:00
Brian Coca
c1a404e6ec
Merge pull request #12799 from resmo/for-ansible
...
cloudstack: add tests for cs_loadbalancer_rule and _member
2015-10-19 11:15:12 -04:00
James Cammarata
2346a7f170
Merge pull request #12800 from chrismeyersfsu/fix-test_destructive_yum
...
remove invocation keyword check
2015-10-18 10:19:08 -04:00
James Cammarata
549bdb2503
Merge pull request #12804 from chrismeyersfsu/fix-test_non_destructive_makefile
...
allow env variable override of creds file
2015-10-18 10:18:22 -04:00
Chris Meyers
1b2d17b844
allow env variable override of creds file
...
This is important because there is an integration test, test_git, that
require an ssh key to clone a privileged github repo.
2015-10-17 12:45:29 -04:00
James Cammarata
8baea3cba8
Merge pull request #12796 from chrismeyersfsu/fix-test_destructive_mysql_variables
...
fix up mysql variable assertion logic
2015-10-17 10:14:08 -04:00
Chris Meyers
5177cb3f74
remove invocation keyword check
2015-10-17 09:24:03 -04:00
Rene Moser
bb5dcc00b6
cloudstack: add tests for cs_loadbalancer_rule and _member
2015-10-17 14:01:02 +02:00
James Cammarata
450c8d45c6
Merge pull request #12787 from chrismeyersfsu/fix-test_destructive_apt
...
keyword not in ubuntu 14.04
2015-10-17 07:43:34 -04:00
Chris Meyers
75833c248e
fix up mysql variable assertion logic
2015-10-16 18:42:03 -04:00
Toshio Kuratomi
eebd3cc336
Merge pull request #12788 from chrismeyersfsu/fix-test_destructive_state
...
remove non-existant state var
2015-10-16 12:43:40 -07:00
Chris Meyers
a0264983ad
remove non-existant state var
2015-10-16 15:40:31 -04:00
Chris Meyers
5c01622457
keyword not in ubuntu 14.04
2015-10-16 15:37:39 -04:00
Brian Coca
6d87bd405d
Merge pull request #12765 from bcoca/lookup_inventory_hostname
...
implemented inventory_hostname lookup in v2
2015-10-16 15:05:23 -04:00
Toshio Kuratomi
49f2b84253
Add a code smell test to make sure we're not using the raw system six
...
(So we know we have a recent enough version)
2015-10-16 10:31:35 -07:00
Toshio Kuratomi
baa309309d
Bundle a new version of python-six for compatibility along with some code to make it easy for distributions to override the bunndled copy if they have a new enough version.
2015-10-16 08:21:28 -07:00
Marius Gedminas
04a7ef416e
Python 3: print function in a shell oneliner in Makefile
...
Fixes
File "<string>", line 1
import string,random; print 'ansible-testing-' + ''.join(random.choice(string.ascii_letters + string.digits) for _ in xrange(8));
^
SyntaxError: invalid syntax
when running integration tests with
. hacking/env-setup
. .tox/py35/bin/activate
make -C test/integration test_var_precedence
2015-10-16 17:41:01 +03:00
Marius Gedminas
ec3ada1cda
Fix test on Python 3: vault code expects bytes
...
(All tests now succeed on Python 3.5)
2015-10-16 09:13:46 +03:00
Marius Gedminas
5c70f932bd
Fix test on Python 3: vault code expects bytes
...
(Third failing test out of four.)
2015-10-16 09:12:49 +03:00
Marius Gedminas
a1d95536f9
Fix test on Python 3: vault code expects bytes
...
(Different test than the last commit.)
2015-10-16 09:11:34 +03:00
Marius Gedminas
f58f0c62e1
Fix test on Python 3: vault code expects bytes
2015-10-16 09:10:25 +03:00
Brian Coca
9b088a1e40
implemented inventory_hostname lookup in v2
2015-10-15 13:11:42 -04:00
Chris Church
cb9f350c8f
Merge pull request #12720 from jhawkesworth/test_amc_2147
...
integration tests for ansible modules core 2147
2015-10-14 15:35:21 -04:00
Marius Gedminas
225fe85530
Skip test_module_utils_basic_ansible_module_creation on Python 3
...
This reverts commit 073f10a52a
and instead
disables the failing test.
We're focusing on Python 3 support on the controller first; modules will
come later.
2015-10-14 09:32:26 +03:00
James Cammarata
e6d3c6745f
Revert to using local file/dir tests in inventory instead of loader's
...
Fixes #12719
2015-10-13 12:04:01 -04:00
=
e141101314
integration tests for ansible modules core 2147
2015-10-13 06:34:18 +01:00
Toshio Kuratomi
15d7f53846
AnsibleModules.log() fix for python3
...
Also add unittests for AnsibleModules.log()
Fixes #12586
2015-10-12 13:30:27 -07:00
James Cammarata
0e1a5919c8
Adding unit tests for PlaybookExecutor _get_serialized_batches
2015-10-12 11:27:37 -04:00
Brian Coca
abf2e13955
Revert "Track local_action internally to prevent it from being overridden"
...
This reverts commit 49ca0eb797
.
2015-10-09 13:01:32 -04:00
James Cammarata
de792ba3c2
Improve handling of unicode errors
...
Fixes #12669
2015-10-08 10:04:15 -04:00
James Cammarata
9c9897805f
More ansible-galaxy fixes for the old spec file format
2015-10-06 01:54:48 -04:00
Brian Coca
f73329401b
galaxy updates
...
better error reporting on fetching errors
use scm if it exists over src
unified functions in requirements
simplified logic
added verbose to tests
cleanup code refs, unused options and dead code
moved get_opt to base class
fixes #11920
fixes #12612
fixes #10454
2015-10-05 11:43:08 -04:00
Brian Coca
5680a9fa32
removed redundant tests, adjusted makefile expected count
2015-10-02 22:37:19 -04:00
Brian Coca
e2ae3215f6
corrected no_log for items and skipped tasks
...
corrected output from default callback
added new tests for no_log loops
updated makefile test to check for both positive and negative occurrences of no_log
2015-10-02 14:35:33 -04:00
Brian Coca
5c39538a73
added no_log tests as per #12214
2015-10-02 09:11:41 -04:00
James Cammarata
775486c9d6
Merge pull request #12589 from jemmyw/consul-http-checks
...
Update consul integration test with http checks
2015-10-01 10:44:31 -04:00
Marius Gedminas
0371b14567
Fix test: selinux gets passed byte strings
...
(I don't have a system with selinux to test if the module still wants
byte strings even on Python 3.)
2015-09-30 18:46:50 +03:00
Marius Gedminas
500e7a1263
Fix test: _to_filesystem_str produces byte strings
2015-09-30 18:46:49 +03:00
Marius Gedminas
f7571cb37f
Python 3: there's no __builtin__ module
...
This caused an ImportError in a test module and showed up as one test
failure. Now the test module can get imported and many more tests fail
(on Python 3). Such is life. ;-)
2015-09-30 18:40:47 +03:00
Brian Coca
ddafed4403
Merge pull request #12528 from bcoca/task_logging
...
task logging revamp
2015-09-30 11:38:34 -04:00
James Cammarata
6339bf8a82
Merge branch 'tests' of https://github.com/amenonsen/ansible into amenonsen-tests
2015-09-30 08:06:52 -04:00
James Cammarata
dfa33d0f23
Tweak variable manager use in role includes to avoid test failures
2015-09-30 08:05:55 -04:00
Abhijit Menon-Sen
d100db837b
Add basic tests for expand_hostname_range
2015-09-30 16:28:45 +05:30
Abhijit Menon-Sen
838e71edb7
Add more exhaustive tests for various IPv6 address notations
2015-09-30 16:15:39 +05:30
Brian Coca
8d024c3747
Merge pull request #12472 from resmo/for_ansible
...
cloudstack: improvements and tests
2015-09-28 14:27:22 -04:00
Brian Coca
37a918438b
task logging revamp
...
* allow global no_log setting, no need to set at play or task level, but can be overriden by them
* allow turning off syslog only on task execution from target host (manage_syslog), overlaps with no_log functionality
* created log function for task modules to use, now we can remove all syslog references, will use systemd journal if present
* added debug flag to modules, so they can make it call new log function conditionally
* added debug logging in module's run_command
2015-09-25 23:57:28 -04:00
James Cammarata
ccddda1ebc
Merge pull request #12502 from mgedmin/py3k
...
Python 3: make test_variable_manager_precedence pass
2015-09-25 03:05:02 -04:00
James Cammarata
31d5f88a1d
Use the task loop to calculate multiple delegated hosts
...
Due to the way we're now calculating delegate_to, if that value is based
on a loop variable ('item') we need to calculate all of the possible
delegated_to variables for that loop.
Fixes #12499
2015-09-25 01:41:09 -04:00