Skip to content

Commit

Permalink
Merge pull request TencentBlueKing#1792 from yaoxuwan/issue_705
Browse files Browse the repository at this point in the history
feat: 支持generic proxy TencentBlueKing#705 修复单测
  • Loading branch information
owenlxu authored Feb 26, 2024
2 parents f30bb46 + 0b0e31b commit d785d33
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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"])
Expand Down Expand Up @@ -128,6 +130,7 @@ open class ServiceBaseTest {
@Autowired
lateinit var springContextUtils: SpringContextUtils


fun initMock() {
val tracer = mockk<OtelTracer>()
mockkObject(SpringContextUtils.Companion)
Expand Down

0 comments on commit d785d33

Please sign in to comment.