[bitnami/nats] Prepare VIB tests for new scratch image (#76501)

This commit is contained in:
Juan Ariza Toledano
2025-01-23 12:27:06 +01:00
committed by GitHub
parent 10e7bbcd21
commit 3d83618cb8
4 changed files with 0 additions and 70 deletions

View File

@@ -1,15 +0,0 @@
# Copyright Broadcom, Inc. All Rights Reserved.
# SPDX-License-Identifier: APACHE-2.0
gossfile:
# Goss tests exclusive to the current container
../../nats/goss/nats.yaml: {}
# Load scripts from .vib/common/goss/templates
../../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

@@ -1,22 +0,0 @@
# Copyright Broadcom, Inc. All Rights Reserved.
# SPDX-License-Identifier: APACHE-2.0
command:
check-nats-server:
exec: timeout --preserve-status 5 nats-server
timeout: 10000
exit-status: 1
stderr:
- "Listening for client connections"
- "Server is ready"
file:
/opt/bitnami/nats/conf/nats-server.conf:
exists: true
filetype: file
mode: "0664"
contents:
- /listen.*4222/
/opt/bitnami/nats/logs/nats-server.log:
exists: true
filetype: symlink
linked-to: /dev/stdout

View File

@@ -1,18 +0,0 @@
binaries:
- nats-server
- render-template
directories:
- mode: "0775"
paths:
- /bitnami/nats
- /bitnami/nats/data
- /bitnami/nats/conf
- /opt/bitnami/nats
- /opt/bitnami/nats/conf
- /opt/bitnami/nats/logs
- /opt/bitnami/nats/tmp
- /docker-entrypoint-initdb.d
root_dir: /opt/bitnami
version:
bin_name: nats-server
flag: --version

View File

@@ -34,21 +34,6 @@
},
"verify": {
"actions": [
{
"action_id": "goss",
"params": {
"resources": {
"path": "/.vib"
},
"tests_file": "nats/goss/goss.yaml",
"vars_file": "nats/goss/vars.yaml",
"remote": {
"pod": {
"workload": "deploy-nats"
}
}
}
},
{
"action_id": "trivy",
"params": {