Skip to content

Commit

Permalink
Merge pull request #445 from wicherska/2.141
Browse files Browse the repository at this point in the history
Version 2.141
  • Loading branch information
szprutamich authored Apr 12, 2022
2 parents 0470825 + 51619ee commit cc65007
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 79 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>com.testdroid</groupId>
<artifactId>testdroid-api</artifactId>
<version>2.140</version>
<version>2.141</version>
<packaging>jar</packaging>
<name>Bitbar API v2</name>
<url>https://github.com/bitbar/testdroid-api</url>
Expand Down
10 changes: 8 additions & 2 deletions src/main/java/com/testdroid/api/model/APIDeviceSession.java
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,14 @@ public String getDisplayName() {
@XmlType(namespace = "APIDeviceSession")
public enum Type {
AUTOMATIC,
MANUAL,
REMOTE
MANUAL, // TODO to be removed with >= 2.142
MANUAL_APP,
MANUAL_WEB,
REMOTE;

public boolean isManual() {
return this == MANUAL || this == MANUAL_APP || this == MANUAL_WEB;
}
}

@XmlType(namespace = "APIDeviceSession")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public class APIDeviceSessionConfig extends APIEntity implements Serializable {

private APITunnelSettings tunnelSettings;

private APIDeviceSession.Type type = APIDeviceSession.Type.MANUAL;
private APIDeviceSession.Type type;

private String url;

Expand Down
74 changes: 0 additions & 74 deletions src/main/java/com/testdroid/api/util/BitbarUtils.java

This file was deleted.

1 change: 0 additions & 1 deletion src/test/java/com/testdroid/api/APIUserAPIClientTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@
import static com.testdroid.api.model.APIFileConfig.Action.INSTALL;
import static com.testdroid.api.model.APIFileConfig.Action.RUN_TEST;
import static com.testdroid.api.model.APITestRun.State.WAITING;
import static com.testdroid.api.util.BitbarUtils.loadFile;
import static com.testdroid.cloud.test.categories.TestTags.API_CLIENT;
import static java.lang.Integer.MAX_VALUE;
import static java.util.Collections.singletonMap;
Expand Down
4 changes: 4 additions & 0 deletions src/test/java/com/testdroid/api/BaseAPIClientTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
import org.junit.jupiter.params.provider.Arguments;
import org.junit.jupiter.params.provider.ArgumentsProvider;

import java.io.File;
import java.util.*;
import java.util.stream.Stream;

Expand Down Expand Up @@ -123,4 +124,7 @@ static DefaultAPIClient createDefaultApiClientWithProxy(HttpHost proxy) throws A
return new DefaultAPIClient(CLOUD_URL, user.getEmail(), USER_PASSWORD, proxy, false);
}

static File loadFile(String name) {
return new File(BaseAPIClientTest.class.getResource(name).getFile());
}
}

0 comments on commit cc65007

Please sign in to comment.