Skip to content

Commit

Permalink
[feature][catalog] add test from check catalogtype To db
Browse files Browse the repository at this point in the history
  • Loading branch information
Mrart committed Aug 7, 2024
1 parent 9ecc242 commit 3e4e6e2
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
import javax.validation.constraints.NotBlank;

import java.io.Serializable;
import java.util.Date;

@Data
@Slf4j
Expand All @@ -46,6 +47,10 @@ public class FlinkCatalogParams implements Serializable {
/** creator */
private Long userId;

private Date createTime;

private Date updateTime;

private FlinkJDBCCatalog flinkJDBCCatalog;

private FlinkHiveCatalog flinkHiveCatalog;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,8 @@ public void update() {
catalogResult.getRecords().get(0).getFlinkJDBCCatalog().getBaseUrl().contains("url2"))
.isTrue();
assertThat(catalogResult.getRecords().get(0).getUserId().equals(2L)).isTrue();
assertThat(catalogResult.getRecords().get(0).getCatalogType().equals(CatalogType.JDBC))
.isTrue();
}

@Test
Expand Down

0 comments on commit 3e4e6e2

Please sign in to comment.