[bitnami/ruby-min] Add Goss test (#76763)

This commit is contained in:
Juan Ariza Toledano
2025-01-29 10:20:24 +01:00
committed by GitHub
parent 13a3c1b630
commit eee4b1fc08
4 changed files with 45 additions and 1 deletions

View File

@@ -0,0 +1,12 @@
# Copyright Broadcom, Inc. All Rights Reserved.
# SPDX-License-Identifier: APACHE-2.0
gossfile:
# Goss tests exclusive to the current container
../../ruby-min/goss/ruby-min.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: {}
../../common/goss/templates/check-minimal.yaml: {}
../../common/goss/templates/check-openssl-fips.yaml: {}

View File

@@ -0,0 +1,9 @@
command:
check-hello-world:
exec:
- ruby
- -e
- puts 'Hello World'
exit-status: 0
stdout:
- "Hello World"

View File

@@ -0,0 +1,7 @@
files:
- mode: "0644"
paths:
- /opt/bitnami/ruby/.spdx-ruby-min.spdx
version:
bin_name: ruby
flag: --version

View File

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