Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .cursor/rules/use-bun-instead-of-node-vite-npm-pnpm.mdc

This file was deleted.

4 changes: 2 additions & 2 deletions .mise/tasks/test/e2e
Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,11 @@ echo "🚀 Starting Jack instances..."
docker compose -f "$E2E_DIR/docker-compose.yml" up -d --build jack-alpha jack-beta

echo "⏳ Waiting for Jack Alpha..."
timeout 60 bash -c 'until curl -sf -H "X-Api-Key: '"$JACK_ALPHA_API_KEY"'" http://localhost:13000/servers > /dev/null 2>&1; do sleep 2; done'
timeout 60 bash -c 'until curl -sf -H "X-Api-Key: '"$JACK_ALPHA_API_KEY"'" http://localhost:13000/handshake > /dev/null 2>&1; do sleep 2; done'
echo "✅ Jack Alpha ready"

echo "⏳ Waiting for Jack Beta..."
timeout 60 bash -c 'until curl -sf -H "X-Api-Key: '"$JACK_BETA_API_KEY"'" http://localhost:13001/servers > /dev/null 2>&1; do sleep 2; done'
timeout 60 bash -c 'until curl -sf -H "X-Api-Key: '"$JACK_BETA_API_KEY"'" http://localhost:13001/handshake > /dev/null 2>&1; do sleep 2; done'
echo "✅ Jack Beta ready"

echo ""
Expand Down
5 changes: 4 additions & 1 deletion e2e/tests/torznab-search.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,10 @@ describe('Torznab Search (e2e)', () => {
expect(res.status).toBe(200)
const xml = await res.text()
expect(xml).toContain('<error code="100"')
expect(xml).toContain('Unauthorized: invalid API key')
// The peer-facing app returns opaque errors — a generic reason, never the
// detailed "invalid API key" (which would leak auth detail to clients).
expect(xml).toContain('Unauthorized')
expect(xml).not.toContain('invalid API key')
})

test('Torznab rejects unknown function', async () => {
Expand Down