[bitnami/*] feat: Enable Goss tests for several scratch images - ii (#77138)

This commit is contained in:
Juan Ariza Toledano
2025-02-10 14:18:39 +01:00
committed by GitHub
parent 6bc6671755
commit b30856c9e6
44 changed files with 519 additions and 11 deletions

View File

@@ -0,0 +1,10 @@
# Copyright Broadcom, Inc. All Rights Reserved.
# SPDX-License-Identifier: APACHE-2.0
gossfile:
# Goss tests exclusive to the current container
../../rabbitmq-cluster-operator/goss/rabbitmq-cluster-operator.yaml: {}
# Load scripts from .vib/common/goss/templates
../../common/goss/templates/check-app-version-no-shell-stdout.yaml: {}
../../common/goss/templates/check-ca-certs.yaml: {}
../../common/goss/templates/check-files.yaml: {}

View File

@@ -0,0 +1,9 @@
command:
check-manager-help:
exec:
- /manager
- --help
exit-status: 0
stdout:
- "Usage:"
- "manager [flags]"

View File

@@ -0,0 +1,10 @@
files:
- mode: "0644"
paths:
- /opt/bitnami/rabbitmq-cluster-operator/.spdx-rabbitmq-cluster-operator.spdx
- mode: "0755"
paths:
- /manager
version:
bin_name: /manager
flag: version

View File

@@ -3,7 +3,8 @@
"resources": {
"url": "{SHA_ARCHIVE}",
"path": "{VIB_ENV_PATH}"
}
},
"runtime_parameters": "Y29tbWFuZDogWyIvc2hhcmVkL2J1c3lib3giLCAic2xlZXAiLCAiMzYwMCJdCg=="
},
"phases": {
"package": {
@@ -33,6 +34,21 @@
},
"verify": {
"actions": [
{
"action_id": "goss",
"params": {
"resources": {
"path": "/.vib"
},
"tests_file": "rabbitmq-cluster-operator/goss/goss.yaml",
"vars_file": "rabbitmq-cluster-operator/goss/vars.yaml",
"remote": {
"pod": {
"workload": "deploy-rabbitmq-cluster-operator"
}
}
}
},
{
"action_id": "trivy",
"params": {