Commit graph

10 commits

Author SHA1 Message Date
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