This is an automated email from the ASF dual-hosted git repository.
albumenj pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/dubbo-samples.git
The following commit(s) were added to refs/heads/master by this push:
new 5e684c666 Add test cases to verify apache/dubbo#13360 (#1018)
5e684c666 is described below
commit 5e684c666fb6b092271ea38f861f741ca4d6205d
Author: Albumen Kevin <[email protected]>
AuthorDate: Thu Nov 16 15:04:44 2023 +0800
Add test cases to verify apache/dubbo#13360 (#1018)
* Add test cases to verify apache/dubbo#13360
* fix script
* fix script
---
.../dubbo-call-sc/case-versions.conf | 2 +-
.../sc-call-dubbo/case-versions.conf | 2 +-
.../case-configuration.yml | 43 +++++++
.../case-versions.conf | 7 +-
.../dubbo-samples-test-13360-32x/pom.xml | 137 +++++++++++++++++++++
.../apache/dubbo/samples/api/GreetingsService.java | 22 ++++
.../apache/dubbo/samples/provider/Application.java | 32 +++++
.../samples/provider/GreetingsServiceImpl.java | 29 +++++
.../src/main/resources/application.properties | 8 ++
.../dubbo/samples/client/GreetingServiceIT.java | 40 ++++++
.../case-configuration.yml | 43 +++++++
.../case-versions.conf | 7 +-
.../dubbo-samples-test-13360-33x/pom.xml | 137 +++++++++++++++++++++
.../apache/dubbo/samples/api/GreetingsService.java | 22 ++++
.../apache/dubbo/samples/provider/Application.java | 32 +++++
.../samples/provider/GreetingsServiceImpl.java | 29 +++++
.../src/main/resources/application.properties | 8 ++
.../dubbo/samples/client/GreetingServiceIT.java | 40 ++++++
99-integration/pom.xml | 2 +
19 files changed, 632 insertions(+), 10 deletions(-)
diff --git
a/2-advanced/dubbo-samples-springcloud/dubbo-call-sc/case-versions.conf
b/2-advanced/dubbo-samples-springcloud/dubbo-call-sc/case-versions.conf
index 2d57f160e..c38d08828 100644
--- a/2-advanced/dubbo-samples-springcloud/dubbo-call-sc/case-versions.conf
+++ b/2-advanced/dubbo-samples-springcloud/dubbo-call-sc/case-versions.conf
@@ -20,6 +20,6 @@
# Supported component versions of the test case
# SpringBoot/SpringCloud app
-dubbo.version=3.3.*
+dubbo.version=[ >= 3.3.0 ]
spring-boot.version=2.7.*
java.version= [ >= 8]
diff --git
a/2-advanced/dubbo-samples-springcloud/sc-call-dubbo/case-versions.conf
b/2-advanced/dubbo-samples-springcloud/sc-call-dubbo/case-versions.conf
index 375204847..b8cf2f718 100644
--- a/2-advanced/dubbo-samples-springcloud/sc-call-dubbo/case-versions.conf
+++ b/2-advanced/dubbo-samples-springcloud/sc-call-dubbo/case-versions.conf
@@ -20,6 +20,6 @@
# Supported component versions of the test case
# SpringBoot/SpringCloud app
-dubbo.version=3.3.*
+dubbo.version=[ >= 3.3.0 ]
spring-boot.version=2.7.*
java.version= [>= 8]
diff --git a/99-integration/dubbo-samples-test-13360-32x/case-configuration.yml
b/99-integration/dubbo-samples-test-13360-32x/case-configuration.yml
new file mode 100644
index 000000000..404179f5f
--- /dev/null
+++ b/99-integration/dubbo-samples-test-13360-32x/case-configuration.yml
@@ -0,0 +1,43 @@
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements. See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership. The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+services:
+ zookeeper:
+ image: zookeeper:latest
+
+ provider:
+ type: app
+ basedir: .
+ mainClass: org.apache.dubbo.samples.provider.Application
+ systemProps:
+ - zookeeper.address=zookeeper
+ waitPortsBeforeRun:
+ - zookeeper:2181
+ checkLog: "Dubbo application started."
+ depends_on:
+ - zookeeper
+
+ test:
+ type: test
+ basedir: .
+ tests:
+ - "**/*IT.class"
+ systemProps:
+ - zookeeper.address=zookeeper
+ waitPortsBeforeRun:
+ - zookeeper:2181
+ depends_on:
+ - zookeeper
diff --git
a/2-advanced/dubbo-samples-springcloud/sc-call-dubbo/case-versions.conf
b/99-integration/dubbo-samples-test-13360-32x/case-versions.conf
similarity index 89%
copy from 2-advanced/dubbo-samples-springcloud/sc-call-dubbo/case-versions.conf
copy to 99-integration/dubbo-samples-test-13360-32x/case-versions.conf
index 375204847..d147721b2 100644
--- a/2-advanced/dubbo-samples-springcloud/sc-call-dubbo/case-versions.conf
+++ b/99-integration/dubbo-samples-test-13360-32x/case-versions.conf
@@ -19,7 +19,6 @@
# Supported component versions of the test case
-# SpringBoot/SpringCloud app
-dubbo.version=3.3.*
-spring-boot.version=2.7.*
-java.version= [>= 8]
+# Spring app
+dubbo.version=3.2.*
+java.version= [ >= 8 ]
diff --git a/99-integration/dubbo-samples-test-13360-32x/pom.xml
b/99-integration/dubbo-samples-test-13360-32x/pom.xml
new file mode 100644
index 000000000..7d8f8bd60
--- /dev/null
+++ b/99-integration/dubbo-samples-test-13360-32x/pom.xml
@@ -0,0 +1,137 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ ~ Licensed to the Apache Software Foundation (ASF) under one or more
+ ~ contributor license agreements. See the NOTICE file distributed with
+ ~ this work for additional information regarding copyright ownership.
+ ~ The ASF licenses this file to You under the Apache License, Version 2.0
+ ~ (the "License"); you may not use this file except in compliance with
+ ~ the License. You may obtain a copy of the License at
+ ~
+ ~ http://www.apache.org/licenses/LICENSE-2.0
+ ~
+ ~ Unless required by applicable law or agreed to in writing, software
+ ~ distributed under the License is distributed on an "AS IS" BASIS,
+ ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ ~ See the License for the specific language governing permissions and
+ ~ limitations under the License.
+ -->
+
+<project xmlns="http://maven.apache.org/POM/4.0.0"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
http://maven.apache.org/xsd/maven-4.0.0.xsd">
+ <parent>
+ <groupId>org.apache</groupId>
+ <artifactId>apache</artifactId>
+ <version>23</version>
+ <relativePath/>
+ </parent>
+
+ <groupId>org.apache.dubbo</groupId>
+ <version>1.0-SNAPSHOT</version>
+
+ <modelVersion>4.0.0</modelVersion>
+
+ <artifactId>dubbo-samples-test-13360-32x</artifactId>
+ <name>Dubbo Samples Test for 13360-32x</name>
+ <description>Dubbo Samples Test for 13360 On Dubbo 3.2.x</description>
+
+ <properties>
+ <dubbo.version>3.2.8</dubbo.version>
+ <junit5.version>5.9.2</junit5.version>
+ <maven.compiler.source>1.8</maven.compiler.source>
+ <maven.compiler.target>1.8</maven.compiler.target>
+ <slf4j-log4j12.version>1.7.33</slf4j-log4j12.version>
+ <awaitility.version>4.2.0</awaitility.version>
+ <spring-boot.version>2.7.6</spring-boot.version>
+ </properties>
+
+ <dependencyManagement>
+ <dependencies>
+ <dependency>
+ <groupId>org.springframework.boot</groupId>
+ <artifactId>spring-boot-dependencies</artifactId>
+ <version>${spring-boot.version}</version>
+ <type>pom</type>
+ <scope>import</scope>
+ </dependency>
+ </dependencies>
+ </dependencyManagement>
+
+ <dependencies>
+ <dependency>
+ <groupId>org.apache.dubbo</groupId>
+ <artifactId>dubbo-spring-boot-starter</artifactId>
+ <version>${dubbo.version}</version>
+ </dependency>
+
+ <dependency>
+ <groupId>org.apache.dubbo</groupId>
+ <artifactId>dubbo-spring-boot-observability-starter</artifactId>
+ <version>${dubbo.version}</version>
+ </dependency>
+
+ <dependency>
+ <groupId>org.apache.dubbo</groupId>
+ <artifactId>dubbo-spring-boot-actuator</artifactId>
+ <version>${dubbo.version}</version>
+ </dependency>
+
+ <dependency>
+ <groupId>org.apache.dubbo</groupId>
+ <artifactId>dubbo-dependencies-zookeeper-curator5</artifactId>
+ <version>${dubbo.version}</version>
+ <type>pom</type>
+ <exclusions>
+ <exclusion>
+ <artifactId>logback-classic</artifactId>
+ <groupId>ch.qos.logback</groupId>
+ </exclusion>
+ <exclusion>
+ <artifactId>logback-core</artifactId>
+ <groupId>ch.qos.logback</groupId>
+ </exclusion>
+ </exclusions>
+ </dependency>
+
+ <dependency>
+ <groupId>org.springframework.boot</groupId>
+ <artifactId>spring-boot-starter-actuator</artifactId>
+ </dependency>
+
+ <dependency>
+ <groupId>org.springframework.boot</groupId>
+ <artifactId>spring-boot-starter</artifactId>
+ </dependency>
+
+ <dependency>
+ <groupId>com.google.protobuf</groupId>
+ <artifactId>protobuf-java</artifactId>
+ <version>3.22.2</version>
+ </dependency>
+
+ <dependency>
+ <groupId>org.awaitility</groupId>
+ <artifactId>awaitility</artifactId>
+ <version>${awaitility.version}</version>
+ </dependency>
+
+ <dependency>
+ <groupId>org.junit.jupiter</groupId>
+ <artifactId>junit-jupiter-engine</artifactId>
+ <version>${junit5.version}</version>
+ <scope>test</scope>
+ </dependency>
+ <dependency>
+ <groupId>org.junit.jupiter</groupId>
+ <artifactId>junit-jupiter-api</artifactId>
+ <version>${junit5.version}</version>
+ <scope>test</scope>
+ </dependency>
+ <dependency>
+ <groupId>org.junit.jupiter</groupId>
+ <artifactId>junit-jupiter-params</artifactId>
+ <version>${junit5.version}</version>
+ <scope>test</scope>
+ </dependency>
+ </dependencies>
+</project>
diff --git
a/99-integration/dubbo-samples-test-13360-32x/src/main/java/org/apache/dubbo/samples/api/GreetingsService.java
b/99-integration/dubbo-samples-test-13360-32x/src/main/java/org/apache/dubbo/samples/api/GreetingsService.java
new file mode 100644
index 000000000..9d3a319d3
--- /dev/null
+++
b/99-integration/dubbo-samples-test-13360-32x/src/main/java/org/apache/dubbo/samples/api/GreetingsService.java
@@ -0,0 +1,22 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.dubbo.samples.api;
+
+public interface GreetingsService {
+ String echo(String name);
+}
diff --git
a/99-integration/dubbo-samples-test-13360-32x/src/main/java/org/apache/dubbo/samples/provider/Application.java
b/99-integration/dubbo-samples-test-13360-32x/src/main/java/org/apache/dubbo/samples/provider/Application.java
new file mode 100644
index 000000000..d929849df
--- /dev/null
+++
b/99-integration/dubbo-samples-test-13360-32x/src/main/java/org/apache/dubbo/samples/provider/Application.java
@@ -0,0 +1,32 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.dubbo.samples.provider;
+
+import org.springframework.boot.SpringApplication;
+import org.springframework.boot.autoconfigure.SpringBootApplication;
+
+import java.util.concurrent.CountDownLatch;
+
+@SpringBootApplication(scanBasePackages =
{"org.apache.dubbo.samples.provider"})
+public class Application {
+ public static void main(String[] args) throws InterruptedException {
+ SpringApplication.run(Application.class, args);
+ System.out.println("Dubbo application started.");
+ new CountDownLatch(1).await();
+ }
+}
diff --git
a/99-integration/dubbo-samples-test-13360-32x/src/main/java/org/apache/dubbo/samples/provider/GreetingsServiceImpl.java
b/99-integration/dubbo-samples-test-13360-32x/src/main/java/org/apache/dubbo/samples/provider/GreetingsServiceImpl.java
new file mode 100644
index 000000000..48087a30b
--- /dev/null
+++
b/99-integration/dubbo-samples-test-13360-32x/src/main/java/org/apache/dubbo/samples/provider/GreetingsServiceImpl.java
@@ -0,0 +1,29 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.dubbo.samples.provider;
+
+import org.apache.dubbo.config.annotation.DubboService;
+import org.apache.dubbo.samples.api.GreetingsService;
+
+@DubboService
+public class GreetingsServiceImpl implements GreetingsService {
+ @Override
+ public String echo(String name) {
+ return name;
+ }
+}
diff --git
a/99-integration/dubbo-samples-test-13360-32x/src/main/resources/application.properties
b/99-integration/dubbo-samples-test-13360-32x/src/main/resources/application.properties
new file mode 100644
index 000000000..02e8b7331
--- /dev/null
+++
b/99-integration/dubbo-samples-test-13360-32x/src/main/resources/application.properties
@@ -0,0 +1,8 @@
+spring.application.name=test-provider
+
+dubbo.enabled=false
+dubbo.application.name=test-provider
+dubbo.registry.address=zookeeper://${zookeeper.address:127.0.0.1}:2181
+dubbo.protocol.name=dubbo
+dubbo.protocol.port=20880
+dubbo.provider.token=true
diff --git
a/99-integration/dubbo-samples-test-13360-32x/src/test/java/org/apache/dubbo/samples/client/GreetingServiceIT.java
b/99-integration/dubbo-samples-test-13360-32x/src/test/java/org/apache/dubbo/samples/client/GreetingServiceIT.java
new file mode 100644
index 000000000..2511d2e9a
--- /dev/null
+++
b/99-integration/dubbo-samples-test-13360-32x/src/test/java/org/apache/dubbo/samples/client/GreetingServiceIT.java
@@ -0,0 +1,40 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.dubbo.samples.client;
+
+import org.apache.dubbo.config.ApplicationConfig;
+import org.apache.dubbo.config.ReferenceConfig;
+import org.apache.dubbo.config.RegistryConfig;
+import org.apache.dubbo.samples.api.GreetingsService;
+
+import org.junit.jupiter.api.Assertions;
+import org.junit.jupiter.api.Test;
+
+public class GreetingServiceIT {
+ private static String zookeeperHost =
System.getProperty("zookeeper.address", "127.0.0.1");
+
+ @Test
+ public void test1() {
+ ReferenceConfig<GreetingsService> referenceHessian2 = new
ReferenceConfig<>();
+ referenceHessian2.setApplication(new
ApplicationConfig("first-dubbo-consumer"));
+ referenceHessian2.setRegistry(new RegistryConfig("zookeeper://" +
zookeeperHost + ":2181"));
+ referenceHessian2.setInterface(GreetingsService.class);
+ referenceHessian2.setVersion("hessian2");
+ Assertions.assertThrows(IllegalStateException.class,
referenceHessian2::get);
+ }
+}
diff --git a/99-integration/dubbo-samples-test-13360-33x/case-configuration.yml
b/99-integration/dubbo-samples-test-13360-33x/case-configuration.yml
new file mode 100644
index 000000000..404179f5f
--- /dev/null
+++ b/99-integration/dubbo-samples-test-13360-33x/case-configuration.yml
@@ -0,0 +1,43 @@
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements. See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership. The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+services:
+ zookeeper:
+ image: zookeeper:latest
+
+ provider:
+ type: app
+ basedir: .
+ mainClass: org.apache.dubbo.samples.provider.Application
+ systemProps:
+ - zookeeper.address=zookeeper
+ waitPortsBeforeRun:
+ - zookeeper:2181
+ checkLog: "Dubbo application started."
+ depends_on:
+ - zookeeper
+
+ test:
+ type: test
+ basedir: .
+ tests:
+ - "**/*IT.class"
+ systemProps:
+ - zookeeper.address=zookeeper
+ waitPortsBeforeRun:
+ - zookeeper:2181
+ depends_on:
+ - zookeeper
diff --git
a/2-advanced/dubbo-samples-springcloud/sc-call-dubbo/case-versions.conf
b/99-integration/dubbo-samples-test-13360-33x/case-versions.conf
similarity index 89%
copy from 2-advanced/dubbo-samples-springcloud/sc-call-dubbo/case-versions.conf
copy to 99-integration/dubbo-samples-test-13360-33x/case-versions.conf
index 375204847..ca3c53a6c 100644
--- a/2-advanced/dubbo-samples-springcloud/sc-call-dubbo/case-versions.conf
+++ b/99-integration/dubbo-samples-test-13360-33x/case-versions.conf
@@ -19,7 +19,6 @@
# Supported component versions of the test case
-# SpringBoot/SpringCloud app
-dubbo.version=3.3.*
-spring-boot.version=2.7.*
-java.version= [>= 8]
+# Spring app
+dubbo.version=[ >= 3.3.0 ]
+java.version= [ >= 8 ]
diff --git a/99-integration/dubbo-samples-test-13360-33x/pom.xml
b/99-integration/dubbo-samples-test-13360-33x/pom.xml
new file mode 100644
index 000000000..a63ae0d54
--- /dev/null
+++ b/99-integration/dubbo-samples-test-13360-33x/pom.xml
@@ -0,0 +1,137 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ ~ Licensed to the Apache Software Foundation (ASF) under one or more
+ ~ contributor license agreements. See the NOTICE file distributed with
+ ~ this work for additional information regarding copyright ownership.
+ ~ The ASF licenses this file to You under the Apache License, Version 2.0
+ ~ (the "License"); you may not use this file except in compliance with
+ ~ the License. You may obtain a copy of the License at
+ ~
+ ~ http://www.apache.org/licenses/LICENSE-2.0
+ ~
+ ~ Unless required by applicable law or agreed to in writing, software
+ ~ distributed under the License is distributed on an "AS IS" BASIS,
+ ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ ~ See the License for the specific language governing permissions and
+ ~ limitations under the License.
+ -->
+
+<project xmlns="http://maven.apache.org/POM/4.0.0"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
http://maven.apache.org/xsd/maven-4.0.0.xsd">
+ <parent>
+ <groupId>org.apache</groupId>
+ <artifactId>apache</artifactId>
+ <version>23</version>
+ <relativePath/>
+ </parent>
+
+ <groupId>org.apache.dubbo</groupId>
+ <version>1.0-SNAPSHOT</version>
+
+ <modelVersion>4.0.0</modelVersion>
+
+ <artifactId>dubbo-samples-test-13360-33x</artifactId>
+ <name>Dubbo Samples Test for 13360-33x</name>
+ <description>Dubbo Samples Test for 13360 On Dubbo 3.3.x</description>
+
+ <properties>
+ <dubbo.version>3.3.0-beta.1</dubbo.version>
+ <junit5.version>5.9.2</junit5.version>
+ <maven.compiler.source>1.8</maven.compiler.source>
+ <maven.compiler.target>1.8</maven.compiler.target>
+ <slf4j-log4j12.version>1.7.33</slf4j-log4j12.version>
+ <awaitility.version>4.2.0</awaitility.version>
+ <spring-boot.version>2.7.6</spring-boot.version>
+ </properties>
+
+ <dependencyManagement>
+ <dependencies>
+ <dependency>
+ <groupId>org.springframework.boot</groupId>
+ <artifactId>spring-boot-dependencies</artifactId>
+ <version>${spring-boot.version}</version>
+ <type>pom</type>
+ <scope>import</scope>
+ </dependency>
+ </dependencies>
+ </dependencyManagement>
+
+ <dependencies>
+ <dependency>
+ <groupId>org.apache.dubbo</groupId>
+ <artifactId>dubbo-spring-boot-starter</artifactId>
+ <version>${dubbo.version}</version>
+ </dependency>
+
+ <dependency>
+ <groupId>org.apache.dubbo</groupId>
+ <artifactId>dubbo-observability-spring-boot-starter</artifactId>
+ <version>${dubbo.version}</version>
+ </dependency>
+
+ <dependency>
+ <groupId>org.apache.dubbo</groupId>
+ <artifactId>dubbo-spring-boot-actuator</artifactId>
+ <version>${dubbo.version}</version>
+ </dependency>
+
+ <dependency>
+ <groupId>org.apache.dubbo</groupId>
+ <artifactId>dubbo-dependencies-zookeeper-curator5</artifactId>
+ <version>${dubbo.version}</version>
+ <type>pom</type>
+ <exclusions>
+ <exclusion>
+ <artifactId>logback-classic</artifactId>
+ <groupId>ch.qos.logback</groupId>
+ </exclusion>
+ <exclusion>
+ <artifactId>logback-core</artifactId>
+ <groupId>ch.qos.logback</groupId>
+ </exclusion>
+ </exclusions>
+ </dependency>
+
+ <dependency>
+ <groupId>org.springframework.boot</groupId>
+ <artifactId>spring-boot-starter-actuator</artifactId>
+ </dependency>
+
+ <dependency>
+ <groupId>org.springframework.boot</groupId>
+ <artifactId>spring-boot-starter</artifactId>
+ </dependency>
+
+ <dependency>
+ <groupId>com.google.protobuf</groupId>
+ <artifactId>protobuf-java</artifactId>
+ <version>3.22.2</version>
+ </dependency>
+
+ <dependency>
+ <groupId>org.awaitility</groupId>
+ <artifactId>awaitility</artifactId>
+ <version>${awaitility.version}</version>
+ </dependency>
+
+ <dependency>
+ <groupId>org.junit.jupiter</groupId>
+ <artifactId>junit-jupiter-engine</artifactId>
+ <version>${junit5.version}</version>
+ <scope>test</scope>
+ </dependency>
+ <dependency>
+ <groupId>org.junit.jupiter</groupId>
+ <artifactId>junit-jupiter-api</artifactId>
+ <version>${junit5.version}</version>
+ <scope>test</scope>
+ </dependency>
+ <dependency>
+ <groupId>org.junit.jupiter</groupId>
+ <artifactId>junit-jupiter-params</artifactId>
+ <version>${junit5.version}</version>
+ <scope>test</scope>
+ </dependency>
+ </dependencies>
+</project>
diff --git
a/99-integration/dubbo-samples-test-13360-33x/src/main/java/org/apache/dubbo/samples/api/GreetingsService.java
b/99-integration/dubbo-samples-test-13360-33x/src/main/java/org/apache/dubbo/samples/api/GreetingsService.java
new file mode 100644
index 000000000..9d3a319d3
--- /dev/null
+++
b/99-integration/dubbo-samples-test-13360-33x/src/main/java/org/apache/dubbo/samples/api/GreetingsService.java
@@ -0,0 +1,22 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.dubbo.samples.api;
+
+public interface GreetingsService {
+ String echo(String name);
+}
diff --git
a/99-integration/dubbo-samples-test-13360-33x/src/main/java/org/apache/dubbo/samples/provider/Application.java
b/99-integration/dubbo-samples-test-13360-33x/src/main/java/org/apache/dubbo/samples/provider/Application.java
new file mode 100644
index 000000000..d929849df
--- /dev/null
+++
b/99-integration/dubbo-samples-test-13360-33x/src/main/java/org/apache/dubbo/samples/provider/Application.java
@@ -0,0 +1,32 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.dubbo.samples.provider;
+
+import org.springframework.boot.SpringApplication;
+import org.springframework.boot.autoconfigure.SpringBootApplication;
+
+import java.util.concurrent.CountDownLatch;
+
+@SpringBootApplication(scanBasePackages =
{"org.apache.dubbo.samples.provider"})
+public class Application {
+ public static void main(String[] args) throws InterruptedException {
+ SpringApplication.run(Application.class, args);
+ System.out.println("Dubbo application started.");
+ new CountDownLatch(1).await();
+ }
+}
diff --git
a/99-integration/dubbo-samples-test-13360-33x/src/main/java/org/apache/dubbo/samples/provider/GreetingsServiceImpl.java
b/99-integration/dubbo-samples-test-13360-33x/src/main/java/org/apache/dubbo/samples/provider/GreetingsServiceImpl.java
new file mode 100644
index 000000000..48087a30b
--- /dev/null
+++
b/99-integration/dubbo-samples-test-13360-33x/src/main/java/org/apache/dubbo/samples/provider/GreetingsServiceImpl.java
@@ -0,0 +1,29 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.dubbo.samples.provider;
+
+import org.apache.dubbo.config.annotation.DubboService;
+import org.apache.dubbo.samples.api.GreetingsService;
+
+@DubboService
+public class GreetingsServiceImpl implements GreetingsService {
+ @Override
+ public String echo(String name) {
+ return name;
+ }
+}
diff --git
a/99-integration/dubbo-samples-test-13360-33x/src/main/resources/application.properties
b/99-integration/dubbo-samples-test-13360-33x/src/main/resources/application.properties
new file mode 100644
index 000000000..02e8b7331
--- /dev/null
+++
b/99-integration/dubbo-samples-test-13360-33x/src/main/resources/application.properties
@@ -0,0 +1,8 @@
+spring.application.name=test-provider
+
+dubbo.enabled=false
+dubbo.application.name=test-provider
+dubbo.registry.address=zookeeper://${zookeeper.address:127.0.0.1}:2181
+dubbo.protocol.name=dubbo
+dubbo.protocol.port=20880
+dubbo.provider.token=true
diff --git
a/99-integration/dubbo-samples-test-13360-33x/src/test/java/org/apache/dubbo/samples/client/GreetingServiceIT.java
b/99-integration/dubbo-samples-test-13360-33x/src/test/java/org/apache/dubbo/samples/client/GreetingServiceIT.java
new file mode 100644
index 000000000..2511d2e9a
--- /dev/null
+++
b/99-integration/dubbo-samples-test-13360-33x/src/test/java/org/apache/dubbo/samples/client/GreetingServiceIT.java
@@ -0,0 +1,40 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.dubbo.samples.client;
+
+import org.apache.dubbo.config.ApplicationConfig;
+import org.apache.dubbo.config.ReferenceConfig;
+import org.apache.dubbo.config.RegistryConfig;
+import org.apache.dubbo.samples.api.GreetingsService;
+
+import org.junit.jupiter.api.Assertions;
+import org.junit.jupiter.api.Test;
+
+public class GreetingServiceIT {
+ private static String zookeeperHost =
System.getProperty("zookeeper.address", "127.0.0.1");
+
+ @Test
+ public void test1() {
+ ReferenceConfig<GreetingsService> referenceHessian2 = new
ReferenceConfig<>();
+ referenceHessian2.setApplication(new
ApplicationConfig("first-dubbo-consumer"));
+ referenceHessian2.setRegistry(new RegistryConfig("zookeeper://" +
zookeeperHost + ":2181"));
+ referenceHessian2.setInterface(GreetingsService.class);
+ referenceHessian2.setVersion("hessian2");
+ Assertions.assertThrows(IllegalStateException.class,
referenceHessian2::get);
+ }
+}
diff --git a/99-integration/pom.xml b/99-integration/pom.xml
index c342215ba..1f9d9100d 100644
--- a/99-integration/pom.xml
+++ b/99-integration/pom.xml
@@ -70,6 +70,8 @@
<module>dubbo-samples-test-13078</module>
<module>dubbo-samples-test-13133</module>
<module>dubbo-samples-test-13224</module>
+ <module>dubbo-samples-test-13360-32x</module>
+ <module>dubbo-samples-test-13360-33x</module>
<module>dubbo-samples-test-abc-async</module>
<module>dubbo-samples-test-register</module>
<module>dubbo-samples-test-register-3-3</module>
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]