Skip to content

Commit

Permalink
fix group test
Browse files Browse the repository at this point in the history
  • Loading branch information
chickenlj committed Mar 20, 2024
1 parent 0d8ed8e commit c098722
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 8 deletions.
27 changes: 19 additions & 8 deletions 2-advanced/dubbo-samples-group/case-configuration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,22 +15,33 @@
# limitations under the License.

services:
group-provider:
zookeeper:
image: zookeeper:latest

provider:
type: app
basedir: dubbo-samples-group-provider
mainClass: org.apache.dubbo.samples.group.GroupProvider
group-consumer:
mainClass: org.apache.dubbo.samples.group.provider.ProviderApplication
systemProps:
- zookeeper.address=zookeeper
waitPortsBeforeRun:
- zookeeper:2181
checkPorts:
- 20880
checkLog: "dubbo service started"

consumer:
type: test
basedir: dubbo-samples-group-consumer
tests:
- "**/*IT.class"
systemProps:
- zookeeper.address=group-provider
- zookeeper.address=zookeeper
- zookeeper.port=2181
- dubbo.address=group-provider
- dubbo.address=provider
- dubbo.port=20880
waitPortsBeforeRun:
- group-provider:2181
- group-provider:20880
- zookeeper:2181
- provider:20880
depends_on:
- group-provider
- provider
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,6 @@
public class ProviderApplication {
public static void main(String[] args) {
SpringApplication.run(ProviderApplication.class, args);
System.out.println("dubbo service started");
}
}

0 comments on commit c098722

Please sign in to comment.