Sonja Happ
7a64d4653a
Some fixes with respect to config
...
- resolve some name overlappings
- InitConfig sets global config and returns error
- Add missing error handling
2019-11-14 10:38:51 +01:00
Sonja Happ
1f7dbdc60e
update go.sum and sort imports in metrics endpoint
2019-11-14 09:16:25 +01:00
2c5400a0cc
fix tests
2019-11-13 22:12:22 +01:00
a1f7ea9ed9
Merge branch 'master' into config-logging
2019-11-13 21:28:29 +01:00
df93fa854f
update gitignore
2019-11-13 21:22:39 +01:00
d546f7bc91
fix tests
2019-11-13 21:22:17 +01:00
046760313f
Merge branch 'prometheus' into 'master'
...
Prometheus
Closes #25
See merge request acs/public/villas/web-backend-go!6
2019-11-13 20:57:34 +01:00
0119a2947e
swaggo: update generated docs
2019-11-13 20:52:58 +01:00
085627f4e7
config: added base.host and base.path settings
2019-11-13 20:52:27 +01:00
e33c797012
docker: ensure that swaggo documentation is up to date
2019-11-13 20:34:43 +01:00
75d5e58a49
ci: use environment variables
2019-11-13 20:34:24 +01:00
cbefdd2d07
add new config package
2019-11-13 20:31:06 +01:00
81b0110b68
use log package
2019-11-13 20:30:02 +01:00
4c2437185e
added script for testing against kubernetes database
2019-11-13 18:13:28 +01:00
cbcf8abef7
healthz endpoint shoud reside at root path and be accessible by everybody (/api/v2 requires auth)
2019-11-13 18:10:28 +01:00
9ff5ea9eaa
update go.mod / go.sum
2019-11-13 18:09:28 +01:00
72be3b77bf
added metrics route
2019-11-13 18:09:14 +01:00
1c9986337e
Merge branch 'fix-swagger-host' into 'master'
...
swaggo: fix base url for API
See merge request acs/public/villas/web-backend-go!5
2019-11-13 16:57:16 +01:00
34c39e26d9
swaggo: fix base url for API
2019-11-13 16:50:57 +01:00
Sonja Happ
3a0bb791f8
Update for Readme file
2019-11-13 15:51:05 +01:00
Sonja Happ
32bff963d2
improves swaggo documentation
...
- remove blank lines
- add and improve links
2019-11-13 15:03:31 +01:00
Sonja Happ
a8a43f8512
Improvements for swagger API documentation
...
- Adds Authorization token as required header param to all endpoints (except authenticate itself)
- Documents correct data format for request bodies (relevant for updating and adding elements)
- No functional changes applied
2019-11-13 14:48:08 +01:00
Sonja Happ
4f62b52d9f
register healthz endpoint, modify description for swaggo
2019-11-13 14:07:28 +01:00
Sonja Happ
79ce8bf50a
Merge branch 'healthz-endpoint' into 'master'
...
Healthz endpoint
See merge request acs/public/villas/web-backend-go!4
2019-11-13 09:57:04 +01:00
Sonja Happ
3823858b91
CI: add new job to test healthz endpoint
2019-11-13 09:44:59 +01:00
Sonja Happ
c6cac69906
#26 complete implementation of healthz endpoint and testing
2019-11-13 09:43:37 +01:00
Sonja Happ
16356688cc
started implementation of test for healthz endpoint
2019-11-12 17:00:37 +01:00
Sonja Happ
b78dc396ac
initial version of healthz endpoint
2019-11-12 13:36:55 +01:00
Sonja Happ
e8b7508b13
Merge branch 'master' of git.rwth-aachen.de:acs/public/villas/villasweb-backend-go
...
# Conflicts:
# database/database.go
2019-11-12 12:02:51 +01:00
Sonja Happ
9f29c8a5f2
local merge
2019-11-12 12:00:06 +01:00
5ce4a46e31
Merge branch 'new-docker' into 'master'
...
Create new docker images for deployment and streamline CI pipeline
See merge request acs/public/villas/web-backend-go!3
2019-11-11 22:16:27 +01:00
2d16317bab
ci: start rabbitmq service for tests
2019-11-11 18:20:41 +01:00
Sonja Happ
88ed581793
fix DB parameters for test:all
2019-11-11 12:14:05 +01:00
Sonja Happ
7963ce5e78
remove DB_TEST and use DB_NAME instead, InitDB function now has parameter to specify if DB is used for testing or not
2019-11-11 12:06:53 +01:00
83eaf52d17
fixup database connection
2019-11-09 12:46:02 +01:00
e65ec2998d
add missing vars
2019-11-09 12:33:28 +01:00
90c5262e2c
ci: fix database connection
2019-11-09 12:29:22 +01:00
46d2cade8c
database: allow configuration of user and password for pgsql connection
2019-11-09 12:27:48 +01:00
d68e33f2b7
ci: fix path to postgresql database
2019-11-09 12:11:35 +01:00
67950fa63f
docker: fix build
2019-11-09 11:58:13 +01:00
2311d643c6
fix repo path
2019-11-09 11:40:56 +01:00
a97e20b781
ci: run postgresql as a service in a separate container
2019-11-09 11:29:37 +01:00
a81dcf4889
docker: build application image for Kubernetes and Docker Compose
2019-11-09 10:55:02 +01:00
f1bc020cf6
docker: rename Dockerfile.ubuntu to Dockerfile.dev
2019-11-09 10:17:32 +01:00
Sonja Happ
df910c56f7
admin password required to change user's password as admin, fixes #24
2019-11-05 12:05:39 +01:00
Sonja Happ
bae3bc9046
user: admin user can change password of any user without knowing old password
2019-10-24 12:44:26 +02:00
Sonja Happ
2852c4897f
user: adapt testing to new password update procedure
2019-10-24 12:26:25 +02:00
Sonja Happ
3fdba37541
user: old password required in request to update user password
2019-10-24 12:23:12 +02:00
Sonja Happ
82dbfa8cad
database: add test userC as Guest user to DB
2019-10-24 11:39:27 +02:00
Sonja Happ
505358daaa
user: fix get user endpoint for non admin users
2019-10-24 11:37:27 +02:00