mirror of
https://github.com/bitnami/containers.git
synced 2026-10-18 16:53:03 +02:00
[bitnami/schema-registry] Add VIB tests (#28662)
* [bitnami/schema-registry] Add VIB tests Signed-off-by: FraPazGal <fdepaz@vmware.com> * Add VIB triggers Signed-off-by: FraPazGal <fdepaz@vmware.com> * Apply suggestions Signed-off-by: FraPazGal <fdepaz@vmware.com> * Remove gosu check and VIB trigger Signed-off-by: FraPazGal <fdepaz@vmware.com> --------- Signed-off-by: FraPazGal <fdepaz@vmware.com>
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
gossfile:
|
||||
# Goss tests exclusive to the current container
|
||||
../../schema-registry/goss/schema-registry.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: {}
|
||||
@@ -0,0 +1,17 @@
|
||||
file:
|
||||
/opt/bitnami/schema-registry/lib:
|
||||
exists: false
|
||||
/opt/bitnami/schema-registry/etc/schema-registry/schema-registry.properties:
|
||||
exists: false
|
||||
/opt/bitnami/schema-registry/etc/schema-registry/schema-registry.properties.default:
|
||||
exists: true
|
||||
filetype: file
|
||||
contains:
|
||||
- /kafkastore.bootstrap.servers.*9092/
|
||||
command:
|
||||
check-schema-registry-initialization:
|
||||
exec: timeout --preserve-status 5 /opt/bitnami/schema-registry/bin/schema-registry-start /opt/bitnami/schema-registry/etc/schema-registry/schema-registry.properties.default
|
||||
exit-status: 143
|
||||
timeout: 10000
|
||||
stdout:
|
||||
- Adding listener
|
||||
@@ -0,0 +1,13 @@
|
||||
binaries:
|
||||
- java
|
||||
- schema-registry-start
|
||||
directories:
|
||||
- mode: "0775"
|
||||
paths:
|
||||
- /opt/bitnami/schema-registry/etc
|
||||
- /opt/bitnami/schema-registry/logs
|
||||
- /opt/bitnami/schema-registry/certs
|
||||
- paths:
|
||||
- /opt/bitnami/schema-registry/etc/schema-registry
|
||||
- /opt/bitnami/schema-registry/share/java/schema-registry
|
||||
root_dir: /opt/bitnami
|
||||
@@ -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": "schema-registry/goss/goss.yaml",
|
||||
"vars_file": "schema-registry/goss/vars.yaml",
|
||||
"remote": {
|
||||
"pod": {
|
||||
"workload": "deploy-schema-registry"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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": "schema-registry/goss/goss.yaml",
|
||||
"vars_file": "schema-registry/goss/vars.yaml",
|
||||
"remote": {
|
||||
"pod": {
|
||||
"workload": "deploy-schema-registry"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user