mirror of
https://github.com/bitnami/containers.git
synced 2026-10-18 19:26:31 +02:00
[bitnami/phpbb] Add VIB tests (#33419)
Signed-off-by: Marcos Bjoerkelund <marcosbd@vmware.com>
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
gossfile:
|
||||
# Goss tests exclusive to the current container
|
||||
../../phpbb/goss/phpbb.yaml: {}
|
||||
# Load scripts from .vib/common/goss/templates
|
||||
../../common/goss/templates/check-apache-libphp.yaml: {}
|
||||
../../common/goss/templates/check-app-version.yaml: {}
|
||||
../../common/goss/templates/check-binaries.yaml: {}
|
||||
../../common/goss/templates/check-broken-symlinks.yaml: {}
|
||||
../../common/goss/templates/check-ca-certs.yaml: {}
|
||||
../../common/goss/templates/check-directories.yaml: {}
|
||||
../../common/goss/templates/check-files.yaml: {}
|
||||
../../common/goss/templates/check-linked-libraries.yaml: {}
|
||||
../../common/goss/templates/check-sed-in-place.yaml: {}
|
||||
../../common/goss/templates/check-spdx.yaml: {}
|
||||
@@ -0,0 +1,30 @@
|
||||
command:
|
||||
check-enabled-modules:
|
||||
exec: php -m
|
||||
exit-status: 0
|
||||
stdout:
|
||||
{{ range $module := .Vars.phpmodules }}
|
||||
- "{{ $module }}"
|
||||
{{ end }}
|
||||
file:
|
||||
# HTTP vhost should have been properly rendered
|
||||
/opt/bitnami/apache/conf/vhosts/phpbb-vhost.conf:
|
||||
exists: true
|
||||
filetype: file
|
||||
contains:
|
||||
- /DocumentRoot.*/opt/bitnami/phpbb/
|
||||
- Alias /bitnami/phpbb /bitnami/phpbb
|
||||
# HTTPS vhost should have been properly rendered
|
||||
/opt/bitnami/apache/conf/vhosts/phpbb-https-vhost.conf:
|
||||
exists: true
|
||||
filetype: file
|
||||
contains:
|
||||
- "SSLEngine on"
|
||||
- /DocumentRoot.*/opt/bitnami/phpbb/
|
||||
- Alias /bitnami/phpbb /bitnami/phpbb
|
||||
group:
|
||||
daemon:
|
||||
exists: true
|
||||
user:
|
||||
daemon:
|
||||
exists: true
|
||||
@@ -0,0 +1,34 @@
|
||||
binaries:
|
||||
- apachectl
|
||||
- mariadb
|
||||
- php
|
||||
- render-template
|
||||
directories:
|
||||
- mode: "0775"
|
||||
paths:
|
||||
- /bitnami/phpbb
|
||||
- /opt/bitnami/phpbb
|
||||
- /opt/bitnami/phpbb/cache
|
||||
- /opt/bitnami/phpbb/files
|
||||
- /opt/bitnami/phpbb/images
|
||||
- /opt/bitnami/phpbb/store
|
||||
- /opt/bitnami/phpbb/ext
|
||||
files:
|
||||
- paths:
|
||||
- /opt/bitnami/phpbb/config.php
|
||||
- /opt/bitnami/phpbb/install/install_config.json
|
||||
phpmodules:
|
||||
# Based on https://www.phpbb.com/support/docs/ug/
|
||||
# Required
|
||||
- json
|
||||
- mbstring
|
||||
- mysqli
|
||||
- xml
|
||||
# Recommended
|
||||
- ftp
|
||||
- gd
|
||||
- zlib
|
||||
root_dir: /opt/bitnami
|
||||
version:
|
||||
bin_name: php
|
||||
flag: /opt/bitnami/phpbb/install/phpbbcli.php --version
|
||||
@@ -3,7 +3,8 @@
|
||||
"resources": {
|
||||
"url": "{VIB_ENV_CONTAINER_URL}",
|
||||
"path": "{VIB_ENV_PATH}"
|
||||
}
|
||||
},
|
||||
"runtime_parameters": "Y29tbWFuZDogWyJ0YWlsIiwgIi1mIiwgIi9kZXYvbnVsbCJd"
|
||||
},
|
||||
"phases": {
|
||||
"package": {
|
||||
@@ -33,6 +34,21 @@
|
||||
},
|
||||
"verify": {
|
||||
"actions": [
|
||||
{
|
||||
"action_id": "goss",
|
||||
"params": {
|
||||
"resources": {
|
||||
"path": "/.vib"
|
||||
},
|
||||
"tests_file": "phpbb/goss/goss.yaml",
|
||||
"vars_file": "phpbb/goss/vars.yaml",
|
||||
"remote": {
|
||||
"pod": {
|
||||
"workload": "deploy-phpbb"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"action_id": "trivy",
|
||||
"params": {
|
||||
|
||||
@@ -3,7 +3,8 @@
|
||||
"resources": {
|
||||
"url": "{SHA_ARCHIVE}",
|
||||
"path": "{VIB_ENV_PATH}"
|
||||
}
|
||||
},
|
||||
"runtime_parameters": "Y29tbWFuZDogWyJ0YWlsIiwgIi1mIiwgIi9kZXYvbnVsbCJd"
|
||||
},
|
||||
"phases": {
|
||||
"package": {
|
||||
@@ -29,6 +30,21 @@
|
||||
},
|
||||
"verify": {
|
||||
"actions": [
|
||||
{
|
||||
"action_id": "goss",
|
||||
"params": {
|
||||
"resources": {
|
||||
"path": "/.vib"
|
||||
},
|
||||
"tests_file": "phpbb/goss/goss.yaml",
|
||||
"vars_file": "phpbb/goss/vars.yaml",
|
||||
"remote": {
|
||||
"pod": {
|
||||
"workload": "deploy-phpbb"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"action_id": "trivy",
|
||||
"params": {
|
||||
|
||||
Reference in New Issue
Block a user