diff --git a/lib/report-portal-client.js b/lib/report-portal-client.js index be95cee..813225a 100644 --- a/lib/report-portal-client.js +++ b/lib/report-portal-client.js @@ -319,6 +319,7 @@ class RPClient { * "description": string, * "mergeType": 'BASIC' | 'DEEP', * "name": string + * "mode": 'DEBUG' || 'DEFAULT', * } * Please, keep in mind that this method is work only in case * the option isLaunchMergeRequired is true. @@ -332,7 +333,8 @@ class RPClient { 'filter.in.uuid': launchUUIds, 'page.size': launchUUIds.length, }); - const launchSearchUrl = `launch?${params.toString()}`; + const launchSearchUrl = mergeOptions.mode === 'DEBUG' || this.config.mode === 'DEBUG' ? + `launch/mode?${params.toString()}` : `launch?${params.toString()}`; this.logDebug(`Find launches with UUIDs to merge: ${launchUUIds}`); return this.restClient .retrieveSyncAPI(launchSearchUrl, { headers: this.headers })