Skip to content

Commit 90d2d19

Browse files
committed
[ENG-2914] feat(salesforce): Batch Unit Tests
1 parent c1ec2b4 commit 90d2d19

7 files changed

Lines changed: 121 additions & 0 deletions

File tree

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"hasErrors": false,
3+
"results": [
4+
{
5+
"referenceId": "ref0",
6+
"id": "003ak00000kLkZLAA0"
7+
},
8+
{
9+
"referenceId": "ref1",
10+
"id": "003ak00000kLkZMAA0"
11+
}
12+
]
13+
}
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{
2+
"hasErrors": true,
3+
"results": [
4+
{
5+
"referenceId": "ref0",
6+
"errors": [
7+
{
8+
"statusCode": "REQUIRED_FIELD_MISSING",
9+
"message": "Required fields are missing: [LastName]",
10+
"fields": [
11+
"LastName"
12+
]
13+
}
14+
]
15+
}
16+
]
17+
}
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
{
2+
"hasErrors": true,
3+
"results": [
4+
{
5+
"referenceId": "ref1",
6+
"errors": [
7+
{
8+
"statusCode": "INVALID_INPUT",
9+
"message": "Duplicate ReferenceId provided in the request.",
10+
"fields": []
11+
},
12+
{
13+
"statusCode": "PROCESSING_HALTED",
14+
"message": "Duplicate ReferenceId found: ref1",
15+
"fields": []
16+
}
17+
]
18+
}
19+
]
20+
}
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
{
2+
"records": [
3+
{
4+
"FirstName": "Siena",
5+
"LastName": "Dyer",
6+
"attributes": {
7+
"referenceId": "ref0",
8+
"type": "Contact"
9+
}
10+
},
11+
{
12+
"FirstName": "Markus",
13+
"LastName": "Blevins",
14+
"attributes": {
15+
"referenceId": "ref1",
16+
"type": "Contact"
17+
}
18+
}
19+
]
20+
}
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
[
2+
{
3+
"success": false,
4+
"errors": [
5+
{
6+
"statusCode": "MISSING_ARGUMENT",
7+
"message": "Id not specified in an update call",
8+
"fields": []
9+
}
10+
]
11+
},
12+
{
13+
"success": false,
14+
"errors": [
15+
{
16+
"statusCode": "MISSING_ARGUMENT",
17+
"message": "Id not specified in an update call",
18+
"fields": []
19+
}
20+
]
21+
}
22+
]
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
[
2+
{
3+
"id": "003ak00000jvIfpAAE",
4+
"success": true,
5+
"errors": []
6+
},
7+
{
8+
"success": false,
9+
"errors": [
10+
{
11+
"statusCode": "MISSING_ARGUMENT",
12+
"message": "Id not specified in an update call",
13+
"fields": []
14+
}
15+
]
16+
}
17+
]
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
[
2+
{
3+
"id": "003ak00000jvIfpAAE",
4+
"success": true,
5+
"errors": []
6+
},
7+
{
8+
"id": "003ak00000jvIfqAAE",
9+
"success": true,
10+
"errors": []
11+
}
12+
]

0 commit comments

Comments
 (0)