CartoDB-SQL-API/test/unit
Esther Lozano 419adea234
Add pubsub metrics (#642)
* Create middleware and service for pubsub metrics

* Use pubsub middleware for all request

* Replace isEnabled with isDisabled to avoid negation

* Use new headers names

* Add acceptance and unit tests

* Remove commented log calls

* Remove only filters in tests

Remove typo

* Refactor service to ease integration test

* Fix interaction with query controller

* Use middleware at api-router and test all controllers

* Rename user middleware function

* Use sinon latest version

* Create middleware and service for pubsub metrics

* Use pubsub middleware for all request

* Replace isEnabled with isDisabled to avoid negation

* Use new headers names

* Add acceptance and unit tests

* Remove commented log calls

* Remove only filters in tests

Remove typo

* Refactor service to ease integration test

* Fix interaction with query controller

* Use middleware at api-router and test all controllers

* Rename user middleware function

* Use sinon latest version

* Fix tests

* Fix typos

* Checks if pubsub config exists to enable the service

* Fix typo

* Normalize headers values for pubsub

* Trim fields when normalizing

* Trim fields when normalizing
2020-02-26 17:19:06 +01:00
..
batch Run eslint --fix 2019-12-23 18:19:08 +01:00
model Fix lint errors 2019-12-26 14:51:09 +01:00
apikeyauth-test.js Fix lint errors 2019-12-26 14:51:09 +01:00
error-handler-factory-test.js Eslint errors 2019-12-26 17:46:27 +01:00
error-handler-test.js Fix eslint errors 2019-12-26 14:38:53 +01:00
health-check-test.js Use asert.strict mode 2019-12-26 14:23:21 +01:00
oauth-test.js Fix eslint errors 2019-12-26 14:38:53 +01:00
pg-entities-access-validator-test.js Run eslint --fix 2019-12-23 18:19:08 +01:00
pubsub-metrics-test.js Add pubsub metrics (#642) 2020-02-26 17:19:06 +01:00
query-info-test.js Use asert.strict mode 2019-12-26 14:23:21 +01:00