Skip to content

Commit

Permalink
feat: 创建项目时,增加是否创建本地权限参数 TencentBlueKing#879
Browse files Browse the repository at this point in the history
  • Loading branch information
yaoxuwan committed Jul 4, 2023
1 parent 0b1b265 commit d805705
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,13 @@ class RepositoryServiceTest @Autowired constructor(
fun beforeAll() {
initMock()
if (!projectService.checkExist(UT_PROJECT_ID)) {
val projectCreateRequest = ProjectCreateRequest(UT_PROJECT_ID, UT_REPO_NAME, UT_REPO_DISPLAY, UT_USER)
val projectCreateRequest = ProjectCreateRequest(
name = UT_PROJECT_ID,
displayName = UT_REPO_NAME,
description = UT_REPO_DISPLAY,
createPermission = true,
operator = UT_USER
)
projectService.createProject(projectCreateRequest)
}
val request = StorageCredentialsCreateRequest(UT_STORAGE_CREDENTIALS_KEY, storageCredentials, UT_REGION)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,13 @@ open class ServiceBaseTest {
credentialsKey: String? = null
) {
if (!projectService.checkExist(UT_PROJECT_ID)) {
val projectCreateRequest = ProjectCreateRequest(UT_PROJECT_ID, UT_REPO_NAME, UT_REPO_DISPLAY, UT_USER)
val projectCreateRequest = ProjectCreateRequest(
name = UT_PROJECT_ID,
displayName = UT_REPO_NAME,
description = UT_REPO_DISPLAY,
createPermission = true,
operator = UT_USER
)
projectService.createProject(projectCreateRequest)
}
if (!repositoryService.checkExist(UT_PROJECT_ID, UT_REPO_NAME)) {
Expand All @@ -180,7 +186,7 @@ open class ServiceBaseTest {
projectService: ProjectService,
projectId: String = UT_PROJECT_ID
): ProjectInfo {
val projectCreateRequest = ProjectCreateRequest(projectId, UT_REPO_NAME, UT_REPO_DISPLAY, UT_USER)
val projectCreateRequest = ProjectCreateRequest(projectId, UT_REPO_NAME, UT_REPO_DISPLAY, true, UT_USER)
return projectService.createProject(projectCreateRequest)
}

Expand Down

0 comments on commit d805705

Please sign in to comment.