Commit Graph

56 Commits (23e2ca91c2b73280e84e805d04be3a768b584aee)

Author SHA1 Message Date
Matt Clay 379058e10f
Update collections.abc imports (#79911)
3 years ago
Matt Clay 25d859f8fb
Clean up unused imports in unit tests (#79893)
3 years ago
Felix Fontein 8a7185c224
Argument spec alias handling: actually report deprecated aliases in suboptions, and fix warning message in suboptions when two aliases of the same option are used (#79740)
3 years ago
Matt Clay b86a18bd27
Remove unit test pytz requirement. (#78368)
4 years ago
Matt Clay 2595b42aca
Prefer unittest.mock over mock. (#77886)
4 years ago
Sam Doran 1b947eaf92
arg_spec - Return aliases in validation result and update aliases (#77576)
4 years ago
Abhijeet Kasurde 4f48f375a0
parameters: handle blank values when argument is a list (#77119)
4 years ago
Matt Clay 1a5853d794
Remove obsolete units.compat.mock compat layer. (#77118)
4 years ago
Matt Clay 2cd6cdc6a7
Fix duplicate unit test function names. (#77115)
4 years ago
Brian Coca 3ca50a2200
Clarify get_bin_path error message (#75544)
5 years ago
Matt Clay 04009a77e6
Clean up unit tests to prepare for pylint update. (#75473)
5 years ago
Abhijeet Kasurde e7a3715a90
recursive_diff: handle error when parameters are not dict (#74801)
5 years ago
Brian Coca 415e08c297
Try to get best usable locale (#75033)
5 years ago
Abhijeet Kasurde b0ae3f8a8d
test: Unit tests for validation methods (#75061)
5 years ago
Sam Doran 9a21e24778
get_distribution - Return distribution for all platforms (#71641)
5 years ago
Matt Clay a30c55f68a Remove deprecated `common.removed` module_util.
5 years ago
Rick Elrod fcbf5c3185
[module_utils] make to_bits actually return (#74409)
5 years ago
Matt Clay 9ba6cf9a72 Relocate misplaced unit tests.
5 years ago
Matt Martz 17237c1d88
Deprecate Py2.6 support for target nodes (#74165)
5 years ago
Sam Doran abacf6a108
Use ArgumentSpecValidator in AnsibleModule (#73703)
5 years ago
Sam Doran 2377a0a776
Improve ArgumentSpecValidator unit tests (#73642)
5 years ago
Sam Doran b6811dfb61
Add argument spec validator (#73335)
5 years ago
Sam Doran e889b1063f
arg_spec - rework _check_arguments() (#72447)
6 years ago
Matt Martz 48f12c14e9
AnsibleVaultEncryptedUnicode should be considered a string (#71609)
6 years ago
jctanner b019029bf3
Add intentional unit tests for basic._set_cwd and common.dict_merge (#70283)
6 years ago
Matt Clay 98a0995fd0 Clean up unit test boilerplate.
6 years ago
Felix Fontein a862ff2d43
Deprecation revisited (#69926)
6 years ago
Dongsu Park 598e3392a9
Discover Flatcar Linux properly for hostname (#69627)
6 years ago
Jordan Borean 79fff7da69
Expose to_<str> as a public function (#68965)
6 years ago
Rick Elrod 3c3ffc09c2
Fix and add tests for some module_utils.common.validation (#67771)
6 years ago
Rick Elrod ed37efb217
"Fix" test_get_bin_path by changing mock order (#67730)
6 years ago
Felix Fontein fe454d27a1
Fix removed_in_version to support honor suboptions (#66918)
6 years ago
Sam Doran 5112feeace
Make get_bin_path() always raise an exception (#56813)
6 years ago
Sam Doran 3461c682c3
Add mechanism for storing warnings and deprecations outside of AnsibleModule (#58993)
6 years ago
Sam Doran e9d29b1fe4 Properly mask no_log values is sub parameters during failure (#63405)
7 years ago
Sam Doran 2d266fbc87
Fix unit tests to work with pytest >= 5.0 (#60246)
7 years ago
Sam Doran aa717661af Move assertion in unit test inside loop (#60232)
7 years ago
Andrey Klychkov 333953117c Add human_to_bytes isbits arg unit tests&docstring
7 years ago
Andrey Klychkov 59e647910d Add unit tests for bytes_to_human formatter
7 years ago
Andrey Klychkov 88ec5e14cb Add unit tests for lenient_lowercase function (#58586)
7 years ago
Andrey Klychkov 10af2636d1 Add unit tests for human_to_bytes (#58584)
7 years ago
Andrey Klychkov 3e06013eb6 unittests for module_utils.common.removed.removed_module function (#57214)
7 years ago
Sviatoslav Sydorenko 4c7fff315e
Fix module_utils.common.test_collections testsuite
7 years ago
Andrey Klychkov 01ed7a489a Add unit tests for lib/ansible/module_utils/common/text/converters.py (#56915)
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
Sam Doran bf28b5ceca
Use distro.id() instead of distro.name() (#52199)
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
Toshio Kuratomi c18da65089 Add a CLIArgs Singleton class that will hold the parse cli arguments
7 years ago