@@ -36,11 +36,6 @@ func TestSuccessOnCorrectRoute(t *testing.T) {
|
|||||||
Reply(http.StatusCreated).
|
Reply(http.StatusCreated).
|
||||||
JSON(map[string]string{})
|
JSON(map[string]string{})
|
||||||
|
|
||||||
// TODO: As per the spec¹, the call should return a JSON body with the info
|
|
||||||
// of the newly created route. Should we consider this in the mocked server
|
|
||||||
// and in the test?
|
|
||||||
// ¹: https://github.com/BBVA/kapow/tree/master/spec#insert-a-route
|
|
||||||
|
|
||||||
err := AddRoute(
|
err := AddRoute(
|
||||||
"http://localhost",
|
"http://localhost",
|
||||||
"/hello", "GET", "", "echo Hello World | kapow set /response/body", nil)
|
"/hello", "GET", "", "echo Hello World | kapow set /response/body", nil)
|
||||||
|
|||||||
Reference in New Issue
Block a user