From 0b0e31b35b6421456028ce4e4da3ef3f105f33fc Mon Sep 17 00:00:00 2001 From: yaoxuwan Date: Fri, 23 Feb 2024 15:26:54 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=94=AF=E6=8C=81generic=20proxy=20#70?= =?UTF-8?q?5=20=E4=BF=AE=E5=A4=8D=E5=8D=95=E6=B5=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/tencent/bkrepo/repository/service/ServiceBaseTest.kt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/backend/repository/biz-repository/src/test/kotlin/com/tencent/bkrepo/repository/service/ServiceBaseTest.kt b/src/backend/repository/biz-repository/src/test/kotlin/com/tencent/bkrepo/repository/service/ServiceBaseTest.kt index ad0948ae6f..1fda63330d 100644 --- a/src/backend/repository/biz-repository/src/test/kotlin/com/tencent/bkrepo/repository/service/ServiceBaseTest.kt +++ b/src/backend/repository/biz-repository/src/test/kotlin/com/tencent/bkrepo/repository/service/ServiceBaseTest.kt @@ -41,6 +41,7 @@ import com.tencent.bkrepo.common.artifact.event.project.ProjectCreatedEvent import com.tencent.bkrepo.common.artifact.pojo.RepositoryCategory import com.tencent.bkrepo.common.artifact.pojo.RepositoryType import com.tencent.bkrepo.common.artifact.pojo.configuration.local.LocalConfiguration +import com.tencent.bkrepo.common.artifact.router.RouterControllerProperties import com.tencent.bkrepo.common.security.http.core.HttpAuthProperties import com.tencent.bkrepo.common.security.manager.PermissionManager import com.tencent.bkrepo.common.service.cluster.ClusterProperties @@ -92,7 +93,8 @@ import org.springframework.test.context.TestPropertySource ProxyChannelDao::class, HttpAuthProperties::class, SpringContextUtils::class, - NodeDao::class + NodeDao::class, + RouterControllerProperties::class ) @ComponentScan("com.tencent.bkrepo.repository.service") @TestPropertySource(locations = ["classpath:bootstrap-ut.properties", "classpath:center-ut.properties"]) @@ -128,6 +130,7 @@ open class ServiceBaseTest { @Autowired lateinit var springContextUtils: SpringContextUtils + fun initMock() { val tracer = mockk() mockkObject(SpringContextUtils.Companion)