[bitnami/influxdb] Add influxdb container tests (#27473)

* [bitnami/influxdb] Add InfluxDB container VIB tests

Signed-off-by: Michiel <michield@vmware.com>
This commit is contained in:
Michiel
2023-03-22 09:38:56 +01:00
committed by GitHub
parent 30b43c374c
commit 8a1686afc4
5 changed files with 73 additions and 2 deletions
+13
View File
@@ -0,0 +1,13 @@
gossfile:
# Goss tests exclusive to the current container
../../influxdb/goss/influxdb.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: {}
+6
View File
@@ -0,0 +1,6 @@
group:
daemon:
exists: true
user:
daemon:
exists: true
+20
View File
@@ -0,0 +1,20 @@
binaries:
- influx
- influxd
- gosu
- wait-for-port
directories:
- mode: "0775"
paths:
- /opt/bitnami/influxdb/etc
- /bitnami/influxdb/data
- /bitnami/influxdb/wal
- /bitnami/influxdb/meta
- /docker-entrypoint-initdb.d
files:
- paths:
- /.influx_history
root_dir: /opt/bitnami
version:
bin_name: influxd
flag: version
+17 -1
View File
@@ -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": "influxdb/goss/goss.yaml",
"vars_file": "influxdb/goss/vars.yaml",
"remote": {
"pod": {
"workload": "deploy-influxdb"
}
}
}
},
{
"action_id": "trivy",
"params": {
+17 -1
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": "influxdb/goss/goss.yaml",
"vars_file": "influxdb/goss/vars.yaml",
"remote": {
"pod": {
"workload": "deploy-influxdb"
}
}
}
},
{
"action_id": "trivy",
"params": {