mirror of
https://github.com/tencentmusic/supersonic.git
synced 2025-12-12 20:51:48 +00:00
[improvement][Chat] Support agent permission management #1143
This commit is contained in:
@@ -50,7 +50,8 @@ public class SchemaAuthTest extends BaseTest {
|
|||||||
@Test
|
@Test
|
||||||
public void test_getVisibleModelList_alice() {
|
public void test_getVisibleModelList_alice() {
|
||||||
User user = DataUtils.getUserAlice();
|
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");
|
List<String> expectedModelBizNames = Lists.newArrayList("user_department", "singer");
|
||||||
Assertions.assertEquals(expectedModelBizNames,
|
Assertions.assertEquals(expectedModelBizNames,
|
||||||
modelResps.stream().map(ModelResp::getBizName).collect(Collectors.toList()));
|
modelResps.stream().map(ModelResp::getBizName).collect(Collectors.toList()));
|
||||||
|
|||||||
Reference in New Issue
Block a user