diff --git a/test/CDB_FederatedServerDiagnostics.sql b/test/CDB_FederatedServerDiagnostics.sql index e3b880c..ef0dbf1 100644 --- a/test/CDB_FederatedServerDiagnostics.sql +++ b/test/CDB_FederatedServerDiagnostics.sql @@ -46,6 +46,14 @@ SELECT '1.3', cartodb.CDB_Federated_Server_Diagnostics(server => 'loopback') @> SELECT '1.4', cartodb.CDB_Federated_Server_Diagnostics(server => 'loopback') @> format('{"postgis_version": "%s"}', extversion)::jsonb FROM pg_extension WHERE extname = 'postgis'; +\echo '%% It returns null as the postgis version if it is not installed' +\set QUIET on +\c cdb_fs_tester postgres +DROP EXTENSION postgis; +\c contrib_regression postgres +\set QUIET off +SELECT '1.5', cartodb.CDB_Federated_Server_Diagnostics(server => 'loopback') @> '{"postgis_version": null}'::jsonb; + -- =================================================================== -- Cleanup diff --git a/test/CDB_FederatedServerDiagnostics_expect b/test/CDB_FederatedServerDiagnostics_expect index 1c58eda..bff416f 100644 --- a/test/CDB_FederatedServerDiagnostics_expect +++ b/test/CDB_FederatedServerDiagnostics_expect @@ -7,4 +7,6 @@ ERROR: Server "doesNotExist" does not exist 1.3|t %% It returns the postgis version 1.4|t +%% It returns null as the postgis version if it is not installed +1.5|t D1|