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
@@ -5,8 +5,8 @@ Feature: Consistent route ordering after inserting a route in a Kapow! server.
Background:
Given I have a Kapow! server with 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 |
| GET | /foo | /bin/sh -c | ls -la / \| response /body |
| GET | /qux/{dirname} | /bin/sh -c | ls -la /request/params/dirname \| response /body |
Scenario: Inserting before the first route.
After inserting before the first route the previous set
@@ -17,7 +17,7 @@ Feature: Consistent route ordering after inserting a route in a Kapow! server.
"""
{
"method": "GET",
"url_pattern": "/listVarDir",
"url_pattern": "/bar",
"entrypoint": "/bin/sh -c",
"command": "ls -la /var | response /body",
"index": 0
@@ -29,7 +29,7 @@ Feature: Consistent route ordering after inserting a route in a Kapow! server.
[
{
"method": "GET",
"url_pattern": "/listVarDir",
"url_pattern": "/bar",
"entrypoint": "/bin/sh -c",
"command": "ls -la /var | response /body",
"index": 0,
@@ -37,7 +37,7 @@ Feature: Consistent route ordering after inserting a route in a Kapow! server.
},
{
"method": "GET",
"url_pattern": "/listRootDir",
"url_pattern": "/foo",
"entrypoint": "/bin/sh -c",
"command": "ls -la / | response /body",
"index": 1,
@@ -45,7 +45,7 @@ Feature: Consistent route ordering after inserting a route in a Kapow! server.
},
{
"method": "GET",
"url_pattern": "/listDir/{dirname}",
"url_pattern": "/qux/{dirname}",
"entrypoint": "/bin/sh -c",
"command": "ls -la /request/params/dirname | response /body",
"index": 2,
@@ -62,7 +62,7 @@ Feature: Consistent route ordering after inserting a route in a Kapow! server.
"""
{
"method": "GET",
"url_pattern": "/listVarDir",
"url_pattern": "/bar",
"entrypoint": "/bin/sh -c",
"command": "ls -la /var | response /body",
"index": 2
@@ -74,7 +74,7 @@ Feature: Consistent route ordering after inserting a route in a Kapow! server.
[
{
"method": "GET",
"url_pattern": "/listRootDir",
"url_pattern": "/foo",
"entrypoint": "/bin/sh -c",
"command": "ls -la / | response /body",
"index": 0,
@@ -82,7 +82,7 @@ Feature: Consistent route ordering after inserting a route in a Kapow! server.
},
{
"method": "GET",
"url_pattern": "/listDir/{dirname}",
"url_pattern": "/qux/{dirname}",
"entrypoint": "/bin/sh -c",
"command": "ls -la /request/params/dirname | response /body",
"index": 1,
@@ -90,7 +90,7 @@ Feature: Consistent route ordering after inserting a route in a Kapow! server.
},
{
"method": "GET",
"url_pattern": "/listVarDir",
"url_pattern": "/bar",
"entrypoint": "/bin/sh -c",
"command": "ls -la /var | response /body",
"index": 2,
@@ -108,7 +108,7 @@ Feature: Consistent route ordering after inserting a route in a Kapow! server.
"""
{
"method": "GET",
"url_pattern": "/listVarDir",
"url_pattern": "/bar",
"entrypoint": "/bin/sh -c",
"command": "ls -la /var | response /body",
"index": 1
@@ -120,7 +120,7 @@ Feature: Consistent route ordering after inserting a route in a Kapow! server.
[
{
"method": "GET",
"url_pattern": "/listRootDir",
"url_pattern": "/foo",
"entrypoint": "/bin/sh -c",
"command": "ls -la / | response /body",
"index": 0,
@@ -128,7 +128,7 @@ Feature: Consistent route ordering after inserting a route in a Kapow! server.
},
{
"method": "GET",
"url_pattern": "/listVarDir",
"url_pattern": "/bar",
"entrypoint": "/bin/sh -c",
"command": "ls -la /var | response /body",
"index": 1,
@@ -136,7 +136,7 @@ Feature: Consistent route ordering after inserting a route in a Kapow! server.
},
{
"method": "GET",
"url_pattern": "/listDir/{dirname}",
"url_pattern": "/qux/{dirname}",
"entrypoint": "/bin/sh -c",
"command": "ls -la /request/params/dirname | response /body",
"index": 2,
@@ -6,8 +6,8 @@ Feature: Insert new routes in Kapow! server.
Background:
Given I have a Kapow! server with 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 |
| GET | /foo | /bin/sh -c | ls -la / \| response /body |
| GET | /qux/{dirname} | /bin/sh -c | ls -la /request/params/dirname \| response /body |
Scenario: Insert a route at the beginning.
A route can be inserted at the beginning of the list
@@ -17,7 +17,7 @@ Feature: Insert new routes in Kapow! server.
"""
{
"method": "GET",
"url_pattern": "/listVarDir",
"url_pattern": "/bar",
"entrypoint": "/bin/sh -c",
"command": "ls -la /var | response /body",
"index": 0
@@ -29,7 +29,7 @@ Feature: Insert new routes in Kapow! server.
"""
{
"method": "GET",
"url_pattern": "/listVarDir",
"url_pattern": "/bar",
"entrypoint": "/bin/sh -c",
"command": "ls -la /var | response /body",
"index": 0,
@@ -46,7 +46,7 @@ Feature: Insert new routes in Kapow! server.
"""
{
"method": "GET",
"url_pattern": "/listVarDir",
"url_pattern": "/bar",
"entrypoint": "/bin/sh -c",
"command": "ls -la /var | response /body",
"index": 1
@@ -58,7 +58,7 @@ Feature: Insert new routes in Kapow! server.
"""
{
"method": "GET",
"url_pattern": "/listVarDir",
"url_pattern": "/bar",
"entrypoint": "/bin/sh -c",
"command": "ls -la /var | response /body",
"index": 1,