Skip to content

Commit

Permalink
fix(reports): send runner_id when creating report (#13)
Browse files Browse the repository at this point in the history
  • Loading branch information
NivLipetz committed Mar 6, 2019
1 parent bd61729 commit 04da97e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions app/connectors/reporterConnector.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ let requestSender = require('../helpers/requestSender');
let createReport = async (jobConfig, test) => {
const requestBody = {
report_id: jobConfig.runId,
specificPlatformRunId: jobConfig.specificPlatformRunId,
revision_id: jobConfig.revisionId,
job_id: jobConfig.jobId,
test_type: test.type,
Expand All @@ -13,6 +12,7 @@ let createReport = async (jobConfig, test) => {
emails: jobConfig.emails,
test_name: jobConfig.testName,
test_description: jobConfig.description,
runner_id: jobConfig.containerId
};

let options = {
Expand All @@ -21,7 +21,7 @@ let createReport = async (jobConfig, test) => {
headers: {
'x-zooz-request-id': `runner_${jobConfig.runId}`
},
body: requestBody,
body: requestBody
};

const report = await requestSender.sendRequest(options);
Expand All @@ -30,7 +30,7 @@ let createReport = async (jobConfig, test) => {

let postStats = async (jobConfig, stats) => {
let defaultBody = {
container_id: jobConfig.containerId,
runner_id: jobConfig.containerId,
stats_time: Date.now().toString()
};

Expand All @@ -42,7 +42,7 @@ let postStats = async (jobConfig, stats) => {
headers: {
'x-zooz-request-id': `runner_${jobConfig.runId}`
},
body: requestBody,
body: requestBody
};

await requestSender.sendRequest(options);
Expand Down

0 comments on commit 04da97e

Please sign in to comment.