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

revoke from postgres removed (user postgres doesn't have to exist)

parent 0030d0f7
No related branches found
No related tags found
2 merge requests!630WIP: Resolve "The privileges of a new user are not saved in some cases",!386Resolve "Continous integration tests"
Pipeline #6325 canceled
......@@ -20,7 +20,7 @@ test_frontend:
test_backend:
image: maven:latest
services:
- postgres:latest
- postgres:9.6
stage: test
script:
- apt-get update
......@@ -30,20 +30,20 @@ test_backend:
- export DISPLAY=:99
#connection to the db
- mkdir /etc/minerva/
# - echo "database.uri=jdbc:postgresql://$POSTGRES_PORT_5432_TCP_ADDR:5432/map_viewer" >>/etc/minerva/test-db.properties
# - echo "database.username=map_viewer" >>/etc/minerva/test-db.properties
# - echo "database.password=123qweasdzxc">>/etc/minerva/test-db.properties
- apt-get install -y postgresql sudo
- service postgresql start
- sudo -u postgres createuser -s map_viewer
- sudo -u postgres createdb map_viewer -O map_viewer
- sudo -u postgres psql -c "ALTER USER map_viewer WITH PASSWORD '123qweasdzxc';"
- echo "database.uri=jdbc:postgresql://127.0.0.1:5432/map_viewer" >>/etc/minerva/test-db.properties
- echo "database.uri=jdbc:postgresql://$POSTGRES_PORT_5432_TCP_ADDR:5432/map_viewer" >>/etc/minerva/test-db.properties
- echo "database.username=map_viewer" >>/etc/minerva/test-db.properties
- echo "database.password=123qweasdzxc">>/etc/minerva/test-db.properties
# - apt-get install -y postgresql sudo
# - service postgresql start
# - sudo -u postgres createuser -s map_viewer
# - sudo -u postgres createdb map_viewer -O map_viewer
# - sudo -u postgres psql -c "ALTER USER map_viewer WITH PASSWORD '123qweasdzxc';"
# - echo "database.uri=jdbc:postgresql://127.0.0.1:5432/map_viewer" >>/etc/minerva/test-db.properties
# - echo "database.username=map_viewer" >>/etc/minerva/test-db.properties
# - echo "database.password=123qweasdzxc">>/etc/minerva/test-db.properties
#exclude frontend (we need node for that)
- mvn test -pl annotation,CellDesigner-plugin,commons,converter,converter-graphics,converter-CellDesigner,converter-SBGNML,converter-sbml,model,model-command,pathvisio,persist,reactome,rest-api,web
- mvn test -pl annotation,CellDesigner-plugin,commons,converter,converter-graphics,converter-CellDesigner,converter-SBGNML,converter-sbml,model,model-command,pathvisio,persist,reactome,rest-api,service,web
build_war:
......
......@@ -3059,11 +3059,11 @@ ALTER TABLE ONLY feedback
-- Dependencies: 7
-- Name: public; Type: ACL; Schema: -; Owner: postgres
--
REVOKE ALL ON SCHEMA public FROM PUBLIC;
REVOKE ALL ON SCHEMA public FROM postgres;
GRANT ALL ON SCHEMA public TO postgres;
GRANT ALL ON SCHEMA public TO PUBLIC;
--
--REVOKE ALL ON SCHEMA public FROM PUBLIC;
--REVOKE ALL ON SCHEMA public FROM postgres;
--GRANT ALL ON SCHEMA public TO postgres;
--GRANT ALL ON SCHEMA public TO PUBLIC;
-- Completed on 2017-09-21 13:13:48
......
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