1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00
community.general/tests/unit/plugins/modules/system
patchback[bot] 0fbb0039b1
java_keystore: improve error handling and returned results (#2183) (#2226)
* java_keystore - improve error handling and returned results

* set check_rc=False to return results as documented when module fails
* set LANG, LC_ALL and LC_MESSAGES to C to rely keytool output parsing
* fix pylint's `no-else-return` and `unused-variable` hints
* update related unit tests accordingly
* add a changelog fragment

update unit test (remove stdout_lines from returned dict)

fix unit test: failure is now expected when alias does not exist

* Update changelogs/fragments/2183-java_keystore_improve_error_handling.yml

Co-authored-by: Felix Fontein <felix@fontein.de>

* fix integration test: overwrite keystore at the same location

Co-authored-by: Felix Fontein <felix@fontein.de>
(cherry picked from commit 89b7e7191f)

Co-authored-by: quidame <quidame@poivron.org>
2021-04-12 22:13:34 +02:00
..
interfaces_file [stable-1] Update CI (#1790) 2021-02-11 16:32:47 +01:00
__init__.py Move modules and module_utils unit tests to correct place (#81) 2020-03-31 10:42:38 +02:00
test_java_keystore.py java_keystore: improve error handling and returned results (#2183) (#2226) 2021-04-12 22:13:34 +02:00
test_pamd.py sanity: Add future boilerplate (#573) 2020-06-24 21:50:36 +02:00
test_parted.py parted: fix regex for version match and partition size output (#1695) (#1731) 2021-02-05 07:46:15 +01:00
test_solaris_zone.py solaris_zone: fix zone configuration with python3 (#1082) (#1096) 2020-10-15 09:52:14 +02:00
test_sysupgrade.py sysupgrade: new module (#341) 2020-08-18 09:11:48 +02:00
test_ufw.py sanity: Add future boilerplate (#573) 2020-06-24 21:50:36 +02:00
test_xfconf.py xfconf: add return values and expand test coverage (#1419) (#1479) 2020-12-12 15:29:20 +01:00