Skip to content
Snippets Groups Projects
Commit eb188ebb authored by Henrik tom Wörden's avatar Henrik tom Wörden
Browse files

MAINT: add safety check for integration tests

The integration tests delete all data in a CaosDB server. This is now displayed again in a question before starting the tests.
parent 4382c22b
No related branches found
No related tags found
2 merge requests!22Release 0.3,!12F safe inttest
......@@ -31,4 +31,4 @@ RUN rm -r /git/.git \
&& mv /git/.docker/pycaosdb.ini /git/integrationtests
RUN cd /git && pip3 install .[h5-crawler]
WORKDIR /git/integrationtests
CMD /wait-for-it.sh caosdb-server:10443 -t 500 -- ./test.sh
CMD /wait-for-it.sh caosdb-server:10443 -t 500 -- ./test.sh --force
#!/bin/bash
if [ "$1" != "--force" ]
then
echo "Warning: For these tests, the whole database will be deleted. Do you want to proceed? (yes/Exit)"
read safety
if [ -z $safety ]
then
echo "Exiting..."
exit 0
elif [ $safety != "yes" ]
then
echo "Exiting..."
exit 0
fi
fi
OUT=/tmp/crawler.output
ls
cat pycaosdb.ini
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment