[bitnami/node-exporter] Add VIB tests (#33250)

* [bitnami/node-exporter] Add VIB tests

Signed-off-by: Michiel <michield@vmware.com>
This commit is contained in:
Michiel 2023-05-18 16:31:26 +02:00 committed by GitHub
parent 93af9ba46b
commit e71f2786d8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 58 additions and 2 deletions

View File

@ -0,0 +1,11 @@
gossfile:
# Goss tests exclusive to the current container
../../node-exporter/goss/node-exporter.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-linked-libraries.yaml: {}
../../common/goss/templates/check-sed-in-place.yaml: {}
../../common/goss/templates/check-spdx.yaml: {}

View File

@ -0,0 +1,7 @@
command:
check-node-exporter:
exec: timeout --preserve-status 5 node_exporter || true
exit-status: 0
stderr:
- Listening

View File

@ -0,0 +1,6 @@
binaries:
- node_exporter
root_dir: /opt/bitnami
version:
bin_name: node_exporter
flag: --version

View File

@ -3,7 +3,8 @@
"resources": {
"url": "{VIB_ENV_CONTAINER_URL}",
"path": "{VIB_ENV_PATH}"
}
},
"runtime_parameters": "Y29tbWFuZDogWyJ0YWlsIiwgIi1mIiwgIi9kZXYvbnVsbCJd"
},
"phases": {
"package": {
@ -33,6 +34,21 @@
},
"verify": {
"actions": [
{
"action_id": "goss",
"params": {
"resources": {
"path": "/.vib"
},
"tests_file": "node-exporter/goss/goss.yaml",
"vars_file": "node-exporter/goss/vars.yaml",
"remote": {
"pod": {
"workload": "deploy-node-exporter"
}
}
}
},
{
"action_id": "trivy",
"params": {

View File

@ -3,7 +3,8 @@
"resources": {
"url": "{SHA_ARCHIVE}",
"path": "{VIB_ENV_PATH}"
}
},
"runtime_parameters": "Y29tbWFuZDogWyJ0YWlsIiwgIi1mIiwgIi9kZXYvbnVsbCJd"
},
"phases": {
"package": {
@ -29,6 +30,21 @@
},
"verify": {
"actions": [
{
"action_id": "goss",
"params": {
"resources": {
"path": "/.vib"
},
"tests_file": "node-exporter/goss/goss.yaml",
"vars_file": "node-exporter/goss/vars.yaml",
"remote": {
"pod": {
"workload": "deploy-node-exporter"
}
}
}
},
{
"action_id": "trivy",
"params": {