From 861e61d37882b259e98e6cb5bc5bc353381bbe5b Mon Sep 17 00:00:00 2001 From: xbgmsharp Date: Sun, 4 May 2025 22:27:15 +0200 Subject: [PATCH] Update sql tests, name change in OSM data --- tests/sql/cron_post_jobs.sql.output | 4 ++-- tests/sql/grafana.sql.output | 14 +++++++------- tests/sql/logbook.sql.output | 2 +- tests/sql/summary.sql.output | 4 ++-- 4 files changed, 12 insertions(+), 12 deletions(-) diff --git a/tests/sql/cron_post_jobs.sql.output b/tests/sql/cron_post_jobs.sql.output index 08c4534..b10a498 100644 --- a/tests/sql/cron_post_jobs.sql.output +++ b/tests/sql/cron_post_jobs.sql.output @@ -17,7 +17,7 @@ count | 2 logbook -[ RECORD 1 ]--+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- -name | Pojoviken to Norra hamnen +name | Pojoviken to Formanshagen _from_time | t _to_time | t track_geojson | t @@ -30,7 +30,7 @@ max_wind_speed | 22.1 notes | extra | {"metrics": {"propulsion.main.runTime": "PT10S"}, "observations": {"seaState": -1, "visibility": -1, "cloudCoverage": -1}, "avg_wind_speed": 14.549999999999999} -[ RECORD 2 ]--+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- -name | Norra hamnen to Ekenäs +name | Formanshagen to Ekenäs _from_time | t _to_time | t track_geojson | t diff --git a/tests/sql/grafana.sql.output b/tests/sql/grafana.sql.output index e690822..c22159a 100644 --- a/tests/sql/grafana.sql.output +++ b/tests/sql/grafana.sql.output @@ -126,8 +126,8 @@ available_keys | api.logs_view -[ RECORD 1 ]----+----------------------- id | 2 -name | Norra hamnen to Ekenäs -from | Norra hamnen +name | Formanshagen to Ekenäs +from | Formanshagen to | Ekenäs distance | 8.8968 duration | PT20M @@ -137,7 +137,7 @@ _to_moorage_id | 3 id | 1 name | patch log name 3 from | patch moorage name 3 -to | Norra hamnen +to | Formanshagen distance | 7.6447 duration | PT27M _from_moorage_id | 1 @@ -191,7 +191,7 @@ api.stays_view -[ RECORD 1 ]+--------------------- id | 2 name | t -moorage | Norra hamnen +moorage | Formanshagen moorage_id | 2 duration | PT2M stayed_at | Dock @@ -226,7 +226,7 @@ notes | new moorage note 3 -[ RECORD 2 ]------------------------------------------------- id | 2 vessel_id | t -name | Norra hamnen +name | Formanshagen country | fi stay_code | 4 latitude | 59.9768833333333 @@ -249,7 +249,7 @@ notes | api.moorages_view -[ RECORD 1 ]-------+--------------------- id | 2 -moorage | Norra hamnen +moorage | Formanshagen default_stay | Dock default_stay_id | 4 arrivals_departures | 2 @@ -287,7 +287,7 @@ stay_first_seen | f stay_last_seen | f -[ RECORD 2 ]------+--------------------------------------------------- id | 2 -name | Norra hamnen +name | Formanshagen default_stay | Dock latitude | 59.9768833333333 longitude | 23.4321 diff --git a/tests/sql/logbook.sql.output b/tests/sql/logbook.sql.output index d55bfef..e3ddea1 100644 --- a/tests/sql/logbook.sql.output +++ b/tests/sql/logbook.sql.output @@ -30,7 +30,7 @@ max_wind_speed | 22.1 notes | new log note 3 extra | {"tags": ["tag_name"], "metrics": {"propulsion.main.runTime": "PT10S"}, "observations": {"seaState": -1, "visibility": -1, "cloudCoverage": 1}, "avg_wind_speed": 14.549999999999999} -[ RECORD 2 ]--+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- -name | Norra hamnen to Ekenäs +name | Formanshagen to Ekenäs _from_time | t _to_time | t track_geom | 0102000020E610000013000000029A081B9E6E37404A5658830AFD4D404806A6C0EF6C3740DA1B7C6132FD4D40FE65F7E461693740226C787AA5FC4D407DD3E10EC1663740B29DEFA7C6FB4D40898BB63D5465374068479724BCFA4D409A5271F6E1633740B6847CD0B3F94D40431CEBE236623740E9263108ACF84D402C6519E2585F37407E678EBFC7F74D4096218E75715B374027C5B45C23F74D402AA913D044583740968DE1C46AF64D405AF5B9DA8A5537407BEF829B9FF54D407449C2ABD253374086C954C1A8F44D407D1A0AB278543740F2B0506B9AF34D409D11A5BDC15737406688635DDCF24D4061C3D32B655937402CAF6F3ADCF14D408988888888583740B3319C58CDF04D4021FAC8C0145837408C94405DB7EF4D40B8F9593F105B37403DC0804BEDEE4D40DE4C5FE2A25D3740AE47E17A14EE4D40 diff --git a/tests/sql/summary.sql.output b/tests/sql/summary.sql.output index 93170eb..e0b53aa 100644 --- a/tests/sql/summary.sql.output +++ b/tests/sql/summary.sql.output @@ -676,8 +676,8 @@ overpass_py_fn | {"fee": "yes", "vhf": "09", "name": "Port Olímpic", "phone": " -[ RECORD 1 ]--+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- overpass_py_fn | {"name": "Port de la Ginesta", "type": "multipolygon", "leisure": "marina", "name:ca": "Port de la Ginesta", "wikidata": "Q16621038", "wikipedia": "ca:Port Ginesta", "check_date": "2024-08-23"} --[ RECORD 1 ]--+---------------------------------------------- -overpass_py_fn | {"name": "Norra hamnen", "leisure": "marina"} +-[ RECORD 1 ]--+--------------------------------------------------------------------------------------- +overpass_py_fn | {"leisure": "marina", "seamark:type": "harbour", "seamark:harbour:category": "marina"} -[ RECORD 1 ]----------------------------------------------------------------------------------------------------------------------------------------------------------------------- versions_fn | {"api_version" : "0.9.1", "sys_version" : "PostgreSQL 16.8", "mobilitydb" : "1.2.0", "timescaledb" : "2.19.3", "postgis" : "3.5.2", "postgrest" : "PostgREST 12.2.11"}