[bitnami/spring-cloud-dataflow] Add VIB tests (#34286)

* [bitnami/spring-cloud-dataflow] Add VIB tests

Signed-off-by: Michiel <michield@vmware.com>
This commit is contained in:
Michiel 2023-05-26 15:20:02 +02:00 committed by GitHub
parent 7e47bfb754
commit fe97c9423e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 69 additions and 2 deletions

View File

@ -0,0 +1,11 @@
gossfile:
# Goss tests exclusive to the current container
../../spring-cloud-dataflow/goss/spring-cloud-dataflow.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-directories.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,14 @@
command:
check-spring-cloud-dataflow:
# As the version is shown in the output we check it here
timeout: 40000
exec: timeout --preserve-status 30 java -jar /opt/bitnami/spring-cloud-dataflow/spring-cloud-dataflow.jar
exit-status: 143
stdout:
- {{ .Env.APP_VERSION }}
- Started DataFlowServerApplication
file:
/opt/bitnami/spring-cloud-dataflow/spring-cloud-dataflow.jar:
exists: true
filetype: symlink
linked-to: "spring-cloud-dataflow-server-{{ .Env.APP_VERSION }}.jar"

View File

@ -0,0 +1,10 @@
binaries:
- java
- yq
directories:
- mode: "0775"
paths:
- /.m2
- /bitnami/spring-cloud-dataflow
- /opt/bitnami/spring-cloud-dataflow/conf
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": {
@ -33,6 +34,21 @@
},
"verify": {
"actions": [
{
"action_id": "goss",
"params": {
"resources": {
"path": "/.vib"
},
"tests_file": "spring-cloud-dataflow/goss/goss.yaml",
"vars_file": "spring-cloud-dataflow/goss/vars.yaml",
"remote": {
"pod": {
"workload": "deploy-spring-cloud-dataflow"
}
}
}
},
{
"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": "spring-cloud-dataflow/goss/goss.yaml",
"vars_file": "spring-cloud-dataflow/goss/vars.yaml",
"remote": {
"pod": {
"workload": "deploy-spring-cloud-dataflow"
}
}
}
},
{
"action_id": "trivy",
"params": {