File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -12,15 +12,15 @@ tests['valid api key should allow insert in protected tables'] = function(){
12
12
13
13
headers : { host : 'vizzuality.localhost.lan:8080' } ,
14
14
method : 'GET'
15
- } , {
16
- status : 200
17
- } ) ;
15
+ } , { } , function ( res ) {
16
+ assert . equal ( res . statusCode , 200 , res . body ) ;
17
+ } ) ;
18
18
}
19
19
20
20
tests [ 'invalid api key should NOT allow insert in protected tables' ] = function ( ) {
21
21
assert . response ( app , {
22
22
// view prepare_db.sh to see where to set api_key
23
- url : "/api/v1/sql?api_key=RAMBO&q=INSERT%20INTO%20private_table%20(name)%20VALUES%20('test ')" ,
23
+ url : "/api/v1/sql?api_key=RAMBO&q=INSERT%20INTO%20private_table%20(name)%20VALUES%20('RAMBO ')" ,
24
24
25
25
headers : { host : 'vizzuality.cartodb.com' } ,
26
26
method : 'GET'
You can’t perform that action at this time.
0 commit comments