File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -36,6 +36,7 @@ display_logs() {
3636
3737set -eux
3838
39+ fold_start " installing postgresql omero-server omero-web"
3940IP=$( hostname -I | awk ' {print $1}' )
4041
4142TEST_NAMESPACE=omero-test
@@ -49,6 +50,7 @@ helm upgrade --install omero-server --namespace $TEST_NAMESPACE --create-namespa
4950helm dependency update ./omero-web/
5051helm upgrade --install omero-web --namespace $TEST_NAMESPACE --create-namespace \
5152 ./omero-web/ -f test-omero-web.yaml
53+ fold_end
5254
5355fold_start " waiting for omero-server"
5456n=0
@@ -90,15 +92,21 @@ until [ "`kubectl_retry -n $TEST_NAMESPACE get deploy omero-web -o jsonpath='{.s
9092done
9193fold_end
9294
93- echo " Importing image"
95+ # Display logs if tests fail
96+ trap display_logs EXIT
97+
98+ fold_start " importing image"
9499OMERO_PORT=$( kubectl -n $TEST_NAMESPACE get svc omero-server -o jsonpath=' {.spec.ports[0].nodePort}' )
95100omero login -s root@localhost:$OMERO_PORT -w omero
96101omero import -T Dataset:name:test ci/opengraph-repo-image.jpg
97102omero logout
98103omero login -s wss://localhost/omero-ws -u root -w omero
99104omero import -T Dataset:name:testws ci/opengraph-repo-image.jpg
100105omero logout
106+ fold_end
101107
108+ fold_start " pytest"
102109SERVER=" https://localhost" pytest ci/test_image.py
110+ fold_end
103111
104112display_logs
You can’t perform that action at this time.
0 commit comments