Add data_version field to responses of all plugins. (#5387)
This commit is contained in:
@@ -59,6 +59,31 @@ Feature: Locating Nearest node on a Way - pick closest way
|
||||
| 3 | u |
|
||||
| 4 | w |
|
||||
|
||||
Scenario: Nearest - inside a oneway triangle
|
||||
Given the node map
|
||||
"""
|
||||
c
|
||||
|
||||
y z
|
||||
0 1
|
||||
2 3 4
|
||||
a x u w b
|
||||
"""
|
||||
|
||||
And the ways
|
||||
| nodes | oneway |
|
||||
| ab | yes |
|
||||
| bc | yes |
|
||||
| ca | yes |
|
||||
|
||||
When I request nearest I should get
|
||||
| in | out |
|
||||
| 0 | y |
|
||||
| 1 | z |
|
||||
| 2 | x |
|
||||
| 3 | u |
|
||||
| 4 | w |
|
||||
|
||||
Scenario: Nearest - High lat/lon
|
||||
Given the node locations
|
||||
| node | lat | lon |
|
||||
@@ -78,3 +103,30 @@ Feature: Locating Nearest node on a Way - pick closest way
|
||||
| x | a |
|
||||
| y | b |
|
||||
| z | c |
|
||||
|
||||
Scenario: Nearest - data version
|
||||
Given the node map
|
||||
"""
|
||||
c
|
||||
|
||||
y z
|
||||
0 1
|
||||
2 3 4
|
||||
a x u w b
|
||||
"""
|
||||
|
||||
And the ways
|
||||
| nodes |
|
||||
| ab |
|
||||
| bc |
|
||||
| ca |
|
||||
|
||||
And the extract extra arguments "--data_version cucumber_data_version"
|
||||
|
||||
When I request nearest I should get
|
||||
| in | out | data_version |
|
||||
| 0 | y | cucumber_data_version |
|
||||
| 1 | z | cucumber_data_version |
|
||||
| 2 | x | cucumber_data_version |
|
||||
| 3 | u | cucumber_data_version |
|
||||
| 4 | w | cucumber_data_version |
|
||||
|
||||
Reference in New Issue
Block a user