Mario Izquierdo
|
851adf93bc
|
fix error test
|
2018-02-21 17:23:57 -08:00 |
Mario Izquierdo
|
f01a3b569c
|
Add before hooks to the service. Refactor some more code. Add simple test for one hook
|
2018-02-21 16:13:19 -08:00 |
Mario Izquierdo
|
4493e772ce
|
Refactor and simplify error implementation. Add Error constructor methods like Twirp.internal_error(msg) for convenience
|
2018-02-21 12:05:00 -08:00 |
Mario Izquierdo
|
9887ede0a8
|
Differentiate between returning a Twirp::Error and raising a Twirp::Exception
|
2018-02-20 23:41:21 -08:00 |
Mario Izquierdo
|
ff72884a74
|
Handle errors: allow to return Twirp::Error from handlers, and also raise Twitp::Error exceptions
|
2018-02-20 23:33:12 -08:00 |
Mario Izquierdo
|
5561ff4564
|
Add tests for different types of return values for handlers: proto message, hash attributes or nil. Refactor code.
|
2018-02-20 22:45:33 -08:00 |
Mario Izquierdo
|
ea0c0da887
|
Properly parse requests. Respond with good bad_route errors for invalid paths, http methods, rpc methods or content-type. Add tests.
|
2018-02-20 22:02:03 -08:00 |
Mario Izquierdo
|
f9f6e56bc6
|
Test successful proto request. Refactor tests a little bit, correct code that was failing
|
2018-02-20 17:45:04 -08:00 |
Mario Izquierdo
|
fd99bc1b00
|
Change service_test example to use Haberdasher instead of ServiceFoo
|
2018-02-16 16:43:58 -08:00 |
Mario Izquierdo
|
80abc62587
|
Change the Service definition DSL to use package and service instead of a PATH_PREFIX. Add tests
|
2018-02-15 20:58:09 -08:00 |
Mario Izquierdo
|
52bf4ce421
|
add a basic tests for service initialization and basic successful request
|
2018-02-13 22:35:37 -08:00 |
Mario Izquierdo
|
121eadf571
|
Add basic test for service
|
2018-02-12 01:44:51 -08:00 |
Mario Izquierdo
|
d6a1e24cb8
|
Change test syntax to assertions. It will be easier to manage by go-develoeprs
|
2018-02-05 00:51:08 -08:00 |