mirror of
https://github.com/bitnami/containers.git
synced 2026-02-19 22:17:24 +08:00
[bitnami/couchdb] Add VIB tests (#26795)
* [bitnami/couchdb] Add VIB tests Signed-off-by: FraPazGal <fdepaz@vmware.com> * Remove VIB trigger Signed-off-by: FraPazGal <fdepaz@vmware.com> * Apply suggestions Signed-off-by: FraPazGal <fdepaz@vmware.com> --------- Signed-off-by: FraPazGal <fdepaz@vmware.com>
This commit is contained in:
committed by
GitHub
parent
fb80583a38
commit
da7352b23f
16
.vib/couchdb/goss/couchdb.yaml
Normal file
16
.vib/couchdb/goss/couchdb.yaml
Normal file
@@ -0,0 +1,16 @@
|
||||
file:
|
||||
# Checks default config for erlang is set
|
||||
/opt/bitnami/couchdb/etc/vm.args:
|
||||
exists: true
|
||||
filetype: file
|
||||
contains:
|
||||
- /-kernel.*inet_dist_listen_min.*9100/
|
||||
command:
|
||||
check-library-path:
|
||||
exec: echo $LD_LIBRARY_PATH
|
||||
stdout:
|
||||
- /opt/bitnami/common/lib
|
||||
exit-status: 0
|
||||
check-libmozjs:
|
||||
exec: ls /opt/bitnami/common/lib | grep libmozjs
|
||||
exit-status: 0
|
||||
12
.vib/couchdb/goss/goss.yaml
Normal file
12
.vib/couchdb/goss/goss.yaml
Normal file
@@ -0,0 +1,12 @@
|
||||
gossfile:
|
||||
# Goss tests exclusive to the current container
|
||||
../../couchdb/goss/couchdb.yaml: {}
|
||||
# Load scripts from .vib/common/goss/templates
|
||||
../../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-linked-libraries.yaml: {}
|
||||
../../common/goss/templates/check-sed-in-place.yaml: {}
|
||||
../../common/goss/templates/check-spdx.yaml: {}
|
||||
19
.vib/couchdb/goss/vars.yaml
Normal file
19
.vib/couchdb/goss/vars.yaml
Normal file
@@ -0,0 +1,19 @@
|
||||
binaries:
|
||||
- couchdb
|
||||
- couchjs
|
||||
- erl
|
||||
- gosu
|
||||
- ini-file
|
||||
- wait-for-port
|
||||
directories:
|
||||
- mode: "0775"
|
||||
paths:
|
||||
- /bitnami/couchdb/data
|
||||
- /opt/bitnami/couchdb/etc
|
||||
- paths:
|
||||
- /opt/bitnami/couchdb/etc/default.d
|
||||
- /opt/bitnami/common/lib
|
||||
root_dir: /opt/bitnami
|
||||
version:
|
||||
bin_name: couchjs
|
||||
flag: -V
|
||||
@@ -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": "couchdb/goss/goss.yaml",
|
||||
"vars_file": "couchdb/goss/vars.yaml",
|
||||
"remote": {
|
||||
"pod": {
|
||||
"workload": "deploy-couchdb"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"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": "couchdb/goss/goss.yaml",
|
||||
"vars_file": "couchdb/goss/vars.yaml",
|
||||
"remote": {
|
||||
"pod": {
|
||||
"workload": "deploy-couchdb"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"action_id": "trivy",
|
||||
"params": {
|
||||
@@ -50,4 +66,4 @@
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user