Skip to content

Commit

Permalink
[bitnami/matomo] Fix tests for Matomo 5.1.0 (#67885)
Browse files Browse the repository at this point in the history
Signed-off-by: Miguel Ruiz <miruiz@vmware.com>
  • Loading branch information
migruiz4 authored Jun 17, 2024
1 parent c892ef6 commit d6e3de1
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 9 deletions.
1 change: 1 addition & 0 deletions .vib/matomo/goss/goss.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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: {}
Expand Down
11 changes: 2 additions & 9 deletions .vib/matomo/goss/matomo.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
3 changes: 3 additions & 0 deletions .vib/matomo/goss/vars.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit d6e3de1

Please sign in to comment.