Skip to content

Commit

Permalink
feat:流水线列表展示权限控制 TencentBlueKing#10895
Browse files Browse the repository at this point in the history
  • Loading branch information
fcfang123 committed Oct 29, 2024
1 parent af618bb commit 67784b5
Showing 1 changed file with 10 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -952,7 +952,16 @@ class PipelineViewGroupServiceTest : BkCiAbstractTest() {
)
} returns mutableListOf<PipelineNewViewSummary>()
every { self["getClassifiedPipelineIds"](any() as String) } returns emptyList<String>()
every { pipelineInfoDao.countExcludePipelineIds(anyDslContext(), any(), any(), any(), any(), any()) } returns 0
every {
pipelineInfoDao.countExcludePipelineIds(
dslContext = anyDslContext(),
projectId = any(),
excludePipelineIds = any(),
channelCode = any(),
includeDelete = any(),
filterPipelineIds = any()
)
} returns 0
self.listView("test", "test", true, PipelineViewType.DYNAMIC).let {
Assertions.assertEquals(it.size, 1)
Assertions.assertEquals(it[0].id, PIPELINE_VIEW_UNCLASSIFIED)
Expand Down

0 comments on commit 67784b5

Please sign in to comment.