Skip to content

Commit

Permalink
[bitnami/thanos] Add Goss tests (#76693)
Browse files Browse the repository at this point in the history
  • Loading branch information
juan131 authored Jan 28, 2025
1 parent 5eea116 commit b423ff5
Show file tree
Hide file tree
Showing 4 changed files with 42 additions and 1 deletion.
10 changes: 10 additions & 0 deletions .vib/thanos/goss/goss.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# Copyright Broadcom, Inc. All Rights Reserved.
# SPDX-License-Identifier: APACHE-2.0

gossfile:
# Goss tests exclusive to the current container
../../thanos/goss/thanos.yaml: {}
# Load scripts from .vib/common/goss/templates
../../common/goss/templates/check-app-version-no-shell-stderr.yaml: {}
../../common/goss/templates/check-ca-certs.yaml: {}
../../common/goss/templates/check-files.yaml: {}
8 changes: 8 additions & 0 deletions .vib/thanos/goss/thanos.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
command:
check-thanos:
exec:
- /bin/thanos
- --help
exit-status: 0
stderr:
- "A block storage based long-term storage for Prometheus."
7 changes: 7 additions & 0 deletions .vib/thanos/goss/vars.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
files:
- mode: "0644"
paths:
- /opt/bitnami/thanos/.spdx-thanos.spdx
version:
bin_name: /bin/thanos
flag: --version
18 changes: 17 additions & 1 deletion .vib/thanos/vib-verify.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
"resources": {
"url": "{SHA_ARCHIVE}",
"path": "{VIB_ENV_PATH}"
}
},
"runtime_parameters": "Y29tbWFuZDogWyJ0aGFub3MiLCAicXVlcnktZnJvbnRlbmQiXQo="
},
"phases": {
"package": {
Expand Down Expand Up @@ -33,6 +34,21 @@
},
"verify": {
"actions": [
{
"action_id": "goss",
"params": {
"resources": {
"path": "/.vib"
},
"tests_file": "thanos/goss/goss.yaml",
"vars_file": "thanos/goss/vars.yaml",
"remote": {
"pod": {
"workload": "deploy-thanos"
}
}
}
},
{
"action_id": "trivy",
"params": {
Expand Down

0 comments on commit b423ff5

Please sign in to comment.