Commit Graph

  • a39e0f6605 Spawner ready pancho horrillo 2019-10-10 11:49:03 +02:00
  • 958175c59a Test TestConfigRouterHasRoutesWellConfigured resolved Héctor Hurtado 2019-10-10 11:49:15 +02:00
  • 6d9b9522e9 First test for data server Héctor Hurtado 2019-10-10 10:42:57 +02:00
  • b82b0d2ef1 validation of routes César Gallego Rodríguez 2019-10-10 09:44:41 +02:00
  • d0764f07a4 First cut to spawner pancho horrillo 2019-10-09 18:27:11 +02:00
  • 007923de8a Added test for checking router configuration in control api Héctor Hurtado 2019-10-09 17:27:17 +02:00
  • f85660c97b TestAddRouteReturns422ErrorWhenMandatoryFieldsMissing refactor Héctor Hurtado 2019-10-09 16:29:29 +02:00
  • ecc54a51f6 fix style César Gallego Rodríguez 2019-10-09 16:27:26 +02:00
  • 298722ef18 Merge branch 'master' of personal.github.com:BBVA/kapow César Gallego Rodríguez 2019-10-09 16:26:29 +02:00
  • 2c14e05229 fix test comparsion César Gallego Rodríguez 2019-10-09 16:26:22 +02:00
  • fa8cc271dc Build jaillover via Makefile pancho horrillo 2019-10-09 16:25:04 +02:00
  • b7a7f6a006 some list implemented César Gallego Rodríguez 2019-10-09 16:19:52 +02:00
  • 273058c3ba Add testutils/jaillover to assist testing process spawning pancho horrillo 2019-10-09 16:15:52 +02:00
  • 2e2fcc4edd Skip WIP in listRoutes tests Héctor Hurtado 2019-10-09 15:50:14 +02:00
  • 544b01a1ff Merge branch 'master' of ssh://github.com/BBVA/kapow Héctor Hurtado 2019-10-09 15:46:57 +02:00
  • 876e4da43a Fixed tests for listRoutes and removeRoute Héctor Hurtado 2019-10-09 15:46:49 +02:00
  • 49252a78a6 Fix misuse of gorilla/mux.Router{} use mux.NewRouter() instead pancho horrillo 2019-10-09 15:22:50 +02:00
  • 6e387eab37 new WIP Tests about mandatory fields César Gallego Rodríguez 2019-10-09 14:26:44 +02:00
  • 12579c7ac3 fixme about routes added César Gallego Rodríguez 2019-10-09 14:19:58 +02:00
  • 046d8ffe7d linter fixes César Gallego Rodríguez 2019-10-09 14:18:54 +02:00
  • f60c8a2423 control delete route no content on sucess César Gallego Rodríguez 2019-10-09 14:10:18 +02:00
  • f14d4ff512 add .vscode directory to ignore file César Gallego Rodríguez 2019-10-09 13:52:10 +02:00
  • 7c95726a8c 442 when missing mandatory fields (WIP) César Gallego Rodríguez 2019-10-09 13:51:34 +02:00
  • 401644b65e Finish gorillize() pancho horrillo 2019-10-09 13:06:08 +02:00
  • 7d1f0bf97c Added content type check in responses for control api tests Héctor Hurtado 2019-10-09 13:04:11 +02:00
  • 9b5e39ee9c Added test fot removeRoute and listRoutes in control api Héctor Hurtado 2019-10-09 11:58:46 +02:00
  • b794af01e0 Coorected control api test function names Héctor Hurtado 2019-10-09 12:00:47 +02:00
  • 8729e1e492 Implement Route.Delete() Roberto Abdelkader Martínez Pérez 2019-10-09 11:44:45 +02:00
  • 0249dc722b Merge branch 'master' of personal.github.com:BBVA/kapow César Gallego Rodríguez 2019-10-09 10:27:46 +02:00
  • 4ca5ef0d54 When marformed route then bad request implementation César Gallego Rodríguez 2019-10-09 10:27:38 +02:00
  • 95aea4bce1 Replaced calls to Snapshot by List when accessing Routes state package Héctor Hurtado 2019-10-09 10:22:43 +02:00
  • 6810cb99ee Add List method to Routes singletone returning the list of numbered routes Roberto Abdelkader Martínez Pérez 2019-10-09 09:54:15 +02:00
  • 4164f3e3de Added control api validation test for addRoute Héctor Hurtado 2019-10-09 09:39:36 +02:00
  • 31f6015110 Increase legibility of gorillize function Roberto Abdelkader Martínez Pérez 2019-10-09 08:39:12 +02:00
  • f656f9f3b0 Change function gorillize signature slightly Roberto Abdelkader Martínez Pérez 2019-10-08 21:09:48 +02:00
  • 2cd96d5a4b Add the controversial gorillize() pancho horrillo 2019-10-08 19:39:44 +02:00
  • 037347dbe3 Augment safeRouteList.Append() to return a model.Route with index pancho horrillo 2019-10-08 17:53:15 +02:00
  • e0dd6f5dd5 Refactor internal/server/user package structure pancho horrillo 2019-10-08 17:22:09 +02:00
  • 6df4369358 Added test for checking Index Héctor Hurtado 2019-10-08 16:18:51 +02:00
  • 4a258e74ce Added Index fient to the Route model Héctor Hurtado 2019-10-08 15:39:22 +02:00
  • 2eb32610a0 Exclude test from race condition verification pancho horrillo 2019-10-08 15:34:42 +02:00
  • 9ad61249b3 Fix linter warning pancho horrillo 2019-10-08 15:33:32 +02:00
  • a4b1a5504b Merge branch 'master' of ssh://github.com/BBVA/kapow Héctor Hurtado 2019-10-08 15:15:02 +02:00
  • 198584f517 First green in control server Héctor Hurtado 2019-10-08 15:14:50 +02:00
  • 3b405bd9f6 Add ServeHTTP() method to swappableMux struct pancho horrillo 2019-10-08 15:06:08 +02:00
  • 3fa2357f71 First failing test in control package Héctor Hurtado 2019-10-08 12:35:05 +02:00
  • 8fe46d1c6b Merge branch 'master' of ssh://github.com/BBVA/kapow Héctor Hurtado 2019-10-08 12:03:13 +02:00
  • fe7d962581 Reworking in module definition Héctor Hurtado 2019-10-08 12:02:46 +02:00
  • 0eb802ea78 Change to latest linter version Roberto Abdelkader Martínez Pérez 2019-10-08 09:47:36 +02:00
  • 73e05afee3 Merge branch 'master' of ssh://github.com/BBVA/kapow Héctor Hurtado 2019-10-08 09:42:03 +02:00
  • 98faa6f155 Merge branch 'feature_server_launcher' Héctor Hurtado 2019-10-08 09:41:19 +02:00
  • bb0a283813 Prepare to merge master Héctor Hurtado 2019-10-08 09:40:51 +02:00
  • f346392eea Add linter to makefile and to circleci Roberto Abdelkader Martínez Pérez 2019-10-08 09:26:18 +02:00
  • 02f0410685 Merge branch 'feature_control_server' Héctor Hurtado 2019-10-08 09:21:27 +02:00
  • e32116abad Rewrite Héctor Hurtado 2019-10-08 09:20:58 +02:00
  • 0348df1df5 Prevent linter from reporting a deprecation warning in a test Roberto Abdelkader Martínez Pérez 2019-10-08 09:09:47 +02:00
  • 22f03eb67f Move swappableMux and its methods to its own module Roberto Abdelkader Martínez Pérez 2019-10-08 09:01:40 +02:00
  • 7fdef70e39 Moved to internal Héctor Hurtado 2019-10-08 08:56:04 +02:00
  • 56db1ce2ac Moved to internal Héctor Hurtado 2019-10-08 08:54:07 +02:00
  • 0cab49f082 Simplify handling of http.Client response pancho horrillo 2019-10-08 05:42:33 +02:00
  • 7ba54b32b3 Revert to using strings for simplicity pancho horrillo 2019-10-08 05:28:29 +02:00
  • 10586bae95 Add internal/server/user/server{,_test}.go pancho horrillo 2019-10-07 19:05:59 +02:00
  • 9266f48c7e First test Héctor Hurtado 2019-10-07 16:00:14 +02:00
  • 81379c22e2 First non-working version of server package Héctor Hurtado 2019-10-07 13:48:35 +02:00
  • 10da324a57 Perform a race test after the tests Roberto Abdelkader Martínez Pérez 2019-10-07 08:55:34 +02:00
  • 47bd2be882 Some fixes suggested by golangci-lint Roberto Abdelkader Martínez Pérez 2019-10-07 08:53:48 +02:00
  • 7e54c26cb8 Don't test for false boolean value Roberto Abdelkader Martínez Pérez 2019-10-07 07:34:57 +02:00
  • 17020ad134 Some tests for Get/Post/Put/Delete utility functions Roberto Abdelkader Martínez Pérez 2019-10-07 07:33:35 +02:00
  • 0b056f6cf0 internal/client/{get,set}_test.go: send io.Writer() based on []byte pancho horrillo 2019-10-06 11:34:15 +02:00
  • f98784088d Normalize internal/client/*_test.go pancho horrillo 2019-10-06 09:41:12 +02:00
  • 25409a2cee Exclude tests from race check Roberto Abdelkader Martínez Pérez 2019-10-05 12:28:01 +02:00
  • 382f056bbd Test for singleton handler map in package Roberto Abdelkader Martínez Pérez 2019-10-05 12:23:05 +02:00
  • 62ec810e6d Implemented user server state aka route list Roberto Abdelkader Martínez Pérez 2019-10-05 12:22:38 +02:00
  • edb3f6fa1c More consistent naming Roberto Abdelkader Martínez Pérez 2019-10-05 11:44:37 +02:00
  • 60437ea9e5 Data server state aka handlers Roberto Abdelkader Martínez Pérez 2019-10-04 19:21:01 +02:00
  • fb2f94997e Separate race detection from test phase to allow mutex tests Roberto Abdelkader Martínez Pérez 2019-10-04 19:20:32 +02:00
  • 6154210b3f Update PoC and features with the 204 -> 404 update pancho horrillo 2019-10-04 17:20:47 +02:00
  • 97b8c3fce4 Server data model Roberto Abdelkader Martínez Pérez 2019-10-04 16:28:06 +02:00
  • bbda43b193 Merge branch 'master' of ssh://github.com/BBVA/kapow Héctor Hurtado 2019-10-04 14:33:00 +02:00
  • feaa836093 Connect set command. TODOs in route command Héctor Hurtado 2019-10-04 14:32:39 +02:00
  • 4224984e1b Add spacing to comments Roberto Abdelkader Martínez Pérez 2019-10-04 14:18:42 +02:00
  • bf88e6a78b Simplify test cases Roberto Abdelkader Martínez Pérez 2019-10-04 14:08:22 +02:00
  • 6b34047d75 Added gock.IsDone() to route list and remove tests. Remove content type in route remove command. Removed disturbing data for texts. Remove unneeded test in set command. Héctor Hurtado 2019-10-04 13:55:36 +02:00
  • b93a5a0c98 Fixed error specification of get and set commands in Data API Héctor Hurtado 2019-10-04 13:17:29 +02:00
  • a865ade26a Use string concatenation to compose simple expression pancho horrillo 2019-10-04 07:28:08 +02:00
  • 57d1aabb66 internal/cmd/route.go: replace dummies with calls to client code pancho horrillo 2019-10-04 06:46:40 +02:00
  • b9bf78abf4 Fix route_add{,_test}.go to use an io.Writer for saving the response pancho horrillo 2019-10-04 06:28:17 +02:00
  • 219710bb76 Fix documentation comment pancho horrillo 2019-10-04 06:01:56 +02:00
  • c65d2ac548 Don't set MatchType to json in gock for requests without body pancho horrillo 2019-10-03 22:50:42 +02:00
  • c01c3db4f9 Fix indentation and drop spurious whitespace pancho horrillo 2019-10-03 22:48:21 +02:00
  • df96d322fc Don't set Content-Type to application/json in query without body pancho horrillo 2019-10-03 22:47:43 +02:00
  • 604569c7a3 Add internal/client/route_list{,_test}.go pancho horrillo 2019-10-03 22:29:47 +02:00
  • 6eb213a545 Adjust set and get to send no Content-Type Roberto Abdelkader Martínez Pérez 2019-10-03 20:57:40 +02:00
  • 2d712d39dc Adjust current implementation to accomodate content-type and test to check it Roberto Abdelkader Martínez Pérez 2019-10-03 20:56:53 +02:00
  • 4357b1ad20 Implementation of route add Roberto Abdelkader Martínez Pérez 2019-10-03 20:56:40 +02:00
  • 9f7fc8ce62 Allow user specify Content-Type header Roberto Abdelkader Martínez Pérez 2019-10-03 20:55:11 +02:00
  • 013cd4d637 Add internal/client/route_remove{,_test}.go pancho horrillo 2019-10-03 18:22:18 +02:00
  • 306889c958 Add TODO on closing the connection of the http.Client pancho horrillo 2019-10-03 16:52:55 +02:00
  • ffa262b2b6 Simplify internal/client/set.go by leveraging internal/http.Request() pancho horrillo 2019-10-03 16:49:12 +02:00
  • b1c2db057c Shorthand functions request with common HTTP methods Roberto Abdelkader Martínez Pérez 2019-10-03 15:06:26 +02:00