restforce-db 0.2.3 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +39 -8
- data/lib/restforce/db/instances/active_record.rb +0 -9
- data/lib/restforce/db/instances/base.rb +7 -5
- data/lib/restforce/db/instances/salesforce.rb +0 -9
- data/lib/restforce/db/mapping.rb +91 -31
- data/lib/restforce/db/model.rb +5 -20
- data/lib/restforce/db/record_types/active_record.rb +38 -5
- data/lib/restforce/db/record_types/base.rb +2 -2
- data/lib/restforce/db/record_types/salesforce.rb +3 -3
- data/lib/restforce/db/version.rb +1 -1
- data/lib/restforce/db/worker.rb +7 -10
- data/lib/restforce/db.rb +0 -1
- data/test/cassettes/Restforce_DB/accessing_Salesforce/uses_the_configured_credentials.yml +5 -5
- data/test/cassettes/Restforce_DB_Instances_Salesforce/_copy_/updates_the_record_with_the_attributes_from_the_copied_object.yml +36 -35
- data/test/cassettes/Restforce_DB_Instances_Salesforce/_update_/updates_the_local_record_with_the_passed_attributes.yml +34 -33
- data/test/cassettes/Restforce_DB_Instances_Salesforce/_update_/updates_the_record_in_Salesforce_with_the_passed_attributes.yml +45 -44
- data/test/cassettes/Restforce_DB_RecordTypes_Salesforce/_create_/creates_a_record_in_Salesforce_from_the_passed_database_record_s_attributes.yml +28 -28
- data/test/cassettes/Restforce_DB_RecordTypes_Salesforce/_create_/updates_the_database_record_with_the_Salesforce_record_s_ID.yml +28 -28
- data/test/cassettes/Restforce_DB_RecordTypes_Salesforce/_find/finds_existing_records_in_Salesforce.yml +29 -28
- data/test/cassettes/Restforce_DB_RecordTypes_Salesforce/_find/returns_nil_when_no_matching_record_exists.yml +12 -12
- data/test/cassettes/Restforce_DB_Synchronizer/_run/given_a_Salesforce_record_with_an_associated_database_record/when_synchronization_is_stale/updates_the_database_record.yml +36 -36
- data/test/cassettes/Restforce_DB_Synchronizer/_run/given_a_Salesforce_record_with_an_associated_database_record/when_synchronization_is_up-to-date/does_not_update_the_database_record.yml +28 -104
- data/test/cassettes/Restforce_DB_Synchronizer/_run/given_an_existing_Salesforce_record/{populates_the_database_with_the_new_record.yml → for_a_non-root_mapping/does_not_create_a_database_record.yml} +28 -28
- data/test/cassettes/Restforce_DB_Synchronizer/_run/given_an_existing_Salesforce_record/for_a_root_mapping/creates_a_matching_database_record.yml +158 -0
- data/test/cassettes/Restforce_DB_Synchronizer/_run/given_an_existing_database_record/populates_Salesforce_with_the_new_record.yml +44 -44
- data/test/lib/restforce/db/instances/active_record_test.rb +4 -2
- data/test/lib/restforce/db/instances/salesforce_test.rb +5 -6
- data/test/lib/restforce/db/mapping_test.rb +40 -15
- data/test/lib/restforce/db/model_test.rb +6 -23
- data/test/lib/restforce/db/record_types/active_record_test.rb +45 -17
- data/test/lib/restforce/db/record_types/salesforce_test.rb +6 -7
- data/test/lib/restforce/db/synchronizer_test.rb +31 -17
- data/test/support/active_record.rb +20 -1
- data/test/support/utilities.rb +29 -0
- data/test/test_helper.rb +0 -12
- metadata +4 -4
- data/lib/restforce/db/record_type.rb +0 -77
- data/test/lib/restforce/db/record_type_test.rb +0 -26
@@ -21,10 +21,10 @@ http_interactions:
|
|
21
21
|
message: OK
|
22
22
|
headers:
|
23
23
|
Date:
|
24
|
-
-
|
24
|
+
- Thu, 26 Mar 2015 10:20:12 GMT
|
25
25
|
Set-Cookie:
|
26
|
-
- BrowserId=
|
27
|
-
|
26
|
+
- BrowserId=MlfkPJb4S1WI8GgWxOdmGA;Path=/;Domain=.salesforce.com;Expires=Mon,
|
27
|
+
25-May-2015 10:20:12 GMT
|
28
28
|
Expires:
|
29
29
|
- Thu, 01 Jan 1970 00:00:00 GMT
|
30
30
|
Pragma:
|
@@ -37,9 +37,9 @@ http_interactions:
|
|
37
37
|
- chunked
|
38
38
|
body:
|
39
39
|
encoding: ASCII-8BIT
|
40
|
-
string: '{"id":"https://login.salesforce.com/id/00D1a000000H3O9EAK/0051a000000UGT8AAO","issued_at":"
|
40
|
+
string: '{"id":"https://login.salesforce.com/id/00D1a000000H3O9EAK/0051a000000UGT8AAO","issued_at":"1427365212460","token_type":"Bearer","instance_url":"https://<host>","signature":"TC/Ci2YBbhdj2C72eU314/8jdoSy9QDD+JOCKRbkOJk=","access_token":"00D1a000000H3O9!AQ4AQFqDs34WtnS6RDwxyGdLSPYE_cFTuNjjnDvX2HbNhGMu917m6JyqchGFbdiOruyd5Z.w7uN.ogsJF4_8TMMzdt2fw7OZ"}'
|
41
41
|
http_version:
|
42
|
-
recorded_at:
|
42
|
+
recorded_at: Thu, 26 Mar 2015 10:20:12 GMT
|
43
43
|
- request:
|
44
44
|
method: post
|
45
45
|
uri: https://<host>/services/data/v26.0/sobjects/CustomObject__c
|
@@ -52,7 +52,7 @@ http_interactions:
|
|
52
52
|
Content-Type:
|
53
53
|
- application/json
|
54
54
|
Authorization:
|
55
|
-
- OAuth 00D1a000000H3O9!
|
55
|
+
- OAuth 00D1a000000H3O9!AQ4AQFqDs34WtnS6RDwxyGdLSPYE_cFTuNjjnDvX2HbNhGMu917m6JyqchGFbdiOruyd5Z.w7uN.ogsJF4_8TMMzdt2fw7OZ
|
56
56
|
Accept-Encoding:
|
57
57
|
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
58
58
|
Accept:
|
@@ -63,28 +63,28 @@ http_interactions:
|
|
63
63
|
message: Created
|
64
64
|
headers:
|
65
65
|
Date:
|
66
|
-
-
|
66
|
+
- Thu, 26 Mar 2015 10:20:13 GMT
|
67
67
|
Set-Cookie:
|
68
|
-
- BrowserId=
|
69
|
-
|
68
|
+
- BrowserId=wpzlVRKiQsqeuDI7ZuvGaQ;Path=/;Domain=.salesforce.com;Expires=Mon,
|
69
|
+
25-May-2015 10:20:13 GMT
|
70
70
|
Expires:
|
71
71
|
- Thu, 01 Jan 1970 00:00:00 GMT
|
72
72
|
Sforce-Limit-Info:
|
73
|
-
- api-usage=
|
73
|
+
- api-usage=3/15000
|
74
74
|
Location:
|
75
|
-
- "/services/data/v26.0/sobjects/CustomObject__c/
|
75
|
+
- "/services/data/v26.0/sobjects/CustomObject__c/a001a000001J1AbAAK"
|
76
76
|
Content-Type:
|
77
77
|
- application/json;charset=UTF-8
|
78
78
|
Transfer-Encoding:
|
79
79
|
- chunked
|
80
80
|
body:
|
81
81
|
encoding: ASCII-8BIT
|
82
|
-
string: '{"id":"
|
82
|
+
string: '{"id":"a001a000001J1AbAAK","success":true,"errors":[]}'
|
83
83
|
http_version:
|
84
|
-
recorded_at:
|
84
|
+
recorded_at: Thu, 26 Mar 2015 10:20:13 GMT
|
85
85
|
- request:
|
86
86
|
method: get
|
87
|
-
uri: https://<host>/services/data/v26.0/query?q=select%20Id,%20SystemModstamp,%20Example_Field__c%20from%20CustomObject__c%20where%20Id%20=%20%
|
87
|
+
uri: https://<host>/services/data/v26.0/query?q=select%20Id,%20SystemModstamp,%20Name,%20Example_Field__c%20from%20CustomObject__c%20where%20Id%20=%20%27a001a000001J1AbAAK%27
|
88
88
|
body:
|
89
89
|
encoding: US-ASCII
|
90
90
|
string: ''
|
@@ -92,7 +92,7 @@ http_interactions:
|
|
92
92
|
User-Agent:
|
93
93
|
- Faraday v0.9.1
|
94
94
|
Authorization:
|
95
|
-
- OAuth 00D1a000000H3O9!
|
95
|
+
- OAuth 00D1a000000H3O9!AQ4AQFqDs34WtnS6RDwxyGdLSPYE_cFTuNjjnDvX2HbNhGMu917m6JyqchGFbdiOruyd5Z.w7uN.ogsJF4_8TMMzdt2fw7OZ
|
96
96
|
Accept-Encoding:
|
97
97
|
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
98
98
|
Accept:
|
@@ -103,26 +103,27 @@ http_interactions:
|
|
103
103
|
message: OK
|
104
104
|
headers:
|
105
105
|
Date:
|
106
|
-
-
|
106
|
+
- Thu, 26 Mar 2015 10:20:14 GMT
|
107
107
|
Set-Cookie:
|
108
|
-
- BrowserId=
|
109
|
-
|
108
|
+
- BrowserId=9vz5JPGfRiiCr-fZ2Mq2lw;Path=/;Domain=.salesforce.com;Expires=Mon,
|
109
|
+
25-May-2015 10:20:14 GMT
|
110
110
|
Expires:
|
111
111
|
- Thu, 01 Jan 1970 00:00:00 GMT
|
112
112
|
Sforce-Limit-Info:
|
113
|
-
- api-usage=
|
113
|
+
- api-usage=3/15000
|
114
114
|
Content-Type:
|
115
115
|
- application/json;charset=UTF-8
|
116
116
|
Transfer-Encoding:
|
117
117
|
- chunked
|
118
118
|
body:
|
119
119
|
encoding: ASCII-8BIT
|
120
|
-
string: '{"totalSize":1,"done":true,"records":[{"attributes":{"type":"CustomObject__c","url":"/services/data/v26.0/sobjects/CustomObject__c/
|
120
|
+
string: '{"totalSize":1,"done":true,"records":[{"attributes":{"type":"CustomObject__c","url":"/services/data/v26.0/sobjects/CustomObject__c/a001a000001J1AbAAK"},"Id":"a001a000001J1AbAAK","SystemModstamp":"2015-03-26T10:20:13.000+0000","Name":"Sample
|
121
|
+
object","Example_Field__c":null}]}'
|
121
122
|
http_version:
|
122
|
-
recorded_at:
|
123
|
+
recorded_at: Thu, 26 Mar 2015 10:20:14 GMT
|
123
124
|
- request:
|
124
125
|
method: patch
|
125
|
-
uri: https://<host>/services/data/v26.0/sobjects/CustomObject__c/
|
126
|
+
uri: https://<host>/services/data/v26.0/sobjects/CustomObject__c/a001a000001J1AbAAK
|
126
127
|
body:
|
127
128
|
encoding: UTF-8
|
128
129
|
string: '{"Example_Field__c":"Copied text"}'
|
@@ -132,7 +133,7 @@ http_interactions:
|
|
132
133
|
Content-Type:
|
133
134
|
- application/json
|
134
135
|
Authorization:
|
135
|
-
- OAuth 00D1a000000H3O9!
|
136
|
+
- OAuth 00D1a000000H3O9!AQ4AQFqDs34WtnS6RDwxyGdLSPYE_cFTuNjjnDvX2HbNhGMu917m6JyqchGFbdiOruyd5Z.w7uN.ogsJF4_8TMMzdt2fw7OZ
|
136
137
|
Accept-Encoding:
|
137
138
|
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
138
139
|
Accept:
|
@@ -143,22 +144,22 @@ http_interactions:
|
|
143
144
|
message: No Content
|
144
145
|
headers:
|
145
146
|
Date:
|
146
|
-
-
|
147
|
+
- Thu, 26 Mar 2015 10:20:15 GMT
|
147
148
|
Set-Cookie:
|
148
|
-
- BrowserId=
|
149
|
-
|
149
|
+
- BrowserId=3pCnzs1GSe-sOl7lo-oUIw;Path=/;Domain=.salesforce.com;Expires=Mon,
|
150
|
+
25-May-2015 10:20:15 GMT
|
150
151
|
Expires:
|
151
152
|
- Thu, 01 Jan 1970 00:00:00 GMT
|
152
153
|
Sforce-Limit-Info:
|
153
|
-
- api-usage=
|
154
|
+
- api-usage=3/15000
|
154
155
|
body:
|
155
156
|
encoding: UTF-8
|
156
157
|
string: ''
|
157
158
|
http_version:
|
158
|
-
recorded_at:
|
159
|
+
recorded_at: Thu, 26 Mar 2015 10:20:15 GMT
|
159
160
|
- request:
|
160
161
|
method: delete
|
161
|
-
uri: https://<host>/services/data/v26.0/sobjects/CustomObject__c/
|
162
|
+
uri: https://<host>/services/data/v26.0/sobjects/CustomObject__c/a001a000001J1AbAAK
|
162
163
|
body:
|
163
164
|
encoding: US-ASCII
|
164
165
|
string: ''
|
@@ -166,7 +167,7 @@ http_interactions:
|
|
166
167
|
User-Agent:
|
167
168
|
- Faraday v0.9.1
|
168
169
|
Authorization:
|
169
|
-
- OAuth 00D1a000000H3O9!
|
170
|
+
- OAuth 00D1a000000H3O9!AQ4AQFqDs34WtnS6RDwxyGdLSPYE_cFTuNjjnDvX2HbNhGMu917m6JyqchGFbdiOruyd5Z.w7uN.ogsJF4_8TMMzdt2fw7OZ
|
170
171
|
Accept-Encoding:
|
171
172
|
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
172
173
|
Accept:
|
@@ -177,17 +178,17 @@ http_interactions:
|
|
177
178
|
message: No Content
|
178
179
|
headers:
|
179
180
|
Date:
|
180
|
-
-
|
181
|
+
- Thu, 26 Mar 2015 10:20:16 GMT
|
181
182
|
Set-Cookie:
|
182
|
-
- BrowserId=
|
183
|
-
|
183
|
+
- BrowserId=KKBZeBoNQqOUXipcOuz7QQ;Path=/;Domain=.salesforce.com;Expires=Mon,
|
184
|
+
25-May-2015 10:20:16 GMT
|
184
185
|
Expires:
|
185
186
|
- Thu, 01 Jan 1970 00:00:00 GMT
|
186
187
|
Sforce-Limit-Info:
|
187
|
-
- api-usage=
|
188
|
+
- api-usage=3/15000
|
188
189
|
body:
|
189
190
|
encoding: UTF-8
|
190
191
|
string: ''
|
191
192
|
http_version:
|
192
|
-
recorded_at:
|
193
|
+
recorded_at: Thu, 26 Mar 2015 10:20:16 GMT
|
193
194
|
recorded_with: VCR 2.9.3
|
@@ -21,10 +21,10 @@ http_interactions:
|
|
21
21
|
message: OK
|
22
22
|
headers:
|
23
23
|
Date:
|
24
|
-
-
|
24
|
+
- Thu, 26 Mar 2015 10:20:28 GMT
|
25
25
|
Set-Cookie:
|
26
|
-
- BrowserId=
|
27
|
-
|
26
|
+
- BrowserId=33pHsg3tRnKi7h8ZuuFqpw;Path=/;Domain=.salesforce.com;Expires=Mon,
|
27
|
+
25-May-2015 10:20:28 GMT
|
28
28
|
Expires:
|
29
29
|
- Thu, 01 Jan 1970 00:00:00 GMT
|
30
30
|
Pragma:
|
@@ -37,9 +37,9 @@ http_interactions:
|
|
37
37
|
- chunked
|
38
38
|
body:
|
39
39
|
encoding: ASCII-8BIT
|
40
|
-
string: '{"id":"https://login.salesforce.com/id/00D1a000000H3O9EAK/0051a000000UGT8AAO","issued_at":"
|
40
|
+
string: '{"id":"https://login.salesforce.com/id/00D1a000000H3O9EAK/0051a000000UGT8AAO","issued_at":"1427365228389","token_type":"Bearer","instance_url":"https://<host>","signature":"BMhGl0yggaJ6QdcKc3P17XLz+IJICg9etkcLzARONeU=","access_token":"00D1a000000H3O9!AQ4AQFqDs34WtnS6RDwxyGdLSPYE_cFTuNjjnDvX2HbNhGMu917m6JyqchGFbdiOruyd5Z.w7uN.ogsJF4_8TMMzdt2fw7OZ"}'
|
41
41
|
http_version:
|
42
|
-
recorded_at:
|
42
|
+
recorded_at: Thu, 26 Mar 2015 10:20:28 GMT
|
43
43
|
- request:
|
44
44
|
method: post
|
45
45
|
uri: https://<host>/services/data/v26.0/sobjects/CustomObject__c
|
@@ -52,7 +52,7 @@ http_interactions:
|
|
52
52
|
Content-Type:
|
53
53
|
- application/json
|
54
54
|
Authorization:
|
55
|
-
- OAuth 00D1a000000H3O9!
|
55
|
+
- OAuth 00D1a000000H3O9!AQ4AQFqDs34WtnS6RDwxyGdLSPYE_cFTuNjjnDvX2HbNhGMu917m6JyqchGFbdiOruyd5Z.w7uN.ogsJF4_8TMMzdt2fw7OZ
|
56
56
|
Accept-Encoding:
|
57
57
|
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
58
58
|
Accept:
|
@@ -63,28 +63,28 @@ http_interactions:
|
|
63
63
|
message: Created
|
64
64
|
headers:
|
65
65
|
Date:
|
66
|
-
-
|
66
|
+
- Thu, 26 Mar 2015 10:20:29 GMT
|
67
67
|
Set-Cookie:
|
68
|
-
- BrowserId=
|
69
|
-
|
68
|
+
- BrowserId=fLqF2EWgTQSZrIjBnWdo6g;Path=/;Domain=.salesforce.com;Expires=Mon,
|
69
|
+
25-May-2015 10:20:29 GMT
|
70
70
|
Expires:
|
71
71
|
- Thu, 01 Jan 1970 00:00:00 GMT
|
72
72
|
Sforce-Limit-Info:
|
73
73
|
- api-usage=5/15000
|
74
74
|
Location:
|
75
|
-
- "/services/data/v26.0/sobjects/CustomObject__c/
|
75
|
+
- "/services/data/v26.0/sobjects/CustomObject__c/a001a000001J1AqAAK"
|
76
76
|
Content-Type:
|
77
77
|
- application/json;charset=UTF-8
|
78
78
|
Transfer-Encoding:
|
79
79
|
- chunked
|
80
80
|
body:
|
81
81
|
encoding: ASCII-8BIT
|
82
|
-
string: '{"id":"
|
82
|
+
string: '{"id":"a001a000001J1AqAAK","success":true,"errors":[]}'
|
83
83
|
http_version:
|
84
|
-
recorded_at:
|
84
|
+
recorded_at: Thu, 26 Mar 2015 10:20:29 GMT
|
85
85
|
- request:
|
86
86
|
method: get
|
87
|
-
uri: https://<host>/services/data/v26.0/query?q=select%20Id,%20SystemModstamp,%20Example_Field__c%20from%20CustomObject__c%20where%20Id%20=%20%
|
87
|
+
uri: https://<host>/services/data/v26.0/query?q=select%20Id,%20SystemModstamp,%20Name,%20Example_Field__c%20from%20CustomObject__c%20where%20Id%20=%20%27a001a000001J1AqAAK%27
|
88
88
|
body:
|
89
89
|
encoding: US-ASCII
|
90
90
|
string: ''
|
@@ -92,7 +92,7 @@ http_interactions:
|
|
92
92
|
User-Agent:
|
93
93
|
- Faraday v0.9.1
|
94
94
|
Authorization:
|
95
|
-
- OAuth 00D1a000000H3O9!
|
95
|
+
- OAuth 00D1a000000H3O9!AQ4AQFqDs34WtnS6RDwxyGdLSPYE_cFTuNjjnDvX2HbNhGMu917m6JyqchGFbdiOruyd5Z.w7uN.ogsJF4_8TMMzdt2fw7OZ
|
96
96
|
Accept-Encoding:
|
97
97
|
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
98
98
|
Accept:
|
@@ -103,10 +103,10 @@ http_interactions:
|
|
103
103
|
message: OK
|
104
104
|
headers:
|
105
105
|
Date:
|
106
|
-
-
|
106
|
+
- Thu, 26 Mar 2015 10:20:30 GMT
|
107
107
|
Set-Cookie:
|
108
|
-
- BrowserId=
|
109
|
-
|
108
|
+
- BrowserId=DXrIkqWcT3S8msCaj9q7Og;Path=/;Domain=.salesforce.com;Expires=Mon,
|
109
|
+
25-May-2015 10:20:30 GMT
|
110
110
|
Expires:
|
111
111
|
- Thu, 01 Jan 1970 00:00:00 GMT
|
112
112
|
Sforce-Limit-Info:
|
@@ -117,12 +117,13 @@ http_interactions:
|
|
117
117
|
- chunked
|
118
118
|
body:
|
119
119
|
encoding: ASCII-8BIT
|
120
|
-
string: '{"totalSize":1,"done":true,"records":[{"attributes":{"type":"CustomObject__c","url":"/services/data/v26.0/sobjects/CustomObject__c/
|
120
|
+
string: '{"totalSize":1,"done":true,"records":[{"attributes":{"type":"CustomObject__c","url":"/services/data/v26.0/sobjects/CustomObject__c/a001a000001J1AqAAK"},"Id":"a001a000001J1AqAAK","SystemModstamp":"2015-03-26T10:20:29.000+0000","Name":"Sample
|
121
|
+
object","Example_Field__c":null}]}'
|
121
122
|
http_version:
|
122
|
-
recorded_at:
|
123
|
+
recorded_at: Thu, 26 Mar 2015 10:20:30 GMT
|
123
124
|
- request:
|
124
125
|
method: patch
|
125
|
-
uri: https://<host>/services/data/v26.0/sobjects/CustomObject__c/
|
126
|
+
uri: https://<host>/services/data/v26.0/sobjects/CustomObject__c/a001a000001J1AqAAK
|
126
127
|
body:
|
127
128
|
encoding: UTF-8
|
128
129
|
string: '{"Example_Field__c":"Some new text"}'
|
@@ -132,7 +133,7 @@ http_interactions:
|
|
132
133
|
Content-Type:
|
133
134
|
- application/json
|
134
135
|
Authorization:
|
135
|
-
- OAuth 00D1a000000H3O9!
|
136
|
+
- OAuth 00D1a000000H3O9!AQ4AQFqDs34WtnS6RDwxyGdLSPYE_cFTuNjjnDvX2HbNhGMu917m6JyqchGFbdiOruyd5Z.w7uN.ogsJF4_8TMMzdt2fw7OZ
|
136
137
|
Accept-Encoding:
|
137
138
|
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
138
139
|
Accept:
|
@@ -143,22 +144,22 @@ http_interactions:
|
|
143
144
|
message: No Content
|
144
145
|
headers:
|
145
146
|
Date:
|
146
|
-
-
|
147
|
+
- Thu, 26 Mar 2015 10:20:31 GMT
|
147
148
|
Set-Cookie:
|
148
|
-
- BrowserId=
|
149
|
-
|
149
|
+
- BrowserId=ZjgwwjPqRG-p3vm_qSjtIA;Path=/;Domain=.salesforce.com;Expires=Mon,
|
150
|
+
25-May-2015 10:20:31 GMT
|
150
151
|
Expires:
|
151
152
|
- Thu, 01 Jan 1970 00:00:00 GMT
|
152
153
|
Sforce-Limit-Info:
|
153
|
-
- api-usage=
|
154
|
+
- api-usage=4/15000
|
154
155
|
body:
|
155
156
|
encoding: UTF-8
|
156
157
|
string: ''
|
157
158
|
http_version:
|
158
|
-
recorded_at:
|
159
|
+
recorded_at: Thu, 26 Mar 2015 10:20:31 GMT
|
159
160
|
- request:
|
160
161
|
method: delete
|
161
|
-
uri: https://<host>/services/data/v26.0/sobjects/CustomObject__c/
|
162
|
+
uri: https://<host>/services/data/v26.0/sobjects/CustomObject__c/a001a000001J1AqAAK
|
162
163
|
body:
|
163
164
|
encoding: US-ASCII
|
164
165
|
string: ''
|
@@ -166,7 +167,7 @@ http_interactions:
|
|
166
167
|
User-Agent:
|
167
168
|
- Faraday v0.9.1
|
168
169
|
Authorization:
|
169
|
-
- OAuth 00D1a000000H3O9!
|
170
|
+
- OAuth 00D1a000000H3O9!AQ4AQFqDs34WtnS6RDwxyGdLSPYE_cFTuNjjnDvX2HbNhGMu917m6JyqchGFbdiOruyd5Z.w7uN.ogsJF4_8TMMzdt2fw7OZ
|
170
171
|
Accept-Encoding:
|
171
172
|
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
172
173
|
Accept:
|
@@ -177,17 +178,17 @@ http_interactions:
|
|
177
178
|
message: No Content
|
178
179
|
headers:
|
179
180
|
Date:
|
180
|
-
-
|
181
|
+
- Thu, 26 Mar 2015 10:20:32 GMT
|
181
182
|
Set-Cookie:
|
182
|
-
- BrowserId=
|
183
|
-
|
183
|
+
- BrowserId=FWtROl6yTCqcfJgkTAx3XQ;Path=/;Domain=.salesforce.com;Expires=Mon,
|
184
|
+
25-May-2015 10:20:32 GMT
|
184
185
|
Expires:
|
185
186
|
- Thu, 01 Jan 1970 00:00:00 GMT
|
186
187
|
Sforce-Limit-Info:
|
187
|
-
- api-usage=
|
188
|
+
- api-usage=4/15000
|
188
189
|
body:
|
189
190
|
encoding: UTF-8
|
190
191
|
string: ''
|
191
192
|
http_version:
|
192
|
-
recorded_at:
|
193
|
+
recorded_at: Thu, 26 Mar 2015 10:20:32 GMT
|
193
194
|
recorded_with: VCR 2.9.3
|
@@ -21,10 +21,10 @@ http_interactions:
|
|
21
21
|
message: OK
|
22
22
|
headers:
|
23
23
|
Date:
|
24
|
-
-
|
24
|
+
- Thu, 26 Mar 2015 10:23:35 GMT
|
25
25
|
Set-Cookie:
|
26
|
-
- BrowserId=
|
27
|
-
|
26
|
+
- BrowserId=I0gd_Q6iSaCUqVdCsMgPrg;Path=/;Domain=.salesforce.com;Expires=Mon,
|
27
|
+
25-May-2015 10:23:35 GMT
|
28
28
|
Expires:
|
29
29
|
- Thu, 01 Jan 1970 00:00:00 GMT
|
30
30
|
Pragma:
|
@@ -37,9 +37,9 @@ http_interactions:
|
|
37
37
|
- chunked
|
38
38
|
body:
|
39
39
|
encoding: ASCII-8BIT
|
40
|
-
string: '{"id":"https://login.salesforce.com/id/00D1a000000H3O9EAK/0051a000000UGT8AAO","issued_at":"
|
40
|
+
string: '{"id":"https://login.salesforce.com/id/00D1a000000H3O9EAK/0051a000000UGT8AAO","issued_at":"1427365415892","token_type":"Bearer","instance_url":"https://<host>","signature":"ImRFsr+QqNm8mizO9lDd/mU5965Iut0MIMF8xerAYvw=","access_token":"00D1a000000H3O9!AQ4AQFqDs34WtnS6RDwxyGdLSPYE_cFTuNjjnDvX2HbNhGMu917m6JyqchGFbdiOruyd5Z.w7uN.ogsJF4_8TMMzdt2fw7OZ"}'
|
41
41
|
http_version:
|
42
|
-
recorded_at:
|
42
|
+
recorded_at: Thu, 26 Mar 2015 10:23:35 GMT
|
43
43
|
- request:
|
44
44
|
method: post
|
45
45
|
uri: https://<host>/services/data/v26.0/sobjects/CustomObject__c
|
@@ -52,7 +52,7 @@ http_interactions:
|
|
52
52
|
Content-Type:
|
53
53
|
- application/json
|
54
54
|
Authorization:
|
55
|
-
- OAuth 00D1a000000H3O9!
|
55
|
+
- OAuth 00D1a000000H3O9!AQ4AQFqDs34WtnS6RDwxyGdLSPYE_cFTuNjjnDvX2HbNhGMu917m6JyqchGFbdiOruyd5Z.w7uN.ogsJF4_8TMMzdt2fw7OZ
|
56
56
|
Accept-Encoding:
|
57
57
|
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
58
58
|
Accept:
|
@@ -63,28 +63,28 @@ http_interactions:
|
|
63
63
|
message: Created
|
64
64
|
headers:
|
65
65
|
Date:
|
66
|
-
-
|
66
|
+
- Thu, 26 Mar 2015 10:23:36 GMT
|
67
67
|
Set-Cookie:
|
68
|
-
- BrowserId=
|
69
|
-
|
68
|
+
- BrowserId=jqu46NkGT3qwGczNrQ7AqA;Path=/;Domain=.salesforce.com;Expires=Mon,
|
69
|
+
25-May-2015 10:23:36 GMT
|
70
70
|
Expires:
|
71
71
|
- Thu, 01 Jan 1970 00:00:00 GMT
|
72
72
|
Sforce-Limit-Info:
|
73
|
-
- api-usage=
|
73
|
+
- api-usage=38/15000
|
74
74
|
Location:
|
75
|
-
- "/services/data/v26.0/sobjects/CustomObject__c/
|
75
|
+
- "/services/data/v26.0/sobjects/CustomObject__c/a001a000001J1BFAA0"
|
76
76
|
Content-Type:
|
77
77
|
- application/json;charset=UTF-8
|
78
78
|
Transfer-Encoding:
|
79
79
|
- chunked
|
80
80
|
body:
|
81
81
|
encoding: ASCII-8BIT
|
82
|
-
string: '{"id":"
|
82
|
+
string: '{"id":"a001a000001J1BFAA0","success":true,"errors":[]}'
|
83
83
|
http_version:
|
84
|
-
recorded_at:
|
84
|
+
recorded_at: Thu, 26 Mar 2015 10:23:36 GMT
|
85
85
|
- request:
|
86
86
|
method: get
|
87
|
-
uri: https://<host>/services/data/v26.0/query?q=select%20Id,%20SystemModstamp,%20Example_Field__c%20from%20CustomObject__c%20where%20Id%20=%20%
|
87
|
+
uri: https://<host>/services/data/v26.0/query?q=select%20Id,%20SystemModstamp,%20Name,%20Example_Field__c%20from%20CustomObject__c%20where%20Id%20=%20%27a001a000001J1BFAA0%27
|
88
88
|
body:
|
89
89
|
encoding: US-ASCII
|
90
90
|
string: ''
|
@@ -92,7 +92,7 @@ http_interactions:
|
|
92
92
|
User-Agent:
|
93
93
|
- Faraday v0.9.1
|
94
94
|
Authorization:
|
95
|
-
- OAuth 00D1a000000H3O9!
|
95
|
+
- OAuth 00D1a000000H3O9!AQ4AQFqDs34WtnS6RDwxyGdLSPYE_cFTuNjjnDvX2HbNhGMu917m6JyqchGFbdiOruyd5Z.w7uN.ogsJF4_8TMMzdt2fw7OZ
|
96
96
|
Accept-Encoding:
|
97
97
|
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
98
98
|
Accept:
|
@@ -103,26 +103,27 @@ http_interactions:
|
|
103
103
|
message: OK
|
104
104
|
headers:
|
105
105
|
Date:
|
106
|
-
-
|
106
|
+
- Thu, 26 Mar 2015 10:23:37 GMT
|
107
107
|
Set-Cookie:
|
108
|
-
- BrowserId=
|
109
|
-
|
108
|
+
- BrowserId=GX0p1YGUTby43pVUAP3fGw;Path=/;Domain=.salesforce.com;Expires=Mon,
|
109
|
+
25-May-2015 10:23:37 GMT
|
110
110
|
Expires:
|
111
111
|
- Thu, 01 Jan 1970 00:00:00 GMT
|
112
112
|
Sforce-Limit-Info:
|
113
|
-
- api-usage=
|
113
|
+
- api-usage=38/15000
|
114
114
|
Content-Type:
|
115
115
|
- application/json;charset=UTF-8
|
116
116
|
Transfer-Encoding:
|
117
117
|
- chunked
|
118
118
|
body:
|
119
119
|
encoding: ASCII-8BIT
|
120
|
-
string: '{"totalSize":1,"done":true,"records":[{"attributes":{"type":"CustomObject__c","url":"/services/data/v26.0/sobjects/CustomObject__c/
|
120
|
+
string: '{"totalSize":1,"done":true,"records":[{"attributes":{"type":"CustomObject__c","url":"/services/data/v26.0/sobjects/CustomObject__c/a001a000001J1BFAA0"},"Id":"a001a000001J1BFAA0","SystemModstamp":"2015-03-26T10:23:36.000+0000","Name":"Sample
|
121
|
+
object","Example_Field__c":null}]}'
|
121
122
|
http_version:
|
122
|
-
recorded_at:
|
123
|
+
recorded_at: Thu, 26 Mar 2015 10:23:37 GMT
|
123
124
|
- request:
|
124
125
|
method: patch
|
125
|
-
uri: https://<host>/services/data/v26.0/sobjects/CustomObject__c/
|
126
|
+
uri: https://<host>/services/data/v26.0/sobjects/CustomObject__c/a001a000001J1BFAA0
|
126
127
|
body:
|
127
128
|
encoding: UTF-8
|
128
129
|
string: '{"Example_Field__c":"Some new text"}'
|
@@ -132,7 +133,7 @@ http_interactions:
|
|
132
133
|
Content-Type:
|
133
134
|
- application/json
|
134
135
|
Authorization:
|
135
|
-
- OAuth 00D1a000000H3O9!
|
136
|
+
- OAuth 00D1a000000H3O9!AQ4AQFqDs34WtnS6RDwxyGdLSPYE_cFTuNjjnDvX2HbNhGMu917m6JyqchGFbdiOruyd5Z.w7uN.ogsJF4_8TMMzdt2fw7OZ
|
136
137
|
Accept-Encoding:
|
137
138
|
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
138
139
|
Accept:
|
@@ -143,22 +144,22 @@ http_interactions:
|
|
143
144
|
message: No Content
|
144
145
|
headers:
|
145
146
|
Date:
|
146
|
-
-
|
147
|
+
- Thu, 26 Mar 2015 10:23:38 GMT
|
147
148
|
Set-Cookie:
|
148
|
-
- BrowserId=
|
149
|
-
|
149
|
+
- BrowserId=7slo8j3lRF2mtZKYyxW9Pg;Path=/;Domain=.salesforce.com;Expires=Mon,
|
150
|
+
25-May-2015 10:23:38 GMT
|
150
151
|
Expires:
|
151
152
|
- Thu, 01 Jan 1970 00:00:00 GMT
|
152
153
|
Sforce-Limit-Info:
|
153
|
-
- api-usage=
|
154
|
+
- api-usage=39/15000
|
154
155
|
body:
|
155
156
|
encoding: UTF-8
|
156
157
|
string: ''
|
157
158
|
http_version:
|
158
|
-
recorded_at:
|
159
|
+
recorded_at: Thu, 26 Mar 2015 10:23:38 GMT
|
159
160
|
- request:
|
160
161
|
method: get
|
161
|
-
uri: https://<host>/services/data/v26.0/query?q=select%20Id,%20SystemModstamp,%20Example_Field__c%20from%20CustomObject__c%20where%20Id%20=%20%
|
162
|
+
uri: https://<host>/services/data/v26.0/query?q=select%20Id,%20SystemModstamp,%20Name,%20Example_Field__c%20from%20CustomObject__c%20where%20Id%20=%20%27a001a000001J1BFAA0%27
|
162
163
|
body:
|
163
164
|
encoding: US-ASCII
|
164
165
|
string: ''
|
@@ -166,7 +167,7 @@ http_interactions:
|
|
166
167
|
User-Agent:
|
167
168
|
- Faraday v0.9.1
|
168
169
|
Authorization:
|
169
|
-
- OAuth 00D1a000000H3O9!
|
170
|
+
- OAuth 00D1a000000H3O9!AQ4AQFqDs34WtnS6RDwxyGdLSPYE_cFTuNjjnDvX2HbNhGMu917m6JyqchGFbdiOruyd5Z.w7uN.ogsJF4_8TMMzdt2fw7OZ
|
170
171
|
Accept-Encoding:
|
171
172
|
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
172
173
|
Accept:
|
@@ -177,27 +178,27 @@ http_interactions:
|
|
177
178
|
message: OK
|
178
179
|
headers:
|
179
180
|
Date:
|
180
|
-
-
|
181
|
+
- Thu, 26 Mar 2015 10:23:39 GMT
|
181
182
|
Set-Cookie:
|
182
|
-
- BrowserId=
|
183
|
-
|
183
|
+
- BrowserId=5SVlCBHWRbKWByt-BKhTSg;Path=/;Domain=.salesforce.com;Expires=Mon,
|
184
|
+
25-May-2015 10:23:39 GMT
|
184
185
|
Expires:
|
185
186
|
- Thu, 01 Jan 1970 00:00:00 GMT
|
186
187
|
Sforce-Limit-Info:
|
187
|
-
- api-usage=
|
188
|
+
- api-usage=39/15000
|
188
189
|
Content-Type:
|
189
190
|
- application/json;charset=UTF-8
|
190
191
|
Transfer-Encoding:
|
191
192
|
- chunked
|
192
193
|
body:
|
193
194
|
encoding: ASCII-8BIT
|
194
|
-
string: '{"totalSize":1,"done":true,"records":[{"attributes":{"type":"CustomObject__c","url":"/services/data/v26.0/sobjects/CustomObject__c/
|
195
|
-
new text"}]}'
|
195
|
+
string: '{"totalSize":1,"done":true,"records":[{"attributes":{"type":"CustomObject__c","url":"/services/data/v26.0/sobjects/CustomObject__c/a001a000001J1BFAA0"},"Id":"a001a000001J1BFAA0","SystemModstamp":"2015-03-26T10:23:38.000+0000","Name":"Sample
|
196
|
+
object","Example_Field__c":"Some new text"}]}'
|
196
197
|
http_version:
|
197
|
-
recorded_at:
|
198
|
+
recorded_at: Thu, 26 Mar 2015 10:23:39 GMT
|
198
199
|
- request:
|
199
200
|
method: delete
|
200
|
-
uri: https://<host>/services/data/v26.0/sobjects/CustomObject__c/
|
201
|
+
uri: https://<host>/services/data/v26.0/sobjects/CustomObject__c/a001a000001J1BFAA0
|
201
202
|
body:
|
202
203
|
encoding: US-ASCII
|
203
204
|
string: ''
|
@@ -205,7 +206,7 @@ http_interactions:
|
|
205
206
|
User-Agent:
|
206
207
|
- Faraday v0.9.1
|
207
208
|
Authorization:
|
208
|
-
- OAuth 00D1a000000H3O9!
|
209
|
+
- OAuth 00D1a000000H3O9!AQ4AQFqDs34WtnS6RDwxyGdLSPYE_cFTuNjjnDvX2HbNhGMu917m6JyqchGFbdiOruyd5Z.w7uN.ogsJF4_8TMMzdt2fw7OZ
|
209
210
|
Accept-Encoding:
|
210
211
|
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
211
212
|
Accept:
|
@@ -216,17 +217,17 @@ http_interactions:
|
|
216
217
|
message: No Content
|
217
218
|
headers:
|
218
219
|
Date:
|
219
|
-
-
|
220
|
+
- Thu, 26 Mar 2015 10:23:41 GMT
|
220
221
|
Set-Cookie:
|
221
|
-
- BrowserId=
|
222
|
-
|
222
|
+
- BrowserId=BTihyUlHS6K0886hTxMZVQ;Path=/;Domain=.salesforce.com;Expires=Mon,
|
223
|
+
25-May-2015 10:23:41 GMT
|
223
224
|
Expires:
|
224
225
|
- Thu, 01 Jan 1970 00:00:00 GMT
|
225
226
|
Sforce-Limit-Info:
|
226
|
-
- api-usage=
|
227
|
+
- api-usage=39/15000
|
227
228
|
body:
|
228
229
|
encoding: UTF-8
|
229
230
|
string: ''
|
230
231
|
http_version:
|
231
|
-
recorded_at:
|
232
|
+
recorded_at: Thu, 26 Mar 2015 10:23:41 GMT
|
232
233
|
recorded_with: VCR 2.9.3
|