mirror of
https://github.com/ansible-collections/community.crypto.git
synced 2026-05-07 22:03:01 +00:00
Speed up tests (#153)
* Improve openssh_* tests. * Use 2048 instead of 4096 bit keys in many places. ci_complete * Parameterize default RSA key length for tests. * Reduce default RSA key size to 1024. ci_complete * Fix error. ci_complete * Use variable more often. * Use 2048 bits for RSA keys for certificates on RHEL8 and CentOS8. ci_complete * Fix missing constant. ci_complete * Print default key sizes.
This commit is contained in:
@@ -96,3 +96,7 @@
|
||||
- name: Register cryptography version
|
||||
command: "{{ ansible_python.executable }} -c 'import cryptography; print(cryptography.__version__)'"
|
||||
register: cryptography_version
|
||||
|
||||
- name: Print default key sizes
|
||||
debug:
|
||||
msg: "Default RSA key size: {{ default_rsa_key_size }} (for certificates: {{ default_rsa_key_size_certifiates }})"
|
||||
|
||||
3
tests/integration/targets/setup_openssl/vars/main.yml
Normal file
3
tests/integration/targets/setup_openssl/vars/main.yml
Normal file
@@ -0,0 +1,3 @@
|
||||
---
|
||||
default_rsa_key_size: 1024
|
||||
default_rsa_key_size_certifiates: '{{ 2048 if ansible_os_family == "RedHat" and ansible_facts.distribution_major_version | int >= 8 else 1024 }}'
|
||||
Reference in New Issue
Block a user