From 6c25a752841bff1ee9aa47860abff39bc467f5d1 Mon Sep 17 00:00:00 2001 From: Rafa de la Torre Date: Wed, 2 Dec 2015 17:31:29 +0100 Subject: [PATCH] Add quota trigger to tests --- geocoder/extension/expected/00_install_test.out | 7 +++++++ geocoder/extension/sql/00_install_test.sql | 3 +++ 2 files changed, 10 insertions(+) diff --git a/geocoder/extension/expected/00_install_test.out b/geocoder/extension/expected/00_install_test.out index 1bc65bc..5d7e41e 100644 --- a/geocoder/extension/expected/00_install_test.out +++ b/geocoder/extension/expected/00_install_test.out @@ -3,6 +3,13 @@ CREATE EXTENSION postgis; CREATE EXTENSION schema_triggers; CREATE EXTENSION plpythonu; CREATE EXTENSION cartodb; +-- Mock the quota check +SELECT cartodb.CDB_SetUserQuotaInBytes(0); + cdb_setuserquotainbytes +------------------------- + 0 +(1 row) + -- Install the extension CREATE EXTENSION cdb_geocoder; -- Mock the varnish invalidation function diff --git a/geocoder/extension/sql/00_install_test.sql b/geocoder/extension/sql/00_install_test.sql index 6bbc3d4..5a432ef 100644 --- a/geocoder/extension/sql/00_install_test.sql +++ b/geocoder/extension/sql/00_install_test.sql @@ -4,6 +4,9 @@ CREATE EXTENSION schema_triggers; CREATE EXTENSION plpythonu; CREATE EXTENSION cartodb; +-- Mock the quota check +SELECT cartodb.CDB_SetUserQuotaInBytes(0); + -- Install the extension CREATE EXTENSION cdb_geocoder;