cad项目新增封面图,OSS地址去掉环境前缀
This commit is contained in:
@@ -188,10 +188,10 @@ class CadAiTest {
|
||||
}
|
||||
|
||||
@Test void validatesProjectOwnerAndDeletionBeforeCallingModel() throws Exception {
|
||||
String code = projects.create(userId, new CadCreateProjectInput("我的项目", "")).cadProjectCode();
|
||||
String code = projects.create(userId, new CadCreateProjectInput("我的项目", "", null)).cadProjectCode();
|
||||
finish(start(input(code, input().history())));
|
||||
User other = users.login("cad-other@example.invalid");
|
||||
String otherCode = projects.create(other.getId(), new CadCreateProjectInput("别人的项目", "")).cadProjectCode();
|
||||
String otherCode = projects.create(other.getId(), new CadCreateProjectInput("别人的项目", "", null)).cadProjectCode();
|
||||
mvc.perform(postInput(input(otherCode, input().history()))).andExpect(status().isNotFound());
|
||||
projects.delete(userId, code);
|
||||
mvc.perform(postInput(input(code, input().history()))).andExpect(status().isNotFound());
|
||||
@@ -217,7 +217,7 @@ class CadAiTest {
|
||||
}
|
||||
|
||||
@Test void deletedDuringInferenceDoesNotDeliverToolCalls() throws Exception {
|
||||
String code = projects.create(userId, new CadCreateProjectInput("删除中的项目", "")).cadProjectCode();
|
||||
String code = projects.create(userId, new CadCreateProjectInput("删除中的项目", "", null)).cadProjectCode();
|
||||
model.handler = (input, text, cancellation) -> {
|
||||
projects.delete(userId, code);
|
||||
return new CadAiModelClient.Result(List.of(CadAiHistoryItem.call("call_1", "undo", json.createObjectNode())), null);
|
||||
|
||||
Reference in New Issue
Block a user