Add more tests for exclude validation

This commit is contained in:
Patrick Niklaus
2017-08-18 21:42:05 +00:00
committed by Patrick Niklaus
parent 0c838fb60c
commit 27324d0270
7 changed files with 55 additions and 4 deletions
+31 -1
View File
@@ -1,4 +1,4 @@
@routing @testbot @exclude @mld
@routing @testbot @exclude
Feature: Testbot - Exclude flags
Background:
Given the profile "testbot"
@@ -20,6 +20,7 @@ Feature: Testbot - Exclude flags
| fg | primary | | always drivable |
| gd | primary | | always drivable |
@mld
Scenario: Testbot - exclude nothing
When I route I should get
| from | to | route |
@@ -37,6 +38,7 @@ Feature: Testbot - Exclude flags
| a | 0 | 115 |
| d | 115 | 0 |
@mld
Scenario: Testbot - exclude motorway
Given the query options
| exclude | motorway |
@@ -57,6 +59,7 @@ Feature: Testbot - Exclude flags
| a | 0 | 125 |
| d | 125 | 0 |
@mld
Scenario: Testbot - exclude toll
Given the query options
| exclude | toll |
@@ -69,6 +72,7 @@ Feature: Testbot - Exclude flags
| a | f | |
| f | d | fg,gd,gd |
@mld
Scenario: Testbot - exclude motorway and toll
Given the query options
| exclude | motorway,toll |
@@ -81,4 +85,30 @@ Feature: Testbot - Exclude flags
| a | f | |
| f | d | fg,gd,gd |
@mld
Scenario: Testbot - exclude with unsupported exclude combination
Given the query options
| exclude | TwoWords2 |
When I route I should get
| from | to | status | message |
| a | d | 400 | Exclude flag combination is not supported. |
@mld
Scenario: Testbot - exclude with invalid exclude class name
Given the query options
| exclude | foo |
When I route I should get
| from | to | status | message |
| a | d | 400 | Exclude flag combination is not supported. |
@ch
Scenario: Testbot - Check error message for exclude on non-MLD
Given the query options
| exclude | motorway |
When I route I should get
| from | to | status | message |
| a | d | 400 | This algorithm does not support exclude flags. |