Support cryptography 3.3 (#882)

* Re-add Debian Bullseye to CI.

* Support cryptography 3.3 as well.
This commit is contained in:
Felix Fontein
2025-05-02 21:42:06 +02:00
committed by GitHub
parent 86db561193
commit fbcb89f092
75 changed files with 213 additions and 134 deletions

View File

@@ -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', '>=')

View File

@@ -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', '>=')

View File

@@ -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', '>=')

View File

@@ -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', '>=')

View File

@@ -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', '>=')

View File

@@ -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', '>=')

View File

@@ -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', '>=')

View File

@@ -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', '>=')

View File

@@ -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', '>=')

View File

@@ -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', '>=')

View File

@@ -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', '>=')

View File

@@ -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', '>=')

View File

@@ -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', '>=')

View File

@@ -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', '>=')

View File

@@ -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', '>=')

View File

@@ -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', '>=')

View File

@@ -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:

View File

@@ -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', '>=')

View File

@@ -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', '>=')

View File

@@ -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', '>=')

View File

@@ -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', '>=')

View File

@@ -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', '>=')

View File

@@ -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', '>=')

View File

@@ -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', '>=')

View File

@@ -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', '>=')

View File

@@ -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', '>=')

View File

@@ -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', '>=')

View File

@@ -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', '>=')

View File

@@ -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', '>=')

View File

@@ -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', '>=')

View File

@@ -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', '>=')

View File

@@ -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

View File

@@ -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

View File

@@ -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', '>=')

View File

@@ -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', '>=')

View File

@@ -694,4 +694,4 @@
- Ed448
ignore_errors: true
when: cryptography_version.stdout is version('3.4', '>=')
when: cryptography_version.stdout is version('3.3', '>=')

View File

@@ -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', '>=')