Rafa de la Torre
6e34e16b8d
Add basic test for user-defined FDW's
2019-07-15 13:16:14 +02:00
Mario de Frutos Dieguez
91c3b86d45
Updated NEWS and tests README
2019-07-04 17:53:11 +02:00
Mario de Frutos Dieguez
f55d789c41
Make some tests to have different expects for different PG versions
2019-07-04 17:48:01 +02:00
Mario de Frutos Dieguez
3eb8ab24d8
Improved tests
2019-07-04 17:48:01 +02:00
Mario de Frutos Dieguez
f4be59cae0
Added tests
2019-07-04 17:48:00 +02:00
Javier Goizueta
bf140890d8
Merge pull request #365 from CartoDB/table-syncer-notmps
...
Sync tables without using temporary hash tables
2019-07-04 16:05:21 +02:00
Rafa de la Torre
29a31d4c40
Merge pull request #362 from CartoDB/fdw-affected-tables
...
Make CDB_Get_Foreign_Updated_At robust to missing CDB_TableMetadata
2019-07-04 16:02:46 +02:00
Javier Goizueta
cb353ec6a8
Add tests for quoted table & column names
2019-07-04 12:47:01 +02:00
Javier Goizueta
2beabfced6
Add test for double schema-quoting
2019-07-03 18:48:49 +02:00
Rafa de la Torre
d378ca6fe0
Test for missing foreign CDB_TableMetadata
2019-07-03 16:25:16 +02:00
Javier Goizueta
4651883454
Fix order of test results
2019-07-02 17:43:13 +02:00
Rafa de la Torre
b0b4a92240
Add a test case for missing foreign CDB_Tablementadata
2019-06-28 16:19:57 +02:00
Javier Goizueta
b5f36902c5
Merge branch 'master' into table-syncer
2019-06-28 13:50:46 +02:00
Raul Marin
010cbe6e18
Remove unnecessary changes
2019-05-31 15:52:55 +02:00
Raul Marin
06f563bb73
Tests: Only create publicuser if necessary
...
Also, don't try to drop it since it's used by default
CARTO installation
2019-05-31 15:37:15 +02:00
Raul Marin
78077a6ec1
Bash tests improvements
...
- Stop loading sql files manually.
- Make tests independent.
- Single DB setup (not once per test)
2019-05-31 15:37:15 +02:00
Rafa de la Torre
a2723a3c90
Exclude certain columns from sync if instructed to do so
...
For the Geocoding (and in general for LDS use cases) it may come in
handy to exclude geometry columns from the list of stuff to
syncrhonize. Otherwise they may be lost, overwritten with NULL values.
2019-05-28 16:11:56 +02:00
Rafa de la Torre
45c21d7f42
Make other tests resilient to CDB_SyncTable test failures
...
Use a transaction to avoid leaving stuff after our tests, that affect
Quota and User Tables tests.
2019-05-28 15:33:55 +02:00
Rafa de la Torre
f442c21fa4
Fix the test/CDB_AnalysisCheckTest.sql
...
These tests are failing in PG11:
```
*** /home/travis/build/CartoDB/cartodb-postgresql/expected/test/CDB_AnalysisCheckTest.out 2019-05-27 16:09:45.063543994 +0000
--- /home/travis/build/CartoDB/cartodb-postgresql/results/test/CDB_AnalysisCheckTest.out 2019-05-27 16:12:39.770847666 +0000
***************
*** 5,12 ****
CREATE TABLE
CREATE TABLE
CREATE TABLE
- (analysis_2f13a3dbd7_41bd92976fc6dd97072afe4ee450054f4c0715d5,public,analysis_2f13a3dbd7_41bd92976fc6dd97072afe4ee450054f4c0715d5)
(analysis_2f13a3dbd7_f00cee44e9e6152b450bde3a92eb9ae0d099da94,public,analysis_2f13a3dbd7_f00cee44e9e6152b450bde3a92eb9ae0d099da94)
0
1
--- 5,12 ----
CREATE TABLE
CREATE TABLE
CREATE TABLE
(analysis_2f13a3dbd7_f00cee44e9e6152b450bde3a92eb9ae0d099da94,public,analysis_2f13a3dbd7_f00cee44e9e6152b450bde3a92eb9ae0d099da94)
+ (analysis_2f13a3dbd7_41bd92976fc6dd97072afe4ee450054f4c0715d5,public,analysis_2f13a3dbd7_41bd92976fc6dd97072afe4ee450054f4c0715d5)
0
1
```
The reason for that is that they rely on row ordering that cannot be
guaranteed as per SQL Standard. Forcing that assumed ordering is
enough to get it working again.
2019-05-28 09:34:10 +02:00
Rafa de la Torre
ee9d08a2be
Some functional E2E tests for the CDB_SyncTable() function
2019-05-27 17:56:36 +02:00
Gonzalo Riestra
5b19d0fc5e
fix test correctly
2019-03-14 12:08:33 +01:00
Gonzalo Riestra
2baee24f30
fix test
2019-03-14 11:47:41 +01:00
Gonzalo Riestra
a5b2b66bb6
fix test comment
2019-03-14 10:06:04 +01:00
Gonzalo Riestra
3faa389860
improve logs
2019-03-13 18:16:08 +01:00
Gonzalo Riestra
bc5d532735
remove default TIS config
2019-03-13 18:12:48 +01:00
Gonzalo Riestra
65d51fd8bd
move cdb_ddl_execution table creation/drop to functions
2019-03-11 14:02:45 +01:00
Gonzalo Riestra
a794fb3d31
read tis config from cdb_conf
2019-03-08 12:03:55 +01:00
Gonzalo Riestra
50e41179fc
fix test
2019-03-08 09:18:46 +01:00
Gonzalo Riestra
5f154a5859
use TIS instead of Redis
2019-03-08 08:28:06 +01:00
Gonzalo Riestra
99dd7cefc7
ghost tables functions using redis
2019-03-06 18:20:04 +01:00
Gonzalo Riestra
0568b36a90
use session_user instead of current_user
2019-02-20 14:45:57 +01:00
Gonzalo Riestra
6d122462bb
decouple tests from cartodb
2019-02-20 13:34:11 +01:00
Gonzalo Riestra
2a4ecd4850
Add CDB_Username() function
2019-02-20 10:38:00 +01:00
Raul Marin
7e131ac88d
Jenks: Add test for less data than breaks
2018-09-10 16:15:02 +02:00
Raul Marin
272d5be776
Jenks: Add inverse request test
2018-09-10 15:42:54 +02:00
Raul Marin
fcc06e82bf
Jenks: Force valid tests
2018-09-10 13:16:25 +02:00
Raul Marin
74f939fd53
CDB_OverviewsTest: Run analyze for consistency
2018-09-04 18:22:22 +02:00
Raul Marin
ac15a6da25
Test: Update CDB_GreatCircle_expect for Postgis 2.4
2018-09-04 17:25:22 +02:00
Eneko Lakasta
b209726b1c
Merge pull request #320 from bloomberg/v0_18_5/cdb_tablemetadata_text_hotfix
...
Fix incorrect timestamps in CDB_TableMetadata_Text
2018-07-23 16:00:19 +02:00
Javier Torres
24a37be1a9
Change querytables expect test
2018-07-20 13:22:02 +02:00
Javier Torres
5659275c0c
Don't rely on regexp to identify non explainable queries
2018-07-20 13:01:51 +02:00
Rafa de la Torre
55a77b0ef0
Add a new helper function _CDB_Table_Exists
2018-07-03 13:00:24 +02:00
Javier Torres
c19c88c9e0
Test for granting permissions for table with non-seria lcartodb_id
2018-05-28 19:54:19 +02:00
Javier Torres
716f47edae
We should be able to grant permission to non-cartodbfied tables
2018-05-28 19:46:58 +02:00
Mario de Frutos
da5d3ea8d9
Added test for the case that arose in #325
2018-03-22 11:53:50 +01:00
Andy Eschbacher
b6b0ef704a
Merge branch 'master' into quantiles-bins-updates
2018-03-08 10:33:01 -05:00
Javier Goizueta
0a58c05049
Merge pull request #323 from CartoDB/321-grant-sequence
...
grant usage on cartodb_id sequence when sharing read write
2018-02-15 16:29:25 +01:00
Javier Goizueta
0a0f2e294b
Fix tests
2018-02-15 10:27:19 +01:00
Alberto Romeu
cd4653ecc0
grant usage on cartodb_id sequence when sharing read write
2018-02-15 08:40:17 +01:00
Javier Goizueta
7ea428913a
Add limit to the grid-generating functions
...
This adds an optinal maxcells parameter to the rectangle and hexagonal grids,
with a default value of 262144 (2^18).
An error occurs when the grids would need more cells.
2018-02-14 17:50:06 +01:00
Tyler Parsons
5c86029029
Test for correct timestamps in cdb_tablemetadata_text
2018-01-25 23:08:28 -05:00
Tyler Parsons
acd101af9b
Use PGPORT as fdw port if specified
2018-01-25 23:08:12 -05:00
Andy Eschbacher
dbaf795a79
adjust expectation to reality instead of expectation (added TODOs)
2017-12-06 08:18:24 -05:00
Andy Eschbacher
4b937de415
updates JenksTests to reflect expectations without nulls
2017-12-06 08:10:09 -05:00
Andy Eschbacher
2fe02d8154
fix alias of column
2017-12-05 16:24:11 -05:00
Andy Eschbacher
691b9a8312
moves quantile bins to use postgres precentile functions
2017-12-05 16:16:39 -05:00
Raul Marin
0f7a1c4882
Remove PARALLEL mode in older versions (up to 9.6)
2017-11-13 09:35:20 +01:00
Raul Marin
f24d15f6ca
Fix issues when running under pg10
2017-10-25 14:38:06 +02:00
Rafa de la Torre
711c954d1a
Fix evil tests #305
...
Basically force generation of long name identifiers that conflict
with first choice of another unique identifier.
2017-06-29 18:53:26 +02:00
Rafa de la Torre
8db73ae9bd
Add test for faulty use case #305
2017-06-29 17:53:43 +02:00
Javier Goizueta
68a0752849
Use PG 9.5 for travis tests; fix tests
2017-04-10 15:58:49 +02:00
Javier Goizueta
815b5b429d
Fix tests
2017-04-10 13:50:37 +02:00
Javier Goizueta
76bdb3657a
Fix tests
2017-04-10 12:17:47 +02:00
Javier Goizueta
a486eed2e3
Add CDB_EstimateRowCount function
...
See #295
2017-04-07 15:35:48 +02:00
Javier Goizueta
25d27263cb
Merge pull request #249 from CartoDB/nullbins
...
Test behavior of binning fuctions with nulls
2016-11-30 16:09:23 +01:00
Javier Goizueta
399b680b41
Merge pull request #283 from CartoDB/157-test-fixes
...
Fix tests: race condition with publicuser #157
2016-11-30 16:08:21 +01:00
Rafa de la Torre
30cd4cf1f9
Fix tests: race condition with publicuser #157
2016-10-17 16:31:10 +02:00
Javier Goizueta
1356131ec1
Fix tests
2016-10-14 11:22:06 +02:00
Javier Goizueta
07892271e5
Exclude analysis cache tables from the quota
...
See #277
2016-10-14 10:56:14 +02:00
Javier Goizueta
4786e0a2ae
Test cleanup
2016-10-11 17:49:50 +02:00
Javier Goizueta
358c89b332
Add tests for CDB_CheckAnalysisQuota()
2016-10-11 16:35:08 +02:00
Javier Goizueta
1f01ecae30
Exclude overviews from user data size
...
Fixes #261
Some internal functions from the Overviews module
have been moved to a separate file because they're now
used from Quaota function.
2016-06-13 10:04:13 +02:00
Paul Norman
3122a0479d
Test behavior of binning fuctions with nulls
...
All test results are based off of existing behavior, which doesn't
always make sense (ref #247 )
2016-04-28 09:59:33 -07:00
Raul Ochoa
de5a702510
Adds table for storing camshaft analysis nodes
2016-04-18 17:41:39 +02:00
Javier Goizueta
09ad550de3
Fix tests
2016-04-15 17:50:47 +02:00
Javier Goizueta
45f063d469
Aggregate small number of text items in overviews
...
Instead of nulling text fields for non-singleton aggregated records
concatenate distinct text values when they're few (5 or less).
Fixes #231
2016-04-15 12:37:16 +02:00
Javier Goizueta
176d69d09e
Fix AVG computation in overview tables
...
Fixes #232
Averages of averages are not equal to overall averages.
2016-04-15 10:48:08 +02:00
Carla
213adcca16
Fixes tests for tolerance_px = 1.0, with no zoom 3
2016-04-14 11:24:10 +02:00
Javier Goizueta
f0ff197c56
Merge branch 'master' into 219-overviews-tolerance
...
# Conflicts:
# scripts-available/CDB_Overviews.sql
# test/CDB_OverviewsTest_expect
2016-04-05 13:08:22 +02:00
Javier Goizueta
57c32332e2
New function CDB_CreateOverviewsWithToleranceInPixels
...
This function allows defining the previously fixed parameter grid_px.
The lim parameter used to define the reference Z level is also
correlated to this value.
Fixes #219
2016-04-04 19:21:10 +02:00
Javier Goizueta
6d9424746c
Fix expected tests output
2016-04-04 17:42:10 +02:00
Javier Goizueta
c0262a05eb
Fix CDB_Overviews for cases that require explicit schema name
...
Fixes #218
2016-04-04 17:02:59 +02:00
Javier Goizueta
603b1ceed8
Adjust Overviews test expectations
2016-03-21 12:58:00 +01:00
Javier Goizueta
0caf6c50dd
Fix the tests for boolean columns and overview creation
2016-03-21 12:27:00 +01:00
Javier Goizueta
70eeab5748
Tests for revealing issue #211
...
Test creating overviews for tables with boolean columns
2016-03-17 19:27:51 +01:00
Carla
16cf70bb4a
Merge pull request #202 from CartoDB/cartodbfication_cartodb_id_text
...
Add support to detect string cartodb_id columns
2016-03-15 10:49:22 +01:00
Carla Iriberri
7b48c2765e
Fix error detection and fix tests
2016-03-08 14:06:58 +01:00
Carla Iriberri
3d0f580fc2
Add idempotence test
2016-03-08 12:10:46 +01:00
Carla Iriberri
f4b51807a1
Make cartodb_id inconsistencies fail and update tests
2016-03-08 11:58:30 +01:00
Carla Iriberri
73906b60da
Verbosity terse for tests
2016-03-02 18:19:21 +01:00
Carla Iriberri
03ff0365fd
Change exception message and edit tests
2016-03-02 17:41:02 +01:00
Alejandro Martínez
90c16fdb13
Fully qualify invalidations
2016-03-02 16:22:22 +01:00
Carla Iriberri
a80664e72a
Delete outdated comments
2016-03-02 15:53:20 +01:00
Carla Iriberri
7e2193d3db
Fix test expectation
2016-03-02 15:52:57 +01:00
Carla Iriberri
7559257d49
cartodb_id string tests
2016-03-01 17:45:15 +01:00
Alejandro Martínez
56fed12392
Add CDB_TableMetadata_Text view as a proxy to access FDW tablemetadata
2016-02-11 19:16:00 +01:00
Rafa de la Torre
9596e8d9bc
A couple checks for quoted idents in CDB_Last_Updated_Time
2016-02-10 19:10:57 +01:00
Rafa de la Torre
06036e2fe8
Quote identifiers returned by CDB_QueryTables_Updated_At
2016-02-10 18:58:01 +01:00
Rafa de la Torre
2bce771488
Add some tests
...
Tests for:
* CDB_QueryTables_Updated_At
* CDB_Last_Updated_Time
2016-02-09 19:24:08 +01:00
Alejandro Martínez
fdbad0f93c
Fix specs on 9.3
2016-02-08 17:33:41 +01:00
Alejandro Martínez
131aee1503
Fully qualify function names
2016-02-08 16:35:26 +01:00
Alejandro Martínez
e858ddfa0b
Add CDB_ForeignTable specs
2016-02-08 15:46:25 +01:00
Javier Goizueta
00bd302f01
Avoid creating GridCluster overviews for non-point datasets
2016-01-29 16:19:35 +01:00
Javier Goizueta
6a5e4b0460
Fix overviews tests
...
The aggregation method for strings has changed
2016-01-27 16:54:30 +01:00
Javier Goizueta
474de01757
Change the overview table naming scheme
...
The scheme is changed from table_ovN to _vovw_N_table for
lower collision probability.
Also future naming changes will be easier by using the functions
_CDB_OverviewTableDiscriminator, _CDB_OverviewTableName,
_CDB_IsOverviewTableOf, etc.
2016-01-26 13:20:28 +01:00
Javier Goizueta
1ebaeb76ac
Overload CDB_Overviews to accept either a single table or an array
...
The result of CDB_Overviews has been expandend with a base_table column
2016-01-26 10:39:26 +01:00
Javier Goizueta
d352e1c463
Update Overviews tests
2016-01-12 15:36:07 +01:00
Javier Goizueta
ebaded0c7a
Merge branch 'master' into overviews
2016-01-12 13:34:26 +01:00
Javier Goizueta
8d1bbc63fa
Add overview tests
2015-12-23 16:33:34 +01:00
Paul Norman
3b48acf60c
Round extent outputs in test
...
Travis was reporting rounded results, so this should make the behavior more consistent
2015-12-22 16:34:18 -08:00
Paul Norman
efb319074a
Add constraint to QueryTablesTest
2015-12-22 16:21:54 -08:00
Javier Goizueta
68099e780c
Merge remote-tracking branch 'origin' into 174_cartodbfy
2015-11-24 16:29:32 +01:00
Rafa de la Torre
9dba6fa7c4
Merge pull request #175 from CartoDB/155-fix-wrong-delimiters
...
Removes extra d in delimiter 155
2015-11-24 15:58:54 +01:00
Javier Goizueta
f14fc057e2
Add optional parameter for max. great circle segment length
2015-11-23 17:13:17 +01:00
Javier Goizueta
1b8ced22a5
Fix name of expected results file
2015-11-23 16:57:34 +01:00
Javier Goizueta
a0ca2288f4
Fix: Cartodbfication failed with existing PK
...
This fixes #174
When a unique index and a primary key contraint existed for a column
named cartodb_id cartodbfy tried to add another PK constraint
2015-11-20 12:56:52 +01:00
Javier Goizueta
ea9503bd32
Allow dots in column names to be cartodbfied
...
This fixes #6144 of cartodb
2015-11-20 12:24:46 +01:00
Stuart Lynn
f43d1cc3c4
Merge branch 'master' into great_circle_generator
2015-11-18 15:36:51 +00:00
Guido Fioravantti
4803abf365
Fix typo in expected 155
2015-11-06 16:32:56 +01:00
Guido Fioravantti
cce63f0eae
Adds ::integer cast for USING 155
2015-11-06 16:26:03 +01:00
Guido Fioravantti
7cf0d02935
Fixes expected 155
2015-11-06 15:11:08 +01:00
Guido Fioravantti
545196811f
Changes logger level to error 155
2015-11-06 14:41:12 +01:00
Guido Fioravantti
6252907de2
Rises verbosity level before tests for _CDB_create_cartodb_id_column 155
2015-11-05 17:11:27 +01:00
Guido Fioravantti
081ed36aae
Fixes NULL max in rec 155
2015-11-02 11:47:14 +01:00
Guido Fioravantti
453b3af872
Removes extra d in delimiter 155
2015-10-30 17:49:27 +01:00
Guido Fioravantti
bb54eb83c1
Drops CDB_Trim_Octets for CDB_Octet_Truncate
2015-10-26 18:01:03 +01:00
Guido Fioravantti
89f5987f53
Fix CDB_HelperTest_expect 173
2015-10-26 12:02:54 +01:00
Guido Fioravantti
cf8c5e5a33
Fixes CDB_HelperTest_expect 173
2015-10-23 12:11:40 +02:00
Guido Fioravantti
9850399693
Adds test for CDB_Unique_Column_Identifier 173
2015-10-22 19:23:38 +02:00
Guido Fioravantti
d14436da6c
Renames test file 173
2015-10-22 17:14:13 +02:00
Guido Fioravantti
974f7f9899
Fixes tests 173
2015-10-22 17:08:23 +02:00
Guido Fioravantti
8479c3375b
Adds CDB_Unique_Column_Identifier for columns 173
2015-10-22 17:01:47 +02:00
Guido Fioravantti
0d1ba2538b
Adds test for new CDB_Helper 173
2015-10-22 16:18:46 +02:00
Stuart Lynn
66249843e8
making some text lowercase
2015-10-14 12:12:12 -04:00
Stuart Lynn
eb475fe55f
Adding function to produce a great circle between two points.
2015-10-14 11:36:48 -04:00
Rafa de la Torre
15dd4935d6
Merge pull request #168 from CartoDB/148-cartodbfy-checks-for-null-cartodb-id
...
148 cartodbfy checks for null cartodb id
2015-10-06 14:39:00 +02:00
Guido Fioravantti
6b3b28f01f
Makes CDB_DateToNumber() tests more intuitive 2202
2015-10-05 14:56:45 +02:00
Guido Fioravantti
186ed34ee5
Overloads CDB_DateToNumber() and adds test
2015-10-05 13:32:03 +02:00
Guido Fioravantti
5de395a4a8
Uses CDB_CartodbfyTableCheck() 148
2015-09-29 19:01:30 +02:00
Guido Fioravantti
777e8c6e4c
Adds test to check cartodbfy works with null cartodb_id
2015-09-29 18:03:20 +02:00
Juan Ignacio Sánchez Lara
458cbf2a80
Merge branch 'master' into 103-Extension_Group_API
2015-09-21 12:21:58 +02:00
Rafa de la Torre
c8e3cf5500
Add test courtesy of Paul #154
2015-09-16 12:17:35 +02:00
Rafa de la Torre
d268497030
Add expectation for new test #141
2015-09-15 19:14:06 +02:00
Rafa de la Torre
9d8d79eb40
Slightly improve the test #141
2015-09-14 17:55:30 +02:00
Rafa de la Torre
e546c15770
Test for failing scenario #141
2015-09-11 16:16:54 +02:00
Rafa de la Torre
85b206fdba
Improve test about existing cartodb_id values #138
2015-09-10 18:18:13 +02:00
Rafa de la Torre
75b37d5a88
Improve tests #138
2015-09-09 18:34:55 +02:00
Rafa de la Torre
497034c285
Add test for failing scenario #138
2015-09-09 18:33:06 +02:00
Rafa de la Torre
6e4a5b5635
Add CASCADE to DROP SCHEMA... in tear_down #138
2015-09-09 18:33:06 +02:00
Raul Ochoa
1853ee6306
Do not use random() for the distribution to test CDB_Stats functions
...
Fixes #144
2015-09-09 17:08:32 +02:00