[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:
Francisco de Paz Galan
2023-05-02 15:32:32 +02:00
committed by GitHub
parent 9d4c5ef15a
commit 4b2516d1ea
5 changed files with 78 additions and 5 deletions
+11
View File
@@ -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
+13
View File
@@ -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
+20 -4
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": "schema-registry/goss/goss.yaml",
"vars_file": "schema-registry/goss/vars.yaml",
"remote": {
"pod": {
"workload": "deploy-schema-registry"
}
}
}
}
+17 -1
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": "schema-registry/goss/goss.yaml",
"vars_file": "schema-registry/goss/vars.yaml",
"remote": {
"pod": {
"workload": "deploy-schema-registry"
}
}
}
}
]
}