Skip to content

Commit

Permalink
test: el10 now uses lmdb by default
Browse files Browse the repository at this point in the history
el10 (but not Fedora) has switched to using lmdb as the
default map type, and uses the '.lmdb' suffix.

Signed-off-by: Rich Megginson <rmeggins@redhat.com>
  • Loading branch information
richm committed Jul 31, 2024
1 parent 8c140e8 commit d0e27bd
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion tests/tests_set_file.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,14 @@

- name: Check if postmap file exists
stat:
path: /etc/postfix/test.db
path: /etc/postfix/test{{ __test_file_suffix }}
register: test_file
changed_when: false
vars:
__test_file_suffix: "{{ '.lmdb' if ansible_facts['os_family'] == 'RedHat'
and ansible_facts['distribution'] != 'Fedora'
and ansible_facts['distribution_major_version'] is version('10', '>=')
else '.db' }}"

- name: Assert file is present
assert:
Expand Down

0 comments on commit d0e27bd

Please sign in to comment.