community.general/lib/ansible
MarkusTeufelberger 2186b04934 Add simple integration test for openssl_certificate (#29038)
* openssl_certificate: Fix parameter assertion in Python3

Parameter assertion in Python3 is broken. pyOpenSSL get_X() functions
returns b'' type string and tries to compare it with '' string, leading
to failure.

The error mentionned above has been fixed by sanitizing the inputs from
a user to the assert only backend.

Also, this error was hidden by the fact that the improper check method
was called in the generate() functions.

* Add simple integration test for openssl_certificate

* remove subject == issuer assertion

* run integration tests only on supported hosts

* change min supported version to 0.15.x

* Add test for more CSR fields

* also convert dict members to bytes

* fix version_compare

* openssl_{csr, certificate}: Fail if pyOpenSSL <= 0.15

Previous 0.13 pyOpenSSL was a C-binding, and required the parameter
passed to add_extention to be in ASN.1. This has changed with the move
to 0.14 and it is now all pythong and string based.

Previous the 0.15 release, the `get_extensions()` method didn't exist,
since the modules rely heavily on it we ensure pyOpenSSL version is at
last 0.15.0.

* check pyopenssl version in openssl_csr integration test
2017-09-13 14:39:32 -07:00
..
cli Miscellaneous pylint fixes. 2017-09-13 01:53:08 -07:00
compat Remove wildcard imports 2017-07-28 22:10:17 -07:00
config Remove some non-ascii chars from strings 2017-09-13 09:23:53 -07:00
errors Ansible Config part2 (#27448) 2017-08-15 16:38:59 -04:00
executor Fix dangerous default args. (#29839) 2017-09-12 00:11:13 -07:00
galaxy Removes container-enabled warning (#27578) 2017-08-01 12:51:03 -04:00
inventory bypass get_hosts and use dictionary directly 2017-08-30 10:56:45 -04:00
module_utils nxos_udld_interface: improve interface detection (#28682) 2017-09-13 11:06:56 -07:00
modules Add simple integration test for openssl_certificate (#29038) 2017-09-13 14:39:32 -07:00
parsing Fix dangerous default args. (#29839) 2017-09-12 00:11:13 -07:00
playbook Fix conditional inheritance on dynamic includes (tasks and roles) (#30178) 2017-09-13 11:33:43 -05:00
plugins Fix sending facts to Foreman 2017-09-13 13:58:45 -07:00
template Fix dangerous default args. (#29839) 2017-09-12 00:11:13 -07:00
utils Updated Display.do_var_prompt to use to_native on prompt ( Fixes #30265 ) (#30285) 2017-09-13 09:58:28 -07:00
vars remove fact namespacing 2017-09-10 17:37:52 -04:00
__init__.py Fix ziploader for the cornercase of ansible invoking ansible. 2016-04-29 08:47:49 -07:00
constants.py only eval values if set from defaults 2017-09-12 10:05:16 -07:00
release.py Bump the versions now that devel is 2.5 2017-09-06 13:13:57 -07:00