From 23ea9dfee7679ed939682cd239c7f7ca7d3b1b71 Mon Sep 17 00:00:00 2001 From: xbgmsharp Date: Tue, 16 Jul 2024 16:43:53 +0200 Subject: [PATCH] Update tests, moorages_view and moorage_view include default duration at PT0S --- tests/index3.js | 4 ++-- tests/sql/grafana.sql.output | 10 +++++++++- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/tests/index3.js b/tests/index3.js index f1c118f..c07009c 100644 --- a/tests/index3.js +++ b/tests/index3.js @@ -49,7 +49,7 @@ var moment = require('moment'); ], user_views: [ { url: '/stays_view', res_body_length: 2}, - { url: '/moorages_view', res_body_length: 2}, + { url: '/moorages_view', res_body_length: 3}, { url: '/logs_view', res_body_length: 2}, { url: '/log_view', res_body_length: 2}, //{ url: '/stats_view', res_body_length: 1}, @@ -247,7 +247,7 @@ var moment = require('moment'); ], user_views: [ { url: '/stays_view', res_body_length: 2}, - { url: '/moorages_view', res_body_length: 2}, + { url: '/moorages_view', res_body_length: 4}, { url: '/logs_view', res_body_length: 2}, { url: '/log_view', res_body_length: 2}, //{ url: '/stats_view', res_body_length: 1}, diff --git a/tests/sql/grafana.sql.output b/tests/sql/grafana.sql.output index 6b1b238..59845a3 100644 --- a/tests/sql/grafana.sql.output +++ b/tests/sql/grafana.sql.output @@ -243,7 +243,7 @@ vessel_id | t name | Ekenäs country | fi stay_code | 1 -stay_duration | +stay_duration | PT0S reference_count | 1 latitude | 59.86 longitude | 23.3657666666667 @@ -268,4 +268,12 @@ default_stay_id | 2 total_stay | 0 total_duration | PT1M arrivals_departures | 1 +-[ RECORD 3 ]-------+--------------------- +id | 3 +moorage | Ekenäs +default_stay | Unknown +default_stay_id | 1 +total_stay | 0 +total_duration | PT0S +arrivals_departures | 1