Commit graph

32 commits

Author SHA1 Message Date
Sonja Happ
302b1cc470 move functions to duplicate scenarios into respective packages, resolve circular dependency problems (move permissions checking to database package), improve error handling of async DuplicateScenarioForUser function 2021-10-18 17:20:28 +02:00
Sonja Happ
6b2677ef63 fix syntax errors in tests 2021-04-29 13:28:01 +02:00
Sonja Happ
0a62c78132 transform "running" parameter of scenario into "IsLocked" parameter; only admins can change this parameter, all operations other than READ fail if scenario is locked - also for associated components #63 2021-03-25 15:40:51 +01:00
e4d200e6fd remove basePath and basePath settings 2021-02-08 11:56:11 +01:00
f4c662940e Authentication: remove unused argument 2021-02-08 11:55:36 +01:00
Sonja Happ
5d59fb7952 WIP: widget test independent of test data 2021-01-27 10:09:22 +01:00
Sonja Happ
616a1c74dc WIP: adding test data via JSON file #44 2021-01-26 15:44:51 +01:00
2625e16fbe config: fix typo GolbalConfig -> GlobalConfig 2021-01-25 10:57:25 +01:00
Sonja Happ
1de4d9c9c2 Code base refactoring: no functional changes, improving test coverage 2020-03-27 11:53:26 +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
9539c42e0b Add array of SignalIDs to widget data model 2020-02-19 10:26:34 +01:00
Sonja Happ
8b63707c48 Fix license infos 2020-02-17 14:20:44 +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
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
ddb4a9c8ca improve testing of widget package, remove some unnecessary code 2019-09-11 16:46:29 +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
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
676c2073ba delete commented code 2019-09-06 15:11:26 +02:00
Sonja Happ
e3651e34f0 - revise testing of widget enpoints
- add validators for widgets
- revise implementation of widget endpoints
- clean up testdata, serializers and response
- improve documentation for swaggo
2019-09-06 15:10:25 +02:00
smavros
c2429394ed Renames VisitorAuthenticate() to RegisterAuthenticate() 2019-08-15 14:52:19 +02:00
Sonja Happ
92eb455e5a revise widget testing 2019-07-25 13:25:46 +02:00
Sonja Happ
eb277fc92e use jsondiff in endpoint testing 2019-07-24 13:17:47 +02:00
Sonja Happ
c33438b395 renaming visualization to dashboard 2019-07-18 13:11:05 +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
7c9318de8f add testing for widget endpoints 2019-06-17 14:15:39 +02:00