[bitnami/matomo] Fix tests for Matomo 5.1.0 (#67885)

Signed-off-by: Miguel Ruiz <miruiz@vmware.com>
This commit is contained in:
Miguel Ruiz
2024-06-17 08:21:58 +02:00
committed by GitHub
parent c892ef6188
commit d6e3de1a28
3 changed files with 6 additions and 9 deletions

View File

@@ -5,6 +5,7 @@ gossfile:
# Goss tests exclusive to the current container
../../matomo/goss/matomo.yaml: {}
# Load scripts from .vib/common/goss/templates
../../common/goss/templates/check-app-version.yaml: {}
../../common/goss/templates/check-apache-libphp.yaml: {}
../../common/goss/templates/check-binaries.yaml: {}
../../common/goss/templates/check-broken-symlinks.yaml: {}

View File

@@ -33,15 +33,8 @@ file:
/opt/bitnami/matomo/.buildcomplete:
exists: false
command:
# Since it is not done with sudo, the exit code is 1
check-app-version:
exec: php /opt/bitnami/matomo/console --version
exit-status: 1
stdout:
- "{{ .Env.APP_VERSION }}"
# Since it is not done with sudo, the exit code is 1
check-app-run:
exec: php /opt/bitnami/matomo/console config:get --section=database
exit-status: 1
exit-status: 0
stdout:
- "Mysql"
- "Mysql"

View File

@@ -19,4 +19,7 @@ files:
- paths:
- /opt/bitnami/matomo/piwik.js
- /opt/bitnami/matomo/piwik.php
version:
bin_name: php /opt/bitnami/matomo/console
flag: --version
root_dir: /opt/bitnami