Skip to content

Commit

Permalink
[bitnami/php-fpm-min] Add Goss test
Browse files Browse the repository at this point in the history
Signed-off-by: juan131 <[email protected]>
  • Loading branch information
juan131 committed Jan 29, 2025
1 parent 695b515 commit fc5f9b9
Show file tree
Hide file tree
Showing 4 changed files with 42 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .vib/php-fpm-min/goss/goss.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# Copyright Broadcom, Inc. All Rights Reserved.
# SPDX-License-Identifier: APACHE-2.0

gossfile:
# Goss tests exclusive to the current container
../../php-fpm-min/goss/php-fpm-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: {}
6 changes: 6 additions & 0 deletions .vib/php-fpm-min/goss/php-fpm-min.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
process:
php-fpm:
running: true
port:
tcp6:9000:
listening: true
9 changes: 9 additions & 0 deletions .vib/php-fpm-min/goss/vars.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
files:
- mode: "0644"
paths:
- /opt/bitnami/php/.spdx-php-min.spdx
- /opt/bitnami/php/tmp/php-fpm.pid
- /opt/bitnami/php/etc/php-fpm.conf
version:
bin_name: php-fpm
flag: --version
15 changes: 15 additions & 0 deletions .vib/php-fpm-min/vib-verify.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,21 @@
},
"verify": {
"actions": [
{
"action_id": "goss",
"params": {
"resources": {
"path": "/.vib"
},
"tests_file": "php-fpm-min/goss/goss.yaml",
"vars_file": "php-fpm-min/goss/vars.yaml",
"remote": {
"pod": {
"workload": "deploy-php-fpm-min"
}
}
}
},
{
"action_id": "trivy",
"params": {
Expand Down

0 comments on commit fc5f9b9

Please sign in to comment.