Fix dubbo-test-spring & Metrics
This commit is contained in:
parent
48ad8143bc
commit
f2b7a044c6
|
|
@ -37,7 +37,7 @@ class DefaultApplicationDeployerTest {
|
|||
MetricsConfig metricsConfig = new MetricsConfig();
|
||||
metricsConfig.setProtocol("prometheus");
|
||||
boolean importPrometheus = PROTOCOL_PROMETHEUS.equals(metricsConfig.getProtocol())
|
||||
&& !DefaultApplicationDeployer.isSupportPrometheus();
|
||||
&& !MetricsSupportUtil.isSupportPrometheus();
|
||||
Assert.assertTrue(!importPrometheus, " should return false");
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -99,6 +99,11 @@
|
|||
<artifactId>dubbo-rpc-dubbo</artifactId>
|
||||
<version>${project.version}</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.apache.dubbo</groupId>
|
||||
<artifactId>dubbo-rpc-triple</artifactId>
|
||||
<version>${project.version}</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.apache.dubbo</groupId>
|
||||
<artifactId>dubbo-config-spring</artifactId>
|
||||
|
|
|
|||
|
|
@ -28,7 +28,7 @@
|
|||
<dubbo:registry address="zookeeper://127.0.0.1:2181"/>
|
||||
|
||||
<dubbo:protocol name="dubbo" port="-1"/>
|
||||
<dubbo:protocol name="rest" port="-1"/>
|
||||
<dubbo:protocol name="tri" port="-1"/>
|
||||
|
||||
<bean id="demoServiceImpl" class="org.apache.dubbo.test.common.impl.DemoServiceImpl"/>
|
||||
<bean id="greetingServiceImpl" class="org.apache.dubbo.test.common.impl.GreetingServiceImpl"/>
|
||||
|
|
@ -38,5 +38,5 @@
|
|||
<dubbo:service version="1.0.0" group="greeting" timeout="5000" interface="org.apache.dubbo.test.common.api.GreetingService"
|
||||
ref="greetingServiceImpl" protocol="dubbo"/>
|
||||
<dubbo:service version="1.0.0" timeout="5000" interface="org.apache.dubbo.test.common.api.RestDemoService"
|
||||
ref="restDemoServiceImpl" protocol="rest"/>
|
||||
ref="restDemoServiceImpl" protocol="tri"/>
|
||||
</beans>
|
||||
|
|
|
|||
|
|
@ -38,6 +38,6 @@
|
|||
<dubbo:reference id="greetingService" version="1.0.0" group="greeting"
|
||||
interface="org.apache.dubbo.test.common.api.GreetingService"/>
|
||||
|
||||
<dubbo:reference id="restDemoService" version="1.0.0" protocol="rest"
|
||||
<dubbo:reference id="restDemoService" version="1.0.0" protocol="tri"
|
||||
interface="org.apache.dubbo.test.common.api.RestDemoService"/>
|
||||
</beans>
|
||||
|
|
|
|||
Loading…
Reference in New Issue