From 04da97e8cd30a9b424ce94053b7318a282ae4997 Mon Sep 17 00:00:00 2001 From: NivLipetz <31369413+NivLipetz@users.noreply.github.com> Date: Wed, 6 Mar 2019 08:09:10 +0200 Subject: [PATCH] fix(reports): send runner_id when creating report (#13) --- app/connectors/reporterConnector.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/connectors/reporterConnector.js b/app/connectors/reporterConnector.js index 31a8126e..55b8aa8c 100644 --- a/app/connectors/reporterConnector.js +++ b/app/connectors/reporterConnector.js @@ -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, @@ -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 = { @@ -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); @@ -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() }; @@ -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);