2015-09-22 05:46:00 -04:00
|
|
|
@routing @testbot @alternative
|
|
|
|
Feature: Alternative route
|
|
|
|
|
|
|
|
Background:
|
|
|
|
Given the profile "testbot"
|
|
|
|
|
|
|
|
And the node map
|
|
|
|
| | b | c | d | | |
|
2016-01-26 04:30:48 -05:00
|
|
|
| a | | k | | | z |
|
2015-09-22 05:46:00 -04:00
|
|
|
| | g | h | i | j | |
|
|
|
|
|
|
|
|
And the ways
|
|
|
|
| nodes |
|
|
|
|
| ab |
|
|
|
|
| bc |
|
|
|
|
| cd |
|
|
|
|
| dz |
|
|
|
|
| ag |
|
|
|
|
| gh |
|
|
|
|
| hi |
|
|
|
|
| ij |
|
|
|
|
| jz |
|
2016-01-26 04:30:48 -05:00
|
|
|
| ck |
|
|
|
|
| kh |
|
2015-09-22 05:46:00 -04:00
|
|
|
|
|
|
|
Scenario: Enabled alternative
|
|
|
|
Given the query options
|
2016-03-29 13:36:18 -04:00
|
|
|
| alternatives | true |
|
2015-09-22 05:46:00 -04:00
|
|
|
|
|
|
|
When I route I should get
|
2016-03-31 19:48:06 -04:00
|
|
|
| from | to | route | alternative |
|
|
|
|
| a | z | ab,bc,cd,dz,dz | ag,gh,hi,ij,jz,jz |
|
2015-09-22 05:46:00 -04:00
|
|
|
|
|
|
|
Scenario: Disabled alternative
|
|
|
|
Given the query options
|
2016-03-29 13:36:18 -04:00
|
|
|
| alternatives | false |
|
2015-09-22 05:46:00 -04:00
|
|
|
|
|
|
|
When I route I should get
|
2016-03-31 19:48:06 -04:00
|
|
|
| from | to | route | alternative |
|
|
|
|
| a | z | ab,bc,cd,dz,dz | |
|