From c3e26b0e8f2ec2eec05f5be177c8bee338264ebc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Roberto=20Abdelkader=20Mart=C3=ADnez=20P=C3=A9rez?= Date: Wed, 21 Aug 2019 11:57:14 +0200 Subject: [PATCH] Remove old spec behavior --- .../append/error_unprocessable.feature | 32 ++----------------- 1 file changed, 2 insertions(+), 30 deletions(-) diff --git a/spec/test/features/control/append/error_unprocessable.feature b/spec/test/features/control/append/error_unprocessable.feature index 8e53802..eade7c3 100644 --- a/spec/test/features/control/append/error_unprocessable.feature +++ b/spec/test/features/control/append/error_unprocessable.feature @@ -17,16 +17,7 @@ Feature: Kapow! server reject responses with semantic errors. } """ Then I get 422 as response code - And I get "Missing Mandatory Field" as response reason phrase - And I get the following entity as response body: - """ - { - "missing_mandatory_fields": [ - "url_pattern", - "method" - ] - } - """ + And I get "Invalid Route" as response reason phrase Scenario: Error because of wrong route specification. If a request contains an invalid expression in the @@ -43,23 +34,4 @@ Feature: Kapow! server reject responses with semantic errors. } """ Then I get 422 as response code - And I get "Invalid Route Spec" as response reason phrase - And I get an empty response body - - Scenario: Error because of wrong method value. - If a request contains an invalid value in the - field method the server responds with an error. - - Given I have a running Kapow! server - When I append the route: - """ - { - "method": "SOMETIMES", - "url_pattern": "/", - "entrypoint": "/bin/sh -c", - "command": "ls -la / | response /body" - } - """ - Then I get 422 as response code - And I get "Invalid Data Type" as response reason phrase - And I get an empty response body + And I get "Invalid Route" as response reason phrase