2015-05-02 13:32:30 +02:00
|
|
|
|
|
|
|
# li.strolch.service
|
2013-10-23 19:48:13 +02:00
|
|
|
|
2014-01-23 22:52:50 +01:00
|
|
|
[![Build Status](http://jenkins.eitchnet.ch/buildStatus/icon?job=li.strolch.service)](http://jenkins.eitchnet.ch/view/strolch/job/li.strolch.service/)
|
|
|
|
|
2013-10-23 19:48:13 +02:00
|
|
|
Service API for Strolch
|
2014-06-13 17:53:42 +02:00
|
|
|
|
2015-05-02 13:32:30 +02:00
|
|
|
|
|
|
|
# Running tests
|
|
|
|
|
|
|
|
* Start PostgreSQL console and create the users:
|
|
|
|
$ sudo -u postgres psql
|
|
|
|
$ postgres=#
|
2014-06-13 17:53:42 +02:00
|
|
|
create user cacheduser with password 'test';
|
|
|
|
create database cacheduserdb;
|
|
|
|
GRANT ALL PRIVILEGES ON DATABASE cacheduserdb to cacheduser;
|
|
|
|
GRANT CONNECT ON DATABASE cacheduserdb TO cacheduser;
|
|
|
|
|
|
|
|
create user transactionaluser with password 'test';
|
|
|
|
create database transactionaluserdb;
|
|
|
|
GRANT ALL PRIVILEGES ON DATABASE transactionaluserdb to transactionaluser;
|
|
|
|
GRANT CONNECT ON DATABASE transactionaluserdb TO transactionaluser;
|
|
|
|
|
2014-06-13 18:12:35 +02:00
|
|
|
# You can revoke the privileges with the following:
|
2014-06-13 17:53:42 +02:00
|
|
|
revoke ALL PRIVILEGES ON DATABASE cacheduserdb from cacheduser;
|
|
|
|
drop user cacheduser;
|
|
|
|
drop database cacheduserdb;
|
|
|
|
|
|
|
|
revoke ALL PRIVILEGES ON DATABASE transactionaluserdb from transactionaluser;
|
|
|
|
drop user transactionaluser;
|
|
|
|
drop database transactionaluserdb;
|