From 6261f5aa59a6058b4b3263a3ce8612143c55a3ee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?H=C3=A9ctor=20Hurtado?= Date: Wed, 21 Aug 2019 13:17:10 +0200 Subject: [PATCH] Changed delete/success feature to remove id references --- spec/test/features/control/delete/success.feature | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/spec/test/features/control/delete/success.feature b/spec/test/features/control/delete/success.feature index 09522c3..008b3b1 100644 --- a/spec/test/features/control/delete/success.feature +++ b/spec/test/features/control/delete/success.feature @@ -5,9 +5,11 @@ Feature: Delete routes in Kapow! server. Scenario: Delete a route. Routes are removed from the sever by specifying their id. - Given I have a running Kapow! server - And It has a route with id "xxxxxxxx-xxxx-Mxxx-Nxxx-xxxxxxxxxxxx" - When I delete the route with id "xxxxxxxx-xxxx-Mxxx-Nxxx-xxxxxxxxxxxx" + Given I have a Kapow! server whith the following routes: + | method | url_pattern | entrypoint | command | + | GET | /listRootDir | /bin/sh -c | ls -la / \| response /body | + | GET | /listDir/{dirname} | /bin/sh -c | ls -la /request/params/dirname \| response /body | + When I delete the first route Then I get 200 as response code And I get "OK" as response reason phrase And I get an empty response body