Skip to content

Commit

Permalink
workaround debug logfile too long for slurp
Browse files Browse the repository at this point in the history
  • Loading branch information
guidograzioli committed Apr 18, 2024
1 parent d06dcea commit ff198bc
Showing 1 changed file with 6 additions and 9 deletions.
15 changes: 6 additions & 9 deletions molecule/quarkus/verify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,13 +76,10 @@
that:
- not keycloak_default_log_folder.stat.exists

- name: Read content of logs
ansible.builtin.slurp:
src: /tmp/keycloak/keycloak.log
- name: Verify vault SPI in logfile
ansible.builtin.shell: |
set -o pipefail
zgrep 'Configured KeystoreVaultProviderFactory with the keystore file' /opt/keycloak/keycloak-*/data/log/keycloak.log*zip
changed_when: false
failed_when: slurped_log.rc != 0
register: slurped_log

- name: Verify keystore vault loaded
ansible.builtin.assert:
that:
- "'Configured KeystoreVaultProviderFactory with the keystore file' in slurped_log.content | b64decode"
fail_msg: "Service failed to use keystore vault correctly"

0 comments on commit ff198bc

Please sign in to comment.