diff --git a/NEWS.md b/NEWS.md index b8b4ec0a..68244475 100644 --- a/NEWS.md +++ b/NEWS.md @@ -5,7 +5,6 @@ * Fix windowing with CTE * Retain UTC offset in JSON date output * Set max-age=0 in Cache-Control when using no-cache -* Add support for GET params in POST requests 1.4.0 ----- diff --git a/test/acceptance/app.test.js b/test/acceptance/app.test.js index f7c44f6a..0b7e5cbc 100644 --- a/test/acceptance/app.test.js +++ b/test/acceptance/app.test.js @@ -980,44 +980,4 @@ test('GET /api/v1/sql with SQL parameter on SELECT only should return CORS heade }); }); - -test("rows_per_page limit the number of results with get", -function(done){ - assert.response(app, { - url: '/api/v1/sql?' + querystring.stringify({ - q: 'selECT cartodb_id*3 FROM untitle_table_4 limit 10', - api_key: '1234', - rows_per_page: 2, - page: 0 - }), - headers: {host: 'vizzuality.cartodb.com'}, - method: 'GET' - },{ }, function(res) { - assert.equal(res.statusCode, 200, res.body); - var parsed = JSON.parse(res.body); - assert.equal(parsed.rows.length, 2); - done(); - }); -}); - -test("rows_per_page limit the number of results with post", -function(done){ - assert.response(app, { - url: '/api/v1/sql', - data: querystring.stringify({ - q: 'selECT cartodb_id*3 FROM untitle_table_4 limit 10', - api_key: '1234', - rows_per_page: 2, - page: 0 - }), - headers: {host: 'vizzuality.cartodb.com', 'Content-Type': 'application/x-www-form-urlencoded' }, - method: 'POST' - },{ }, function(res) { - assert.equal(res.statusCode, 200, res.body); - var parsed = JSON.parse(res.body); - assert.equal(parsed.rows.length, 2); - done(); - }); -}); - });