Commit Graph

30 Commits (ca635fac4a3f577f8fb5fcd33ca954aa30bdf2e5)

Author SHA1 Message Date
Matt Clay 5b1b0ce762 Remove Python 2 compat (via six) from unit tests
2 years ago
Matt Clay 18e8401edd
Remove Python 2.x compat from unit tests (#82109)
2 years ago
Jordan Borean 22568305d6
Add ignore invalid options override for mod wrapper (#81899)
2 years ago
Matt Clay 9f899f9492
Require `from __future__ import annotations` (#81902)
2 years ago
Abhijeet Kasurde 923ede4f72
pep8: fix sanity for 3.12 (#81348)
3 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
Matt Clay 1a5853d794
Remove obsolete units.compat.mock compat layer. (#77118)
4 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
Abhijeet Kasurde e439194c8c
basic: Add name of aliases in error message (#69427)
6 years ago
Abhijeet Kasurde 055871cbb8
api: time.clock compatible code (#70650)
6 years ago
Sam Doran bc05415109
Only pass kwargs to our string checker not callable checkers (#70151)
6 years ago
Sam Doran 3461c682c3
Add mechanism for storing warnings and deprecations outside of AnsibleModule (#58993)
6 years ago
kaorihinata 3ca4580cb4 Allow no_log=False to silence the no_log warnings for module parameters (#64733)
6 years ago
Jill R d49d52eb5f
Add tests for new alias deprecation functionality (#61476)
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
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
Felix Fontein 07fcb60d55 Python 2: accept both long and int for type=int (module options) (#53289)
7 years ago
Ganesh Nalawade 41e2bd1df5
Add support for elements validation in argspec (#50335)
7 years ago
Dag Wieers cd9471ef17 Introduce new 'required_by' argument_spec option (#28662)
7 years ago
Matt Clay feb5b0b299 Fix unit test issues with pytest >= 4.0.0.
7 years ago
Matt Clay 3033fd96b0
Move unit test compat code out of `lib/ansible/`. (#46996)
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
Toshio Kuratomi 370a7ace4b
Split basic units (#33510)
8 years ago
Toshio Kuratomi cd36164239
Porting tests to pytest (#33387)
8 years ago
Matt Davis 3f1ec6b862 add custom module type validation (#27183)
9 years ago