MCPcopy Create free account
hub / github.com/HKUDS/AgentSpace / buildEvidenceFixture

Function buildEvidenceFixture

scripts/feishu/smoke.test.ts:2172–2279  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2170}
2171
2172function buildEvidenceFixture() {
2173 const steps = [
2174 liveStep("Client im.message.create", {
2175 method: "POST",
2176 path: "/open-apis/im/v1/messages",
2177 queryKeys: ["receive_id_type"],
2178 bodyKeys: ["content", "msg_type", "receive_id"],
2179 }),
2180 callbackLiveStep(),
2181 liveStep("Tenant access token"),
2182 liveStep("Docs docx metadata", {
2183 method: "POST",
2184 path: "/open-apis/drive/v1/metas/batch_query",
2185 bodyKeys: ["request_docs", "with_url"],
2186 }),
2187 liveStep("Docs docx read blocks", {
2188 method: "GET",
2189 path: "/open-apis/docx/v1/documents/:doc_token/blocks",
2190 queryKeys: ["page_size"],
2191 }),
2192 liveStep("Docs docx append blocks", {
2193 method: "POST",
2194 path: "/open-apis/docx/v1/documents/:doc_token/blocks/:parent_block_id/children",
2195 bodyKeys: ["children", "index"],
2196 }, true),
2197 liveStep("Sheets metadata", {
2198 method: "GET",
2199 path: "/open-apis/sheets/v2/spreadsheets/:sheet_token/metainfo",
2200 }),
2201 liveStep("Sheets read values", {
2202 method: "GET",
2203 path: "/open-apis/sheets/v2/spreadsheets/:sheet_token/values/:range",
2204 }),
2205 liveStep("Sheets write values", {
2206 method: "PUT",
2207 path: "/open-apis/sheets/v2/spreadsheets/:sheet_token/values",
2208 bodyKeys: ["valueRange"],
2209 }, true),
2210 liveStep("Base list tables", {
2211 method: "GET",
2212 path: "/open-apis/bitable/v1/apps/:app_token/tables",
2213 queryKeys: ["page_size"],
2214 }),
2215 liveStep("Base list records", {
2216 method: "GET",
2217 path: "/open-apis/bitable/v1/apps/:app_token/tables/:table_id/records",
2218 queryKeys: ["page_size"],
2219 }),
2220 liveStep("Base update record", {
2221 method: "PUT",
2222 path: "/open-apis/bitable/v1/apps/:app_token/tables/:table_id/records/:record_id",
2223 bodyKeys: ["fields"],
2224 }, true),
2225 {
2226 name: "EventDispatcher im.message.receive_v1",
2227 status: "pass",
2228 detail: "local dispatcher invoked the receive-message handler.",
2229 },

Callers 1

smoke.test.tsFile · 0.85

Calls 2

liveStepFunction · 0.85
callbackLiveStepFunction · 0.85

Tested by

no test coverage detected