Rewrite an insert test to not affect a subsequent select test

Closes #84
This commit is contained in:
Sandro Santilli 2013-03-27 16:46:02 +01:00
parent 8f60735b5e
commit a9f115cfa5

View File

@ -11,7 +11,7 @@ suite('app.auth', function() {
test('valid api key should allow insert in protected tables', function(done){ test('valid api key should allow insert in protected tables', function(done){
assert.response(app, { assert.response(app, {
// view prepare_db.sh to see where to set api_key // view prepare_db.sh to see where to set api_key
url: "/api/v1/sql?api_key=1234&q=INSERT%20INTO%20private_table%20(name)%20VALUES%20('test')", url: "/api/v1/sql?api_key=1234&q=INSERT%20INTO%20private_table%20(name)%20VALUES%20('app_auth_test1')",
headers: {host: 'vizzuality.localhost.lan:8080' }, headers: {host: 'vizzuality.localhost.lan:8080' },
method: 'GET' method: 'GET'