From b71389274b6a9f4595d99a716447bfbd488a3397 Mon Sep 17 00:00:00 2001 From: Sri Charan Chittineni Date: Tue, 10 Mar 2026 06:49:19 +0000 Subject: [PATCH] add BDD scenario for admin_level when boundary=administrative --- test/bdd/features/api/search/params.feature | 22 +++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/test/bdd/features/api/search/params.feature b/test/bdd/features/api/search/params.feature index 04d6dc1e..fcc02c25 100644 --- a/test/bdd/features/api/search/params.feature +++ b/test/bdd/features/api/search/params.feature @@ -318,6 +318,28 @@ Feature: Search queries | jsonv2 | json | | geojson | geojson | + Scenario Outline: Search boundary=administrative with extratags=1 returns admin_level + When sending v1/search with format + | q | featureType | extratags | + | Triesenberg | city | 1 | + Then a HTTP 200 is returned + And the result is valid + And more than 0 results are returned + And result 0 contains + | | | + | boundary | administrative | + And result 0 contains in field + | param | value | + | admin_level | 8 | + + Examples: + | format | outformat | cname | tname | ename | + | xml | xml | class | type | extratags | + | json | json | class | type | extratags | + | jsonv2 | json | category | type | extratags | + | geojson | geojson | category | type | extratags | + | geocodejson | geocodejson | osm_key | osm_value | extra | + Scenario Outline: Search with namedetails When sending v1/search with format | q | namedetails |