Matt Clay
2cd1744be3
Use ansible.module_utils.common.text.converters ( #80704 )
...
Replace use of old `ansible.module_utils._text` and add a unit test to maintain backwards compatibility.
2 years ago
Matt Clay
3a9a23fb1a
Use unittest.mock instead of mock. ( #77883 )
...
This can only be done for controller tests.
3 years ago
Jordan Borean
60b4200bc6
winrm - ensure callers PATH for kinit is set ( #77401 )
...
* winrm - ensure callers PATH for kinit is set
* Fix unit test expectations
* Fix type annotation
3 years ago
Matt Clay
1a5853d794
Remove obsolete units.compat.mock compat layer. ( #77118 )
...
* Remove obsolete units.compat.mock compat layer.
* Update remaining units.compat.mock references.
3 years ago
Jordan Borean
e22e103cdf
winrm - Added kinit_args to control the args for kinit calls ( #70624 )
4 years ago
Jordan Borean
7092c196ed
config manager str type vault source ( #65023 )
...
* config manager str type vault source
* Convert vault text to_text earlier and add tests
5 years ago
Andrey Klychkov
21863d48f3
unit tests: remove unused imports ( #60462 )
5 years ago
Matt Clay
3033fd96b0
Move unit test compat code out of `lib/ansible/`. ( #46996 )
...
* Move ansible.compat.tests to test/units/compat/.
* Fix unit test references to ansible.compat.tests.
* Move builtins compat to separate file.
* Fix classification of test/units/compat/ dir.
6 years ago
Jordan Borean
940d4a0e89
win_reboot: fix 2.6 issues and better handle post reboot reboot ( #42330 )
...
* win_reboot: fix 2.6 issues and better handle post reboot reboot
* changed winrm _reset to reset
* Add handler to reset calls when .reset() throws an AnsibleError on older hosts
* Moving back to _reset to get the issue fixed
6 years ago
Jordan Borean
9b7b564d75
Stop displaying kinit pass input on a failure ( #41882 )
...
* Stop displaying kinit pass input on a failure
* Fixed up minor logic info and added tests
6 years ago
Matt Davis
b01779ad18
skip winrm unit tests if winrm is not installed ( #41596 )
7 years ago
Jordan Borean
ad8e13e9f8
winrm: fix up unit tests ( #41112 )
7 years ago
Jordan Borean
5e28e282a5
winrm: add better exception handling for krb5 auth with pexpect ( #39930 )
...
* winrm: add better exception handling for krb5 auth with pexpect
* Added changelog fragment
* Added exception handler in case kinit path isn't valid, added test cases
* fixed for Python 2 compatibility
7 years ago
Jordan Borean
1ac180c74d
winrm: source user from options than remote_user ( #40467 )
...
* winrm: source user from options than remote_user
* fixed up mock for kerberos import
* Added changelog fragment
* get hostname from option as well
7 years ago