Rafa de la Torre
f0a3249b4e
Keep metrics keys consistent
...
See cartodb repo and our internal documentation:
https://github.com/CartoDB/cartodb/search?utf8=%E2%9C%93&q=failed_responses&type=
2017-09-07 11:24:38 +02:00
Mario de Frutos
c13dba71a4
Deactivated DO credits usage for users that have quota
...
See https://github.com/CartoDB/bigmetadata/issues/215
2017-08-24 14:35:20 +02:00
Rafa de la Torre
49a53e4cd7
Fix non-zero-padded days in tests
...
See https://github.com/CartoDB/dataservices-api/issues/204 and related
tickets.
2017-07-07 15:14:27 +02:00
Mario de Frutos
61efb66aba
Add an extra check for google credentials
...
If the user has a wrong base64 padded secret key the googlemaps
python library is returning "TypeError: Incorrect padding" which
is very hard to understand. So now we check if the secret key is
a valid base64 string
2017-05-26 11:51:32 +02:00
Javier Goizueta
2c15110255
Rename constructor arguments for consistency
2017-03-28 10:53:16 +02:00
Javier Goizueta
208469f534
Add rate limits configuration writing tests
2017-03-21 15:43:33 +01:00
Javier Goizueta
7f6c19b292
Minor changes for clarity
...
* ServiceManager check method renamed as assert_within_limits
* Legacy classes moved to separate files
2017-03-16 17:59:22 +01:00
Javier Goizueta
05b29967c7
Merge branch 'development' into 346-user-rate-limits
...
# Conflicts:
# README.md
# server/extension/sql/20_geocode_street.sql
# server/lib/python/cartodb_services/cartodb_services/metrics/config.py
2017-03-14 19:00:53 +01:00
Javier Goizueta
6c5ca97468
Complete rate-limiting for Mapzen & Here gecoding
...
ServiceManager class has been introduced to handle service configuration at
SQL level (with a LegacyServiceManager alternative for non-refactored services).
These new classes take the responsibility of rate limits and quota checking.
Tests have been added for ServiceManager and rate limits, but currently they
check only the limits configuration since Lua support would be needed
to use rratelimit with MockRedis.
2017-03-14 18:51:18 +01:00
Rafa de la Torre
26d025a5d1
Remove tests that no longer apply #206
2017-03-10 13:15:56 +01:00
Javier Goizueta
89762c1a7f
Use service params configuration in Mapzen services
2017-03-06 15:25:11 +01:00
Javier Goizueta
29cdd8099a
Add service configuration (URL, etc) for Mapzen Geocoding
2017-03-06 10:20:20 +01:00
Javier Goizueta
c0374f5800
Add service configuration (URL, etc) for Here Routing
2017-03-02 17:55:08 +01:00
Javier Goizueta
677d2acead
Add service configuration (URL, etc) for Here Geocoding
...
See #343
2017-03-02 17:15:14 +01:00
Rafa de la Torre
a0dd7c7497
Fix tests: zero-pad months in redis key #335
2017-01-04 11:11:27 +01:00
Mario de Frutos
23a2de0321
Add mapzen isolines to the quota checker
2016-12-22 17:38:10 +01:00
Javier Goizueta
9ee1d045c8
Fix tests
2016-12-21 09:54:08 +01:00
Rafa de la Torre
360b5bd57f
Merge remote-tracking branch 'origin/development' into mapzen_services_use_quotas
...
Solve merge conflict in setup.py (version of python lib).
2016-12-20 18:14:01 +01:00
Mario de Frutos
38754fec26
Cover refactor mapzen geocoder config with tests
2016-12-20 16:17:42 +01:00
Mario de Frutos
0672f2752b
Improve tests and add more unit tests for the quota functionality
2016-12-20 16:17:41 +01:00
Javier Goizueta
53acd4d30e
Add tests that reveal end-of-period date problem
...
See #322
2016-12-20 12:41:54 +01:00
Mario de Frutos
77f4f3e7ff
Mapzen isochtrones integration
2016-11-29 12:57:23 +01:00
Mario de Frutos
88ed777785
Added plpy_mock and check multiple instances for metricsdatagatherer
2016-11-04 13:39:11 +01:00
Rafa de la Torre
d4ac2eb5e6
Tests for ServicesRedisConfig (mapzen quota) #281
2016-10-21 15:40:22 +02:00
Rafa de la Torre
8e02c64aeb
Tests for UserMetricsService, mapzen routing #281
2016-10-21 15:21:03 +02:00
Rafa de la Torre
cc2ab1bc0c
Fix test: make it independent of current date #281
2016-10-21 15:08:17 +02:00
Rafa de la Torre
e1a7d1751c
Fix corner case: used_quota == monthly_quota #281
2016-10-20 15:36:48 +02:00
Rafa de la Torre
0c49107f96
Some tests for the QuotaChecker #281
2016-10-20 15:31:21 +02:00
Rafa de la Torre
247034c21e
Some tests for RoutingConfig #281
2016-10-19 18:40:17 +02:00
Rafa de la Torre
6d0ad85d48
Fix for crash when sentinel_master_id is absent in config
2016-10-06 15:04:25 +02:00
Rafa de la Torre
cded6c2f08
Test for NullConfigStorage
2016-10-04 15:20:41 +02:00
Rafa de la Torre
3844cfc226
Tests for environment module
2016-10-04 14:56:06 +02:00
Rafa de la Torre
2a1276f4f1
Add test for redis_config module
2016-10-04 12:53:52 +02:00
Rafa de la Torre
18e1a5c7c9
Remove the class User and its tests
...
as it is not used.
2016-10-03 16:54:40 +02:00
Rafa de la Torre
d522083d5c
Rename redis_connection_config test file as well
2016-10-03 13:22:47 +02:00
Rafa de la Torre
073163eb1a
Rename redis_config.py to redis_connection_config.py
2016-10-03 13:20:30 +02:00
Rafa de la Torre
3361960cfc
Move InMemoryConfigStorage to a separate file
2016-10-03 13:12:49 +02:00
Rafa de la Torre
fb812ee15e
Add tests for redis connection configs
2016-10-03 12:33:38 +02:00
Rafa de la Torre
fd2cc21942
Add server config storage classes
2016-09-28 17:32:26 +02:00
Rafa de la Torre
18f05fbd4f
User class with tests
2016-09-28 16:30:37 +02:00
Rafa de la Torre
64fc18b9e0
Fix and improve test speed
2016-09-28 13:43:50 +02:00
Mario de Frutos
9381d5644b
Fixed QPS retry decorator
2016-09-16 13:46:02 +02:00
Mario de Frutos
ed5cf25e9c
Added new logger to all the functions
2016-08-02 16:44:03 +02:00
Mario de Frutos
79d0b5ba7c
Add service providers that come from the user configuration
2016-07-25 12:25:52 +02:00
Rafa de la Torre
6c4829df01
Small refactor for sanity
2016-07-06 16:05:51 +02:00
Carla Iriberri
ff4eb5b348
Mock mapzen matrix config
2016-07-06 14:21:32 +02:00
Rafa de la Torre
2147d190a1
Unit test for the mapzen isolines
2016-07-06 13:19:28 +02:00
Rafa de la Torre
cdcac2dc1f
Fix typo in test case
2016-07-06 13:19:28 +02:00
Rafa de la Torre
25bf9b6372
Add test_orgs_should_write_zero_padded_dates #204
2016-06-14 13:18:34 +02:00
Rafa de la Torre
e046ca2c4d
Add test_should_write_zero_padded_dates #204
2016-06-14 10:04:17 +02:00
Rafa de la Torre
25d42a75e4
test_should_not_request_redis_twice_when_unneeded #201
2016-06-13 15:45:56 +02:00
Rafa de la Torre
f9e9617d6f
test_should_sum_amounts_from_both_key_formats #201
2016-06-13 13:10:07 +02:00
Rafa de la Torre
b0bb60736c
Implement test and fix for that case #201
...
Add test_should_account_for_zero_paddded_keys plus its corresponding fix
for it.
2016-06-13 13:08:35 +02:00
Rafa de la Torre
a2863d7135
Allow for the manipulation of datetime.date.today() #201
2016-06-13 12:57:00 +02:00
Rafa de la Torre
a114f857fd
Add the first test that makes sense #201
2016-06-13 12:21:06 +02:00
Rafa de la Torre
47962c9ccb
Stub tests to be implemented (WIP) #201
2016-06-13 11:33:14 +02:00
Carla Iriberri
21aac960a6
Add function cdb_routing_with_waypoints
...
Add routing with waypoints functions to client and server. Includes
signature checks tests for the Postgresql functions and unit and
integration tests for the Python library.
Add client v0.6.0 and server v0.9.0
2016-05-25 11:38:37 +02:00
Carla
f46305de6f
Update test_helper.py
2016-05-24 13:18:43 +02:00
Mario de Frutos
bb17b3bff7
Hotifix: obs_general_quota logic missing in the redis config
2016-05-16 14:19:08 +02:00
Mario de Frutos
c7c9e6e284
Server side new data observatory functions (v0.8.0)
2016-05-16 10:25:26 +02:00
Mario de Frutos
e81dadaf2e
Green/Blue deploy system for the observatory functions
2016-05-03 13:49:14 +02:00
Mario de Frutos
a9c420ba7b
Use redis or db data observatory quota value
2016-04-25 09:33:18 +02:00
Mario de Frutos
3c5325c1d7
Server data observatory functions
2016-04-20 15:58:38 +02:00
Mario de Frutos
1e30b21d35
Fixed tests with the isolines changes
2016-04-18 18:37:46 +02:00
Mario de Frutos
c9ddc37051
Mapzen geocoder and routing quota check
2016-04-15 10:21:40 +02:00
Carla
62da0eff21
Update test_helper.py
2016-03-31 16:45:27 +02:00
Mario de Frutos
89ec3dcfa6
Mapzen geocoder integrated
2016-03-23 13:37:30 +01:00
Mario de Frutos
357458f44d
Check for some issues like empty input, recoverable exceptions, etc
2016-03-22 15:19:03 +01:00
Mario de Frutos
5d57624fd5
Merge pull request #107 from CartoDB/rename_and_metrics
...
Rename and metrics
2016-03-17 10:23:14 +01:00
Mario de Frutos
60f17fdb09
QPS manager for Mapzen
2016-03-14 11:21:26 +01:00
Mario de Frutos
bd2e380225
Add logger for the internal geocoder too
2016-03-08 16:47:49 +01:00
Mario de Frutos
c293b55c3c
Added log and cost_per_hit config to the db config
2016-03-08 16:47:49 +01:00
Mario de Frutos
b97e838416
Refactor to move logic from SQL functions to Python
...
- Moved the logic the retrieve the redis connection params to
RedisDBConfig class
- Moved the logic that retrieve the services configuration to
ServicesDBConfig
2016-03-08 16:47:49 +01:00
Mario de Frutos
7237e01601
Change metrics increment naming to reflect service instead of geocoder
2016-03-07 16:03:28 +01:00
Mario de Frutos
4d04882c18
Polyline decoder
2016-03-02 10:43:27 +01:00
Mario de Frutos
d2e73a69fa
Python library supports Mapzen routing
2016-02-26 10:49:10 +01:00
Mario de Frutos
13cfee2d4c
Fixed tests for the heremaps geocoder
2016-02-10 15:24:25 +01:00
Mario de Frutos
3b0f92d5e7
Routing isolines python library
2016-02-10 15:11:45 +01:00
Mario de Frutos
3960c13484
Refactor python library to unify and rename as cdb_services
2016-02-03 10:21:57 +01:00