bdd: extend reverse API tests for format checks

Reorganise the API reverse tests and extend the checks for the
output format, testing for all expected fields.
This commit is contained in:
Sarah Hoffmann
2023-03-09 20:20:50 +01:00
parent 2b7eb4906a
commit 3f2296e3ea
14 changed files with 703 additions and 342 deletions

View File

@@ -399,7 +399,7 @@ Feature: Import of address interpolations
Then W1 expands to interpolation
| start | end | geometry |
| 2 | 8 | 10,11 |
When sending jsonv2 reverse coordinates 1,1
When sending v1/reverse at 1,1
Then results contain
| ID | osm | type | display_name |
| 0 | N1 | house | 0 |

View File

@@ -23,7 +23,7 @@ Feature: Query of address interpolations
| id | nodes |
| 1 | 1,3 |
When importing
When sending jsonv2 reverse point 2
When sending v1/reverse N2
Then results contain
| ID | display_name |
| 0 | 3, Nickway |
@@ -48,7 +48,7 @@ Feature: Query of address interpolations
| id | nodes |
| 1 | 1,3 |
When importing
When sending jsonv2 reverse point 2
When sending v1/reverse N2
Then results contain
| ID | display_name | centroid |
| 0 | 10, Nickway | 2 |