From d005ec9695d8cc083081808990826891e1f615d9 Mon Sep 17 00:00:00 2001 From: missinglink Date: Wed, 23 Sep 2020 12:09:12 +0200 Subject: [PATCH] vanity_addresses: add test cases for buildings which have a vanity address --- test_cases/autocomplete_vanity_addresses.json | 64 +++++++++++++++++++ test_cases/search_vanity_addresses.json | 63 ++++++++++++++++++ 2 files changed, 127 insertions(+) create mode 100644 test_cases/autocomplete_vanity_addresses.json create mode 100644 test_cases/search_vanity_addresses.json diff --git a/test_cases/autocomplete_vanity_addresses.json b/test_cases/autocomplete_vanity_addresses.json new file mode 100644 index 0000000..807f094 --- /dev/null +++ b/test_cases/autocomplete_vanity_addresses.json @@ -0,0 +1,64 @@ +{ + "name": "Vanity Addresses", + "priorityThresh": 1, + "endpoint": "autocomplete", + "tests": [ + { + "id": 1, + "status": "pass", + "user": "missinglink", + "in": { + "text": "One Embarcadero" + }, + "expected": { + "properties": [ + { + "region": "California", + "locality": "San Francisco", + "name": "Embarcadero Center 1" + } + ] + } + }, + { + "id": 2, + "status": "pass", + "user": "missinglink", + "in": { + "text": "One Brooklyn Bridge Park" + }, + "expected": { + "properties": [ + { + "region": "New York", + "locality": "New York", + "name": "One Brooklyn Bridge Park" + } + ] + } + }, + { + "id": 3, + "status": "pass", + "user": "missinglink", + "notes": [ + "This is the office of the mayor of London", + "it doesn't return 'The Gherkin' for the name", + "because it's not *officially* named that ;)" + ], + "in": { + "text": "The Gherkin" + }, + "expected": { + "priorityThresh": 2, + "properties": [ + { + "region": "Greater London", + "locality": "London", + "name": "30 St Mary Axe" + } + ] + } + } + ] +} diff --git a/test_cases/search_vanity_addresses.json b/test_cases/search_vanity_addresses.json new file mode 100644 index 0000000..887e7f4 --- /dev/null +++ b/test_cases/search_vanity_addresses.json @@ -0,0 +1,63 @@ +{ + "name": "Vanity Addresses", + "priorityThresh": 1, + "endpoint": "search", + "tests": [ + { + "id": 1, + "status": "pass", + "user": "missinglink", + "in": { + "text": "One Embarcadero" + }, + "expected": { + "properties": [ + { + "region": "California", + "locality": "San Francisco", + "name": "Embarcadero Center 1" + } + ] + } + }, + { + "id": 2, + "status": "pass", + "user": "missinglink", + "in": { + "text": "One Brooklyn Bridge Park" + }, + "expected": { + "properties": [ + { + "region": "New York", + "locality": "New York", + "name": "One Brooklyn Bridge Park" + } + ] + } + }, + { + "id": 3, + "status": "pass", + "user": "missinglink", + "notes": [ + "This is the office of the mayor of London", + "it doesn't return 'The Gherkin' for the name", + "because it's not *officially* named that ;)" + ], + "in": { + "text": "The Gherkin" + }, + "expected": { + "properties": [ + { + "region": "Greater London", + "locality": "London", + "name": "30 St Mary Axe" + } + ] + } + } + ] +}