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
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
1bd3d59ff8
increase code coverage of dashboard tests, do not allow updating scenario ID of dashboard
2019-09-10 12:24:03 +02:00
Sonja Happ
dfe57140a5
fix a typo in variable name
2019-09-10 12:23:02 +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
7b8fc67512
fix some bugs with userID caused by code restructuring in prev commits
2019-09-09 12:42:27 +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
f339c0d135
- revise testing of file endpoints
...
- revise documentation for swaggo
- clean up testdata
- delete serializers and responses files
- revise file endpoint implementations
2019-09-06 17:04:40 +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
Sonja Happ
8882f6069c
fix a typo
2019-09-06 16:00:26 +02:00
Sonja Happ
b880a911f3
fix typos in documentation
2019-09-06 16:00:05 +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
Sonja Happ
7c7488ee00
fix a typo in a variable name
2019-09-06 15:09:12 +02:00
Sonja Happ
30c13c64de
fix typos in endpoint documentation
2019-09-06 15:08:49 +02:00
Sonja Happ
dab027eef6
- revise testing of dashboard enpoints
...
- clean up testdata, serializers and responses
- add validators for dashboards
- revise documentation of dashboard endpoints for swaggo
- revise endpoint implementations
2019-09-06 14:07:36 +02:00
Sonja Happ
e0ae839e96
revise renaming of variables, no functional change
2019-09-06 14:06:18 +02:00
Sonja Happ
a8cccba667
remove commented old code
2019-09-06 14:05:40 +02:00
Sonja Happ
4914af6c47
- revise simulation model testing
...
- add validators for simulation model endpoints
- revise endpoint implementations and fix responses of simulation models
- clean up testdata, serializers and responses for simulation models
- change default values of output length and input length of signal mappings to 0
2019-09-05 16:17:00 +02:00
Sonja Happ
9c809e526a
check for empty Properties of update
2019-09-05 16:13:25 +02:00
Sonja Happ
5eb1487239
check for empty startParams of update
2019-09-05 16:13:07 +02:00
Sonja Happ
a8d59f17e7
add checkPermissions function as middleware of simulator
2019-09-05 12:38:01 +02:00
Sonja Happ
a55d039ee7
- revise testing of simulators
...
- add validators for simulators
- clean up testdata, serializers and responses
- update documentation for swaggo
2019-09-05 12:23:44 +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