Matt Clay
ac8842eee8
Fix unit test dirs to match code under test.
8 years ago
Matt Clay
8c270ac75f
Add empty-init code-smell script. ( #18406 )
...
Also removed boilerplate from otherwise empty __init__.py files
which should not contain any code (checked by empty-init script).
8 years ago
Thilo Uttendorfer
cf0da0948d
Fix uninitialized variable in deserialize method ( #18037 )
...
The bug was introduced with commit 06d4f4ad0e
.
Added a simple test.
8 years ago
Brian Coca
04b86df815
updated pbrun test to match expected output
8 years ago
Brian Coca
dfff608ceb
dzdo prompt fix
...
fixed tests
dzdo has 2 paths now, with and w/o password
fixes #17838
8 years ago
Matt Clay
39c5c558f8
Switch tests from sudo to become. ( #17694 )
8 years ago
Will Thames
d54f5277d5
Add ksu privilege escalation ( #17340 )
...
Allow ksu privilege escalation to be used
as a standard become_method
https://web.mit.edu/kerberos/krb5-1.12/doc/user/user_commands/ksu.html
8 years ago
jctanner
373b23cc24
Fix mock loader for osx /etc symlinks ( #16074 )
...
Fix role based unit tests for osx via mock.patch
9 years ago
Tegan Snyder
bf0da4aa3c
add centrify dzdo escalation ( #15219 )
...
add dzdo context, and test
9 years ago
Toshio Kuratomi
ed9e164b80
Fix ansible_sudo_pass inventory variable so that it overrides setting of sudo password from the command line
9 years ago
Brian Coca
6dc910c13a
shell + become fixes
...
1 less level of shell + quoting
simplified become commands, less quote and shell
9 years ago
Brian Coca
fad6eb1844
fixed unit test to match new output of become/su
9 years ago
James Cammarata
dc0fae1af7
Also make sure remote_user is defaulted correctly for delegated hosts
...
Fixes #13323
9 years ago
Brian Coca
174de1161b
fixed removing -n in password sudo tests
9 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
9 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.
9 years ago
Brian Coca
ddafed4403
Merge pull request #12528 from bcoca/task_logging
...
task logging revamp
9 years ago
James Cammarata
dfa33d0f23
Tweak variable manager use in role includes to avoid test failures
9 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
9 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
9 years ago
James Cammarata
36b5858f51
Fix unit tests for change related to local_action
9 years ago
Brian Coca
c17fbf2f12
simplify become testing and handling, we had drifted and were doulbe checking prompt, become and become_pass
...
fixed tests to conform to new signature and now tests both with and w/o password
now we are more explicit about self.prompt
9 years ago
James Cammarata
843138e7d9
Merge pull request #12202 from mgedmin/py3k
...
Use rich comparisons for Attribute and FieldAttribute
9 years ago
Brian Coca
a7231c2203
actually implemented flags correctly for all priv escalation methods
9 years ago
Brian Coca
14f061d5ea
fixed become tests
9 years ago
Marius Gedminas
33a374edde
Use rich comparisons for Attribute and FieldAttribute
...
Because __cmp__ is not supported on Python 3.
9 years ago
Brian Coca
846f0b0510
changed no_log expected type to new value
9 years ago
Brian Coca
ab355218a0
fixed test to new parser options
9 years ago
Damian Gerow
1c5611100e
Add become support for OpenBSD doas
9 years ago
Brian Coca
2eb5333b50
fixed test to match new become output
9 years ago
James Cammarata
6b244ed61e
update unit tests for role templating changes
9 years ago
James Cammarata
42cfacf83b
Switch up the task/host overrides for PlayContext to use the compiled vars dict
...
Fixes #11436
9 years ago
James Cammarata
993ce592b1
Update unit tests for flush_handlers fix
9 years ago
James Cammarata
66a8864ae9
Fix environment setting and inheritence
...
Fixes #11401
9 years ago
James Cammarata
e64989beb4
Moving ConnectionInformation -> PlayContext
...
Also making PlayContext a child class of the Playbook Base class,
which gives it access to all of the FieldAttribute code to ensure
field values are correctly typed after post_validation
Fixes #11381
9 years ago
Pierre-Louis Bonicoli
8c392a94b7
Play.get_name: remove prefix, return name only
9 years ago
James Cammarata
bbe8f48a46
Update role unit tests for changes made to require a play during loading
10 years ago
marconius
79394f5c8f
Added tests for `taggable` module
10 years ago
James Cammarata
a0509cda1e
Fix test_role unit tests to use unique role names to avoid role caching errors
10 years ago
James Cammarata
1ca8cb8553
Fixing up v2 unit tests
10 years ago
Toshio Kuratomi
f9f8af06fc
Change asserts to assertIsInstance for better error messages
10 years ago
Matt Martz
a0fc8bb0bd
Testing additions and fixes
...
* Fix import pathing for units.mock
* Add some additional requirements
* Use compileall to test compatiblity with different python versions
10 years ago
James Cammarata
ce3ef7f4c1
Making the switch to v2
10 years ago