Skip to content

Commit 732ad93

Browse files
committed
tests: link to examples directory instead to specific templates
1 parent b66f12f commit 732ad93

4 files changed

+4
-4
lines changed

test/examples

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../examples/

test/postgresql-ephemeral-template.json

-1
This file was deleted.

test/postgresql-persistent-template.json

-1
This file was deleted.

test/run-openshift

+3-2
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
#
88

99
THISDIR=$(dirname ${BASH_SOURCE[0]})
10+
TEMPLATES="$THISDIR/examples"
1011

1112
source "$THISDIR"/test-lib-openshift.sh
1213

@@ -116,7 +117,7 @@ function test_postgresql_template() {
116117
ct_os_new_project
117118
ct_os_upload_image "${image_name}" "postgresql:$VERSION"
118119

119-
ct_os_deploy_template_image "$THISDIR/postgresql-ephemeral-template.json" \
120+
ct_os_deploy_template_image "$TEMPLATES/postgresql-ephemeral-template.json" \
120121
NAMESPACE="$(oc project -q)" \
121122
POSTGRESQL_VERSION="$VERSION" \
122123
DATABASE_SERVICE_NAME="${service_name}" \
@@ -152,7 +153,7 @@ function test_postgresql_update() {
152153
ct_os_new_project
153154
ct_os_upload_image "$old_image" "postgresql:$VERSION"
154155

155-
ct_os_deploy_template_image "$THISDIR/postgresql-persistent-template.json" \
156+
ct_os_deploy_template_image "$TEMPLATES/postgresql-persistent-template.json" \
156157
NAMESPACE="$(oc project -q)" \
157158
POSTGRESQL_VERSION="$VERSION" \
158159
DATABASE_SERVICE_NAME="$service_name" \

0 commit comments

Comments
 (0)