Changeset - a8d7050f3431
[Not reviewed]
0 2 0
Branko Majic (branko) - 13 days ago 2024-09-06 12:22:42
branko@majic.rs
MAR-218: Fix/improve reliability of mail_server tests:

- The common role has rather conservative rate limit values that
easily get triggered when running connectivity tests in quick
succesions.
2 files changed with 6 insertions and 0 deletions:
0 comments (0 inline, 0 general)
roles/mail_server/molecule/default/group_vars/parameters-mandatory.yml
Show inline comments
 
@@ -6,12 +6,15 @@ mail_ldap_tls_truststore: "{{ lookup('file', 'tests/data/x509/ca/chain-full.cert
 
mail_ldap_postfix_password: postfixpassword
 
mail_ldap_dovecot_password: dovecotpassword
 

	
 
imap_tls_certificate: "{{ lookup('file', 'tests/data/x509/server/{{ inventory_hostname }}_imap.cert.pem') }}"
 
imap_tls_key: "{{ lookup('file', 'tests/data/x509/server/{{ inventory_hostname }}_imap.key.pem') }}"
 

	
 
smtp_tls_certificate: "{{ lookup('file', 'tests/data/x509/server/{{ inventory_hostname }}_smtp.cert.pem') }}"
 
smtp_tls_key: "{{ lookup('file', 'tests/data/x509/server/{{ inventory_hostname }}_smtp.key.pem') }}"
 

	
 
# common
 
ca_certificates:
 
  testca: "{{ lookup('file', 'tests/data/x509/ca/level1.cert.pem') }}"
 
# Tests can run in quick succession, increase limits to avoid false negatives.
 
incoming_connection_limit: 10/second
 
incoming_connection_limit_burst: 60
roles/mail_server/molecule/default/group_vars/parameters-optional.yml
Show inline comments
 
@@ -30,23 +30,26 @@ smtp_allow_relay_from:
 
mail_message_size_limit: 20480001
 
mail_server_smtp_additional_configuration: |
 
  mail_name = MySMTP
 
  smtp_skip_5xx_greeting = no
 

	
 
# Variables dependant on distribution release.
 
release_based_smtp_allow_relay_from:
 
  bookworm: "192.168.56.21"
 

	
 
# common
 
ca_certificates:
 
  testca: "{{ lookup('file', 'tests/data/x509/ca/level1.cert.pem') }}"
 
# Tests can run in quick succession, increase limits to avoid false negatives.
 
incoming_connection_limit: 10/second
 
incoming_connection_limit_burst: 60
 

	
 
# backup_client
 
enable_backup: true
 
backup_client_username: "bak-param-optional-{{ ansible_distribution_release }}"
 
backup_encryption_key: "{{ lookup('file', 'tests/data/gnupg/parameters-optional.asc') }}"
 
backup_server: ldap-server
 
backup_server_host_ssh_public_keys:
 
  - "{{ lookup('file', 'tests/data/ssh/server_rsa.pub') }}"
 
  - "{{ lookup('file', 'tests/data/ssh/server_ed25519.pub') }}"
 
  - "{{ lookup('file', 'tests/data/ssh/server_ecdsa.pub') }}"
 
backup_ssh_key: "{{ lookup('file', 'tests/data/ssh/parameters-optional') }}"
0 comments (0 inline, 0 general)