Skip to content

Commit

Permalink
EPMRPP-93787 Update saucelabs client (#28)
Browse files Browse the repository at this point in the history
  • Loading branch information
grabsefx authored Sep 11, 2024
1 parent f6f36ac commit 4b8e13f
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
import com.epam.reportportal.saucelabs.client.RestClientBuilder;
import com.epam.reportportal.saucelabs.model.SauceProperties;
import com.epam.ta.reportportal.entity.integration.Integration;
import com.saucelabs.saucerest.model.jobs.JobAssets;
import java.util.Map;
import lombok.extern.slf4j.Slf4j;
import org.apache.commons.lang3.StringUtils;
Expand Down Expand Up @@ -57,9 +56,7 @@ public Object executeCommand(Integration integration, Map<String, Object> params

private Object getWebDriverLogs(RestTemplate restTemplate, SauceProperties sp) {
try {
JobAssets jobAssets =
restTemplate.getForObject(getJobAssetsUrl(sp), JobAssets.class);
String url = getJobAssetsUrl(sp) + "/" + jobAssets.sauceLog;
String url = getJobAssetsUrl(sp) + "/log.json";
return restTemplate.getForObject(url, Object.class);

} catch (HttpClientErrorException httpException) {
Expand Down

0 comments on commit 4b8e13f

Please sign in to comment.