Skip to content
This repository has been archived by the owner on Aug 2, 2022. It is now read-only.

Commit

Permalink
Make IT port number configurable
Browse files Browse the repository at this point in the history
The PerformanceAnalyzerIT class previously assumed that the Performance
Analyzer Webservice would always be listening on port 9600 for any
deployment of PerformanceAnalyzer.

Since this isn't always the case, this commit makes the port number
configurable through a gradle property.
  • Loading branch information
Sid Narayan committed Jul 8, 2020
1 parent 0a90102 commit a270904
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
7 changes: 5 additions & 2 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,11 @@ systemProp.tests.rest.cluster=localhost:9200
# The Elasticsearch cluster node communication endpoint
systemProp.tests.cluster=localhost:9300

# Comment this in if you want a cluster spun up for integration testing
# Set this to true if you want a cluster spun up for integration testing
systemProp.tests.useDockerCluster=false

# Comment this in to enable integration testing
# Set this to true if you want to enable integration testing
systemProp.tests.enableIT=false

# The port number for the PerformanceAnalyzer WebService
systemProp.tests.pa.port=9600
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@

public class PerformanceAnalyzerIT extends ESRestTestCase {
private static final Logger LOG = LogManager.getLogger(PerformanceAnalyzerIT.class);
private static final int PORT = 9600;
private static final int PORT = Integer.parseInt(System.getProperty("tests.pa.port"));
private static final ObjectMapper mapper = new ObjectMapper();
private static RestClient paClient;

Expand Down

0 comments on commit a270904

Please sign in to comment.