Skip to content

Commit

Permalink
Add integration test
Browse files Browse the repository at this point in the history
  • Loading branch information
Demogorgon314 committed Apr 19, 2023
1 parent 091ee25 commit 6c24aeb
Show file tree
Hide file tree
Showing 7 changed files with 432 additions and 1 deletion.
4 changes: 4 additions & 0 deletions .github/workflows/pulsar-ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -483,6 +483,10 @@ jobs:
- name: Messaging
group: MESSAGING

- name: LoadBalance
group: LOADBALANCE
no_coverage: true

- name: Shade on Java 8
group: SHADE_RUN
runtime_jdk: 8
Expand Down
4 changes: 4 additions & 0 deletions build/run_integration_group.sh
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,10 @@ test_group_messaging() {
mvn_run_integration_test "$@" -DintegrationTestSuiteFile=pulsar-tls.xml -DintegrationTests
}

test_group_loadbalance() {
mvn_run_integration_test "$@" -DintegrationTestSuiteFile=pulsar-loadbalance.xml -DintegrationTests
}

test_group_plugin() {
mvn_run_integration_test "$@" -DintegrationTestSuiteFile=pulsar-plugin.xml -DintegrationTests
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,10 @@ public BrokerContainer(String clusterName, String hostName) {
tailContainerLog();
}

public String getHostName() {
return super.hostname;
}

@Override
protected void afterStart() {
DockerUtils.runCommandAsyncWithLogging(this.dockerClient, this.getContainerId(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ public abstract class PulsarContainer<SelfT extends PulsarContainer<SelfT>> exte
public static final boolean PULSAR_CONTAINERS_LEAVE_RUNNING =
Boolean.parseBoolean(System.getenv("PULSAR_CONTAINERS_LEAVE_RUNNING"));

private final String hostname;
protected final String hostname;
private final String serviceName;
private final String serviceEntryPoint;
private final int servicePort;
Expand Down
Loading

0 comments on commit 6c24aeb

Please sign in to comment.