mirror of
https://github.com/bitnami/containers.git
synced 2026-03-21 15:29:05 +08:00
[bitnami/ruby-min] Add Goss test (#76763)
This commit is contained in:
committed by
GitHub
parent
13a3c1b630
commit
eee4b1fc08
12
.vib/ruby-min/goss/goss.yaml
Normal file
12
.vib/ruby-min/goss/goss.yaml
Normal 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: {}
|
||||
9
.vib/ruby-min/goss/ruby-min.yaml
Normal file
9
.vib/ruby-min/goss/ruby-min.yaml
Normal file
@@ -0,0 +1,9 @@
|
||||
command:
|
||||
check-hello-world:
|
||||
exec:
|
||||
- ruby
|
||||
- -e
|
||||
- puts 'Hello World'
|
||||
exit-status: 0
|
||||
stdout:
|
||||
- "Hello World"
|
||||
7
.vib/ruby-min/goss/vars.yaml
Normal file
7
.vib/ruby-min/goss/vars.yaml
Normal file
@@ -0,0 +1,7 @@
|
||||
files:
|
||||
- mode: "0644"
|
||||
paths:
|
||||
- /opt/bitnami/ruby/.spdx-ruby-min.spdx
|
||||
version:
|
||||
bin_name: ruby
|
||||
flag: --version
|
||||
@@ -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": {
|
||||
|
||||
Reference in New Issue
Block a user