mirror of
https://github.com/bitnami/containers.git
synced 2026-03-21 23:38:32 +08:00
[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:
committed by
GitHub
parent
3d0f835689
commit
ab7d579bd4
14
.vib/zipkin/goss/goss.yaml
Normal file
14
.vib/zipkin/goss/goss.yaml
Normal 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: {}
|
||||
11
.vib/zipkin/goss/vars.yaml
Normal file
11
.vib/zipkin/goss/vars.yaml
Normal 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
|
||||
16
.vib/zipkin/goss/zipkin.yaml
Normal file
16
.vib/zipkin/goss/zipkin.yaml
Normal 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/
|
||||
73
.vib/zipkin/vib-verify.json
Normal file
73
.vib/zipkin/vib-verify.json
Normal file
@@ -0,0 +1,73 @@
|
||||
{
|
||||
"context": {
|
||||
"resources": {
|
||||
"url": "{SHA_ARCHIVE}",
|
||||
"path": "{VIB_ENV_PATH}"
|
||||
},
|
||||
"runtime_parameters": "Y29tbWFuZDogWyJ0YWlsIiwgIi1mIiwgIi9kZXYvbnVsbCJd"
|
||||
},
|
||||
"phases": {
|
||||
"package": {
|
||||
"actions": [
|
||||
{
|
||||
"action_id": "container-image-package",
|
||||
"params": {
|
||||
"application": {
|
||||
"details": {
|
||||
"name": "{VIB_ENV_CONTAINER}",
|
||||
"tag": "{VIB_ENV_TAG}"
|
||||
}
|
||||
},
|
||||
"architectures": [
|
||||
"linux/amd64",
|
||||
"linux/arm64"
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"action_id": "container-image-lint",
|
||||
"params": {
|
||||
"threshold": "error"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"verify": {
|
||||
"actions": [
|
||||
{
|
||||
"action_id": "goss",
|
||||
"params": {
|
||||
"resources": {
|
||||
"path": "/.vib"
|
||||
},
|
||||
"tests_file": "zipkin/goss/goss.yaml",
|
||||
"vars_file": "zipkin/goss/vars.yaml",
|
||||
"remote": {
|
||||
"pod": {
|
||||
"workload": "deploy-zipkin"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"action_id": "trivy",
|
||||
"params": {
|
||||
"threshold": "LOW",
|
||||
"vuln_type": [
|
||||
"OS"
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"action_id": "grype",
|
||||
"params": {
|
||||
"threshold": "CRITICAL",
|
||||
"package_type": [
|
||||
"OS"
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user