Commit Graph

287 Commits (454c8ff5b85cbbc2bc2b51c9ccf744a8cc2570af)

Author SHA1 Message Date
Toshio Kuratomi d2bf615780 Fix unittests for return of invocation from fail_json and exit_json 10 years ago
James Cammarata 9e52a7c769 Attempt at fixing strategy unit test failures on py2.6 and py3 10 years ago
Michael Scherer b6dac26224 Make module_utils.known_hosts.get_fqdn work on ipv6 10 years ago
Michael Scherer a7a3a34987 Add tests for ansible.module_utils.known_hosts 10 years ago
Toshio Kuratomi 66be9d06c4 Minor: Correct type pyhton => python 10 years ago
James Cammarata 0b66ec0ddd Cleanup strategy tests broken by new forking strategy 10 years ago
Brian Coca 0533e0bc96 fixed doas from getting stuck when needing passwords
Also adjusted test to match new doas become output
fixes #13449
10 years ago
James Cammarata cd76552724 Changing up how host (in)equality is checked
Fixes #13397
10 years ago
Toshio Kuratomi f8911adbbc For now, skip tests of module_utils/basic functions that are failing on
py3 (these are only run on the target hosts, not on the controller).
10 years ago
Toshio Kuratomi b9fbfaf64e Also some unicode tests for return_values() 10 years ago
Toshio Kuratomi 2c5c7b54f6 Add some test data that has unicode values 10 years ago
James Cammarata f96730003b Also make sure remote_user is defaulted correctly for delegated hosts
Fixes #13323
10 years ago
James Cammarata 91500f8f5f Fix include param precedence in variable manager 10 years ago
Brano Zarnovican 90f99f29ae unittest cover for 'run_command'
All os.*, subprocess.* is mocked to avoid side-effects.
Tests are skipped in Py3, since 'run_command' is not Py3-ready, yet.
10 years ago
Toshio Kuratomi 318bfbb207 Migrate cli and dependencies to use global display 10 years ago
Toshio Kuratomi aa034f4fcf Add unit tests for issue #12976 10 years ago
Toshio Kuratomi 37052a983a Fix unittest dailure with the new squash items code 10 years ago
Brian Coca 174de1161b fixed removing -n in password sudo tests 10 years ago
Brian Coca b2fc5142eb moved sudo -S and -n into configurable flags as they might be absent in much older systems
if password is supplied exsiting -n would get remove from flags
10 years ago
Toshio Kuratomi 4203850d1a Break apart a looped dependency to show a warning when parsing playbooks
Display a warning when a dict key is overwritten by pyyaml
Fixes #12888
10 years ago
Brian Coca f78c82b9ee don't set user to current user
also remove condition to bypass setting user if user matches current user
this enables forcing user when set to the same user as current user and ignoring .ssh/config
while keeping .ssh/config with current user if nothing is specified.
10 years ago
Toshio Kuratomi ce2b18174e Merge pull request #12878 from ansible/invocation-fix
Invocation fix
10 years ago
Toshio Kuratomi 2e87c1f74e Two fixes to action plugins
* Fix the task_vars parameter to not default to a mutable type (dict)
* Implement invocation in the base class's run() method have each action
  module call the run() method's implemention in the base class.
* Return values from the action plugins' run() method takes the return
  value from the base class run() method into account so that invocation
  makes its way to the output.

Fixes #12869
10 years ago
James Cammarata 86de1429e5 Cleaning up FIXMEs 10 years ago
Toshio Kuratomi 5a0e63af1e Workaround seeming bug in python-2.6's sys.exit() 10 years ago
Toshio Kuratomi 6e5055e786 Update the use of no_log values to cover everything that heuristic_log_sanitize does.
Fixes #12792
10 years ago
Toshio Kuratomi c2d188baff Hide values in json returns which were given in parameters marked no_log. 10 years ago
Brian Coca 6d87bd405d Merge pull request #12765 from bcoca/lookup_inventory_hostname
implemented inventory_hostname lookup in v2
10 years ago
Marius Gedminas ec3ada1cda Fix test on Python 3: vault code expects bytes
(All tests now succeed on Python 3.5)
10 years ago
Marius Gedminas 5c70f932bd Fix test on Python 3: vault code expects bytes
(Third failing test out of four.)
10 years ago
Marius Gedminas a1d95536f9 Fix test on Python 3: vault code expects bytes
(Different test than the last commit.)
10 years ago
Marius Gedminas f58f0c62e1 Fix test on Python 3: vault code expects bytes 10 years ago
Brian Coca 9b088a1e40 implemented inventory_hostname lookup in v2 10 years ago
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.
10 years ago
James Cammarata e6d3c6745f Revert to using local file/dir tests in inventory instead of loader's
Fixes #12719
10 years ago
Toshio Kuratomi 15d7f53846 AnsibleModules.log() fix for python3
Also add unittests for AnsibleModules.log()

Fixes #12586
10 years ago
James Cammarata 0e1a5919c8 Adding unit tests for PlaybookExecutor _get_serialized_batches 10 years ago
Brian Coca abf2e13955 Revert "Track local_action internally to prevent it from being overridden"
This reverts commit 49ca0eb797.
10 years ago
James Cammarata de792ba3c2 Improve handling of unicode errors
Fixes #12669
10 years ago
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.)
10 years ago
Marius Gedminas 500e7a1263 Fix test: _to_filesystem_str produces byte strings 10 years ago
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.  ;-)
10 years ago
Brian Coca ddafed4403 Merge pull request #12528 from bcoca/task_logging
task logging revamp
10 years ago
James Cammarata 6339bf8a82 Merge branch 'tests' of https://github.com/amenonsen/ansible into amenonsen-tests 10 years ago
James Cammarata dfa33d0f23 Tweak variable manager use in role includes to avoid test failures 10 years ago
Abhijit Menon-Sen d100db837b Add basic tests for expand_hostname_range 10 years ago
Abhijit Menon-Sen 838e71edb7 Add more exhaustive tests for various IPv6 address notations 10 years ago
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
10 years ago
James Cammarata ccddda1ebc Merge pull request #12502 from mgedmin/py3k
Python 3: make test_variable_manager_precedence pass
10 years ago
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
10 years ago