mirror of
https://github.com/bitnami/containers.git
synced 2026-03-15 14:58:17 +08:00
[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:
7
.vib/codeigniter/goss/codeigniter.yaml
Normal file
7
.vib/codeigniter/goss/codeigniter.yaml
Normal 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
|
||||
11
.vib/codeigniter/goss/goss.yaml
Normal file
11
.vib/codeigniter/goss/goss.yaml
Normal 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: {}
|
||||
13
.vib/codeigniter/goss/vars.yaml
Normal file
13
.vib/codeigniter/goss/vars.yaml
Normal 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
|
||||
@@ -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": {
|
||||
|
||||
@@ -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": {
|
||||
|
||||
Reference in New Issue
Block a user