redis/test/run-openshift-remote-cluster
phracek 91419800c9 Merge pull request #93 from phracek/enable_redis_6_for_rhel7
Enable testing redis 6 for RHEL7 and RHEL8
2021-11-25 12:00:57 +00:00

37 lines
820 B
Bash
Executable file

#!/bin/bash
#
# Test the Redis image in OpenShift (remote cluster)
#
# IMAGE_NAME specifies a name of the candidate image used for testing.
# The image has to be available before this script is executed.
# VERSION specifies the major version of the Redis in format of X.Y
# OS specifies RHEL version (e.g. OS=rhel7)
#
THISDIR=$(dirname ${BASH_SOURCE[0]})
source ${THISDIR}/test-lib-redis.sh
set -eo nounset
trap ct_os_cleanup EXIT SIGINT
ct_os_set_ocp4
ct_os_check_compulsory_vars
oc status || false "It looks like oc is not properly logged in."
# For testing on OpenShift 4 we use external registry
export CT_EXTERNAL_REGISTRY=true
# Check the template
test_redis_integration "${IMAGE_NAME}"
# Check the imagestream
test_redis_imagestream
OS_TESTSUITE_RESULT=0
# vim: set tabstop=2:shiftwidth=2:expandtab: