fix(接口测试): 禁用请求不校验
This commit is contained in:
parent
db635a2c6f
commit
d7313eabdd
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue