Commit graph

232 commits

Author SHA1 Message Date
Sonja Happ
70b2ded851 modularize main function, use DBpool instead of local DB in database package and all testing functions 2020-03-19 10:50:18 +01:00
Sonja Happ
d2c94d1886 - models: remove imageHeight and imageWidth from File model (is customProperty of image widget)
- test data: add test data in test mode via API instead of GORM
- fix typos and update API documentation
2020-03-13 17:16:12 +01:00
Sonja Happ
ef1dede70c renaming: simulation model = component configuration 2020-03-06 15:14:29 +01:00
Sonja Happ
6dbf54d47c fix IC testing 2020-03-04 16:53:57 +01:00
Sonja Happ
bff9efa063 WIP: start renaming of simulaton model to component configuration in IC endpoints 2020-03-04 16:41:18 +01:00
Sonja Happ
11a0c53b85 rename simulator to infrastructure component 2020-03-04 16:34:24 +01:00
Sonja Happ
9539c42e0b Add array of SignalIDs to widget data model 2020-02-19 10:26:34 +01:00
Sonja Happ
fe5ceb8d61 Add file ID of selected simulation model file to simulationModel data model 2020-02-18 13:36:05 +01:00
Sonja Happ
8b63707c48 Fix license infos 2020-02-17 14:20:44 +01:00
Sonja Happ
13f2ae7de3 simulationModel: rename response field from model(s) to simulationModel(s) 2019-11-26 14:22:26 +01:00
Sonja Happ
92f22035c6 add GPL 3.0 license statement in all (not auto-generated) code files 2019-11-20 11:08:33 +01:00
Sonja Happ
9f56b66213 replace some fmt. calls with log. calls #17 2019-11-20 10:12:20 +01:00
Sonja Happ
9deed119fd fixes for healthz and metrics endpoints
- no authentication
- swagger documentation update
2019-11-14 12:34:20 +01:00
Sonja Happ
c211501163 Merge branch 'config-logging'
# Conflicts:
#	go.sum
2019-11-14 12:00:06 +01:00
Sonja Happ
6d4c84ec4e - InitDB returns error
- Check more errors in InitDB
- fix for healthz endpoint (error checking was wrong)
- remove dbinit parameter from config due to redundancy with mode parameter
2019-11-14 11:44:26 +01:00
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
d546f7bc91 fix tests 2019-11-13 21:22:17 +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
72be3b77bf added metrics route 2019-11-13 18:09:14 +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
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
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
2311d643c6 fix repo path 2019-11-09 11:40:56 +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
505358daaa user: fix get user endpoint for non admin users 2019-10-24 11:37:27 +02:00
Sonja Happ
f65b11ce08 add test for getting all users of scenario with inactive user 2019-09-18 12:17:01 +02:00
Sonja Happ
56eabdc194 change active flag in update user to string instead of bool 2019-09-17 17:19:21 +02:00
Sonja Happ
14972262c0 add "Active" bool property to user model, required modifications in user and scenario packages 2019-09-17 17:00:07 +02:00
Sonja Happ
ebf390e9cc update version of swag tool, use swag again in CI, works on #22 2019-09-16 09:17:31 +02:00
Sonja Happ
b570956baf improve user package
- testing more error return codes
- remove some errors from code
- remove unnecessary code
- require a username of at least 3 letters/digits
2019-09-12 10:18:42 +02:00
Sonja Happ
ed1d7677f2 add testing of authentication endpoint, revise authentication endpoint 2019-09-11 17:09:36 +02:00
Sonja Happ
ddb4a9c8ca improve testing of widget package, remove some unnecessary code 2019-09-11 16:46:29 +02:00
Sonja Happ
c0b8a6be80 revision of simulator package
- move amqp endpoint implementation to amqp package
- improve code coverage of simulator testing
- remove some unnecessary code from package implementation
2019-09-11 16:16:00 +02:00
Sonja Happ
75c33c71a1 improve code coverage of simulation model testing
- fix a bug in POST endpoint
- remove unnecessary code from endpoint, validator, and method implementations
2019-09-11 15:44:14 +02:00
Sonja Happ
04cbbb7825 improve return statements 2019-09-11 15:32:16 +02:00
Sonja Happ
e81769e76b improve code coverage of signal testing, remove some unnecessary code in package implementation 2019-09-11 14:41:13 +02:00
Sonja Happ
def9787cba improve code coverage of scenario testing, remove some unnecessary code in package implementation 2019-09-11 13:51:26 +02:00
Sonja Happ
b17de1c576 fix another bug in scenario testing 2019-09-11 12:46:43 +02:00
Sonja Happ
8b8f674266 improve dashboard testing: try to update a dashboard as guest user 2019-09-11 12:40:12 +02:00
Sonja Happ
f42c962a97 fix a bug in scenario testing: try to remove user that does not exist 2019-09-11 12:38:41 +02:00
Sonja Happ
387c922059 Revision of (file) testing
- create a guest user and modify function that adds users to the DB for testing
- improve code coverage of file endpoint tests and remove some obsolete code from file package
- add more error info if role validation fails in all endpoints
- change response of GET files to only return the file data and nothing else
- fix some bugs in file endpoints that became visible by the tests
2019-09-11 12:30:01 +02:00