Work around bug in ansible-core that censors mailto URIs. (#859)

This commit is contained in:
Felix Fontein
2025-04-10 12:58:33 +02:00
committed by GitHub
parent a2d821f960
commit a9d6e0048c
2 changed files with 5 additions and 5 deletions

View File

@@ -18,7 +18,7 @@
- "account_created_check.diff.before == {}" - "account_created_check.diff.before == {}"
- "'after' in account_created_check.diff" - "'after' in account_created_check.diff"
- account_created_check.diff.after.contact | length == 1 - account_created_check.diff.after.contact | length == 1
- account_created_check.diff.after.contact[0] == 'mailto:example@example.org' - account_created_check.diff.after.contact[0] in ['mailto:example@example.org', 'mailto:********@********.org']
- name: Validate that account was created in the second step - name: Validate that account was created in the second step
assert: assert:
@@ -39,9 +39,9 @@
- account_modified_check.account_uri is not none - account_modified_check.account_uri is not none
- "'diff' in account_modified_check" - "'diff' in account_modified_check"
- account_modified_check.diff.before.contact | length == 1 - account_modified_check.diff.before.contact | length == 1
- account_modified_check.diff.before.contact[0] == 'mailto:example@example.org' - account_modified_check.diff.before.contact[0] in ['mailto:example@example.org', 'mailto:********@********.org']
- account_modified_check.diff.after.contact | length == 1 - account_modified_check.diff.after.contact | length == 1
- account_modified_check.diff.after.contact[0] == 'mailto:example@example.com' - account_modified_check.diff.after.contact[0] in ['mailto:example@example.com', 'mailto:********@********.com']
- name: Validate that email address was changed - name: Validate that email address was changed
assert: assert:
@@ -67,7 +67,7 @@
- account_modified_2_check.account_uri is not none - account_modified_2_check.account_uri is not none
- "'diff' in account_modified_2_check" - "'diff' in account_modified_2_check"
- account_modified_2_check.diff.before.contact | length == 1 - account_modified_2_check.diff.before.contact | length == 1
- account_modified_2_check.diff.before.contact[0] == 'mailto:example@example.com' - account_modified_2_check.diff.before.contact[0] in ['mailto:example@example.com', 'mailto:********@********.com']
- account_modified_2_check.diff.after.contact | length == 0 - account_modified_2_check.diff.after.contact | length == 0
- name: Validate that email address was cleared - name: Validate that email address was cleared

View File

@@ -50,7 +50,7 @@
- "'output_json' in account_update" - "'output_json' in account_update"
- account_update.output_json.status == 'valid' - account_update.output_json.status == 'valid'
- account_update.output_json.contact | length == 1 - account_update.output_json.contact | length == 1
- account_update.output_json.contact[0] == 'mailto:me@example.com' - account_update.output_json.contact[0] in ['mailto:me@example.com', 'mailto:*******@example.com']
- name: Check certificate request output - name: Check certificate request output
assert: assert: