Commit graph

24 commits

Author SHA1 Message Date
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
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
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
1f4d4c1cf7 Removes commented out types of ResponseMsgUser(s) 2019-08-13 17:51:02 +02:00
smavros
b6a269bdeb Deprecates ResponseMsgUses. Introduces common/requests.go 2019-08-13 17:41:04 +02:00
smavros
74b27f7525 Remove redundant structs and methods:
UserSerializer, UsersSerializer, AuthResponse, UserResponse.
2019-08-13 16:40:54 +02:00
smavros
50b1902bf3 Deprecates common.UserSerializer() from user endpoints 2019-08-13 15:49:33 +02:00
smavros
cf69e59a5f Modifies testdata setup:
- Decorates User model with json tags for marshaling.
    - Introduces Model type same as gorm.Model with additional json tags
    for marshaling.
    - Modifies ResponseMsgUsers type.
    - Modifies the testdata for the users by including initializer for
    the Mode.ID field.
    - The scenario test fails for those changes
2019-07-30 20:31:59 +02:00
Sonja Happ
65f7a9b493 revise file testing 2019-07-25 12:44:52 +02:00
Sonja Happ
a06d90d085 revise dashboard testing 2019-07-25 11:38:28 +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
1f5e64b9ea Fixex for simulator POST/ PUT endpoints and simulator testing, 2019-07-24 16:39:59 +02:00
Sonja Happ
54b4a5d7b1 change datatypes of simulator properties and raw properties to json, small ajustments for frontend compatibility 2019-07-23 14:53:52 +02:00
Sonja Happ
b378e8b7c1 renaming simulation to scenario 2019-07-18 14:35:20 +02:00
Sonja Happ
c33438b395 renaming visualization to dashboard 2019-07-18 13:11:05 +02:00
Sonja Happ
9bc9dc6b5d user: add check of for admin role if role of user shall be modified, some small corrections of responses, input forms, and parameter spelling 2019-07-04 11:37:00 +02:00
Sonja Happ
fc91ebc64c working on file endpoints; testing to be completed, other tests to be checked 2019-07-03 16:53:04 +02:00
Sonja Happ
ce4d6525eb - fix in DB testing
- add simulator testing
2019-06-25 17:11:03 +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
7c9318de8f add testing for widget endpoints 2019-06-17 14:15:39 +02:00
Sonja Happ
687e3863e4 add testing for visualization endpoints 2019-06-17 13:43:30 +02:00
Sonja Happ
5ca6281a22 - add testing for simulationmodel endpoints
- add Signal serializer
- Use Signals DB table again
- remove / in some endpoint definitions
2019-06-06 16:36:12 +02:00
Sonja Happ
babe1cb308 refactoring Model to SimulationModel 2019-06-05 13:12:23 +02:00
Sonja Happ
144c97ce49 Refactoring code base to new structure, removing circular dependencies, creating response types 2019-05-23 16:50:05 +02:00