修改cadai工具,修改后台上传限制
This commit is contained in:
@@ -152,9 +152,14 @@ class CadAiTest {
|
||||
.andExpect(jsonPath("$.data.enabled").value(true))
|
||||
.andExpect(jsonPath("$.data.protocolVersion").value("cad-agent-v1"))
|
||||
.andExpect(jsonPath("$.data.model").value("cad-test-model"))
|
||||
.andExpect(jsonPath("$.data.tools.length()").value(11)).andReturn();
|
||||
.andExpect(jsonPath("$.data.tools.length()").value(12)).andReturn();
|
||||
String body = result.getResponse().getContentAsString();
|
||||
assertThat(body).doesNotContain("cad-test-placeholder", "apiKey", "endpoint");
|
||||
assertThat(body).doesNotContain("cad-test-placeholder", "apiKey", "endpoint", "SolidCraft");
|
||||
assertThat(json.readTree(body).path("data").path("tools")).anySatisfy(tool -> {
|
||||
assertThat(tool.path("name").asText()).isEqualTo("skill_reference");
|
||||
assertThat(tool.path("parameters").path("properties").path("skill").path("enum")).hasSize(17);
|
||||
assertThat(tool.path("parameters").path("properties").path("file").path("default").asText()).isEqualTo("SKILL.md");
|
||||
});
|
||||
assertThat(json.readTree(body).path("data").has("id")).isFalse();
|
||||
assertThat(model.inputs).isEmpty();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user