mirror of https://github.com/pelias/docker.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
112 lines
2.4 KiB
112 lines
2.4 KiB
6 years ago
|
{
|
||
|
"name": "ISO2->ISO3 internal conversion",
|
||
|
"notes": "this test verifies that an iso2 country matches",
|
||
|
"priorityThresh": 1,
|
||
|
"endpoint": "search",
|
||
|
"tests": [
|
||
|
{
|
||
|
"id": 1,
|
||
|
"status": "pass",
|
||
|
"user": "trescube",
|
||
|
"type": "dev",
|
||
|
"in": {
|
||
|
"text": "1 Main St, Richlandtown, PA, US"
|
||
|
},
|
||
|
"expected": {
|
||
|
"properties": [
|
||
|
{
|
||
|
"layer": "address",
|
||
|
"country_a": "USA",
|
||
|
"region": "Pennsylvania",
|
||
|
"region_a": "PA",
|
||
|
"locality": "Richlandtown",
|
||
|
"street": "Main St",
|
||
|
"housenumber": "1"
|
||
|
}
|
||
|
]
|
||
|
}
|
||
|
},
|
||
|
{
|
||
|
"id": 2,
|
||
|
"status": "pass",
|
||
|
"user": "trescube",
|
||
|
"type": "dev",
|
||
|
"in": {
|
||
|
"text": "grolmanstraße 51, berlin, de"
|
||
|
},
|
||
|
"expected": {
|
||
|
"properties": [
|
||
|
{
|
||
|
"layer": "address",
|
||
|
"country_a": "DEU",
|
||
|
"locality": "Berlin",
|
||
|
"street": "Grolmanstraße",
|
||
|
"housenumber": "51"
|
||
|
}
|
||
|
]
|
||
|
}
|
||
|
},
|
||
|
{
|
||
|
"id": 3,
|
||
|
"status": "pass",
|
||
|
"user": "trescube",
|
||
|
"type": "dev",
|
||
|
"in": {
|
||
|
"text": "23 Avenue Duquesne, 75007 Paris, Fr"
|
||
|
},
|
||
|
"expected": {
|
||
|
"priorityThresh": 1,
|
||
|
"properties": [
|
||
|
{
|
||
|
"layer": "address",
|
||
|
"country_a": "FRA",
|
||
|
"locality": "Paris",
|
||
|
"street": "Avenue Duquesne",
|
||
|
"housenumber": "23"
|
||
|
}
|
||
|
]
|
||
|
}
|
||
|
},
|
||
|
{
|
||
|
"id": 4,
|
||
|
"status": "pass",
|
||
|
"user": "trescube",
|
||
|
"type": "dev",
|
||
|
"in": {
|
||
|
"text": "22 Lloyd George Ave, Toronto Ontario CA"
|
||
|
},
|
||
|
"expected": {
|
||
|
"properties": [
|
||
|
{
|
||
|
"layer": "address",
|
||
|
"country_a": "CAN",
|
||
|
"locality": "Toronto",
|
||
|
"street": "Lloyd George Ave",
|
||
|
"housenumber": "22"
|
||
|
}
|
||
|
]
|
||
|
}
|
||
|
},
|
||
|
{
|
||
|
"id": 5,
|
||
|
"status": "pass",
|
||
|
"user": "trescube",
|
||
|
"type": "dev",
|
||
|
"in": {
|
||
|
"text": "327 Rincon de Romos, Aguascalientes, MX"
|
||
|
},
|
||
|
"expected": {
|
||
|
"properties": [
|
||
|
{
|
||
|
"layer": "address",
|
||
|
"country_a": "MEX",
|
||
|
"locality": "Aguascalientes",
|
||
|
"street": "Rincón De Romos",
|
||
|
"housenumber": "327"
|
||
|
}
|
||
|
]
|
||
|
}
|
||
|
}
|
||
|
]
|
||
|
}
|