[bitnami/aspnet-min] Add Goss tests (#77077)

This commit is contained in:
Juan Ariza Toledano 2025-02-07 15:20:07 +01:00 committed by GitHub
parent 12ba318dec
commit a84f11a816
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 49 additions and 1 deletions

View File

@ -0,0 +1,8 @@
command:
check-dotnet-help:
exec:
- dotnet
- --help
exit-status: 0
stdout:
- "Usage: dotnet [host-options] [path-to-application]"

View File

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

View File

@ -0,0 +1,11 @@
files:
- mode: "0644"
paths:
- /opt/bitnami/os/.spdx-os-aspnet-min.spdx
- /opt/bitnami/aspnet/.spdx-aspnet.spdx
- mode: "0755"
paths:
- /opt/bitnami/aspnet/bin/dotnet
version:
bin_name: dotnet
flag: --info

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": "aspnet-min/goss/goss.yaml",
"vars_file": "aspnet-min/goss/vars.yaml",
"remote": {
"pod": {
"workload": "deploy-aspnet-min"
}
}
}
},
{
"action_id": "trivy",
"params": {