Héctor Hurtado
90449773e4
Added legal header to all features and step definitions files
2019-10-23 13:45:54 +02:00
Héctor Hurtado
723e4787b3
Added legal header to all Go source files
2019-10-23 13:35:01 +02:00
César Gallego Rodríguez
aa6d59fa56
Fix for - and file adding a route. Move null routes to their own issue.
...
Closes : #46
2019-10-23 13:20:31 +02:00
pancho horrillo
034a5ab677
Fix typo in comment
...
Co-authored-by: Roberto Abdelkader Martínez Pérez <robertomartinezp@gmail.com >
2019-10-22 16:29:54 +02:00
Roberto Abdelkader Martínez Pérez
be6a2efcc4
Wait less time between retries
...
Co-authored-by: Hector Hurtado <hector.hurtado@bbva.com >
2019-10-22 13:23:49 +02:00
Roberto Abdelkader Martínez Pérez
d465d10b49
Add missing pattern in data server resource endpoints
...
Co-authored-by: Hector Hurtado <hector.hurtado@bbva.com >
2019-10-22 13:16:06 +02:00
Roberto Abdelkader Martínez Pérez
fe894628d7
Change Data API bind address for spec tests
2019-10-22 12:40:00 +02:00
Roberto Abdelkader Martínez Pérez
0762728ef5
Remove unused dependency
2019-10-22 12:24:10 +02:00
Roberto Abdelkader Martínez Pérez
28a0be1d87
Allow kapow server to run without .pow file and non-interactive
...
Co-authored-by: pancho horrillo <pedrofelipe.horrillo@bbva.com >
2019-10-22 11:56:18 +02:00
Roberto Abdelkader Martínez Pérez
fa394ce997
Call server.StartServer() from cmd
...
Co-authored-by: Hector Hurtado <hector.hurtado@bbva.com >
2019-10-22 10:23:12 +02:00
Roberto Abdelkader Martínez Pérez
44a9471a57
Implement server.StartServer() to run all three servers
...
Co-authored-by: Hector Hurtado <hector.hurtado@bbva.com >
2019-10-22 10:22:47 +02:00
Roberto Abdelkader Martínez Pérez
8994b8da8c
Implement Run function for data server.
...
Co-authored-by: Hector Hurtado <hector.hurtado@bbva.com >
2019-10-22 10:22:10 +02:00
Roberto Abdelkader Martínez Pérez
6a05b31320
Implement configRouter
...
Co-authored-by: Hector Hurtado <hector.hurtado@bbva.com >
2019-10-22 09:48:58 +02:00
Roberto Abdelkader Martínez Pérez
5eae018ee6
Data server decorators implementation.
...
Co-authored-by: Hector Hurtado <hector.hurtado@bbva.com >
2019-10-21 17:54:47 +02:00
Roberto Abdelkader Martínez Pérez
63cd125327
Implement setResponseBody
...
Co-authored-by: Hector Hurtado <hector.hurtado@bbva.com >
2019-10-21 10:25:34 +02:00
Roberto Abdelkader Martínez Pérez
0f8d0266b9
Implement setResponseCookies.
...
Co-authored-by: Hector Hurtado <hector.hurtado@bbva.com >
2019-10-21 10:01:34 +02:00
Roberto Abdelkader Martínez Pérez
ffc737d1b7
Pending test for header validation.
...
Co-authored-by: Hector Hurtado <hector.hurtado@bbva.com >
2019-10-21 09:26:56 +02:00
pancho horrillo
5bbc341e10
Update internal/cmd/server.go
...
- Honour --bind, --control-bind, --data-bind
- Drop unused params (--interactive, --url, --control-url, --data-url)
- Minimize environment for running the powfile shell script
- Drop debug code
TODO: actual key and cert handling for https
2019-10-20 18:39:50 +02:00
pancho horrillo
341768ace8
internal/cmd/server.go: sort imports
2019-10-20 18:38:29 +02:00
pancho horrillo
bb5843ec35
Fix lowercase ID in human-readable messages
2019-10-20 18:32:46 +02:00
pancho horrillo
d31165c82f
Drop trailing slash in URL to query routes
...
This one slipped through the tests, I think because the automagic handling of
trailing slashes by the net/http muxer.
With it, the command:
$ kapow route list
fails with a 'Not Found'.
2019-10-20 18:20:46 +02:00
Roberto Abdelkader Martínez Pérez
5e2a15b34e
Relax lint error about SA1008 because is actually needed in tests
2019-10-18 23:57:12 +02:00
Roberto Abdelkader Martínez Pérez
304276db47
Fix dummy return. Closes #34
2019-10-18 23:55:25 +02:00
Roberto Abdelkader Martínez Pérez
ecfa3dfa74
WIP implementation of setResponseHeaders
...
Co-authored-by: Hector Hurtado <hector.hurtado@bbva.com >
2019-10-18 14:11:56 +02:00
Roberto Abdelkader Martínez Pérez
03e138396d
Fix mispelled handler name.
...
Co-authored-by: Hector Hurtado <hector.hurtado@bbva.com >
2019-10-18 13:15:08 +02:00
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