added public user shouldn't insert test
This commit is contained in:
parent
80ecdc565c
commit
719644e76d
4
TODO.md
4
TODO.md
@ -1,8 +1,8 @@
|
||||
Prioritized todo
|
||||
-----------------
|
||||
|
||||
Acceptance tests
|
||||
SSL
|
||||
Acceptance tests - DONE
|
||||
SSL - Do in NGINX
|
||||
pg_bouncer/postgres pooling (test with Ab to get the errors below)
|
||||
redis-pool
|
||||
|
||||
|
@ -39,6 +39,13 @@ module.exports = {
|
||||
},{
|
||||
status: 200
|
||||
});
|
||||
},
|
||||
'GET /v1/ with SQL parameter on INSERT only. oAuth not used, so public user - should fail': function(){
|
||||
assert.response(app, {
|
||||
url: "/v1/?sql=INSERT%20INTO%20test_table%20(id)%20VALUES%20(1)&database=cartodb_test_user_1_db",
|
||||
method: 'GET'
|
||||
},{
|
||||
status: 400
|
||||
});
|
||||
}
|
||||
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user