Commit Graph

37 Commits (master)

Author SHA1 Message Date
Daniel García Aubert ffe19827fd Rename factory and don't use the keyword 'new' to create server while testing
4 years ago
Daniel García Aubert a3bdbf6202 In tests, stop using mapnik module exposed by windshaft and require it from development dependencies
5 years ago
Daniel García Aubert 7a1d2ca205 Avoid calling Object.prototype methods directly on object instances
5 years ago
Daniel García Aubert 1bee877b24 Replace assert.equal() by assert.strictEqual()
5 years ago
Daniel García Aubert 4d70ac0894 Apply automatic eslint fixes
5 years ago
Daniel García Aubert 73e1659378 Add suffix '-test' to every test-suite file
5 years ago
Daniel García Aubert f1de1b3b91 Rename test files: stop using underscores, use hyphens instead
5 years ago
Daniel García Aubert a134ab3012 Rename server_options -> server-options
5 years ago
Daniel García Aubert 281a079a62 Simplify folder structure
5 years ago
Daniel García Aubert e2d27db828 Ise strict mode for moduler under test folder
6 years ago
Eneko Lakasta f60993b042 re-organize no api key token provided tests - explain tests
6 years ago
Eneko Lakasta 1005126a5f re-organize no api key token provided tests
6 years ago
Eneko Lakasta 0536d0abcb add test to check that the fallback api key used if none is sent, is the default public
6 years ago
Eneko Lakasta f111ddf449 use matching cartodb-redis branch and run all tests
6 years ago
Eneko Lakasta 534c827904 remove auth fallback
6 years ago
Daniel García Aubert 817afb13d1 Use mocha hooks to create server just before perform the test
7 years ago
Daniel García Aubert 98f29f945b Create application server inside of describes instead of at module level
7 years ago
Eneko Lakasta d1ba4a1759 remove unnecessary test
7 years ago
Eneko Lakasta 31e3b9953f add named maps GET auth tests
7 years ago
Eneko Lakasta f5bdb8b15b add named maps Update auth tests
7 years ago
Eneko Lakasta fbcf312071 add named maps Delete auth tests
7 years ago
Eneko Lakasta 9a7a8a3243 add named maps Create auth tests
7 years ago
Eneko Lakasta 9a3eb3e0fd add named maps Listing auth tests
7 years ago
Daniel García Aubert 25aa967146 Forbid access to named map admin resources for everyone but master
7 years ago
Eneko Lakasta 4ac224688c in fallback mode, use default api key if api key token doesnt exist
7 years ago
Eneko Lakasta 890f0d1ef6 add fallback for using metadata fallback
7 years ago
Eneko Lakasta 041cd40ec2 please jshint
7 years ago
Eneko Lakasta 8721f56269 add auth test for getting tiles
7 years ago
Eneko Lakasta 1d3045c799 add tests should create/fail creating named maps and regular api key
7 years ago
Eneko Lakasta 04f60baec5 Set the master role inheritance from regular roles as TBA
7 years ago
Eneko Lakasta a8de436424 add test should create a layergroup with a buffer analysis using a regular apikey token AND grant privileges to master and regular roles in bootstraping sql
7 years ago
Eneko Lakasta c7780e9f42 add tests should create a layergroup with a source analysis
7 years ago
Eneko Lakasta 3edd7b8b01 add test should create a layergroup with default apikey token
7 years ago
Eneko Lakasta 8bdb82c7be add test should fail creating a layergroup with default apikey token
7 years ago
Eneko Lakasta fa503ee66a fix test typo
7 years ago
Eneko Lakasta e1a2ee2381 control API access grants
7 years ago
Eneko Lakasta 1c50dd6b48 add first tests for auth
7 years ago