Skip to content
This repository has been archived by the owner on Sep 21, 2021. It is now read-only.

Commit

Permalink
Using new BS API endpoint, fixes #1065 (#1066)
Browse files Browse the repository at this point in the history
* Using new BS API endpoint, fixes #1065

* Moving to openjdk8

* Updating API endpoint in unit tests

* Reverting small change
  • Loading branch information
diemol authored Oct 15, 2019
1 parent 9dbcb5d commit b2927f0
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
language: java
jdk:
- oraclejdk8
- openjdk8

sudo: required

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
public class BrowserStackRemoteProxy extends CloudTestingRemoteProxy {

private static final String BROWSER_STACK_URL = getEnv().getStringEnvVariable("BROWSER_STACK_URL", "http://hub-cloud.browserstack.com:80");
private static final String BROWSER_STACK_ACCOUNT_INFO = "https://www.browserstack.com/automate/plan.json";
private static final String BROWSER_STACK_ACCOUNT_INFO = "https://api.browserstack.com/automate/plan.json";
private static final Logger logger = LoggerFactory.getLogger(BrowserStackRemoteProxy.class.getName());
private static final String BROWSER_STACK_USER = getEnv().getStringEnvVariable("BROWSER_STACK_USER", "");
private static final String BROWSER_STACK_KEY = getEnv().getStringEnvVariable("BROWSER_STACK_KEY", "");
Expand Down Expand Up @@ -85,7 +85,7 @@ public String getCloudTestingServiceUrl() {
@Override
public TestInformation getTestInformation(String seleniumSessionId) {
// https://BS_USER:[email protected]/automate/sessions/SELENIUM_SESSION_ID.json
String browserStackBaseTestUrl = "https://www.browserstack.com/automate/sessions/";
String browserStackBaseTestUrl = "https://api.browserstack.com/automate/sessions/";
String browserStackTestUrl = browserStackBaseTestUrl + String.format("%s.json", seleniumSessionId);
for (int i = 0; i < 5; i++) {
try {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ public void testInformationIsRetrievedWhenStoppingSession() throws IOException {
TestUtils.ensureRequiredInputFilesExist(temporaryFolder);
CommonProxyUtilities commonProxyUtilities = TestUtils.mockCommonProxyUtilitiesForDashboardTesting(temporaryFolder);
Environment env = new Environment();
String mockTestInformationUrl = "https://www.browserstack.com/automate/sessions/77e51cead8e6e37b0a0feb0dfa69325b2c4acf97.json";
String mockTestInformationUrl = "https://api.browserstack.com/automate/sessions/77e51cead8e6e37b0a0feb0dfa69325b2c4acf97.json";
when(commonProxyUtilities.readJSONFromUrl(mockTestInformationUrl,
env.getStringEnvVariable("BROWSER_STACK_USER", ""),
env.getStringEnvVariable("BROWSER_STACK_KEY", ""))).thenReturn(informationSample);
Expand Down

0 comments on commit b2927f0

Please sign in to comment.