test: offbox image is session-only in the durable pipeline integration
This commit is contained in:
parent
809e7d5a67
commit
75b6d71c6f
1 changed files with 1 additions and 1 deletions
|
|
@ -250,7 +250,7 @@ test('actual authenticated asset/settings and Learning content write routes enfo
|
|||
assert.equal(reopened.chat.payload.lastAnswer, body); assert.equal(reopened.chat.payload.messages[0].content, body);
|
||||
assert.deepEqual(reopened.chat.payload.messages[0].sources, [{ number: 3, page: 19 }]);
|
||||
assert.deepEqual(reopened.chat.payload.messages[0].imageJobs, [{ jobId: image.jobId }]);
|
||||
assert.equal(reopened.chat.payload.generatedImage, payload.generatedImage);
|
||||
assert.equal(reopened.chat.payload.generatedImage, undefined, 'offbox image is session-only and never stored');
|
||||
assert.match((await db.get('SELECT payload FROM clinical_assistant_chats WHERE id=$1', [savedId])).payload, /^enc1:/);
|
||||
assert.equal((await request('/api/clinical-assistant/chats/' + savedId, 102)).status, 404);
|
||||
assert.equal((await request('/api/clinical-assistant/chats', 102, 'POST', payload)).status, 403);
|
||||
|
|
|
|||
Loading…
Reference in a new issue