Skip to content

Rewrite to add API

Rewrite to add API #85

Triggered via pull request August 2, 2024 13:54
@MaddyGuthridgeMaddyGuthridge
synchronize #1
rewrite
Status Failure
Total duration 55s
Artifacts

node.js.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

12 errors
check
Process completed with exit code 1.
lint
Process completed with exit code 2.
tests/backend/admin/firstrun.test.ts > POST /api/admin/repo > git > Clones repo to the default branch when URL is provided: tests/api/fetch.ts#L91
Error: ApiError: [400] Error: Cloning into './data'... git@github.com: Permission denied (publickey). fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists. ❯ Module.apiFetch tests/api/fetch.ts:91:11 ❯ tests/backend/admin/firstrun.test.ts:22:7 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { error: 'Error: Cloning into \'./data\'...\ngit@github.com: Permission denied (publickey).\r\nfatal: Could not read from remote repository.\n\nPlease make sure you have the correct access rights\nand the repository exists.\n', code: 400 }
tests/backend/admin/firstrun.test.ts > POST /api/admin/repo > git > Doesn't give an error if the repository is entirely empty: tests/api/fetch.ts#L91
Error: ApiError: [400] Error: Cloning into './data'... git@github.com: Permission denied (publickey). fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists. ❯ Module.apiFetch tests/api/fetch.ts:91:11 ❯ tests/backend/admin/firstrun.test.ts:35:7 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { error: 'Error: Cloning into \'./data\'...\ngit@github.com: Permission denied (publickey).\r\nfatal: Could not read from remote repository.\n\nPlease make sure you have the correct access rights\nand the repository exists.\n', code: 400 }
tests/backend/admin/firstrun.test.ts > POST /api/admin/repo > git > Checks out a branch when one is given: tests/api/fetch.ts#L91
Error: ApiError: [400] Error: Cloning into './data'... git@github.com: Permission denied (publickey). fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists. ❯ Module.apiFetch tests/api/fetch.ts:91:11 ❯ tests/backend/admin/firstrun.test.ts:40:7 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { error: 'Error: Cloning into \'./data\'...\ngit@github.com: Permission denied (publickey).\r\nfatal: Could not read from remote repository.\n\nPlease make sure you have the correct access rights\nand the repository exists.\n', code: 400 }
tests/backend/admin/firstrun.test.ts > POST /api/admin/repo > Gives auth credentials on success: tests/backend/admin/firstrun.test.ts#L53
AssertionError: promise rejected "Error: ApiError: [500] Request got status… { …(2) }" instead of resolving ❯ tests/backend/admin/firstrun.test.ts:53:48 Caused by: Caused by: Error: ApiError: [500] Request got status code 500 ❯ Module.apiFetch tests/api/fetch.ts:95:11 ❯ tests/backend/admin/firstrun.test.ts:53:5 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { error: 'Request got status code 500', code: 500 }
tests/backend/admin/firstrun.test.ts > POST /api/admin/repo > Blocks access if data is already set up: tests/api/fetch.ts#L95
Error: ApiError: [500] Request got status code 500 ❯ Module.apiFetch tests/api/fetch.ts:95:11 ❯ tests/backend/admin/firstrun.test.ts:64:5 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { error: 'Request got status code 500', code: 500 }
tests/backend/admin/firstrun.test.ts > POST /api/admin/repo > Doesn't clone repo when no URL provided: tests/api/fetch.ts#L95
Error: ApiError: [500] Request got status code 500 ❯ Module.apiFetch tests/api/fetch.ts:95:11 ❯ tests/backend/admin/firstrun.test.ts:71:5 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { error: 'Request got status code 500', code: 500 }
tests/backend/admin/firstrun.test.ts > POST /api/admin/repo > Sets up required starting files > config.local.json: tests/api/fetch.ts#L95
Error: ApiError: [500] Request got status code 500 ❯ Module.apiFetch tests/api/fetch.ts:95:11 ❯ tests/backend/admin/firstrun.test.ts:78:18 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { error: 'Request got status code 500', code: 500 }
tests/backend/admin/firstrun.test.ts > POST /api/admin/repo > Sets up required starting files > config.json: tests/api/fetch.ts#L95
Error: ApiError: [500] Request got status code 500 ❯ Module.apiFetch tests/api/fetch.ts:95:11 ❯ tests/backend/admin/firstrun.test.ts:78:18 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { error: 'Request got status code 500', code: 500 }
tests/backend/admin/auth/login.test.ts > Gives an error when the server isn't setup: tests/api/fetch.ts#L95
Error: ApiError: [500] Request got status code 500 ❯ Module.apiFetch tests/api/fetch.ts:95:11 ❯ Module.setup tests/backend/helpers.ts:5:11 ❯ tests/backend/admin/auth/login.test.ts:13:17 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { error: 'Request got status code 500', code: 500 }
tests/backend/admin/auth/login.test.ts > Returns a token when correct credentials are provided: tests/api/fetch.ts#L95
Error: ApiError: [500] Request got status code 500 ❯ Module.apiFetch tests/api/fetch.ts:95:11 ❯ Module.setup tests/backend/helpers.ts:5:11 ❯ tests/backend/admin/auth/login.test.ts:13:17 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { error: 'Request got status code 500', code: 500 }