diff --git a/index.js b/index.js index 5479cb9..4e4fc16 100644 --- a/index.js +++ b/index.js @@ -50,8 +50,7 @@ TestRail.prototype._callAPI = function (method, url, queryVariables, body, callb headers: { 'content-type': 'application/json', 'accept': 'application/json' - }, - rejectUnauthorized: false + } }; if(body != null) { @@ -284,6 +283,16 @@ TestRail.prototype.deleteProject = function (project_id, callback) { return this.apiPost('delete_project/' + project_id, callback); }; +// ----- Reports ----- + +TestRail.prototype.getReports = function (project_id, callback) { + return this.apiGet('get_reports/' + project_id, callback); +}; + +TestRail.prototype.runReport = function (report_id, callback) { + return this.apiGet('run_report/' + report_id, callback); +}; + // ----- Results ----- TestRail.prototype.getResults = function (test_id, filters, callback) {