bloodbath 1.0.0 → 1.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.rspec_status +12 -8
- data/CHANGELOG.md +1 -1
- data/Gemfile.lock +1 -1
- data/README.md +18 -1
- data/fixtures/vcr_cassettes/Bloodbath_Event/_cancel/1_4_1.yml +229 -0
- data/fixtures/vcr_cassettes/Bloodbath_Event/_cancel/_cancel/1_4_2_1.yml +41 -0
- data/fixtures/vcr_cassettes/Bloodbath_Event/_find/1_3_1.yml +191 -0
- data/fixtures/vcr_cassettes/Bloodbath_Event/_find/_find/1_3_2_1.yml +41 -0
- data/fixtures/vcr_cassettes/Bloodbath_Event/_list/1_2_1.yml +78 -0
- data/fixtures/vcr_cassettes/Bloodbath_Event/_list/_list/1_2_1_1.yml +51 -0
- data/fixtures/vcr_cassettes/Bloodbath_Event/_schedule/1_1_1.yml +325 -0
- data/fixtures/vcr_cassettes/Bloodbath_Event/_schedule/_schedule/1_1_2_1.yml +44 -0
- data/lib/bloodbath/configuration.rb +1 -1
- data/lib/bloodbath/event.rb +52 -18
- data/lib/bloodbath/utils/threading.rb +42 -0
- data/lib/bloodbath/version.rb +1 -1
- metadata +8 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d5e838867e3bd0b6fde9f682e5648c614a599b514558f7760bcc2a8228b9bd91
|
4
|
+
data.tar.gz: 69f823c85ca0be10ea13c592bceb1a2b9e2711f4d3257712352f97b65b408db1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: da4a97faf7e576e6507ca260643379b43c1c42aa21e8b1a23561f301d7a9025b819b9fa0f456c542cdc7cca295c1d1d6ffe134ae35f93eed907ae7921a472ca9
|
7
|
+
data.tar.gz: 0fd989c8ff9b1045f41ff5aed0c9faa7596192b01b868e706e737689df89b41ab11ef3e6c439e841590379c2be4dcf258ba5b88354ac46cdbe51b7694cb118ed
|
data/.rspec_status
CHANGED
@@ -1,8 +1,12 @@
|
|
1
|
-
example_id
|
2
|
-
|
3
|
-
./spec/bloodbath/event_spec.rb[1:1:1]
|
4
|
-
./spec/bloodbath/event_spec.rb[1:2:1]
|
5
|
-
./spec/bloodbath/event_spec.rb[1:
|
6
|
-
./spec/bloodbath/event_spec.rb[1:
|
7
|
-
./spec/
|
8
|
-
./spec/
|
1
|
+
example_id | status | run_time |
|
2
|
+
----------------------------------------- | ------ | --------------- |
|
3
|
+
./spec/bloodbath/event_spec.rb[1:1:1] | passed | 0.00721 seconds |
|
4
|
+
./spec/bloodbath/event_spec.rb[1:1:2:1] | passed | 0.00165 seconds |
|
5
|
+
./spec/bloodbath/event_spec.rb[1:1:2:2:1] | failed | 0.00023 seconds |
|
6
|
+
./spec/bloodbath/event_spec.rb[1:2:1:1] | passed | 0.04862 seconds |
|
7
|
+
./spec/bloodbath/event_spec.rb[1:3:1] | passed | 0.00374 seconds |
|
8
|
+
./spec/bloodbath/event_spec.rb[1:3:2:1] | passed | 0.0021 seconds |
|
9
|
+
./spec/bloodbath/event_spec.rb[1:4:1] | passed | 0.00423 seconds |
|
10
|
+
./spec/bloodbath/event_spec.rb[1:4:2:1] | passed | 0.00152 seconds |
|
11
|
+
./spec/bloodbath_spec.rb[1:1] | passed | 0.00077 seconds |
|
12
|
+
./spec/bloodbath_spec.rb[1:2:1] | passed | 0.01612 seconds |
|
data/CHANGELOG.md
CHANGED
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -51,7 +51,24 @@ Bloodbath::Event.find('b7ccff...')
|
|
51
51
|
Bloodbath::Event.cancel('b7ccff...')
|
52
52
|
```
|
53
53
|
|
54
|
-
For more documentation about how to use Bloodbath, don't hesitate to check [Bloodbath Docs](https://docs.bloodbath.io
|
54
|
+
For more documentation about how to use Bloodbath, don't hesitate to check [Bloodbath Docs](https://docs.bloodbath.io).
|
55
|
+
|
56
|
+
## Advanced usage
|
57
|
+
### Multi-threads
|
58
|
+
|
59
|
+
If you want to schedule a lot of events at once, waiting for the response might be too slow, that's why we developped a multi-thread scheduling option for the Ruby library.
|
60
|
+
|
61
|
+
```ruby
|
62
|
+
Bloodbath::Event.new(wait_for_response: false).schedule(
|
63
|
+
scheduled_for: Time.now + 60 * 60 + 5,
|
64
|
+
headers: {},
|
65
|
+
method: :post,
|
66
|
+
body: "some body content",
|
67
|
+
endpoint: 'https://api.acme.com/path'
|
68
|
+
)
|
69
|
+
```
|
70
|
+
|
71
|
+
With this option, it'll schedule your events ~10 times faster, but you won't be able to receive the response directly. Instead, it'll return the spawned threads.
|
55
72
|
|
56
73
|
## Development
|
57
74
|
|
@@ -34,4 +34,233 @@ http_interactions:
|
|
34
34
|
encoding: UTF-8
|
35
35
|
string: ''
|
36
36
|
recorded_at: Thu, 27 May 2021 22:09:34 GMT
|
37
|
+
- request:
|
38
|
+
method: delete
|
39
|
+
uri: http://localhost:4000/rest/events/5a9b0427-0b3c-4de4-a797-70b734540a78
|
40
|
+
body:
|
41
|
+
encoding: UTF-8
|
42
|
+
string: 'null'
|
43
|
+
headers:
|
44
|
+
Accept-Encoding:
|
45
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
46
|
+
Accept:
|
47
|
+
- "*/*"
|
48
|
+
User-Agent:
|
49
|
+
- Ruby
|
50
|
+
Authorization:
|
51
|
+
- Bearer RIi9yhM42RDgEXLiVbO3z-ncbS2GvI3fcmwYL4f2Zf0JpyUUKCAx8M6glyHnLmyN8Kkbul9VoAai6798ssu4aw==
|
52
|
+
Content-Type:
|
53
|
+
- application/json
|
54
|
+
response:
|
55
|
+
status:
|
56
|
+
code: 401
|
57
|
+
message: Unauthorized
|
58
|
+
headers:
|
59
|
+
Cache-Control:
|
60
|
+
- max-age=0, private, must-revalidate
|
61
|
+
Content-Length:
|
62
|
+
- '157'
|
63
|
+
Content-Type:
|
64
|
+
- application/json; charset=utf-8
|
65
|
+
Date:
|
66
|
+
- Mon, 01 Nov 2021 23:05:12 GMT
|
67
|
+
Server:
|
68
|
+
- Cowboy
|
69
|
+
X-Request-Id:
|
70
|
+
- FrOOoTdcbSjLk84AAABG
|
71
|
+
body:
|
72
|
+
encoding: UTF-8
|
73
|
+
string: '{"errors":["Your API key isn''t valid. Please read https://bloodbath.notion.site/Acquire-your-API-Key-3b4adbbcc7f948d0a5c52d165a963ae4
|
74
|
+
for more information"]}'
|
75
|
+
recorded_at: Mon, 01 Nov 2021 23:05:12 GMT
|
76
|
+
- request:
|
77
|
+
method: delete
|
78
|
+
uri: http://localhost:4000/rest/events/5a9b0427-0b3c-4de4-a797-70b734540a78
|
79
|
+
body:
|
80
|
+
encoding: UTF-8
|
81
|
+
string: 'null'
|
82
|
+
headers:
|
83
|
+
Accept-Encoding:
|
84
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
85
|
+
Accept:
|
86
|
+
- "*/*"
|
87
|
+
User-Agent:
|
88
|
+
- Ruby
|
89
|
+
Authorization:
|
90
|
+
- Bearer 0u9dmuz_uxQf4bD_rYzltCWA8hrUjvxQQ-ILWFppj7sfSfkjoNqbCX_oqtJ1ska3GaYACb25Ef-uYcbITTYJbA==
|
91
|
+
Content-Type:
|
92
|
+
- application/json
|
93
|
+
response:
|
94
|
+
status:
|
95
|
+
code: 404
|
96
|
+
message: Not Found
|
97
|
+
headers:
|
98
|
+
Cache-Control:
|
99
|
+
- max-age=0, private, must-revalidate
|
100
|
+
Content-Length:
|
101
|
+
- '62'
|
102
|
+
Content-Type:
|
103
|
+
- application/json; charset=utf-8
|
104
|
+
Date:
|
105
|
+
- Mon, 01 Nov 2021 23:08:31 GMT
|
106
|
+
Server:
|
107
|
+
- Cowboy
|
108
|
+
X-Request-Id:
|
109
|
+
- FrOOz6okxC9HDYEAAABH
|
110
|
+
body:
|
111
|
+
encoding: UTF-8
|
112
|
+
string: '{"errors":["Event can''t be removed. Are you sure it exists?"]}'
|
113
|
+
recorded_at: Mon, 01 Nov 2021 23:08:32 GMT
|
114
|
+
- request:
|
115
|
+
method: delete
|
116
|
+
uri: http://localhost:4000/rest/events/007e63be-56fc-4cb0-b27a-86c75e07a36c
|
117
|
+
body:
|
118
|
+
encoding: UTF-8
|
119
|
+
string: 'null'
|
120
|
+
headers:
|
121
|
+
Accept-Encoding:
|
122
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
123
|
+
Accept:
|
124
|
+
- "*/*"
|
125
|
+
User-Agent:
|
126
|
+
- Ruby
|
127
|
+
Authorization:
|
128
|
+
- Bearer 0u9dmuz_uxQf4bD_rYzltCWA8hrUjvxQQ-ILWFppj7sfSfkjoNqbCX_oqtJ1ska3GaYACb25Ef-uYcbITTYJbA==
|
129
|
+
Content-Type:
|
130
|
+
- application/json
|
131
|
+
response:
|
132
|
+
status:
|
133
|
+
code: 404
|
134
|
+
message: Not Found
|
135
|
+
headers:
|
136
|
+
Cache-Control:
|
137
|
+
- max-age=0, private, must-revalidate
|
138
|
+
Content-Length:
|
139
|
+
- '62'
|
140
|
+
Content-Type:
|
141
|
+
- application/json; charset=utf-8
|
142
|
+
Date:
|
143
|
+
- Mon, 01 Nov 2021 23:08:52 GMT
|
144
|
+
Server:
|
145
|
+
- Cowboy
|
146
|
+
X-Request-Id:
|
147
|
+
- FrOO1IISwJYCjWAAAADH
|
148
|
+
body:
|
149
|
+
encoding: UTF-8
|
150
|
+
string: '{"errors":["Event can''t be removed. Are you sure it exists?"]}'
|
151
|
+
recorded_at: Mon, 01 Nov 2021 23:08:53 GMT
|
152
|
+
- request:
|
153
|
+
method: delete
|
154
|
+
uri: http://localhost:4000/rest/events/02325496-8df6-449c-ab3e-a53de327ac84
|
155
|
+
body:
|
156
|
+
encoding: UTF-8
|
157
|
+
string: 'null'
|
158
|
+
headers:
|
159
|
+
Accept-Encoding:
|
160
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
161
|
+
Accept:
|
162
|
+
- "*/*"
|
163
|
+
User-Agent:
|
164
|
+
- Ruby
|
165
|
+
Authorization:
|
166
|
+
- Bearer 0u9dmuz_uxQf4bD_rYzltCWA8hrUjvxQQ-ILWFppj7sfSfkjoNqbCX_oqtJ1ska3GaYACb25Ef-uYcbITTYJbA==
|
167
|
+
Content-Type:
|
168
|
+
- application/json
|
169
|
+
response:
|
170
|
+
status:
|
171
|
+
code: 200
|
172
|
+
message: OK
|
173
|
+
headers:
|
174
|
+
Cache-Control:
|
175
|
+
- max-age=0, private, must-revalidate
|
176
|
+
Content-Length:
|
177
|
+
- '13'
|
178
|
+
Content-Type:
|
179
|
+
- application/json; charset=utf-8
|
180
|
+
Date:
|
181
|
+
- Mon, 01 Nov 2021 23:09:28 GMT
|
182
|
+
Server:
|
183
|
+
- Cowboy
|
184
|
+
X-Request-Id:
|
185
|
+
- FrOO3N8Yu-Ek-_sAAAGG
|
186
|
+
body:
|
187
|
+
encoding: UTF-8
|
188
|
+
string: '{"data":null}'
|
189
|
+
recorded_at: Mon, 01 Nov 2021 23:09:28 GMT
|
190
|
+
- request:
|
191
|
+
method: delete
|
192
|
+
uri: http://localhost:4000/rest/events/02fd4aa1-9574-4481-8d23-765a0662abf2
|
193
|
+
body:
|
194
|
+
encoding: UTF-8
|
195
|
+
string: 'null'
|
196
|
+
headers:
|
197
|
+
Accept-Encoding:
|
198
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
199
|
+
Accept:
|
200
|
+
- "*/*"
|
201
|
+
User-Agent:
|
202
|
+
- Ruby
|
203
|
+
Authorization:
|
204
|
+
- Bearer 0u9dmuz_uxQf4bD_rYzltCWA8hrUjvxQQ-ILWFppj7sfSfkjoNqbCX_oqtJ1ska3GaYACb25Ef-uYcbITTYJbA==
|
205
|
+
Content-Type:
|
206
|
+
- application/json
|
207
|
+
response:
|
208
|
+
status:
|
209
|
+
code: 200
|
210
|
+
message: OK
|
211
|
+
headers:
|
212
|
+
Cache-Control:
|
213
|
+
- max-age=0, private, must-revalidate
|
214
|
+
Content-Length:
|
215
|
+
- '13'
|
216
|
+
Content-Type:
|
217
|
+
- application/json; charset=utf-8
|
218
|
+
Date:
|
219
|
+
- Mon, 01 Nov 2021 23:10:10 GMT
|
220
|
+
Server:
|
221
|
+
- Cowboy
|
222
|
+
X-Request-Id:
|
223
|
+
- FrOO5ouBokX8j9QAAAEH
|
224
|
+
body:
|
225
|
+
encoding: UTF-8
|
226
|
+
string: '{"data":null}'
|
227
|
+
recorded_at: Mon, 01 Nov 2021 23:10:10 GMT
|
228
|
+
- request:
|
229
|
+
method: delete
|
230
|
+
uri: http://localhost:4000/rest/events/03672ed3-532f-41b7-986f-35d380b1ce6b
|
231
|
+
body:
|
232
|
+
encoding: UTF-8
|
233
|
+
string: 'null'
|
234
|
+
headers:
|
235
|
+
Accept-Encoding:
|
236
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
237
|
+
Accept:
|
238
|
+
- "*/*"
|
239
|
+
User-Agent:
|
240
|
+
- Ruby
|
241
|
+
Authorization:
|
242
|
+
- Bearer 0u9dmuz_uxQf4bD_rYzltCWA8hrUjvxQQ-ILWFppj7sfSfkjoNqbCX_oqtJ1ska3GaYACb25Ef-uYcbITTYJbA==
|
243
|
+
Content-Type:
|
244
|
+
- application/json
|
245
|
+
response:
|
246
|
+
status:
|
247
|
+
code: 200
|
248
|
+
message: OK
|
249
|
+
headers:
|
250
|
+
Cache-Control:
|
251
|
+
- max-age=0, private, must-revalidate
|
252
|
+
Content-Length:
|
253
|
+
- '13'
|
254
|
+
Content-Type:
|
255
|
+
- application/json; charset=utf-8
|
256
|
+
Date:
|
257
|
+
- Mon, 01 Nov 2021 23:10:44 GMT
|
258
|
+
Server:
|
259
|
+
- Cowboy
|
260
|
+
X-Request-Id:
|
261
|
+
- FrOO7rFy-8y4CBsAAAAC
|
262
|
+
body:
|
263
|
+
encoding: UTF-8
|
264
|
+
string: '{"data":null}'
|
265
|
+
recorded_at: Mon, 01 Nov 2021 23:10:45 GMT
|
37
266
|
recorded_with: VCR 6.0.0
|
@@ -0,0 +1,41 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: delete
|
5
|
+
uri: http://localhost:4000/rest/events/058a48a2-121d-46f4-ac54-2d8e7a44817b
|
6
|
+
body:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: 'null'
|
9
|
+
headers:
|
10
|
+
Accept-Encoding:
|
11
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
12
|
+
Accept:
|
13
|
+
- "*/*"
|
14
|
+
User-Agent:
|
15
|
+
- Ruby
|
16
|
+
Authorization:
|
17
|
+
- Bearer 0u9dmuz_uxQf4bD_rYzltCWA8hrUjvxQQ-ILWFppj7sfSfkjoNqbCX_oqtJ1ska3GaYACb25Ef-uYcbITTYJbA==
|
18
|
+
Content-Type:
|
19
|
+
- application/json
|
20
|
+
response:
|
21
|
+
status:
|
22
|
+
code: 200
|
23
|
+
message: OK
|
24
|
+
headers:
|
25
|
+
Cache-Control:
|
26
|
+
- max-age=0, private, must-revalidate
|
27
|
+
Content-Length:
|
28
|
+
- '13'
|
29
|
+
Content-Type:
|
30
|
+
- application/json; charset=utf-8
|
31
|
+
Date:
|
32
|
+
- Mon, 01 Nov 2021 23:14:02 GMT
|
33
|
+
Server:
|
34
|
+
- Cowboy
|
35
|
+
X-Request-Id:
|
36
|
+
- FrOPHLwrsCakhhUAAAAJ
|
37
|
+
body:
|
38
|
+
encoding: UTF-8
|
39
|
+
string: '{"data":null}'
|
40
|
+
recorded_at: Mon, 01 Nov 2021 23:14:03 GMT
|
41
|
+
recorded_with: VCR 6.0.0
|
@@ -39,4 +39,195 @@ http_interactions:
|
|
39
39
|
string: '{"data":{"body":"testing","dispatched_at":null,"endpoint":"http://localhost:4000/ping","enqueued_at":null,"headers":"{\"hello\":
|
40
40
|
\"very-true|\"}","id":"da7fe5c3-0df0-48c9-b8cd-a1e3a6ef2d48","locked_at":null,"method":"post","origin":"graphql_api","scheduled_for":"2030-05-25T22:27:23Z"}}'
|
41
41
|
recorded_at: Thu, 27 May 2021 22:09:34 GMT
|
42
|
+
- request:
|
43
|
+
method: get
|
44
|
+
uri: http://localhost:4000/rest/events/da7fe5c3-0df0-48c9-b8cd-a1e3a6ef2d48
|
45
|
+
body:
|
46
|
+
encoding: UTF-8
|
47
|
+
string: 'null'
|
48
|
+
headers:
|
49
|
+
Accept-Encoding:
|
50
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
51
|
+
Accept:
|
52
|
+
- "*/*"
|
53
|
+
User-Agent:
|
54
|
+
- Ruby
|
55
|
+
Authorization:
|
56
|
+
- Bearer RIi9yhM42RDgEXLiVbO3z-ncbS2GvI3fcmwYL4f2Zf0JpyUUKCAx8M6glyHnLmyN8Kkbul9VoAai6798ssu4aw==
|
57
|
+
Content-Type:
|
58
|
+
- application/json
|
59
|
+
response:
|
60
|
+
status:
|
61
|
+
code: 401
|
62
|
+
message: Unauthorized
|
63
|
+
headers:
|
64
|
+
Cache-Control:
|
65
|
+
- max-age=0, private, must-revalidate
|
66
|
+
Content-Length:
|
67
|
+
- '157'
|
68
|
+
Content-Type:
|
69
|
+
- application/json; charset=utf-8
|
70
|
+
Date:
|
71
|
+
- Mon, 01 Nov 2021 23:05:12 GMT
|
72
|
+
Server:
|
73
|
+
- Cowboy
|
74
|
+
X-Request-Id:
|
75
|
+
- FrOOoTPdOUhzZd4AAAAF
|
76
|
+
body:
|
77
|
+
encoding: UTF-8
|
78
|
+
string: '{"errors":["Your API key isn''t valid. Please read https://bloodbath.notion.site/Acquire-your-API-Key-3b4adbbcc7f948d0a5c52d165a963ae4
|
79
|
+
for more information"]}'
|
80
|
+
recorded_at: Mon, 01 Nov 2021 23:05:12 GMT
|
81
|
+
- request:
|
82
|
+
method: get
|
83
|
+
uri: http://localhost:4000/rest/events/da7fe5c3-0df0-48c9-b8cd-a1e3a6ef2d48
|
84
|
+
body:
|
85
|
+
encoding: UTF-8
|
86
|
+
string: 'null'
|
87
|
+
headers:
|
88
|
+
Accept-Encoding:
|
89
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
90
|
+
Accept:
|
91
|
+
- "*/*"
|
92
|
+
User-Agent:
|
93
|
+
- Ruby
|
94
|
+
Authorization:
|
95
|
+
- Bearer 0u9dmuz_uxQf4bD_rYzltCWA8hrUjvxQQ-ILWFppj7sfSfkjoNqbCX_oqtJ1ska3GaYACb25Ef-uYcbITTYJbA==
|
96
|
+
Content-Type:
|
97
|
+
- application/json
|
98
|
+
response:
|
99
|
+
status:
|
100
|
+
code: 404
|
101
|
+
message: Not Found
|
102
|
+
headers:
|
103
|
+
Cache-Control:
|
104
|
+
- max-age=0, private, must-revalidate
|
105
|
+
Content-Length:
|
106
|
+
- '24'
|
107
|
+
Content-Type:
|
108
|
+
- application/json; charset=utf-8
|
109
|
+
Date:
|
110
|
+
- Mon, 01 Nov 2021 23:08:31 GMT
|
111
|
+
Server:
|
112
|
+
- Cowboy
|
113
|
+
X-Request-Id:
|
114
|
+
- FrOOz6TitlbF1NkAAAEG
|
115
|
+
body:
|
116
|
+
encoding: UTF-8
|
117
|
+
string: '{"errors":["Not found"]}'
|
118
|
+
recorded_at: Mon, 01 Nov 2021 23:08:32 GMT
|
119
|
+
- request:
|
120
|
+
method: get
|
121
|
+
uri: http://localhost:4000/rest/events/02325496-8df6-449c-ab3e-a53de327ac84
|
122
|
+
body:
|
123
|
+
encoding: UTF-8
|
124
|
+
string: 'null'
|
125
|
+
headers:
|
126
|
+
Accept-Encoding:
|
127
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
128
|
+
Accept:
|
129
|
+
- "*/*"
|
130
|
+
User-Agent:
|
131
|
+
- Ruby
|
132
|
+
Authorization:
|
133
|
+
- Bearer 0u9dmuz_uxQf4bD_rYzltCWA8hrUjvxQQ-ILWFppj7sfSfkjoNqbCX_oqtJ1ska3GaYACb25Ef-uYcbITTYJbA==
|
134
|
+
Content-Type:
|
135
|
+
- application/json
|
136
|
+
response:
|
137
|
+
status:
|
138
|
+
code: 200
|
139
|
+
message: OK
|
140
|
+
headers:
|
141
|
+
Cache-Control:
|
142
|
+
- max-age=0, private, must-revalidate
|
143
|
+
Content-Length:
|
144
|
+
- '261'
|
145
|
+
Content-Type:
|
146
|
+
- application/json; charset=utf-8
|
147
|
+
Date:
|
148
|
+
- Mon, 01 Nov 2021 23:09:28 GMT
|
149
|
+
Server:
|
150
|
+
- Cowboy
|
151
|
+
X-Request-Id:
|
152
|
+
- FrOO3Ntqu4gp6WIAAACI
|
153
|
+
body:
|
154
|
+
encoding: UTF-8
|
155
|
+
string: '{"data":{"body":null,"dispatched_at":null,"endpoint":"https://dummy.bloodbath.io/lets-try","enqueued_at":null,"headers":"{}","id":"02325496-8df6-449c-ab3e-a53de327ac84","locked_at":null,"method":"get","origin":"rest_api","scheduled_for":"2022-10-31T23:39:36Z"}}'
|
156
|
+
recorded_at: Mon, 01 Nov 2021 23:09:28 GMT
|
157
|
+
- request:
|
158
|
+
method: get
|
159
|
+
uri: http://localhost:4000/rest/events/02fd4aa1-9574-4481-8d23-765a0662abf2
|
160
|
+
body:
|
161
|
+
encoding: UTF-8
|
162
|
+
string: 'null'
|
163
|
+
headers:
|
164
|
+
Accept-Encoding:
|
165
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
166
|
+
Accept:
|
167
|
+
- "*/*"
|
168
|
+
User-Agent:
|
169
|
+
- Ruby
|
170
|
+
Authorization:
|
171
|
+
- Bearer 0u9dmuz_uxQf4bD_rYzltCWA8hrUjvxQQ-ILWFppj7sfSfkjoNqbCX_oqtJ1ska3GaYACb25Ef-uYcbITTYJbA==
|
172
|
+
Content-Type:
|
173
|
+
- application/json
|
174
|
+
response:
|
175
|
+
status:
|
176
|
+
code: 200
|
177
|
+
message: OK
|
178
|
+
headers:
|
179
|
+
Cache-Control:
|
180
|
+
- max-age=0, private, must-revalidate
|
181
|
+
Content-Length:
|
182
|
+
- '261'
|
183
|
+
Content-Type:
|
184
|
+
- application/json; charset=utf-8
|
185
|
+
Date:
|
186
|
+
- Mon, 01 Nov 2021 23:10:09 GMT
|
187
|
+
Server:
|
188
|
+
- Cowboy
|
189
|
+
X-Request-Id:
|
190
|
+
- FrOO5oYYzqPpE5oAAAEI
|
191
|
+
body:
|
192
|
+
encoding: UTF-8
|
193
|
+
string: '{"data":{"body":null,"dispatched_at":null,"endpoint":"https://dummy.bloodbath.io/lets-try","enqueued_at":null,"headers":"{}","id":"02fd4aa1-9574-4481-8d23-765a0662abf2","locked_at":null,"method":"get","origin":"rest_api","scheduled_for":"2022-10-31T23:39:36Z"}}'
|
194
|
+
recorded_at: Mon, 01 Nov 2021 23:10:10 GMT
|
195
|
+
- request:
|
196
|
+
method: get
|
197
|
+
uri: http://localhost:4000/rest/events/03672ed3-532f-41b7-986f-35d380b1ce6b
|
198
|
+
body:
|
199
|
+
encoding: UTF-8
|
200
|
+
string: 'null'
|
201
|
+
headers:
|
202
|
+
Accept-Encoding:
|
203
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
204
|
+
Accept:
|
205
|
+
- "*/*"
|
206
|
+
User-Agent:
|
207
|
+
- Ruby
|
208
|
+
Authorization:
|
209
|
+
- Bearer 0u9dmuz_uxQf4bD_rYzltCWA8hrUjvxQQ-ILWFppj7sfSfkjoNqbCX_oqtJ1ska3GaYACb25Ef-uYcbITTYJbA==
|
210
|
+
Content-Type:
|
211
|
+
- application/json
|
212
|
+
response:
|
213
|
+
status:
|
214
|
+
code: 200
|
215
|
+
message: OK
|
216
|
+
headers:
|
217
|
+
Cache-Control:
|
218
|
+
- max-age=0, private, must-revalidate
|
219
|
+
Content-Length:
|
220
|
+
- '261'
|
221
|
+
Content-Type:
|
222
|
+
- application/json; charset=utf-8
|
223
|
+
Date:
|
224
|
+
- Mon, 01 Nov 2021 23:10:44 GMT
|
225
|
+
Server:
|
226
|
+
- Cowboy
|
227
|
+
X-Request-Id:
|
228
|
+
- FrOO7q2KwTOCI94AAAAD
|
229
|
+
body:
|
230
|
+
encoding: UTF-8
|
231
|
+
string: '{"data":{"body":null,"dispatched_at":null,"endpoint":"https://dummy.bloodbath.io/lets-try","enqueued_at":null,"headers":"{}","id":"03672ed3-532f-41b7-986f-35d380b1ce6b","locked_at":null,"method":"get","origin":"rest_api","scheduled_for":"2022-10-31T22:30:00Z"}}'
|
232
|
+
recorded_at: Mon, 01 Nov 2021 23:10:45 GMT
|
42
233
|
recorded_with: VCR 6.0.0
|
@@ -0,0 +1,41 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: http://localhost:4000/rest/events/058a48a2-121d-46f4-ac54-2d8e7a44817b
|
6
|
+
body:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: 'null'
|
9
|
+
headers:
|
10
|
+
Accept-Encoding:
|
11
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
12
|
+
Accept:
|
13
|
+
- "*/*"
|
14
|
+
User-Agent:
|
15
|
+
- Ruby
|
16
|
+
Authorization:
|
17
|
+
- Bearer 0u9dmuz_uxQf4bD_rYzltCWA8hrUjvxQQ-ILWFppj7sfSfkjoNqbCX_oqtJ1ska3GaYACb25Ef-uYcbITTYJbA==
|
18
|
+
Content-Type:
|
19
|
+
- application/json
|
20
|
+
response:
|
21
|
+
status:
|
22
|
+
code: 200
|
23
|
+
message: OK
|
24
|
+
headers:
|
25
|
+
Cache-Control:
|
26
|
+
- max-age=0, private, must-revalidate
|
27
|
+
Content-Length:
|
28
|
+
- '261'
|
29
|
+
Content-Type:
|
30
|
+
- application/json; charset=utf-8
|
31
|
+
Date:
|
32
|
+
- Mon, 01 Nov 2021 23:14:02 GMT
|
33
|
+
Server:
|
34
|
+
- Cowboy
|
35
|
+
X-Request-Id:
|
36
|
+
- FrOPHLdDkb3UkSwAAAGH
|
37
|
+
body:
|
38
|
+
encoding: UTF-8
|
39
|
+
string: '{"data":{"body":null,"dispatched_at":null,"endpoint":"https://dummy.bloodbath.io/lets-try","enqueued_at":null,"headers":"{}","id":"058a48a2-121d-46f4-ac54-2d8e7a44817b","locked_at":null,"method":"get","origin":"rest_api","scheduled_for":"2022-10-31T22:17:37Z"}}'
|
40
|
+
recorded_at: Mon, 01 Nov 2021 23:14:03 GMT
|
41
|
+
recorded_with: VCR 6.0.0
|