惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Y
Y Combinator Blog
腾讯CDC
Recent Announcements
Recent Announcements
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
Hugging Face - Blog
Hugging Face - Blog
H
Help Net Security
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
Last Week in AI
Last Week in AI
博客园_首页
D
DataBreaches.Net
P
Proofpoint News Feed
云风的 BLOG
云风的 BLOG
V
Visual Studio Blog
月光博客
月光博客
Jina AI
Jina AI
Stack Overflow Blog
Stack Overflow Blog
酷 壳 – CoolShell
酷 壳 – CoolShell
博客园 - 【当耐特】
Vercel News
Vercel News
WordPress大学
WordPress大学
J
Java Code Geeks
博客园 - 聂微东
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
U
Unit 42

Recent Commits to openclaw:main

test: merge chat side-result checks · openclaw/openclaw@ddd2c2a test: merge cron history checks · openclaw/openclaw@f7eb746 test: merge responsive navigation shell checks · openclaw/openclaw@c2e4b47 docs(changelog): add codex oauth fixes · openclaw/openclaw@628e6cd test: merge navigation routing cases · openclaw/openclaw@5d8cecb Tests: mock channel registry bundled fallback · openclaw/openclaw@2b08233 Secrets: avoid broad web search discovery for single plugin config · openclaw/openclaw@a464f59 test: merge config view browser checks · openclaw/openclaw@20cf511 fix(status): align oauth health with runtime · openclaw/openclaw@eed7116 feat: add macOS screen snapshots for monitor preview (#67954) thanks … · openclaw/openclaw@f377db1 fix: report shared auth scopes in hello-ok (#67810) thanks @BunsDev · openclaw/openclaw@0b6c39b Auto-reply: avoid eager bundled route fallback · openclaw/openclaw@3ea1bf4 Tests: narrow session binding contract setup · openclaw/openclaw@54e4e16 fix(macOS): enable undo/redo in webchat composer text input (#34962) · openclaw/openclaw@00951dc Tests: speed up channel setup promotion · openclaw/openclaw@82b529a Docs: refresh agent instructions · openclaw/openclaw@5775fe2 fix(auth): serialize OAuth refresh across agents to fix #26322 (#67876) · openclaw/openclaw@8e79080 test: allow ollama public surface boundary test · openclaw/openclaw@7d4f1a6 Docs: add test performance guardrails · openclaw/openclaw@89706d3 Tests: restore context-engine usage proof · openclaw/openclaw@e4c4f95 Tests: slim context engine runtime coverage · openclaw/openclaw@74c198f ci: retry failed custom checkouts · openclaw/openclaw@0ee5baf test: trim duplicate provider auth onboarding cases · openclaw/openclaw@1ffc02e matrix: fix sessions_spawn --thread subagent session spawning (#67643) · openclaw/openclaw@1ce2596 test: reduce auth choice fixture churn · openclaw/openclaw@857b9cd test: mock health status config boundaries · openclaw/openclaw@9d5ab4a test: mock onboard config io boundary · openclaw/openclaw@299694d test: mock legacy state plugin boundaries · openclaw/openclaw@2713089 test: mock channel install boundaries · openclaw/openclaw@b945248 test: mock doctor preview channel boundaries · openclaw/openclaw@b1a3ad4
test: tighten google meet artifact assertions · openclaw/...
steipete · 2026-05-09 · via Recent Commits to openclaw:main

@@ -1040,37 +1040,45 @@ describe("google-meet plugin", () => {

10401040

it("lists Meet artifact metadata for the latest conference record by default", async () => {

10411041

const fetchMock = stubMeetArtifactsApi();

104210421043-

await expect(

1044-

fetchGoogleMeetArtifacts({

1045-

accessToken: "token",

1046-

meeting: "abc-defg-hij",

1047-

pageSize: 2,

1048-

}),

1049-

).resolves.toMatchObject({

1050-

input: "abc-defg-hij",

1051-

space: { name: "spaces/abc-defg-hij" },

1052-

conferenceRecords: [{ name: "conferenceRecords/rec-1" }],

1053-

artifacts: [

1054-

{

1055-

conferenceRecord: { name: "conferenceRecords/rec-1" },

1056-

participants: [{ name: "conferenceRecords/rec-1/participants/p1" }],

1057-

recordings: [{ name: "conferenceRecords/rec-1/recordings/r1" }],

1058-

transcripts: [{ name: "conferenceRecords/rec-1/transcripts/t1" }],

1059-

transcriptEntries: [

1060-

{

1061-

transcript: "conferenceRecords/rec-1/transcripts/t1",

1062-

entries: [

1063-

{

1064-

name: "conferenceRecords/rec-1/transcripts/t1/entries/e1",

1065-

text: "Hello from the transcript.",

1066-

},

1067-

],

1068-

},

1069-

],

1070-

smartNotes: [{ name: "conferenceRecords/rec-1/smartNotes/sn1" }],

1071-

},

1072-

],

1043+

const result = await fetchGoogleMeetArtifacts({

1044+

accessToken: "token",

1045+

meeting: "abc-defg-hij",

1046+

pageSize: 2,

10731047

});

1048+

expect(result.input).toBe("abc-defg-hij");

1049+

expect(result.space?.name).toBe("spaces/abc-defg-hij");

1050+

expect(result.conferenceRecords.map((record) => record.name)).toEqual([

1051+

"conferenceRecords/rec-1",

1052+

]);

1053+

expect(result.artifacts).toHaveLength(1);

1054+

const artifact = result.artifacts[0];

1055+

expect(artifact?.conferenceRecord.name).toBe("conferenceRecords/rec-1");

1056+

expect(artifact?.participants.map((participant) => participant.name)).toEqual([

1057+

"conferenceRecords/rec-1/participants/p1",

1058+

]);

1059+

expect(artifact?.recordings.map((recording) => recording.name)).toEqual([

1060+

"conferenceRecords/rec-1/recordings/r1",

1061+

]);

1062+

expect(artifact?.transcripts.map((transcript) => transcript.name)).toEqual([

1063+

"conferenceRecords/rec-1/transcripts/t1",

1064+

]);

1065+

expect(artifact?.transcriptEntries).toHaveLength(1);

1066+

expect(artifact?.transcriptEntries[0]?.transcript).toBe(

1067+

"conferenceRecords/rec-1/transcripts/t1",

1068+

);

1069+

expect(artifact?.transcriptEntries[0]?.entries).toEqual([

1070+

{

1071+

name: "conferenceRecords/rec-1/transcripts/t1/entries/e1",

1072+

participant: "conferenceRecords/rec-1/participants/p1",

1073+

text: "Hello from the transcript.",

1074+

languageCode: "en-US",

1075+

startTime: "2026-04-25T10:01:00Z",

1076+

endTime: "2026-04-25T10:01:05Z",

1077+

},

1078+

]);

1079+

expect(artifact?.smartNotes.map((smartNote) => smartNote.name)).toEqual([

1080+

"conferenceRecords/rec-1/smartNotes/sn1",

1081+

]);

1074108210751083

const listCall = fetchMock.mock.calls.find(([input]) => {

10761084

const url = requestUrl(input);

@@ -1082,17 +1090,13 @@ describe("google-meet plugin", () => {

10821090

const listUrl = requestUrl(listCall[0]);

10831091

expect(listUrl.searchParams.get("filter")).toBe('space.name = "spaces/abc-defg-hij"');

10841092

expect(listUrl.searchParams.get("pageSize")).toBe("1");

1085-

expect(fetchGuardMocks.fetchWithSsrFGuard).toHaveBeenCalledWith(

1086-

expect.objectContaining({

1087-

url: "https://meet.googleapis.com/v2/conferenceRecords/rec-1/smartNotes?pageSize=2",

1088-

auditContext: "google-meet.conferenceRecords.smartNotes.list",

1089-

}),

1093+

expect(requireFetchGuardCall("google-meet.conferenceRecords.smartNotes.list").url).toBe(

1094+

"https://meet.googleapis.com/v2/conferenceRecords/rec-1/smartNotes?pageSize=2",

10901095

);

1091-

expect(fetchGuardMocks.fetchWithSsrFGuard).toHaveBeenCalledWith(

1092-

expect.objectContaining({

1093-

url: "https://meet.googleapis.com/v2/conferenceRecords/rec-1/transcripts/t1/entries?pageSize=2",

1094-

auditContext: "google-meet.conferenceRecords.transcripts.entries.list",

1095-

}),

1096+

expect(

1097+

requireFetchGuardCall("google-meet.conferenceRecords.transcripts.entries.list").url,

1098+

).toBe(

1099+

"https://meet.googleapis.com/v2/conferenceRecords/rec-1/transcripts/t1/entries?pageSize=2",

10961100

);

10971101

});

10981102

@@ -1121,20 +1125,18 @@ describe("google-meet plugin", () => {

11211125

it("exports linked Google Docs bodies when requested", async () => {

11221126

const fetchMock = stubMeetArtifactsApi();

112311271124-

await expect(

1125-

fetchGoogleMeetArtifacts({

1126-

accessToken: "token",

1127-

conferenceRecord: "rec-1",

1128-

includeDocumentBodies: true,

1129-

}),

1130-

).resolves.toMatchObject({

1131-

artifacts: [

1132-

{

1133-

transcripts: [{ documentText: "Transcript document body." }],

1134-

smartNotes: [{ documentText: "Smart note document body." }],

1135-

},

1136-

],

1128+

const result = await fetchGoogleMeetArtifacts({

1129+

accessToken: "token",

1130+

conferenceRecord: "rec-1",

1131+

includeDocumentBodies: true,

11371132

});

1133+

expect(result.artifacts).toHaveLength(1);

1134+

expect(result.artifacts[0]?.transcripts.map((transcript) => transcript.documentText)).toEqual([

1135+

"Transcript document body.",

1136+

]);

1137+

expect(result.artifacts[0]?.smartNotes.map((smartNote) => smartNote.documentText)).toEqual([

1138+

"Smart note document body.",

1139+

]);

11381140

const driveCalls = fetchMock.mock.calls

11391141

.map(([input]) => requestUrl(input))

11401142

.filter((url) => url.pathname.startsWith("/drive/v3/files/"));

@@ -1151,16 +1153,13 @@ describe("google-meet plugin", () => {

11511153

it("fetches only the latest Meet conference record for a meeting", async () => {

11521154

const fetchMock = stubMeetArtifactsApi();

115311551154-

await expect(

1155-

fetchLatestGoogleMeetConferenceRecord({

1156-

accessToken: "token",

1157-

meeting: "abc-defg-hij",

1158-

}),

1159-

).resolves.toMatchObject({

1160-

input: "abc-defg-hij",

1161-

space: { name: "spaces/abc-defg-hij" },

1162-

conferenceRecord: { name: "conferenceRecords/rec-1" },

1156+

const result = await fetchLatestGoogleMeetConferenceRecord({

1157+

accessToken: "token",

1158+

meeting: "abc-defg-hij",

11631159

});

1160+

expect(result.input).toBe("abc-defg-hij");

1161+

expect(result.space.name).toBe("spaces/abc-defg-hij");

1162+

expect(result.conferenceRecord?.name).toBe("conferenceRecords/rec-1");

1164116311651164

const listCall = fetchMock.mock.calls.find(([input]) => {

11661165

const url = requestUrl(input);

@@ -1177,34 +1176,31 @@ describe("google-meet plugin", () => {

11771176

it("lists Meet attendance rows with participant sessions", async () => {

11781177

const fetchMock = stubMeetArtifactsApi();

117911781180-

await expect(

1181-

fetchGoogleMeetAttendance({

1182-

accessToken: "token",

1183-

conferenceRecord: "rec-1",

1184-

pageSize: 3,

1185-

}),

1186-

).resolves.toMatchObject({

1187-

input: "rec-1",

1188-

conferenceRecords: [{ name: "conferenceRecords/rec-1" }],

1189-

attendance: [

1190-

{

1191-

conferenceRecord: "conferenceRecords/rec-1",

1192-

participant: "conferenceRecords/rec-1/participants/p1",

1193-

displayName: "Alice",

1194-

user: "users/alice",

1195-

sessions: [

1196-

{

1197-

name: "conferenceRecords/rec-1/participants/p1/participantSessions/s1",

1198-

},

1199-

],

1200-

},

1201-

],

1179+

const result = await fetchGoogleMeetAttendance({

1180+

accessToken: "token",

1181+

conferenceRecord: "rec-1",

1182+

pageSize: 3,

12021183

});

1184+

expect(result.input).toBe("rec-1");

1185+

expect(result.conferenceRecords.map((record) => record.name)).toEqual([

1186+

"conferenceRecords/rec-1",

1187+

]);

1188+

expect(result.attendance).toHaveLength(1);

1189+

expect(result.attendance[0]?.conferenceRecord).toBe("conferenceRecords/rec-1");

1190+

expect(result.attendance[0]?.participant).toBe("conferenceRecords/rec-1/participants/p1");

1191+

expect(result.attendance[0]?.displayName).toBe("Alice");

1192+

expect(result.attendance[0]?.user).toBe("users/alice");

1193+

expect(result.attendance[0]?.sessions.map((session) => session.name)).toEqual([

1194+

"conferenceRecords/rec-1/participants/p1/participantSessions/s1",

1195+

]);

12031196

expect(fetchMock).toHaveBeenCalledWith(

12041197

"https://meet.googleapis.com/v2/conferenceRecords/rec-1",

1205-

expect.objectContaining({

1206-

headers: expect.objectContaining({ Authorization: "Bearer token" }),

1207-

}),

1198+

{

1199+

headers: {

1200+

Authorization: "Bearer token",

1201+

Accept: "application/json",

1202+

},

1203+

},

12081204

);

12091205

});

12101206