Commit graph

40 commits

Author SHA1 Message Date
2625e16fbe config: fix typo GolbalConfig -> GlobalConfig 2021-01-25 10:57:25 +01:00
Sonja Happ
77d02ec7a7 Delete signals, dashboards, widgets and component configs + associated elements from DB upon DELETE (no safe-delete anymore) 2020-11-20 13:49:32 +01:00
Sonja Happ
4922d8c4ce Add field ManagedExternally to IC data model 2020-10-20 16:20:04 +02:00
Sonja Happ
adabfc8e9c Transform Properties into StartParameterScheme 2020-10-20 15:27:36 +02:00
Sonja Happ
1f0455d901 Parameter cleanup in IC model 2020-10-20 12:57:38 +02:00
Sonja Happ
c4d7fc9488 add APIkey-based authentication to swagger documentation 2020-09-25 16:16:46 +02:00
Sonja Happ
93bdd15e68 add scalingFactor parameter to Signal data model #33 2020-06-26 10:17:21 +02:00
Sonja Happ
1de4d9c9c2 Code base refactoring: no functional changes, improving test coverage 2020-03-27 11:53:26 +01:00
Sonja Happ
4a58143a6e modify model of infrastructure component; add name, type, and category as top level parameters; fix testing of packages accordingly 2020-03-20 12:21:02 +01:00
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
ef1dede70c renaming: simulation model = component configuration 2020-03-06 15:14:29 +01:00
Sonja Happ
11a0c53b85 rename simulator to infrastructure component 2020-03-04 16:34:24 +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
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
d546f7bc91 fix tests 2019-11-13 21:22:17 +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
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
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
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
Sonja Happ
d160103fcf create a function in helper package to extract the ID of an element from a path or query and use this function in middleware 2019-09-10 17:17:53 +02:00
Sonja Happ
f3a7ed0e61 **Major revision of repository structure**
- rename common package to database
- move all code not related to database to new helper package
- add more test in database package to improve code coverage
- add a new (own) package for AMQP client
2019-09-10 16:28:57 +02:00
Sonja Happ
2ffda7cad8 - revise naming of some common functions
- improve returning of error codes by using common functions
- use a separate file for authentication endpoint to improve clarity of code
2019-09-09 15:30:17 +02:00
Sonja Happ
ac9e564bc8 - deleting old obsolete test functions
- move all data and functions solely used for testing to the file test_utilities
- get rid of utilities file
2019-09-09 12:11:55 +02:00
Sonja Happ
7544c863de - revise testing of signal endpoints
- revise documentation for swaggo
- clean up testdata, serializers and responses
- add validators for signal endpoints
- revise signal endpoint implementations
2019-09-06 16:01:59 +02:00
smavros
c2429394ed Renames VisitorAuthenticate() to RegisterAuthenticate() 2019-08-15 14:52:19 +02:00
Sonja Happ
4cf4049b40 fix bugs in signal methods 2019-07-25 12:03:00 +02:00
Sonja Happ
d79fb53cb2 - create all test data in one file
- revise testing functions (WORK IN PROGRESS)
2019-07-25 11:22:39 +02:00
Sonja Happ
eb277fc92e use jsondiff in endpoint testing 2019-07-24 13:17:47 +02:00
Sonja Happ
f0be5cce00 file renaming 2019-07-18 13:25:41 +02:00
Sonja Happ
86e380c85e - implement simulator endpoints
- add field for simulation models to simulator models and adapt methods for adding/updating a model
- minor renaming of test functions
2019-06-18 13:55:10 +02:00
Sonja Happ
e820d25aae fix a bug in API doc of getSignals endpoint 2019-06-17 16:09:45 +02:00
Sonja Happ
71b33e5a2d Add testing for signal package and and reove move signal testing from simulationmodel package 2019-06-17 15:59:06 +02:00
Sonja Happ
4793077a90 Add signal package and move signal endpoints from simulationmodel package to this one 2019-06-17 15:30:26 +02:00
Sonja Happ
a78bf892f5 Renaming:
- SimulationModel to Model
- Signal to Sample
2019-05-21 09:14:44 +02:00
Sonja Happ
2e7475a26b - add first draft of code for other routes (not complete!)
- some new endpoints
- some new DB queries
- some new serializers
2019-05-09 17:02:24 +02:00
Sonja Happ
48a28ff932 add file structure for other routes (also new ones) 2019-05-09 11:59:44 +02:00