mirror of
https://github.com/HeyPuter/puter.git
synced 2026-11-05 05:24:13 +00:00
test(realtime): cover a revoked session credential
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
4c308ef1f0
commit
6049ba2741
1 file changed
+6
-2
@@ -1215,8 +1215,12 @@ describe('OpenAIRealtimeRelayService relay', () => {
|
||||
expect((await c.closed).code).toBe(1011);
|
||||
});
|
||||
|
||||
it('refuses an invalid or revoked credential with invalid_api_key and 1008', async () => {
|
||||
for (const result of [{ invalid: true }, { blocked: true }]) {
|
||||
it('refuses an invalid, blocked or revoked credential with invalid_api_key and 1008', async () => {
|
||||
for (const result of [
|
||||
{ invalid: true },
|
||||
{ blocked: true },
|
||||
{ reauth: { reason: 'session_revoked' } },
|
||||
]) {
|
||||
vi.spyOn(
|
||||
server.services.auth,
|
||||
'authenticate',
|
||||
|
||||
Reference in new issue
Block a user