feat(lbac-2400): api: passage du traitement des offres en asynchrone #5933
preview.yml
on: pull_request
tests
/
Tests
3m 37s
Add deploy comment
2s
Annotations
10 errors
src/services/jobs/jobOpportunity/jobOpportunity.service.test.ts > createJobOffer > should create a job offer with the minimal data:
server/src/services/jobs/jobOpportunity/jobOpportunity.service.ts#L755
MongoServerError: Updating the path 'created_at' would create a conflict at 'created_at'
❯ UpdateOneOperation.execute ../node_modules/mongodb/src/operations/update.ts:157:32
❯ tryOperation ../node_modules/mongodb/src/operations/execute_operation.ts:278:14
❯ executeOperation ../node_modules/mongodb/src/operations/execute_operation.ts:112:12
❯ Collection.updateOne ../node_modules/mongodb/src/collection.ts:369:12
❯ upsertJobOffer src/services/jobs/jobOpportunity/jobOpportunity.service.ts:755:3
❯ src/services/jobs/jobOpportunity/jobOpportunity.service.test.ts:1958:20
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { errorResponse: { index: +0, code: 40, errmsg: 'Updating the path \'created_at\' would create a conflict at \'created_at\'' }, index: +0, code: 40, errmsg: 'Updating the path \'created_at\' would create a conflict at \'created_at\'', hasErrorLabel: 'Function<hasErrorLabel>', addErrorLabel: 'Function<addErrorLabel>', errorLabels: [] }
|
src/services/jobs/jobOpportunity/jobOpportunity.service.test.ts > createJobOffer > should get default rome from ROMEO:
server/src/services/jobs/jobOpportunity/jobOpportunity.service.ts#L755
MongoServerError: Updating the path 'created_at' would create a conflict at 'created_at'
❯ UpdateOneOperation.execute ../node_modules/mongodb/src/operations/update.ts:157:32
❯ tryOperation ../node_modules/mongodb/src/operations/execute_operation.ts:278:14
❯ executeOperation ../node_modules/mongodb/src/operations/execute_operation.ts:112:12
❯ Collection.updateOne ../node_modules/mongodb/src/collection.ts:369:12
❯ upsertJobOffer src/services/jobs/jobOpportunity/jobOpportunity.service.ts:755:3
❯ src/services/jobs/jobOpportunity/jobOpportunity.service.test.ts:1985:20
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { errorResponse: { index: +0, code: 40, errmsg: 'Updating the path \'created_at\' would create a conflict at \'created_at\'' }, index: +0, code: 40, errmsg: 'Updating the path \'created_at\' would create a conflict at \'created_at\'', hasErrorLabel: 'Function<hasErrorLabel>', addErrorLabel: 'Function<addErrorLabel>', errorLabels: [] }
|
src/services/jobs/jobOpportunity/jobOpportunity.service.test.ts > createJobOffer > should get workplace location from given "workplace_address_*" fields:
server/src/services/jobs/jobOpportunity/jobOpportunity.service.ts#L755
MongoServerError: Updating the path 'created_at' would create a conflict at 'created_at'
❯ UpdateOneOperation.execute ../node_modules/mongodb/src/operations/update.ts:157:32
❯ tryOperation ../node_modules/mongodb/src/operations/execute_operation.ts:278:14
❯ executeOperation ../node_modules/mongodb/src/operations/execute_operation.ts:112:12
❯ Collection.updateOne ../node_modules/mongodb/src/collection.ts:369:12
❯ upsertJobOffer src/services/jobs/jobOpportunity/jobOpportunity.service.ts:755:3
❯ src/services/jobs/jobOpportunity/jobOpportunity.service.test.ts:2016:20
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { errorResponse: { index: +0, code: 40, errmsg: 'Updating the path \'created_at\' would create a conflict at \'created_at\'' }, index: +0, code: 40, errmsg: 'Updating the path \'created_at\' would create a conflict at \'created_at\'', hasErrorLabel: 'Function<hasErrorLabel>', addErrorLabel: 'Function<addErrorLabel>', errorLabels: [] }
|
src/services/jobs/jobOpportunity/jobOpportunity.service.test.ts > createJobOffer > should support offer.status:
server/src/services/jobs/jobOpportunity/jobOpportunity.service.ts#L755
MongoServerError: Updating the path 'created_at' would create a conflict at 'created_at'
❯ UpdateOneOperation.execute ../node_modules/mongodb/src/operations/update.ts:157:32
❯ tryOperation ../node_modules/mongodb/src/operations/execute_operation.ts:278:14
❯ executeOperation ../node_modules/mongodb/src/operations/execute_operation.ts:112:12
❯ Collection.updateOne ../node_modules/mongodb/src/collection.ts:369:12
❯ upsertJobOffer src/services/jobs/jobOpportunity/jobOpportunity.service.ts:755:3
❯ src/services/jobs/jobOpportunity/jobOpportunity.service.test.ts:2032:20
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { errorResponse: { index: +0, code: 40, errmsg: 'Updating the path \'created_at\' would create a conflict at \'created_at\'' }, index: +0, code: 40, errmsg: 'Updating the path \'created_at\' would create a conflict at \'created_at\'', hasErrorLabel: 'Function<hasErrorLabel>', addErrorLabel: 'Function<addErrorLabel>', errorLabels: [] }
|
src/services/jobs/jobOpportunity/jobOpportunity.service.test.ts > updateJobOffer > should update a job offer with the minimal data:
server/src/services/jobs/jobOpportunity/jobOpportunity.service.ts#L755
MongoServerError: Updating the path 'created_at' would create a conflict at 'created_at'
❯ UpdateOneOperation.execute ../node_modules/mongodb/src/operations/update.ts:157:32
❯ tryOperation ../node_modules/mongodb/src/operations/execute_operation.ts:278:14
❯ executeOperation ../node_modules/mongodb/src/operations/execute_operation.ts:112:12
❯ Collection.updateOne ../node_modules/mongodb/src/collection.ts:369:12
❯ upsertJobOffer src/services/jobs/jobOpportunity/jobOpportunity.service.ts:755:3
❯ Module.updateJobOffer src/services/jobs/jobOpportunity/jobOpportunity.service.ts:776:3
❯ src/services/jobs/jobOpportunity/jobOpportunity.service.test.ts:2119:5
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { errorResponse: { index: +0, code: 40, errmsg: 'Updating the path \'created_at\' would create a conflict at \'created_at\'' }, index: +0, code: 40, errmsg: 'Updating the path \'created_at\' would create a conflict at \'created_at\'', hasErrorLabel: 'Function<hasErrorLabel>', addErrorLabel: 'Function<addErrorLabel>', errorLabels: [] }
|
src/services/jobs/jobOpportunity/jobOpportunity.service.test.ts > updateJobOffer > should get default rome from ROMEO:
server/src/services/jobs/jobOpportunity/jobOpportunity.service.ts#L755
MongoServerError: Updating the path 'created_at' would create a conflict at 'created_at'
❯ UpdateOneOperation.execute ../node_modules/mongodb/src/operations/update.ts:157:32
❯ tryOperation ../node_modules/mongodb/src/operations/execute_operation.ts:278:14
❯ executeOperation ../node_modules/mongodb/src/operations/execute_operation.ts:112:12
❯ Collection.updateOne ../node_modules/mongodb/src/collection.ts:369:12
❯ upsertJobOffer src/services/jobs/jobOpportunity/jobOpportunity.service.ts:755:3
❯ Module.updateJobOffer src/services/jobs/jobOpportunity/jobOpportunity.service.ts:776:3
❯ src/services/jobs/jobOpportunity/jobOpportunity.service.test.ts:2153:5
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { errorResponse: { index: +0, code: 40, errmsg: 'Updating the path \'created_at\' would create a conflict at \'created_at\'' }, index: +0, code: 40, errmsg: 'Updating the path \'created_at\' would create a conflict at \'created_at\'', hasErrorLabel: 'Function<hasErrorLabel>', addErrorLabel: 'Function<addErrorLabel>', errorLabels: [] }
|
src/services/jobs/jobOpportunity/jobOpportunity.service.test.ts > updateJobOffer > should get workplace location from given "workplace_address_label" fields:
server/src/services/jobs/jobOpportunity/jobOpportunity.service.ts#L755
MongoServerError: Updating the path 'created_at' would create a conflict at 'created_at'
❯ UpdateOneOperation.execute ../node_modules/mongodb/src/operations/update.ts:157:32
❯ tryOperation ../node_modules/mongodb/src/operations/execute_operation.ts:278:14
❯ executeOperation ../node_modules/mongodb/src/operations/execute_operation.ts:112:12
❯ Collection.updateOne ../node_modules/mongodb/src/collection.ts:369:12
❯ upsertJobOffer src/services/jobs/jobOpportunity/jobOpportunity.service.ts:755:3
❯ Module.updateJobOffer src/services/jobs/jobOpportunity/jobOpportunity.service.ts:776:3
❯ src/services/jobs/jobOpportunity/jobOpportunity.service.test.ts:2195:5
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { errorResponse: { index: +0, code: 40, errmsg: 'Updating the path \'created_at\' would create a conflict at \'created_at\'' }, index: +0, code: 40, errmsg: 'Updating the path \'created_at\' would create a conflict at \'created_at\'', hasErrorLabel: 'Function<hasErrorLabel>', addErrorLabel: 'Function<addErrorLabel>', errorLabels: [] }
|
src/services/jobs/jobOpportunity/jobOpportunity.service.test.ts > updateJobOffer > should support offer.status:
server/src/services/jobs/jobOpportunity/jobOpportunity.service.ts#L755
MongoServerError: Updating the path 'created_at' would create a conflict at 'created_at'
❯ UpdateOneOperation.execute ../node_modules/mongodb/src/operations/update.ts:157:32
❯ tryOperation ../node_modules/mongodb/src/operations/execute_operation.ts:278:14
❯ executeOperation ../node_modules/mongodb/src/operations/execute_operation.ts:112:12
❯ Collection.updateOne ../node_modules/mongodb/src/collection.ts:369:12
❯ upsertJobOffer src/services/jobs/jobOpportunity/jobOpportunity.service.ts:755:3
❯ Module.updateJobOffer src/services/jobs/jobOpportunity/jobOpportunity.service.ts:776:3
❯ src/services/jobs/jobOpportunity/jobOpportunity.service.test.ts:2209:5
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { errorResponse: { index: +0, code: 40, errmsg: 'Updating the path \'created_at\' would create a conflict at \'created_at\'' }, index: +0, code: 40, errmsg: 'Updating the path \'created_at\' would create a conflict at \'created_at\'', hasErrorLabel: 'Function<hasErrorLabel>', addErrorLabel: 'Function<addErrorLabel>', errorLabels: [] }
|
src/http/controllers/v3/jobs/jobs.controller.v3.test.ts > POST /jobs > should create a new job offer:
server/src/http/controllers/v3/jobs/jobs.controller.v3.test.ts#L371
AssertionError: expected 500 to be 200 // Object.is equality
- Expected
+ Received
- 200
+ 500
❯ src/http/controllers/v3/jobs/jobs.controller.v3.test.ts:371:38
|
src/http/controllers/v3/jobs/jobs.controller.v3.test.ts > POST /jobs > should create a new job offer:
server/src/http/controllers/v3/jobs/jobs.controller.v3.test.ts#L373
AssertionError: expected { statusCode: 500, …(3) } to deeply equal { id: Any<String> }
- Expected
+ Received
Object {
- "id": Any<String>,
+ "data": Object {
+ "cause": Object {
+ "code": 40,
+ "errorResponse": Object {
+ "code": 40,
+ "errmsg": "Updating the path 'created_at' would create a conflict at 'created_at'",
+ "index": 0,
+ },
+ "index": 0,
+ },
+ "rawError": Object {
+ "code": 40,
+ "errorResponse": Object {
+ "code": 40,
+ "errmsg": "Updating the path 'created_at' would create a conflict at 'created_at'",
+ "index": 0,
+ },
+ "index": 0,
+ },
+ },
+ "error": "Internal Server Error",
+ "message": "Updating the path 'created_at' would create a conflict at 'created_at'",
+ "statusCode": 500,
}
❯ src/http/controllers/v3/jobs/jobs.controller.v3.test.ts:373:26
|