Commit Graph

134 Commits (23e2ca91c2b73280e84e805d04be3a768b584aee)

Author SHA1 Message Date
Matt Martz 697b566971
Update units to pass on macOS (#60435)
7 years ago
Andrey Klychkov 4e8df9a4b8 unit tests: remove unused imports (#59636)
7 years ago
Felix Fontein 4a574c4d0c Option parsing: warn if both an option and its alias are specified for a module (#53698)
7 years ago
Brian Coca ee4cba1b85 ensure bytes in run_command (#58411)
7 years ago
Sam Doran ff88bd82b5
Move type checking methods out of basic.py and add unit tests (#53687)
7 years ago
Sam Doran 43a44e6f35
Move utility functions out of basic.py (#51715)
7 years ago
Brian Coca e280f2f7b0
Try to get correct buffer size to avoid races (#53547)
7 years ago
Sam Doran bf28b5ceca
Use distro.id() instead of distro.name() (#52199)
7 years ago
Felix Fontein 07fcb60d55 Python 2: accept both long and int for type=int (module options) (#53289)
7 years ago
Sam Doran aba4bed803
Move _handle_no_log_values() out of basic.py (#48628)
7 years ago
Sam Doran 2a98faee2b
Move _handle_aliases() out of basic.py (#48578)
7 years ago
Ganesh Nalawade 41e2bd1df5
Add support for elements validation in argspec (#50335)
7 years ago
Sviatoslav Sydorenko f1e67c3328 Bugfix/ fix mocker patch in tests (#52372)
7 years ago
Dag Wieers cd9471ef17 Introduce new 'required_by' argument_spec option (#28662)
7 years ago
Toshio Kuratomi 5844c8c7f0 Cleanups to the common.sys_info API
7 years ago
Toshio Kuratomi 61b1daa65f Port from plaform.dist to ansible.module_utils.distro.linux_distribution
7 years ago
Andreas Calminder 876b637208 move some of basic into common (#48078)
7 years ago
Matt Clay feb5b0b299 Fix unit test issues with pytest >= 4.0.0.
8 years ago
Matt Clay 3033fd96b0
Move unit test compat code out of `lib/ansible/`. (#46996)
8 years ago
Matt Clay 53b230ca74 Fix unit test parametrize order on Python 3.5.
8 years ago
Matt Martz c1c229c6d4
Remove use of simplejson throughout code base (#43548)
8 years ago
Toshio Kuratomi 52449cc01a AnsiballZ improvements
8 years ago
Toshio Kuratomi 5b4a7cc283 Fix journald unittests
8 years ago
Jordan Borean 8bdd04c147 Fix remote_tmp when become with non admin user (#42396)
8 years ago
Jordan Borean 5c39c3b2d1
Module basic.py to create parent dirs of tmpdir if needed (#40201)
8 years ago
Jordan Borean 44ab948e5d
create module tmpdir based on remote_tmp (#39833)
8 years ago
Matt Martz 1663b64e18
Allow subspec defaults to be processed when the parent argument is not supplied (#38967)
8 years ago
René Moser 2f36b9e5ce basic: allow one or more when param list having choices (#34537)
8 years ago
Pilou e9df2083a3 If check mode enabled and file missing set changed to true 32676 (#33967)
8 years ago
Pierre-Louis Bonicoli b94630a081 AnsibleModule.get_file_attributes: add unit test
8 years ago
Toshio Kuratomi 370a7ace4b
Split basic units (#33510)
8 years ago
Toshio Kuratomi cd36164239
Porting tests to pytest (#33387)
9 years ago
Toshio Kuratomi aa7bd8bc11 Port AnsibleModule deprecate and warning tests to pytest (#33162)
9 years ago
Matt Davis 3f1ec6b862 add custom module type validation (#27183)
9 years ago
Toshio Kuratomi 47f26ee11c Refactor the tests for _symbolic_mode_to_octal
9 years ago
Brian Coca 2a041d10d2 better backwards compat handling of status
9 years ago
Toshio Kuratomi be4e7a05fa remove_values could hit the recursion limit
9 years ago
Dag Wieers 0e160d5c7e Ensure exit_json returns failed = False
9 years ago
Dag Wieers 4efec414e7 test/: PEP8 compliancy (#24803)
9 years ago
Abhijeet Kasurde 764b4b20ec Fix UnboundLocalError in basic.py
9 years ago
Toshio Kuratomi 2fff690caa Update module_utils.six to latest (#22855)
9 years ago
Toshio Kuratomi 49194a66c8 Fix log_invocation function to pass unittests on python3
9 years ago
Will Thames 103ede26df Ensure ssh hostkey checks respect server port (#20840)
9 years ago
Pilou f2c22109fb Don't mix deprecations messages with warnings messages (#21337)
9 years ago
Matt Martz 87aa59af79 Legacy pep8 updates for setup.py and tests
9 years ago
Matt Clay 57a5490c41 Fix test which fails on some python 2.6 installs.
9 years ago
Matt Clay 272ff10fa1 Fix @contextmanager leak on exception. (#21031)
9 years ago
Toshio Kuratomi 1609afbd12 Unittests for some of module_common.py (#20812)
9 years ago
Matt Clay 10d9318de7 PEP 8 indent cleanup. (#20800)
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 28227546fa Various python3 updates for module_utils: (#17345)
10 years ago
Toshio Kuratomi fa804125b5 Python3 fixes and porting (#17271)
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 57701d7115 Give native strings to selinux library functions. (#17184)
10 years ago
Toshio Kuratomi d29a7c55fe Enable some basic.py tests on python3 (#17167)
10 years ago
Toshio Kuratomi c8a8f546d4 A little unittest refactoring (#16704)
10 years ago
Dag Wieers d91df20620 Fix unit tests for module_name commit #16087
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
Toshio Kuratomi 03126f7097 Fix cut and paste error of test code
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 d3583108ec Fix log_invocation test on python2 with hash randomization
10 years ago
Matt Martz ad30bad14f Skip test_module_utils_basic__log_invocation until we can figure out the cause of the failure
10 years ago
James Cammarata 8eadc1d8eb Adding more unit tests for AnsibleModule things in basic.py
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
Brian Coca d89d7951e6 fixed tests to follow new invocation structure
10 years ago
Toshio Kuratomi e2d9f4e2f2 Fix unittests for return of invocation from fail_json and exit_json
11 years ago
Michael Scherer a7ac98262d Make module_utils.known_hosts.get_fqdn work on ipv6
11 years ago
Michael Scherer 3c4d2fc6f2 Add tests for ansible.module_utils.known_hosts
11 years ago
Toshio Kuratomi cfeef81303 For now, skip tests of module_utils/basic functions that are failing on
11 years ago
Toshio Kuratomi e00012994e Also some unicode tests for return_values()
11 years ago
Toshio Kuratomi 5fdfe6a0f2 Add some test data that has unicode values
11 years ago
Brano Zarnovican 90f99f29ae unittest cover for 'run_command'
11 years ago
Toshio Kuratomi 5a0e63af1e Workaround seeming bug in python-2.6's sys.exit()
11 years ago
Toshio Kuratomi 6e5055e786 Update the use of no_log values to cover everything that heuristic_log_sanitize does.
11 years ago
Toshio Kuratomi c2d188baff Hide values in json returns which were given in parameters marked no_log.
11 years ago
Toshio Kuratomi 15d7f53846 AnsibleModules.log() fix for python3
11 years ago