Skip to content
Snippets Groups Projects
Commit 8a837e0d authored by Piotr Gawron's avatar Piotr Gawron
Browse files

test is using war file built in previos stage

parent e01924f8
No related branches found
No related tags found
3 merge requests!46912.1.0~beta.4 into master,!45912.1.0~beta.3 into master,!454Resolve "fix migration script to work on database without superadmin privileges"
Pipeline #6785 passed
......@@ -142,9 +142,10 @@ test_deploy_with_db_without_superadmin_rights:
- echo "database.password=test" >> /etc/minerva/db.properties
- echo "CREATE DATABASE test;CREATE USER test WITH ENCRYPTED PASSWORD 'test';GRANT ALL PRIVILEGES ON DATABASE test TO test;" >tmp.sql
- PGPASSWORD=$POSTGRES_PASSWORD psql -h postgres -U $POSTGRES_USER $POSTGRES_DB < tmp.sql
- wget https://git-r3lab.uni.lu/minerva/core/-/jobs/32480/artifacts/raw/minerva.war -O /usr/local/tomcat/webapps/minerva.war
- mv minerva.war /usr/local/tomcat/webapps/minerva.war
- /usr/local/tomcat/bin/startup.sh
- sleep 15
- wget http://localhost:8080/minerva/
#test if we can login and list projects
- test 200 = $(curl --write-out %{http_code} --silent --output /dev/null -c cookie.txt http://localhost:8080/minerva/api/doLogin)
- test 200 = $(curl --write-out %{http_code} --silent --output /dev/null --cookie cookie.txt http://localhost:8080/minerva/api/projects/)
......
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