Skip to content

Commit

Permalink
fix(molecule): remove broken file/dir check
Browse files Browse the repository at this point in the history
Check is not working as verify stage does not have the PostgreSQL
version, which is determined in the role task `plugins_postgresql.yml`.
Removed the checks for the files/dirs as they are created by the role if
missing and if this does not work, Molecule will fail anyway.
  • Loading branch information
adf-patrickha committed May 13, 2024
1 parent 54d9009 commit e0983a4
Showing 1 changed file with 0 additions and 19 deletions.
19 changes: 0 additions & 19 deletions molecule/postgresql/verify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@
failed_when:
- bareos_fd_test_config.stdout_lines is search("There are configuration warnings")

# have to be specified in converge.yml: `bareos_fd_plugins`
- name: Check if plugin packages were installed
ansible.builtin.package:
name:
Expand All @@ -48,21 +47,3 @@
diff: true
register: _result
failed_when: _result.changed

- name: Fetch file and directory stats
ansible.builtin.stat:
path: "{{ item }}"
loop:
- "{{ bareos_fd_plugin_psql_root_dir }}"
- "{{ bareos_fd_plugin_psql_config }}"
- "{{ bareos_fd_plugin_psql_config_hba }}"
- "{{ bareos_fd_plugin_psql_wal_archive }}"
register: _file_stats

- name: Check if required files and directories exist
ansible.builtin.assert:
that:
- item.stat.exists
- item.stat.readable
- item.stat.isdir or item.stat.isreg
loop: "{{ _file_stats.results }}"

0 comments on commit e0983a4

Please sign in to comment.