mirror of
https://github.com/tencentmusic/supersonic.git
synced 2025-12-10 11:07:06 +00:00
[improvement][Headless] Add table ddl in Dbschema
This commit is contained in:
@@ -17,5 +17,7 @@ public class DbSchema {
|
||||
|
||||
private String sql;
|
||||
|
||||
private String ddl;
|
||||
|
||||
private List<DBColumn> dbColumns;
|
||||
}
|
||||
|
||||
@@ -50,8 +50,7 @@ public class SchemaAuthTest extends BaseTest {
|
||||
@Test
|
||||
public void test_getVisibleModelList_alice() {
|
||||
User user = DataUtils.getUserAlice();
|
||||
List<ModelResp> modelResps =
|
||||
modelService.getModelListWithAuth(user, null, AuthType.VIEWER);
|
||||
List<ModelResp> modelResps = modelService.getModelListWithAuth(user, null, AuthType.VIEWER);
|
||||
List<String> expectedModelBizNames = Lists.newArrayList("user_department", "singer");
|
||||
Assertions.assertEquals(expectedModelBizNames,
|
||||
modelResps.stream().map(ModelResp::getBizName).collect(Collectors.toList()));
|
||||
|
||||
Reference in New Issue
Block a user