Commit Graph

488 Commits

Author SHA1 Message Date
Roberto Abdelkader Martínez Pérez
bf791a36c6 Implement setResponseStatus.
Co-authored-by: Hector Hurtado <hector.hurtado@bbva.com>
2019-10-18 13:07:57 +02:00
Roberto Abdelkader Martínez Pérez
e161e14fd6 Implement getRequestFiles.
Co-authored-by: Hector Hurtado <hector.hurtado@bbva.com>
2019-10-18 10:06:26 +02:00
Roberto Abdelkader Martínez Pérez
d2427b722c Implement getRequestFileName
Co-authored-by: Hector Hurtado <hector.hurtado@bbva.com>
2019-10-18 09:22:58 +02:00
Héctor Hurtado
06c1c49d8e First test for files feature 2019-10-18 08:35:33 +02:00
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
pancho horrillo
b14ea93a64 Minor fixes on error handling
Co-authored-by: César Gallego <gallego.cesar@gmail.com>
2019-10-17 17:11:19 +02:00
pancho horrillo
ee00a7bccc Fix param names to use the right URL
Co-authored-by: César Gallego <gallego.cesar@gmail.com>
2019-10-17 17:04:59 +02:00
pancho horrillo
4638bec5fe Gather binding vars for each server and run them
Co-authored-by: César Gallego <gallego.cesar@gmail.com>
2019-10-17 17:03:45 +02:00
pancho horrillo
81cbea4ff8 Fix method used in client.AddRoute()
Co-authored-by: César Gallego <gallego.cesar@gmail.com>
2019-10-17 16:58:38 +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
298722ef18 Merge branch 'master' of personal.github.com:BBVA/kapow 2019-10-09 16:26:29 +02:00
César Gallego Rodríguez
2c14e05229 fix test comparsion 2019-10-09 16:26:22 +02:00
pancho horrillo
fa8cc271dc Build jaillover via Makefile
Co-authored-by: Roberto Abdelkader Martínez Pérez <robertomartinezp@gmail.com>
2019-10-09 16:25:04 +02:00
César Gallego Rodríguez
b7a7f6a006 some list implemented 2019-10-09 16:19:52 +02:00
pancho horrillo
273058c3ba Add testutils/jaillover to assist testing process spawning
Co-authored-by: Roberto Abdelkader Martínez Pérez <robertomartinezp@gmail.com>
2019-10-09 16:17:21 +02:00
Héctor Hurtado
2e2fcc4edd Skip WIP in listRoutes tests 2019-10-09 15:50:14 +02:00