[bitnami/prometheus-rsocket-proxy] Add VIB tests (#30817)

* [bitnami/prometheus-rsocket-proxy] Add VIB tests

Signed-off-by: FraPazGal <fdepaz@vmware.com>

* Remove VIB trigger

Signed-off-by: FraPazGal <fdepaz@vmware.com>

---------

Signed-off-by: FraPazGal <fdepaz@vmware.com>
This commit is contained in:
Francisco de Paz Galan 2023-05-03 17:39:04 +02:00 committed by GitHub
parent ef41b770cd
commit 0e2db42bce
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 67 additions and 5 deletions

View File

@ -0,0 +1,10 @@
gossfile:
# Goss tests exclusive to the current container
../../prometheus-rsocket-proxy/goss/prometheus-rsocket-proxy.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: {}

View File

@ -0,0 +1,17 @@
command:
# The original jar has the asset version in its filename
check-app-version:
exec: ls /opt/bitnami/prometheus-rsocket-proxy/prometheus-rsocket-proxy-*.jar
exit-status: 0
stdout:
- {{ .Env.APP_VERSION }}
check-proxy-jar:
exec: timeout --preserve-status 10 java -jar /opt/bitnami/prometheus-rsocket-proxy/prometheus-rsocket-proxy.jar
exit-status: 143
timeout: 20000
stdout:
- Started PrometheusRSocketProxy
file:
/opt/bitnami/prometheus-rsocket-proxy/prometheus-rsocket-proxy.jar:
exists: true
filetype: symlink

View File

@ -0,0 +1,3 @@
binaries:
- java
root_dir: /opt/bitnami

View File

@ -3,7 +3,8 @@
"resources": {
"url": "{VIB_ENV_CONTAINER_URL}",
"path": "{VIB_ENV_PATH}"
}
},
"runtime_parameters": "Y29tbWFuZDogWyJ0YWlsIiwgIi1mIiwgIi9kZXYvbnVsbCJd"
},
"phases": {
"package": {
@ -77,9 +78,24 @@
"url": "{VIB_ENV_PACKAGES_JSON_URL}",
"path": "/{VIB_ENV_PATH}",
"authn": {
"header": "Authorization",
"token": "Bearer {VIB_ENV_GITHUB_TOKEN}"
}
"header": "Authorization",
"token": "Bearer {VIB_ENV_GITHUB_TOKEN}"
}
}
}
},
{
"action_id": "goss",
"params": {
"resources": {
"path": "/.vib"
},
"tests_file": "prometheus-rsocket-proxy/goss/goss.yaml",
"vars_file": "prometheus-rsocket-proxy/goss/vars.yaml",
"remote": {
"pod": {
"workload": "deploy-prometheus-rsocket-proxy"
}
}
}
}

View File

@ -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-rsocket-proxy/goss/goss.yaml",
"vars_file": "prometheus-rsocket-proxy/goss/vars.yaml",
"remote": {
"pod": {
"workload": "deploy-prometheus-rsocket-proxy"
}
}
}
}
]
}