[bitnami/ksql] Add ksql container tests (#27474)

* [bitnami/ksql] Add Ksql container VIB tests

Signed-off-by: Michiel <michield@vmware.com>
This commit is contained in:
Michiel 2023-03-21 16:41:26 +01:00 committed by GitHub
parent 50f4a3df4a
commit 9aee7aa81c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 72 additions and 2 deletions

11
.vib/ksql/goss/goss.yaml Normal file
View File

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

15
.vib/ksql/goss/ksql.yaml Normal file
View File

@ -0,0 +1,15 @@
file:
# Checks default config for erlang is set
/opt/bitnami/ksql/etc/ksqldb/ksql-server.properties.default:
exists: true
filetype: file
contains:
- http://0.0.0.0:8088
- bootstrap.servers = localhost:9092
- ksql.streams.state.dir = /bitnami/ksql/data
# ksql does not have a version flag so we check the version.txt
/opt/bitnami/ksql/share/doc/confluent-kafka-mqtt/version.txt:
exists: true
filetype: file
contains:
- {{ .Env.APP_VERSION }}

12
.vib/ksql/goss/vars.yaml Normal file
View File

@ -0,0 +1,12 @@
binaries:
- gosu
- java
- ksql
directories:
- mode: "0775"
paths:
- /opt/bitnami/ksql/etc/ksqldb
- /bitnami/ksql/data
- /opt/bitnami/ksql/logs
- /opt/bitnami/ksql/certs
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": "ksql/goss/goss.yaml",
"vars_file": "ksql/goss/vars.yaml",
"remote": {
"pod": {
"workload": "deploy-ksql"
}
}
}
},
{
"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": "ksql/goss/goss.yaml",
"vars_file": "ksql/goss/vars.yaml",
"remote": {
"pod": {
"workload": "deploy-ksql"
}
}
}
},
{
"action_id": "trivy",
"params": {