Sonja Happ
e7679a79b7
fix more issues with circular dependencies and tests, fix bug in permissions
2021-10-19 11:04:39 +02:00
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
cabb3ed7f7
extend testing for updating scenarios in locked state
2021-03-25 15:46:59 +01: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
3c4624d17e
WIP: scenario test independent of test data
2021-01-27 10:41:00 +01:00
Sonja Happ
d1cb79ffba
WIP: scenario tests and IC tests independent of hard coded data #44
2021-01-26 17:20:35 +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
70a483546d
fix scenario test, createdAt and updatedAt are now contained in API responses
2020-11-20 09:38:55 +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
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
f65b11ce08
add test for getting all users of scenario with inactive user
2019-09-18 12:17:01 +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
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
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
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
7bc94c1131
fix documentation
2019-09-05 12:22:41 +02:00
Sonja Happ
16b3499126
get rid of Request struct as is caused more trouble than good
2019-09-05 09:11:56 +02:00
Sonja Happ
2772bde5ee
- Modify scenario testing
...
- Add scenario validators
- Clean up responses and serializes with respect to scenario
- Fix error handling and responses of scenario endpoints
2019-09-04 16:31:20 +02:00
smavros
c2429394ed
Renames VisitorAuthenticate() to RegisterAuthenticate()
2019-08-15 14:52:19 +02:00
smavros
ac54500ed7
Removes ResponseMsgUsers from scenario test
2019-08-13 17:48:11 +02:00
smavros
bbe133655c
Fixes scenario_test that is using NewTestEndpoint()
2019-08-11 22:48:21 +02:00
smavros
a1b8d93263
Scenario test uses User serializer instead of UserResponse WIP
2019-07-31 11:34:40 +02:00
smavros
4c0d74a4a8
Adds new function for testing endpoints WIP:
...
- NewTestEndpoint() should replace TestEndpoint() since it is
returning an error in case that the code or the response is not
matching the expected one. The assertion __must__ be executed in the
body of the actual test (of the corresponding package) so the
printed error message can include the right number of line and the
file where the assertion failed.
- The function is used now only in package scenario tests.
2019-07-31 11:30:23 +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
b378e8b7c1
renaming simulation to scenario
2019-07-18 14:35:20 +02:00