[bitnami/aspnet-min] Add Goss tests (#77077)
This commit is contained in:
parent
12ba318dec
commit
a84f11a816
|
|
@ -0,0 +1,8 @@
|
|||
command:
|
||||
check-dotnet-help:
|
||||
exec:
|
||||
- dotnet
|
||||
- --help
|
||||
exit-status: 0
|
||||
stdout:
|
||||
- "Usage: dotnet [host-options] [path-to-application]"
|
||||
|
|
@ -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: {}
|
||||
|
|
@ -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
|
||||
|
|
@ -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": {
|
||||
|
|
|
|||
Loading…
Reference in New Issue