Commit Graph

33 Commits (ca635fac4a3f577f8fb5fcd33ca954aa30bdf2e5)

Author SHA1 Message Date
Matt Clay dae4e2f07f
Remove unused/unreachable unit test code (#82160)
2 years ago
Matt Clay 5b1b0ce762 Remove Python 2 compat (via six) from unit tests
2 years ago
Sviatoslav Sydorenko d2ba76c117
Remove Python `< 3.5` `selectors` fallbacks (#81872)
2 years ago
Matt Clay 9f899f9492
Require `from __future__ import annotations` (#81902)
2 years ago
Matt Martz 553f51e728
Revert logic to use Popen.communicate (#80874)
3 years ago
Abhijeet Kasurde 652ddc4078
Fix pylint disallowed-name errors (#80854)
3 years ago
Matt Clay 2cd1744be3
Use ansible.module_utils.common.text.converters (#80704)
3 years ago
Matt Martz 6d1e355639
Only use the selectors code path when we are prompt matching (#79931)
3 years ago
Matt Martz 98138584b7
Don't mutate os.environ in AnsibleModule.run_command, make a copy, and pass to Popen (#74791)
5 years ago
Alexei Znamensky 5654de6fce
Return error if cwd directory does not exist (#72390)
5 years ago
Matt Clay 98a0995fd0 Clean up unit test boilerplate.
6 years ago
Bob Weinand f200487414
Fix filedescriptor out of range in select() when running commands (#65058)
6 years ago
Sam Doran 617fbad743
synchronize - fix password authentication (#66542)
6 years ago
Brian Coca ee4cba1b85 ensure bytes in run_command (#58411)
7 years ago
Brian Coca e280f2f7b0
Try to get correct buffer size to avoid races (#53547)
7 years ago
Toshio Kuratomi cd36164239
Porting tests to pytest (#33387)
8 years ago
Dag Wieers 4efec414e7 test/: PEP8 compliancy (#24803)
9 years ago
Toshio Kuratomi 2fff690caa Update module_utils.six to latest (#22855)
9 years ago
Toshio Kuratomi 1609afbd12 Unittests for some of module_common.py (#20812)
9 years ago
Gordon Gao d9e1e374b2 let chdir support relative path in more modules (#16736)
9 years ago
Toshio Kuratomi 08a58ae025 Fix for run_command tests now that it returns native strings
10 years ago
Toshio Kuratomi 44d979c8f5 Enable most unittests on python3 (just some vault unittests and a logging one left) (#17240)
10 years ago
Toshio Kuratomi 5a3493be5f Port urls.py to python3 and other byte vs text fixes (#16124)
10 years ago
Robin Roth 85477fa215 Don't use 'from ansible.module_utils import foo' style here as it breaks (#15756)
10 years ago
Toshio Kuratomi 186337db28 Ship constants to the modules via internal module params rather than a secondary dict.
10 years ago
Toshio Kuratomi c730af5dc2 Remove reload from arg related tests. Changes to how ziploader passes args mean we don't need reload anymore. (#15782)
10 years ago
Toshio Kuratomi 44e21f7062 Allow AnsibleModules to be instantiated more than once in a module
10 years ago
nitzmahone 5b336832af add _load_params debug overrides for module args/file passed on cmdline
10 years ago
Toshio Kuratomi 75546678d9 Fix unittests
10 years ago
Toshio Kuratomi 4b0aa1214c Ziploader
10 years ago
Toshio Kuratomi b70bf3b056 Use io.StringIO and io.BytesIO instead of StringIO.StringIO for compat with py3
10 years ago
Toshio Kuratomi a68d90a71a rework run_command's env setting to not change os.environ for the rest of the module.
10 years ago
Brano Zarnovican 90f99f29ae unittest cover for 'run_command'
10 years ago