Change error expectation

This commit is contained in:
Raul Ochoa 2016-04-14 12:56:20 +02:00
parent 26149e7755
commit 9ab4eb5801

View File

@ -176,8 +176,10 @@ describe('analysis-layers', function() {
testClient.getLayergroup(PERMISSION_DENIED_RESPONSE, function(err, layergroupResult) { testClient.getLayergroup(PERMISSION_DENIED_RESPONSE, function(err, layergroupResult) {
assert.ok(!err, err); assert.ok(!err, err);
// TODO add a better error message: Your requests requires API key as it needs write permissions. assert.deepEqual(
assert.deepEqual(layergroupResult.errors, ["permission denied for relation cdb_analysis_catalog"]); layergroupResult.errors,
["Analysis requires authentication with API key: permission denied."]
);
testClient.drain(done); testClient.drain(done);
}); });