[bitnami/haproxy] Add VIB tests (#32633)

* [bitnami/haproxy] Add VIB tests

Signed-off-by: Jose Antonio Carmona <jcarmona@vmware.com>

* Trigger VIB

Signed-off-by: Jose Antonio Carmona <jcarmona@vmware.com>

* Revert "Trigger VIB"

This reverts commit af522cb97f8b861dc99cff9f46d4b02158604ccf.

Signed-off-by: Jose Antonio Carmona <jcarmona@vmware.com>

---------

Signed-off-by: Jose Antonio Carmona <jcarmona@vmware.com>
This commit is contained in:
Jose Antonio Carmona 2023-05-05 16:58:54 +02:00 committed by GitHub
parent 83d57416a9
commit 36d2407bd0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 61 additions and 2 deletions

View File

@ -0,0 +1,11 @@
gossfile:
# Goss tests exclusive to the current container
../../haproxy/goss/haproxy.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,8 @@
command:
# HAProxy should have been compiled with Lua and Prometheus support
check-lua-promex-support:
exec: haproxy -vv
exit-status: 0
stdout:
- Built with Lua
- Built with the Prometheus

View File

@ -0,0 +1,8 @@
binaries:
- haproxy
- dataplaneapi
- lua
root_dir: /opt/bitnami
version:
bin_name: haproxy
flag: -v

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": "haproxy/goss/goss.yaml",
"vars_file": "haproxy/goss/vars.yaml",
"remote": {
"pod": {
"workload": "deploy-haproxy"
}
}
}
},
{
"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": "haproxy/goss/goss.yaml",
"vars_file": "haproxy/goss/vars.yaml",
"remote": {
"pod": {
"workload": "deploy-haproxy"
}
}
}
},
{
"action_id": "trivy",
"params": {