testaro 2.2.4 → 2.2.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +4 -3
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -220,8 +220,9 @@ const isValidLog = log => Array.isArray(log) && ! log.length;
|
|
|
220
220
|
// Validates an options object.
|
|
221
221
|
const isValidOptions = async options => {
|
|
222
222
|
if (options) {
|
|
223
|
-
const {script, batch, log, reports} = options;
|
|
224
|
-
return
|
|
223
|
+
const {id, script, batch, log, reports} = options;
|
|
224
|
+
return id
|
|
225
|
+
&& isValidScript(script)
|
|
225
226
|
&& isValidBatch(batch)
|
|
226
227
|
&& isValidLog(log)
|
|
227
228
|
&& isValidReports(reports);
|
|
@@ -1136,7 +1137,7 @@ const doBatch = async (options, reportTemplate, hostIndex = 0) => {
|
|
|
1136
1137
|
hostReport.hostName = host.id;
|
|
1137
1138
|
// Add data from the template to the host report.
|
|
1138
1139
|
hostReport.orderName = reportTemplate.id;
|
|
1139
|
-
hostReport.id = `${
|
|
1140
|
+
hostReport.id = `${options.id}-${host.id}`;
|
|
1140
1141
|
hostReport.orderUserName = reportTemplate.userName;
|
|
1141
1142
|
hostReport.orderTime = reportTemplate.orderTime;
|
|
1142
1143
|
hostReport.scriptName = reportTemplate.scriptName;
|