fix(接口测试): 【接口测试】场景-添加自定义请求-dubbo类型,执行失败
--bug=1013747 --user=宋天阳 【接口测试】场景-添加自定义请求-dubbo类型,执行失败 {#_orginal_url#}
This commit is contained in:
parent
2fe21fb79e
commit
34f55fe3f7
|
@ -215,7 +215,7 @@ public class MsDubboSampler extends MsTestElement {
|
||||||
|
|
||||||
private ConfigTestElement configCenter(MsConfigCenter configCenter) {
|
private ConfigTestElement configCenter(MsConfigCenter configCenter) {
|
||||||
ConfigTestElement configTestElement = new ConfigTestElement();
|
ConfigTestElement configTestElement = new ConfigTestElement();
|
||||||
if (configCenter != null && configCenter.getProtocol() != null && configCenter.getUsername() != null && configCenter.getPassword() != null) {
|
if (configCenter != null && StringUtils.isNotEmpty(configCenter.getAddress()) && StringUtils.isNotEmpty(configCenter.getProtocol()) && StringUtils.isNotEmpty(configCenter.getUsername()) && StringUtils.isNotEmpty(configCenter.getPassword())) {
|
||||||
Constants.setConfigCenterProtocol(configCenter.getProtocol(), configTestElement);
|
Constants.setConfigCenterProtocol(configCenter.getProtocol(), configTestElement);
|
||||||
Constants.setConfigCenterGroup(configCenter.getGroup(), configTestElement);
|
Constants.setConfigCenterGroup(configCenter.getGroup(), configTestElement);
|
||||||
Constants.setConfigCenterNamespace(configCenter.getNamespace(), configTestElement);
|
Constants.setConfigCenterNamespace(configCenter.getNamespace(), configTestElement);
|
||||||
|
|
Loading…
Reference in New Issue