Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update launch search URL based on config mode #201

Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion lib/report-portal-client.js
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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 })
Expand Down