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.
224 lines
4.9 KiB
224 lines
4.9 KiB
6 years ago
|
{
|
||
|
"name": "Who's on First localities",
|
||
|
"priorityThresh": 1,
|
||
|
"tests": [
|
||
|
{
|
||
|
"id": 1,
|
||
|
"status": "pass",
|
||
|
"user": "Stephen",
|
||
|
"in": {
|
||
|
"text": "New York, New York",
|
||
|
"sources": "wof"
|
||
|
},
|
||
|
"expected": {
|
||
|
"properties": [
|
||
|
{
|
||
|
"layer": "locality",
|
||
|
"name": "New York",
|
||
|
"locality": "New York",
|
||
|
"county": "Kings County",
|
||
|
"region": "New York",
|
||
|
"region_a": "NY",
|
||
|
"country": "United States",
|
||
|
"country_a": "USA"
|
||
|
}
|
||
|
]
|
||
|
}
|
||
|
},
|
||
|
{
|
||
|
"id": 2,
|
||
|
"status": "pass",
|
||
|
"user": "Stephen",
|
||
|
"in": {
|
||
|
"text": "Socorro, New Mexico",
|
||
|
"sources": "wof"
|
||
|
},
|
||
|
"expected": {
|
||
|
"properties": [
|
||
|
{
|
||
|
"layer": "locality",
|
||
|
"name": "Socorro",
|
||
|
"locality": "Socorro",
|
||
|
"county": "Socorro County",
|
||
|
"region": "New Mexico",
|
||
|
"region_a": "NM",
|
||
|
"country": "United States",
|
||
|
"country_a": "USA"
|
||
|
}
|
||
|
]
|
||
|
}
|
||
|
},
|
||
|
{
|
||
|
"id": 3,
|
||
|
"status": "pass",
|
||
|
"user": "Stephen",
|
||
|
"in": {
|
||
|
"text": "Truth or Consequences, NM",
|
||
|
"sources": "wof"
|
||
|
},
|
||
|
"expected": {
|
||
|
"properties": [
|
||
|
{
|
||
|
"layer": "locality",
|
||
|
"name": "Truth Or Consequences",
|
||
|
"locality": "Truth Or Consequences",
|
||
|
"county": "Sierra County",
|
||
|
"region": "New Mexico",
|
||
|
"region_a": "NM",
|
||
|
"country": "United States",
|
||
|
"country_a": "USA"
|
||
|
}
|
||
|
]
|
||
|
}
|
||
|
},
|
||
|
{
|
||
|
"id": 4,
|
||
|
"status": "pass",
|
||
|
"user": "Stephen",
|
||
|
"in": {
|
||
|
"text": "Shanghai, China",
|
||
|
"sources": "wof"
|
||
|
},
|
||
|
"expected": {
|
||
|
"properties": [
|
||
|
{
|
||
|
"layer": "locality",
|
||
|
"name": "Shanghai",
|
||
|
"locality": "Shanghai",
|
||
|
"region": "Shanghai",
|
||
|
"country": "China",
|
||
|
"country_a": "CHN"
|
||
|
}
|
||
|
]
|
||
|
}
|
||
|
},
|
||
|
{
|
||
|
"id": 5,
|
||
|
"status": "pass",
|
||
|
"user": "Stephen",
|
||
|
"in": {
|
||
|
"text": "Carmel-by-the-Sea, California",
|
||
|
"sources": "wof"
|
||
|
},
|
||
|
"expected": {
|
||
|
"properties": [
|
||
|
{
|
||
|
"layer": "locality",
|
||
|
"name": "Carmel-by-the-Sea",
|
||
|
"county": "Monterey County",
|
||
|
"region": "California",
|
||
|
"region_a": "CA",
|
||
|
"country": "United States",
|
||
|
"country_a": "USA"
|
||
|
}
|
||
|
]
|
||
|
}
|
||
|
},
|
||
|
{
|
||
|
"id": 6,
|
||
|
"status": "pass",
|
||
|
"user": "Stephen",
|
||
|
"in": {
|
||
|
"text": "Springfield",
|
||
|
"sources": "wof",
|
||
|
"layers": "locality"
|
||
|
},
|
||
|
"expected": {
|
||
|
"properties": [
|
||
|
{
|
||
|
"layer": "locality",
|
||
|
"name": "Springfield",
|
||
|
"locality": "Springfield",
|
||
|
"country": "United States",
|
||
|
"country_a": "USA"
|
||
|
}
|
||
|
]
|
||
|
}
|
||
|
},
|
||
|
{
|
||
|
"id": 7,
|
||
|
"status": "pass",
|
||
|
"user": "Stephen",
|
||
|
"in": {
|
||
|
"text": "Città del Vaticano, Vatican",
|
||
|
"sources": "wof"
|
||
|
},
|
||
|
"expected": {
|
||
|
"properties": [
|
||
|
{
|
||
|
"layer": "locality",
|
||
|
"name": "Vatican City",
|
||
|
"locality": "Vatican City",
|
||
|
"region": "Vatican",
|
||
|
"country": "Vatican City",
|
||
|
"country_a": "VAT"
|
||
|
}
|
||
|
]
|
||
|
}
|
||
|
},
|
||
|
{
|
||
|
"id": 8,
|
||
|
"status": "fail",
|
||
|
"issue": "https://github.com/pelias/acceptance-tests/issues/213",
|
||
|
"description": "returns the right result second, cause unknown",
|
||
|
"user": "Stephen",
|
||
|
"in": {
|
||
|
"text": "San Jaun, Puerto Rico",
|
||
|
"sources": "wof"
|
||
|
},
|
||
|
"expected": {
|
||
|
"properties": [
|
||
|
{
|
||
|
"locality": "San Juan",
|
||
|
"region": "Puerto Rico",
|
||
|
"region_a": "PRI",
|
||
|
"country": "United States",
|
||
|
"country_a": "USA",
|
||
|
"name": "San Juan"
|
||
|
}
|
||
|
]
|
||
|
}
|
||
|
},
|
||
|
{
|
||
|
"id": 9,
|
||
|
"status": "pass",
|
||
|
"user": "Stephen",
|
||
|
"in": {
|
||
|
"text": "London, England",
|
||
|
"sources": "wof"
|
||
|
},
|
||
|
"expected": {
|
||
|
"properties": [
|
||
|
{
|
||
|
"macroregion": "England",
|
||
|
"name": "London",
|
||
|
"country": "United Kingdom",
|
||
|
"country_a": "GBR"
|
||
|
}
|
||
|
]
|
||
|
}
|
||
|
},
|
||
|
{
|
||
|
"id": 10,
|
||
|
"status": "pass",
|
||
|
"user": "Stephen",
|
||
|
"description": "chosen for diacriticals + Münster Rebellion... YOLO!",
|
||
|
"in": {
|
||
|
"text": "Münster, DE",
|
||
|
"sources": "wof"
|
||
|
},
|
||
|
"expected": {
|
||
|
"properties": [
|
||
|
{
|
||
|
"layer": "locality",
|
||
|
"name": "Münster",
|
||
|
"region": "Nordrhein-Westfalen",
|
||
|
"country": "Germany",
|
||
|
"country_a": "DEU"
|
||
|
}
|
||
|
]
|
||
|
}
|
||
|
}
|
||
|
]
|
||
|
}
|