[bitnami/blackbox-exporter] Add VIB tests (#30035)

* [bitnami/blackbox-exporter] Add VIB tests

Signed-off-by: Miguel Ruiz <miruiz@vmware.com>

* Add triggers

Signed-off-by: Miguel Ruiz <miruiz@vmware.com>

* Add --preserve-status and increase timeout

Signed-off-by: Miguel Ruiz <miruiz@vmware.com>

* Remove help test

Signed-off-by: Miguel Ruiz <miruiz@vmware.com>

* Remove trigger

Signed-off-by: Miguel Ruiz <miruiz@vmware.com>

---------

Signed-off-by: Miguel Ruiz <miruiz@vmware.com>
This commit is contained in:
Miguel Ruiz
2023-04-13 13:32:51 +02:00
committed by GitHub
parent ab1a041cfc
commit f4e6153db5
5 changed files with 63 additions and 5 deletions

View File

@@ -0,0 +1,9 @@
command:
check-blackbox-exporter-run:
exec: cd /opt/bitnami/blackbox-exporter && timeout --preserve-status 5 blackbox_exporter
timeout: 8000
exit-status: 0
stderr:
- Starting blackbox_exporter
- Loaded config file
- Listening on

View File

@@ -0,0 +1,11 @@
gossfile:
# Goss tests exclusive to the current container
../../blackbox-exporter/goss/blackbox-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,6 @@
binaries:
- blackbox_exporter
root_dir: /opt/bitnami
version:
bin_name: blackbox_exporter
flag: --version