mirror of
https://github.com/bitnami/containers.git
synced 2026-10-17 19:21:11 +02:00
[bitnami/prometheus] Add VIB tests (#33924)
Signed-off-by: Andrés Bono <andresbono@vmware.com>
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
gossfile:
|
||||
# Goss tests exclusive to the current container
|
||||
../../prometheus/goss/prometheus.yaml: {}
|
||||
# Load scripts from .vib/common/goss/templates
|
||||
../../common/goss/templates/check-app-version.yaml: {}
|
||||
../../common/goss/templates/check-binaries.yaml: {}
|
||||
../../common/goss/templates/check-broken-symlinks.yaml: {}
|
||||
../../common/goss/templates/check-ca-certs.yaml: {}
|
||||
../../common/goss/templates/check-directories.yaml: {}
|
||||
../../common/goss/templates/check-files.yaml: {}
|
||||
../../common/goss/templates/check-linked-libraries.yaml: {}
|
||||
../../common/goss/templates/check-sed-in-place.yaml: {}
|
||||
../../common/goss/templates/check-spdx.yaml: {}
|
||||
@@ -0,0 +1,11 @@
|
||||
command:
|
||||
check-config-format:
|
||||
exec: promtool check config /opt/bitnami/prometheus/conf/prometheus.yml
|
||||
exit-status: 0
|
||||
check-prometheus-run:
|
||||
exec: timeout --preserve-status 5 prometheus --config.file=/opt/bitnami/prometheus/conf/prometheus.yml
|
||||
timeout: 8000
|
||||
exit-status: 0
|
||||
stderr:
|
||||
- Starting Prometheus Server
|
||||
- Server is ready
|
||||
@@ -0,0 +1,17 @@
|
||||
binaries:
|
||||
- prometheus
|
||||
- promtool
|
||||
directories:
|
||||
- mode: "0775"
|
||||
paths:
|
||||
- /opt/bitnami/prometheus/data
|
||||
- paths:
|
||||
- /opt/bitnami/prometheus/conf/console_libraries
|
||||
- /opt/bitnami/prometheus/conf/consoles
|
||||
files:
|
||||
- paths:
|
||||
- /opt/bitnami/prometheus/conf/prometheus.yml
|
||||
root_dir: /opt/bitnami
|
||||
version:
|
||||
bin_name: prometheus
|
||||
flag: --version
|
||||
@@ -3,7 +3,8 @@
|
||||
"resources": {
|
||||
"url": "{VIB_ENV_CONTAINER_URL}",
|
||||
"path": "{VIB_ENV_PATH}"
|
||||
}
|
||||
},
|
||||
"runtime_parameters": "Y29tbWFuZDogWyJ0YWlsIiwgIi1mIiwgIi9kZXYvbnVsbCJd"
|
||||
},
|
||||
"phases": {
|
||||
"package": {
|
||||
@@ -82,6 +83,21 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"action_id": "goss",
|
||||
"params": {
|
||||
"resources": {
|
||||
"path": "/.vib"
|
||||
},
|
||||
"tests_file": "prometheus/goss/goss.yaml",
|
||||
"vars_file": "prometheus/goss/vars.yaml",
|
||||
"remote": {
|
||||
"pod": {
|
||||
"workload": "deploy-prometheus"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
|
||||
@@ -3,7 +3,8 @@
|
||||
"resources": {
|
||||
"url": "{SHA_ARCHIVE}",
|
||||
"path": "{VIB_ENV_PATH}"
|
||||
}
|
||||
},
|
||||
"runtime_parameters": "Y29tbWFuZDogWyJ0YWlsIiwgIi1mIiwgIi9kZXYvbnVsbCJd"
|
||||
},
|
||||
"phases": {
|
||||
"package": {
|
||||
@@ -46,6 +47,21 @@
|
||||
"OS"
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"action_id": "goss",
|
||||
"params": {
|
||||
"resources": {
|
||||
"path": "/.vib"
|
||||
},
|
||||
"tests_file": "prometheus/goss/goss.yaml",
|
||||
"vars_file": "prometheus/goss/vars.yaml",
|
||||
"remote": {
|
||||
"pod": {
|
||||
"workload": "deploy-prometheus"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user