[bitnami/redis-cluster] Add VIB tests (#30679)
* [bitnami/redis-cluster] 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> --------- Signed-off-by: FraPazGal <fdepaz@vmware.com>
This commit is contained in:
parent
4a067768eb
commit
fc5ff4a1ba
|
|
@ -0,0 +1,13 @@
|
|||
gossfile:
|
||||
# Goss tests exclusive to the current container
|
||||
../../redis-cluster/goss/redis-cluster.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,29 @@
|
|||
file:
|
||||
/opt/bitnami/redis/etc/redis.conf:
|
||||
exists: true
|
||||
contains:
|
||||
- /port.*6379/
|
||||
- /dir.*/bitnami/redis/data/
|
||||
- /pidfile.*/opt/bitnami/redis/tmp/redis.pid/
|
||||
- daemonize no
|
||||
- cluster-enabled yes
|
||||
- /cluster-config-file.*/bitnami/redis/data/nodes.conf/
|
||||
command:
|
||||
check-redis-server:
|
||||
exec: timeout --preserve-status 5 redis-server /opt/bitnami/redis/etc/redis.conf
|
||||
exit-status: 0
|
||||
timeout: 10000
|
||||
stdout:
|
||||
- Ready to accept connections
|
||||
check-redis-server-ssl:
|
||||
exec: ldd /opt/bitnami/redis/bin/redis-server
|
||||
exit-status: 0
|
||||
stdout:
|
||||
- libcrypto.so
|
||||
- libssl.so
|
||||
check-redis-cli-ssl:
|
||||
exec: ldd /opt/bitnami/redis/bin/redis-cli
|
||||
exit-status: 0
|
||||
stdout:
|
||||
- libcrypto.so
|
||||
- libssl.so
|
||||
|
|
@ -0,0 +1,18 @@
|
|||
binaries:
|
||||
- redis-cli
|
||||
- redis-server
|
||||
directories:
|
||||
- mode: "0775"
|
||||
paths:
|
||||
- /bitnami/redis
|
||||
- /opt/bitnami/redis
|
||||
- paths:
|
||||
- /bitnami/redis/data
|
||||
- /opt/bitnami/redis/etc
|
||||
files:
|
||||
- paths:
|
||||
- /opt/bitnami/redis/etc/redis-default.conf
|
||||
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-cluster/goss/goss.yaml",
|
||||
"vars_file": "redis-cluster/goss/vars.yaml",
|
||||
"remote": {
|
||||
"pod": {
|
||||
"workload": "deploy-redis-cluster"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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-cluster/goss/goss.yaml",
|
||||
"vars_file": "redis-cluster/goss/vars.yaml",
|
||||
"remote": {
|
||||
"pod": {
|
||||
"workload": "deploy-redis-cluster"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue