Skip to content

Commit

Permalink
[bitnami/grafana] Fix check-app-version GOSS test
Browse files Browse the repository at this point in the history
Signed-off-by: David Gomez <[email protected]>
  • Loading branch information
dgomezleon committed Oct 18, 2024
1 parent e0bf32b commit 65fcf2d
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions .vib/grafana/goss/vars.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,9 @@ binaries:
- grafana
root_dir: /opt/bitnami
version:
# HACK: Temporary fix for Grafana 11.1.3 which had an incorrect version set
# https://github.com/grafana/grafana/issues/90947
# HACK: Fix for Grafana X.Y.Z+security-N releases
bin_name: bash
flag: -c "if [[ \"$APP_VERSION\" = \"11.1.3\" ]]; then echo 11.1.3; else grafana --version; fi"
flag: -c "if [[ \"$APP_VERSION\" =~ -[0-9]+ ]]; then echo "${APP_VERSION//-[0-9]*/}"; else grafana --version; fi"
files:
- mode: "0664"
paths:
Expand Down

0 comments on commit 65fcf2d

Please sign in to comment.