[bitnami/codeigniter] Add codeigniter tests (#24225)

* [bitnami/codeigniter] Add verification tests for Codeigniter container

Signed-off-by: Michiel <michield@vmware.com>
This commit is contained in:
Michiel
2023-03-15 16:22:57 +01:00
committed by GitHub
parent a2b8c7645e
commit e72629bbcd
5 changed files with 65 additions and 2 deletions

View File

@@ -0,0 +1,7 @@
command:
# The spark serve command is working
check-server:
exec: timeout 2s /opt/bitnami/codeigniter/spark serve | tail -n2
exit-status: 0
stdout:
- started

View File

@@ -0,0 +1,11 @@
gossfile:
# Goss tests exclusive to the current container
../../codeigniter/goss/codeigniter.yaml: {}
# Load scripts from .vib/common/goss/templates
../../common/goss/templates/check-app-version.yaml: {}
../../common/goss/templates/check-broken-symlinks.yaml: {}
../../common/goss/templates/check-ca-certs.yaml: {}
../../common/goss/templates/check-binaries.yaml: {}
../../common/goss/templates/check-directories.yaml: {}
../../common/goss/templates/check-linked-libraries.yaml: {}
../../common/goss/templates/check-sed-in-place.yaml: {}

View File

@@ -0,0 +1,13 @@
binaries:
- composer
- php-fpm
- gosu
- mysql
directories:
- mode: "0775"
paths:
- /app
root_dir: /opt/bitnami
version:
bin_name: /opt/bitnami/codeigniter/spark
flag: --version

View File

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

View File

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