fix(接口测试): 禁用请求不校验

This commit is contained in:
chenjianxing 2020-08-26 15:16:50 +08:00
parent db635a2c6f
commit d7313eabdd
1 changed files with 41 additions and 37 deletions

View File

@ -327,6 +327,7 @@ export class HttpRequest extends Request {
}
isValid(environmentId) {
if (this.enable) {
if (this.useEnvironment) {
if (!environmentId) {
return {
@ -350,6 +351,7 @@ export class HttpRequest extends Request {
}
}
}
}
return {
isValid: true
}
@ -395,6 +397,7 @@ export class DubboRequest extends Request {
}
isValid() {
if (this.enable) {
if (!this.interface) {
return {
isValid: false,
@ -419,6 +422,7 @@ export class DubboRequest extends Request {
info: 'api_test.request.dubbo.input_consumer_service'
}
}
}
return {
isValid: true
}