refs #708: report configured Smilegate Select AI profile

This commit is contained in:
devmrko
2026-07-23 14:06:16 +09:00
parent 14b237a734
commit a579501d6e
2 changed files with 38 additions and 13 deletions

View File

@@ -1,6 +1,7 @@
package com.cloudhandson.vpdbackoffice.service;
import static org.assertj.core.api.Assertions.assertThat;
import com.cloudhandson.vpdbackoffice.config.BackofficeProperties;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.fasterxml.jackson.databind.JsonNode;
import com.fasterxml.jackson.databind.node.ObjectNode;
@@ -12,7 +13,14 @@ class McpSseServiceTest {
private final SmilegateSelectAiService selectAiService = new CapturingSmilegateSelectAiService();
private final McpSseService service = new McpSseService(
selectAiService,
objectMapper
objectMapper,
new BackofficeProperties(
null,
null,
null,
null,
new BackofficeProperties.SelectAi("", "", "", "SGMP_POC_OCI_GPT54MINI")
)
);
@Test
@@ -23,6 +31,7 @@ class McpSseServiceTest {
assertThat(tools).hasSize(1);
var selectAi = tools.get(0);
assertThat(selectAi.path("name").asText()).isEqualTo("oracle.select_ai.smilegate_game_text2sql");
assertThat(selectAi.path("description").asText()).contains("SGMP_POC_OCI_GPT54MINI");
assertThat(selectAi.path("inputSchema").path("required"))
.extracting(node -> node.asText())
.contains("prompt");