Change URL examples by metasyntactic variable names (RFC3092)

This commit is contained in:
Roberto Abdelkader Martínez Pérez
2019-09-03 09:10:46 +02:00
parent c7e5144308
commit 99ab41d2cb
12 changed files with 64 additions and 64 deletions
@@ -8,8 +8,8 @@ Feature: Fail to retrieve an invalid resource for a handler in Kapow! server.
Given I have a Kapow! server with the following testing routes:
| method | url_pattern |
| GET | /listRootDir |
When I send a request to the testing route "/listRootDir"
| GET | /foo |
When I send a request to the testing route "/foo"
And I get the resource "/invented/path"
Then I get 400 as response code
And I get "Invalid Resource Path" as response reason phrase
@@ -9,8 +9,8 @@ Feature: Fail to retrieve nonexistent resource items in Kapow! server.
Given I have a Kapow! server with the following testing routes:
| method | url_pattern |
| GET | /listRootDir |
When I send a request to the testing route "/listRootDir"
| GET | /foo |
When I send a request to the testing route "/foo"
And I get the resource "/request/params/meloinvento"
Then I get 204 as response code
And I get "Resource Item Not Found" as response reason phrase
@@ -9,14 +9,14 @@ Feature: Retrieve a resource from a handler in Kapow! server.
Given I have a Kapow! server with the following testing routes:
| method | url_pattern |
| GET | /listRootDir |
When I send a request to the testing route "/listRootDir"
| GET | /foo |
When I send a request to the testing route "/foo"
And I get the resource "/request/path"
Then I get 200 as response code
And I get "OK" as response reason phrase
And I get the following response raw body:
"""
/listRootDir
/foo
"""
Scenario: Retrieve a resource item.
@@ -25,8 +25,8 @@ Feature: Retrieve a resource from a handler in Kapow! server.
Given I have a Kapow! server with the following testing routes:
| method | url_pattern |
| GET | /listRootDir |
When I send a request to the testing route "/listRootDir"
| GET | /foo |
When I send a request to the testing route "/foo"
And I get the resource "/request/headers/Host"
Then I get 200 as response code
And I get "OK" as response reason phrase
@@ -10,8 +10,8 @@ Feature: Retrieve request resources from a handler in Kapow! server.
Given I have a Kapow! server with the following testing routes:
| method | url_pattern |
| GET | /listRootDir/{path} |
When I send a request to the testing route "/listRootDir/matchVal1" adding:
| GET | /foo/{path} |
When I send a request to the testing route "/foo/matchVal1" adding:
| fieldType | name | value |
| parameter | par1 | paramVal1 |
| header | head1 | headVal1 |
@@ -28,7 +28,7 @@ Feature: Retrieve request resources from a handler in Kapow! server.
Examples:
| resourcePath | value |
| /request/method | GET |
| /request/path | /listRootDir/matchVal1 |
| /request/path | /foo/matchVal1 |
| /request/host | localhost:8080 |
| /request/matches/path | matchVal1 |
| /request/params/par1 | paramVal1 |
@@ -9,8 +9,8 @@ Feature: Setting values for handler response resources in Kapow! server.
Given I have a Kapow! server with the following testing routes:
| method | url_pattern |
| GET | /listRootDir |
When I send a request to the testing route "/listRootDir"
| GET | /foo |
When I send a request to the testing route "/foo"
And I set the resource "/response/status" with value "418"
And I release the testing request
Then I get 418 as response code in the testing request
@@ -21,8 +21,8 @@ Feature: Setting values for handler response resources in Kapow! server.
Given I have a Kapow! server with the following testing routes:
| method | url_pattern |
| GET | /listRootDir |
When I send a request to the testing route "/listRootDir"
| GET | /foo |
When I send a request to the testing route "/foo"
And I set the resource "<resourcePath>" with value "<value>"
And I release the testing request
Then I get 200 as response code