Skip to content

fix(lbac-2328): nettoyage de la collection application #5529

fix(lbac-2328): nettoyage de la collection application

fix(lbac-2328): nettoyage de la collection application #5529

Triggered via pull request January 9, 2025 08:58
Status Failure
Total duration 3m 49s
Artifacts

preview.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

7 errors and 2 warnings
src/services/emails.service.test.ts > email blaklist events > Unsubscribed variation events should register correct origin with (unsubscribed) reason: server/src/services/emails.service.test.ts#L120
AssertionError: expected { …(4) } to deeply equal ObjectContaining{…} - Expected + Received - ObjectContaining { - "blacklisting_origin": "candidature_spontanee_candidat (unsubscribed)", + Object { + "_id": "677f9062c2287d790112f462", + "blacklisting_origin": "unknown (unsubscribed)", + "created_at": 2025-01-09T09:01:22.919Z, "email": "[email protected]", } ❯ src/services/emails.service.test.ts:120:26
src/http/controllers/application.controller.test.ts > POST /v1/application > should create an application with minimal fileds used: server/src/http/controllers/application.controller.test.ts#L80
AssertionError: expected 500 to deeply equal 200 - Expected + Received - 200 + 500 ❯ src/http/controllers/application.controller.test.ts:80:38
src/http/controllers/application.controller.test.ts > POST /v1/application > should create an application with minimal fileds used: server/src/http/controllers/application.controller.test.ts#L81
AssertionError: expected { error: 'error_sending_application' } to deeply equal { message: 'messages sent', …(1) } - Expected + Received Object { - "message": "messages sent", - "result": "ok", + "error": "error_sending_application", } ❯ src/http/controllers/application.controller.test.ts:81:34
src/http/controllers/application.controller.test.ts > POST /v1/application > should create an application with minimal fileds used: server/src/http/controllers/application.controller.test.ts#L89
AssertionError: expected [] to deeply equal [ { _id: Any<ObjectId>, …(24) } ] - Expected + Received - Array [ - Object { - "_id": Any<ObjectId>, - "applicant_attachment_name": "cv.pdf", - "applicant_email": "[email protected]", - "applicant_first_name": "Jean", - "applicant_id": undefined, - "applicant_last_name": "Dupont", - "applicant_message_to_company": "", - "applicant_phone": "0101010101", - "caller": "Open Data 42", - "company_address": "126 RUE DE L UNIVERSITE, 75007 Paris", - "company_email": "[email protected]", - "company_feedback": null, - "company_naf": "Administration publique générale", - "company_name": "ASSEMBLEE NATIONALE", - "company_phone": null, - "company_recruitment_intention": null, - "company_siret": "11000001500013", - "created_at": Any<Date>, - "job_id": "677f908b22b625fd0cb73a34", - "job_origin": "recruteurs_lba", - "job_title": "ASSEMBLEE NATIONALE", - "last_update_at": Any<Date>, - "scan_status": "WAITING_FOR_SCAN", - "to_applicant_message_id": null, - "to_company_message_id": null, - }, - ] + Array [] ❯ src/http/controllers/application.controller.test.ts:89:26
src/http/controllers/v2/applications.controller.v2.test.ts > POST /v2/application > Return 202 and create an application using a recruter lba: server/src/http/controllers/v2/applications.controller.v2.test.ts#L144
AssertionError: expected { …(22) } to deeply equal { _id: Any<ObjectId>, …(25) } - Expected + Received Object { "_id": Any<ObjectId>, "applicant_attachment_name": "cv.pdf", - "applicant_email": "[email protected]", - "applicant_first_name": "Jean", "applicant_id": "677f906f0a14467fbb78db18", - "applicant_last_name": "Dupont", "applicant_message_to_company": "", - "applicant_phone": "0101010101", "caller": "Un super Partenaire", "company_address": "126 RUE DE L UNIVERSITE, 75007 Paris", "company_email": "[email protected]", "company_feedback": null, "company_naf": "Administration publique générale", "company_name": "ASSEMBLEE NATIONALE", "company_phone": null, "company_recruitment_intention": null, "company_siret": "11000001500013", "created_at": Any<Date>, "job_id": "677f906d0a14467fbb78db14", "job_origin": "recruteurs_lba", "job_searched_by_user": null, "job_title": "ASSEMBLEE NATIONALE", "last_update_at": Any<Date>, "scan_status": "WAITING_FOR_SCAN", "to_applicant_message_id": null, "to_company_message_id": null, } ❯ src/http/controllers/v2/applications.controller.v2.test.ts:144:25
src/http/controllers/v2/applications.controller.v2.test.ts > POST /v2/application > Return 202 and create an application using a recruiter: server/src/http/controllers/v2/applications.controller.v2.test.ts#L203
AssertionError: expected { …(22) } to deeply equal { _id: Any<ObjectId>, …(25) } - Expected + Received Object { "_id": Any<ObjectId>, "applicant_attachment_name": "cv.pdf", - "applicant_email": "[email protected]", - "applicant_first_name": "Jean", "applicant_id": "677f90700a14467fbb78db19", - "applicant_last_name": "Dupont", "applicant_message_to_company": "", - "applicant_phone": "0101010101", "caller": "Un super Partenaire", "company_address": "Paris", "company_email": "[email protected]", "company_feedback": null, "company_naf": "", "company_name": "ASSEMBLEE NATIONALE", "company_phone": "0300000000", "company_recruitment_intention": null, "company_siret": "11000001500013", "created_at": Any<Date>, "job_id": "677f906d0a14467fbb78db16", "job_origin": "offres_emploi_lba", "job_searched_by_user": null, "job_title": "Opérations administratives", "last_update_at": Any<Date>, "scan_status": "WAITING_FOR_SCAN", "to_applicant_message_id": null, "to_company_message_id": null, } ❯ src/http/controllers/v2/applications.controller.v2.test.ts:203:25
tests / Tests
Process completed with exit code 1.
Add deploy comment
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
tests / Tests
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636