From 8a837e0d4fd42b9f6e881a7c616b0fbc6ab5ae6f Mon Sep 17 00:00:00 2001
From: Piotr Gawron <piotr.gawron@uni.lu>
Date: Wed, 10 Oct 2018 23:44:40 +0200
Subject: [PATCH] test is using war file built in previos stage

---
 .gitlab-ci.yml | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index fc671558a5..5e7279cf0a 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -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/)
-- 
GitLab