Skip to content

feat(parent structure): add method that return note parent structure #843

feat(parent structure): add method that return note parent structure

feat(parent structure): add method that return note parent structure #843

Triggered via pull request September 23, 2024 19:44
Status Failure
Total duration 2m 49s
Artifacts 1

run-tests.yml

on: pull_request
Matrix: tests
report-coverage
0s
report-coverage
Fit to window
Zoom out
Zoom in

Annotations

10 errors and 2 warnings
src/presentation/http/router/note.test.ts > Note API > GET note/:notePublicId > Returns note with access rights by public id: src/presentation/http/router/note.test.ts#L318
AssertionError: expected 500 to be 200 // Object.is equality - Expected + Received - 200 + 500 ❯ src/presentation/http/router/note.test.ts:318:36
src/presentation/http/router/note.test.ts > Note API > GET note/:notePublicId > Returns note with access rights by public id: src/presentation/http/router/note.test.ts#L318
AssertionError: expected 500 to be 200 // Object.is equality - Expected + Received - 200 + 500 ❯ src/presentation/http/router/note.test.ts:318:36
src/presentation/http/router/note.test.ts > Note API > GET note/:notePublicId > Returns note with access rights by public id: src/presentation/http/router/note.test.ts#L318
AssertionError: expected 500 to be 200 // Object.is equality - Expected + Received - 200 + 500 ❯ src/presentation/http/router/note.test.ts:318:36
src/presentation/http/router/note.test.ts > Note API > GET note/:notePublicId > Returns note by public id with recursive access check: src/presentation/http/router/note.test.ts#L472
AssertionError: expected 500 to be 200 // Object.is equality - Expected + Received - 200 + 500 ❯ src/presentation/http/router/note.test.ts:472:36
src/presentation/http/router/note.test.ts > Note API > GET note/:notePublicId > Returns note by public id with recursive access check: src/presentation/http/router/note.test.ts#L472
AssertionError: expected 500 to be 200 // Object.is equality - Expected + Received - 200 + 500 ❯ src/presentation/http/router/note.test.ts:472:36
src/presentation/http/router/note.test.ts > Note API > GET note/:notePublicId > Returns note by public id with recursive access check: src/presentation/http/router/note.test.ts#L472
AssertionError: expected 500 to be 200 // Object.is equality - Expected + Received - 200 + 500 ❯ src/presentation/http/router/note.test.ts:472:36
src/presentation/http/router/note.test.ts > Note API > GET note/:notePublicId > Returns note and parent note by note public id with 200 status: src/presentation/http/router/note.test.ts#L517
AssertionError: expected 500 to be 200 // Object.is equality - Expected + Received - 200 + 500 ❯ src/presentation/http/router/note.test.ts:517:36
src/presentation/http/router/note.test.ts > Note API > GET note/:notePublicId > Returns note parents by note public id in different note accessibility and authorization: src/tests/utils/database-helpers.ts#L238
SequelizeDatabaseError: column "undefined" does not exist ❯ Query.run node_modules/sequelize/src/dialects/postgres/query.js:76:25 ❯ node_modules/sequelize/src/sequelize.js:650:28 ❯ DatabaseHelpers.insertNoteSetting src/tests/utils/database-helpers.ts:238:5 ❯ src/presentation/http/router/note.test.ts:648:9 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { parent: { stack: 'error: column "undefined" does not exist\n at Parser.parseErrorMessage (/home/runner/work/notes.api/notes.api/node_modules/pg-protocol/src/parser.ts:369:69)\n at Parser.handlePacket (/home/runner/work/notes.api/notes.api/node_modules/pg-protocol/src/parser.ts:188:21)\n at Parser.parse (/home/runner/work/notes.api/notes.api/node_modules/pg-protocol/src/parser.ts:103:30)\n at Socket.<anonymous> (/home/runner/work/notes.api/notes.api/node_modules/pg-protocol/src/index.ts:7:48)\n at Socket.emit (node:events:519:28)\n at addChunk (node:internal/streams/readable:559:12)\n at readableAddChunkPushByteMode (node:internal/streams/readable:510:3)\n at Socket.Readable.push (node:internal/streams/readable:390:5)\n at TCP.onStreamRead (node:internal/stream_base_commons:191:23)', message: 'column "undefined" does not exist', length: 110, name: 'error', severity: 'ERROR', code: '42703', detail: undefined, hint: undefined, position: '114', internalPosition: undefined, internalQuery: undefined, where: undefined, schema: undefined, table: undefined, column: undefined, dataType: undefined, constraint: undefined, file: 'parse_relation.c', line: '3504', routine: 'errorMissingColumn', sql: 'INSERT INTO public.note_settings ("note_id", "custom_hostname", "is_public", "invitation_hash", "cover") VALUES (undefined, \'null\', true, \'yZGaQ-Y5jR\', \'\')', parameters: undefined, constructor: 'Function<DatabaseError>', toString: 'Function<toString>' }, original: { stack: 'error: column "undefined" does not exist\n at Parser.parseErrorMessage (/home/runner/work/notes.api/notes.api/node_modules/pg-protocol/src/parser.ts:369:69)\n at Parser.handlePacket (/home/runner/work/notes.api/notes.api/node_modules/pg-protocol/src/parser.ts:188:21)\n at Parser.parse (/home/runner/work/notes.api/notes.api/node_modules/pg-protocol/src/parser.ts:103:30)\n at Socket.<anonymous> (/home/runner/work/notes.api/notes.api/node_modules/pg-protocol/src/index.ts:7:48)\n at Socket.emit (node:events:519:28)\n at addChunk (node:internal/streams/readable:559:12)\n at readableAddChunkPushByteMode (node:internal/streams/readable:510:3)\n at Socket.Readable.push (node:internal/streams/readable:390:5)\n at TCP.onStreamRead (node:internal/stream_base_commons:191:23)', message: 'column "undefined" does not exist', length: 110, name: 'error', severity: 'ERROR', code: '42703', detail: undefined, hint: undefined, position: '114', internalPosition: undefined, internalQuery: undefined, where: undefined, schema: undefined, table: undefined, column: undefined, dataType: undefined, constraint: undefined, file: 'parse_relation.c', line: '3504', routine: 'errorMissingColumn', sql: 'INSERT INTO public.note_settings ("note_id", "custom_hostname", "is_public", "invitation_hash", "cover") VALUES (undefined, \'null\', true, \'yZGaQ-Y5jR\', \'\')', parameters: undefined, constructor: 'Function<DatabaseError>', toString: 'Function<toString>' }, sql: 'INSERT INTO public.note_settings ("note_id", "custom_hostname", "is_public", "invitation_hash", "cover") VALUES (undefined, \'null\', true, \'yZGaQ-Y5jR\', \'\')', parameters: {} }
src/presentation/http/router/note.test.ts > Note API > GET note/:notePublicId > Returns note parents by note public id in different note accessibility and authorization: src/tests/utils/database-helpers.ts#L238
SequelizeDatabaseError: column "undefined" does not exist ❯ Query.run node_modules/sequelize/src/dialects/postgres/query.js:76:25 ❯ node_modules/sequelize/src/sequelize.js:650:28 ❯ DatabaseHelpers.insertNoteSetting src/tests/utils/database-helpers.ts:238:5 ❯ src/presentation/http/router/note.test.ts:648:9 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { parent: { stack: 'error: column "undefined" does not exist\n at Parser.parseErrorMessage (/home/runner/work/notes.api/notes.api/node_modules/pg-protocol/src/parser.ts:369:69)\n at Parser.handlePacket (/home/runner/work/notes.api/notes.api/node_modules/pg-protocol/src/parser.ts:188:21)\n at Parser.parse (/home/runner/work/notes.api/notes.api/node_modules/pg-protocol/src/parser.ts:103:30)\n at Socket.<anonymous> (/home/runner/work/notes.api/notes.api/node_modules/pg-protocol/src/index.ts:7:48)\n at Socket.emit (node:events:519:28)\n at addChunk (node:internal/streams/readable:559:12)\n at readableAddChunkPushByteMode (node:internal/streams/readable:510:3)\n at Socket.Readable.push (node:internal/streams/readable:390:5)\n at TCP.onStreamRead (node:internal/stream_base_commons:191:23)', message: 'column "undefined" does not exist', length: 110, name: 'error', severity: 'ERROR', code: '42703', detail: undefined, hint: undefined, position: '114', internalPosition: undefined, internalQuery: undefined, where: undefined, schema: undefined, table: undefined, column: undefined, dataType: undefined, constraint: undefined, file: 'parse_relation.c', line: '3504', routine: 'errorMissingColumn', sql: 'INSERT INTO public.note_settings ("note_id", "custom_hostname", "is_public", "invitation_hash", "cover") VALUES (undefined, \'null\', true, \'p_ghPfXBzD\', \'\')', parameters: undefined, constructor: 'Function<DatabaseError>', toString: 'Function<toString>' }, original: { stack: 'error: column "undefined" does not exist\n at Parser.parseErrorMessage (/home/runner/work/notes.api/notes.api/node_modules/pg-protocol/src/parser.ts:369:69)\n at Parser.handlePacket (/home/runner/work/notes.api/notes.api/node_modules/pg-protocol/src/parser.ts:188:21)\n at Parser.parse (/home/runner/work/notes.api/notes.api/node_modules/pg-protocol/src/parser.ts:103:30)\n at Socket.<anonymous> (/home/runner/work/notes.api/notes.api/node_modules/pg-protocol/src/index.ts:7:48)\n at Socket.emit (node:events:519:28)\n at addChunk (node:internal/streams/readable:559:12)\n at readableAddChunkPushByteMode (node:internal/streams/readable:510:3)\n at Socket.Readable.push (node:internal/streams/readable:390:5)\n at TCP.onStreamRead (node:internal/stream_base_commons:191:23)', message: 'column "undefined" does not exist', length: 110, name: 'error', severity: 'ERROR', code: '42703', detail: undefined, hint: undefined, position: '114', internalPosition: undefined, internalQuery: undefined, where: undefined, schema: undefined, table: undefined, column: undefined, dataType: undefined, constraint: undefined, file: 'parse_relation.c', line: '3504', routine: 'errorMissingColumn', sql: 'INSERT INTO public.note_settings ("note_id", "custom_hostname", "is_public", "invitation_hash", "cover") VALUES (undefined, \'null\', true, \'p_ghPfXBzD\', \'\')', parameters: undefined, constructor: 'Function<DatabaseError>', toString: 'Function<toString>' }, sql: 'INSERT INTO public.note_settings ("note_id", "custom_hostname", "is_public", "invitation_hash", "cover") VALUES (undefined, \'null\', true, \'p_ghPfXBzD\', \'\')', parameters: {} }
src/presentation/http/router/note.test.ts > Note API > GET note/:notePublicId > Returns note parents by note public id in different note accessibility and authorization: src/tests/utils/database-helpers.ts#L238
SequelizeDatabaseError: column "undefined" does not exist ❯ Query.run node_modules/sequelize/src/dialects/postgres/query.js:76:25 ❯ node_modules/sequelize/src/sequelize.js:650:28 ❯ DatabaseHelpers.insertNoteSetting src/tests/utils/database-helpers.ts:238:5 ❯ src/presentation/http/router/note.test.ts:648:9 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { parent: { stack: 'error: column "undefined" does not exist\n at Parser.parseErrorMessage (/home/runner/work/notes.api/notes.api/node_modules/pg-protocol/src/parser.ts:369:69)\n at Parser.handlePacket (/home/runner/work/notes.api/notes.api/node_modules/pg-protocol/src/parser.ts:188:21)\n at Parser.parse (/home/runner/work/notes.api/notes.api/node_modules/pg-protocol/src/parser.ts:103:30)\n at Socket.<anonymous> (/home/runner/work/notes.api/notes.api/node_modules/pg-protocol/src/index.ts:7:48)\n at Socket.emit (node:events:519:28)\n at addChunk (node:internal/streams/readable:559:12)\n at readableAddChunkPushByteMode (node:internal/streams/readable:510:3)\n at Socket.Readable.push (node:internal/streams/readable:390:5)\n at TCP.onStreamRead (node:internal/stream_base_commons:191:23)', message: 'column "undefined" does not exist', length: 110, name: 'error', severity: 'ERROR', code: '42703', detail: undefined, hint: undefined, position: '114', internalPosition: undefined, internalQuery: undefined, where: undefined, schema: undefined, table: undefined, column: undefined, dataType: undefined, constraint: undefined, file: 'parse_relation.c', line: '3504', routine: 'errorMissingColumn', sql: 'INSERT INTO public.note_settings ("note_id", "custom_hostname", "is_public", "invitation_hash", "cover") VALUES (undefined, \'null\', true, \'MHLp2jSTOg\', \'\')', parameters: undefined, constructor: 'Function<DatabaseError>', toString: 'Function<toString>' }, original: { stack: 'error: column "undefined" does not exist\n at Parser.parseErrorMessage (/home/runner/work/notes.api/notes.api/node_modules/pg-protocol/src/parser.ts:369:69)\n at Parser.handlePacket (/home/runner/work/notes.api/notes.api/node_modules/pg-protocol/src/parser.ts:188:21)\n at Parser.parse (/home/runner/work/notes.api/notes.api/node_modules/pg-protocol/src/parser.ts:103:30)\n at Socket.<anonymous> (/home/runner/work/notes.api/notes.api/node_modules/pg-protocol/src/index.ts:7:48)\n at Socket.emit (node:events:519:28)\n at addChunk (node:internal/streams/readable:559:12)\n at readableAddChunkPushByteMode (node:internal/streams/readable:510:3)\n at Socket.Readable.push (node:internal/streams/readable:390:5)\n at TCP.onStreamRead (node:internal/stream_base_commons:191:23)', message: 'column "undefined" does not exist', length: 110, name: 'error', severity: 'ERROR', code: '42703', detail: undefined, hint: undefined, position: '114', internalPosition: undefined, internalQuery: undefined, where: undefined, schema: undefined, table: undefined, column: undefined, dataType: undefined, constraint: undefined, file: 'parse_relation.c', line: '3504', routine: 'errorMissingColumn', sql: 'INSERT INTO public.note_settings ("note_id", "custom_hostname", "is_public", "invitation_hash", "cover") VALUES (undefined, \'null\', true, \'MHLp2jSTOg\', \'\')', parameters: undefined, constructor: 'Function<DatabaseError>', toString: 'Function<toString>' }, sql: 'INSERT INTO public.note_settings ("note_id", "custom_hostname", "is_public", "invitation_hash", "cover") VALUES (undefined, \'null\', true, \'MHLp2jSTOg\', \'\')', parameters: {} }
tests (feat/return-note)
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/setup-node@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
tests (main)
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/setup-node@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/

Artifacts

Produced during runtime
Name Size
coverage-main Expired
97 KB