Replace request/response with new commands

This commit is contained in:
Roberto Abdelkader Martínez Pérez committed 2019-09-05 08:40:59 +02:00
1 parent f6ce9935a5
commit 58a800e5e9
13 files changed
+72 -74

No files matched your search

@@ -7,8 +7,8 @@ Feature: Delete routes in Kapow! server.
Given I have a Kapow! server with the following routes:
| method | url_pattern | entrypoint | command |
| GET | /foo | /bin/sh -c | ls -la / \| response /body |
| GET | /qux/{dirname} | /bin/sh -c | ls -la /request/params/dirname \| response /body |
| GET | /foo | /bin/sh -c | ls -la / \| kapow set /response/body |
| GET | /qux/{dirname} | /bin/sh -c | ls -la /request/params/dirname \| kapow set /response/body |
When I delete the first route
Then I get 204 as response code
And I get "No Content" as response reason phrase