mirror of
https://github.com/ansible-collections/community.crypto.git
synced 2026-05-08 06:13:03 +00:00
Support cryptography 3.3 (#882)
* Re-add Debian Bullseye to CI. * Support cryptography 3.3 as well.
This commit is contained in:
@@ -37,4 +37,4 @@
|
||||
|
||||
- import_tasks: ../tests/validate.yml
|
||||
|
||||
when: cryptography_version.stdout is version('3.4', '>=')
|
||||
when: cryptography_version.stdout is version('3.3', '>=')
|
||||
|
||||
@@ -37,4 +37,4 @@
|
||||
|
||||
- import_tasks: ../tests/validate.yml
|
||||
|
||||
when: cryptography_version.stdout is version('3.4', '>=')
|
||||
when: cryptography_version.stdout is version('3.3', '>=')
|
||||
|
||||
@@ -41,4 +41,4 @@
|
||||
|
||||
- import_tasks: ../tests/validate.yml
|
||||
|
||||
when: cryptography_version.stdout is version('3.4', '>=')
|
||||
when: cryptography_version.stdout is version('3.3', '>=')
|
||||
|
||||
@@ -118,4 +118,4 @@
|
||||
|
||||
- import_tasks: ../tests/validate.yml
|
||||
|
||||
when: cryptography_version.stdout is version('3.4', '>=')
|
||||
when: cryptography_version.stdout is version('3.3', '>=')
|
||||
|
||||
@@ -37,4 +37,4 @@
|
||||
|
||||
- import_tasks: ../tests/validate.yml
|
||||
|
||||
when: cryptography_version.stdout is version('3.4', '>=')
|
||||
when: cryptography_version.stdout is version('3.3', '>=')
|
||||
|
||||
@@ -33,4 +33,4 @@
|
||||
vars:
|
||||
select_crypto_backend: cryptography
|
||||
|
||||
when: cryptography_version.stdout is version('3.4', '>=')
|
||||
when: cryptography_version.stdout is version('3.3', '>=')
|
||||
|
||||
@@ -40,4 +40,4 @@
|
||||
|
||||
- import_tasks: ../tests/validate.yml
|
||||
|
||||
when: cryptography_version.stdout is version('3.4', '>=')
|
||||
when: cryptography_version.stdout is version('3.3', '>=')
|
||||
|
||||
@@ -37,4 +37,4 @@
|
||||
|
||||
- import_tasks: ../tests/validate.yml
|
||||
|
||||
when: cryptography_version.stdout is version('3.4', '>=')
|
||||
when: cryptography_version.stdout is version('3.3', '>=')
|
||||
|
||||
@@ -35,4 +35,4 @@
|
||||
terms_agreed: true
|
||||
account_email: "example@example.org"
|
||||
|
||||
when: cryptography_version.stdout is version('3.4', '>=')
|
||||
when: cryptography_version.stdout is version('3.3', '>=')
|
||||
|
||||
@@ -37,4 +37,4 @@
|
||||
|
||||
- import_tasks: ../tests/validate.yml
|
||||
|
||||
when: cryptography_version.stdout is version('3.4', '>=')
|
||||
when: cryptography_version.stdout is version('3.3', '>=')
|
||||
|
||||
@@ -24,4 +24,4 @@
|
||||
- name: Run tests with created certificates
|
||||
import_tasks: created.yml
|
||||
|
||||
when: cryptography_version.stdout is version('3.4', '>=')
|
||||
when: cryptography_version.stdout is version('3.3', '>=')
|
||||
|
||||
@@ -129,4 +129,4 @@
|
||||
|
||||
- name: Running tests
|
||||
include_tasks: impl.yml
|
||||
when: cryptography_version.stdout is version('3.4', '>=')
|
||||
when: cryptography_version.stdout is version('3.3', '>=')
|
||||
|
||||
@@ -39,4 +39,4 @@
|
||||
|
||||
- name: Running tests
|
||||
include_tasks: impl.yml
|
||||
when: cryptography_version.stdout is version('3.4', '>=')
|
||||
when: cryptography_version.stdout is version('3.3', '>=')
|
||||
|
||||
@@ -44,4 +44,4 @@
|
||||
|
||||
- name: Running tests
|
||||
include_tasks: impl.yml
|
||||
when: cryptography_version.stdout is version('3.4', '>=')
|
||||
when: cryptography_version.stdout is version('3.3', '>=')
|
||||
|
||||
@@ -146,4 +146,4 @@
|
||||
|
||||
- name: Running tests
|
||||
include_tasks: impl.yml
|
||||
when: cryptography_version.stdout is version('3.4', '>=')
|
||||
when: cryptography_version.stdout is version('3.3', '>=')
|
||||
|
||||
@@ -88,4 +88,4 @@
|
||||
- name: Running tests
|
||||
include_tasks: impl.yml
|
||||
|
||||
when: cryptography_version.stdout is version('3.4', '>=')
|
||||
when: cryptography_version.stdout is version('3.3', '>=')
|
||||
|
||||
@@ -37,7 +37,7 @@
|
||||
that:
|
||||
- result is success or skip_tests
|
||||
|
||||
when: cryptography_version.stdout is version('3.4', '>=')
|
||||
when: cryptography_version.stdout is version('3.3', '>=')
|
||||
|
||||
- block:
|
||||
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
|
||||
- set_fact:
|
||||
backends: "{{ backends + ['cryptography'] }}"
|
||||
when: cryptography_version.stdout is version('3.4', '>=') and bcrypt_version.stdout is version('3.1.5', '>=')
|
||||
when: cryptography_version.stdout is version('3.3', '>=') and bcrypt_version.stdout is version('3.1.5', '>=')
|
||||
|
||||
- include_tasks: ../tests/core.yml
|
||||
loop: "{{ backends }}"
|
||||
@@ -47,4 +47,4 @@
|
||||
loop_var: backend
|
||||
|
||||
- include_tasks: ../tests/cryptography_backend.yml
|
||||
when: cryptography_version.stdout is version('3.4', '>=') and bcrypt_version.stdout is version('3.1.5', '>=')
|
||||
when: cryptography_version.stdout is version('3.3', '>=') and bcrypt_version.stdout is version('3.1.5', '>=')
|
||||
|
||||
@@ -29,4 +29,4 @@
|
||||
vars:
|
||||
select_crypto_backend: cryptography
|
||||
|
||||
when: cryptography_version.stdout is version('3.4', '>=')
|
||||
when: cryptography_version.stdout is version('3.3', '>=')
|
||||
|
||||
@@ -132,4 +132,4 @@
|
||||
include_tasks: impl.yml
|
||||
vars:
|
||||
select_crypto_backend: cryptography
|
||||
when: cryptography_version.stdout is version('3.4', '>=')
|
||||
when: cryptography_version.stdout is version('3.3', '>=')
|
||||
|
||||
@@ -24,4 +24,4 @@
|
||||
vars:
|
||||
select_crypto_backend: cryptography
|
||||
|
||||
when: cryptography_version.stdout is version('3.4', '>=')
|
||||
when: cryptography_version.stdout is version('3.3', '>=')
|
||||
|
||||
@@ -44,4 +44,4 @@
|
||||
|
||||
vars:
|
||||
select_crypto_backend: cryptography
|
||||
when: cryptography_version.stdout is version('3.4', '>=')
|
||||
when: cryptography_version.stdout is version('3.3', '>=')
|
||||
|
||||
@@ -62,13 +62,10 @@
|
||||
path: '{{ remote_tmp_dir }}/ansible.p12'
|
||||
state: absent
|
||||
|
||||
- block:
|
||||
- name: Running tests with cryptography backend
|
||||
include_tasks: impl.yml
|
||||
vars:
|
||||
select_crypto_backend: cryptography
|
||||
|
||||
when: cryptography_version.stdout is version('3.4', '>=')
|
||||
- name: Running tests with cryptography backend
|
||||
include_tasks: impl.yml
|
||||
vars:
|
||||
select_crypto_backend: cryptography
|
||||
|
||||
when: >-
|
||||
cryptography_version.stdout is version('3.4', '>=')
|
||||
cryptography_version.stdout is version('3.3', '>=')
|
||||
|
||||
@@ -50,4 +50,4 @@
|
||||
vars:
|
||||
select_crypto_backend: cryptography
|
||||
|
||||
when: cryptography_version.stdout is version('3.4', '>=')
|
||||
when: cryptography_version.stdout is version('3.3', '>=')
|
||||
|
||||
@@ -58,4 +58,4 @@
|
||||
vars:
|
||||
select_crypto_backend: cryptography
|
||||
|
||||
when: cryptography_version.stdout is version('3.4', '>=')
|
||||
when: cryptography_version.stdout is version('3.3', '>=')
|
||||
|
||||
@@ -43,4 +43,4 @@
|
||||
include_tasks: impl.yml
|
||||
vars:
|
||||
select_crypto_backend: cryptography
|
||||
when: cryptography_version.stdout is version('3.4', '>=')
|
||||
when: cryptography_version.stdout is version('3.3', '>=')
|
||||
|
||||
@@ -18,4 +18,4 @@
|
||||
vars:
|
||||
select_crypto_backend: cryptography
|
||||
|
||||
when: cryptography_version.stdout is version('3.4', '>=')
|
||||
when: cryptography_version.stdout is version('3.3', '>=')
|
||||
|
||||
@@ -28,4 +28,4 @@
|
||||
vars:
|
||||
select_crypto_backend: cryptography
|
||||
|
||||
when: cryptography_version.stdout is version('3.4', '>=')
|
||||
when: cryptography_version.stdout is version('3.3', '>=')
|
||||
|
||||
@@ -46,4 +46,4 @@
|
||||
include_tasks: impl.yml
|
||||
vars:
|
||||
select_crypto_backend: cryptography
|
||||
when: cryptography_version.stdout is version('3.4', '>=')
|
||||
when: cryptography_version.stdout is version('3.3', '>=')
|
||||
|
||||
@@ -141,4 +141,4 @@
|
||||
- name: Running tests
|
||||
include_tasks: impl.yml
|
||||
# Make x509_certificate module happy
|
||||
when: cryptography_version.stdout is version('3.4', '>=')
|
||||
when: cryptography_version.stdout is version('3.3', '>=')
|
||||
|
||||
@@ -12,4 +12,4 @@
|
||||
include_tasks: impl.yml
|
||||
vars:
|
||||
select_crypto_backend: cryptography
|
||||
when: cryptography_version.stdout is version('3.4', '>=')
|
||||
when: cryptography_version.stdout is version('3.3', '>=')
|
||||
|
||||
@@ -658,6 +658,6 @@
|
||||
register: ownca_certificate_ed25519_ed448_2_idempotence
|
||||
ignore_errors: true
|
||||
|
||||
when: select_crypto_backend == 'cryptography' and cryptography_version.stdout is version('3.4', '>=')
|
||||
when: select_crypto_backend == 'cryptography' and cryptography_version.stdout is version('3.3', '>=')
|
||||
|
||||
- import_tasks: ../tests/validate_ownca.yml
|
||||
|
||||
@@ -480,6 +480,6 @@
|
||||
register: selfsigned_certificate_ed25519_ed448_idempotence
|
||||
ignore_errors: true
|
||||
|
||||
when: select_crypto_backend == 'cryptography' and cryptography_version.stdout is version('3.4', '>=')
|
||||
when: select_crypto_backend == 'cryptography' and cryptography_version.stdout is version('3.3', '>=')
|
||||
|
||||
- import_tasks: ../tests/validate_selfsigned.yml
|
||||
|
||||
@@ -149,4 +149,4 @@
|
||||
include_tasks: impl.yml
|
||||
vars:
|
||||
select_crypto_backend: cryptography
|
||||
when: cryptography_version.stdout is version('3.4', '>=')
|
||||
when: cryptography_version.stdout is version('3.3', '>=')
|
||||
|
||||
@@ -23,4 +23,4 @@
|
||||
vars:
|
||||
select_crypto_backend: cryptography
|
||||
|
||||
when: cryptography_version.stdout is version('3.4', '>=')
|
||||
when: cryptography_version.stdout is version('3.3', '>=')
|
||||
|
||||
@@ -694,4 +694,4 @@
|
||||
- Ed448
|
||||
ignore_errors: true
|
||||
|
||||
when: cryptography_version.stdout is version('3.4', '>=')
|
||||
when: cryptography_version.stdout is version('3.3', '>=')
|
||||
|
||||
@@ -90,4 +90,4 @@
|
||||
|
||||
- import_tasks: ../tests/validate.yml
|
||||
|
||||
when: cryptography_version.stdout is version('3.4', '>=')
|
||||
when: cryptography_version.stdout is version('3.3', '>=')
|
||||
|
||||
Reference in New Issue
Block a user