fix: harden attachment analysis delivery
This commit is contained in:
@@ -199,6 +199,10 @@ try {
|
||||
"queued task should carry attachment file name",
|
||||
);
|
||||
assert.ok(textUpload.analysisTask.attachmentDownloadUrl, "queued task should expose attachment download url");
|
||||
assert.ok(
|
||||
textUpload.analysisTask.attachmentDownloadUrl.startsWith(currentServer.baseUrl),
|
||||
"queued task should use the current runtime origin for attachment download",
|
||||
);
|
||||
const promptDownloadUrlMatch = textUpload.analysisTask.executionPrompt.match(/downloadUrl:\s+(http[^\s]+)/);
|
||||
assert.ok(promptDownloadUrlMatch, "execution prompt should include attachment download url");
|
||||
const unauthDownloadResponse = await fetch(textUpload.analysisTask.attachmentDownloadUrl);
|
||||
|
||||
Reference in New Issue
Block a user