Skip to content

Commit

Permalink
Merge pull request TencentBlueKing#2910 from liuliaozhong/master_issu…
Browse files Browse the repository at this point in the history
…e_2830

feat: 增加查询文件源与凭证详情的ApiGW接口 TencentBlueKing#2830
  • Loading branch information
jsonwan authored Apr 18, 2024
2 parents f18dc03 + 1caa800 commit 243d6d5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,8 @@ public static EsbFileSourceV3DTO toEsbFileSourceV3DTO(FileSourceDTO fileSourceDT
fileSource.setAlias(fileSourceDTO.getAlias());
fileSource.setCredentialId(fileSourceDTO.getCredentialId());
fileSource.setEnable(fileSourceDTO.getEnable());
fileSource.setFileSourceTypeCode(fileSourceDTO.getFileSourceType().getCode());
fileSource.setFileSourceTypeCode(fileSourceDTO.getFileSourceType() != null ?
fileSourceDTO.getFileSourceType().getCode() : null);
fileSource.setPublicFlag(fileSourceDTO.getPublicFlag());
fileSource.setStatus(fileSourceDTO.getStatus());
fileSource.setCreateTime(fileSourceDTO.getCreateTime());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,7 @@ void testUpdateFileSource() {
req.setScopeId(String.valueOf(TestProps.DEFAULT_BIZ));
req.setScopeType(ResourceScopeTypeEnum.BIZ.getValue());
req.setCode(fileSourceSimpleInfoV3DTO.getCode());
req.setType(FileSourceTypeEnum.BLUEKING_ARTIFACTORY.name());
req.setAlias(TestValueGenerator.generateUniqueStrValue("update_file_source_alias", 50));
given().spec(ApiUtil.requestSpec(TestProps.DEFAULT_TEST_USER))
.body(JsonUtil.toJson(req))
Expand Down

0 comments on commit 243d6d5

Please sign in to comment.