Roberto Abdelkader Martínez Pérez
efaa0ba375
Implement getRequestForm.
...
Co-authored-by: Hector Hurtado <hector.hurtado@bbva.com >
2019-10-17 17:16:04 +02:00
Roberto Abdelkader Martínez Pérez
f5d7521a45
Implement getRequestCookies
...
Co-authored-by: Hector Hurtado <hector.hurtado@bbva.com >
2019-10-17 15:35:29 +02:00
Roberto Abdelkader Martínez Pérez
cfac3fafaa
Make the tests great again.
2019-10-17 15:03:35 +02:00
Roberto Abdelkader Martínez Pérez
635d2c31a7
Implemented getRequestHeaders
...
Co-authored-by: Hector Hurtado <hector.hurtado@bbva.com >
2019-10-17 14:59:34 +02:00
Héctor Hurtado
92e1658844
Added tests for getHeaders feature Co-authored-by: Roberto Abdelkader Martínez Pérez <robertomartinezp@gmail.com>
2019-10-17 13:37:15 +02:00
Roberto Abdelkader Martínez Pérez
0a171a8232
Some data server handlers
...
Co-authored-by: Hector Hurtado <hector.hurtado@bbva.com >
2019-10-17 12:49:05 +02:00
Roberto Abdelkader Martínez Pérez
2e4a3a0bf7
Remove old implentation
...
Co-authored-by: Hector Hurtado <hector.hurtado@bbva.com >
2019-10-17 10:02:53 +02:00
Héctor Hurtado
a3a9158cfe
Configure funcRemove in control server
2019-10-14 16:03:41 +02:00
pancho horrillo
b4f2e9ffdd
Refactor tests
...
* Get rid of spurious model.Route{} var, by adding content
directly into model.Handler{} literal.
* Adjust spacing to adhere to the prepare-call-test test structure.
2019-10-13 08:17:16 +02:00
pancho horrillo
c62a0d6a9a
Sort imports intro three blocks (stdlib, non-stdlib, current prj)
2019-10-13 08:09:15 +02:00
Roberto Abdelkader Martínez Pérez
ed03e1a89f
Added TODO about refactor
2019-10-11 11:05:40 +02:00
Roberto Abdelkader Martínez Pérez
c2ab6a0de1
Implemented internal/server/user.Run(). Will be tested with E2E.
2019-10-11 08:43:40 +02:00
Roberto Abdelkader Martínez Pérez
bbca5873a0
Update mux on delete route
2019-10-11 07:56:10 +02:00
Héctor Hurtado
93dfe9ef7b
Finished last test case; over, embarrassing but over
2019-10-10 22:33:17 +02:00
pancho horrillo
df5d38e94f
swappableMux is now public and Append() now updates Server.Handler
...
Co-authored-by: Roberto Abdelkader Martínez Pérez <robertomartinezp@gmail.com >
2019-10-10 20:22:09 +02:00
César Gallego Rodríguez
0c408497a3
Merge branch 'master' of personal.github.com:BBVA/kapow
2019-10-10 19:51:38 +02:00
César Gallego Rodríguez
5f88d0493c
cleanup server test
2019-10-10 19:51:32 +02:00
pancho horrillo
b4dd6e9805
Add New() func & Update() method to internal/server/user/mux/swappableMux
...
Co-authored-by: Roberto Abdelkader Martínez Pérez <robertomartinezp@gmail.com >
2019-10-10 19:26:17 +02:00
pancho horrillo
463382bfb2
Add internal/server/user/mux/handlerbuilder{,_test}.go
...
Co-authored-by: Roberto Abdelkader Martínez Pérez <robertomartinezp@gmail.com >
2019-10-10 18:16:15 +02:00
pancho horrillo
2129c4a1f6
internal/server/model.Handler.Route is no longer a pointer
...
Also Spawn() now checks if entrypoint is not set
Co-authored-by: Roberto Abdelkader Martínez Pérez <robertomartinezp@gmail.com >
2019-10-10 18:16:15 +02:00
César Gallego Rodríguez
25d34bda0a
set valid header value WIP
2019-10-10 17:34:28 +02:00
Héctor Hurtado
e0371ef881
Test bad request for cookies solved && git push
2019-10-10 17:14:09 +02:00
César Gallego Rodríguez
738f371203
invalid cookie url
2019-10-10 17:11:40 +02:00
Héctor Hurtado
9ed75d14a9
Test bad request solved
2019-10-10 17:04:59 +02:00
César Gallego Rodríguez
bd2bed53d1
invalid URL
2019-10-10 16:59:29 +02:00
Héctor Hurtado
b9d65783b3
Added data server tests for checking valid handler
2019-10-10 16:41:02 +02:00
Héctor Hurtado
7ab353072b
Need to review tests in data api
2019-10-10 13:33:33 +02:00
pancho horrillo
b76fb1f77e
Add method ListIDs() to internal/data/Handlers
...
Co-authored-by: Roberto Abdelkader Martínez Pérez <robertomartinezp@gmail.com >
2019-10-10 13:11:05 +02:00
pancho horrillo
a39e0f6605
Spawner ready
...
Co-authored-by: Roberto Abdelkader Martínez Pérez <robertomartinezp@gmail.com >
2019-10-10 11:49:58 +02:00
Héctor Hurtado
958175c59a
Test TestConfigRouterHasRoutesWellConfigured resolved
2019-10-10 11:49:15 +02:00
Héctor Hurtado
6d9b9522e9
First test for data server
2019-10-10 10:43:23 +02:00
César Gallego Rodríguez
b82b0d2ef1
validation of routes
2019-10-10 09:44:41 +02:00
pancho horrillo
d0764f07a4
First cut to spawner
...
Co-authored-by: Roberto Abdelkader Martínez Pérez <robertomartinezp@gmail.com >
2019-10-09 18:28:33 +02:00
Héctor Hurtado
007923de8a
Added test for checking router configuration in control api
2019-10-09 17:27:17 +02:00
Héctor Hurtado
f85660c97b
TestAddRouteReturns422ErrorWhenMandatoryFieldsMissing refactor
2019-10-09 16:30:52 +02:00
César Gallego Rodríguez
ecc54a51f6
fix style
2019-10-09 16:27:26 +02:00
César Gallego Rodríguez
2c14e05229
fix test comparsion
2019-10-09 16:26:22 +02:00
César Gallego Rodríguez
b7a7f6a006
some list implemented
2019-10-09 16:19:52 +02:00
Héctor Hurtado
2e2fcc4edd
Skip WIP in listRoutes tests
2019-10-09 15:50:14 +02:00
Héctor Hurtado
544b01a1ff
Merge branch 'master' of ssh://github.com/BBVA/kapow
2019-10-09 15:46:57 +02:00
Héctor Hurtado
876e4da43a
Fixed tests for listRoutes and removeRoute
2019-10-09 15:46:49 +02:00
pancho horrillo
49252a78a6
Fix misuse of gorilla/mux.Router{} use mux.NewRouter() instead
...
Co-authored-by: Roberto Abdelkader Martínez Pérez <robertomartinezp@gmail.com >
2019-10-09 15:22:50 +02:00
César Gallego Rodríguez
6e387eab37
new WIP Tests about mandatory fields
2019-10-09 14:26:44 +02:00
César Gallego Rodríguez
12579c7ac3
fixme about routes added
2019-10-09 14:19:58 +02:00
César Gallego Rodríguez
046d8ffe7d
linter fixes
2019-10-09 14:18:54 +02:00
César Gallego Rodríguez
f60c8a2423
control delete route no content on sucess
2019-10-09 14:10:18 +02:00
César Gallego Rodríguez
7c95726a8c
442 when missing mandatory fields (WIP)
2019-10-09 13:51:34 +02:00
pancho horrillo
401644b65e
Finish gorillize()
...
Co-authored-by: Roberto Abdelkader Martínez Pérez <robertomartinezp@gmail.com >
2019-10-09 13:10:04 +02:00
Héctor Hurtado
7d1f0bf97c
Added content type check in responses for control api tests
2019-10-09 13:04:11 +02:00
Héctor Hurtado
9b5e39ee9c
Added test fot removeRoute and listRoutes in control api
2019-10-09 12:02:43 +02:00