Skip to content

use types for player auth error codes #1329

use types for player auth error codes

use types for player auth error codes #1329

Triggered via push December 9, 2024 22:38
Status Failure
Total duration 3m 33s
Artifacts

ci.yml

on: push
Fit to window
Zoom out
Zoom in

Annotations

5 errors and 3 warnings
tests/middlewares/player-auth-middleware.test.ts > Player auth middleware > should block access if the session token does not match the alias: tests/middlewares/player-auth-middleware.test.ts#L145
Error: expected 401 "Unauthorized", got 200 "OK" ❯ tests/middlewares/player-auth-middleware.test.ts:145:8 ❯ Test._assertStatus node_modules/supertest/lib/test.js:252:14 ❯ node_modules/supertest/lib/test.js:308:13 ❯ Test._assertFunction node_modules/supertest/lib/test.js:285:13 ❯ Test.assert node_modules/supertest/lib/test.js:164:23 ❯ Server.localAssert node_modules/supertest/lib/test.js:120:14 ❯ Object.onceWrapper node:events:632:28 ❯ Server.emit node:events:518:28 ❯ Server.emit node:domain:489:12 ❯ emitCloseNT node:net:2344:8
tests/services/game-channel/index.test.ts > Game channel service - index > should return a list of game channels: tests/services/game-channel/index.test.ts#L11
Error: expected 200 "OK", got 404 "Not Found" ❯ tests/services/game-channel/index.test.ts:11:8 ❯ Test._assertStatus node_modules/supertest/lib/test.js:252:14 ❯ node_modules/supertest/lib/test.js:308:13 ❯ Test._assertFunction node_modules/supertest/lib/test.js:285:13 ❯ Test.assert node_modules/supertest/lib/test.js:164:23 ❯ Server.localAssert node_modules/supertest/lib/test.js:120:14 ❯ Object.onceWrapper node:events:632:28 ❯ Server.emit node:events:518:28 ❯ Server.emit node:domain:489:12 ❯ emitCloseNT node:net:2344:8
tests/services/_api/game-channel-api/post.test.ts > Game channel API service - post > should create a game channel if the scope is valid: tests/services/_api/game-channel-api/post.test.ts#L12
Error: expected 200 "OK", got 400 "Bad Request" ❯ tests/services/_api/game-channel-api/post.test.ts:12:8 ❯ Test._assertStatus node_modules/supertest/lib/test.js:252:14 ❯ node_modules/supertest/lib/test.js:308:13 ❯ Test._assertFunction node_modules/supertest/lib/test.js:285:13 ❯ Test.assert node_modules/supertest/lib/test.js:164:23 ❯ Server.localAssert node_modules/supertest/lib/test.js:120:14 ❯ Object.onceWrapper node:events:632:28 ❯ Server.emit node:events:518:28 ❯ Server.emit node:domain:489:12 ❯ emitCloseNT node:net:2344:8
tests/services/_api/game-channel-api/post.test.ts > Game channel API service - post > should not create a game channel if the scope is not valid: tests/services/_api/game-channel-api/post.test.ts#L21
Error: expected 403 "Forbidden", got 400 "Bad Request" ❯ tests/services/_api/game-channel-api/post.test.ts:21:8 ❯ Test._assertStatus node_modules/supertest/lib/test.js:252:14 ❯ node_modules/supertest/lib/test.js:308:13 ❯ Test._assertFunction node_modules/supertest/lib/test.js:285:13 ❯ Test.assert node_modules/supertest/lib/test.js:164:23 ❯ Server.localAssert node_modules/supertest/lib/test.js:120:14 ❯ Object.onceWrapper node:events:632:28 ❯ Server.emit node:events:518:28 ❯ Server.emit node:domain:489:12 ❯ emitCloseNT node:net:2344:8
test
Process completed with exit code 1.
lint
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
build-check
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
test
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636