Skip to content

Commit

Permalink
feat: 增加查询文件源与凭证详情的ApiGW接口 #2830
Browse files Browse the repository at this point in the history
  • Loading branch information
liuliaozhong committed Apr 17, 2024
1 parent b07d11e commit 1caa800
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 1caa800

Please sign in to comment.