Skip to content

feat(integrations): add validation rules to salesforce fetch-fields #39

feat(integrations): add validation rules to salesforce fetch-fields

feat(integrations): add validation rules to salesforce fetch-fields #39

Triggered via pull request September 27, 2024 16:21
Status Failure
Total duration 41s
Artifacts

tests.yaml

on: pull_request
Matrix: tests
Fit to window
Zoom out
Zoom in

Annotations

7 errors
integrations/salesforce/tests/salesforce-accounts.test.ts > salesforce accounts tests > should get, map correctly the data and batchSave the result: integrations/salesforce/tests/salesforce-accounts.test.ts#L16
AssertionError: expected "bound getBatchSaveData" to be called with arguments: [ [ { …(6) }, { …(6) }, …(3) ], …(1) ] Received: 1st bound getBatchSaveData call: Array [ Array [ Object { "description": null, - "id": "001J9000006PvbyIAC", - "last_modified_date": "2024-09-27T10:54:17.000Z", - "name": "Acme Corporation", - "no_employees": null, - "website": "www.acme.com", + "id": "500J9000005duskIAA", + "last_modified_date": "2024-09-27T15:18:19.000Z", + "name": undefined, + "no_employees": undefined, + "website": undefined, }, Object { "description": null, - "id": "001J9000006PvbzIAC", - "last_modified_date": "2024-09-27T10:54:17.000Z", - "name": "Global Industries", - "no_employees": null, - "website": "www.globalind.com", + "id": "500J9000005dutsIAA", + "last_modified_date": "2024-09-27T15:19:53.000Z", + "name": undefined, + "no_employees": undefined, + "website": undefined, }, Object { - "description": null, - "id": "001J9000006Pvc0IAC", - "last_modified_date": "2024-09-27T10:54:17.000Z", - "name": "Tech Solutions Inc.", - "no_employees": null, - "website": "www.techsolutions.com", + "description": "This is an example of a simple case to work on", + "id": "500J9000005dusQIAQ", + "last_modified_date": "2024-09-27T15:17:56.000Z", + "name": undefined, + "no_employees": undefined, + "website": undefined, }, Object { "description": null, - "id": "001J9000006Pvc1IAC", - "last_modified_date": "2024-09-27T10:54:17.000Z", - "name": "Innovate LLC", - "no_employees": null, - "website": "www.innovate.com", - }, - Object { - "description": null, - "id": "001J9000006Pvc2IAC", - "last_modified_date": "2024-09-27T10:54:17.000Z", - "name": "Green Energy Co.", - "no_employees": null, - "website": "www.greenenergy.com", + "id": "500J9000005dutOIAQ", + "last_modified_date": "2024-09-27T15:19:17.000Z", + "name": undefined, + "no_employees": undefined, + "website": undefined, }, ], "Account", ] Number of calls: 1 ❯ integrations/salesforce/tests/salesforce-accounts.test.ts:16:33
integrations/salesforce/tests/salesforce-articles.test.ts > salesforce articles tests > should get, map correctly the data and batchSave the result: integrations/salesforce/tests/salesforce-articles.test.ts#L16
AssertionError: expected "bound getBatchSaveData" to be called with arguments: [ [ { …(4) } ], 'Article' ] Received: 1st bound getBatchSaveData call: Array [ Array [ Object { "content": "Field: ValidationStatus - Pending", - "id": "ka0J90000008QKLIA2", - "last_modified_date": "2024-09-20T11:42:50.000Z", - "title": "Sample Knowledge Article", + N/A", + "id": "500J9000005duskIAA", + "last_modified_date": "2024-09-27T15:18:19.000Z", + "title": undefined, + }, + Object { + "content": "Field: ValidationStatus + N/A", + "id": "500J9000005dutsIAA", + "last_modified_date": "2024-09-27T15:19:53.000Z", + "title": undefined, + }, + Object { + "content": "Field: ValidationStatus + N/A", + "id": "500J9000005dusQIAQ", + "last_modified_date": "2024-09-27T15:17:56.000Z", + "title": undefined, + }, + Object { + "content": "Field: ValidationStatus + N/A", + "id": "500J9000005dutOIAQ", + "last_modified_date": "2024-09-27T15:19:17.000Z", + "title": undefined, }, ], "Article", ] Number of calls: 1 ❯ integrations/salesforce/tests/salesforce-articles.test.ts:16:33
integrations/salesforce/tests/salesforce-contacts.test.ts > salesforce contacts tests > should get, map correctly the data and batchSave the result: integrations/salesforce/tests/salesforce-contacts.test.ts#L16
AssertionError: expected "bound getBatchSaveData" to be called with arguments: [ [ { …(6) }, { …(6) }, …(3) ], …(1) ] Received: 1st bound getBatchSaveData call: Array [ Array [ Object { - "account_id": null, - "email": "john.doe@example.com", - "first_name": "John", - "id": "003J9000004ogjXIAQ", - "last_modified_date": "2024-09-27T10:39:01.000Z", - "last_name": "Doe", + "account_id": "001J9000006Pvc2IAC", + "email": undefined, + "first_name": undefined, + "id": "500J9000005duskIAA", + "last_modified_date": "2024-09-27T15:18:19.000Z", + "last_name": undefined, }, Object { "account_id": null, - "email": "jane.smith@example.com", - "first_name": "Jane", - "id": "003J9000004ogjYIAQ", - "last_modified_date": "2024-09-27T10:39:01.000Z", - "last_name": "Smith", + "email": undefined, + "first_name": undefined, + "id": "500J9000005dutsIAA", + "last_modified_date": "2024-09-27T15:19:53.000Z", + "last_name": undefined, }, Object { - "account_id": null, - "email": "emily.johnson@example.com", - "first_name": "Emily", - "id": "003J9000004ogjZIAQ", - "last_modified_date": "2024-09-27T10:39:01.000Z", - "last_name": "Johnson", - }, - Object { - "account_id": null, - "email": "michael.williams@example.com", - "first_name": "Michael", - "id": "003J9000004ogjaIAA", - "last_modified_date": "2024-09-27T10:39:01.000Z", - "last_name": "Williams", + "account_id": "001J9000006PvbyIAC", + "email": undefined, + "first_name": undefined, + "id": "500J9000005dusQIAQ", + "last_modified_date": "2024-09-27T15:17:56.000Z", + "last_name": undefined, }, Object { "account_id": null, - "email": "sarah.brown@example.com", - "first_name": "Sarah", - "id": "003J9000004ogjbIAA", - "last_modified_date": "2024-09-27T10:39:01.000Z", - "last_name": "Brown", + "email": undefined, + "first_name": undefined, + "id": "500J9000005dutOIAQ", + "last_modified_date": "2024-09-27T15:19:17.000Z", + "last_name": undefined, }, ], "Contact", ] Number of calls: 1 ❯ integrations/salesforce/tests/salesforce-contacts.test.ts:16:33
integrations/salesforce/tests/salesforce-deals.test.ts > salesforce deals tests > should get, map correctly the data and batchSave the result: integrations/salesforce/tests/salesforce-deals.test.ts#L16
AssertionError: expected "bound getBatchSaveData" to be called with arguments: [ Array(2) ] Received: 1st bound getBatchSaveData call: Array [ Array [ Object { - "account_id": "001J9000006PvbyIAC", - "amount": 10000, - "id": "006J90000040Wd4IAE", - "last_modified_date": "2024-09-27T15:05:36.000Z", - "name": "New Business", - "stage": "Qualify", - }, - Object { "account_id": "001J9000006Pvc2IAC", - "amount": 120000, - "id": "006J90000040WeLIAU", - "last_modified_date": "2024-09-27T15:06:53.000Z", - "name": "New Business", - "stage": "Qualify", + "amount": undefined, + "id": "500J9000005duskIAA", + "last_modified_date": "2024-09-27T15:18:19.000Z", + "name": undefined, + "stage": undefined, }, Object { - "account_id": "001J9000006PvbyIAC", - "amount": 13000, - "id": "006J90000040WdcIAE", - "last_modified_date": "2024-09-27T15:06:14.000Z", - "name": "New Business", - "stage": "Closed Won", - }, - Object { - "account_id": "001J9000006Pvc2IAC", - "amount": null, - "id": "006J90000040WddIAE", - "last_modified_date": "2024-09-27T15:07:12.000Z", - "name": "StartUp", - "stage": "Closed Lost", + "account_id": null, + "amount": undefined, + "id": "500J9000005dutsIAA", + "last_modified_date": "2024-09-27T15:19:53.000Z", + "name": undefined, + "stage": undefined, }, Object { "account_id": "001J9000006PvbyIAC", - "amount": 13000, - "id": "006J90000040WdNIAU", - "last_modified_date": "2024-09-27T15:05:55.000Z", - "name": "New Business", - "stage": "Propose", + "amount": undefined, + "id": "500J9000005dusQIAQ", + "last_modified_date": "2024-09-27T15:17:56.000Z", + "name": undefined, + "stage": undefined, }, Object { - "account_id": "001J9000006PvbyIAC", - "amount": 12000, - "id": "006J90000040WdOIAU", - "last_modified_date": "2024-09-27T15:06:26.000Z", - "name": "New Business", - "stage": "Negotiate", + "account_id": null, + "amount": undefined, + "id": "500J9000005dutOIAQ", + "last_modified_date": "2024-09-27T15:19:17.000Z", + "name": undefined, + "stage": undefined, }, ], "Deal", ] Number of calls: 1 ❯ integrations/salesforce/tests/salesforce-deals.test.ts:16:33
tests (ubuntu-latest, 20.x)
Process completed with exit code 1.
tests (ubuntu-latest, 18.x)
The job was canceled because "ubuntu-latest_20_x" failed.
tests (ubuntu-latest, 18.x)
The operation was canceled.