diff --git a/.github/scripts/release-docker-smoke.sh b/.github/scripts/release-docker-smoke.sh index 5e73392e..e2593fc3 100755 --- a/.github/scripts/release-docker-smoke.sh +++ b/.github/scripts/release-docker-smoke.sh @@ -350,7 +350,7 @@ access_list="$(api_get "/api/access-keys")" printf '%s' "${access_list}" | node -e ' const fs=require("fs"); const value=JSON.parse(fs.readFileSync(0,"utf8")); - if(!value.data.some(item=>item.name==="Task13 Release Smoke Access")) process.exit(1); + if(!value.data.items.some(item=>item.name==="Task13 Release Smoke Access")) process.exit(1); ' unset access_list node -e ' diff --git a/internal/control/group_collection_http_test.go b/internal/control/group_collection_http_test.go index 240aae8d..eac492a5 100644 --- a/internal/control/group_collection_http_test.go +++ b/internal/control/group_collection_http_test.go @@ -310,7 +310,10 @@ func TestGroupCollectionHTTPReturnsExactCollectionAndOptionsContracts(t *testing if item.ID != 10 || item.Name != "alpha" || item.Status != GroupCollectionStatusAvailable || item.UpstreamURL != "https://alpha.example/v1" || - len(item.Protocols) != 1 || item.Protocols[0] != protocol.OpenAICompletions || + !reflect.DeepEqual(item.Protocols, []protocol.Protocol{ + protocol.OpenAICompletions, + protocol.Gemini, + }) || item.ModelCount != 2 || item.KeyCounts != (GroupCollectionKeyCounts{Total: 1, Available: 1}) { t.Fatalf("collection item = %#v, want exact public fields", item) diff --git a/internal/webui/workflow_test.go b/internal/webui/workflow_test.go index 23539378..c4eca88c 100644 --- a/internal/webui/workflow_test.go +++ b/internal/webui/workflow_test.go @@ -1103,6 +1103,7 @@ func TestReleaseWorkflowRunsCompleteLocalDockerSmoke(t *testing.T) { "/api/model-prices", "/api/groups", "/api/access-keys", + "value.data.items.some(item=>item.name===\"Task13 Release Smoke Access\")", "/v1/chat/completions", "finish_reason", "prompt_tokens",