[bitnami/airflow-exporter] Add VIB tests (#30026)

* [bitnami/airflow-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>

* Add trigger

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

* Fix exit-status

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-19 08:39:36 +02:00
committed by GitHub
parent 01702f8887
commit e4f08df95e
5 changed files with 55 additions and 2 deletions
@@ -0,0 +1,8 @@
command:
check-airflow-exporter-run:
exec: AIRFLOW_PROMETHEUS_DATABASE_NAME=mydatabase timeout --preserve-status 5 airflow-prometheus-exporter
timeout: 8000
exit-status: 143
stderr:
- Starting airflow-exporter
- mydatabase
+10
View File
@@ -0,0 +1,10 @@
gossfile:
# Goss tests exclusive to the current container
../../airflow-exporter/goss/airflow-exporter.yaml: {}
# Load scripts from .vib/common/goss/templates
../../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: {}
+3
View File
@@ -0,0 +1,3 @@
binaries:
- airflow-prometheus-exporter
root_dir: /opt/bitnami
+17 -1
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": "airflow-exporter/goss/goss.yaml",
"vars_file": "airflow-exporter/goss/vars.yaml",
"remote": {
"pod": {
"workload": "deploy-airflow-exporter"
}
}
}
},
{
"action_id": "trivy",
"params": {
+17 -1
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": "airflow-exporter/goss/goss.yaml",
"vars_file": "airflow-exporter/goss/vars.yaml",
"remote": {
"pod": {
"workload": "deploy-airflow-exporter"
}
}
}
},
{
"action_id": "trivy",
"params": {