@reportportal/client-javascript 5.1.3 → 5.1.4
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/VERSION +1 -1
- package/lib/report-portal-client.js +6 -2
- package/package.json +1 -1
package/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
5.1.
|
|
1
|
+
5.1.5-SNAPSHOT
|
|
@@ -332,7 +332,8 @@ class RPClient {
|
|
|
332
332
|
'filter.in.uuid': launchUUIds,
|
|
333
333
|
'page.size': launchUUIds.length,
|
|
334
334
|
});
|
|
335
|
-
const launchSearchUrl =
|
|
335
|
+
const launchSearchUrl = this.config.mode === 'DEBUG' ?
|
|
336
|
+
`launch/mode?${params.toString()}` : `launch?${params.toString()}`;
|
|
336
337
|
this.logDebug(`Find launches with UUIDs to merge: ${launchUUIds}`);
|
|
337
338
|
return this.restClient
|
|
338
339
|
.retrieveSyncAPI(launchSearchUrl, { headers: this.headers })
|
|
@@ -353,8 +354,11 @@ class RPClient {
|
|
|
353
354
|
const mergeURL = 'launch/merge';
|
|
354
355
|
return this.restClient.create(mergeURL, request, { headers: this.headers });
|
|
355
356
|
})
|
|
356
|
-
.then(() => {
|
|
357
|
+
.then((response) => {
|
|
357
358
|
this.logDebug(`Launches with UUIDs: ${launchUUIds} were successfully merged!`);
|
|
359
|
+
if (this.config.launchUuidPrint) {
|
|
360
|
+
this.config.launchUuidPrintOutput(response.uuid);
|
|
361
|
+
}
|
|
358
362
|
})
|
|
359
363
|
.catch((error) => {
|
|
360
364
|
this.logDebug(`Error merging launches with UUIDs: ${launchUUIds}`, error);
|