From 7902ef7f4e2894c8ff521cda3d0f5373f6b6d7d9 Mon Sep 17 00:00:00 2001 From: wxg0103 <727495428@qq.com> Date: Wed, 2 Nov 2022 16:34:04 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=8E=A5=E5=8F=A3=E6=B5=8B=E8=AF=95):=20?= =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E7=8E=AF=E5=A2=83=E9=85=8D=E7=BD=AE=E5=85=A8?= =?UTF-8?q?=E5=B1=80=E8=AE=A4=E8=AF=81=E4=B8=8D=E7=94=9F=E6=95=88=E7=9A=84?= =?UTF-8?q?=E7=BC=BA=E9=99=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --bug=1019285 --user=王孝刚 [接口测试]github#19367接口测试在环境配置中设置了全局认证信息后执行时无法生效,但在单个接口中设置了同样信息的认证配置可以生效 https://www.tapd.cn/55049933/s/1286281 --- .../scenario/environment/EnvAuthManager.java | 3 +-- .../scenario/environment/ItemAuthManager.java | 19 +++++++++++++++++++ 2 files changed, 20 insertions(+), 2 deletions(-) create mode 100644 api-test/backend/src/main/java/io/metersphere/api/dto/scenario/environment/ItemAuthManager.java diff --git a/api-test/backend/src/main/java/io/metersphere/api/dto/scenario/environment/EnvAuthManager.java b/api-test/backend/src/main/java/io/metersphere/api/dto/scenario/environment/EnvAuthManager.java index afaf9000e9..196e48f1aa 100644 --- a/api-test/backend/src/main/java/io/metersphere/api/dto/scenario/environment/EnvAuthManager.java +++ b/api-test/backend/src/main/java/io/metersphere/api/dto/scenario/environment/EnvAuthManager.java @@ -1,9 +1,8 @@ package io.metersphere.api.dto.scenario.environment; -import io.metersphere.api.dto.definition.request.auth.MsAuthManager; import lombok.Data; @Data public class EnvAuthManager { - private EnvAuthManager authManager; + private ItemAuthManager authManager; } diff --git a/api-test/backend/src/main/java/io/metersphere/api/dto/scenario/environment/ItemAuthManager.java b/api-test/backend/src/main/java/io/metersphere/api/dto/scenario/environment/ItemAuthManager.java new file mode 100644 index 0000000000..9a61b27de2 --- /dev/null +++ b/api-test/backend/src/main/java/io/metersphere/api/dto/scenario/environment/ItemAuthManager.java @@ -0,0 +1,19 @@ +package io.metersphere.api.dto.scenario.environment; + +import io.metersphere.commons.constants.ElementConstants; +import lombok.Data; + +@Data +public class ItemAuthManager { + private String type = ElementConstants.AUTH_MANAGER; + private String clazzName = ItemAuthManager.class.getCanonicalName(); + private String username; + private String password; + private String url; + private String realm; + private String verification; + private String mechanism; + private String encrypt; + private String domain; + private String environment; +}