Test when postgis is not installed in the remote

This commit is contained in:
Rafa de la Torre 2019-11-08 20:27:24 +01:00
parent 6700d24232
commit eba6cf4565
2 changed files with 10 additions and 0 deletions

View File

@ -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

View File

@ -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|