Commit Graph

134 Commits (23e2ca91c2b73280e84e805d04be3a768b584aee)

Author SHA1 Message Date
Matt Martz 2a795e5747
Manage basic.selinux completely, instead of mocking potentially missing module (#80448)
3 years ago
Matt Martz 6d1e355639
Only use the selectors code path when we are prompt matching (#79931)
3 years ago
Matt Clay 9d65e122ff
Fix detection of available hashlib algorithms (#79946)
3 years ago
Matt Clay 25d859f8fb
Clean up unused imports in unit tests (#79893)
3 years ago
Matt Martz 9acca5b3b9
Allow test to run on system with selinux enabled. Fixes #77564 (#79510)
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 Clay 2cd6cdc6a7
Fix duplicate unit test function names. (#77115)
4 years ago
Martin Krizek 23f95300bd
Intentional tests (#76051)
5 years ago
Matt Martz 74f5367673
Ensure `heuristic_log_sanitize` returns correct data if no password found (#75570)
5 years ago
Matt Clay ce6d8a143c
Code cleanup to prepare for pylint update. (#75475)
5 years ago
Sam Doran 9a21e24778
get_distribution - Return distribution for all platforms (#71641)
5 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
Matt Clay d4413dac08 Fix unit tests on Python 3.10.
5 years ago
Logistic Bot 7099657dd7
Basic: don't call lstat when check_mode (#64279)
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
Matt Davis 4c5ce5a1a9
module compat for py3.8+ controller (#73423)
5 years ago
Alexander Sowitzki e6da544310 Let `command` always return stdout & stderr (#73004)
5 years ago
Brian Coca 932ba36160
ensure unsafe writes fallback (#70722)
5 years ago
Pilou b464d18fd1
AnsibleModule.set_mode_if_different: handle symlink is in a sticky directory (#45198)
5 years ago
Alexei Znamensky 5654de6fce
Return error if cwd directory does not exist (#72390)
6 years ago
Rick Elrod 5cd489af06
Let get_file_attributes() work without `lsattr -v` (#71845)
6 years ago
Sam Doran 888be697cb
Revert "Change default file permissions so they are not world readable (#70221)" (#71231)
6 years ago
Abhijeet Kasurde e439194c8c
basic: Add name of aliases in error message (#69427)
6 years ago
Sam Doran 5260527c4a
Change default file permissions so they are not world readable (#70221)
6 years ago
David Shrewsbury bf98f031f3
Sanitize URI module keys with no_log values (#70762)
6 years ago
Abhijeet Kasurde 055871cbb8
api: time.clock compatible code (#70650)
6 years ago
jabdr 0690b68bd3
Support datetime.date object in module result (#70595)
6 years ago
Mark Chappell 8d160b1881
Remove remaining examples of 1.1.1.1 (#70552)
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
Sam Doran bc05415109
Only pass kwargs to our string checker not callable checkers (#70151)
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
Felix Fontein 40f21dfd3c
Version source tagging (automatic and manual) for version_added and deprecation versions (#69680)
6 years ago
Felix Fontein ea04e0048d
Allow to deprecate options and aliases by date (#68177)
6 years ago
Matt Martz e0f25a2b1f
Strip no log values from module response keys. Fixes #68400 (#69653)
6 years ago
Bob Weinand f200487414
Fix filedescriptor out of range in select() when running commands (#65058)
6 years ago
Brian Coca ac509d489b
Revert "stricter permissions on atomic_move when creating new file (#68970)" (#68983)
6 years ago
Brian Coca 566f2467f6
stricter permissions on atomic_move when creating new file (#68970)
6 years ago
Toshio Kuratomi 184f540056 Add some more unittests for fail_json
6 years ago
Toshio Kuratomi 6531ba38f8 Allow the msg argument to fail_json() to be a positional argument
6 years ago
Sam Doran 3461c682c3
Add mechanism for storing warnings and deprecations outside of AnsibleModule (#58993)
6 years ago
Sam Doran 617fbad743
synchronize - fix password authentication (#66542)
6 years ago
kaorihinata 3ca4580cb4 Allow no_log=False to silence the no_log warnings for module parameters (#64733)
6 years ago
Mads Jensen 0f491c0289 Replace TestCase.assertEquals with TestCase.assertEqual.
7 years ago
Jill R d49d52eb5f
Add tests for new alias deprecation functionality (#61476)
7 years ago
Andrey Klychkov 21863d48f3 unit tests: remove unused imports (#60462)
7 years ago