[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:
Francisco de Paz Galan
2023-03-17 09:03:43 +01:00
committed by GitHub
parent fb80583a38
commit da7352b23f
5 changed files with 82 additions and 3 deletions

View 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

View 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: {}

View 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