mirror of
https://github.com/bitnami/containers.git
synced 2026-10-20 23:58:17 +02:00
[bitnami/mongodb-sharded] Add VIB tests (#28162)
* [bitnami/mongodb-shared] Add VIB tests Signed-off-by: Jose Antonio Carmona <jcarmona@vmware.com> * Trigger VIB Signed-off-by: Jose Antonio Carmona <jcarmona@vmware.com> * Fix path type Signed-off-by: Jose Antonio Carmona <jcarmona@vmware.com> * Revert "Trigger VIB" This reverts commit c166dc9366d90d999ea7e6b998bb49bcf4f4c896. Signed-off-by: Jose Antonio Carmona <jcarmona@vmware.com> --------- Signed-off-by: Jose Antonio Carmona <jcarmona@vmware.com>
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
gossfile:
|
||||
# Goss tests exclusive to the current container
|
||||
../../mongodb-sharded/goss/mongodb-sharded.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-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,22 @@
|
||||
file:
|
||||
/opt/bitnami/mongodb/mongodb_get_source.txt:
|
||||
exists: true
|
||||
contains:
|
||||
- This solution ships the official MongoDB Community binaries
|
||||
/opt/bitnami/mongodb/conf/mongodb.conf:
|
||||
exists: true
|
||||
filetype: file
|
||||
mode: "0664"
|
||||
contains:
|
||||
- /dbPath.*/bitnami/mongodb/data/db/
|
||||
- /pidFilePath.*/opt/bitnami/mongodb/tmp/mongodb.pid/
|
||||
/opt/bitnami/mongodb/conf/mongos.conf:
|
||||
exists: true
|
||||
filetype: file
|
||||
mode: "0664"
|
||||
contains:
|
||||
- /pidFilePath.*/opt/bitnami/mongodb/tmp/mongodb.pid/
|
||||
/opt/bitnami/mongodb/logs/mongodb.log:
|
||||
exists: true
|
||||
filetype: symlink
|
||||
linked-to: /dev/stdout
|
||||
@@ -0,0 +1,27 @@
|
||||
binaries:
|
||||
- mongod
|
||||
- mongosh
|
||||
- yq
|
||||
- wait-for-port
|
||||
- render-template
|
||||
- gosu
|
||||
files:
|
||||
- mode: "0664"
|
||||
paths:
|
||||
- /.dbshell
|
||||
- /.mongorc.js
|
||||
- /.mongoshrc.js
|
||||
directories:
|
||||
- mode: "0775"
|
||||
paths:
|
||||
- /.mongodb
|
||||
- /bitnami/mongodb
|
||||
- /bitnami/mongodb/data
|
||||
- /opt/bitnami/mongodb/tmp
|
||||
- /opt/bitnami/mongodb/logs
|
||||
- /opt/bitnami/mongodb/conf
|
||||
- /docker-entrypoint-initdb.d
|
||||
root_dir: /opt/bitnami
|
||||
version:
|
||||
bin_name: mongod
|
||||
flag: --version
|
||||
@@ -3,7 +3,8 @@
|
||||
"resources": {
|
||||
"url": "{VIB_ENV_CONTAINER_URL}",
|
||||
"path": "{VIB_ENV_PATH}"
|
||||
}
|
||||
},
|
||||
"runtime_parameters": "Y29tbWFuZDogWyJ0YWlsIiwgIi1mIiwgIi9kZXYvbnVsbCJd"
|
||||
},
|
||||
"phases": {
|
||||
"package": {
|
||||
@@ -32,6 +33,21 @@
|
||||
},
|
||||
"verify": {
|
||||
"actions": [
|
||||
{
|
||||
"action_id": "goss",
|
||||
"params": {
|
||||
"resources": {
|
||||
"path": "/.vib"
|
||||
},
|
||||
"tests_file": "mongodb-sharded/goss/goss.yaml",
|
||||
"vars_file": "mongodb-sharded/goss/vars.yaml",
|
||||
"remote": {
|
||||
"pod": {
|
||||
"workload": "deploy-mongodb-sharded"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"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": "mongodb-sharded/goss/goss.yaml",
|
||||
"vars_file": "mongodb-sharded/goss/vars.yaml",
|
||||
"remote": {
|
||||
"pod": {
|
||||
"workload": "deploy-mongodb-sharded"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"action_id": "trivy",
|
||||
"params": {
|
||||
|
||||
Reference in New Issue
Block a user