diff --git a/tests/sql/grafana.sql b/tests/sql/grafana.sql index 78b5f16..12e820f 100644 --- a/tests/sql/grafana.sql +++ b/tests/sql/grafana.sql @@ -29,7 +29,7 @@ SELECT a.user_id IS NOT NULL AS user_id, a.email, a.first, a.last, a.pass IS NOT SELECT v.vessel_id IS NOT NULL AS vessel_id, v.owner_email, v.mmsi, v.name, v.role FROM auth.vessels AS v; \echo 'api.metadata details' -- -SELECT vessel_id IS NOT NULL AS vessel_id_not_null, m.name, m.mmsi, m.length, m.beam, m.height, m.ship_type, m.plugin_version, m.signalk_version, m.time IS NOT NULL AS time, m.active, configuration IS NOT NULL AS configuration, available_keys FROM api.metadata AS m ORDER BY m.name DESC; +SELECT vessel_id IS NOT NULL AS vessel_id_not_null, m.name, m.mmsi, m.length, m.beam, m.height, m.ship_type, m.plugin_version, m.signalk_version, m.time IS NOT NULL AS time, m.active, configuration IS NOT NULL AS configuration_not_null, available_keys FROM api.metadata AS m ORDER BY m.name DESC; -- -- grafana @@ -55,7 +55,7 @@ SELECT v.name AS __text, m.vessel_id IS NOT NULL AS __value FROM auth.vessels v SELECT v.vessel_id IS NOT NULL AS vessel_id, v.owner_email, v.mmsi, v.name, v.role FROM auth.vessels AS v; --SELECT * FROM api.metadata m; \echo 'api.metadata details' -SELECT vessel_id IS NOT NULL AS vessel_id_not_null, m.name, m.mmsi, m.length, m.beam, m.height, m.ship_type, m.plugin_version, m.signalk_version, m.time IS NOT NULL AS time, m.active, configuration IS NOT NULL AS configuration, available_keys FROM api.metadata AS m; +SELECT vessel_id IS NOT NULL AS vessel_id_not_null, m.name, m.mmsi, m.length, m.beam, m.height, m.ship_type, m.plugin_version, m.signalk_version, m.time IS NOT NULL AS time, m.active, configuration IS NOT NULL AS configuration_not_null, available_keys FROM api.metadata AS m; \echo 'api.logs_view' --SELECT * FROM api.logbook l; diff --git a/tests/sql/grafana.sql.output b/tests/sql/grafana.sql.output index a5f187b..3697e27 100644 --- a/tests/sql/grafana.sql.output +++ b/tests/sql/grafana.sql.output @@ -55,34 +55,34 @@ name | aava role | vessel_role api.metadata details --[ RECORD 1 ]------+---------------- -vessel_id_not_null | t -name | kapla -mmsi | 123456789 -length | 12 -beam | 10 -height | 24 -ship_type | 36 -plugin_version | 0.0.1 -signalk_version | signalk_version -time | t -active | t -configuration | t -available_keys | --[ RECORD 2 ]------+---------------- -vessel_id_not_null | t -name | aava -mmsi | 787654321 -length | 12 -beam | 10 -height | 24 -ship_type | 37 -plugin_version | 1.0.2 -signalk_version | 1.20.0 -time | t -active | t -configuration | f -available_keys | [] +-[ RECORD 1 ]----------+---------------- +vessel_id_not_null | t +name | kapla +mmsi | 123456789 +length | 12 +beam | 10 +height | 24 +ship_type | 36 +plugin_version | 0.0.1 +signalk_version | signalk_version +time | t +active | t +configuration_not_null | t +available_keys | +-[ RECORD 2 ]----------+---------------- +vessel_id_not_null | t +name | aava +mmsi | 787654321 +length | 12 +beam | 10 +height | 24 +ship_type | 37 +plugin_version | 1.0.2 +signalk_version | 1.20.0 +time | t +active | t +configuration_not_null | t +available_keys | [] SET ROLE grafana current_setting @@ -108,20 +108,20 @@ name | kapla role | vessel_role api.metadata details --[ RECORD 1 ]------+---------------- -vessel_id_not_null | t -name | kapla -mmsi | 123456789 -length | 12 -beam | 10 -height | 24 -ship_type | 36 -plugin_version | 0.0.1 -signalk_version | signalk_version -time | t -active | t -configuration | t -available_keys | +-[ RECORD 1 ]----------+---------------- +vessel_id_not_null | t +name | kapla +mmsi | 123456789 +length | 12 +beam | 10 +height | 24 +ship_type | 36 +plugin_version | 0.0.1 +signalk_version | signalk_version +time | t +active | t +configuration_not_null | t +available_keys | api.logs_view -[ RECORD 1 ]----+-----------------------