Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion dubbo-samples-cache/case-versions.conf
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,5 @@
# Supported component versions of the test case

# Spring app
dubbo.version=2.7*, 3.*
dubbo.version=2.7*
spring.version=4.*, 5.*
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,5 @@
# Supported component versions of the test case

# SpringBoot/SpringCloud app
dubbo.version=2.7*, 3.*
dubbo.version=2.7*
spring-boot.version=1.*
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,5 @@
# Supported component versions of the test case

# SpringBoot/SpringCloud app
dubbo.version=2.7*, 3.*
dubbo.version=2.7*
spring-boot.version=1.*
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,5 @@
# Supported component versions of the test case

# SpringBoot/SpringCloud app
dubbo.version=2.7*, 3.*
dubbo.version=2.7*
spring-boot.version=1.*
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ public static void generateDubboPropertiesForGlobal() {
"dubbo.registry.address=zookeeper://" + zookeeperHost + ":2181\n" +
"dubbo.protocols.dubbo1.name=dubbo\n" +
"dubbo.protocols.dubbo1.port=20991\n" +
"dubbo.protocols.hessian1.name=hessian\n" +
"dubbo.protocols.hessian1.port=8089";
"dubbo.protocols.dubbo2.name=dubbo\n" +
"dubbo.protocols.dubbo2.port=20992";

System.out.println(str);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,6 @@
dubbo.registry.address=zookeeper://127.0.0.1:2181
dubbo.protocols.dubbo1.name=dubbo
dubbo.protocols.dubbo1.port=20991
dubbo.protocols.hessian1.name=hessian
dubbo.protocols.hessian1.port=8089
dubbo.protocols.dubbo2.name=dubbo
dubbo.protocols.dubbo2.port=20992

Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@
<dubbo:config-center address="zookeeper://${zookeeper.address:127.0.0.1}:2181"/>

<bean id="demoService" class="org.apache.dubbo.samples.configcenter.impl.DemoServiceImpl"/>
<dubbo:service protocol="hessian1" interface="org.apache.dubbo.samples.configcenter.api.DemoService"
ref="demoService"/>
<dubbo:service protocol="dubbo1" interface="org.apache.dubbo.samples.configcenter.api.DemoService"
ref="demoService"/>
<dubbo:service protocol="dubbo2" interface="org.apache.dubbo.samples.configcenter.api.DemoService"
ref="demoService"/>

</beans>
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,5 @@
# Supported component versions of the test case

# Spring app
dubbo.version=2.7*, 3.*
dubbo.version=2.7*
spring.version=4.*, 5.*
2 changes: 1 addition & 1 deletion dubbo-samples-consul/case-versions.conf
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,5 @@
# Supported component versions of the test case

# Spring app
dubbo.version=2.7*, 3.*
dubbo.version=2.7*
spring.version=4.*, 5.*
2 changes: 1 addition & 1 deletion dubbo-samples-default-config/case-versions.conf
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,5 @@
# Supported component versions of the test case

# Spring app
dubbo.version=2.7*, 3.*
dubbo.version=2.7*
spring.version=4.*, 5.*
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,5 @@
# Supported component versions of the test case

# Spring app
dubbo.version=2.7*, 3.*
dubbo.version=2.7*
spring.version=4.*, 5.*
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,5 @@
# Supported component versions of the test case

# Spring app
dubbo.version=2.7*, 3.*
dubbo.version=2.7*
spring.version=4.*, 5.*
2 changes: 1 addition & 1 deletion dubbo-samples-http/case-versions.conf
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,5 @@
# Supported component versions of the test case

# Spring app
dubbo.version=2.7*, 3.*
dubbo.version=2.7*
spring.version=4.*, 5.*
2 changes: 1 addition & 1 deletion dubbo-samples-merge/case-versions.conf
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,5 @@
# Supported component versions of the test case

# Spring app
dubbo.version=2.7*, 3.*
dubbo.version=2.7*
spring.version=4.*, 5.*
2 changes: 1 addition & 1 deletion dubbo-samples-monitor/case-versions.conf
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,5 @@
# Supported component versions of the test case

# Spring app
dubbo.version=2.7*, 3.*
dubbo.version=2.7*
spring.version=4.*, 5.*
2 changes: 1 addition & 1 deletion dubbo-samples-protostuff/case-versions.conf
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,5 @@
# Supported component versions of the test case

# SpringBoot app
dubbo.version=2.7*, 3.*
dubbo.version=2.7*
spring-boot.version=2.*
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ public class CompatibleServiceDiscovery implements ServiceDiscovery {

protected ServiceInstance serviceInstance;

protected URL url;

//@Override
public ServiceInstance getLocalInstance() {
return serviceInstance;
Expand All @@ -44,7 +46,7 @@ public void update(ServiceInstance serviceInstance) throws RuntimeException {

@Override
public void initialize(URL registryURL) throws Exception {

url = registryURL;
}

@Override
Expand All @@ -62,4 +64,8 @@ public Set<String> getServices() {
return null;
}

@Override
public URL getUrl() {
return url;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public void testRegisteredProviders() throws Exception {
List<String> decodedUrls = urls.stream().map(URL::decode).collect(Collectors.toList());
Assert.assertEquals(1, decodedUrls.size());
String url = decodedUrls.get(0);
Assert.assertTrue(url.startsWith("compatible://"));
Assert.assertTrue(url.startsWith("compatible://") || url.startsWith("dubbo://"));
}

@Test
Expand All @@ -52,7 +52,7 @@ public void testRegisteredConsumers() throws Exception {
List<String> decodedUrls = urls.stream().map(URL::decode).collect(Collectors.toList());
Assert.assertFalse(decodedUrls.isEmpty());
String url = decodedUrls.get(0);
Assert.assertTrue(url.startsWith("consumer://"));
Assert.assertTrue(url.startsWith("consumer://") || url.startsWith("dubbo://"));
}

@Test
Expand Down
2 changes: 1 addition & 1 deletion dubbo-samples-thrift/case-versions.conf
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,5 @@
# Supported component versions of the test case

# Spring app
dubbo.version=2.7*, 3.*
dubbo.version=2.7*
spring.version=4.*, 5.*
2 changes: 1 addition & 1 deletion dubbo-samples-validation/case-versions.conf
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,5 @@
# Supported component versions of the test case

# Spring app
dubbo.version=2.7*, 3.*
dubbo.version=2.7*
spring.version=4.*, 5.*
2 changes: 1 addition & 1 deletion dubbo-samples-webservice/case-versions.conf
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
# Supported component versions of the test case

# Spring app
dubbo.version=2.7*, 3.*
dubbo.version=2.7*
spring.version=4.*, 5.*
2 changes: 1 addition & 1 deletion dubbo-samples-zipkin/case-versions.conf
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,5 @@
# Supported component versions of the test case

# Spring app
dubbo.version=2.7*, 3.*
dubbo.version=2.7*
spring.version=4.*, 5.*