-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtest-lib-valkey.sh
48 lines (42 loc) · 1.75 KB
/
test-lib-valkey.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
#!/bin/bash
#
# Functions for tests for the Redis image in OpenShift.
#
# IMAGE_NAME specifies a name of the candidate image used for testing.
# The image has to be available before this script is executed.
#
THISDIR=$(dirname ${BASH_SOURCE[0]})
source "${THISDIR}/test-lib.sh"
source "${THISDIR}/test-lib-openshift.sh"
source "${THISDIR}/test-lib-remote-openshift.sh"
#function test_valkey_integration() {
# local service_name=valkey
# namespace_image="${OS}/valkey-${VERSION}"
# TEMPLATES="valkey-ephemeral-template.json
# valkey-persistent-template.json"
# for template in $TEMPLATES; do
# ct_os_test_template_app_func "${IMAGE_NAME}" \
# "${THISDIR}/examples/${template}" \
# "${service_name}" \
# "ct_os_check_cmd_internal 'registry.redhat.io/${namespace_image}' '${service_name}-testing' 'timeout 15 valkey-cli -h <IP> -a testp ping' 'PONG'" \
# "-p REDIS_VERSION=${VERSION} \
# -p DATABASE_SERVICE_NAME="${service_name}-testing" \
# -p REDIS_PASSWORD=testp"
# done
#}
# Check the imagestream
#function test_valkey_imagestream() {
# TEMPLATES="valkey-ephemeral-template.json
# valkey-persistent-template.json"
# for template in $TEMPLATES; do
# ct_os_test_image_stream_template "${THISDIR}/imagestreams/valkey-${OS%[0-9]*}.json" "${THISDIR}/examples/${template}" valkey "-p REDIS_VERSION=${VERSION}${tag}"
# done
#}
function test_latest_imagestreams() {
info "Testing the latest version in imagestreams"
# Switch to root directory of a container
pushd "${THISDIR}/../.." >/dev/null
ct_check_latest_imagestreams
popd >/dev/null
}
# vim: set tabstop=2:shiftwidth=2:expandtab: