mirror of
https://github.com/bitnami/containers.git
synced 2026-10-18 08:17:20 +02:00
[bitnami/redis-sentinel] Add VIB tests (#30686)
* [bitnami/redis-sentinel] Add VIB tests Signed-off-by: FraPazGal <fdepaz@vmware.com> * Remove VIB trigger Signed-off-by: FraPazGal <fdepaz@vmware.com> * Remove gosu check Signed-off-by: FraPazGal <fdepaz@vmware.com> * Apply suggestions and trigger VIB Signed-off-by: FraPazGal <fdepaz@vmware.com> * Remove VIB trigger Signed-off-by: FraPazGal <fdepaz@vmware.com> --------- Signed-off-by: FraPazGal <fdepaz@vmware.com>
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
gossfile:
|
||||
# Goss tests exclusive to the current container
|
||||
../../redis-sentinel/goss/redis-sentinel.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: {}
|
||||
@@ -0,0 +1,25 @@
|
||||
file:
|
||||
/opt/bitnami/redis-sentinel/etc/sentinel.conf:
|
||||
exists: true
|
||||
contains:
|
||||
- port 26379
|
||||
- bind 0.0.0.0
|
||||
- /pidfile.*/opt/bitnami/redis-sentinel/tmp/redis-sentinel.pid/
|
||||
- daemonize no
|
||||
- logfile ""
|
||||
command:
|
||||
check-redis-server:
|
||||
exec: timeout --preserve-status 5 redis-server /opt/bitnami/redis-sentinel/etc/sentinel.conf --sentinel
|
||||
exit-status: 0
|
||||
timeout: 10000
|
||||
stdout:
|
||||
- Configuration loaded
|
||||
- /monitor.*quorum/
|
||||
{{ range $binary := .Vars.binaries }}
|
||||
check-{{ $binary }}-ssl:
|
||||
exec: ldd /opt/bitnami/redis-sentinel/bin/{{ $binary }}
|
||||
exit-status: 0
|
||||
stdout:
|
||||
- libcrypto.so
|
||||
- libssl.so
|
||||
{{ end }}
|
||||
@@ -0,0 +1,17 @@
|
||||
binaries:
|
||||
- redis-cli
|
||||
- redis-server
|
||||
- redis-sentinel
|
||||
directories:
|
||||
- mode: "0775"
|
||||
paths:
|
||||
- /bitnami/redis-sentinel
|
||||
- /bitnami/redis-sentinel/conf
|
||||
- /opt/bitnami/redis-sentinel
|
||||
- /opt/bitnami/redis-sentinel/etc
|
||||
- /opt/bitnami/redis-sentinel/logs
|
||||
- /opt/bitnami/redis-sentinel/tmp
|
||||
root_dir: /opt/bitnami
|
||||
version:
|
||||
bin_name: redis-server
|
||||
flag: --version
|
||||
@@ -3,7 +3,8 @@
|
||||
"resources": {
|
||||
"url": "{VIB_ENV_CONTAINER_URL}",
|
||||
"path": "{VIB_ENV_PATH}"
|
||||
}
|
||||
},
|
||||
"runtime_parameters": "Y29tbWFuZDogWyJ0YWlsIiwgIi1mIiwgIi9kZXYvbnVsbCJd"
|
||||
},
|
||||
"phases": {
|
||||
"package": {
|
||||
@@ -77,9 +78,24 @@
|
||||
"url": "{VIB_ENV_PACKAGES_JSON_URL}",
|
||||
"path": "/{VIB_ENV_PATH}",
|
||||
"authn": {
|
||||
"header": "Authorization",
|
||||
"token": "Bearer {VIB_ENV_GITHUB_TOKEN}"
|
||||
}
|
||||
"header": "Authorization",
|
||||
"token": "Bearer {VIB_ENV_GITHUB_TOKEN}"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"action_id": "goss",
|
||||
"params": {
|
||||
"resources": {
|
||||
"path": "/.vib"
|
||||
},
|
||||
"tests_file": "redis-sentinel/goss/goss.yaml",
|
||||
"vars_file": "redis-sentinel/goss/vars.yaml",
|
||||
"remote": {
|
||||
"pod": {
|
||||
"workload": "deploy-redis-sentinel"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -3,7 +3,8 @@
|
||||
"resources": {
|
||||
"url": "{SHA_ARCHIVE}",
|
||||
"path": "{VIB_ENV_PATH}"
|
||||
}
|
||||
},
|
||||
"runtime_parameters": "Y29tbWFuZDogWyJ0YWlsIiwgIi1mIiwgIi9kZXYvbnVsbCJd"
|
||||
},
|
||||
"phases": {
|
||||
"package": {
|
||||
@@ -46,6 +47,21 @@
|
||||
"OS"
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"action_id": "goss",
|
||||
"params": {
|
||||
"resources": {
|
||||
"path": "/.vib"
|
||||
},
|
||||
"tests_file": "redis-sentinel/goss/goss.yaml",
|
||||
"vars_file": "redis-sentinel/goss/vars.yaml",
|
||||
"remote": {
|
||||
"pod": {
|
||||
"workload": "deploy-redis-sentinel"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user