-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #20 from reportportal/rc/5.11.0
Release 5.11.0
- Loading branch information
Showing
5 changed files
with
58 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
name: Build | ||
|
||
on: | ||
pull_request: | ||
push: | ||
branches: | ||
- master | ||
- develop | ||
paths-ignore: | ||
- '.github/**' | ||
- README.md | ||
- gradle.properties | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v2 | ||
|
||
- name: Set up JDK 11 | ||
uses: actions/setup-java@v2 | ||
with: | ||
distribution: 'adopt' | ||
java-version: '11' | ||
|
||
- name: Grant execute permission for gradlew | ||
run: chmod +x gradlew | ||
|
||
- name: Setup git credentials | ||
uses: oleksiyrudenko/gha-git-credentials@v2 | ||
with: | ||
name: 'reportportal.io' | ||
email: '[email protected]' | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Build with Gradle | ||
id: build | ||
run: | | ||
./gradlew build |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
version=5.7.2 | ||
version=5.11.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,23 +21,24 @@ | |
import com.epam.reportportal.extension.ReportPortalExtensionPoint; | ||
import com.google.common.collect.ImmutableMap; | ||
import com.saucelabs.saucerest.DataCenter; | ||
import java.util.ArrayList; | ||
import java.util.Arrays; | ||
import java.util.HashMap; | ||
import java.util.Map; | ||
import java.util.function.Supplier; | ||
import java.util.stream.Collectors; | ||
import org.jasypt.util.text.BasicTextEncryptor; | ||
import org.pf4j.Extension; | ||
import org.springframework.beans.factory.annotation.Autowired; | ||
import org.springframework.beans.factory.annotation.Value; | ||
import org.springframework.context.ApplicationContext; | ||
import org.springframework.stereotype.Service; | ||
|
||
import java.util.*; | ||
import java.util.function.Supplier; | ||
import java.util.stream.Collectors; | ||
|
||
/** | ||
* @author <a href="mailto:[email protected]">Pavel Bortnik</a> | ||
*/ | ||
@Extension | ||
public class SaucelabsExtension implements ReportPortalExtensionPoint { | ||
|
||
private static final String DOCUMENTATION_LINK_FIELD = "documentationLink"; | ||
private static final String DOCUMENTATION_LINK = "https://reportportal.io/docs/plugins/SauceLabs"; | ||
static final String JOB_ID = "jobId"; | ||
|
||
private final Supplier<Map<String, PluginCommand<?>>> pluginCommandMapping = new MemoizingSupplier<>(this::getCommands); | ||
|
@@ -56,6 +57,7 @@ public SaucelabsExtension() { | |
public Map<String, ?> getPluginParams() { | ||
Map<String, Object> params = new HashMap<>(); | ||
params.put(ALLOWED_COMMANDS, new ArrayList<>(pluginCommandMapping.get().keySet())); | ||
params.put(DOCUMENTATION_LINK_FIELD, DOCUMENTATION_LINK); | ||
params.put("dataCenters", Arrays.stream(DataCenter.values()).map(Enum::toString).collect(Collectors.toList())); | ||
return params; | ||
} | ||
|