[bitnami/zipkin] chore: 👷 Add VIB tests (#71761)

* [bitnami/zipkin] chore: 👷  Add VIB tests

Signed-off-by: Javier J. Salmerón García <javier.salmeron@broadcom.com>

* chore: 🔧 Update references

Signed-off-by: Javier J. Salmerón García <javier.salmeron@broadcom.com>

---------

Signed-off-by: Javier J. Salmerón García <javier.salmeron@broadcom.com>
This commit is contained in:
Javier J. Salmerón García
2024-09-02 17:20:58 +02:00
committed by GitHub
parent 3d0f835689
commit ab7d579bd4
4 changed files with 114 additions and 0 deletions

View File

@@ -0,0 +1,14 @@
# Copyright Broadcom, Inc. All Rights Reserved.
# SPDX-License-Identifier: APACHE-2.0
gossfile:
# Load scripts from .vib/common/goss/templates
../../zipkin/goss/zipkin.yaml: {}
../../common/goss/templates/check-app-version.yaml: {}
../../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,11 @@
binaries:
- java
- start-zipkin
directories:
- paths:
- /opt/bitnami/zipkin
root_dir: /opt/bitnami
# The application does not have a --version flag, but the server logs do show the version
version:
bin_name: timeout
flag: --preserve-status 7 bash -c "cd /opt/bitnami/zipkin; start-zipkin" || true

View File

@@ -0,0 +1,16 @@
# Copyright Broadcom, Inc. All Rights Reserved.
# SPDX-License-Identifier: APACHE-2.0
user:
zipkin:
exists: true
uid: 1001
gid: 0
command:
run-zipkin:
# We need a different port to not collide with the version check
exec: export QUERY_PORT=9044; cd /opt/bitnami/zipkin; timeout --preserve-status 12 start-zipkin 2>&1 || true
timeout: 15000
exit-status: 0
stdout:
- /Serving HTTP at.*9044/