asyncapi-server 1.1.0 → 1.1.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2cd757bb2567503b5ba9d8ce6e83ca056a199305
4
- data.tar.gz: 57cf7ac80d344addd357356b8949e3fdd3bc4fae
3
+ metadata.gz: ed61fe49185fc013d22cd3aac1ef8a825dad793b
4
+ data.tar.gz: 3e5d5d4bf50de701ab6a76a68bb37a1eb456c7e6
5
5
  SHA512:
6
- metadata.gz: 4e9f48b45f660abbed76f254fd0c93ed330c071c816c38f2a0ff7c761ab0110498837594fee02408bc8d906a128478861dbdde68933bd33512c623242fe265dc
7
- data.tar.gz: c0292eab80325a33914f37997f7d7bf79a175c3090ab5f8c2ae7881e86d3315d8bcfe57b71343ad9115ff583b2b08e6e653ed39e5987f767971f1a0cfc262272
6
+ metadata.gz: 2700ee2e6124e0a6afdb72d6e71e38f82e8ee004fa7fb4b63fef5e27408f9f2444d34fc455fdc6c5919c0db72ac514d68f93e717e972735e74bbf36042468c62
7
+ data.tar.gz: fe9a9de3ad5a7e731f95d6e0ceed458298866d21af170ed3dbaad78d8724dd48a8fbe727e095235a79d7a98d07aec26bc9844a31b45caa571b093c9486724462
@@ -1,4 +1,4 @@
1
- Copyright 2015 G5
1
+ Copyright 2016 G5
2
2
 
3
3
  MIT License
4
4
 
data/README.md CHANGED
@@ -54,6 +54,37 @@ If you use `protected_attributes`, in an initializer:
54
54
  Asyncapi::Server::Job.attr_accessible :status, :callback_url, :class_name, :params, :secret
55
55
  ```
56
56
 
57
+ ## Usage without Asyncapi::Client
58
+
59
+ If you want to use this without asyncapi client, you need to prepare two things: the endpoint that asyncapi-server will reply to.
60
+
61
+ Create the job by POSTing the following to CreateSomething above:
62
+
63
+ ```json
64
+ {
65
+ "job": {
66
+ "callback_url": "https://myclient.com/jobs_callback",
67
+ "params": {
68
+ "name": "Something's name",
69
+ "approved": true
70
+ },
71
+ "secret": "A secret unique to this job, so that you know what job the server is referring to"
72
+ }
73
+ }
74
+ ```
75
+
76
+ When the server is done processing, it will post something to your client. Your endpoint must accept the following json as the body:
77
+
78
+ ```
79
+ {
80
+ "job": {
81
+ "status": "success",
82
+ "message": "The output of the Runner class (i.e. `CreateSomething`)",
83
+ "secret": "The secret you had sent earlier (this is how you can be sure it's not someone else updating your endpoint)",
84
+ }
85
+ }
86
+ ```
87
+
57
88
  ### RSpec
58
89
 
59
90
  If you want to create an integration spec for you Asyncapi server endpoint, make sure you require the helper:
@@ -70,9 +101,15 @@ asyncapi_post("/api/v1/long_running_job", name: "Compute")
70
101
 
71
102
  This helper calls `post` underneath but builds the request in a way that Asyncapi server understands.
72
103
 
104
+ ## Development
105
+
106
+ - Run `rake db:migrate && rake db:migrate RAILS_ENV=test`
107
+ - Make changes
108
+ - `rspec`
109
+
73
110
  ## License
74
111
 
75
- Copyright (c) 2015 G5
112
+ Copyright (c) 2016 G5
76
113
 
77
114
  MIT License
78
115
 
@@ -1,3 +1,6 @@
1
+ require 'active_model_serializers'
2
+ require 'responders'
3
+ require 'ar_after_transaction'
1
4
  require "asyncapi/server/engine"
2
5
 
3
6
  module Asyncapi
@@ -9,8 +9,10 @@ module Asyncapi
9
9
  def async(method_name, klass)
10
10
  define_method(method_name) do
11
11
  job = Job.create(job_params_with(klass.name))
12
+ ActiveRecord::Base.after_transaction do
13
+ JobWorker.perform_async(job.id)
14
+ end
12
15
  serializer = JobSerializer.new(job)
13
- JobWorker.perform_async(job.id)
14
16
  render json: serializer
15
17
  end
16
18
  end
@@ -1,5 +1,5 @@
1
1
  module Asyncapi
2
2
  module Server
3
- VERSION = "1.1.0"
3
+ VERSION = "1.1.1"
4
4
  end
5
5
  end
@@ -11,9 +11,9 @@
11
11
  #
12
12
  # It's strongly recommended that you check this file into your version control system.
13
13
 
14
- ActiveRecord::Schema.define(version: 20150201231329) do
14
+ ActiveRecord::Schema.define(version: 20150201231018) do
15
15
 
16
- create_table "asyncapi_server_jobs", force: true do |t|
16
+ create_table "asyncapi_server_jobs", force: :cascade do |t|
17
17
  t.integer "status"
18
18
  t.string "callback_url"
19
19
  t.string "class_name"
@@ -0,0 +1,43 @@
1
+  (4.2ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL) 
2
+  (0.1ms) select sqlite_version(*)
3
+  (4.5ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
4
+ ActiveRecord::SchemaMigration Load (0.9ms) SELECT "schema_migrations".* FROM "schema_migrations"
5
+ Migrating to CreateAsyncapiServerJobs (20141112034324)
6
+  (0.1ms) begin transaction
7
+  (2.9ms) CREATE TABLE "asyncapi_server_jobs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "status" integer, "callback_url" varchar, "class_name" varchar, "params" text)
8
+ SQL (0.7ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20141112034324"]]
9
+  (2.5ms) commit transaction
10
+ Migrating to AddSecretToAsyncapiServerJob (20141212064931)
11
+  (0.1ms) begin transaction
12
+  (4.3ms) ALTER TABLE "asyncapi_server_jobs" ADD "secret" varchar
13
+ SQL (1.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20141212064931"]]
14
+  (4.2ms) commit transaction
15
+ Migrating to AddExpiredAtToAsyncapiServerJob (20150130062520)
16
+  (0.1ms) begin transaction
17
+  (6.0ms) ALTER TABLE "asyncapi_server_jobs" ADD "expired_at" datetime
18
+ SQL (0.0ms) UPDATE "asyncapi_server_jobs" SET "expired_at" = '2016-07-31 00:11:55.202627' WHERE "asyncapi_server_jobs"."expired_at" IS NULL
19
+ SQL (0.9ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150130062520"]]
20
+  (2.3ms) commit transaction
21
+ Migrating to DropExpiredAtFromAsyncapiServerJobs (20150201231018)
22
+  (0.1ms) begin transaction
23
+  (2.2ms) CREATE TEMPORARY TABLE "aasyncapi_server_jobs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "status" integer, "callback_url" varchar, "class_name" varchar, "params" text, "secret" varchar, "expired_at" datetime) 
24
+  (0.5ms) SELECT * FROM "asyncapi_server_jobs"
25
+  (3.0ms) DROP TABLE "asyncapi_server_jobs"
26
+  (0.2ms) CREATE TABLE "asyncapi_server_jobs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "status" integer, "callback_url" varchar, "class_name" varchar, "params" text, "secret" varchar)
27
+  (0.1ms) SELECT * FROM "aasyncapi_server_jobs"
28
+  (0.4ms) DROP TABLE "aasyncapi_server_jobs"
29
+ SQL (1.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150201231018"]]
30
+  (4.5ms) commit transaction
31
+ ActiveRecord::SchemaMigration Load (1.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
32
+ ActiveRecord::SchemaMigration Load (1.0ms) SELECT "schema_migrations".* FROM "schema_migrations"
33
+ ActiveRecord::SchemaMigration Load (0.9ms) SELECT "schema_migrations".* FROM "schema_migrations"
34
+ ActiveRecord::SchemaMigration Load (2.0ms) SELECT "schema_migrations".* FROM "schema_migrations"
35
+ ActiveRecord::SchemaMigration Load (1.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
36
+ Asyncapi::Server::Job Load (27.5ms) SELECT "asyncapi_server_jobs".* FROM "asyncapi_server_jobs"
37
+ ActiveRecord::SchemaMigration Load (1.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
38
+ Migrating to AddExpiredAtToAsyncapiServerJobs (20160721002627)
39
+  (0.1ms) begin transaction
40
+  (3.7ms) ALTER TABLE "asyncapi_server_jobs" ADD "expired_at" datetime
41
+ SQL (0.8ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20160721002627"]]
42
+  (2.0ms) commit transaction
43
+ ActiveRecord::SchemaMigration Load (1.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
@@ -0,0 +1,3545 @@
1
+  (0.1ms) begin transaction
2
+  (0.0ms) commit transaction
3
+  (0.1ms) begin transaction
4
+  (0.1ms) rollback transaction
5
+  (0.1ms) begin transaction
6
+  (0.0ms) commit transaction
7
+  (0.0ms) begin transaction
8
+  (0.0ms) rollback transaction
9
+  (0.1ms) begin transaction
10
+  (0.0ms) commit transaction
11
+  (0.0ms) begin transaction
12
+  (0.0ms) rollback transaction
13
+  (0.1ms) begin transaction
14
+  (0.1ms) commit transaction
15
+  (0.1ms) begin transaction
16
+  (0.1ms) rollback transaction
17
+  (0.1ms) begin transaction
18
+  (0.0ms) commit transaction
19
+  (0.0ms) begin transaction
20
+  (0.0ms) rollback transaction
21
+  (0.4ms) begin transaction
22
+  (0.1ms) commit transaction
23
+  (0.0ms) begin transaction
24
+  (0.0ms) rollback transaction
25
+  (0.1ms) begin transaction
26
+  (0.1ms) commit transaction
27
+  (0.0ms) begin transaction
28
+  (0.1ms) rollback transaction
29
+  (0.2ms) begin transaction
30
+  (0.1ms) commit transaction
31
+  (0.1ms) begin transaction
32
+  (0.0ms) rollback transaction
33
+  (0.1ms) begin transaction
34
+  (0.0ms) commit transaction
35
+  (0.0ms) begin transaction
36
+  (0.0ms) rollback transaction
37
+  (0.1ms) begin transaction
38
+  (0.0ms) commit transaction
39
+  (0.0ms) begin transaction
40
+  (0.0ms) rollback transaction
41
+  (0.1ms) begin transaction
42
+  (0.0ms) commit transaction
43
+  (0.1ms) begin transaction
44
+  (0.1ms) rollback transaction
45
+  (0.1ms) begin transaction
46
+  (0.0ms) commit transaction
47
+  (0.0ms) begin transaction
48
+  (0.0ms) rollback transaction
49
+  (0.1ms) begin transaction
50
+  (0.0ms) commit transaction
51
+  (0.0ms) begin transaction
52
+  (0.0ms) rollback transaction
53
+  (0.1ms) begin transaction
54
+  (0.0ms) commit transaction
55
+  (0.1ms) begin transaction
56
+  (0.4ms) rollback transaction
57
+  (0.1ms) begin transaction
58
+  (0.1ms) commit transaction
59
+  (0.0ms) begin transaction
60
+  (0.0ms) rollback transaction
61
+  (0.1ms) begin transaction
62
+  (0.0ms) commit transaction
63
+  (0.1ms) begin transaction
64
+  (0.0ms) rollback transaction
65
+  (0.1ms) begin transaction
66
+  (0.0ms) commit transaction
67
+  (0.0ms) begin transaction
68
+  (0.0ms) rollback transaction
69
+  (0.1ms) begin transaction
70
+  (0.0ms) commit transaction
71
+  (0.0ms) begin transaction
72
+  (0.0ms) rollback transaction
73
+  (0.1ms) begin transaction
74
+  (0.0ms) commit transaction
75
+  (0.0ms) begin transaction
76
+  (0.1ms) rollback transaction
77
+  (0.1ms) begin transaction
78
+  (0.1ms) commit transaction
79
+  (0.0ms) begin transaction
80
+  (0.0ms) rollback transaction
81
+  (0.1ms) begin transaction
82
+  (0.0ms) commit transaction
83
+  (0.0ms) begin transaction
84
+  (0.0ms) rollback transaction
85
+  (0.1ms) begin transaction
86
+  (0.0ms) commit transaction
87
+  (0.0ms) begin transaction
88
+  (0.0ms) rollback transaction
89
+  (0.1ms) begin transaction
90
+  (0.0ms) commit transaction
91
+  (0.0ms) begin transaction
92
+  (0.0ms) rollback transaction
93
+  (0.1ms) begin transaction
94
+  (0.1ms) commit transaction
95
+  (0.0ms) begin transaction
96
+  (0.0ms) rollback transaction
97
+  (0.1ms) begin transaction
98
+  (0.1ms) commit transaction
99
+  (0.0ms) begin transaction
100
+  (0.1ms) rollback transaction
101
+  (0.1ms) begin transaction
102
+  (0.1ms) commit transaction
103
+  (0.0ms) begin transaction
104
+  (0.1ms) rollback transaction
105
+  (0.1ms) begin transaction
106
+  (0.0ms) commit transaction
107
+  (0.1ms) begin transaction
108
+  (0.0ms) rollback transaction
109
+  (0.1ms) begin transaction
110
+  (0.1ms) commit transaction
111
+  (0.0ms) begin transaction
112
+  (0.0ms) rollback transaction
113
+  (0.1ms) begin transaction
114
+  (0.0ms) commit transaction
115
+  (0.0ms) begin transaction
116
+  (0.0ms) rollback transaction
117
+  (0.1ms) begin transaction
118
+  (0.1ms) commit transaction
119
+  (0.0ms) begin transaction
120
+  (0.0ms) rollback transaction
121
+  (0.1ms) begin transaction
122
+  (0.1ms) commit transaction
123
+  (0.1ms) begin transaction
124
+  (0.1ms) rollback transaction
125
+  (0.1ms) begin transaction
126
+  (0.0ms) commit transaction
127
+  (0.1ms) begin transaction
128
+  (0.0ms) rollback transaction
129
+  (0.1ms) begin transaction
130
+  (0.0ms) commit transaction
131
+  (0.0ms) begin transaction
132
+  (0.1ms) rollback transaction
133
+  (0.1ms) begin transaction
134
+  (0.1ms) commit transaction
135
+  (0.0ms) begin transaction
136
+  (0.0ms) rollback transaction
137
+  (0.2ms) begin transaction
138
+  (0.1ms) commit transaction
139
+  (0.1ms) begin transaction
140
+  (0.0ms) rollback transaction
141
+  (0.1ms) begin transaction
142
+  (0.0ms) commit transaction
143
+  (0.1ms) begin transaction
144
+  (0.1ms) rollback transaction
145
+  (0.1ms) begin transaction
146
+  (0.0ms) commit transaction
147
+  (0.0ms) begin transaction
148
+  (0.0ms) rollback transaction
149
+  (0.1ms) begin transaction
150
+  (0.1ms) commit transaction
151
+  (0.1ms) begin transaction
152
+  (0.0ms) rollback transaction
153
+  (0.1ms) begin transaction
154
+  (0.1ms) commit transaction
155
+  (0.1ms) begin transaction
156
+  (0.1ms) rollback transaction
157
+  (0.1ms) begin transaction
158
+  (0.0ms) commit transaction
159
+  (0.0ms) begin transaction
160
+  (0.1ms) rollback transaction
161
+  (0.2ms) begin transaction
162
+  (0.1ms) commit transaction
163
+  (0.0ms) begin transaction
164
+  (0.0ms) rollback transaction
165
+  (0.1ms) begin transaction
166
+  (0.1ms) commit transaction
167
+  (0.0ms) begin transaction
168
+  (0.0ms) rollback transaction
169
+  (0.1ms) begin transaction
170
+  (0.0ms) commit transaction
171
+  (0.0ms) begin transaction
172
+  (0.0ms) rollback transaction
173
+  (0.1ms) begin transaction
174
+  (0.1ms) commit transaction
175
+  (0.0ms) begin transaction
176
+  (0.0ms) rollback transaction
177
+  (0.1ms) begin transaction
178
+  (0.1ms) commit transaction
179
+  (0.1ms) begin transaction
180
+  (0.1ms) rollback transaction
181
+  (0.2ms) begin transaction
182
+  (0.0ms) commit transaction
183
+  (0.1ms) begin transaction
184
+  (0.1ms) rollback transaction
185
+  (0.1ms) begin transaction
186
+  (0.1ms) commit transaction
187
+  (0.1ms) begin transaction
188
+  (0.1ms) rollback transaction
189
+  (0.1ms) begin transaction
190
+  (0.1ms) commit transaction
191
+  (0.0ms) begin transaction
192
+  (0.0ms) rollback transaction
193
+  (0.1ms) begin transaction
194
+  (0.0ms) commit transaction
195
+  (0.1ms) begin transaction
196
+  (0.0ms) rollback transaction
197
+  (0.2ms) begin transaction
198
+  (0.1ms) commit transaction
199
+  (0.1ms) begin transaction
200
+  (0.0ms) rollback transaction
201
+  (0.1ms) begin transaction
202
+  (0.0ms) commit transaction
203
+  (0.0ms) begin transaction
204
+  (0.0ms) rollback transaction
205
+  (0.1ms) begin transaction
206
+  (0.2ms) commit transaction
207
+  (0.5ms) begin transaction
208
+  (0.1ms) rollback transaction
209
+  (0.1ms) begin transaction
210
+  (0.0ms) commit transaction
211
+  (0.0ms) begin transaction
212
+  (0.0ms) rollback transaction
213
+  (0.1ms) begin transaction
214
+  (0.1ms) commit transaction
215
+  (0.0ms) begin transaction
216
+  (0.0ms) rollback transaction
217
+  (0.1ms) begin transaction
218
+  (0.0ms) commit transaction
219
+  (0.0ms) begin transaction
220
+  (0.1ms) rollback transaction
221
+  (0.1ms) begin transaction
222
+  (0.1ms) commit transaction
223
+  (0.0ms) begin transaction
224
+  (0.0ms) rollback transaction
225
+  (0.1ms) begin transaction
226
+  (0.0ms) commit transaction
227
+  (0.0ms) begin transaction
228
+  (0.0ms) rollback transaction
229
+  (4.8ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL) 
230
+  (0.1ms) select sqlite_version(*)
231
+  (17.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
232
+ ActiveRecord::SchemaMigration Load (1.0ms) SELECT "schema_migrations".* FROM "schema_migrations"
233
+ Migrating to CreateAsyncapiServerJobs (20141112034324)
234
+  (0.1ms) begin transaction
235
+  (4.2ms) CREATE TABLE "asyncapi_server_jobs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "status" integer, "callback_url" varchar, "class_name" varchar, "params" text)
236
+ SQL (1.0ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20141112034324"]]
237
+  (10.0ms) commit transaction
238
+ Migrating to AddSecretToAsyncapiServerJob (20141212064931)
239
+  (0.1ms) begin transaction
240
+  (8.2ms) ALTER TABLE "asyncapi_server_jobs" ADD "secret" varchar
241
+ SQL (1.0ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20141212064931"]]
242
+  (6.9ms) commit transaction
243
+ Migrating to AddExpiredAtToAsyncapiServerJob (20150130062520)
244
+  (1.2ms) begin transaction
245
+  (9.9ms) ALTER TABLE "asyncapi_server_jobs" ADD "expired_at" datetime
246
+ SQL (0.1ms) UPDATE "asyncapi_server_jobs" SET "expired_at" = '2016-07-31 00:14:48.100058' WHERE "asyncapi_server_jobs"."expired_at" IS NULL
247
+ SQL (1.4ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150130062520"]]
248
+  (2.8ms) commit transaction
249
+ Migrating to DropExpiredAtFromAsyncapiServerJobs (20150201231018)
250
+  (0.1ms) begin transaction
251
+  (0.6ms) CREATE TEMPORARY TABLE "aasyncapi_server_jobs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "status" integer, "callback_url" varchar, "class_name" varchar, "params" text, "secret" varchar, "expired_at" datetime) 
252
+  (0.2ms) SELECT * FROM "asyncapi_server_jobs"
253
+  (8.6ms) DROP TABLE "asyncapi_server_jobs"
254
+  (1.0ms) CREATE TABLE "asyncapi_server_jobs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "status" integer, "callback_url" varchar, "class_name" varchar, "params" text, "secret" varchar)
255
+  (0.1ms) SELECT * FROM "aasyncapi_server_jobs"
256
+  (0.8ms) DROP TABLE "aasyncapi_server_jobs"
257
+ SQL (2.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150201231018"]]
258
+  (7.1ms) commit transaction
259
+ ActiveRecord::SchemaMigration Load (6.9ms) SELECT "schema_migrations".* FROM "schema_migrations"
260
+  (4.9ms) DELETE FROM "asyncapi_server_jobs";
261
+  (1.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
262
+  (1.1ms) DELETE FROM sqlite_sequence where name = 'asyncapi_server_jobs';
263
+  (0.1ms) begin transaction
264
+  (0.1ms) commit transaction
265
+  (0.1ms) begin transaction
266
+  (0.1ms) rollback transaction
267
+  (0.1ms) begin transaction
268
+  (0.1ms) commit transaction
269
+  (0.0ms) begin transaction
270
+  (0.1ms) rollback transaction
271
+  (0.1ms) begin transaction
272
+  (0.0ms) commit transaction
273
+  (0.0ms) begin transaction
274
+  (0.0ms) rollback transaction
275
+  (0.1ms) begin transaction
276
+  (0.0ms) commit transaction
277
+  (0.0ms) begin transaction
278
+  (0.0ms) rollback transaction
279
+  (0.1ms) begin transaction
280
+  (0.0ms) commit transaction
281
+  (0.0ms) begin transaction
282
+  (0.0ms) rollback transaction
283
+  (0.2ms) begin transaction
284
+  (0.0ms) commit transaction
285
+  (0.1ms) begin transaction
286
+  (0.0ms) SAVEPOINT active_record_1
287
+ SQL (4.4ms) INSERT INTO "asyncapi_server_jobs" ("status", "callback_url", "class_name", "params") VALUES (?, ?, ?, ?) [["status", 2], ["callback_url", "http://callback_url.com"], ["class_name", "CreateStorageFacility"], ["params", "{\"param\":\"values\"}"]]
288
+  (0.1ms) RELEASE SAVEPOINT active_record_1
289
+  (3.3ms) rollback transaction
290
+  (0.1ms) begin transaction
291
+  (0.0ms) commit transaction
292
+  (0.0ms) begin transaction
293
+  (0.1ms) rollback transaction
294
+  (0.1ms) begin transaction
295
+  (0.1ms) commit transaction
296
+  (0.1ms) begin transaction
297
+  (0.1ms) rollback transaction
298
+  (0.1ms) begin transaction
299
+  (0.0ms) commit transaction
300
+  (0.1ms) begin transaction
301
+  (0.1ms) rollback transaction
302
+  (0.2ms) begin transaction
303
+  (0.1ms) commit transaction
304
+  (0.0ms) begin transaction
305
+  (0.1ms) rollback transaction
306
+  (0.2ms) begin transaction
307
+  (0.1ms) commit transaction
308
+  (0.1ms) begin transaction
309
+  (0.1ms) rollback transaction
310
+  (0.1ms) begin transaction
311
+  (0.0ms) commit transaction
312
+  (0.0ms) begin transaction
313
+  (0.1ms) rollback transaction
314
+  (0.1ms) begin transaction
315
+  (0.1ms) commit transaction
316
+  (0.1ms) begin transaction
317
+  (0.1ms) SAVEPOINT active_record_1
318
+ SQL (3.8ms) INSERT INTO "asyncapi_server_jobs" DEFAULT VALUES
319
+  (0.1ms) RELEASE SAVEPOINT active_record_1
320
+  (0.1ms) SAVEPOINT active_record_1
321
+ SQL (0.1ms) INSERT INTO "asyncapi_server_jobs" DEFAULT VALUES
322
+  (0.1ms) RELEASE SAVEPOINT active_record_1
323
+ Processing by Asyncapi::Server::V1::JobsController#index as JSON
324
+ Parameters: {"page"=>2, "per_page"=>1}
325
+  (0.1ms) SELECT COUNT(*) FROM "asyncapi_server_jobs"
326
+ Completed 500 Internal Server Error in 27ms (ActiveRecord: 0.1ms)
327
+  (2.0ms) rollback transaction
328
+  (0.1ms) begin transaction
329
+  (0.1ms) commit transaction
330
+  (0.1ms) begin transaction
331
+  (0.1ms) SAVEPOINT active_record_1
332
+ SQL (4.1ms) INSERT INTO "asyncapi_server_jobs" ("secret") VALUES (?) [["secret", "12312"]]
333
+  (0.1ms) RELEASE SAVEPOINT active_record_1
334
+ Processing by Asyncapi::Server::V1::JobsController#destroy as JSON
335
+ Parameters: {"secret"=>"12312", "id"=>"1"}
336
+ Asyncapi::Server::Job Load (0.1ms) SELECT "asyncapi_server_jobs".* FROM "asyncapi_server_jobs" WHERE "asyncapi_server_jobs"."id" = ? AND "asyncapi_server_jobs"."secret" = ? LIMIT 1 [["id", 1], ["secret", "12312"]]
337
+  (0.1ms) SAVEPOINT active_record_1
338
+ SQL (0.2ms) DELETE FROM "asyncapi_server_jobs" WHERE "asyncapi_server_jobs"."id" = ? [["id", 1]]
339
+  (0.0ms) RELEASE SAVEPOINT active_record_1
340
+ Completed 204 No Content in 97ms (ActiveRecord: 0.4ms)
341
+  (2.9ms) rollback transaction
342
+  (0.1ms) begin transaction
343
+  (0.1ms) commit transaction
344
+  (0.0ms) begin transaction
345
+  (0.0ms) SAVEPOINT active_record_1
346
+ SQL (2.8ms) INSERT INTO "asyncapi_server_jobs" ("secret") VALUES (?) [["secret", "12312"]]
347
+  (0.1ms) RELEASE SAVEPOINT active_record_1
348
+ Processing by Asyncapi::Server::V1::JobsController#destroy as JSON
349
+ Parameters: {"secret"=>"12315", "id"=>"1"}
350
+ Asyncapi::Server::Job Load (0.1ms) SELECT "asyncapi_server_jobs".* FROM "asyncapi_server_jobs" WHERE "asyncapi_server_jobs"."id" = ? AND "asyncapi_server_jobs"."secret" = ? LIMIT 1 [["id", 1], ["secret", "12315"]]
351
+ Rendered text template (0.0ms)
352
+ Completed 404 Not Found in 8ms (Views: 7.3ms | ActiveRecord: 0.1ms)
353
+  (1.8ms) rollback transaction
354
+  (0.1ms) begin transaction
355
+  (0.0ms) commit transaction
356
+  (0.1ms) begin transaction
357
+  (0.1ms) SAVEPOINT active_record_1
358
+ SQL (4.6ms) INSERT INTO "asyncapi_server_jobs" DEFAULT VALUES
359
+  (0.1ms) RELEASE SAVEPOINT active_record_1
360
+ Processing by Asyncapi::Server::V1::JobsController#show as JSON
361
+ Parameters: {"id"=>"1"}
362
+ Asyncapi::Server::Job Load (0.1ms) SELECT "asyncapi_server_jobs".* FROM "asyncapi_server_jobs" WHERE "asyncapi_server_jobs"."id" = ? LIMIT 1 [["id", 1]]
363
+ [active_model_serializers] Rendered Asyncapi::Server::JobSerializer with ActiveModelSerializers::Adapter::Attributes (6.2ms)
364
+ Completed 200 OK in 67ms (Views: 66.1ms | ActiveRecord: 0.1ms)
365
+  (3.0ms) rollback transaction
366
+  (0.1ms) begin transaction
367
+  (0.1ms) commit transaction
368
+  (0.0ms) begin transaction
369
+  (0.1ms) rollback transaction
370
+  (0.1ms) begin transaction
371
+  (0.1ms) commit transaction
372
+  (0.0ms) begin transaction
373
+  (0.0ms) SAVEPOINT active_record_1
374
+ SQL (3.3ms) INSERT INTO "asyncapi_server_jobs" ("class_name", "params", "callback_url", "secret") VALUES (?, ?, ?, ?) [["class_name", "Runner"], ["params", "{\"some\":\"params\"}"], ["callback_url", "client_job_url"], ["secret", "sekret"]]
375
+  (0.1ms) RELEASE SAVEPOINT active_record_1
376
+ Asyncapi::Server::Job Load (0.1ms) SELECT "asyncapi_server_jobs".* FROM "asyncapi_server_jobs" WHERE "asyncapi_server_jobs"."id" = ? LIMIT 1 [["id", 1]]
377
+  (0.1ms) SAVEPOINT active_record_1
378
+ SQL (0.2ms) UPDATE "asyncapi_server_jobs" SET "status" = ? WHERE "asyncapi_server_jobs"."id" = ? [["status", 1], ["id", 1]]
379
+  (0.1ms) RELEASE SAVEPOINT active_record_1
380
+ Asyncapi::Server::Job Load (0.1ms) SELECT "asyncapi_server_jobs".* FROM "asyncapi_server_jobs" WHERE "asyncapi_server_jobs"."id" = ? LIMIT 1 [["id", 1]]
381
+  (1.8ms) rollback transaction
382
+  (0.1ms) begin transaction
383
+  (0.1ms) commit transaction
384
+  (0.1ms) begin transaction
385
+  (0.1ms) SAVEPOINT active_record_1
386
+ SQL (3.1ms) INSERT INTO "asyncapi_server_jobs" ("class_name", "callback_url", "secret") VALUES (?, ?, ?) [["class_name", "Runner"], ["callback_url", "client_job_url"], ["secret", "sekret"]]
387
+  (0.1ms) RELEASE SAVEPOINT active_record_1
388
+ Asyncapi::Server::Job Load (0.1ms) SELECT "asyncapi_server_jobs".* FROM "asyncapi_server_jobs" WHERE "asyncapi_server_jobs"."id" = ? LIMIT 1 [["id", 1]]
389
+  (0.1ms) SAVEPOINT active_record_1
390
+ SQL (0.1ms) UPDATE "asyncapi_server_jobs" SET "status" = ? WHERE "asyncapi_server_jobs"."id" = ? [["status", 2], ["id", 1]]
391
+  (0.0ms) RELEASE SAVEPOINT active_record_1
392
+ Asyncapi::Server::Job Load (0.0ms) SELECT "asyncapi_server_jobs".* FROM "asyncapi_server_jobs" WHERE "asyncapi_server_jobs"."id" = ? LIMIT 1 [["id", 1]]
393
+  (3.6ms) rollback transaction
394
+  (5.1ms) DELETE FROM "asyncapi_server_jobs";
395
+  (1.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
396
+  (1.1ms) DELETE FROM sqlite_sequence where name = 'asyncapi_server_jobs';
397
+  (0.1ms) begin transaction
398
+  (0.0ms) commit transaction
399
+  (0.0ms) begin transaction
400
+  (0.1ms) rollback transaction
401
+  (0.1ms) begin transaction
402
+  (0.0ms) commit transaction
403
+  (0.0ms) begin transaction
404
+  (0.1ms) SAVEPOINT active_record_1
405
+ SQL (3.1ms) INSERT INTO "asyncapi_server_jobs" ("class_name", "params", "callback_url", "secret") VALUES (?, ?, ?, ?) [["class_name", "Runner"], ["params", "{\"some\":\"params\"}"], ["callback_url", "client_job_url"], ["secret", "sekret"]]
406
+  (0.1ms) RELEASE SAVEPOINT active_record_1
407
+ Asyncapi::Server::Job Load (0.1ms) SELECT "asyncapi_server_jobs".* FROM "asyncapi_server_jobs" WHERE "asyncapi_server_jobs"."id" = ? LIMIT 1 [["id", 1]]
408
+  (0.1ms) SAVEPOINT active_record_1
409
+ SQL (0.2ms) UPDATE "asyncapi_server_jobs" SET "status" = ? WHERE "asyncapi_server_jobs"."id" = ? [["status", 1], ["id", 1]]
410
+  (0.0ms) RELEASE SAVEPOINT active_record_1
411
+ Asyncapi::Server::Job Load (0.1ms) SELECT "asyncapi_server_jobs".* FROM "asyncapi_server_jobs" WHERE "asyncapi_server_jobs"."id" = ? LIMIT 1 [["id", 1]]
412
+  (2.7ms) rollback transaction
413
+  (0.1ms) begin transaction
414
+  (0.0ms) commit transaction
415
+  (0.0ms) begin transaction
416
+  (0.0ms) SAVEPOINT active_record_1
417
+ SQL (3.0ms) INSERT INTO "asyncapi_server_jobs" ("class_name", "callback_url", "secret") VALUES (?, ?, ?) [["class_name", "Runner"], ["callback_url", "client_job_url"], ["secret", "sekret"]]
418
+  (0.1ms) RELEASE SAVEPOINT active_record_1
419
+ Asyncapi::Server::Job Load (0.1ms) SELECT "asyncapi_server_jobs".* FROM "asyncapi_server_jobs" WHERE "asyncapi_server_jobs"."id" = ? LIMIT 1 [["id", 1]]
420
+  (0.1ms) SAVEPOINT active_record_1
421
+ SQL (0.1ms) UPDATE "asyncapi_server_jobs" SET "status" = ? WHERE "asyncapi_server_jobs"."id" = ? [["status", 2], ["id", 1]]
422
+  (0.1ms) RELEASE SAVEPOINT active_record_1
423
+ Asyncapi::Server::Job Load (0.0ms) SELECT "asyncapi_server_jobs".* FROM "asyncapi_server_jobs" WHERE "asyncapi_server_jobs"."id" = ? LIMIT 1 [["id", 1]]
424
+  (1.6ms) rollback transaction
425
+  (0.1ms) begin transaction
426
+  (0.0ms) commit transaction
427
+  (0.0ms) begin transaction
428
+  (0.0ms) rollback transaction
429
+  (0.1ms) begin transaction
430
+  (0.0ms) commit transaction
431
+  (0.0ms) begin transaction
432
+  (0.1ms) rollback transaction
433
+  (0.1ms) begin transaction
434
+  (0.0ms) commit transaction
435
+  (0.0ms) begin transaction
436
+  (0.1ms) rollback transaction
437
+  (0.1ms) begin transaction
438
+  (0.0ms) commit transaction
439
+  (0.1ms) begin transaction
440
+  (0.0ms) rollback transaction
441
+  (0.1ms) begin transaction
442
+  (0.1ms) commit transaction
443
+  (0.0ms) begin transaction
444
+  (0.0ms) rollback transaction
445
+  (0.1ms) begin transaction
446
+  (0.0ms) commit transaction
447
+  (0.2ms) begin transaction
448
+  (0.1ms) rollback transaction
449
+  (0.1ms) begin transaction
450
+  (0.0ms) commit transaction
451
+  (0.0ms) begin transaction
452
+  (0.1ms) SAVEPOINT active_record_1
453
+ SQL (5.0ms) INSERT INTO "asyncapi_server_jobs" ("status", "callback_url", "class_name", "params") VALUES (?, ?, ?, ?) [["status", 2], ["callback_url", "http://callback_url.com"], ["class_name", "CreateStorageFacility"], ["params", "{\"param\":\"values\"}"]]
454
+  (0.2ms) RELEASE SAVEPOINT active_record_1
455
+  (2.8ms) rollback transaction
456
+  (0.1ms) begin transaction
457
+  (0.1ms) commit transaction
458
+  (0.1ms) begin transaction
459
+  (0.1ms) rollback transaction
460
+  (0.1ms) begin transaction
461
+  (0.0ms) commit transaction
462
+  (0.0ms) begin transaction
463
+  (0.1ms) SAVEPOINT active_record_1
464
+ SQL (3.8ms) INSERT INTO "asyncapi_server_jobs" DEFAULT VALUES
465
+  (0.1ms) RELEASE SAVEPOINT active_record_1
466
+ Processing by Asyncapi::Server::V1::JobsController#show as JSON
467
+ Parameters: {"id"=>"1"}
468
+ Asyncapi::Server::Job Load (0.1ms) SELECT "asyncapi_server_jobs".* FROM "asyncapi_server_jobs" WHERE "asyncapi_server_jobs"."id" = ? LIMIT 1 [["id", 1]]
469
+ Completed 200 OK in 48ms (Views: 46.9ms | ActiveRecord: 0.1ms)
470
+  (3.3ms) rollback transaction
471
+  (0.1ms) begin transaction
472
+  (0.0ms) commit transaction
473
+  (0.0ms) begin transaction
474
+  (0.0ms) SAVEPOINT active_record_1
475
+ SQL (3.6ms) INSERT INTO "asyncapi_server_jobs" ("secret") VALUES (?) [["secret", "12312"]]
476
+  (0.1ms) RELEASE SAVEPOINT active_record_1
477
+ Processing by Asyncapi::Server::V1::JobsController#destroy as JSON
478
+ Parameters: {"secret"=>"12312", "id"=>"1"}
479
+ Asyncapi::Server::Job Load (0.2ms) SELECT "asyncapi_server_jobs".* FROM "asyncapi_server_jobs" WHERE "asyncapi_server_jobs"."id" = ? AND "asyncapi_server_jobs"."secret" = ? LIMIT 1 [["id", 1], ["secret", "12312"]]
480
+  (0.1ms) SAVEPOINT active_record_1
481
+ SQL (0.2ms) DELETE FROM "asyncapi_server_jobs" WHERE "asyncapi_server_jobs"."id" = ? [["id", 1]]
482
+  (0.1ms) RELEASE SAVEPOINT active_record_1
483
+ Completed 204 No Content in 61ms (ActiveRecord: 0.6ms)
484
+  (2.2ms) rollback transaction
485
+  (0.1ms) begin transaction
486
+  (0.1ms) commit transaction
487
+  (0.0ms) begin transaction
488
+  (0.0ms) SAVEPOINT active_record_1
489
+ SQL (5.2ms) INSERT INTO "asyncapi_server_jobs" ("secret") VALUES (?) [["secret", "12312"]]
490
+  (0.1ms) RELEASE SAVEPOINT active_record_1
491
+ Processing by Asyncapi::Server::V1::JobsController#destroy as JSON
492
+ Parameters: {"secret"=>"12315", "id"=>"1"}
493
+ Asyncapi::Server::Job Load (0.1ms) SELECT "asyncapi_server_jobs".* FROM "asyncapi_server_jobs" WHERE "asyncapi_server_jobs"."id" = ? AND "asyncapi_server_jobs"."secret" = ? LIMIT 1 [["id", 1], ["secret", "12315"]]
494
+ Rendered text template (0.0ms)
495
+ Completed 404 Not Found in 8ms (Views: 6.7ms | ActiveRecord: 0.1ms)
496
+  (1.8ms) rollback transaction
497
+  (0.1ms) begin transaction
498
+  (0.1ms) commit transaction
499
+  (0.0ms) begin transaction
500
+  (0.0ms) SAVEPOINT active_record_1
501
+ SQL (2.9ms) INSERT INTO "asyncapi_server_jobs" DEFAULT VALUES
502
+  (0.2ms) RELEASE SAVEPOINT active_record_1
503
+  (0.1ms) SAVEPOINT active_record_1
504
+ SQL (0.1ms) INSERT INTO "asyncapi_server_jobs" DEFAULT VALUES
505
+  (0.1ms) RELEASE SAVEPOINT active_record_1
506
+ Processing by Asyncapi::Server::V1::JobsController#index as JSON
507
+ Parameters: {"page"=>2, "per_page"=>1}
508
+  (0.1ms) SELECT COUNT(*) FROM "asyncapi_server_jobs"
509
+ Asyncapi::Server::Job Load (0.1ms) SELECT "asyncapi_server_jobs".* FROM "asyncapi_server_jobs" LIMIT 1 OFFSET 1
510
+ Completed 200 OK in 53ms (Views: 43.9ms | ActiveRecord: 0.2ms)
511
+  (2.5ms) rollback transaction
512
+  (0.1ms) begin transaction
513
+  (0.2ms) commit transaction
514
+  (0.1ms) begin transaction
515
+  (0.1ms) rollback transaction
516
+  (0.1ms) begin transaction
517
+  (0.0ms) commit transaction
518
+  (0.0ms) begin transaction
519
+  (0.1ms) rollback transaction
520
+  (0.1ms) begin transaction
521
+  (0.1ms) commit transaction
522
+  (0.0ms) begin transaction
523
+  (0.1ms) rollback transaction
524
+  (0.1ms) begin transaction
525
+  (0.1ms) commit transaction
526
+  (0.1ms) begin transaction
527
+  (0.1ms) rollback transaction
528
+  (4.9ms) DELETE FROM "asyncapi_server_jobs";
529
+  (1.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
530
+  (1.2ms) DELETE FROM sqlite_sequence where name = 'asyncapi_server_jobs';
531
+  (0.1ms) begin transaction
532
+  (0.1ms) commit transaction
533
+  (0.1ms) begin transaction
534
+  (0.1ms) rollback transaction
535
+  (5.0ms) DELETE FROM "asyncapi_server_jobs";
536
+  (1.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
537
+  (1.0ms) DELETE FROM sqlite_sequence where name = 'asyncapi_server_jobs';
538
+  (0.1ms) begin transaction
539
+  (0.1ms) commit transaction
540
+  (0.0ms) begin transaction
541
+ Started POST "/tests" for 127.0.0.1 at 2016-07-21 00:18:43 +0000
542
+ Processing by TestsController#create as HTML
543
+ Parameters: {"job"=>{"callback_url"=>"callback_url", "params"=>"{\"client\":\"params\"}", "secret"=>"secret"}}
544
+ Completed 200 OK in 101ms (Views: 58.0ms | ActiveRecord: 0.0ms)
545
+  (0.1ms) rollback transaction
546
+  (4.8ms) DELETE FROM "asyncapi_server_jobs";
547
+  (1.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
548
+  (1.2ms) DELETE FROM sqlite_sequence where name = 'asyncapi_server_jobs';
549
+  (0.1ms) begin transaction
550
+  (0.1ms) commit transaction
551
+  (0.0ms) begin transaction
552
+  (0.1ms) SAVEPOINT active_record_1
553
+ SQL (2.9ms) INSERT INTO "asyncapi_server_jobs" DEFAULT VALUES
554
+  (0.1ms) RELEASE SAVEPOINT active_record_1
555
+  (0.0ms) SAVEPOINT active_record_1
556
+ SQL (0.1ms) INSERT INTO "asyncapi_server_jobs" DEFAULT VALUES
557
+  (0.0ms) RELEASE SAVEPOINT active_record_1
558
+ Processing by Asyncapi::Server::V1::JobsController#index as JSON
559
+ Parameters: {"page"=>2, "per_page"=>1}
560
+  (0.1ms) SELECT COUNT(*) FROM "asyncapi_server_jobs"
561
+ Asyncapi::Server::Job Load (0.1ms) SELECT "asyncapi_server_jobs".* FROM "asyncapi_server_jobs" LIMIT 1 OFFSET 1
562
+ Completed 200 OK in 55ms (Views: 46.4ms | ActiveRecord: 0.2ms)
563
+  (3.3ms) rollback transaction
564
+  (0.1ms) begin transaction
565
+  (0.0ms) commit transaction
566
+  (0.1ms) begin transaction
567
+  (0.1ms) SAVEPOINT active_record_1
568
+ SQL (3.6ms) INSERT INTO "asyncapi_server_jobs" ("secret") VALUES (?) [["secret", "12312"]]
569
+  (0.1ms) RELEASE SAVEPOINT active_record_1
570
+ Processing by Asyncapi::Server::V1::JobsController#destroy as JSON
571
+ Parameters: {"secret"=>"12312", "id"=>"1"}
572
+ Asyncapi::Server::Job Load (0.1ms) SELECT "asyncapi_server_jobs".* FROM "asyncapi_server_jobs" WHERE "asyncapi_server_jobs"."id" = ? AND "asyncapi_server_jobs"."secret" = ? LIMIT 1 [["id", 1], ["secret", "12312"]]
573
+  (0.0ms) SAVEPOINT active_record_1
574
+ SQL (0.1ms) DELETE FROM "asyncapi_server_jobs" WHERE "asyncapi_server_jobs"."id" = ? [["id", 1]]
575
+  (0.0ms) RELEASE SAVEPOINT active_record_1
576
+ Completed 204 No Content in 101ms (ActiveRecord: 0.4ms)
577
+  (2.9ms) rollback transaction
578
+  (0.1ms) begin transaction
579
+  (0.1ms) commit transaction
580
+  (0.1ms) begin transaction
581
+  (0.1ms) SAVEPOINT active_record_1
582
+ SQL (4.3ms) INSERT INTO "asyncapi_server_jobs" ("secret") VALUES (?) [["secret", "12312"]]
583
+  (0.1ms) RELEASE SAVEPOINT active_record_1
584
+ Processing by Asyncapi::Server::V1::JobsController#destroy as JSON
585
+ Parameters: {"secret"=>"12315", "id"=>"1"}
586
+ Asyncapi::Server::Job Load (0.1ms) SELECT "asyncapi_server_jobs".* FROM "asyncapi_server_jobs" WHERE "asyncapi_server_jobs"."id" = ? AND "asyncapi_server_jobs"."secret" = ? LIMIT 1 [["id", 1], ["secret", "12315"]]
587
+ Rendered text template (0.0ms)
588
+ Completed 404 Not Found in 10ms (Views: 9.1ms | ActiveRecord: 0.1ms)
589
+  (2.9ms) rollback transaction
590
+  (0.1ms) begin transaction
591
+  (0.1ms) commit transaction
592
+  (0.1ms) begin transaction
593
+  (0.1ms) SAVEPOINT active_record_1
594
+ SQL (4.8ms) INSERT INTO "asyncapi_server_jobs" DEFAULT VALUES
595
+  (0.1ms) RELEASE SAVEPOINT active_record_1
596
+ Processing by Asyncapi::Server::V1::JobsController#show as JSON
597
+ Parameters: {"id"=>"1"}
598
+ Asyncapi::Server::Job Load (0.2ms) SELECT "asyncapi_server_jobs".* FROM "asyncapi_server_jobs" WHERE "asyncapi_server_jobs"."id" = ? LIMIT 1 [["id", 1]]
599
+ Completed 200 OK in 109ms (Views: 106.6ms | ActiveRecord: 0.2ms)
600
+  (3.9ms) rollback transaction
601
+  (0.2ms) begin transaction
602
+  (0.1ms) commit transaction
603
+  (0.2ms) begin transaction
604
+  (0.3ms) rollback transaction
605
+  (0.3ms) begin transaction
606
+  (0.3ms) commit transaction
607
+  (0.2ms) begin transaction
608
+  (0.3ms) rollback transaction
609
+  (0.2ms) begin transaction
610
+  (0.3ms) commit transaction
611
+  (0.1ms) begin transaction
612
+  (0.2ms) rollback transaction
613
+  (0.2ms) begin transaction
614
+  (0.2ms) commit transaction
615
+  (0.4ms) begin transaction
616
+  (0.2ms) rollback transaction
617
+  (0.2ms) begin transaction
618
+  (0.2ms) commit transaction
619
+  (0.2ms) begin transaction
620
+  (0.2ms) rollback transaction
621
+  (0.2ms) begin transaction
622
+  (0.1ms) commit transaction
623
+  (0.2ms) begin transaction
624
+  (0.1ms) SAVEPOINT active_record_1
625
+ SQL (5.1ms) INSERT INTO "asyncapi_server_jobs" ("status", "callback_url", "class_name", "params") VALUES (?, ?, ?, ?) [["status", 2], ["callback_url", "http://callback_url.com"], ["class_name", "CreateStorageFacility"], ["params", "{\"param\":\"values\"}"]]
626
+  (0.1ms) RELEASE SAVEPOINT active_record_1
627
+  (2.4ms) rollback transaction
628
+  (0.1ms) begin transaction
629
+  (0.1ms) commit transaction
630
+  (0.1ms) begin transaction
631
+  (0.1ms) rollback transaction
632
+  (0.1ms) begin transaction
633
+  (0.1ms) commit transaction
634
+  (0.1ms) begin transaction
635
+ Started POST "/tests" for 127.0.0.1 at 2016-07-21 00:18:55 +0000
636
+ Processing by TestsController#create as HTML
637
+ Parameters: {"job"=>{"callback_url"=>"callback_url", "params"=>"{\"client\":\"params\"}", "secret"=>"secret"}}
638
+ Completed 200 OK in 61ms (Views: 59.9ms | ActiveRecord: 0.0ms)
639
+  (0.1ms) rollback transaction
640
+  (0.1ms) begin transaction
641
+  (0.0ms) commit transaction
642
+  (0.0ms) begin transaction
643
+  (0.1ms) rollback transaction
644
+  (0.1ms) begin transaction
645
+  (0.1ms) commit transaction
646
+  (0.1ms) begin transaction
647
+  (0.1ms) rollback transaction
648
+  (0.1ms) begin transaction
649
+  (0.1ms) commit transaction
650
+  (0.0ms) begin transaction
651
+  (0.0ms) rollback transaction
652
+  (0.1ms) begin transaction
653
+  (0.1ms) commit transaction
654
+  (0.1ms) begin transaction
655
+  (0.1ms) rollback transaction
656
+  (0.1ms) begin transaction
657
+  (0.0ms) commit transaction
658
+  (0.0ms) begin transaction
659
+  (0.1ms) rollback transaction
660
+  (0.1ms) begin transaction
661
+  (0.0ms) commit transaction
662
+  (0.1ms) begin transaction
663
+  (0.1ms) SAVEPOINT active_record_1
664
+ SQL (4.0ms) INSERT INTO "asyncapi_server_jobs" ("class_name", "params", "callback_url", "secret") VALUES (?, ?, ?, ?) [["class_name", "Runner"], ["params", "{\"some\":\"params\"}"], ["callback_url", "client_job_url"], ["secret", "sekret"]]
665
+  (0.1ms) RELEASE SAVEPOINT active_record_1
666
+ Asyncapi::Server::Job Load (0.1ms) SELECT "asyncapi_server_jobs".* FROM "asyncapi_server_jobs" WHERE "asyncapi_server_jobs"."id" = ? LIMIT 1 [["id", 1]]
667
+  (0.1ms) SAVEPOINT active_record_1
668
+ SQL (0.2ms) UPDATE "asyncapi_server_jobs" SET "status" = ? WHERE "asyncapi_server_jobs"."id" = ? [["status", 1], ["id", 1]]
669
+  (0.1ms) RELEASE SAVEPOINT active_record_1
670
+ Asyncapi::Server::Job Load (0.0ms) SELECT "asyncapi_server_jobs".* FROM "asyncapi_server_jobs" WHERE "asyncapi_server_jobs"."id" = ? LIMIT 1 [["id", 1]]
671
+  (3.2ms) rollback transaction
672
+  (0.1ms) begin transaction
673
+  (0.1ms) commit transaction
674
+  (0.1ms) begin transaction
675
+  (0.1ms) SAVEPOINT active_record_1
676
+ SQL (3.6ms) INSERT INTO "asyncapi_server_jobs" ("class_name", "callback_url", "secret") VALUES (?, ?, ?) [["class_name", "Runner"], ["callback_url", "client_job_url"], ["secret", "sekret"]]
677
+  (0.1ms) RELEASE SAVEPOINT active_record_1
678
+ Asyncapi::Server::Job Load (0.1ms) SELECT "asyncapi_server_jobs".* FROM "asyncapi_server_jobs" WHERE "asyncapi_server_jobs"."id" = ? LIMIT 1 [["id", 1]]
679
+  (0.1ms) SAVEPOINT active_record_1
680
+ SQL (0.1ms) UPDATE "asyncapi_server_jobs" SET "status" = ? WHERE "asyncapi_server_jobs"."id" = ? [["status", 2], ["id", 1]]
681
+  (0.1ms) RELEASE SAVEPOINT active_record_1
682
+ Asyncapi::Server::Job Load (0.1ms) SELECT "asyncapi_server_jobs".* FROM "asyncapi_server_jobs" WHERE "asyncapi_server_jobs"."id" = ? LIMIT 1 [["id", 1]]
683
+  (2.7ms) rollback transaction
684
+  (4.8ms) DELETE FROM "asyncapi_server_jobs";
685
+  (1.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
686
+  (1.4ms) DELETE FROM sqlite_sequence where name = 'asyncapi_server_jobs';
687
+  (0.1ms) begin transaction
688
+  (0.1ms) commit transaction
689
+  (0.0ms) begin transaction
690
+  (0.1ms) rollback transaction
691
+  (0.1ms) begin transaction
692
+  (0.0ms) commit transaction
693
+  (0.0ms) begin transaction
694
+  (0.1ms) rollback transaction
695
+  (0.1ms) begin transaction
696
+  (0.0ms) commit transaction
697
+  (0.0ms) begin transaction
698
+  (0.1ms) rollback transaction
699
+  (0.1ms) begin transaction
700
+  (0.0ms) commit transaction
701
+  (0.0ms) begin transaction
702
+  (0.0ms) rollback transaction
703
+  (0.1ms) begin transaction
704
+  (0.0ms) commit transaction
705
+  (0.0ms) begin transaction
706
+  (0.0ms) rollback transaction
707
+  (0.1ms) begin transaction
708
+  (0.0ms) commit transaction
709
+  (0.0ms) begin transaction
710
+  (0.0ms) SAVEPOINT active_record_1
711
+ SQL (4.1ms) INSERT INTO "asyncapi_server_jobs" ("status", "callback_url", "class_name", "params") VALUES (?, ?, ?, ?) [["status", 2], ["callback_url", "http://callback_url.com"], ["class_name", "CreateStorageFacility"], ["params", "{\"param\":\"values\"}"]]
712
+  (0.1ms) RELEASE SAVEPOINT active_record_1
713
+  (1.9ms) rollback transaction
714
+  (0.1ms) begin transaction
715
+  (0.1ms) commit transaction
716
+  (0.1ms) begin transaction
717
+  (0.0ms) rollback transaction
718
+  (0.1ms) begin transaction
719
+  (0.0ms) commit transaction
720
+  (0.0ms) begin transaction
721
+  (0.1ms) rollback transaction
722
+  (0.1ms) begin transaction
723
+  (0.0ms) commit transaction
724
+  (0.0ms) begin transaction
725
+  (0.1ms) rollback transaction
726
+  (0.1ms) begin transaction
727
+  (0.0ms) commit transaction
728
+  (0.0ms) begin transaction
729
+ Started POST "/tests" for 127.0.0.1 at 2016-07-21 00:25:48 +0000
730
+ Processing by TestsController#create as HTML
731
+ Parameters: {"job"=>{"callback_url"=>"callback_url", "params"=>"{\"client\":\"params\"}", "secret"=>"secret", "expired_at"=>"2016-07-23 00:25:48 UTC"}}
732
+ Unpermitted parameter: expired_at
733
+ Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms)
734
+  (0.1ms) rollback transaction
735
+  (0.1ms) begin transaction
736
+  (0.0ms) commit transaction
737
+  (0.1ms) begin transaction
738
+  (0.1ms) rollback transaction
739
+  (0.1ms) begin transaction
740
+  (0.0ms) commit transaction
741
+  (0.1ms) begin transaction
742
+  (0.1ms) SAVEPOINT active_record_1
743
+ SQL (3.9ms) INSERT INTO "asyncapi_server_jobs" ("class_name", "params", "callback_url", "secret") VALUES (?, ?, ?, ?) [["class_name", "Runner"], ["params", "{\"some\":\"params\"}"], ["callback_url", "client_job_url"], ["secret", "sekret"]]
744
+  (0.1ms) RELEASE SAVEPOINT active_record_1
745
+ Asyncapi::Server::Job Load (0.1ms) SELECT "asyncapi_server_jobs".* FROM "asyncapi_server_jobs" WHERE "asyncapi_server_jobs"."id" = ? LIMIT 1 [["id", 1]]
746
+  (0.2ms) SAVEPOINT active_record_1
747
+ SQL (0.2ms) UPDATE "asyncapi_server_jobs" SET "status" = ? WHERE "asyncapi_server_jobs"."id" = ? [["status", 1], ["id", 1]]
748
+  (0.1ms) RELEASE SAVEPOINT active_record_1
749
+ Asyncapi::Server::Job Load (0.1ms) SELECT "asyncapi_server_jobs".* FROM "asyncapi_server_jobs" WHERE "asyncapi_server_jobs"."id" = ? LIMIT 1 [["id", 1]]
750
+  (2.1ms) rollback transaction
751
+  (0.1ms) begin transaction
752
+  (0.0ms) commit transaction
753
+  (0.0ms) begin transaction
754
+  (0.0ms) SAVEPOINT active_record_1
755
+ SQL (3.4ms) INSERT INTO "asyncapi_server_jobs" ("class_name", "callback_url", "secret") VALUES (?, ?, ?) [["class_name", "Runner"], ["callback_url", "client_job_url"], ["secret", "sekret"]]
756
+  (0.2ms) RELEASE SAVEPOINT active_record_1
757
+ Asyncapi::Server::Job Load (0.1ms) SELECT "asyncapi_server_jobs".* FROM "asyncapi_server_jobs" WHERE "asyncapi_server_jobs"."id" = ? LIMIT 1 [["id", 1]]
758
+  (0.1ms) SAVEPOINT active_record_1
759
+ SQL (0.1ms) UPDATE "asyncapi_server_jobs" SET "status" = ? WHERE "asyncapi_server_jobs"."id" = ? [["status", 2], ["id", 1]]
760
+  (0.0ms) RELEASE SAVEPOINT active_record_1
761
+ Asyncapi::Server::Job Load (0.0ms) SELECT "asyncapi_server_jobs".* FROM "asyncapi_server_jobs" WHERE "asyncapi_server_jobs"."id" = ? LIMIT 1 [["id", 1]]
762
+  (2.9ms) rollback transaction
763
+  (0.1ms) begin transaction
764
+  (0.1ms) commit transaction
765
+  (0.0ms) begin transaction
766
+  (0.0ms) rollback transaction
767
+  (0.1ms) begin transaction
768
+  (0.0ms) commit transaction
769
+  (0.0ms) begin transaction
770
+  (0.0ms) rollback transaction
771
+  (0.1ms) begin transaction
772
+  (0.0ms) commit transaction
773
+  (0.0ms) begin transaction
774
+  (0.0ms) SAVEPOINT active_record_1
775
+ SQL (3.2ms) INSERT INTO "asyncapi_server_jobs" DEFAULT VALUES
776
+  (0.1ms) RELEASE SAVEPOINT active_record_1
777
+ Processing by Asyncapi::Server::V1::JobsController#show as JSON
778
+ Parameters: {"id"=>"1"}
779
+ Asyncapi::Server::Job Load (0.1ms) SELECT "asyncapi_server_jobs".* FROM "asyncapi_server_jobs" WHERE "asyncapi_server_jobs"."id" = ? LIMIT 1 [["id", 1]]
780
+ Completed 200 OK in 44ms (Views: 42.4ms | ActiveRecord: 0.1ms)
781
+  (3.1ms) rollback transaction
782
+  (0.1ms) begin transaction
783
+  (0.0ms) commit transaction
784
+  (0.0ms) begin transaction
785
+  (0.0ms) SAVEPOINT active_record_1
786
+ SQL (3.1ms) INSERT INTO "asyncapi_server_jobs" ("secret") VALUES (?) [["secret", "12312"]]
787
+  (0.1ms) RELEASE SAVEPOINT active_record_1
788
+ Processing by Asyncapi::Server::V1::JobsController#destroy as JSON
789
+ Parameters: {"secret"=>"12312", "id"=>"1"}
790
+ Asyncapi::Server::Job Load (0.2ms) SELECT "asyncapi_server_jobs".* FROM "asyncapi_server_jobs" WHERE "asyncapi_server_jobs"."id" = ? AND "asyncapi_server_jobs"."secret" = ? LIMIT 1 [["id", 1], ["secret", "12312"]]
791
+  (0.1ms) SAVEPOINT active_record_1
792
+ SQL (0.2ms) DELETE FROM "asyncapi_server_jobs" WHERE "asyncapi_server_jobs"."id" = ? [["id", 1]]
793
+  (0.1ms) RELEASE SAVEPOINT active_record_1
794
+ Completed 204 No Content in 61ms (ActiveRecord: 0.6ms)
795
+  (3.3ms) rollback transaction
796
+  (0.1ms) begin transaction
797
+  (0.1ms) commit transaction
798
+  (0.1ms) begin transaction
799
+  (0.1ms) SAVEPOINT active_record_1
800
+ SQL (4.4ms) INSERT INTO "asyncapi_server_jobs" ("secret") VALUES (?) [["secret", "12312"]]
801
+  (0.1ms) RELEASE SAVEPOINT active_record_1
802
+ Processing by Asyncapi::Server::V1::JobsController#destroy as JSON
803
+ Parameters: {"secret"=>"12315", "id"=>"1"}
804
+ Asyncapi::Server::Job Load (0.1ms) SELECT "asyncapi_server_jobs".* FROM "asyncapi_server_jobs" WHERE "asyncapi_server_jobs"."id" = ? AND "asyncapi_server_jobs"."secret" = ? LIMIT 1 [["id", 1], ["secret", "12315"]]
805
+ Rendered text template (0.0ms)
806
+ Completed 404 Not Found in 8ms (Views: 7.3ms | ActiveRecord: 0.1ms)
807
+  (1.9ms) rollback transaction
808
+  (0.1ms) begin transaction
809
+  (0.0ms) commit transaction
810
+  (0.0ms) begin transaction
811
+  (0.1ms) SAVEPOINT active_record_1
812
+ SQL (3.5ms) INSERT INTO "asyncapi_server_jobs" DEFAULT VALUES
813
+  (0.1ms) RELEASE SAVEPOINT active_record_1
814
+  (0.1ms) SAVEPOINT active_record_1
815
+ SQL (0.1ms) INSERT INTO "asyncapi_server_jobs" DEFAULT VALUES
816
+  (0.0ms) RELEASE SAVEPOINT active_record_1
817
+ Processing by Asyncapi::Server::V1::JobsController#index as JSON
818
+ Parameters: {"page"=>2, "per_page"=>1}
819
+  (0.1ms) SELECT COUNT(*) FROM "asyncapi_server_jobs"
820
+ Asyncapi::Server::Job Load (0.1ms) SELECT "asyncapi_server_jobs".* FROM "asyncapi_server_jobs" LIMIT 1 OFFSET 1
821
+ Completed 200 OK in 42ms (Views: 33.2ms | ActiveRecord: 0.2ms)
822
+  (3.2ms) rollback transaction
823
+ ActiveRecord::SchemaMigration Load (0.9ms) SELECT "schema_migrations".* FROM "schema_migrations"
824
+ Migrating to AddExpiredAtToAsyncapiServerJobs (20160721002627)
825
+  (0.1ms) begin transaction
826
+  (3.0ms) ALTER TABLE "asyncapi_server_jobs" ADD "expired_at" datetime
827
+ SQL (0.6ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20160721002627"]]
828
+  (2.3ms) commit transaction
829
+ ActiveRecord::SchemaMigration Load (0.9ms) SELECT "schema_migrations".* FROM "schema_migrations"
830
+  (4.8ms) DELETE FROM "asyncapi_server_jobs";
831
+  (1.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
832
+  (1.0ms) DELETE FROM sqlite_sequence where name = 'asyncapi_server_jobs';
833
+  (0.1ms) begin transaction
834
+  (0.0ms) commit transaction
835
+  (0.0ms) begin transaction
836
+ Started POST "/tests" for 127.0.0.1 at 2016-07-21 00:27:04 +0000
837
+ Processing by TestsController#create as HTML
838
+ Parameters: {"job"=>{"callback_url"=>"callback_url", "params"=>"{\"client\":\"params\"}", "secret"=>"secret", "expired_at"=>"2016-07-23 00:27:04 UTC"}}
839
+ Unpermitted parameter: expired_at
840
+ Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms)
841
+  (0.1ms) rollback transaction
842
+  (0.3ms) begin transaction
843
+  (0.1ms) commit transaction
844
+  (0.1ms) begin transaction
845
+  (0.1ms) rollback transaction
846
+  (0.1ms) begin transaction
847
+  (0.1ms) commit transaction
848
+  (0.0ms) begin transaction
849
+  (0.1ms) SAVEPOINT active_record_1
850
+ SQL (2.9ms) INSERT INTO "asyncapi_server_jobs" ("class_name", "params", "callback_url", "secret") VALUES (?, ?, ?, ?) [["class_name", "Runner"], ["params", "{\"some\":\"params\"}"], ["callback_url", "client_job_url"], ["secret", "sekret"]]
851
+  (0.1ms) RELEASE SAVEPOINT active_record_1
852
+ Asyncapi::Server::Job Load (0.2ms) SELECT "asyncapi_server_jobs".* FROM "asyncapi_server_jobs" WHERE "asyncapi_server_jobs"."id" = ? LIMIT 1 [["id", 1]]
853
+  (0.1ms) SAVEPOINT active_record_1
854
+ SQL (0.2ms) UPDATE "asyncapi_server_jobs" SET "status" = ? WHERE "asyncapi_server_jobs"."id" = ? [["status", 1], ["id", 1]]
855
+  (0.0ms) RELEASE SAVEPOINT active_record_1
856
+ Asyncapi::Server::Job Load (0.1ms) SELECT "asyncapi_server_jobs".* FROM "asyncapi_server_jobs" WHERE "asyncapi_server_jobs"."id" = ? LIMIT 1 [["id", 1]]
857
+  (2.3ms) rollback transaction
858
+  (0.1ms) begin transaction
859
+  (0.1ms) commit transaction
860
+  (0.0ms) begin transaction
861
+  (0.1ms) SAVEPOINT active_record_1
862
+ SQL (3.5ms) INSERT INTO "asyncapi_server_jobs" ("class_name", "callback_url", "secret") VALUES (?, ?, ?) [["class_name", "Runner"], ["callback_url", "client_job_url"], ["secret", "sekret"]]
863
+  (0.1ms) RELEASE SAVEPOINT active_record_1
864
+ Asyncapi::Server::Job Load (0.1ms) SELECT "asyncapi_server_jobs".* FROM "asyncapi_server_jobs" WHERE "asyncapi_server_jobs"."id" = ? LIMIT 1 [["id", 1]]
865
+  (0.1ms) SAVEPOINT active_record_1
866
+ SQL (0.1ms) UPDATE "asyncapi_server_jobs" SET "status" = ? WHERE "asyncapi_server_jobs"."id" = ? [["status", 2], ["id", 1]]
867
+  (0.1ms) RELEASE SAVEPOINT active_record_1
868
+ Asyncapi::Server::Job Load (0.0ms) SELECT "asyncapi_server_jobs".* FROM "asyncapi_server_jobs" WHERE "asyncapi_server_jobs"."id" = ? LIMIT 1 [["id", 1]]
869
+  (2.2ms) rollback transaction
870
+  (0.1ms) begin transaction
871
+  (0.0ms) commit transaction
872
+  (0.0ms) begin transaction
873
+  (0.0ms) rollback transaction
874
+  (0.1ms) begin transaction
875
+  (0.0ms) commit transaction
876
+  (0.0ms) begin transaction
877
+  (0.0ms) rollback transaction
878
+  (0.1ms) begin transaction
879
+  (0.0ms) commit transaction
880
+  (0.0ms) begin transaction
881
+  (0.0ms) SAVEPOINT active_record_1
882
+ SQL (4.1ms) INSERT INTO "asyncapi_server_jobs" DEFAULT VALUES
883
+  (0.1ms) RELEASE SAVEPOINT active_record_1
884
+  (0.1ms) SAVEPOINT active_record_1
885
+ SQL (0.1ms) INSERT INTO "asyncapi_server_jobs" DEFAULT VALUES
886
+  (0.1ms) RELEASE SAVEPOINT active_record_1
887
+ Processing by Asyncapi::Server::V1::JobsController#index as JSON
888
+ Parameters: {"page"=>2, "per_page"=>1}
889
+  (0.1ms) SELECT COUNT(*) FROM "asyncapi_server_jobs"
890
+ Asyncapi::Server::Job Load (0.1ms) SELECT "asyncapi_server_jobs".* FROM "asyncapi_server_jobs" LIMIT 1 OFFSET 1
891
+ Completed 200 OK in 46ms (Views: 36.2ms | ActiveRecord: 0.2ms)
892
+  (3.3ms) rollback transaction
893
+  (0.1ms) begin transaction
894
+  (0.1ms) commit transaction
895
+  (0.0ms) begin transaction
896
+  (0.0ms) SAVEPOINT active_record_1
897
+ SQL (3.9ms) INSERT INTO "asyncapi_server_jobs" ("secret") VALUES (?) [["secret", "12312"]]
898
+  (0.1ms) RELEASE SAVEPOINT active_record_1
899
+ Processing by Asyncapi::Server::V1::JobsController#destroy as JSON
900
+ Parameters: {"secret"=>"12312", "id"=>"1"}
901
+ Asyncapi::Server::Job Load (0.2ms) SELECT "asyncapi_server_jobs".* FROM "asyncapi_server_jobs" WHERE "asyncapi_server_jobs"."id" = ? AND "asyncapi_server_jobs"."secret" = ? LIMIT 1 [["id", 1], ["secret", "12312"]]
902
+  (0.1ms) SAVEPOINT active_record_1
903
+ SQL (0.2ms) DELETE FROM "asyncapi_server_jobs" WHERE "asyncapi_server_jobs"."id" = ? [["id", 1]]
904
+  (0.1ms) RELEASE SAVEPOINT active_record_1
905
+ Completed 204 No Content in 63ms (ActiveRecord: 0.5ms)
906
+  (2.0ms) rollback transaction
907
+  (0.1ms) begin transaction
908
+  (0.0ms) commit transaction
909
+  (0.0ms) begin transaction
910
+  (0.0ms) SAVEPOINT active_record_1
911
+ SQL (2.9ms) INSERT INTO "asyncapi_server_jobs" ("secret") VALUES (?) [["secret", "12312"]]
912
+  (0.1ms) RELEASE SAVEPOINT active_record_1
913
+ Processing by Asyncapi::Server::V1::JobsController#destroy as JSON
914
+ Parameters: {"secret"=>"12315", "id"=>"1"}
915
+ Asyncapi::Server::Job Load (0.1ms) SELECT "asyncapi_server_jobs".* FROM "asyncapi_server_jobs" WHERE "asyncapi_server_jobs"."id" = ? AND "asyncapi_server_jobs"."secret" = ? LIMIT 1 [["id", 1], ["secret", "12315"]]
916
+ Rendered text template (0.0ms)
917
+ Completed 404 Not Found in 8ms (Views: 7.3ms | ActiveRecord: 0.1ms)
918
+  (2.6ms) rollback transaction
919
+  (0.1ms) begin transaction
920
+  (0.0ms) commit transaction
921
+  (0.1ms) begin transaction
922
+  (0.1ms) SAVEPOINT active_record_1
923
+ SQL (3.4ms) INSERT INTO "asyncapi_server_jobs" DEFAULT VALUES
924
+  (0.1ms) RELEASE SAVEPOINT active_record_1
925
+ Processing by Asyncapi::Server::V1::JobsController#show as JSON
926
+ Parameters: {"id"=>"1"}
927
+ Asyncapi::Server::Job Load (0.1ms) SELECT "asyncapi_server_jobs".* FROM "asyncapi_server_jobs" WHERE "asyncapi_server_jobs"."id" = ? LIMIT 1 [["id", 1]]
928
+ Completed 200 OK in 46ms (Views: 45.5ms | ActiveRecord: 0.1ms)
929
+  (3.0ms) rollback transaction
930
+  (0.1ms) begin transaction
931
+  (0.0ms) commit transaction
932
+  (0.1ms) begin transaction
933
+  (0.1ms) rollback transaction
934
+  (0.1ms) begin transaction
935
+  (0.0ms) commit transaction
936
+  (0.0ms) begin transaction
937
+  (0.1ms) rollback transaction
938
+  (0.1ms) begin transaction
939
+  (0.0ms) commit transaction
940
+  (0.0ms) begin transaction
941
+  (0.1ms) rollback transaction
942
+  (0.1ms) begin transaction
943
+  (0.1ms) commit transaction
944
+  (0.0ms) begin transaction
945
+  (0.0ms) SAVEPOINT active_record_1
946
+ SQL (3.7ms) INSERT INTO "asyncapi_server_jobs" ("status", "callback_url", "class_name", "params") VALUES (?, ?, ?, ?) [["status", 2], ["callback_url", "http://callback_url.com"], ["class_name", "CreateStorageFacility"], ["params", "{\"param\":\"values\"}"]]
947
+  (0.1ms) RELEASE SAVEPOINT active_record_1
948
+  (1.7ms) rollback transaction
949
+  (0.1ms) begin transaction
950
+  (0.1ms) commit transaction
951
+  (0.1ms) begin transaction
952
+  (0.1ms) rollback transaction
953
+  (0.2ms) begin transaction
954
+  (0.1ms) commit transaction
955
+  (0.1ms) begin transaction
956
+  (0.2ms) rollback transaction
957
+  (0.2ms) begin transaction
958
+  (0.1ms) commit transaction
959
+  (0.0ms) begin transaction
960
+  (0.1ms) rollback transaction
961
+  (0.1ms) begin transaction
962
+  (0.1ms) commit transaction
963
+  (0.0ms) begin transaction
964
+  (0.1ms) rollback transaction
965
+  (0.1ms) begin transaction
966
+  (0.1ms) commit transaction
967
+  (0.1ms) begin transaction
968
+  (0.1ms) rollback transaction
969
+  (6.4ms) DELETE FROM "asyncapi_server_jobs";
970
+  (1.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
971
+  (1.3ms) DELETE FROM sqlite_sequence where name = 'asyncapi_server_jobs';
972
+  (0.1ms) begin transaction
973
+  (0.0ms) commit transaction
974
+  (0.0ms) begin transaction
975
+  (0.1ms) rollback transaction
976
+  (0.1ms) begin transaction
977
+  (0.1ms) commit transaction
978
+  (0.0ms) begin transaction
979
+  (0.1ms) SAVEPOINT active_record_1
980
+ SQL (4.9ms) INSERT INTO "asyncapi_server_jobs" ("class_name", "params", "callback_url", "secret") VALUES (?, ?, ?, ?) [["class_name", "Runner"], ["params", "{\"some\":\"params\"}"], ["callback_url", "client_job_url"], ["secret", "sekret"]]
981
+  (0.1ms) RELEASE SAVEPOINT active_record_1
982
+ Asyncapi::Server::Job Load (0.1ms) SELECT "asyncapi_server_jobs".* FROM "asyncapi_server_jobs" WHERE "asyncapi_server_jobs"."id" = ? LIMIT 1 [["id", 1]]
983
+  (0.1ms) SAVEPOINT active_record_1
984
+ SQL (0.2ms) UPDATE "asyncapi_server_jobs" SET "status" = ? WHERE "asyncapi_server_jobs"."id" = ? [["status", 1], ["id", 1]]
985
+  (0.1ms) RELEASE SAVEPOINT active_record_1
986
+ Asyncapi::Server::Job Load (0.1ms) SELECT "asyncapi_server_jobs".* FROM "asyncapi_server_jobs" WHERE "asyncapi_server_jobs"."id" = ? LIMIT 1 [["id", 1]]
987
+  (2.9ms) rollback transaction
988
+  (0.1ms) begin transaction
989
+  (0.0ms) commit transaction
990
+  (0.0ms) begin transaction
991
+  (0.0ms) SAVEPOINT active_record_1
992
+ SQL (4.4ms) INSERT INTO "asyncapi_server_jobs" ("class_name", "callback_url", "secret") VALUES (?, ?, ?) [["class_name", "Runner"], ["callback_url", "client_job_url"], ["secret", "sekret"]]
993
+  (0.1ms) RELEASE SAVEPOINT active_record_1
994
+ Asyncapi::Server::Job Load (0.1ms) SELECT "asyncapi_server_jobs".* FROM "asyncapi_server_jobs" WHERE "asyncapi_server_jobs"."id" = ? LIMIT 1 [["id", 1]]
995
+  (0.1ms) SAVEPOINT active_record_1
996
+ SQL (0.1ms) UPDATE "asyncapi_server_jobs" SET "status" = ? WHERE "asyncapi_server_jobs"."id" = ? [["status", 2], ["id", 1]]
997
+  (0.0ms) RELEASE SAVEPOINT active_record_1
998
+ Asyncapi::Server::Job Load (0.0ms) SELECT "asyncapi_server_jobs".* FROM "asyncapi_server_jobs" WHERE "asyncapi_server_jobs"."id" = ? LIMIT 1 [["id", 1]]
999
+  (2.6ms) rollback transaction
1000
+  (0.1ms) begin transaction
1001
+  (0.1ms) commit transaction
1002
+  (0.0ms) begin transaction
1003
+  (0.1ms) rollback transaction
1004
+  (0.1ms) begin transaction
1005
+  (0.1ms) commit transaction
1006
+  (0.0ms) begin transaction
1007
+  (0.1ms) rollback transaction
1008
+  (0.1ms) begin transaction
1009
+  (0.0ms) commit transaction
1010
+  (0.0ms) begin transaction
1011
+  (0.0ms) rollback transaction
1012
+  (0.1ms) begin transaction
1013
+  (0.0ms) commit transaction
1014
+  (0.0ms) begin transaction
1015
+  (0.1ms) rollback transaction
1016
+  (0.1ms) begin transaction
1017
+  (0.1ms) commit transaction
1018
+  (0.0ms) begin transaction
1019
+  (0.1ms) rollback transaction
1020
+  (0.1ms) begin transaction
1021
+  (0.0ms) commit transaction
1022
+  (0.0ms) begin transaction
1023
+  (0.1ms) rollback transaction
1024
+  (0.1ms) begin transaction
1025
+  (0.1ms) commit transaction
1026
+  (0.1ms) begin transaction
1027
+  (0.1ms) rollback transaction
1028
+  (0.1ms) begin transaction
1029
+  (0.0ms) commit transaction
1030
+  (0.0ms) begin transaction
1031
+  (0.1ms) rollback transaction
1032
+  (0.1ms) begin transaction
1033
+  (0.1ms) commit transaction
1034
+  (0.1ms) begin transaction
1035
+  (0.1ms) SAVEPOINT active_record_1
1036
+ SQL (5.7ms) INSERT INTO "asyncapi_server_jobs" ("status", "callback_url", "class_name", "params") VALUES (?, ?, ?, ?) [["status", 2], ["callback_url", "http://callback_url.com"], ["class_name", "CreateStorageFacility"], ["params", "{\"param\":\"values\"}"]]
1037
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1038
+  (2.3ms) rollback transaction
1039
+  (0.1ms) begin transaction
1040
+  (0.0ms) commit transaction
1041
+  (0.0ms) begin transaction
1042
+ Started POST "/tests" for 127.0.0.1 at 2016-07-21 00:27:42 +0000
1043
+ Processing by TestsController#create as HTML
1044
+ Parameters: {"job"=>{"callback_url"=>"callback_url", "params"=>"{\"client\":\"params\"}", "secret"=>"secret", "expired_at"=>"2016-07-23 00:27:42 UTC"}}
1045
+ Completed 500 Internal Server Error in 2ms (ActiveRecord: 0.0ms)
1046
+  (0.1ms) rollback transaction
1047
+  (0.1ms) begin transaction
1048
+  (0.1ms) commit transaction
1049
+  (0.1ms) begin transaction
1050
+  (0.1ms) SAVEPOINT active_record_1
1051
+ SQL (4.8ms) INSERT INTO "asyncapi_server_jobs" ("secret") VALUES (?) [["secret", "12312"]]
1052
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1053
+ Processing by Asyncapi::Server::V1::JobsController#destroy as JSON
1054
+ Parameters: {"secret"=>"12312", "id"=>"1"}
1055
+ Asyncapi::Server::Job Load (0.1ms) SELECT "asyncapi_server_jobs".* FROM "asyncapi_server_jobs" WHERE "asyncapi_server_jobs"."id" = ? AND "asyncapi_server_jobs"."secret" = ? LIMIT 1 [["id", 1], ["secret", "12312"]]
1056
+  (0.0ms) SAVEPOINT active_record_1
1057
+ SQL (0.2ms) DELETE FROM "asyncapi_server_jobs" WHERE "asyncapi_server_jobs"."id" = ? [["id", 1]]
1058
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1059
+ Completed 204 No Content in 85ms (ActiveRecord: 0.4ms)
1060
+  (2.5ms) rollback transaction
1061
+  (0.1ms) begin transaction
1062
+  (0.0ms) commit transaction
1063
+  (0.0ms) begin transaction
1064
+  (0.1ms) SAVEPOINT active_record_1
1065
+ SQL (3.9ms) INSERT INTO "asyncapi_server_jobs" ("secret") VALUES (?) [["secret", "12312"]]
1066
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1067
+ Processing by Asyncapi::Server::V1::JobsController#destroy as JSON
1068
+ Parameters: {"secret"=>"12315", "id"=>"1"}
1069
+ Asyncapi::Server::Job Load (0.1ms) SELECT "asyncapi_server_jobs".* FROM "asyncapi_server_jobs" WHERE "asyncapi_server_jobs"."id" = ? AND "asyncapi_server_jobs"."secret" = ? LIMIT 1 [["id", 1], ["secret", "12315"]]
1070
+ Rendered text template (0.0ms)
1071
+ Completed 404 Not Found in 12ms (Views: 11.3ms | ActiveRecord: 0.1ms)
1072
+  (2.4ms) rollback transaction
1073
+  (0.1ms) begin transaction
1074
+  (0.0ms) commit transaction
1075
+  (0.0ms) begin transaction
1076
+  (0.1ms) SAVEPOINT active_record_1
1077
+ SQL (4.9ms) INSERT INTO "asyncapi_server_jobs" DEFAULT VALUES
1078
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1079
+ Processing by Asyncapi::Server::V1::JobsController#show as JSON
1080
+ Parameters: {"id"=>"1"}
1081
+ Asyncapi::Server::Job Load (0.1ms) SELECT "asyncapi_server_jobs".* FROM "asyncapi_server_jobs" WHERE "asyncapi_server_jobs"."id" = ? LIMIT 1 [["id", 1]]
1082
+ Completed 200 OK in 63ms (Views: 62.2ms | ActiveRecord: 0.1ms)
1083
+  (3.6ms) rollback transaction
1084
+  (0.1ms) begin transaction
1085
+  (0.1ms) commit transaction
1086
+  (0.1ms) begin transaction
1087
+  (0.1ms) SAVEPOINT active_record_1
1088
+ SQL (5.8ms) INSERT INTO "asyncapi_server_jobs" DEFAULT VALUES
1089
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1090
+  (0.0ms) SAVEPOINT active_record_1
1091
+ SQL (0.1ms) INSERT INTO "asyncapi_server_jobs" DEFAULT VALUES
1092
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1093
+ Processing by Asyncapi::Server::V1::JobsController#index as JSON
1094
+ Parameters: {"page"=>2, "per_page"=>1}
1095
+  (0.1ms) SELECT COUNT(*) FROM "asyncapi_server_jobs"
1096
+ Asyncapi::Server::Job Load (0.1ms) SELECT "asyncapi_server_jobs".* FROM "asyncapi_server_jobs" LIMIT 1 OFFSET 1
1097
+ Completed 200 OK in 59ms (Views: 47.0ms | ActiveRecord: 0.2ms)
1098
+  (4.2ms) rollback transaction
1099
+  (0.2ms) begin transaction
1100
+  (0.1ms) commit transaction
1101
+  (0.1ms) begin transaction
1102
+  (0.0ms) rollback transaction
1103
+  (0.1ms) begin transaction
1104
+  (0.1ms) commit transaction
1105
+  (0.0ms) begin transaction
1106
+  (0.0ms) rollback transaction
1107
+  (4.7ms) DELETE FROM "asyncapi_server_jobs";
1108
+  (1.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
1109
+  (1.0ms) DELETE FROM sqlite_sequence where name = 'asyncapi_server_jobs';
1110
+  (0.1ms) begin transaction
1111
+  (0.0ms) commit transaction
1112
+  (0.0ms) begin transaction
1113
+  (0.1ms) SAVEPOINT active_record_1
1114
+ SQL (3.9ms) INSERT INTO "asyncapi_server_jobs" ("secret") VALUES (?) [["secret", "12312"]]
1115
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1116
+ Processing by Asyncapi::Server::V1::JobsController#destroy as JSON
1117
+ Parameters: {"secret"=>"12312", "id"=>"1"}
1118
+ Asyncapi::Server::Job Load (0.2ms) SELECT "asyncapi_server_jobs".* FROM "asyncapi_server_jobs" WHERE "asyncapi_server_jobs"."id" = ? AND "asyncapi_server_jobs"."secret" = ? LIMIT 1 [["id", 1], ["secret", "12312"]]
1119
+  (0.1ms) SAVEPOINT active_record_1
1120
+ SQL (0.2ms) DELETE FROM "asyncapi_server_jobs" WHERE "asyncapi_server_jobs"."id" = ? [["id", 1]]
1121
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1122
+ Completed 204 No Content in 89ms (ActiveRecord: 0.5ms)
1123
+  (2.3ms) rollback transaction
1124
+  (0.2ms) begin transaction
1125
+  (0.1ms) commit transaction
1126
+  (0.1ms) begin transaction
1127
+  (0.1ms) SAVEPOINT active_record_1
1128
+ SQL (4.5ms) INSERT INTO "asyncapi_server_jobs" ("secret") VALUES (?) [["secret", "12312"]]
1129
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1130
+ Processing by Asyncapi::Server::V1::JobsController#destroy as JSON
1131
+ Parameters: {"secret"=>"12315", "id"=>"1"}
1132
+ Asyncapi::Server::Job Load (0.1ms) SELECT "asyncapi_server_jobs".* FROM "asyncapi_server_jobs" WHERE "asyncapi_server_jobs"."id" = ? AND "asyncapi_server_jobs"."secret" = ? LIMIT 1 [["id", 1], ["secret", "12315"]]
1133
+ Rendered text template (0.0ms)
1134
+ Completed 404 Not Found in 8ms (Views: 7.4ms | ActiveRecord: 0.1ms)
1135
+  (1.7ms) rollback transaction
1136
+  (0.1ms) begin transaction
1137
+  (0.0ms) commit transaction
1138
+  (0.1ms) begin transaction
1139
+  (0.1ms) SAVEPOINT active_record_1
1140
+ SQL (3.0ms) INSERT INTO "asyncapi_server_jobs" DEFAULT VALUES
1141
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1142
+  (0.1ms) SAVEPOINT active_record_1
1143
+ SQL (0.1ms) INSERT INTO "asyncapi_server_jobs" DEFAULT VALUES
1144
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1145
+ Processing by Asyncapi::Server::V1::JobsController#index as JSON
1146
+ Parameters: {"page"=>2, "per_page"=>1}
1147
+  (0.3ms) SELECT COUNT(*) FROM "asyncapi_server_jobs"
1148
+ Asyncapi::Server::Job Load (0.1ms) SELECT "asyncapi_server_jobs".* FROM "asyncapi_server_jobs" LIMIT 1 OFFSET 1
1149
+ Completed 200 OK in 49ms (Views: 40.1ms | ActiveRecord: 0.4ms)
1150
+  (3.4ms) rollback transaction
1151
+  (0.1ms) begin transaction
1152
+  (0.1ms) commit transaction
1153
+  (0.0ms) begin transaction
1154
+  (0.1ms) SAVEPOINT active_record_1
1155
+ SQL (3.7ms) INSERT INTO "asyncapi_server_jobs" DEFAULT VALUES
1156
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1157
+ Processing by Asyncapi::Server::V1::JobsController#show as JSON
1158
+ Parameters: {"id"=>"1"}
1159
+ Asyncapi::Server::Job Load (0.1ms) SELECT "asyncapi_server_jobs".* FROM "asyncapi_server_jobs" WHERE "asyncapi_server_jobs"."id" = ? LIMIT 1 [["id", 1]]
1160
+ Completed 200 OK in 44ms (Views: 42.9ms | ActiveRecord: 0.1ms)
1161
+  (3.0ms) rollback transaction
1162
+  (0.1ms) begin transaction
1163
+  (0.0ms) commit transaction
1164
+  (0.1ms) begin transaction
1165
+ Started POST "/tests" for 127.0.0.1 at 2016-07-21 00:28:03 +0000
1166
+ Processing by TestsController#create as HTML
1167
+ Parameters: {"job"=>{"callback_url"=>"callback_url", "params"=>"{\"client\":\"params\"}", "secret"=>"secret", "expired_at"=>"2016-07-23 00:28:03 UTC"}}
1168
+ Completed 200 OK in 55ms (Views: 54.1ms | ActiveRecord: 0.0ms)
1169
+  (0.1ms) rollback transaction
1170
+  (0.1ms) begin transaction
1171
+  (0.0ms) commit transaction
1172
+  (0.1ms) begin transaction
1173
+  (0.0ms) rollback transaction
1174
+  (0.1ms) begin transaction
1175
+  (0.0ms) commit transaction
1176
+  (0.1ms) begin transaction
1177
+  (0.1ms) rollback transaction
1178
+  (0.1ms) begin transaction
1179
+  (0.1ms) commit transaction
1180
+  (0.1ms) begin transaction
1181
+  (0.0ms) rollback transaction
1182
+  (0.1ms) begin transaction
1183
+  (0.1ms) commit transaction
1184
+  (0.0ms) begin transaction
1185
+  (0.1ms) rollback transaction
1186
+  (0.2ms) begin transaction
1187
+  (0.1ms) commit transaction
1188
+  (0.0ms) begin transaction
1189
+  (0.1ms) rollback transaction
1190
+  (0.1ms) begin transaction
1191
+  (0.1ms) commit transaction
1192
+  (0.1ms) begin transaction
1193
+  (0.1ms) rollback transaction
1194
+  (0.1ms) begin transaction
1195
+  (0.1ms) commit transaction
1196
+  (0.1ms) begin transaction
1197
+  (0.1ms) rollback transaction
1198
+  (0.1ms) begin transaction
1199
+  (0.0ms) commit transaction
1200
+  (0.0ms) begin transaction
1201
+  (0.1ms) SAVEPOINT active_record_1
1202
+ SQL (4.2ms) INSERT INTO "asyncapi_server_jobs" ("status", "callback_url", "class_name", "params") VALUES (?, ?, ?, ?) [["status", 2], ["callback_url", "http://callback_url.com"], ["class_name", "CreateStorageFacility"], ["params", "{\"param\":\"values\"}"]]
1203
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1204
+  (2.3ms) rollback transaction
1205
+  (0.1ms) begin transaction
1206
+  (0.0ms) commit transaction
1207
+  (0.1ms) begin transaction
1208
+  (0.1ms) rollback transaction
1209
+  (0.1ms) begin transaction
1210
+  (0.0ms) commit transaction
1211
+  (0.0ms) begin transaction
1212
+  (0.0ms) rollback transaction
1213
+  (0.1ms) begin transaction
1214
+  (0.1ms) commit transaction
1215
+  (0.1ms) begin transaction
1216
+  (0.1ms) rollback transaction
1217
+  (0.1ms) begin transaction
1218
+  (0.0ms) commit transaction
1219
+  (0.0ms) begin transaction
1220
+  (0.1ms) rollback transaction
1221
+  (0.1ms) begin transaction
1222
+  (0.0ms) commit transaction
1223
+  (0.0ms) begin transaction
1224
+  (0.0ms) SAVEPOINT active_record_1
1225
+ SQL (3.9ms) INSERT INTO "asyncapi_server_jobs" ("class_name", "params", "callback_url", "secret") VALUES (?, ?, ?, ?) [["class_name", "Runner"], ["params", "{\"some\":\"params\"}"], ["callback_url", "client_job_url"], ["secret", "sekret"]]
1226
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1227
+ Asyncapi::Server::Job Load (0.1ms) SELECT "asyncapi_server_jobs".* FROM "asyncapi_server_jobs" WHERE "asyncapi_server_jobs"."id" = ? LIMIT 1 [["id", 1]]
1228
+  (0.1ms) SAVEPOINT active_record_1
1229
+ SQL (0.2ms) UPDATE "asyncapi_server_jobs" SET "status" = ? WHERE "asyncapi_server_jobs"."id" = ? [["status", 1], ["id", 1]]
1230
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1231
+ Asyncapi::Server::Job Load (0.1ms) SELECT "asyncapi_server_jobs".* FROM "asyncapi_server_jobs" WHERE "asyncapi_server_jobs"."id" = ? LIMIT 1 [["id", 1]]
1232
+  (2.5ms) rollback transaction
1233
+  (0.2ms) begin transaction
1234
+  (0.1ms) commit transaction
1235
+  (0.1ms) begin transaction
1236
+  (0.1ms) SAVEPOINT active_record_1
1237
+ SQL (3.6ms) INSERT INTO "asyncapi_server_jobs" ("class_name", "callback_url", "secret") VALUES (?, ?, ?) [["class_name", "Runner"], ["callback_url", "client_job_url"], ["secret", "sekret"]]
1238
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1239
+ Asyncapi::Server::Job Load (0.1ms) SELECT "asyncapi_server_jobs".* FROM "asyncapi_server_jobs" WHERE "asyncapi_server_jobs"."id" = ? LIMIT 1 [["id", 1]]
1240
+  (0.1ms) SAVEPOINT active_record_1
1241
+ SQL (0.1ms) UPDATE "asyncapi_server_jobs" SET "status" = ? WHERE "asyncapi_server_jobs"."id" = ? [["status", 2], ["id", 1]]
1242
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1243
+ Asyncapi::Server::Job Load (0.1ms) SELECT "asyncapi_server_jobs".* FROM "asyncapi_server_jobs" WHERE "asyncapi_server_jobs"."id" = ? LIMIT 1 [["id", 1]]
1244
+  (2.8ms) rollback transaction
1245
+  (5.3ms) DELETE FROM "asyncapi_server_jobs";
1246
+  (1.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
1247
+  (1.1ms) DELETE FROM sqlite_sequence where name = 'asyncapi_server_jobs';
1248
+  (0.1ms) begin transaction
1249
+  (0.0ms) commit transaction
1250
+  (0.0ms) begin transaction
1251
+ Started POST "/tests" for 127.0.0.1 at 2016-07-21 00:28:41 +0000
1252
+ Processing by TestsController#create as HTML
1253
+ Parameters: {"job"=>{"callback_url"=>"callback_url", "params"=>"{\"client\":\"params\"}", "secret"=>"secret", "expired_at"=>"2016-07-23 00:28:41 UTC"}}
1254
+ Completed 200 OK in 57ms (Views: 56.6ms | ActiveRecord: 0.0ms)
1255
+  (0.1ms) rollback transaction
1256
+  (0.1ms) begin transaction
1257
+  (0.1ms) commit transaction
1258
+  (0.0ms) begin transaction
1259
+  (0.1ms) SAVEPOINT active_record_1
1260
+ SQL (4.6ms) INSERT INTO "asyncapi_server_jobs" DEFAULT VALUES
1261
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1262
+  (0.1ms) SAVEPOINT active_record_1
1263
+ SQL (0.2ms) INSERT INTO "asyncapi_server_jobs" DEFAULT VALUES
1264
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1265
+ Processing by Asyncapi::Server::V1::JobsController#index as JSON
1266
+ Parameters: {"page"=>2, "per_page"=>1}
1267
+  (0.1ms) SELECT COUNT(*) FROM "asyncapi_server_jobs"
1268
+ Asyncapi::Server::Job Load (0.1ms) SELECT "asyncapi_server_jobs".* FROM "asyncapi_server_jobs" LIMIT 1 OFFSET 1
1269
+ Completed 200 OK in 53ms (Views: 43.5ms | ActiveRecord: 0.2ms)
1270
+  (3.3ms) rollback transaction
1271
+  (0.1ms) begin transaction
1272
+  (0.1ms) commit transaction
1273
+  (0.1ms) begin transaction
1274
+  (0.1ms) SAVEPOINT active_record_1
1275
+ SQL (2.9ms) INSERT INTO "asyncapi_server_jobs" ("secret") VALUES (?) [["secret", "12312"]]
1276
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1277
+ Processing by Asyncapi::Server::V1::JobsController#destroy as JSON
1278
+ Parameters: {"secret"=>"12312", "id"=>"1"}
1279
+ Asyncapi::Server::Job Load (0.5ms) SELECT "asyncapi_server_jobs".* FROM "asyncapi_server_jobs" WHERE "asyncapi_server_jobs"."id" = ? AND "asyncapi_server_jobs"."secret" = ? LIMIT 1 [["id", 1], ["secret", "12312"]]
1280
+  (0.1ms) SAVEPOINT active_record_1
1281
+ SQL (0.2ms) DELETE FROM "asyncapi_server_jobs" WHERE "asyncapi_server_jobs"."id" = ? [["id", 1]]
1282
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1283
+ Completed 204 No Content in 88ms (ActiveRecord: 0.8ms)
1284
+  (2.3ms) rollback transaction
1285
+  (0.1ms) begin transaction
1286
+  (0.0ms) commit transaction
1287
+  (0.0ms) begin transaction
1288
+  (0.1ms) SAVEPOINT active_record_1
1289
+ SQL (2.9ms) INSERT INTO "asyncapi_server_jobs" ("secret") VALUES (?) [["secret", "12312"]]
1290
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1291
+ Processing by Asyncapi::Server::V1::JobsController#destroy as JSON
1292
+ Parameters: {"secret"=>"12315", "id"=>"1"}
1293
+ Asyncapi::Server::Job Load (0.1ms) SELECT "asyncapi_server_jobs".* FROM "asyncapi_server_jobs" WHERE "asyncapi_server_jobs"."id" = ? AND "asyncapi_server_jobs"."secret" = ? LIMIT 1 [["id", 1], ["secret", "12315"]]
1294
+ Rendered text template (0.0ms)
1295
+ Completed 404 Not Found in 8ms (Views: 7.2ms | ActiveRecord: 0.1ms)
1296
+  (1.7ms) rollback transaction
1297
+  (0.1ms) begin transaction
1298
+  (0.0ms) commit transaction
1299
+  (0.0ms) begin transaction
1300
+  (0.0ms) SAVEPOINT active_record_1
1301
+ SQL (2.9ms) INSERT INTO "asyncapi_server_jobs" DEFAULT VALUES
1302
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1303
+ Processing by Asyncapi::Server::V1::JobsController#show as JSON
1304
+ Parameters: {"id"=>"1"}
1305
+ Asyncapi::Server::Job Load (0.2ms) SELECT "asyncapi_server_jobs".* FROM "asyncapi_server_jobs" WHERE "asyncapi_server_jobs"."id" = ? LIMIT 1 [["id", 1]]
1306
+ Completed 200 OK in 48ms (Views: 46.2ms | ActiveRecord: 0.2ms)
1307
+  (2.9ms) rollback transaction
1308
+  (0.1ms) begin transaction
1309
+  (0.1ms) commit transaction
1310
+  (0.1ms) begin transaction
1311
+  (0.1ms) rollback transaction
1312
+  (0.1ms) begin transaction
1313
+  (0.0ms) commit transaction
1314
+  (0.0ms) begin transaction
1315
+  (0.0ms) rollback transaction
1316
+  (0.1ms) begin transaction
1317
+  (0.0ms) commit transaction
1318
+  (0.0ms) begin transaction
1319
+  (0.1ms) rollback transaction
1320
+  (0.1ms) begin transaction
1321
+  (0.0ms) commit transaction
1322
+  (0.0ms) begin transaction
1323
+  (0.0ms) SAVEPOINT active_record_1
1324
+ SQL (3.3ms) INSERT INTO "asyncapi_server_jobs" ("class_name", "params", "callback_url", "secret") VALUES (?, ?, ?, ?) [["class_name", "Runner"], ["params", "{\"some\":\"params\"}"], ["callback_url", "client_job_url"], ["secret", "sekret"]]
1325
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1326
+ Asyncapi::Server::Job Load (0.1ms) SELECT "asyncapi_server_jobs".* FROM "asyncapi_server_jobs" WHERE "asyncapi_server_jobs"."id" = ? LIMIT 1 [["id", 1]]
1327
+  (0.1ms) SAVEPOINT active_record_1
1328
+ SQL (0.2ms) UPDATE "asyncapi_server_jobs" SET "status" = ? WHERE "asyncapi_server_jobs"."id" = ? [["status", 1], ["id", 1]]
1329
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1330
+ Asyncapi::Server::Job Load (0.1ms) SELECT "asyncapi_server_jobs".* FROM "asyncapi_server_jobs" WHERE "asyncapi_server_jobs"."id" = ? LIMIT 1 [["id", 1]]
1331
+  (3.1ms) rollback transaction
1332
+  (0.1ms) begin transaction
1333
+  (0.0ms) commit transaction
1334
+  (0.0ms) begin transaction
1335
+  (0.0ms) SAVEPOINT active_record_1
1336
+ SQL (3.6ms) INSERT INTO "asyncapi_server_jobs" ("class_name", "callback_url", "secret") VALUES (?, ?, ?) [["class_name", "Runner"], ["callback_url", "client_job_url"], ["secret", "sekret"]]
1337
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1338
+ Asyncapi::Server::Job Load (0.1ms) SELECT "asyncapi_server_jobs".* FROM "asyncapi_server_jobs" WHERE "asyncapi_server_jobs"."id" = ? LIMIT 1 [["id", 1]]
1339
+  (0.1ms) SAVEPOINT active_record_1
1340
+ SQL (0.2ms) UPDATE "asyncapi_server_jobs" SET "status" = ? WHERE "asyncapi_server_jobs"."id" = ? [["status", 2], ["id", 1]]
1341
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1342
+ Asyncapi::Server::Job Load (0.1ms) SELECT "asyncapi_server_jobs".* FROM "asyncapi_server_jobs" WHERE "asyncapi_server_jobs"."id" = ? LIMIT 1 [["id", 1]]
1343
+  (2.2ms) rollback transaction
1344
+  (0.1ms) begin transaction
1345
+  (0.0ms) commit transaction
1346
+  (0.0ms) begin transaction
1347
+  (0.1ms) rollback transaction
1348
+  (0.1ms) begin transaction
1349
+  (0.1ms) commit transaction
1350
+  (0.1ms) begin transaction
1351
+  (0.5ms) rollback transaction
1352
+  (0.1ms) begin transaction
1353
+  (0.0ms) commit transaction
1354
+  (0.1ms) begin transaction
1355
+  (0.0ms) rollback transaction
1356
+  (0.1ms) begin transaction
1357
+  (0.0ms) commit transaction
1358
+  (0.1ms) begin transaction
1359
+  (0.1ms) SAVEPOINT active_record_1
1360
+ SQL (3.9ms) INSERT INTO "asyncapi_server_jobs" ("status", "callback_url", "class_name", "params") VALUES (?, ?, ?, ?) [["status", 2], ["callback_url", "http://callback_url.com"], ["class_name", "CreateStorageFacility"], ["params", "{\"param\":\"values\"}"]]
1361
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1362
+  (1.5ms) rollback transaction
1363
+  (0.1ms) begin transaction
1364
+  (0.1ms) commit transaction
1365
+  (0.0ms) begin transaction
1366
+  (0.0ms) rollback transaction
1367
+  (0.1ms) begin transaction
1368
+  (0.0ms) commit transaction
1369
+  (0.0ms) begin transaction
1370
+  (0.1ms) rollback transaction
1371
+  (0.1ms) begin transaction
1372
+  (0.1ms) commit transaction
1373
+  (0.1ms) begin transaction
1374
+  (0.1ms) rollback transaction
1375
+  (0.1ms) begin transaction
1376
+  (0.1ms) commit transaction
1377
+  (0.1ms) begin transaction
1378
+  (0.1ms) rollback transaction
1379
+  (0.1ms) begin transaction
1380
+  (0.0ms) commit transaction
1381
+  (0.0ms) begin transaction
1382
+  (0.1ms) rollback transaction
1383
+  (4.7ms) DELETE FROM "asyncapi_server_jobs";
1384
+  (1.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
1385
+  (0.9ms) DELETE FROM sqlite_sequence where name = 'asyncapi_server_jobs';
1386
+  (0.1ms) begin transaction
1387
+  (0.0ms) commit transaction
1388
+  (0.0ms) begin transaction
1389
+ Started POST "/tests" for 127.0.0.1 at 2016-07-21 00:29:01 +0000
1390
+ Processing by TestsController#create as HTML
1391
+ Parameters: {"job"=>{"callback_url"=>"callback_url", "params"=>"{\"client\":\"params\"}", "secret"=>"secret", "expired_at"=>"2016-07-23 00:29:01 UTC"}}
1392
+ Completed 200 OK in 56ms (Views: 55.7ms | ActiveRecord: 0.0ms)
1393
+  (0.1ms) rollback transaction
1394
+  (0.1ms) begin transaction
1395
+  (0.0ms) commit transaction
1396
+  (0.0ms) begin transaction
1397
+  (0.0ms) rollback transaction
1398
+  (0.1ms) begin transaction
1399
+  (0.0ms) commit transaction
1400
+  (0.1ms) begin transaction
1401
+  (0.1ms) rollback transaction
1402
+  (0.1ms) begin transaction
1403
+  (0.1ms) commit transaction
1404
+  (0.1ms) begin transaction
1405
+  (0.1ms) rollback transaction
1406
+  (0.1ms) begin transaction
1407
+  (0.1ms) commit transaction
1408
+  (0.0ms) begin transaction
1409
+  (0.1ms) SAVEPOINT active_record_1
1410
+ SQL (4.5ms) INSERT INTO "asyncapi_server_jobs" ("class_name", "params", "callback_url", "secret") VALUES (?, ?, ?, ?) [["class_name", "Runner"], ["params", "{\"some\":\"params\"}"], ["callback_url", "client_job_url"], ["secret", "sekret"]]
1411
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1412
+ Asyncapi::Server::Job Load (0.2ms) SELECT "asyncapi_server_jobs".* FROM "asyncapi_server_jobs" WHERE "asyncapi_server_jobs"."id" = ? LIMIT 1 [["id", 1]]
1413
+  (0.1ms) SAVEPOINT active_record_1
1414
+ SQL (0.2ms) UPDATE "asyncapi_server_jobs" SET "status" = ? WHERE "asyncapi_server_jobs"."id" = ? [["status", 1], ["id", 1]]
1415
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1416
+ Asyncapi::Server::Job Load (0.1ms) SELECT "asyncapi_server_jobs".* FROM "asyncapi_server_jobs" WHERE "asyncapi_server_jobs"."id" = ? LIMIT 1 [["id", 1]]
1417
+  (2.8ms) rollback transaction
1418
+  (0.1ms) begin transaction
1419
+  (0.0ms) commit transaction
1420
+  (0.0ms) begin transaction
1421
+  (0.0ms) SAVEPOINT active_record_1
1422
+ SQL (3.1ms) INSERT INTO "asyncapi_server_jobs" ("class_name", "callback_url", "secret") VALUES (?, ?, ?) [["class_name", "Runner"], ["callback_url", "client_job_url"], ["secret", "sekret"]]
1423
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1424
+ Asyncapi::Server::Job Load (0.1ms) SELECT "asyncapi_server_jobs".* FROM "asyncapi_server_jobs" WHERE "asyncapi_server_jobs"."id" = ? LIMIT 1 [["id", 1]]
1425
+  (0.1ms) SAVEPOINT active_record_1
1426
+ SQL (0.1ms) UPDATE "asyncapi_server_jobs" SET "status" = ? WHERE "asyncapi_server_jobs"."id" = ? [["status", 2], ["id", 1]]
1427
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1428
+ Asyncapi::Server::Job Load (0.0ms) SELECT "asyncapi_server_jobs".* FROM "asyncapi_server_jobs" WHERE "asyncapi_server_jobs"."id" = ? LIMIT 1 [["id", 1]]
1429
+  (2.7ms) rollback transaction
1430
+  (0.1ms) begin transaction
1431
+  (0.1ms) commit transaction
1432
+  (0.0ms) begin transaction
1433
+  (0.1ms) rollback transaction
1434
+  (0.1ms) begin transaction
1435
+  (0.1ms) commit transaction
1436
+  (0.0ms) begin transaction
1437
+  (0.1ms) rollback transaction
1438
+  (0.1ms) begin transaction
1439
+  (0.0ms) commit transaction
1440
+  (0.0ms) begin transaction
1441
+  (0.0ms) SAVEPOINT active_record_1
1442
+ SQL (3.9ms) INSERT INTO "asyncapi_server_jobs" DEFAULT VALUES
1443
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1444
+  (0.1ms) SAVEPOINT active_record_1
1445
+ SQL (0.2ms) INSERT INTO "asyncapi_server_jobs" DEFAULT VALUES
1446
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1447
+ Processing by Asyncapi::Server::V1::JobsController#index as JSON
1448
+ Parameters: {"page"=>2, "per_page"=>1}
1449
+  (0.1ms) SELECT COUNT(*) FROM "asyncapi_server_jobs"
1450
+ Asyncapi::Server::Job Load (0.1ms) SELECT "asyncapi_server_jobs".* FROM "asyncapi_server_jobs" LIMIT 1 OFFSET 1
1451
+ Completed 200 OK in 43ms (Views: 34.3ms | ActiveRecord: 0.2ms)
1452
+  (3.3ms) rollback transaction
1453
+  (0.1ms) begin transaction
1454
+  (0.0ms) commit transaction
1455
+  (0.1ms) begin transaction
1456
+  (0.0ms) SAVEPOINT active_record_1
1457
+ SQL (3.1ms) INSERT INTO "asyncapi_server_jobs" DEFAULT VALUES
1458
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1459
+ Processing by Asyncapi::Server::V1::JobsController#show as JSON
1460
+ Parameters: {"id"=>"1"}
1461
+ Asyncapi::Server::Job Load (0.1ms) SELECT "asyncapi_server_jobs".* FROM "asyncapi_server_jobs" WHERE "asyncapi_server_jobs"."id" = ? LIMIT 1 [["id", 1]]
1462
+ Completed 200 OK in 44ms (Views: 42.8ms | ActiveRecord: 0.1ms)
1463
+  (3.2ms) rollback transaction
1464
+  (0.1ms) begin transaction
1465
+  (0.1ms) commit transaction
1466
+  (0.1ms) begin transaction
1467
+  (0.1ms) SAVEPOINT active_record_1
1468
+ SQL (3.9ms) INSERT INTO "asyncapi_server_jobs" ("secret") VALUES (?) [["secret", "12312"]]
1469
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1470
+ Processing by Asyncapi::Server::V1::JobsController#destroy as JSON
1471
+ Parameters: {"secret"=>"12312", "id"=>"1"}
1472
+ Asyncapi::Server::Job Load (0.1ms) SELECT "asyncapi_server_jobs".* FROM "asyncapi_server_jobs" WHERE "asyncapi_server_jobs"."id" = ? AND "asyncapi_server_jobs"."secret" = ? LIMIT 1 [["id", 1], ["secret", "12312"]]
1473
+  (0.1ms) SAVEPOINT active_record_1
1474
+ SQL (0.3ms) DELETE FROM "asyncapi_server_jobs" WHERE "asyncapi_server_jobs"."id" = ? [["id", 1]]
1475
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1476
+ Completed 204 No Content in 63ms (ActiveRecord: 0.6ms)
1477
+  (2.1ms) rollback transaction
1478
+  (0.1ms) begin transaction
1479
+  (0.1ms) commit transaction
1480
+  (0.1ms) begin transaction
1481
+  (0.1ms) SAVEPOINT active_record_1
1482
+ SQL (4.0ms) INSERT INTO "asyncapi_server_jobs" ("secret") VALUES (?) [["secret", "12312"]]
1483
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1484
+ Processing by Asyncapi::Server::V1::JobsController#destroy as JSON
1485
+ Parameters: {"secret"=>"12315", "id"=>"1"}
1486
+ Asyncapi::Server::Job Load (0.1ms) SELECT "asyncapi_server_jobs".* FROM "asyncapi_server_jobs" WHERE "asyncapi_server_jobs"."id" = ? AND "asyncapi_server_jobs"."secret" = ? LIMIT 1 [["id", 1], ["secret", "12315"]]
1487
+ Rendered text template (0.0ms)
1488
+ Completed 404 Not Found in 8ms (Views: 7.4ms | ActiveRecord: 0.1ms)
1489
+  (2.1ms) rollback transaction
1490
+  (0.1ms) begin transaction
1491
+  (0.0ms) commit transaction
1492
+  (0.0ms) begin transaction
1493
+  (0.0ms) rollback transaction
1494
+  (0.1ms) begin transaction
1495
+  (0.0ms) commit transaction
1496
+  (0.0ms) begin transaction
1497
+  (0.1ms) rollback transaction
1498
+  (0.1ms) begin transaction
1499
+  (0.1ms) commit transaction
1500
+  (0.0ms) begin transaction
1501
+  (0.1ms) rollback transaction
1502
+  (0.1ms) begin transaction
1503
+  (0.0ms) commit transaction
1504
+  (0.0ms) begin transaction
1505
+  (0.0ms) rollback transaction
1506
+  (0.1ms) begin transaction
1507
+  (0.1ms) commit transaction
1508
+  (0.1ms) begin transaction
1509
+  (0.1ms) SAVEPOINT active_record_1
1510
+ SQL (3.9ms) INSERT INTO "asyncapi_server_jobs" ("status", "callback_url", "class_name", "params") VALUES (?, ?, ?, ?) [["status", 2], ["callback_url", "http://callback_url.com"], ["class_name", "CreateStorageFacility"], ["params", "{\"param\":\"values\"}"]]
1511
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1512
+  (1.8ms) rollback transaction
1513
+  (0.1ms) begin transaction
1514
+  (0.1ms) commit transaction
1515
+  (0.0ms) begin transaction
1516
+  (0.0ms) rollback transaction
1517
+  (0.1ms) begin transaction
1518
+  (0.0ms) commit transaction
1519
+  (0.0ms) begin transaction
1520
+  (0.0ms) rollback transaction
1521
+  (4.9ms) DELETE FROM "asyncapi_server_jobs";
1522
+  (0.9ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
1523
+  (1.0ms) DELETE FROM sqlite_sequence where name = 'asyncapi_server_jobs';
1524
+  (0.1ms) begin transaction
1525
+  (0.0ms) commit transaction
1526
+  (0.0ms) begin transaction
1527
+  (0.1ms) rollback transaction
1528
+  (0.1ms) begin transaction
1529
+  (0.0ms) commit transaction
1530
+  (0.1ms) begin transaction
1531
+  (0.1ms) rollback transaction
1532
+  (0.1ms) begin transaction
1533
+  (0.1ms) commit transaction
1534
+  (0.1ms) begin transaction
1535
+  (0.1ms) rollback transaction
1536
+  (9.8ms) DELETE FROM "asyncapi_server_jobs";
1537
+  (1.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
1538
+  (0.9ms) DELETE FROM sqlite_sequence where name = 'asyncapi_server_jobs';
1539
+  (0.1ms) begin transaction
1540
+  (0.0ms) commit transaction
1541
+  (0.1ms) begin transaction
1542
+  (0.1ms) rollback transaction
1543
+  (0.1ms) begin transaction
1544
+  (0.0ms) commit transaction
1545
+  (0.0ms) begin transaction
1546
+  (0.1ms) rollback transaction
1547
+  (0.1ms) begin transaction
1548
+  (0.0ms) commit transaction
1549
+  (0.1ms) begin transaction
1550
+  (0.1ms) rollback transaction
1551
+  (0.1ms) begin transaction
1552
+  (0.1ms) commit transaction
1553
+  (0.0ms) begin transaction
1554
+  (0.1ms) rollback transaction
1555
+  (0.2ms) begin transaction
1556
+  (0.1ms) commit transaction
1557
+  (0.0ms) begin transaction
1558
+  (0.1ms) rollback transaction
1559
+  (0.2ms) begin transaction
1560
+  (0.1ms) commit transaction
1561
+  (0.0ms) begin transaction
1562
+  (0.0ms) rollback transaction
1563
+  (0.1ms) begin transaction
1564
+  (0.1ms) commit transaction
1565
+  (0.1ms) begin transaction
1566
+  (0.2ms) SAVEPOINT active_record_1
1567
+ SQL (3.4ms) INSERT INTO "asyncapi_server_jobs" ("status", "callback_url", "class_name", "params") VALUES (?, ?, ?, ?) [["status", 2], ["callback_url", "http://callback_url.com"], ["class_name", "CreateStorageFacility"], ["params", "{\"param\":\"values\"}"]]
1568
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1569
+  (2.1ms) rollback transaction
1570
+  (0.1ms) begin transaction
1571
+  (0.0ms) commit transaction
1572
+  (0.0ms) begin transaction
1573
+  (0.1ms) rollback transaction
1574
+  (0.1ms) begin transaction
1575
+  (0.0ms) commit transaction
1576
+  (0.0ms) begin transaction
1577
+  (0.0ms) SAVEPOINT active_record_1
1578
+ SQL (2.9ms) INSERT INTO "asyncapi_server_jobs" ("class_name", "params", "callback_url", "secret") VALUES (?, ?, ?, ?) [["class_name", "Runner"], ["params", "{\"some\":\"params\"}"], ["callback_url", "client_job_url"], ["secret", "sekret"]]
1579
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1580
+ Asyncapi::Server::Job Load (0.1ms) SELECT "asyncapi_server_jobs".* FROM "asyncapi_server_jobs" WHERE "asyncapi_server_jobs"."id" = ? LIMIT 1 [["id", 1]]
1581
+  (0.1ms) SAVEPOINT active_record_1
1582
+ SQL (0.2ms) UPDATE "asyncapi_server_jobs" SET "status" = ? WHERE "asyncapi_server_jobs"."id" = ? [["status", 1], ["id", 1]]
1583
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1584
+ Asyncapi::Server::Job Load (0.1ms) SELECT "asyncapi_server_jobs".* FROM "asyncapi_server_jobs" WHERE "asyncapi_server_jobs"."id" = ? LIMIT 1 [["id", 1]]
1585
+  (2.4ms) rollback transaction
1586
+  (0.1ms) begin transaction
1587
+  (0.1ms) commit transaction
1588
+  (0.1ms) begin transaction
1589
+  (0.1ms) SAVEPOINT active_record_1
1590
+ SQL (4.4ms) INSERT INTO "asyncapi_server_jobs" ("class_name", "callback_url", "secret") VALUES (?, ?, ?) [["class_name", "Runner"], ["callback_url", "client_job_url"], ["secret", "sekret"]]
1591
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1592
+ Asyncapi::Server::Job Load (0.1ms) SELECT "asyncapi_server_jobs".* FROM "asyncapi_server_jobs" WHERE "asyncapi_server_jobs"."id" = ? LIMIT 1 [["id", 1]]
1593
+  (0.1ms) SAVEPOINT active_record_1
1594
+ SQL (0.1ms) UPDATE "asyncapi_server_jobs" SET "status" = ? WHERE "asyncapi_server_jobs"."id" = ? [["status", 2], ["id", 1]]
1595
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1596
+ Asyncapi::Server::Job Load (0.0ms) SELECT "asyncapi_server_jobs".* FROM "asyncapi_server_jobs" WHERE "asyncapi_server_jobs"."id" = ? LIMIT 1 [["id", 1]]
1597
+  (2.4ms) rollback transaction
1598
+  (0.1ms) begin transaction
1599
+  (0.0ms) commit transaction
1600
+  (0.0ms) begin transaction
1601
+  (0.0ms) SAVEPOINT active_record_1
1602
+ SQL (4.0ms) INSERT INTO "asyncapi_server_jobs" ("secret") VALUES (?) [["secret", "12312"]]
1603
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1604
+ Processing by Asyncapi::Server::V1::JobsController#destroy as JSON
1605
+ Parameters: {"secret"=>"12312", "id"=>"1"}
1606
+ Asyncapi::Server::Job Load (0.1ms) SELECT "asyncapi_server_jobs".* FROM "asyncapi_server_jobs" WHERE "asyncapi_server_jobs"."id" = ? AND "asyncapi_server_jobs"."secret" = ? LIMIT 1 [["id", 1], ["secret", "12312"]]
1607
+  (0.1ms) SAVEPOINT active_record_1
1608
+ SQL (0.2ms) DELETE FROM "asyncapi_server_jobs" WHERE "asyncapi_server_jobs"."id" = ? [["id", 1]]
1609
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1610
+ Completed 204 No Content in 60ms (ActiveRecord: 0.4ms)
1611
+  (2.6ms) rollback transaction
1612
+  (0.1ms) begin transaction
1613
+  (0.1ms) commit transaction
1614
+  (0.0ms) begin transaction
1615
+  (0.1ms) SAVEPOINT active_record_1
1616
+ SQL (3.5ms) INSERT INTO "asyncapi_server_jobs" ("secret") VALUES (?) [["secret", "12312"]]
1617
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1618
+ Processing by Asyncapi::Server::V1::JobsController#destroy as JSON
1619
+ Parameters: {"secret"=>"12315", "id"=>"1"}
1620
+ Asyncapi::Server::Job Load (0.1ms) SELECT "asyncapi_server_jobs".* FROM "asyncapi_server_jobs" WHERE "asyncapi_server_jobs"."id" = ? AND "asyncapi_server_jobs"."secret" = ? LIMIT 1 [["id", 1], ["secret", "12315"]]
1621
+ Rendered text template (0.0ms)
1622
+ Completed 404 Not Found in 8ms (Views: 7.2ms | ActiveRecord: 0.1ms)
1623
+  (1.9ms) rollback transaction
1624
+  (0.1ms) begin transaction
1625
+  (0.0ms) commit transaction
1626
+  (0.0ms) begin transaction
1627
+  (0.0ms) SAVEPOINT active_record_1
1628
+ SQL (3.0ms) INSERT INTO "asyncapi_server_jobs" DEFAULT VALUES
1629
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1630
+ Processing by Asyncapi::Server::V1::JobsController#show as JSON
1631
+ Parameters: {"id"=>"1"}
1632
+ Asyncapi::Server::Job Load (0.1ms) SELECT "asyncapi_server_jobs".* FROM "asyncapi_server_jobs" WHERE "asyncapi_server_jobs"."id" = ? LIMIT 1 [["id", 1]]
1633
+ Completed 200 OK in 46ms (Views: 44.9ms | ActiveRecord: 0.1ms)
1634
+  (3.2ms) rollback transaction
1635
+  (0.1ms) begin transaction
1636
+  (0.1ms) commit transaction
1637
+  (0.1ms) begin transaction
1638
+  (0.1ms) SAVEPOINT active_record_1
1639
+ SQL (3.9ms) INSERT INTO "asyncapi_server_jobs" DEFAULT VALUES
1640
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1641
+  (0.1ms) SAVEPOINT active_record_1
1642
+ SQL (0.2ms) INSERT INTO "asyncapi_server_jobs" DEFAULT VALUES
1643
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1644
+ Processing by Asyncapi::Server::V1::JobsController#index as JSON
1645
+ Parameters: {"page"=>2, "per_page"=>1}
1646
+  (0.1ms) SELECT COUNT(*) FROM "asyncapi_server_jobs"
1647
+ Asyncapi::Server::Job Load (0.1ms) SELECT "asyncapi_server_jobs".* FROM "asyncapi_server_jobs" LIMIT 1 OFFSET 1
1648
+ Completed 200 OK in 43ms (Views: 34.9ms | ActiveRecord: 0.2ms)
1649
+  (3.3ms) rollback transaction
1650
+  (0.1ms) begin transaction
1651
+  (0.0ms) commit transaction
1652
+  (0.0ms) begin transaction
1653
+ Started POST "/tests" for 127.0.0.1 at 2016-07-21 00:30:18 +0000
1654
+ Processing by TestsController#create as HTML
1655
+ Parameters: {"job"=>{"callback_url"=>"callback_url", "params"=>"{\"client\":\"params\"}", "secret"=>"secret", "expired_at"=>"2016-07-23 00:30:18 UTC"}}
1656
+ Completed 200 OK in 57ms (Views: 56.3ms | ActiveRecord: 0.0ms)
1657
+  (0.1ms) rollback transaction
1658
+  (0.1ms) begin transaction
1659
+  (0.0ms) commit transaction
1660
+  (0.1ms) begin transaction
1661
+  (0.1ms) rollback transaction
1662
+  (0.2ms) begin transaction
1663
+  (0.1ms) commit transaction
1664
+  (0.1ms) begin transaction
1665
+  (0.1ms) rollback transaction
1666
+  (0.1ms) begin transaction
1667
+  (0.0ms) commit transaction
1668
+  (0.0ms) begin transaction
1669
+  (0.1ms) rollback transaction
1670
+  (0.1ms) begin transaction
1671
+  (0.0ms) commit transaction
1672
+  (0.1ms) begin transaction
1673
+  (0.0ms) rollback transaction
1674
+  (0.2ms) begin transaction
1675
+  (0.1ms) commit transaction
1676
+  (0.0ms) begin transaction
1677
+  (0.0ms) rollback transaction
1678
+  (4.9ms) DELETE FROM "asyncapi_server_jobs";
1679
+  (1.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
1680
+  (1.4ms) DELETE FROM sqlite_sequence where name = 'asyncapi_server_jobs';
1681
+  (0.1ms) begin transaction
1682
+  (0.0ms) commit transaction
1683
+  (0.0ms) begin transaction
1684
+  (0.1ms) rollback transaction
1685
+  (0.2ms) begin transaction
1686
+  (0.1ms) commit transaction
1687
+  (0.0ms) begin transaction
1688
+  (0.0ms) rollback transaction
1689
+  (0.1ms) begin transaction
1690
+  (0.0ms) commit transaction
1691
+  (0.0ms) begin transaction
1692
+  (0.0ms) rollback transaction
1693
+  (0.1ms) begin transaction
1694
+  (0.0ms) commit transaction
1695
+  (0.0ms) begin transaction
1696
+  (0.1ms) rollback transaction
1697
+  (0.2ms) begin transaction
1698
+  (0.1ms) commit transaction
1699
+  (0.0ms) begin transaction
1700
+  (0.1ms) rollback transaction
1701
+  (0.3ms) begin transaction
1702
+  (0.1ms) commit transaction
1703
+  (0.0ms) begin transaction
1704
+  (0.1ms) SAVEPOINT active_record_1
1705
+ SQL (3.7ms) INSERT INTO "asyncapi_server_jobs" ("status", "callback_url", "class_name", "params") VALUES (?, ?, ?, ?) [["status", 2], ["callback_url", "http://callback_url.com"], ["class_name", "CreateStorageFacility"], ["params", "{\"param\":\"values\"}"]]
1706
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1707
+  (2.3ms) rollback transaction
1708
+  (0.1ms) begin transaction
1709
+  (0.0ms) commit transaction
1710
+  (0.0ms) begin transaction
1711
+  (0.1ms) rollback transaction
1712
+  (0.1ms) begin transaction
1713
+  (0.0ms) commit transaction
1714
+  (0.1ms) begin transaction
1715
+  (0.0ms) rollback transaction
1716
+  (0.2ms) begin transaction
1717
+  (0.1ms) commit transaction
1718
+  (0.1ms) begin transaction
1719
+  (0.1ms) rollback transaction
1720
+  (0.4ms) begin transaction
1721
+  (0.1ms) commit transaction
1722
+  (0.1ms) begin transaction
1723
+  (0.1ms) rollback transaction
1724
+  (0.1ms) begin transaction
1725
+  (0.0ms) commit transaction
1726
+  (0.1ms) begin transaction
1727
+  (0.4ms) SAVEPOINT active_record_1
1728
+ SQL (4.4ms) INSERT INTO "asyncapi_server_jobs" ("class_name", "params", "callback_url", "secret") VALUES (?, ?, ?, ?) [["class_name", "Runner"], ["params", "{\"some\":\"params\"}"], ["callback_url", "client_job_url"], ["secret", "sekret"]]
1729
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1730
+ Asyncapi::Server::Job Load (0.1ms) SELECT "asyncapi_server_jobs".* FROM "asyncapi_server_jobs" WHERE "asyncapi_server_jobs"."id" = ? LIMIT 1 [["id", 1]]
1731
+  (0.1ms) SAVEPOINT active_record_1
1732
+ SQL (0.3ms) UPDATE "asyncapi_server_jobs" SET "status" = ? WHERE "asyncapi_server_jobs"."id" = ? [["status", 1], ["id", 1]]
1733
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1734
+ Asyncapi::Server::Job Load (0.1ms) SELECT "asyncapi_server_jobs".* FROM "asyncapi_server_jobs" WHERE "asyncapi_server_jobs"."id" = ? LIMIT 1 [["id", 1]]
1735
+  (1.9ms) rollback transaction
1736
+  (0.1ms) begin transaction
1737
+  (0.0ms) commit transaction
1738
+  (0.0ms) begin transaction
1739
+  (0.1ms) SAVEPOINT active_record_1
1740
+ SQL (3.5ms) INSERT INTO "asyncapi_server_jobs" ("class_name", "callback_url", "secret") VALUES (?, ?, ?) [["class_name", "Runner"], ["callback_url", "client_job_url"], ["secret", "sekret"]]
1741
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1742
+ Asyncapi::Server::Job Load (0.1ms) SELECT "asyncapi_server_jobs".* FROM "asyncapi_server_jobs" WHERE "asyncapi_server_jobs"."id" = ? LIMIT 1 [["id", 1]]
1743
+  (0.1ms) SAVEPOINT active_record_1
1744
+ SQL (0.1ms) UPDATE "asyncapi_server_jobs" SET "status" = ? WHERE "asyncapi_server_jobs"."id" = ? [["status", 2], ["id", 1]]
1745
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1746
+ Asyncapi::Server::Job Load (0.0ms) SELECT "asyncapi_server_jobs".* FROM "asyncapi_server_jobs" WHERE "asyncapi_server_jobs"."id" = ? LIMIT 1 [["id", 1]]
1747
+  (1.8ms) rollback transaction
1748
+  (0.1ms) begin transaction
1749
+  (0.0ms) commit transaction
1750
+  (0.1ms) begin transaction
1751
+ Started POST "/tests" for 127.0.0.1 at 2016-07-21 00:31:18 +0000
1752
+ Processing by TestsController#create as HTML
1753
+ Parameters: {"job"=>{"callback_url"=>"callback_url", "params"=>"{\"client\":\"params\"}", "secret"=>"secret", "expired_at"=>"2016-07-23 00:31:18 UTC"}}
1754
+ Completed 200 OK in 55ms (Views: 54.6ms | ActiveRecord: 0.0ms)
1755
+  (0.1ms) rollback transaction
1756
+  (0.1ms) begin transaction
1757
+  (0.1ms) commit transaction
1758
+  (0.1ms) begin transaction
1759
+  (0.1ms) rollback transaction
1760
+  (0.1ms) begin transaction
1761
+  (0.1ms) commit transaction
1762
+  (0.1ms) begin transaction
1763
+  (0.1ms) rollback transaction
1764
+  (0.1ms) begin transaction
1765
+  (0.0ms) commit transaction
1766
+  (0.0ms) begin transaction
1767
+  (0.1ms) rollback transaction
1768
+  (0.1ms) begin transaction
1769
+  (0.1ms) commit transaction
1770
+  (0.1ms) begin transaction
1771
+  (0.2ms) SAVEPOINT active_record_1
1772
+ SQL (5.9ms) INSERT INTO "asyncapi_server_jobs" ("secret") VALUES (?) [["secret", "12312"]]
1773
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1774
+ Processing by Asyncapi::Server::V1::JobsController#destroy as JSON
1775
+ Parameters: {"secret"=>"12312", "id"=>"1"}
1776
+ Asyncapi::Server::Job Load (0.7ms) SELECT "asyncapi_server_jobs".* FROM "asyncapi_server_jobs" WHERE "asyncapi_server_jobs"."id" = ? AND "asyncapi_server_jobs"."secret" = ? LIMIT 1 [["id", 1], ["secret", "12312"]]
1777
+  (0.1ms) SAVEPOINT active_record_1
1778
+ SQL (0.4ms) DELETE FROM "asyncapi_server_jobs" WHERE "asyncapi_server_jobs"."id" = ? [["id", 1]]
1779
+  (0.2ms) RELEASE SAVEPOINT active_record_1
1780
+ Completed 204 No Content in 71ms (ActiveRecord: 1.4ms)
1781
+  (2.3ms) rollback transaction
1782
+  (0.1ms) begin transaction
1783
+  (0.1ms) commit transaction
1784
+  (0.0ms) begin transaction
1785
+  (0.0ms) SAVEPOINT active_record_1
1786
+ SQL (2.8ms) INSERT INTO "asyncapi_server_jobs" ("secret") VALUES (?) [["secret", "12312"]]
1787
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1788
+ Processing by Asyncapi::Server::V1::JobsController#destroy as JSON
1789
+ Parameters: {"secret"=>"12315", "id"=>"1"}
1790
+ Asyncapi::Server::Job Load (0.1ms) SELECT "asyncapi_server_jobs".* FROM "asyncapi_server_jobs" WHERE "asyncapi_server_jobs"."id" = ? AND "asyncapi_server_jobs"."secret" = ? LIMIT 1 [["id", 1], ["secret", "12315"]]
1791
+ Rendered text template (0.0ms)
1792
+ Completed 404 Not Found in 8ms (Views: 6.9ms | ActiveRecord: 0.1ms)
1793
+  (2.4ms) rollback transaction
1794
+  (0.1ms) begin transaction
1795
+  (0.0ms) commit transaction
1796
+  (0.0ms) begin transaction
1797
+  (0.0ms) SAVEPOINT active_record_1
1798
+ SQL (3.8ms) INSERT INTO "asyncapi_server_jobs" DEFAULT VALUES
1799
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1800
+ Processing by Asyncapi::Server::V1::JobsController#show as JSON
1801
+ Parameters: {"id"=>"1"}
1802
+ Asyncapi::Server::Job Load (0.1ms) SELECT "asyncapi_server_jobs".* FROM "asyncapi_server_jobs" WHERE "asyncapi_server_jobs"."id" = ? LIMIT 1 [["id", 1]]
1803
+ Completed 200 OK in 44ms (Views: 43.4ms | ActiveRecord: 0.1ms)
1804
+  (3.2ms) rollback transaction
1805
+  (0.1ms) begin transaction
1806
+  (0.0ms) commit transaction
1807
+  (0.1ms) begin transaction
1808
+  (0.0ms) SAVEPOINT active_record_1
1809
+ SQL (3.6ms) INSERT INTO "asyncapi_server_jobs" DEFAULT VALUES
1810
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1811
+  (0.0ms) SAVEPOINT active_record_1
1812
+ SQL (0.2ms) INSERT INTO "asyncapi_server_jobs" DEFAULT VALUES
1813
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1814
+ Processing by Asyncapi::Server::V1::JobsController#index as JSON
1815
+ Parameters: {"page"=>2, "per_page"=>1}
1816
+  (0.1ms) SELECT COUNT(*) FROM "asyncapi_server_jobs"
1817
+ Asyncapi::Server::Job Load (0.1ms) SELECT "asyncapi_server_jobs".* FROM "asyncapi_server_jobs" LIMIT 1 OFFSET 1
1818
+ Completed 200 OK in 45ms (Views: 35.1ms | ActiveRecord: 0.3ms)
1819
+  (3.3ms) rollback transaction
1820
+  (4.6ms) DELETE FROM "asyncapi_server_jobs";
1821
+  (1.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
1822
+  (1.3ms) DELETE FROM sqlite_sequence where name = 'asyncapi_server_jobs';
1823
+  (0.1ms) begin transaction
1824
+  (0.1ms) commit transaction
1825
+  (0.0ms) begin transaction
1826
+ Started POST "/tests" for 127.0.0.1 at 2016-07-21 00:31:44 +0000
1827
+ Processing by TestsController#create as HTML
1828
+ Parameters: {"job"=>{"callback_url"=>"callback_url", "params"=>"{\"client\":\"params\"}", "secret"=>"secret", "expired_at"=>"2016-07-23 00:31:44 UTC"}}
1829
+ Completed 200 OK in 56ms (Views: 55.7ms | ActiveRecord: 0.0ms)
1830
+  (0.1ms) rollback transaction
1831
+  (0.2ms) begin transaction
1832
+  (0.1ms) commit transaction
1833
+  (0.0ms) begin transaction
1834
+  (0.1ms) rollback transaction
1835
+  (0.3ms) begin transaction
1836
+  (0.0ms) commit transaction
1837
+  (0.0ms) begin transaction
1838
+  (0.2ms) SAVEPOINT active_record_1
1839
+ SQL (3.1ms) INSERT INTO "asyncapi_server_jobs" ("class_name", "params", "callback_url", "secret") VALUES (?, ?, ?, ?) [["class_name", "Runner"], ["params", "{\"some\":\"params\"}"], ["callback_url", "client_job_url"], ["secret", "sekret"]]
1840
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1841
+ Asyncapi::Server::Job Load (0.1ms) SELECT "asyncapi_server_jobs".* FROM "asyncapi_server_jobs" WHERE "asyncapi_server_jobs"."id" = ? LIMIT 1 [["id", 1]]
1842
+  (0.1ms) SAVEPOINT active_record_1
1843
+ SQL (0.2ms) UPDATE "asyncapi_server_jobs" SET "status" = ? WHERE "asyncapi_server_jobs"."id" = ? [["status", 1], ["id", 1]]
1844
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1845
+ Asyncapi::Server::Job Load (0.1ms) SELECT "asyncapi_server_jobs".* FROM "asyncapi_server_jobs" WHERE "asyncapi_server_jobs"."id" = ? LIMIT 1 [["id", 1]]
1846
+  (1.7ms) rollback transaction
1847
+  (0.1ms) begin transaction
1848
+  (0.1ms) commit transaction
1849
+  (0.0ms) begin transaction
1850
+  (0.1ms) SAVEPOINT active_record_1
1851
+ SQL (3.0ms) INSERT INTO "asyncapi_server_jobs" ("class_name", "callback_url", "secret") VALUES (?, ?, ?) [["class_name", "Runner"], ["callback_url", "client_job_url"], ["secret", "sekret"]]
1852
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1853
+ Asyncapi::Server::Job Load (0.1ms) SELECT "asyncapi_server_jobs".* FROM "asyncapi_server_jobs" WHERE "asyncapi_server_jobs"."id" = ? LIMIT 1 [["id", 1]]
1854
+  (0.1ms) SAVEPOINT active_record_1
1855
+ SQL (0.1ms) UPDATE "asyncapi_server_jobs" SET "status" = ? WHERE "asyncapi_server_jobs"."id" = ? [["status", 2], ["id", 1]]
1856
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1857
+ Asyncapi::Server::Job Load (0.1ms) SELECT "asyncapi_server_jobs".* FROM "asyncapi_server_jobs" WHERE "asyncapi_server_jobs"."id" = ? LIMIT 1 [["id", 1]]
1858
+  (1.7ms) rollback transaction
1859
+  (0.1ms) begin transaction
1860
+  (0.0ms) commit transaction
1861
+  (0.1ms) begin transaction
1862
+  (0.0ms) rollback transaction
1863
+  (0.1ms) begin transaction
1864
+  (0.1ms) commit transaction
1865
+  (0.0ms) begin transaction
1866
+  (0.1ms) rollback transaction
1867
+  (0.1ms) begin transaction
1868
+  (0.1ms) commit transaction
1869
+  (0.1ms) begin transaction
1870
+  (0.2ms) rollback transaction
1871
+  (0.4ms) begin transaction
1872
+  (0.1ms) commit transaction
1873
+  (0.1ms) begin transaction
1874
+  (0.1ms) rollback transaction
1875
+  (0.3ms) begin transaction
1876
+  (0.1ms) commit transaction
1877
+  (0.1ms) begin transaction
1878
+  (0.1ms) rollback transaction
1879
+  (0.2ms) begin transaction
1880
+  (0.0ms) commit transaction
1881
+  (0.0ms) begin transaction
1882
+  (0.1ms) SAVEPOINT active_record_1
1883
+ SQL (3.8ms) INSERT INTO "asyncapi_server_jobs" ("secret") VALUES (?) [["secret", "12312"]]
1884
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1885
+ Processing by Asyncapi::Server::V1::JobsController#destroy as JSON
1886
+ Parameters: {"secret"=>"12312", "id"=>"1"}
1887
+ Asyncapi::Server::Job Load (0.2ms) SELECT "asyncapi_server_jobs".* FROM "asyncapi_server_jobs" WHERE "asyncapi_server_jobs"."id" = ? AND "asyncapi_server_jobs"."secret" = ? LIMIT 1 [["id", 1], ["secret", "12312"]]
1888
+  (0.1ms) SAVEPOINT active_record_1
1889
+ SQL (0.5ms) DELETE FROM "asyncapi_server_jobs" WHERE "asyncapi_server_jobs"."id" = ? [["id", 1]]
1890
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1891
+ Completed 204 No Content in 78ms (ActiveRecord: 0.8ms)
1892
+  (3.2ms) rollback transaction
1893
+  (0.1ms) begin transaction
1894
+  (0.0ms) commit transaction
1895
+  (0.0ms) begin transaction
1896
+  (0.1ms) SAVEPOINT active_record_1
1897
+ SQL (3.4ms) INSERT INTO "asyncapi_server_jobs" ("secret") VALUES (?) [["secret", "12312"]]
1898
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1899
+ Processing by Asyncapi::Server::V1::JobsController#destroy as JSON
1900
+ Parameters: {"secret"=>"12315", "id"=>"1"}
1901
+ Asyncapi::Server::Job Load (0.1ms) SELECT "asyncapi_server_jobs".* FROM "asyncapi_server_jobs" WHERE "asyncapi_server_jobs"."id" = ? AND "asyncapi_server_jobs"."secret" = ? LIMIT 1 [["id", 1], ["secret", "12315"]]
1902
+ Rendered text template (0.3ms)
1903
+ Completed 404 Not Found in 10ms (Views: 8.3ms | ActiveRecord: 0.1ms)
1904
+  (2.7ms) rollback transaction
1905
+  (0.3ms) begin transaction
1906
+  (0.4ms) commit transaction
1907
+  (0.5ms) begin transaction
1908
+  (0.3ms) SAVEPOINT active_record_1
1909
+ SQL (11.0ms) INSERT INTO "asyncapi_server_jobs" DEFAULT VALUES
1910
+  (0.2ms) RELEASE SAVEPOINT active_record_1
1911
+  (0.2ms) SAVEPOINT active_record_1
1912
+ SQL (0.3ms) INSERT INTO "asyncapi_server_jobs" DEFAULT VALUES
1913
+  (0.2ms) RELEASE SAVEPOINT active_record_1
1914
+ Processing by Asyncapi::Server::V1::JobsController#index as JSON
1915
+ Parameters: {"page"=>2, "per_page"=>1}
1916
+  (0.2ms) SELECT COUNT(*) FROM "asyncapi_server_jobs"
1917
+ Asyncapi::Server::Job Load (0.2ms) SELECT "asyncapi_server_jobs".* FROM "asyncapi_server_jobs" LIMIT 1 OFFSET 1
1918
+ Completed 200 OK in 47ms (Views: 37.7ms | ActiveRecord: 0.4ms)
1919
+  (3.3ms) rollback transaction
1920
+  (0.3ms) begin transaction
1921
+  (0.1ms) commit transaction
1922
+  (0.1ms) begin transaction
1923
+  (0.1ms) SAVEPOINT active_record_1
1924
+ SQL (7.5ms) INSERT INTO "asyncapi_server_jobs" DEFAULT VALUES
1925
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1926
+ Processing by Asyncapi::Server::V1::JobsController#show as JSON
1927
+ Parameters: {"id"=>"1"}
1928
+ Asyncapi::Server::Job Load (0.1ms) SELECT "asyncapi_server_jobs".* FROM "asyncapi_server_jobs" WHERE "asyncapi_server_jobs"."id" = ? LIMIT 1 [["id", 1]]
1929
+ Completed 200 OK in 45ms (Views: 44.3ms | ActiveRecord: 0.1ms)
1930
+  (3.4ms) rollback transaction
1931
+  (0.1ms) begin transaction
1932
+  (0.0ms) commit transaction
1933
+  (0.0ms) begin transaction
1934
+  (0.0ms) rollback transaction
1935
+  (0.1ms) begin transaction
1936
+  (0.0ms) commit transaction
1937
+  (0.0ms) begin transaction
1938
+  (0.0ms) rollback transaction
1939
+  (0.2ms) begin transaction
1940
+  (0.0ms) commit transaction
1941
+  (0.0ms) begin transaction
1942
+  (0.0ms) SAVEPOINT active_record_1
1943
+ SQL (3.4ms) INSERT INTO "asyncapi_server_jobs" ("status", "callback_url", "class_name", "params") VALUES (?, ?, ?, ?) [["status", 2], ["callback_url", "http://callback_url.com"], ["class_name", "CreateStorageFacility"], ["params", "{\"param\":\"values\"}"]]
1944
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1945
+  (1.7ms) rollback transaction
1946
+  (0.1ms) begin transaction
1947
+  (0.1ms) commit transaction
1948
+  (0.1ms) begin transaction
1949
+  (0.1ms) rollback transaction
1950
+  (0.1ms) begin transaction
1951
+  (0.0ms) commit transaction
1952
+  (0.1ms) begin transaction
1953
+  (0.1ms) rollback transaction
1954
+  (0.1ms) begin transaction
1955
+  (0.1ms) commit transaction
1956
+  (0.0ms) begin transaction
1957
+  (0.1ms) rollback transaction
1958
+  (0.1ms) begin transaction
1959
+  (0.1ms) commit transaction
1960
+  (0.1ms) begin transaction
1961
+  (0.1ms) rollback transaction
1962
+  (6.0ms) DELETE FROM "asyncapi_server_jobs";
1963
+  (1.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
1964
+  (1.5ms) DELETE FROM sqlite_sequence where name = 'asyncapi_server_jobs';
1965
+  (0.1ms) begin transaction
1966
+  (0.1ms) commit transaction
1967
+  (0.0ms) begin transaction
1968
+ Started POST "/tests" for 127.0.0.1 at 2016-07-21 00:32:46 +0000
1969
+ Processing by TestsController#create as HTML
1970
+ Parameters: {"job"=>{"callback_url"=>"callback_url", "params"=>"{\"client\":\"params\"}", "secret"=>"secret", "expired_at"=>"2016-07-23 00:32:46 UTC"}}
1971
+ Completed 200 OK in 19170ms (Views: 114.4ms | ActiveRecord: 0.0ms)
1972
+  (0.1ms) rollback transaction
1973
+  (4.6ms) DELETE FROM "asyncapi_server_jobs";
1974
+  (1.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
1975
+  (1.3ms) DELETE FROM sqlite_sequence where name = 'asyncapi_server_jobs';
1976
+  (0.1ms) begin transaction
1977
+  (0.0ms) commit transaction
1978
+  (0.0ms) begin transaction
1979
+ Started POST "/tests" for 127.0.0.1 at 2016-07-21 00:35:01 +0000
1980
+ Processing by TestsController#create as HTML
1981
+ Parameters: {"job"=>{"callback_url"=>"callback_url", "params"=>"{\"client\":\"params\"}", "secret"=>"secret", "expired_at"=>"2016-07-23 00:35:01 UTC"}}
1982
+  (0.1ms) SAVEPOINT active_record_1
1983
+ SQL (4.9ms) INSERT INTO "asyncapi_server_jobs" ("callback_url", "class_name", "params", "secret", "expired_at") VALUES (?, ?, ?, ?, ?) [["callback_url", "callback_url"], ["class_name", "Runner"], ["params", "{\"client\":\"params\"}"], ["secret", "secret"], ["expired_at", "2016-07-23 00:35:01.000000"]]
1984
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1985
+ Completed 200 OK in 44319ms (Views: 107.2ms | ActiveRecord: 5.0ms)
1986
+  (1.7ms) rollback transaction
1987
+  (4.5ms) DELETE FROM "asyncapi_server_jobs";
1988
+  (0.9ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
1989
+  (1.1ms) DELETE FROM sqlite_sequence where name = 'asyncapi_server_jobs';
1990
+  (0.1ms) begin transaction
1991
+  (0.0ms) commit transaction
1992
+  (0.0ms) begin transaction
1993
+ Started POST "/tests" for 127.0.0.1 at 2016-07-21 00:36:18 +0000
1994
+ Processing by TestsController#create as HTML
1995
+ Parameters: {"job"=>{"callback_url"=>"callback_url", "params"=>"{\"client\":\"params\"}", "secret"=>"secret", "expired_at"=>"2016-07-23 00:36:18 UTC"}}
1996
+ Completed 200 OK in 22650ms (Views: 62.2ms | ActiveRecord: 0.0ms)
1997
+  (0.1ms) rollback transaction
1998
+  (4.8ms) DELETE FROM "asyncapi_server_jobs";
1999
+  (1.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
2000
+  (1.0ms) DELETE FROM sqlite_sequence where name = 'asyncapi_server_jobs';
2001
+  (0.1ms) begin transaction
2002
+  (0.1ms) commit transaction
2003
+  (0.0ms) begin transaction
2004
+ Started POST "/tests" for 127.0.0.1 at 2016-07-21 00:36:56 +0000
2005
+ Processing by TestsController#create as HTML
2006
+ Parameters: {"job"=>{"callback_url"=>"callback_url", "params"=>"{\"client\":\"params\"}", "secret"=>"secret", "expired_at"=>"2016-07-23 00:36:56 UTC"}}
2007
+ Completed 200 OK in 107030ms (Views: 77.6ms | ActiveRecord: 0.0ms)
2008
+  (0.1ms) rollback transaction
2009
+  (5.3ms) DELETE FROM "asyncapi_server_jobs";
2010
+  (1.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
2011
+  (1.1ms) DELETE FROM sqlite_sequence where name = 'asyncapi_server_jobs';
2012
+  (0.1ms) begin transaction
2013
+  (0.0ms) commit transaction
2014
+  (0.0ms) begin transaction
2015
+ Started POST "/tests" for 127.0.0.1 at 2016-07-21 00:38:53 +0000
2016
+ Processing by TestsController#create as HTML
2017
+ Parameters: {"job"=>{"callback_url"=>"callback_url", "params"=>"{\"client\":\"params\"}", "secret"=>"secret", "expired_at"=>"2016-07-23 00:38:53 UTC"}}
2018
+ Completed 200 OK in 90ms (Views: 53.6ms | ActiveRecord: 0.0ms)
2019
+  (0.1ms) rollback transaction
2020
+  (6.9ms) DELETE FROM "asyncapi_server_jobs";
2021
+  (1.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
2022
+  (1.4ms) DELETE FROM sqlite_sequence where name = 'asyncapi_server_jobs';
2023
+  (0.1ms) begin transaction
2024
+  (0.1ms) commit transaction
2025
+  (0.0ms) begin transaction
2026
+ Started POST "/tests" for 127.0.0.1 at 2016-07-21 00:39:11 +0000
2027
+ Processing by TestsController#create as HTML
2028
+ Parameters: {"job"=>{"callback_url"=>"callback_url", "params"=>"{\"client\":\"params\"}", "secret"=>"secret", "expired_at"=>"2016-07-23 00:39:11 UTC"}}
2029
+ Completed 200 OK in 134ms (Views: 79.2ms | ActiveRecord: 0.0ms)
2030
+  (0.1ms) rollback transaction
2031
+  (4.6ms) DELETE FROM "asyncapi_server_jobs";
2032
+  (1.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
2033
+  (1.1ms) DELETE FROM sqlite_sequence where name = 'asyncapi_server_jobs';
2034
+  (0.1ms) begin transaction
2035
+  (0.0ms) commit transaction
2036
+  (0.0ms) begin transaction
2037
+ Started POST "/tests" for 127.0.0.1 at 2016-07-21 00:39:21 +0000
2038
+ Processing by TestsController#create as HTML
2039
+ Parameters: {"job"=>{"callback_url"=>"callback_url", "params"=>"{\"client\":\"params\"}", "secret"=>"secret", "expired_at"=>"2016-07-23 00:39:21 UTC"}}
2040
+ Completed 200 OK in 55ms (Views: 54.1ms | ActiveRecord: 0.0ms)
2041
+  (0.1ms) rollback transaction
2042
+  (0.1ms) begin transaction
2043
+  (0.0ms) commit transaction
2044
+  (0.1ms) begin transaction
2045
+  (0.1ms) SAVEPOINT active_record_1
2046
+ SQL (3.3ms) INSERT INTO "asyncapi_server_jobs" ("secret") VALUES (?) [["secret", "12312"]]
2047
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2048
+ Processing by Asyncapi::Server::V1::JobsController#destroy as JSON
2049
+ Parameters: {"secret"=>"12312", "id"=>"1"}
2050
+ Asyncapi::Server::Job Load (0.2ms) SELECT "asyncapi_server_jobs".* FROM "asyncapi_server_jobs" WHERE "asyncapi_server_jobs"."id" = ? AND "asyncapi_server_jobs"."secret" = ? LIMIT 1 [["id", 1], ["secret", "12312"]]
2051
+  (0.1ms) SAVEPOINT active_record_1
2052
+ SQL (0.2ms) DELETE FROM "asyncapi_server_jobs" WHERE "asyncapi_server_jobs"."id" = ? [["id", 1]]
2053
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2054
+ Completed 204 No Content in 103ms (ActiveRecord: 0.5ms)
2055
+  (2.5ms) rollback transaction
2056
+  (0.1ms) begin transaction
2057
+  (0.0ms) commit transaction
2058
+  (0.1ms) begin transaction
2059
+  (0.1ms) SAVEPOINT active_record_1
2060
+ SQL (3.8ms) INSERT INTO "asyncapi_server_jobs" ("secret") VALUES (?) [["secret", "12312"]]
2061
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2062
+ Processing by Asyncapi::Server::V1::JobsController#destroy as JSON
2063
+ Parameters: {"secret"=>"12315", "id"=>"1"}
2064
+ Asyncapi::Server::Job Load (0.1ms) SELECT "asyncapi_server_jobs".* FROM "asyncapi_server_jobs" WHERE "asyncapi_server_jobs"."id" = ? AND "asyncapi_server_jobs"."secret" = ? LIMIT 1 [["id", 1], ["secret", "12315"]]
2065
+ Rendered text template (0.0ms)
2066
+ Completed 404 Not Found in 10ms (Views: 9.0ms | ActiveRecord: 0.1ms)
2067
+  (2.0ms) rollback transaction
2068
+  (0.1ms) begin transaction
2069
+  (0.1ms) commit transaction
2070
+  (0.0ms) begin transaction
2071
+  (0.1ms) SAVEPOINT active_record_1
2072
+ SQL (4.0ms) INSERT INTO "asyncapi_server_jobs" DEFAULT VALUES
2073
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2074
+  (0.0ms) SAVEPOINT active_record_1
2075
+ SQL (0.2ms) INSERT INTO "asyncapi_server_jobs" DEFAULT VALUES
2076
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2077
+ Processing by Asyncapi::Server::V1::JobsController#index as JSON
2078
+ Parameters: {"page"=>2, "per_page"=>1}
2079
+  (0.1ms) SELECT COUNT(*) FROM "asyncapi_server_jobs"
2080
+ Asyncapi::Server::Job Load (0.1ms) SELECT "asyncapi_server_jobs".* FROM "asyncapi_server_jobs" LIMIT 1 OFFSET 1
2081
+ Completed 200 OK in 58ms (Views: 45.7ms | ActiveRecord: 0.2ms)
2082
+  (3.4ms) rollback transaction
2083
+  (0.1ms) begin transaction
2084
+  (0.1ms) commit transaction
2085
+  (0.0ms) begin transaction
2086
+  (0.1ms) SAVEPOINT active_record_1
2087
+ SQL (4.3ms) INSERT INTO "asyncapi_server_jobs" DEFAULT VALUES
2088
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2089
+ Processing by Asyncapi::Server::V1::JobsController#show as JSON
2090
+ Parameters: {"id"=>"1"}
2091
+ Asyncapi::Server::Job Load (0.1ms) SELECT "asyncapi_server_jobs".* FROM "asyncapi_server_jobs" WHERE "asyncapi_server_jobs"."id" = ? LIMIT 1 [["id", 1]]
2092
+ Completed 200 OK in 69ms (Views: 67.9ms | ActiveRecord: 0.1ms)
2093
+  (3.1ms) rollback transaction
2094
+  (0.1ms) begin transaction
2095
+  (0.1ms) commit transaction
2096
+  (0.1ms) begin transaction
2097
+  (0.1ms) rollback transaction
2098
+  (0.1ms) begin transaction
2099
+  (0.0ms) commit transaction
2100
+  (0.0ms) begin transaction
2101
+  (0.1ms) SAVEPOINT active_record_1
2102
+ SQL (4.8ms) INSERT INTO "asyncapi_server_jobs" ("class_name", "params", "callback_url", "secret") VALUES (?, ?, ?, ?) [["class_name", "Runner"], ["params", "{\"some\":\"params\"}"], ["callback_url", "client_job_url"], ["secret", "sekret"]]
2103
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2104
+ Asyncapi::Server::Job Load (0.0ms) SELECT "asyncapi_server_jobs".* FROM "asyncapi_server_jobs" WHERE "asyncapi_server_jobs"."id" = ? LIMIT 1 [["id", 1]]
2105
+  (0.0ms) SAVEPOINT active_record_1
2106
+ SQL (0.2ms) UPDATE "asyncapi_server_jobs" SET "status" = ? WHERE "asyncapi_server_jobs"."id" = ? [["status", 1], ["id", 1]]
2107
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2108
+ Asyncapi::Server::Job Load (0.1ms) SELECT "asyncapi_server_jobs".* FROM "asyncapi_server_jobs" WHERE "asyncapi_server_jobs"."id" = ? LIMIT 1 [["id", 1]]
2109
+  (3.1ms) rollback transaction
2110
+  (0.1ms) begin transaction
2111
+  (0.1ms) commit transaction
2112
+  (0.1ms) begin transaction
2113
+  (0.0ms) SAVEPOINT active_record_1
2114
+ SQL (3.3ms) INSERT INTO "asyncapi_server_jobs" ("class_name", "callback_url", "secret") VALUES (?, ?, ?) [["class_name", "Runner"], ["callback_url", "client_job_url"], ["secret", "sekret"]]
2115
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2116
+ Asyncapi::Server::Job Load (0.1ms) SELECT "asyncapi_server_jobs".* FROM "asyncapi_server_jobs" WHERE "asyncapi_server_jobs"."id" = ? LIMIT 1 [["id", 1]]
2117
+  (0.1ms) SAVEPOINT active_record_1
2118
+ SQL (0.1ms) UPDATE "asyncapi_server_jobs" SET "status" = ? WHERE "asyncapi_server_jobs"."id" = ? [["status", 2], ["id", 1]]
2119
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2120
+ Asyncapi::Server::Job Load (0.0ms) SELECT "asyncapi_server_jobs".* FROM "asyncapi_server_jobs" WHERE "asyncapi_server_jobs"."id" = ? LIMIT 1 [["id", 1]]
2121
+  (3.0ms) rollback transaction
2122
+  (0.1ms) begin transaction
2123
+  (0.0ms) commit transaction
2124
+  (0.1ms) begin transaction
2125
+  (0.0ms) rollback transaction
2126
+  (0.1ms) begin transaction
2127
+  (0.1ms) commit transaction
2128
+  (0.0ms) begin transaction
2129
+  (0.1ms) rollback transaction
2130
+  (0.1ms) begin transaction
2131
+  (0.0ms) commit transaction
2132
+  (0.0ms) begin transaction
2133
+  (0.1ms) rollback transaction
2134
+  (0.1ms) begin transaction
2135
+  (0.1ms) commit transaction
2136
+  (0.1ms) begin transaction
2137
+  (0.1ms) rollback transaction
2138
+  (0.1ms) begin transaction
2139
+  (0.1ms) commit transaction
2140
+  (0.1ms) begin transaction
2141
+  (0.1ms) rollback transaction
2142
+  (0.1ms) begin transaction
2143
+  (0.1ms) commit transaction
2144
+  (0.0ms) begin transaction
2145
+  (0.0ms) rollback transaction
2146
+  (0.1ms) begin transaction
2147
+  (0.1ms) commit transaction
2148
+  (0.1ms) begin transaction
2149
+  (0.1ms) rollback transaction
2150
+  (0.1ms) begin transaction
2151
+  (0.0ms) commit transaction
2152
+  (0.0ms) begin transaction
2153
+  (0.0ms) rollback transaction
2154
+  (0.1ms) begin transaction
2155
+  (0.1ms) commit transaction
2156
+  (0.0ms) begin transaction
2157
+  (0.1ms) SAVEPOINT active_record_1
2158
+ SQL (4.3ms) INSERT INTO "asyncapi_server_jobs" ("status", "callback_url", "class_name", "params") VALUES (?, ?, ?, ?) [["status", 2], ["callback_url", "http://callback_url.com"], ["class_name", "CreateStorageFacility"], ["params", "{\"param\":\"values\"}"]]
2159
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2160
+  (2.2ms) rollback transaction
2161
+  (0.1ms) begin transaction
2162
+  (0.1ms) commit transaction
2163
+  (0.1ms) begin transaction
2164
+  (0.1ms) rollback transaction
2165
+  (0.1ms) begin transaction
2166
+  (0.1ms) commit transaction
2167
+  (0.1ms) begin transaction
2168
+  (0.1ms) rollback transaction
2169
+  (0.2ms) begin transaction
2170
+  (0.1ms) commit transaction
2171
+  (0.0ms) begin transaction
2172
+  (0.1ms) rollback transaction
2173
+  (5.0ms) DELETE FROM "asyncapi_server_jobs";
2174
+  (1.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
2175
+  (1.3ms) DELETE FROM sqlite_sequence where name = 'asyncapi_server_jobs';
2176
+  (0.1ms) begin transaction
2177
+  (0.1ms) commit transaction
2178
+  (0.1ms) begin transaction
2179
+  (0.0ms) rollback transaction
2180
+  (0.1ms) begin transaction
2181
+  (0.0ms) commit transaction
2182
+  (0.0ms) begin transaction
2183
+  (0.1ms) SAVEPOINT active_record_1
2184
+ SQL (2.1ms) INSERT INTO "asyncapi_server_jobs" ("expired_at") VALUES (?) [["expired_at", "2016-07-21 00:43:26.343520"]]
2185
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2186
+  (0.1ms) SAVEPOINT active_record_1
2187
+ SQL (0.1ms) INSERT INTO "asyncapi_server_jobs" ("expired_at") VALUES (?) [["expired_at", "2016-07-21 00:47:26.367579"]]
2188
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2189
+  (0.0ms) SAVEPOINT active_record_1
2190
+ SQL (0.1ms) INSERT INTO "asyncapi_server_jobs" ("expired_at") VALUES (?) [["expired_at", "2016-07-21 00:43:26.369496"]]
2191
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2192
+  (0.0ms) SAVEPOINT active_record_1
2193
+ SQL (0.1ms) INSERT INTO "asyncapi_server_jobs" DEFAULT VALUES
2194
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2195
+  (2.4ms) rollback transaction
2196
+  (4.9ms) DELETE FROM "asyncapi_server_jobs";
2197
+  (1.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
2198
+  (1.0ms) DELETE FROM sqlite_sequence where name = 'asyncapi_server_jobs';
2199
+  (0.0ms) begin transaction
2200
+  (0.0ms) commit transaction
2201
+  (0.0ms) begin transaction
2202
+  (0.1ms) rollback transaction
2203
+  (0.1ms) begin transaction
2204
+  (0.0ms) commit transaction
2205
+  (0.0ms) begin transaction
2206
+  (0.1ms) SAVEPOINT active_record_1
2207
+ SQL (2.0ms) INSERT INTO "asyncapi_server_jobs" ("expired_at") VALUES (?) [["expired_at", "2016-07-21 00:43:42.838687"]]
2208
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2209
+  (0.1ms) SAVEPOINT active_record_1
2210
+ SQL (0.1ms) INSERT INTO "asyncapi_server_jobs" ("expired_at") VALUES (?) [["expired_at", "2016-07-21 00:47:42.863640"]]
2211
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2212
+  (0.0ms) SAVEPOINT active_record_1
2213
+ SQL (0.1ms) INSERT INTO "asyncapi_server_jobs" ("expired_at") VALUES (?) [["expired_at", "2016-07-21 00:43:42.865403"]]
2214
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2215
+  (0.0ms) SAVEPOINT active_record_1
2216
+ SQL (0.1ms) INSERT INTO "asyncapi_server_jobs" DEFAULT VALUES
2217
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2218
+  (2.8ms) rollback transaction
2219
+  (4.7ms) DELETE FROM "asyncapi_server_jobs";
2220
+  (1.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
2221
+  (1.2ms) DELETE FROM sqlite_sequence where name = 'asyncapi_server_jobs';
2222
+  (0.1ms) begin transaction
2223
+  (0.0ms) commit transaction
2224
+  (0.0ms) begin transaction
2225
+  (0.1ms) rollback transaction
2226
+  (0.1ms) begin transaction
2227
+  (0.0ms) commit transaction
2228
+  (0.1ms) begin transaction
2229
+  (0.1ms) rollback transaction
2230
+  (0.1ms) begin transaction
2231
+  (0.0ms) commit transaction
2232
+  (0.0ms) begin transaction
2233
+  (0.0ms) rollback transaction
2234
+  (0.1ms) begin transaction
2235
+  (0.0ms) commit transaction
2236
+  (0.0ms) begin transaction
2237
+  (0.1ms) rollback transaction
2238
+  (0.1ms) begin transaction
2239
+  (0.1ms) commit transaction
2240
+  (0.0ms) begin transaction
2241
+  (0.0ms) SAVEPOINT active_record_1
2242
+ SQL (3.0ms) INSERT INTO "asyncapi_server_jobs" ("status", "callback_url", "class_name", "params") VALUES (?, ?, ?, ?) [["status", 2], ["callback_url", "http://callback_url.com"], ["class_name", "CreateStorageFacility"], ["params", "{\"param\":\"values\"}"]]
2243
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2244
+  (2.5ms) rollback transaction
2245
+  (0.1ms) begin transaction
2246
+  (0.0ms) commit transaction
2247
+  (0.0ms) begin transaction
2248
+  (0.0ms) rollback transaction
2249
+  (0.1ms) begin transaction
2250
+  (0.0ms) commit transaction
2251
+  (0.0ms) begin transaction
2252
+  (0.1ms) rollback transaction
2253
+  (0.1ms) begin transaction
2254
+  (0.0ms) commit transaction
2255
+  (0.0ms) begin transaction
2256
+  (0.1ms) SAVEPOINT active_record_1
2257
+ SQL (4.0ms) INSERT INTO "asyncapi_server_jobs" ("expired_at") VALUES (?) [["expired_at", "2016-07-21 00:45:15.587524"]]
2258
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2259
+  (0.0ms) SAVEPOINT active_record_1
2260
+ SQL (0.1ms) INSERT INTO "asyncapi_server_jobs" ("expired_at") VALUES (?) [["expired_at", "2016-07-21 00:49:15.593568"]]
2261
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2262
+  (0.0ms) SAVEPOINT active_record_1
2263
+ SQL (0.1ms) INSERT INTO "asyncapi_server_jobs" ("expired_at") VALUES (?) [["expired_at", "2016-07-21 00:45:15.595169"]]
2264
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2265
+  (0.0ms) SAVEPOINT active_record_1
2266
+ SQL (0.1ms) INSERT INTO "asyncapi_server_jobs" DEFAULT VALUES
2267
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2268
+  (1.7ms) rollback transaction
2269
+  (4.9ms) DELETE FROM "asyncapi_server_jobs";
2270
+  (1.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
2271
+  (1.2ms) DELETE FROM sqlite_sequence where name = 'asyncapi_server_jobs';
2272
+  (0.1ms) begin transaction
2273
+  (0.0ms) commit transaction
2274
+  (0.0ms) begin transaction
2275
+  (0.1ms) rollback transaction
2276
+  (0.1ms) begin transaction
2277
+  (0.0ms) commit transaction
2278
+  (0.0ms) begin transaction
2279
+  (0.1ms) rollback transaction
2280
+  (0.1ms) begin transaction
2281
+  (0.1ms) commit transaction
2282
+  (0.0ms) begin transaction
2283
+  (0.1ms) rollback transaction
2284
+  (0.1ms) begin transaction
2285
+  (0.0ms) commit transaction
2286
+  (0.0ms) begin transaction
2287
+  (0.0ms) SAVEPOINT active_record_1
2288
+ SQL (2.9ms) INSERT INTO "asyncapi_server_jobs" ("status", "callback_url", "class_name", "params") VALUES (?, ?, ?, ?) [["status", 2], ["callback_url", "http://callback_url.com"], ["class_name", "CreateStorageFacility"], ["params", "{\"param\":\"values\"}"]]
2289
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2290
+  (2.1ms) rollback transaction
2291
+  (0.1ms) begin transaction
2292
+  (0.1ms) commit transaction
2293
+  (0.0ms) begin transaction
2294
+  (0.0ms) rollback transaction
2295
+  (0.1ms) begin transaction
2296
+  (0.0ms) commit transaction
2297
+  (0.1ms) begin transaction
2298
+  (0.1ms) rollback transaction
2299
+  (0.1ms) begin transaction
2300
+  (0.0ms) commit transaction
2301
+  (0.0ms) begin transaction
2302
+  (0.1ms) rollback transaction
2303
+  (0.1ms) begin transaction
2304
+  (0.0ms) commit transaction
2305
+  (0.0ms) begin transaction
2306
+  (0.1ms) SAVEPOINT active_record_1
2307
+ SQL (4.5ms) INSERT INTO "asyncapi_server_jobs" ("expired_at") VALUES (?) [["expired_at", "2016-07-21 00:46:35.287666"]]
2308
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2309
+  (0.0ms) SAVEPOINT active_record_1
2310
+ SQL (0.1ms) INSERT INTO "asyncapi_server_jobs" ("expired_at") VALUES (?) [["expired_at", "2016-07-21 00:50:35.294208"]]
2311
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2312
+  (0.1ms) SAVEPOINT active_record_1
2313
+ SQL (0.1ms) INSERT INTO "asyncapi_server_jobs" ("expired_at") VALUES (?) [["expired_at", "2016-07-21 00:46:35.296113"]]
2314
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2315
+  (0.0ms) SAVEPOINT active_record_1
2316
+ SQL (0.1ms) INSERT INTO "asyncapi_server_jobs" DEFAULT VALUES
2317
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2318
+ Asyncapi::Server::Job Load (0.1ms) SELECT "asyncapi_server_jobs".* FROM "asyncapi_server_jobs" WHERE ("asyncapi_server_jobs"."expired_at" IS NOT NULL) AND ("asyncapi_server_jobs"."expired_at" < '2016-07-21 00:48:35.317513')
2319
+  (2.1ms) rollback transaction
2320
+  (6.0ms) DELETE FROM "asyncapi_server_jobs";
2321
+  (1.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
2322
+  (1.4ms) DELETE FROM sqlite_sequence where name = 'asyncapi_server_jobs';
2323
+  (0.1ms) begin transaction
2324
+  (0.0ms) commit transaction
2325
+  (0.0ms) begin transaction
2326
+  (0.1ms) rollback transaction
2327
+  (0.1ms) begin transaction
2328
+  (0.1ms) commit transaction
2329
+  (0.0ms) begin transaction
2330
+  (0.1ms) SAVEPOINT active_record_1
2331
+ SQL (2.5ms) INSERT INTO "asyncapi_server_jobs" ("expired_at") VALUES (?) [["expired_at", "2016-07-21 00:46:51.370476"]]
2332
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2333
+  (0.1ms) SAVEPOINT active_record_1
2334
+ SQL (0.1ms) INSERT INTO "asyncapi_server_jobs" ("expired_at") VALUES (?) [["expired_at", "2016-07-21 00:50:51.399500"]]
2335
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2336
+  (0.1ms) SAVEPOINT active_record_1
2337
+ SQL (0.1ms) INSERT INTO "asyncapi_server_jobs" ("expired_at") VALUES (?) [["expired_at", "2016-07-21 00:46:51.401789"]]
2338
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2339
+  (0.1ms) SAVEPOINT active_record_1
2340
+ SQL (0.1ms) INSERT INTO "asyncapi_server_jobs" DEFAULT VALUES
2341
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2342
+  (3.5ms) rollback transaction
2343
+  (4.7ms) DELETE FROM "asyncapi_server_jobs";
2344
+  (1.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
2345
+  (1.2ms) DELETE FROM sqlite_sequence where name = 'asyncapi_server_jobs';
2346
+  (0.1ms) begin transaction
2347
+  (0.0ms) commit transaction
2348
+  (0.0ms) begin transaction
2349
+  (0.1ms) rollback transaction
2350
+  (0.1ms) begin transaction
2351
+  (0.0ms) commit transaction
2352
+  (0.0ms) begin transaction
2353
+  (0.1ms) SAVEPOINT active_record_1
2354
+ SQL (2.7ms) INSERT INTO "asyncapi_server_jobs" ("expired_at") VALUES (?) [["expired_at", "2016-07-21 00:47:44.106925"]]
2355
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2356
+  (0.0ms) SAVEPOINT active_record_1
2357
+ SQL (0.1ms) INSERT INTO "asyncapi_server_jobs" ("expired_at") VALUES (?) [["expired_at", "2016-07-21 00:51:44.131574"]]
2358
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2359
+  (0.1ms) SAVEPOINT active_record_1
2360
+ SQL (0.1ms) INSERT INTO "asyncapi_server_jobs" ("expired_at") VALUES (?) [["expired_at", "2016-07-21 00:47:44.133703"]]
2361
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2362
+  (0.0ms) SAVEPOINT active_record_1
2363
+ SQL (0.1ms) INSERT INTO "asyncapi_server_jobs" DEFAULT VALUES
2364
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2365
+ Asyncapi::Server::Job Load (0.8ms) SELECT "asyncapi_server_jobs".* FROM "asyncapi_server_jobs" WHERE ("asyncapi_server_jobs"."expired_at" IS NOT NULL) AND ("asyncapi_server_jobs"."expired_at" < '2016-07-21 00:49:44.157420') ORDER BY "asyncapi_server_jobs"."id" ASC LIMIT 1000
2366
+  (0.1ms) SAVEPOINT active_record_1
2367
+ SQL (0.1ms) DELETE FROM "asyncapi_server_jobs" WHERE "asyncapi_server_jobs"."id" = ? [["id", 1]]
2368
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2369
+  (0.0ms) SAVEPOINT active_record_1
2370
+ SQL (0.1ms) DELETE FROM "asyncapi_server_jobs" WHERE "asyncapi_server_jobs"."id" = ? [["id", 3]]
2371
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2372
+ Asyncapi::Server::Job Load (0.1ms) SELECT "asyncapi_server_jobs".* FROM "asyncapi_server_jobs"
2373
+  (3.0ms) rollback transaction
2374
+  (4.7ms) DELETE FROM "asyncapi_server_jobs";
2375
+  (1.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
2376
+  (1.2ms) DELETE FROM sqlite_sequence where name = 'asyncapi_server_jobs';
2377
+  (0.1ms) begin transaction
2378
+  (0.0ms) commit transaction
2379
+  (0.0ms) begin transaction
2380
+  (0.2ms) rollback transaction
2381
+  (0.2ms) begin transaction
2382
+  (0.1ms) commit transaction
2383
+  (0.0ms) begin transaction
2384
+  (0.1ms) rollback transaction
2385
+  (0.1ms) begin transaction
2386
+  (0.1ms) commit transaction
2387
+  (0.1ms) begin transaction
2388
+  (0.1ms) SAVEPOINT active_record_1
2389
+ SQL (3.5ms) INSERT INTO "asyncapi_server_jobs" ("expired_at") VALUES (?) [["expired_at", "2016-07-21 00:53:02.995338"]]
2390
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2391
+  (0.1ms) SAVEPOINT active_record_1
2392
+ SQL (0.3ms) INSERT INTO "asyncapi_server_jobs" ("expired_at") VALUES (?) [["expired_at", "2016-07-21 00:57:03.015609"]]
2393
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2394
+  (0.2ms) SAVEPOINT active_record_1
2395
+ SQL (0.1ms) INSERT INTO "asyncapi_server_jobs" ("expired_at") VALUES (?) [["expired_at", "2016-07-21 00:53:03.019820"]]
2396
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2397
+  (0.0ms) SAVEPOINT active_record_1
2398
+ SQL (0.1ms) INSERT INTO "asyncapi_server_jobs" DEFAULT VALUES
2399
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2400
+ Asyncapi::Server::Job Load (0.1ms) SELECT "asyncapi_server_jobs".* FROM "asyncapi_server_jobs" WHERE ("asyncapi_server_jobs"."expired_at" IS NOT NULL) AND ("asyncapi_server_jobs"."expired_at" < '2016-07-21 00:55:03.042056')
2401
+  (2.1ms) rollback transaction
2402
+  (0.1ms) begin transaction
2403
+  (0.1ms) commit transaction
2404
+  (0.0ms) begin transaction
2405
+  (0.1ms) rollback transaction
2406
+  (0.3ms) begin transaction
2407
+  (0.0ms) commit transaction
2408
+  (0.0ms) begin transaction
2409
+  (0.0ms) rollback transaction
2410
+  (0.2ms) begin transaction
2411
+  (0.0ms) commit transaction
2412
+  (0.0ms) begin transaction
2413
+  (0.1ms) rollback transaction
2414
+  (0.1ms) begin transaction
2415
+  (0.1ms) commit transaction
2416
+  (0.0ms) begin transaction
2417
+  (0.1ms) SAVEPOINT active_record_1
2418
+ SQL (3.5ms) INSERT INTO "asyncapi_server_jobs" ("status", "callback_url", "class_name", "params") VALUES (?, ?, ?, ?) [["status", 2], ["callback_url", "http://callback_url.com"], ["class_name", "CreateStorageFacility"], ["params", "{\"param\":\"values\"}"]]
2419
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2420
+  (1.6ms) rollback transaction
2421
+  (0.1ms) begin transaction
2422
+  (0.0ms) commit transaction
2423
+  (0.1ms) begin transaction
2424
+  (0.1ms) rollback transaction
2425
+  (0.1ms) begin transaction
2426
+  (0.0ms) commit transaction
2427
+  (0.0ms) begin transaction
2428
+  (0.1ms) rollback transaction
2429
+  (0.1ms) begin transaction
2430
+  (0.1ms) commit transaction
2431
+  (0.0ms) begin transaction
2432
+  (0.1ms) rollback transaction
2433
+  (0.2ms) begin transaction
2434
+  (0.1ms) commit transaction
2435
+  (0.0ms) begin transaction
2436
+  (0.1ms) rollback transaction
2437
+  (0.1ms) begin transaction
2438
+  (0.1ms) commit transaction
2439
+  (0.1ms) begin transaction
2440
+  (0.1ms) rollback transaction
2441
+  (0.2ms) begin transaction
2442
+  (0.0ms) commit transaction
2443
+  (0.0ms) begin transaction
2444
+  (0.0ms) rollback transaction
2445
+  (0.2ms) begin transaction
2446
+  (0.1ms) commit transaction
2447
+  (0.1ms) begin transaction
2448
+  (0.1ms) rollback transaction
2449
+  (0.1ms) begin transaction
2450
+  (0.1ms) commit transaction
2451
+  (0.1ms) begin transaction
2452
+  (0.0ms) SAVEPOINT active_record_1
2453
+ SQL (3.6ms) INSERT INTO "asyncapi_server_jobs" ("expired_at") VALUES (?) [["expired_at", "2016-07-21 00:53:03.128589"]]
2454
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2455
+  (0.0ms) SAVEPOINT active_record_1
2456
+ SQL (0.1ms) INSERT INTO "asyncapi_server_jobs" ("expired_at") VALUES (?) [["expired_at", "2016-07-21 00:57:03.133954"]]
2457
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2458
+  (0.1ms) SAVEPOINT active_record_1
2459
+ SQL (0.1ms) INSERT INTO "asyncapi_server_jobs" ("expired_at") VALUES (?) [["expired_at", "2016-07-21 00:53:03.135633"]]
2460
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2461
+  (0.0ms) SAVEPOINT active_record_1
2462
+ SQL (0.1ms) INSERT INTO "asyncapi_server_jobs" DEFAULT VALUES
2463
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2464
+ Asyncapi::Server::Job Load (0.2ms) SELECT "asyncapi_server_jobs".* FROM "asyncapi_server_jobs" WHERE ("asyncapi_server_jobs"."expired_at" IS NOT NULL) AND ("asyncapi_server_jobs"."expired_at" < '2016-07-21 00:55:03.139176') ORDER BY "asyncapi_server_jobs"."id" ASC LIMIT 1000
2465
+  (0.1ms) SAVEPOINT active_record_1
2466
+ SQL (0.1ms) DELETE FROM "asyncapi_server_jobs" WHERE "asyncapi_server_jobs"."id" = ? [["id", 1]]
2467
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2468
+  (0.0ms) SAVEPOINT active_record_1
2469
+ SQL (0.1ms) DELETE FROM "asyncapi_server_jobs" WHERE "asyncapi_server_jobs"."id" = ? [["id", 3]]
2470
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2471
+ Asyncapi::Server::Job Load (0.1ms) SELECT "asyncapi_server_jobs".* FROM "asyncapi_server_jobs"
2472
+  (3.6ms) rollback transaction
2473
+  (0.1ms) begin transaction
2474
+  (0.1ms) commit transaction
2475
+  (0.1ms) begin transaction
2476
+ Started POST "/tests" for 127.0.0.1 at 2016-07-21 00:55:03 +0000
2477
+ Processing by TestsController#create as HTML
2478
+ Parameters: {"job"=>{"callback_url"=>"callback_url", "params"=>"{\"client\":\"params\"}", "secret"=>"secret", "expired_at"=>"2016-07-23 00:55:03 UTC"}}
2479
+ Completed 200 OK in 55ms (Views: 53.9ms | ActiveRecord: 0.0ms)
2480
+  (0.1ms) rollback transaction
2481
+  (0.1ms) begin transaction
2482
+  (0.0ms) commit transaction
2483
+  (0.0ms) begin transaction
2484
+  (0.0ms) rollback transaction
2485
+  (0.2ms) begin transaction
2486
+  (0.1ms) commit transaction
2487
+  (0.0ms) begin transaction
2488
+  (0.1ms) SAVEPOINT active_record_1
2489
+ SQL (3.9ms) INSERT INTO "asyncapi_server_jobs" ("class_name", "params", "callback_url", "secret") VALUES (?, ?, ?, ?) [["class_name", "Runner"], ["params", "{\"some\":\"params\"}"], ["callback_url", "client_job_url"], ["secret", "sekret"]]
2490
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2491
+ Asyncapi::Server::Job Load (0.1ms) SELECT "asyncapi_server_jobs".* FROM "asyncapi_server_jobs" WHERE "asyncapi_server_jobs"."id" = ? LIMIT 1 [["id", 1]]
2492
+  (0.0ms) SAVEPOINT active_record_1
2493
+ SQL (0.2ms) UPDATE "asyncapi_server_jobs" SET "status" = ? WHERE "asyncapi_server_jobs"."id" = ? [["status", 1], ["id", 1]]
2494
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2495
+ Asyncapi::Server::Job Load (0.1ms) SELECT "asyncapi_server_jobs".* FROM "asyncapi_server_jobs" WHERE "asyncapi_server_jobs"."id" = ? LIMIT 1 [["id", 1]]
2496
+  (2.6ms) rollback transaction
2497
+  (0.2ms) begin transaction
2498
+  (0.0ms) commit transaction
2499
+  (0.1ms) begin transaction
2500
+  (0.0ms) SAVEPOINT active_record_1
2501
+ SQL (2.8ms) INSERT INTO "asyncapi_server_jobs" ("class_name", "callback_url", "secret") VALUES (?, ?, ?) [["class_name", "Runner"], ["callback_url", "client_job_url"], ["secret", "sekret"]]
2502
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2503
+ Asyncapi::Server::Job Load (0.1ms) SELECT "asyncapi_server_jobs".* FROM "asyncapi_server_jobs" WHERE "asyncapi_server_jobs"."id" = ? LIMIT 1 [["id", 1]]
2504
+  (0.1ms) SAVEPOINT active_record_1
2505
+ SQL (0.1ms) UPDATE "asyncapi_server_jobs" SET "status" = ? WHERE "asyncapi_server_jobs"."id" = ? [["status", 2], ["id", 1]]
2506
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2507
+ Asyncapi::Server::Job Load (0.0ms) SELECT "asyncapi_server_jobs".* FROM "asyncapi_server_jobs" WHERE "asyncapi_server_jobs"."id" = ? LIMIT 1 [["id", 1]]
2508
+  (1.6ms) rollback transaction
2509
+  (0.1ms) begin transaction
2510
+  (0.1ms) commit transaction
2511
+  (0.1ms) begin transaction
2512
+  (0.0ms) SAVEPOINT active_record_1
2513
+ SQL (4.0ms) INSERT INTO "asyncapi_server_jobs" DEFAULT VALUES
2514
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2515
+ Processing by Asyncapi::Server::V1::JobsController#show as JSON
2516
+ Parameters: {"id"=>"1"}
2517
+ Asyncapi::Server::Job Load (0.1ms) SELECT "asyncapi_server_jobs".* FROM "asyncapi_server_jobs" WHERE "asyncapi_server_jobs"."id" = ? LIMIT 1 [["id", 1]]
2518
+ Completed 200 OK in 45ms (Views: 44.5ms | ActiveRecord: 0.1ms)
2519
+  (3.5ms) rollback transaction
2520
+  (0.1ms) begin transaction
2521
+  (0.1ms) commit transaction
2522
+  (0.1ms) begin transaction
2523
+  (0.1ms) SAVEPOINT active_record_1
2524
+ SQL (3.9ms) INSERT INTO "asyncapi_server_jobs" ("secret") VALUES (?) [["secret", "12312"]]
2525
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2526
+ Processing by Asyncapi::Server::V1::JobsController#destroy as JSON
2527
+ Parameters: {"secret"=>"12312", "id"=>"1"}
2528
+ Asyncapi::Server::Job Load (0.2ms) SELECT "asyncapi_server_jobs".* FROM "asyncapi_server_jobs" WHERE "asyncapi_server_jobs"."id" = ? AND "asyncapi_server_jobs"."secret" = ? LIMIT 1 [["id", 1], ["secret", "12312"]]
2529
+  (0.1ms) SAVEPOINT active_record_1
2530
+ SQL (0.1ms) DELETE FROM "asyncapi_server_jobs" WHERE "asyncapi_server_jobs"."id" = ? [["id", 1]]
2531
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2532
+ Completed 204 No Content in 61ms (ActiveRecord: 0.5ms)
2533
+  (6.0ms) rollback transaction
2534
+  (0.2ms) begin transaction
2535
+  (0.1ms) commit transaction
2536
+  (0.0ms) begin transaction
2537
+  (0.1ms) SAVEPOINT active_record_1
2538
+ SQL (3.7ms) INSERT INTO "asyncapi_server_jobs" ("secret") VALUES (?) [["secret", "12312"]]
2539
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2540
+ Processing by Asyncapi::Server::V1::JobsController#destroy as JSON
2541
+ Parameters: {"secret"=>"12315", "id"=>"1"}
2542
+ Asyncapi::Server::Job Load (0.1ms) SELECT "asyncapi_server_jobs".* FROM "asyncapi_server_jobs" WHERE "asyncapi_server_jobs"."id" = ? AND "asyncapi_server_jobs"."secret" = ? LIMIT 1 [["id", 1], ["secret", "12315"]]
2543
+ Rendered text template (0.0ms)
2544
+ Completed 404 Not Found in 8ms (Views: 7.0ms | ActiveRecord: 0.1ms)
2545
+  (1.9ms) rollback transaction
2546
+  (0.1ms) begin transaction
2547
+  (0.0ms) commit transaction
2548
+  (0.0ms) begin transaction
2549
+  (0.0ms) SAVEPOINT active_record_1
2550
+ SQL (3.7ms) INSERT INTO "asyncapi_server_jobs" DEFAULT VALUES
2551
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2552
+  (0.0ms) SAVEPOINT active_record_1
2553
+ SQL (0.2ms) INSERT INTO "asyncapi_server_jobs" DEFAULT VALUES
2554
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2555
+ Processing by Asyncapi::Server::V1::JobsController#index as JSON
2556
+ Parameters: {"page"=>2, "per_page"=>1}
2557
+  (0.1ms) SELECT COUNT(*) FROM "asyncapi_server_jobs"
2558
+ Asyncapi::Server::Job Load (0.1ms) SELECT "asyncapi_server_jobs".* FROM "asyncapi_server_jobs" LIMIT 1 OFFSET 1
2559
+ Completed 200 OK in 42ms (Views: 33.2ms | ActiveRecord: 0.2ms)
2560
+  (3.1ms) rollback transaction
2561
+  (5.8ms) DELETE FROM "asyncapi_server_jobs";
2562
+  (2.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
2563
+  (8.9ms) DELETE FROM sqlite_sequence where name = 'asyncapi_server_jobs';
2564
+  (0.1ms) begin transaction
2565
+  (0.1ms) commit transaction
2566
+  (0.0ms) begin transaction
2567
+  (0.1ms) rollback transaction
2568
+  (0.5ms) begin transaction
2569
+  (0.1ms) commit transaction
2570
+  (0.0ms) begin transaction
2571
+  (0.1ms) rollback transaction
2572
+  (0.1ms) begin transaction
2573
+  (0.1ms) commit transaction
2574
+  (0.1ms) begin transaction
2575
+ Started POST "/tests" for 127.0.0.1 at 2016-07-21 02:09:32 +0000
2576
+ Processing by TestsController#create as HTML
2577
+ Parameters: {"job"=>{"callback_url"=>"callback_url", "params"=>"{\"client\":\"params\"}", "secret"=>"secret"}}
2578
+ Completed 500 Internal Server Error in 12ms (ActiveRecord: 0.0ms)
2579
+  (0.1ms) rollback transaction
2580
+  (0.1ms) begin transaction
2581
+  (0.0ms) commit transaction
2582
+  (0.0ms) begin transaction
2583
+  (0.1ms) rollback transaction
2584
+  (0.1ms) begin transaction
2585
+  (0.1ms) commit transaction
2586
+  (0.1ms) begin transaction
2587
+  (0.5ms) SAVEPOINT active_record_1
2588
+ SQL (3.1ms) INSERT INTO "asyncapi_server_jobs" ("class_name", "params", "callback_url", "secret") VALUES (?, ?, ?, ?) [["class_name", "Runner"], ["params", "{\"some\":\"params\"}"], ["callback_url", "client_job_url"], ["secret", "sekret"]]
2589
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2590
+ Asyncapi::Server::Job Load (0.1ms) SELECT "asyncapi_server_jobs".* FROM "asyncapi_server_jobs" WHERE "asyncapi_server_jobs"."id" = ? LIMIT 1 [["id", 1]]
2591
+  (0.1ms) SAVEPOINT active_record_1
2592
+ SQL (3.1ms) UPDATE "asyncapi_server_jobs" SET "status" = ? WHERE "asyncapi_server_jobs"."id" = ? [["status", 1], ["id", 1]]
2593
+  (0.3ms) RELEASE SAVEPOINT active_record_1
2594
+ Asyncapi::Server::Job Load (0.1ms) SELECT "asyncapi_server_jobs".* FROM "asyncapi_server_jobs" WHERE "asyncapi_server_jobs"."id" = ? LIMIT 1 [["id", 1]]
2595
+  (2.8ms) rollback transaction
2596
+  (0.1ms) begin transaction
2597
+  (0.0ms) commit transaction
2598
+  (0.0ms) begin transaction
2599
+  (0.0ms) SAVEPOINT active_record_1
2600
+ SQL (3.6ms) INSERT INTO "asyncapi_server_jobs" ("class_name", "callback_url", "secret") VALUES (?, ?, ?) [["class_name", "Runner"], ["callback_url", "client_job_url"], ["secret", "sekret"]]
2601
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2602
+ Asyncapi::Server::Job Load (0.1ms) SELECT "asyncapi_server_jobs".* FROM "asyncapi_server_jobs" WHERE "asyncapi_server_jobs"."id" = ? LIMIT 1 [["id", 1]]
2603
+  (0.1ms) SAVEPOINT active_record_1
2604
+ SQL (0.1ms) UPDATE "asyncapi_server_jobs" SET "status" = ? WHERE "asyncapi_server_jobs"."id" = ? [["status", 2], ["id", 1]]
2605
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2606
+ Asyncapi::Server::Job Load (0.1ms) SELECT "asyncapi_server_jobs".* FROM "asyncapi_server_jobs" WHERE "asyncapi_server_jobs"."id" = ? LIMIT 1 [["id", 1]]
2607
+  (4.0ms) rollback transaction
2608
+  (0.1ms) begin transaction
2609
+  (0.0ms) commit transaction
2610
+  (0.1ms) begin transaction
2611
+  (0.1ms) SAVEPOINT active_record_1
2612
+ SQL (4.3ms) INSERT INTO "asyncapi_server_jobs" ("secret") VALUES (?) [["secret", "12312"]]
2613
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2614
+ Processing by Asyncapi::Server::V1::JobsController#destroy as JSON
2615
+ Parameters: {"secret"=>"12312", "id"=>"1"}
2616
+ Asyncapi::Server::Job Load (0.1ms) SELECT "asyncapi_server_jobs".* FROM "asyncapi_server_jobs" WHERE "asyncapi_server_jobs"."id" = ? AND "asyncapi_server_jobs"."secret" = ? LIMIT 1 [["id", 1], ["secret", "12312"]]
2617
+  (0.1ms) SAVEPOINT active_record_1
2618
+ SQL (0.5ms) DELETE FROM "asyncapi_server_jobs" WHERE "asyncapi_server_jobs"."id" = ? [["id", 1]]
2619
+  (0.3ms) RELEASE SAVEPOINT active_record_1
2620
+ Completed 204 No Content in 94ms (ActiveRecord: 1.0ms)
2621
+  (2.8ms) rollback transaction
2622
+  (0.1ms) begin transaction
2623
+  (0.0ms) commit transaction
2624
+  (0.1ms) begin transaction
2625
+  (0.0ms) SAVEPOINT active_record_1
2626
+ SQL (8.7ms) INSERT INTO "asyncapi_server_jobs" ("secret") VALUES (?) [["secret", "12312"]]
2627
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2628
+ Processing by Asyncapi::Server::V1::JobsController#destroy as JSON
2629
+ Parameters: {"secret"=>"12315", "id"=>"1"}
2630
+ Asyncapi::Server::Job Load (0.1ms) SELECT "asyncapi_server_jobs".* FROM "asyncapi_server_jobs" WHERE "asyncapi_server_jobs"."id" = ? AND "asyncapi_server_jobs"."secret" = ? LIMIT 1 [["id", 1], ["secret", "12315"]]
2631
+ Rendered text template (0.0ms)
2632
+ Completed 404 Not Found in 10ms (Views: 8.4ms | ActiveRecord: 0.1ms)
2633
+  (1.7ms) rollback transaction
2634
+  (0.1ms) begin transaction
2635
+  (0.1ms) commit transaction
2636
+  (0.0ms) begin transaction
2637
+  (0.0ms) SAVEPOINT active_record_1
2638
+ SQL (2.9ms) INSERT INTO "asyncapi_server_jobs" DEFAULT VALUES
2639
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2640
+ Processing by Asyncapi::Server::V1::JobsController#show as JSON
2641
+ Parameters: {"id"=>"1"}
2642
+ Asyncapi::Server::Job Load (0.1ms) SELECT "asyncapi_server_jobs".* FROM "asyncapi_server_jobs" WHERE "asyncapi_server_jobs"."id" = ? LIMIT 1 [["id", 1]]
2643
+ Completed 200 OK in 54ms (Views: 52.7ms | ActiveRecord: 0.1ms)
2644
+  (3.0ms) rollback transaction
2645
+  (0.1ms) begin transaction
2646
+  (0.1ms) commit transaction
2647
+  (0.0ms) begin transaction
2648
+  (0.1ms) SAVEPOINT active_record_1
2649
+ SQL (4.2ms) INSERT INTO "asyncapi_server_jobs" DEFAULT VALUES
2650
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2651
+  (0.1ms) SAVEPOINT active_record_1
2652
+ SQL (0.2ms) INSERT INTO "asyncapi_server_jobs" DEFAULT VALUES
2653
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2654
+ Processing by Asyncapi::Server::V1::JobsController#index as JSON
2655
+ Parameters: {"page"=>2, "per_page"=>1}
2656
+  (0.1ms) SELECT COUNT(*) FROM "asyncapi_server_jobs"
2657
+ Asyncapi::Server::Job Load (0.1ms) SELECT "asyncapi_server_jobs".* FROM "asyncapi_server_jobs" LIMIT 1 OFFSET 1
2658
+ Completed 200 OK in 57ms (Views: 44.2ms | ActiveRecord: 0.2ms)
2659
+  (3.2ms) rollback transaction
2660
+  (0.1ms) begin transaction
2661
+  (0.1ms) commit transaction
2662
+  (0.1ms) begin transaction
2663
+  (0.1ms) rollback transaction
2664
+  (0.1ms) begin transaction
2665
+  (0.1ms) commit transaction
2666
+  (0.1ms) begin transaction
2667
+  (0.1ms) rollback transaction
2668
+  (0.1ms) begin transaction
2669
+  (0.1ms) commit transaction
2670
+  (0.0ms) begin transaction
2671
+  (0.1ms) rollback transaction
2672
+  (0.1ms) begin transaction
2673
+  (0.1ms) commit transaction
2674
+  (0.0ms) begin transaction
2675
+  (0.1ms) rollback transaction
2676
+  (0.2ms) begin transaction
2677
+  (0.1ms) commit transaction
2678
+  (0.0ms) begin transaction
2679
+  (0.1ms) rollback transaction
2680
+  (0.3ms) begin transaction
2681
+  (0.1ms) commit transaction
2682
+  (0.0ms) begin transaction
2683
+  (0.0ms) rollback transaction
2684
+  (0.2ms) begin transaction
2685
+  (0.1ms) commit transaction
2686
+  (0.0ms) begin transaction
2687
+  (0.0ms) SAVEPOINT active_record_1
2688
+ SQL (4.4ms) INSERT INTO "asyncapi_server_jobs" ("status", "callback_url", "class_name", "params") VALUES (?, ?, ?, ?) [["status", 2], ["callback_url", "http://callback_url.com"], ["class_name", "CreateStorageFacility"], ["params", "{\"param\":\"values\"}"]]
2689
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2690
+  (1.8ms) rollback transaction
2691
+  (0.1ms) begin transaction
2692
+  (0.1ms) commit transaction
2693
+  (0.0ms) begin transaction
2694
+  (0.1ms) rollback transaction
2695
+  (0.1ms) begin transaction
2696
+  (0.1ms) commit transaction
2697
+  (0.7ms) begin transaction
2698
+  (0.1ms) rollback transaction
2699
+  (7.9ms) DELETE FROM "asyncapi_server_jobs";
2700
+  (1.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
2701
+  (1.2ms) DELETE FROM sqlite_sequence where name = 'asyncapi_server_jobs';
2702
+  (0.1ms) begin transaction
2703
+  (0.0ms) commit transaction
2704
+  (0.2ms) begin transaction
2705
+  (0.1ms) SAVEPOINT active_record_1
2706
+ SQL (3.1ms) INSERT INTO "asyncapi_server_jobs" DEFAULT VALUES
2707
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2708
+  (0.1ms) SAVEPOINT active_record_1
2709
+ SQL (0.4ms) INSERT INTO "asyncapi_server_jobs" DEFAULT VALUES
2710
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2711
+ Processing by Asyncapi::Server::V1::JobsController#index as JSON
2712
+ Parameters: {"page"=>2, "per_page"=>1}
2713
+  (0.1ms) SELECT COUNT(*) FROM "asyncapi_server_jobs"
2714
+ Asyncapi::Server::Job Load (0.2ms) SELECT "asyncapi_server_jobs".* FROM "asyncapi_server_jobs" LIMIT 1 OFFSET 1
2715
+ Completed 200 OK in 70ms (Views: 58.6ms | ActiveRecord: 0.3ms)
2716
+  (2.9ms) rollback transaction
2717
+  (0.1ms) begin transaction
2718
+  (0.0ms) commit transaction
2719
+  (0.1ms) begin transaction
2720
+  (0.0ms) SAVEPOINT active_record_1
2721
+ SQL (4.2ms) INSERT INTO "asyncapi_server_jobs" DEFAULT VALUES
2722
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2723
+ Processing by Asyncapi::Server::V1::JobsController#show as JSON
2724
+ Parameters: {"id"=>"1"}
2725
+ Asyncapi::Server::Job Load (0.2ms) SELECT "asyncapi_server_jobs".* FROM "asyncapi_server_jobs" WHERE "asyncapi_server_jobs"."id" = ? LIMIT 1 [["id", 1]]
2726
+ Completed 200 OK in 90ms (Views: 50.1ms | ActiveRecord: 0.2ms)
2727
+  (2.8ms) rollback transaction
2728
+  (0.1ms) begin transaction
2729
+  (0.0ms) commit transaction
2730
+  (0.0ms) begin transaction
2731
+  (0.0ms) SAVEPOINT active_record_1
2732
+ SQL (3.1ms) INSERT INTO "asyncapi_server_jobs" ("secret") VALUES (?) [["secret", "12312"]]
2733
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2734
+ Processing by Asyncapi::Server::V1::JobsController#destroy as JSON
2735
+ Parameters: {"secret"=>"12312", "id"=>"1"}
2736
+ Asyncapi::Server::Job Load (0.1ms) SELECT "asyncapi_server_jobs".* FROM "asyncapi_server_jobs" WHERE "asyncapi_server_jobs"."id" = ? AND "asyncapi_server_jobs"."secret" = ? LIMIT 1 [["id", 1], ["secret", "12312"]]
2737
+  (0.1ms) SAVEPOINT active_record_1
2738
+ SQL (0.2ms) DELETE FROM "asyncapi_server_jobs" WHERE "asyncapi_server_jobs"."id" = ? [["id", 1]]
2739
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2740
+ Completed 204 No Content in 75ms (ActiveRecord: 0.6ms)
2741
+  (2.9ms) rollback transaction
2742
+  (0.8ms) begin transaction
2743
+  (0.1ms) commit transaction
2744
+  (0.1ms) begin transaction
2745
+  (0.0ms) SAVEPOINT active_record_1
2746
+ SQL (4.4ms) INSERT INTO "asyncapi_server_jobs" ("secret") VALUES (?) [["secret", "12312"]]
2747
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2748
+ Processing by Asyncapi::Server::V1::JobsController#destroy as JSON
2749
+ Parameters: {"secret"=>"12315", "id"=>"1"}
2750
+ Asyncapi::Server::Job Load (0.4ms) SELECT "asyncapi_server_jobs".* FROM "asyncapi_server_jobs" WHERE "asyncapi_server_jobs"."id" = ? AND "asyncapi_server_jobs"."secret" = ? LIMIT 1 [["id", 1], ["secret", "12315"]]
2751
+ Rendered text template (0.1ms)
2752
+ Completed 404 Not Found in 28ms (Views: 21.7ms | ActiveRecord: 0.4ms)
2753
+  (4.4ms) rollback transaction
2754
+  (0.1ms) begin transaction
2755
+  (0.1ms) commit transaction
2756
+  (0.1ms) begin transaction
2757
+ Started POST "/tests" for 127.0.0.1 at 2016-07-21 02:09:57 +0000
2758
+ Processing by TestsController#create as HTML
2759
+ Parameters: {"job"=>{"callback_url"=>"callback_url", "params"=>"{\"client\":\"params\"}", "secret"=>"secret"}}
2760
+ Completed 200 OK in 116ms (Views: 115.3ms | ActiveRecord: 0.0ms)
2761
+  (0.1ms) rollback transaction
2762
+  (0.1ms) begin transaction
2763
+  (0.0ms) commit transaction
2764
+  (0.0ms) begin transaction
2765
+  (0.1ms) rollback transaction
2766
+  (0.1ms) begin transaction
2767
+  (0.1ms) commit transaction
2768
+  (0.1ms) begin transaction
2769
+  (0.1ms) rollback transaction
2770
+  (0.1ms) begin transaction
2771
+  (0.0ms) commit transaction
2772
+  (0.0ms) begin transaction
2773
+  (0.0ms) rollback transaction
2774
+  (0.1ms) begin transaction
2775
+  (0.0ms) commit transaction
2776
+  (0.1ms) begin transaction
2777
+  (0.1ms) rollback transaction
2778
+  (0.2ms) begin transaction
2779
+  (0.1ms) commit transaction
2780
+  (0.1ms) begin transaction
2781
+  (0.2ms) rollback transaction
2782
+  (0.1ms) begin transaction
2783
+  (0.0ms) commit transaction
2784
+  (0.1ms) begin transaction
2785
+  (0.1ms) rollback transaction
2786
+  (0.1ms) begin transaction
2787
+  (0.1ms) commit transaction
2788
+  (0.1ms) begin transaction
2789
+  (0.1ms) rollback transaction
2790
+  (0.1ms) begin transaction
2791
+  (0.1ms) commit transaction
2792
+  (0.1ms) begin transaction
2793
+  (0.1ms) rollback transaction
2794
+  (0.2ms) begin transaction
2795
+  (0.1ms) commit transaction
2796
+  (0.1ms) begin transaction
2797
+  (0.1ms) rollback transaction
2798
+  (0.1ms) begin transaction
2799
+  (0.0ms) commit transaction
2800
+  (0.0ms) begin transaction
2801
+  (0.1ms) SAVEPOINT active_record_1
2802
+ SQL (9.9ms) INSERT INTO "asyncapi_server_jobs" ("status", "callback_url", "class_name", "params") VALUES (?, ?, ?, ?) [["status", 2], ["callback_url", "http://callback_url.com"], ["class_name", "CreateStorageFacility"], ["params", "{\"param\":\"values\"}"]]
2803
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2804
+  (2.4ms) rollback transaction
2805
+  (0.1ms) begin transaction
2806
+  (0.0ms) commit transaction
2807
+  (0.1ms) begin transaction
2808
+  (0.1ms) rollback transaction
2809
+  (0.1ms) begin transaction
2810
+  (0.0ms) commit transaction
2811
+  (0.1ms) begin transaction
2812
+  (0.1ms) rollback transaction
2813
+  (0.1ms) begin transaction
2814
+  (0.1ms) commit transaction
2815
+  (0.1ms) begin transaction
2816
+  (0.1ms) SAVEPOINT active_record_1
2817
+ SQL (4.0ms) INSERT INTO "asyncapi_server_jobs" ("class_name", "params", "callback_url", "secret") VALUES (?, ?, ?, ?) [["class_name", "Runner"], ["params", "{\"some\":\"params\"}"], ["callback_url", "client_job_url"], ["secret", "sekret"]]
2818
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2819
+ Asyncapi::Server::Job Load (0.1ms) SELECT "asyncapi_server_jobs".* FROM "asyncapi_server_jobs" WHERE "asyncapi_server_jobs"."id" = ? LIMIT 1 [["id", 1]]
2820
+  (0.1ms) SAVEPOINT active_record_1
2821
+ SQL (0.2ms) UPDATE "asyncapi_server_jobs" SET "status" = ? WHERE "asyncapi_server_jobs"."id" = ? [["status", 1], ["id", 1]]
2822
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2823
+ Asyncapi::Server::Job Load (0.1ms) SELECT "asyncapi_server_jobs".* FROM "asyncapi_server_jobs" WHERE "asyncapi_server_jobs"."id" = ? LIMIT 1 [["id", 1]]
2824
+  (3.0ms) rollback transaction
2825
+  (0.1ms) begin transaction
2826
+  (0.1ms) commit transaction
2827
+  (0.0ms) begin transaction
2828
+  (0.1ms) SAVEPOINT active_record_1
2829
+ SQL (3.9ms) INSERT INTO "asyncapi_server_jobs" ("class_name", "callback_url", "secret") VALUES (?, ?, ?) [["class_name", "Runner"], ["callback_url", "client_job_url"], ["secret", "sekret"]]
2830
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2831
+ Asyncapi::Server::Job Load (0.1ms) SELECT "asyncapi_server_jobs".* FROM "asyncapi_server_jobs" WHERE "asyncapi_server_jobs"."id" = ? LIMIT 1 [["id", 1]]
2832
+  (0.1ms) SAVEPOINT active_record_1
2833
+ SQL (0.2ms) UPDATE "asyncapi_server_jobs" SET "status" = ? WHERE "asyncapi_server_jobs"."id" = ? [["status", 2], ["id", 1]]
2834
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2835
+ Asyncapi::Server::Job Load (0.1ms) SELECT "asyncapi_server_jobs".* FROM "asyncapi_server_jobs" WHERE "asyncapi_server_jobs"."id" = ? LIMIT 1 [["id", 1]]
2836
+  (2.9ms) rollback transaction
2837
+  (8.9ms) DELETE FROM "asyncapi_server_jobs";
2838
+  (8.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
2839
+  (2.9ms) DELETE FROM sqlite_sequence where name = 'asyncapi_server_jobs';
2840
+  (0.1ms) begin transaction
2841
+  (0.1ms) commit transaction
2842
+  (0.0ms) begin transaction
2843
+  (0.1ms) rollback transaction
2844
+  (0.1ms) begin transaction
2845
+  (0.1ms) commit transaction
2846
+  (0.1ms) begin transaction
2847
+  (0.1ms) rollback transaction
2848
+  (0.1ms) begin transaction
2849
+  (0.0ms) commit transaction
2850
+  (0.0ms) begin transaction
2851
+  (0.1ms) SAVEPOINT active_record_1
2852
+ SQL (10.1ms) INSERT INTO "asyncapi_server_jobs" ("secret") VALUES (?) [["secret", "12312"]]
2853
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2854
+ Processing by Asyncapi::Server::V1::JobsController#destroy as JSON
2855
+ Parameters: {"secret"=>"12312", "id"=>"1"}
2856
+ Asyncapi::Server::Job Load (0.2ms) SELECT "asyncapi_server_jobs".* FROM "asyncapi_server_jobs" WHERE "asyncapi_server_jobs"."id" = ? AND "asyncapi_server_jobs"."secret" = ? LIMIT 1 [["id", 1], ["secret", "12312"]]
2857
+  (0.1ms) SAVEPOINT active_record_1
2858
+ SQL (0.2ms) DELETE FROM "asyncapi_server_jobs" WHERE "asyncapi_server_jobs"."id" = ? [["id", 1]]
2859
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2860
+ Completed 204 No Content in 161ms (ActiveRecord: 0.5ms)
2861
+  (2.2ms) rollback transaction
2862
+  (0.1ms) begin transaction
2863
+  (0.0ms) commit transaction
2864
+  (0.0ms) begin transaction
2865
+  (0.0ms) SAVEPOINT active_record_1
2866
+ SQL (4.0ms) INSERT INTO "asyncapi_server_jobs" ("secret") VALUES (?) [["secret", "12312"]]
2867
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2868
+ Processing by Asyncapi::Server::V1::JobsController#destroy as JSON
2869
+ Parameters: {"secret"=>"12315", "id"=>"1"}
2870
+ Asyncapi::Server::Job Load (0.1ms) SELECT "asyncapi_server_jobs".* FROM "asyncapi_server_jobs" WHERE "asyncapi_server_jobs"."id" = ? AND "asyncapi_server_jobs"."secret" = ? LIMIT 1 [["id", 1], ["secret", "12315"]]
2871
+ Rendered text template (0.0ms)
2872
+ Completed 404 Not Found in 10ms (Views: 9.3ms | ActiveRecord: 0.1ms)
2873
+  (2.1ms) rollback transaction
2874
+  (0.1ms) begin transaction
2875
+  (0.1ms) commit transaction
2876
+  (0.0ms) begin transaction
2877
+  (0.0ms) SAVEPOINT active_record_1
2878
+ SQL (4.1ms) INSERT INTO "asyncapi_server_jobs" DEFAULT VALUES
2879
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2880
+  (0.0ms) SAVEPOINT active_record_1
2881
+ SQL (0.1ms) INSERT INTO "asyncapi_server_jobs" DEFAULT VALUES
2882
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2883
+ Processing by Asyncapi::Server::V1::JobsController#index as JSON
2884
+ Parameters: {"page"=>2, "per_page"=>1}
2885
+  (0.1ms) SELECT COUNT(*) FROM "asyncapi_server_jobs"
2886
+ Asyncapi::Server::Job Load (0.5ms) SELECT "asyncapi_server_jobs".* FROM "asyncapi_server_jobs" LIMIT 1 OFFSET 1
2887
+ Completed 200 OK in 79ms (Views: 66.5ms | ActiveRecord: 0.6ms)
2888
+  (3.2ms) rollback transaction
2889
+  (0.1ms) begin transaction
2890
+  (0.1ms) commit transaction
2891
+  (0.0ms) begin transaction
2892
+  (0.0ms) SAVEPOINT active_record_1
2893
+ SQL (12.8ms) INSERT INTO "asyncapi_server_jobs" DEFAULT VALUES
2894
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2895
+ Processing by Asyncapi::Server::V1::JobsController#show as JSON
2896
+ Parameters: {"id"=>"1"}
2897
+ Asyncapi::Server::Job Load (0.3ms) SELECT "asyncapi_server_jobs".* FROM "asyncapi_server_jobs" WHERE "asyncapi_server_jobs"."id" = ? LIMIT 1 [["id", 1]]
2898
+ Completed 200 OK in 88ms (Views: 86.8ms | ActiveRecord: 0.3ms)
2899
+  (3.6ms) rollback transaction
2900
+  (0.1ms) begin transaction
2901
+  (0.0ms) commit transaction
2902
+  (0.1ms) begin transaction
2903
+ Started POST "/tests" for 127.0.0.1 at 2016-07-21 02:12:42 +0000
2904
+ Processing by TestsController#create as HTML
2905
+ Parameters: {"job"=>{"callback_url"=>"callback_url", "params"=>"{\"client\":\"params\"}", "secret"=>"secret"}}
2906
+  (0.1ms) SAVEPOINT active_record_1
2907
+ SQL (5.3ms) INSERT INTO "asyncapi_server_jobs" ("callback_url", "class_name", "params", "secret") VALUES (?, ?, ?, ?) [["callback_url", "callback_url"], ["class_name", "Runner"], ["params", "{\"client\":\"params\"}"], ["secret", "secret"]]
2908
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2909
+ Completed 200 OK in 113ms (Views: 104.6ms | ActiveRecord: 5.5ms)
2910
+  (3.1ms) rollback transaction
2911
+  (0.1ms) begin transaction
2912
+  (0.0ms) commit transaction
2913
+  (0.0ms) begin transaction
2914
+  (0.1ms) rollback transaction
2915
+  (0.1ms) begin transaction
2916
+  (0.0ms) commit transaction
2917
+  (0.0ms) begin transaction
2918
+  (0.0ms) rollback transaction
2919
+  (0.1ms) begin transaction
2920
+  (0.1ms) commit transaction
2921
+  (0.0ms) begin transaction
2922
+  (0.0ms) rollback transaction
2923
+  (0.1ms) begin transaction
2924
+  (0.0ms) commit transaction
2925
+  (0.1ms) begin transaction
2926
+  (0.1ms) rollback transaction
2927
+  (0.1ms) begin transaction
2928
+  (0.0ms) commit transaction
2929
+  (0.1ms) begin transaction
2930
+  (0.2ms) rollback transaction
2931
+  (0.1ms) begin transaction
2932
+  (0.1ms) commit transaction
2933
+  (0.0ms) begin transaction
2934
+  (0.1ms) rollback transaction
2935
+  (0.1ms) begin transaction
2936
+  (0.0ms) commit transaction
2937
+  (0.0ms) begin transaction
2938
+  (0.1ms) SAVEPOINT active_record_1
2939
+ SQL (10.9ms) INSERT INTO "asyncapi_server_jobs" ("status", "callback_url", "class_name", "params") VALUES (?, ?, ?, ?) [["status", 2], ["callback_url", "http://callback_url.com"], ["class_name", "CreateStorageFacility"], ["params", "{\"param\":\"values\"}"]]
2940
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2941
+  (2.8ms) rollback transaction
2942
+  (0.1ms) begin transaction
2943
+  (0.0ms) commit transaction
2944
+  (0.0ms) begin transaction
2945
+  (0.0ms) rollback transaction
2946
+  (0.1ms) begin transaction
2947
+  (0.0ms) commit transaction
2948
+  (0.0ms) begin transaction
2949
+  (0.1ms) rollback transaction
2950
+  (0.1ms) begin transaction
2951
+  (0.1ms) commit transaction
2952
+  (0.0ms) begin transaction
2953
+  (0.1ms) rollback transaction
2954
+  (0.1ms) begin transaction
2955
+  (0.0ms) commit transaction
2956
+  (0.0ms) begin transaction
2957
+  (0.1ms) SAVEPOINT active_record_1
2958
+ SQL (5.0ms) INSERT INTO "asyncapi_server_jobs" ("class_name", "params", "callback_url", "secret") VALUES (?, ?, ?, ?) [["class_name", "Runner"], ["params", "{\"some\":\"params\"}"], ["callback_url", "client_job_url"], ["secret", "sekret"]]
2959
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2960
+ Asyncapi::Server::Job Load (0.1ms) SELECT "asyncapi_server_jobs".* FROM "asyncapi_server_jobs" WHERE "asyncapi_server_jobs"."id" = ? LIMIT 1 [["id", 1]]
2961
+  (0.0ms) SAVEPOINT active_record_1
2962
+ SQL (0.2ms) UPDATE "asyncapi_server_jobs" SET "status" = ? WHERE "asyncapi_server_jobs"."id" = ? [["status", 1], ["id", 1]]
2963
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2964
+ Asyncapi::Server::Job Load (0.1ms) SELECT "asyncapi_server_jobs".* FROM "asyncapi_server_jobs" WHERE "asyncapi_server_jobs"."id" = ? LIMIT 1 [["id", 1]]
2965
+  (3.4ms) rollback transaction
2966
+  (0.1ms) begin transaction
2967
+  (0.1ms) commit transaction
2968
+  (0.1ms) begin transaction
2969
+  (0.1ms) SAVEPOINT active_record_1
2970
+ SQL (10.6ms) INSERT INTO "asyncapi_server_jobs" ("class_name", "callback_url", "secret") VALUES (?, ?, ?) [["class_name", "Runner"], ["callback_url", "client_job_url"], ["secret", "sekret"]]
2971
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2972
+ Asyncapi::Server::Job Load (0.1ms) SELECT "asyncapi_server_jobs".* FROM "asyncapi_server_jobs" WHERE "asyncapi_server_jobs"."id" = ? LIMIT 1 [["id", 1]]
2973
+  (0.1ms) SAVEPOINT active_record_1
2974
+ SQL (0.2ms) UPDATE "asyncapi_server_jobs" SET "status" = ? WHERE "asyncapi_server_jobs"."id" = ? [["status", 2], ["id", 1]]
2975
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2976
+ Asyncapi::Server::Job Load (0.0ms) SELECT "asyncapi_server_jobs".* FROM "asyncapi_server_jobs" WHERE "asyncapi_server_jobs"."id" = ? LIMIT 1 [["id", 1]]
2977
+  (3.4ms) rollback transaction
2978
+  (4.6ms) DELETE FROM "asyncapi_server_jobs";
2979
+  (1.6ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
2980
+  (1.8ms) DELETE FROM sqlite_sequence where name = 'asyncapi_server_jobs';
2981
+  (0.1ms) begin transaction
2982
+  (0.1ms) commit transaction
2983
+  (0.0ms) begin transaction
2984
+  (0.1ms) rollback transaction
2985
+  (3.8ms) begin transaction
2986
+  (0.5ms) commit transaction
2987
+  (0.1ms) begin transaction
2988
+  (0.1ms) rollback transaction
2989
+  (0.1ms) begin transaction
2990
+  (0.1ms) commit transaction
2991
+  (0.0ms) begin transaction
2992
+  (0.0ms) rollback transaction
2993
+  (0.1ms) begin transaction
2994
+  (0.0ms) commit transaction
2995
+  (0.0ms) begin transaction
2996
+  (0.0ms) rollback transaction
2997
+  (0.1ms) begin transaction
2998
+  (0.0ms) commit transaction
2999
+  (0.0ms) begin transaction
3000
+  (0.1ms) SAVEPOINT active_record_1
3001
+ SQL (2.9ms) INSERT INTO "asyncapi_server_jobs" DEFAULT VALUES
3002
+  (1.5ms) RELEASE SAVEPOINT active_record_1
3003
+ Processing by Asyncapi::Server::V1::JobsController#show as JSON
3004
+ Parameters: {"id"=>"1"}
3005
+ Asyncapi::Server::Job Load (0.2ms) SELECT "asyncapi_server_jobs".* FROM "asyncapi_server_jobs" WHERE "asyncapi_server_jobs"."id" = ? LIMIT 1 [["id", 1]]
3006
+ Completed 200 OK in 207ms (Views: 113.0ms | ActiveRecord: 0.2ms)
3007
+  (8.6ms) rollback transaction
3008
+  (0.1ms) begin transaction
3009
+  (0.0ms) commit transaction
3010
+  (0.0ms) begin transaction
3011
+  (0.1ms) SAVEPOINT active_record_1
3012
+ SQL (4.5ms) INSERT INTO "asyncapi_server_jobs" DEFAULT VALUES
3013
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3014
+  (0.0ms) SAVEPOINT active_record_1
3015
+ SQL (0.5ms) INSERT INTO "asyncapi_server_jobs" DEFAULT VALUES
3016
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3017
+ Processing by Asyncapi::Server::V1::JobsController#index as JSON
3018
+ Parameters: {"page"=>2, "per_page"=>1}
3019
+  (0.1ms) SELECT COUNT(*) FROM "asyncapi_server_jobs"
3020
+ Asyncapi::Server::Job Load (0.1ms) SELECT "asyncapi_server_jobs".* FROM "asyncapi_server_jobs" LIMIT 1 OFFSET 1
3021
+ Completed 200 OK in 87ms (Views: 69.1ms | ActiveRecord: 0.2ms)
3022
+  (4.3ms) rollback transaction
3023
+  (0.1ms) begin transaction
3024
+  (0.1ms) commit transaction
3025
+  (0.0ms) begin transaction
3026
+  (0.1ms) SAVEPOINT active_record_1
3027
+ SQL (4.5ms) INSERT INTO "asyncapi_server_jobs" ("secret") VALUES (?) [["secret", "12312"]]
3028
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3029
+ Processing by Asyncapi::Server::V1::JobsController#destroy as JSON
3030
+ Parameters: {"secret"=>"12312", "id"=>"1"}
3031
+ Asyncapi::Server::Job Load (0.2ms) SELECT "asyncapi_server_jobs".* FROM "asyncapi_server_jobs" WHERE "asyncapi_server_jobs"."id" = ? AND "asyncapi_server_jobs"."secret" = ? LIMIT 1 [["id", 1], ["secret", "12312"]]
3032
+  (0.1ms) SAVEPOINT active_record_1
3033
+ SQL (0.2ms) DELETE FROM "asyncapi_server_jobs" WHERE "asyncapi_server_jobs"."id" = ? [["id", 1]]
3034
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3035
+ Completed 204 No Content in 113ms (ActiveRecord: 0.5ms)
3036
+  (2.3ms) rollback transaction
3037
+  (0.1ms) begin transaction
3038
+  (0.0ms) commit transaction
3039
+  (0.0ms) begin transaction
3040
+  (0.0ms) SAVEPOINT active_record_1
3041
+ SQL (4.4ms) INSERT INTO "asyncapi_server_jobs" ("secret") VALUES (?) [["secret", "12312"]]
3042
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3043
+ Processing by Asyncapi::Server::V1::JobsController#destroy as JSON
3044
+ Parameters: {"secret"=>"12315", "id"=>"1"}
3045
+ Asyncapi::Server::Job Load (0.1ms) SELECT "asyncapi_server_jobs".* FROM "asyncapi_server_jobs" WHERE "asyncapi_server_jobs"."id" = ? AND "asyncapi_server_jobs"."secret" = ? LIMIT 1 [["id", 1], ["secret", "12315"]]
3046
+ Rendered text template (0.0ms)
3047
+ Completed 404 Not Found in 11ms (Views: 9.9ms | ActiveRecord: 0.1ms)
3048
+  (3.0ms) rollback transaction
3049
+  (0.1ms) begin transaction
3050
+  (0.1ms) commit transaction
3051
+  (0.1ms) begin transaction
3052
+  (0.1ms) rollback transaction
3053
+  (0.1ms) begin transaction
3054
+  (0.1ms) commit transaction
3055
+  (0.0ms) begin transaction
3056
+  (0.2ms) rollback transaction
3057
+  (0.1ms) begin transaction
3058
+  (0.0ms) commit transaction
3059
+  (0.1ms) begin transaction
3060
+  (0.1ms) rollback transaction
3061
+  (0.1ms) begin transaction
3062
+  (0.1ms) commit transaction
3063
+  (0.0ms) begin transaction
3064
+  (0.1ms) rollback transaction
3065
+  (0.1ms) begin transaction
3066
+  (0.1ms) commit transaction
3067
+  (0.0ms) begin transaction
3068
+  (0.1ms) rollback transaction
3069
+  (0.1ms) begin transaction
3070
+  (0.1ms) commit transaction
3071
+  (0.1ms) begin transaction
3072
+  (0.1ms) SAVEPOINT active_record_1
3073
+ SQL (5.1ms) INSERT INTO "asyncapi_server_jobs" ("status", "callback_url", "class_name", "params") VALUES (?, ?, ?, ?) [["status", 2], ["callback_url", "http://callback_url.com"], ["class_name", "CreateStorageFacility"], ["params", "{\"param\":\"values\"}"]]
3074
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3075
+  (2.3ms) rollback transaction
3076
+  (0.1ms) begin transaction
3077
+  (0.0ms) commit transaction
3078
+  (0.0ms) begin transaction
3079
+  (0.1ms) rollback transaction
3080
+  (0.1ms) begin transaction
3081
+  (0.2ms) commit transaction
3082
+  (0.3ms) begin transaction
3083
+  (0.1ms) rollback transaction
3084
+  (0.1ms) begin transaction
3085
+  (0.0ms) commit transaction
3086
+  (0.0ms) begin transaction
3087
+  (0.1ms) SAVEPOINT active_record_1
3088
+ SQL (5.5ms) INSERT INTO "asyncapi_server_jobs" ("class_name", "params", "callback_url", "secret") VALUES (?, ?, ?, ?) [["class_name", "Runner"], ["params", "{\"some\":\"params\"}"], ["callback_url", "client_job_url"], ["secret", "sekret"]]
3089
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3090
+ Asyncapi::Server::Job Load (0.1ms) SELECT "asyncapi_server_jobs".* FROM "asyncapi_server_jobs" WHERE "asyncapi_server_jobs"."id" = ? LIMIT 1 [["id", 1]]
3091
+  (0.1ms) SAVEPOINT active_record_1
3092
+ SQL (0.2ms) UPDATE "asyncapi_server_jobs" SET "status" = ? WHERE "asyncapi_server_jobs"."id" = ? [["status", 1], ["id", 1]]
3093
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3094
+ Asyncapi::Server::Job Load (0.0ms) SELECT "asyncapi_server_jobs".* FROM "asyncapi_server_jobs" WHERE "asyncapi_server_jobs"."id" = ? LIMIT 1 [["id", 1]]
3095
+  (2.8ms) rollback transaction
3096
+  (0.2ms) begin transaction
3097
+  (0.2ms) commit transaction
3098
+  (0.3ms) begin transaction
3099
+  (0.1ms) SAVEPOINT active_record_1
3100
+ SQL (5.1ms) INSERT INTO "asyncapi_server_jobs" ("class_name", "callback_url", "secret") VALUES (?, ?, ?) [["class_name", "Runner"], ["callback_url", "client_job_url"], ["secret", "sekret"]]
3101
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3102
+ Asyncapi::Server::Job Load (0.2ms) SELECT "asyncapi_server_jobs".* FROM "asyncapi_server_jobs" WHERE "asyncapi_server_jobs"."id" = ? LIMIT 1 [["id", 1]]
3103
+  (0.1ms) SAVEPOINT active_record_1
3104
+ SQL (0.1ms) UPDATE "asyncapi_server_jobs" SET "status" = ? WHERE "asyncapi_server_jobs"."id" = ? [["status", 2], ["id", 1]]
3105
+  (0.2ms) RELEASE SAVEPOINT active_record_1
3106
+ Asyncapi::Server::Job Load (0.1ms) SELECT "asyncapi_server_jobs".* FROM "asyncapi_server_jobs" WHERE "asyncapi_server_jobs"."id" = ? LIMIT 1 [["id", 1]]
3107
+  (3.0ms) rollback transaction
3108
+  (0.1ms) begin transaction
3109
+  (0.1ms) commit transaction
3110
+  (0.3ms) begin transaction
3111
+ Started POST "/tests" for 127.0.0.1 at 2016-07-21 02:13:09 +0000
3112
+ Processing by TestsController#create as HTML
3113
+ Parameters: {"job"=>{"callback_url"=>"callback_url", "params"=>"{\"client\":\"params\"}", "secret"=>"secret"}}
3114
+  (0.1ms) SAVEPOINT active_record_1
3115
+ SQL (12.1ms) INSERT INTO "asyncapi_server_jobs" ("callback_url", "class_name", "params", "secret") VALUES (?, ?, ?, ?) [["callback_url", "callback_url"], ["class_name", "Runner"], ["params", "{\"client\":\"params\"}"], ["secret", "secret"]]
3116
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3117
+ Completed 200 OK in 123ms (Views: 108.3ms | ActiveRecord: 12.3ms)
3118
+  (4.2ms) rollback transaction
3119
+  (5.9ms) DELETE FROM "asyncapi_server_jobs";
3120
+  (1.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
3121
+  (1.5ms) DELETE FROM sqlite_sequence where name = 'asyncapi_server_jobs';
3122
+  (0.1ms) begin transaction
3123
+  (0.0ms) commit transaction
3124
+  (0.1ms) begin transaction
3125
+  (0.2ms) rollback transaction
3126
+  (0.1ms) begin transaction
3127
+  (0.0ms) commit transaction
3128
+  (0.0ms) begin transaction
3129
+  (0.1ms) rollback transaction
3130
+  (0.1ms) begin transaction
3131
+  (0.0ms) commit transaction
3132
+  (0.0ms) begin transaction
3133
+  (0.1ms) rollback transaction
3134
+  (0.1ms) begin transaction
3135
+  (0.0ms) commit transaction
3136
+  (0.0ms) begin transaction
3137
+  (0.1ms) SAVEPOINT active_record_1
3138
+ SQL (2.6ms) INSERT INTO "asyncapi_server_jobs" ("class_name", "params", "callback_url", "secret") VALUES (?, ?, ?, ?) [["class_name", "Runner"], ["params", "{\"some\":\"params\"}"], ["callback_url", "client_job_url"], ["secret", "sekret"]]
3139
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3140
+ Asyncapi::Server::Job Load (0.1ms) SELECT "asyncapi_server_jobs".* FROM "asyncapi_server_jobs" WHERE "asyncapi_server_jobs"."id" = ? LIMIT 1 [["id", 1]]
3141
+  (0.1ms) SAVEPOINT active_record_1
3142
+ SQL (0.2ms) UPDATE "asyncapi_server_jobs" SET "status" = ? WHERE "asyncapi_server_jobs"."id" = ? [["status", 1], ["id", 1]]
3143
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3144
+ Asyncapi::Server::Job Load (0.1ms) SELECT "asyncapi_server_jobs".* FROM "asyncapi_server_jobs" WHERE "asyncapi_server_jobs"."id" = ? LIMIT 1 [["id", 1]]
3145
+  (2.5ms) rollback transaction
3146
+  (0.1ms) begin transaction
3147
+  (0.0ms) commit transaction
3148
+  (0.0ms) begin transaction
3149
+  (0.0ms) SAVEPOINT active_record_1
3150
+ SQL (4.0ms) INSERT INTO "asyncapi_server_jobs" ("class_name", "callback_url", "secret") VALUES (?, ?, ?) [["class_name", "Runner"], ["callback_url", "client_job_url"], ["secret", "sekret"]]
3151
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3152
+ Asyncapi::Server::Job Load (0.1ms) SELECT "asyncapi_server_jobs".* FROM "asyncapi_server_jobs" WHERE "asyncapi_server_jobs"."id" = ? LIMIT 1 [["id", 1]]
3153
+  (0.1ms) SAVEPOINT active_record_1
3154
+ SQL (0.2ms) UPDATE "asyncapi_server_jobs" SET "status" = ? WHERE "asyncapi_server_jobs"."id" = ? [["status", 2], ["id", 1]]
3155
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3156
+ Asyncapi::Server::Job Load (0.1ms) SELECT "asyncapi_server_jobs".* FROM "asyncapi_server_jobs" WHERE "asyncapi_server_jobs"."id" = ? LIMIT 1 [["id", 1]]
3157
+  (3.6ms) rollback transaction
3158
+  (0.1ms) begin transaction
3159
+  (0.1ms) commit transaction
3160
+  (0.0ms) begin transaction
3161
+  (0.1ms) rollback transaction
3162
+  (0.1ms) begin transaction
3163
+  (0.1ms) commit transaction
3164
+  (0.1ms) begin transaction
3165
+  (0.1ms) rollback transaction
3166
+  (0.1ms) begin transaction
3167
+  (0.0ms) commit transaction
3168
+  (0.0ms) begin transaction
3169
+  (0.1ms) SAVEPOINT active_record_1
3170
+ SQL (5.3ms) INSERT INTO "asyncapi_server_jobs" ("secret") VALUES (?) [["secret", "12312"]]
3171
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3172
+ Processing by Asyncapi::Server::V1::JobsController#destroy as JSON
3173
+ Parameters: {"secret"=>"12312", "id"=>"1"}
3174
+ Asyncapi::Server::Job Load (0.1ms) SELECT "asyncapi_server_jobs".* FROM "asyncapi_server_jobs" WHERE "asyncapi_server_jobs"."id" = ? AND "asyncapi_server_jobs"."secret" = ? LIMIT 1 [["id", 1], ["secret", "12312"]]
3175
+  (0.1ms) SAVEPOINT active_record_1
3176
+ SQL (0.2ms) DELETE FROM "asyncapi_server_jobs" WHERE "asyncapi_server_jobs"."id" = ? [["id", 1]]
3177
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3178
+ Completed 204 No Content in 109ms (ActiveRecord: 0.5ms)
3179
+  (4.3ms) rollback transaction
3180
+  (0.1ms) begin transaction
3181
+  (0.0ms) commit transaction
3182
+  (0.0ms) begin transaction
3183
+  (0.0ms) SAVEPOINT active_record_1
3184
+ SQL (6.3ms) INSERT INTO "asyncapi_server_jobs" ("secret") VALUES (?) [["secret", "12312"]]
3185
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3186
+ Processing by Asyncapi::Server::V1::JobsController#destroy as JSON
3187
+ Parameters: {"secret"=>"12315", "id"=>"1"}
3188
+ Asyncapi::Server::Job Load (0.1ms) SELECT "asyncapi_server_jobs".* FROM "asyncapi_server_jobs" WHERE "asyncapi_server_jobs"."id" = ? AND "asyncapi_server_jobs"."secret" = ? LIMIT 1 [["id", 1], ["secret", "12315"]]
3189
+ Rendered text template (0.0ms)
3190
+ Completed 404 Not Found in 16ms (Views: 15.5ms | ActiveRecord: 0.1ms)
3191
+  (2.4ms) rollback transaction
3192
+  (0.1ms) begin transaction
3193
+  (0.0ms) commit transaction
3194
+  (0.0ms) begin transaction
3195
+  (0.0ms) SAVEPOINT active_record_1
3196
+ SQL (5.6ms) INSERT INTO "asyncapi_server_jobs" DEFAULT VALUES
3197
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3198
+  (0.1ms) SAVEPOINT active_record_1
3199
+ SQL (0.2ms) INSERT INTO "asyncapi_server_jobs" DEFAULT VALUES
3200
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3201
+ Processing by Asyncapi::Server::V1::JobsController#index as JSON
3202
+ Parameters: {"page"=>2, "per_page"=>1}
3203
+  (0.1ms) SELECT COUNT(*) FROM "asyncapi_server_jobs"
3204
+ Asyncapi::Server::Job Load (0.1ms) SELECT "asyncapi_server_jobs".* FROM "asyncapi_server_jobs" LIMIT 1 OFFSET 1
3205
+ Completed 200 OK in 72ms (Views: 55.1ms | ActiveRecord: 0.2ms)
3206
+  (3.4ms) rollback transaction
3207
+  (0.1ms) begin transaction
3208
+  (0.1ms) commit transaction
3209
+  (0.1ms) begin transaction
3210
+  (0.1ms) SAVEPOINT active_record_1
3211
+ SQL (4.4ms) INSERT INTO "asyncapi_server_jobs" DEFAULT VALUES
3212
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3213
+ Processing by Asyncapi::Server::V1::JobsController#show as JSON
3214
+ Parameters: {"id"=>"1"}
3215
+ Asyncapi::Server::Job Load (0.1ms) SELECT "asyncapi_server_jobs".* FROM "asyncapi_server_jobs" WHERE "asyncapi_server_jobs"."id" = ? LIMIT 1 [["id", 1]]
3216
+ Completed 200 OK in 80ms (Views: 78.9ms | ActiveRecord: 0.1ms)
3217
+  (3.4ms) rollback transaction
3218
+  (0.1ms) begin transaction
3219
+  (0.0ms) commit transaction
3220
+  (0.0ms) begin transaction
3221
+ Started POST "/tests" for 127.0.0.1 at 2016-07-21 02:13:36 +0000
3222
+ Processing by TestsController#create as HTML
3223
+ Parameters: {"job"=>{"callback_url"=>"callback_url", "params"=>"{\"client\":\"params\"}", "secret"=>"secret"}}
3224
+  (0.1ms) SAVEPOINT active_record_1
3225
+ SQL (5.4ms) INSERT INTO "asyncapi_server_jobs" ("callback_url", "class_name", "params", "secret") VALUES (?, ?, ?, ?) [["callback_url", "callback_url"], ["class_name", "Runner"], ["params", "{\"client\":\"params\"}"], ["secret", "secret"]]
3226
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3227
+ Completed 200 OK in 136ms (Views: 125.7ms | ActiveRecord: 5.6ms)
3228
+  (3.9ms) rollback transaction
3229
+  (0.3ms) begin transaction
3230
+  (0.1ms) commit transaction
3231
+  (0.2ms) begin transaction
3232
+  (0.4ms) rollback transaction
3233
+  (0.1ms) begin transaction
3234
+  (0.1ms) commit transaction
3235
+  (0.1ms) begin transaction
3236
+  (0.1ms) rollback transaction
3237
+  (0.1ms) begin transaction
3238
+  (0.0ms) commit transaction
3239
+  (0.0ms) begin transaction
3240
+  (0.2ms) SAVEPOINT active_record_1
3241
+ SQL (5.6ms) INSERT INTO "asyncapi_server_jobs" ("status", "callback_url", "class_name", "params") VALUES (?, ?, ?, ?) [["status", 2], ["callback_url", "http://callback_url.com"], ["class_name", "CreateStorageFacility"], ["params", "{\"param\":\"values\"}"]]
3242
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3243
+  (2.1ms) rollback transaction
3244
+  (0.1ms) begin transaction
3245
+  (0.1ms) commit transaction
3246
+  (0.1ms) begin transaction
3247
+  (0.1ms) rollback transaction
3248
+  (0.1ms) begin transaction
3249
+  (0.0ms) commit transaction
3250
+  (0.1ms) begin transaction
3251
+  (0.1ms) rollback transaction
3252
+  (0.1ms) begin transaction
3253
+  (0.0ms) commit transaction
3254
+  (0.0ms) begin transaction
3255
+  (0.0ms) rollback transaction
3256
+  (0.2ms) begin transaction
3257
+  (0.1ms) commit transaction
3258
+  (0.3ms) begin transaction
3259
+  (0.1ms) rollback transaction
3260
+  (5.3ms) DELETE FROM "asyncapi_server_jobs";
3261
+  (2.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
3262
+  (3.1ms) DELETE FROM sqlite_sequence where name = 'asyncapi_server_jobs';
3263
+  (6.1ms) DELETE FROM "asyncapi_server_jobs";
3264
+  (1.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
3265
+  (1.4ms) DELETE FROM sqlite_sequence where name = 'asyncapi_server_jobs';
3266
+  (6.4ms) DELETE FROM "asyncapi_server_jobs";
3267
+  (2.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
3268
+  (1.7ms) DELETE FROM sqlite_sequence where name = 'asyncapi_server_jobs';
3269
+  (0.1ms) begin transaction
3270
+  (0.1ms) commit transaction
3271
+  (0.2ms) begin transaction
3272
+  (0.1ms) rollback transaction
3273
+  (0.2ms) begin transaction
3274
+  (0.1ms) commit transaction
3275
+  (0.0ms) begin transaction
3276
+  (0.1ms) rollback transaction
3277
+  (0.1ms) begin transaction
3278
+  (0.1ms) commit transaction
3279
+  (0.1ms) begin transaction
3280
+  (0.1ms) rollback transaction
3281
+  (0.3ms) begin transaction
3282
+  (0.1ms) commit transaction
3283
+  (0.2ms) begin transaction
3284
+  (0.2ms) rollback transaction
3285
+  (0.4ms) begin transaction
3286
+  (0.1ms) commit transaction
3287
+  (0.4ms) begin transaction
3288
+  (0.1ms) SAVEPOINT active_record_1
3289
+ SQL (3.4ms) INSERT INTO "asyncapi_server_jobs" ("status", "callback_url", "class_name", "params") VALUES (?, ?, ?, ?) [["status", 2], ["callback_url", "http://callback_url.com"], ["class_name", "CreateStorageFacility"], ["params", "{\"param\":\"values\"}"]]
3290
+  (0.3ms) RELEASE SAVEPOINT active_record_1
3291
+  (6.3ms) rollback transaction
3292
+  (0.1ms) begin transaction
3293
+  (0.1ms) commit transaction
3294
+  (0.1ms) begin transaction
3295
+  (0.1ms) rollback transaction
3296
+  (0.1ms) begin transaction
3297
+  (0.1ms) commit transaction
3298
+  (0.0ms) begin transaction
3299
+  (0.1ms) rollback transaction
3300
+  (0.1ms) begin transaction
3301
+  (0.0ms) commit transaction
3302
+  (0.1ms) begin transaction
3303
+  (0.1ms) rollback transaction
3304
+  (0.1ms) begin transaction
3305
+  (0.1ms) commit transaction
3306
+  (0.3ms) begin transaction
3307
+  (0.1ms) SAVEPOINT active_record_1
3308
+ SQL (5.1ms) INSERT INTO "asyncapi_server_jobs" ("class_name", "params", "callback_url", "secret") VALUES (?, ?, ?, ?) [["class_name", "Runner"], ["params", "{\"some\":\"params\"}"], ["callback_url", "client_job_url"], ["secret", "sekret"]]
3309
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3310
+ Asyncapi::Server::Job Load (0.2ms) SELECT "asyncapi_server_jobs".* FROM "asyncapi_server_jobs" WHERE "asyncapi_server_jobs"."id" = ? LIMIT 1 [["id", 1]]
3311
+  (0.1ms) SAVEPOINT active_record_1
3312
+ SQL (0.2ms) UPDATE "asyncapi_server_jobs" SET "status" = ? WHERE "asyncapi_server_jobs"."id" = ? [["status", 1], ["id", 1]]
3313
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3314
+ Asyncapi::Server::Job Load (0.1ms) SELECT "asyncapi_server_jobs".* FROM "asyncapi_server_jobs" WHERE "asyncapi_server_jobs"."id" = ? LIMIT 1 [["id", 1]]
3315
+  (3.1ms) rollback transaction
3316
+  (0.3ms) begin transaction
3317
+  (0.1ms) commit transaction
3318
+  (0.1ms) begin transaction
3319
+  (0.1ms) SAVEPOINT active_record_1
3320
+ SQL (8.6ms) INSERT INTO "asyncapi_server_jobs" ("class_name", "callback_url", "secret") VALUES (?, ?, ?) [["class_name", "Runner"], ["callback_url", "client_job_url"], ["secret", "sekret"]]
3321
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3322
+ Asyncapi::Server::Job Load (0.1ms) SELECT "asyncapi_server_jobs".* FROM "asyncapi_server_jobs" WHERE "asyncapi_server_jobs"."id" = ? LIMIT 1 [["id", 1]]
3323
+  (0.1ms) SAVEPOINT active_record_1
3324
+ SQL (0.1ms) UPDATE "asyncapi_server_jobs" SET "status" = ? WHERE "asyncapi_server_jobs"."id" = ? [["status", 2], ["id", 1]]
3325
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3326
+ Asyncapi::Server::Job Load (0.0ms) SELECT "asyncapi_server_jobs".* FROM "asyncapi_server_jobs" WHERE "asyncapi_server_jobs"."id" = ? LIMIT 1 [["id", 1]]
3327
+  (2.5ms) rollback transaction
3328
+  (0.1ms) begin transaction
3329
+  (0.1ms) commit transaction
3330
+  (0.1ms) begin transaction
3331
+  (0.1ms) rollback transaction
3332
+  (0.1ms) begin transaction
3333
+  (0.1ms) commit transaction
3334
+  (0.0ms) begin transaction
3335
+  (0.0ms) rollback transaction
3336
+ Started POST "/tests" for 127.0.0.1 at 2016-07-21 02:16:18 +0000
3337
+ Processing by TestsController#create as HTML
3338
+ Parameters: {"job"=>{"callback_url"=>"callback_url", "params"=>"{\"client\":\"params\"}", "secret"=>"secret"}}
3339
+  (0.1ms) begin transaction
3340
+ SQL (4.2ms) INSERT INTO "asyncapi_server_jobs" ("callback_url", "class_name", "params", "secret") VALUES (?, ?, ?, ?) [["callback_url", "callback_url"], ["class_name", "Runner"], ["params", "{\"client\":\"params\"}"], ["secret", "secret"]]
3341
+  (2.2ms) commit transaction
3342
+ Completed 200 OK in 106ms (Views: 96.6ms | ActiveRecord: 6.5ms)
3343
+  (27.3ms) DELETE FROM "asyncapi_server_jobs";
3344
+  (3.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
3345
+  (12.0ms) DELETE FROM sqlite_sequence where name = 'asyncapi_server_jobs';
3346
+  (0.1ms) begin transaction
3347
+  (0.0ms) commit transaction
3348
+  (0.0ms) begin transaction
3349
+  (0.0ms) SAVEPOINT active_record_1
3350
+ SQL (11.4ms) INSERT INTO "asyncapi_server_jobs" DEFAULT VALUES
3351
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3352
+ Processing by Asyncapi::Server::V1::JobsController#show as JSON
3353
+ Parameters: {"id"=>"1"}
3354
+ Asyncapi::Server::Job Load (0.1ms) SELECT "asyncapi_server_jobs".* FROM "asyncapi_server_jobs" WHERE "asyncapi_server_jobs"."id" = ? LIMIT 1 [["id", 1]]
3355
+ Completed 200 OK in 61ms (Views: 60.1ms | ActiveRecord: 0.1ms)
3356
+  (3.5ms) rollback transaction
3357
+  (0.1ms) begin transaction
3358
+  (0.1ms) commit transaction
3359
+  (0.0ms) begin transaction
3360
+  (0.0ms) SAVEPOINT active_record_1
3361
+ SQL (6.7ms) INSERT INTO "asyncapi_server_jobs" ("secret") VALUES (?) [["secret", "12312"]]
3362
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3363
+ Processing by Asyncapi::Server::V1::JobsController#destroy as JSON
3364
+ Parameters: {"secret"=>"12312", "id"=>"1"}
3365
+ Asyncapi::Server::Job Load (0.1ms) SELECT "asyncapi_server_jobs".* FROM "asyncapi_server_jobs" WHERE "asyncapi_server_jobs"."id" = ? AND "asyncapi_server_jobs"."secret" = ? LIMIT 1 [["id", 1], ["secret", "12312"]]
3366
+  (0.0ms) SAVEPOINT active_record_1
3367
+ SQL (0.2ms) DELETE FROM "asyncapi_server_jobs" WHERE "asyncapi_server_jobs"."id" = ? [["id", 1]]
3368
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3369
+ Completed 204 No Content in 81ms (ActiveRecord: 0.4ms)
3370
+  (2.9ms) rollback transaction
3371
+  (0.2ms) begin transaction
3372
+  (0.1ms) commit transaction
3373
+  (0.1ms) begin transaction
3374
+  (0.1ms) SAVEPOINT active_record_1
3375
+ SQL (7.9ms) INSERT INTO "asyncapi_server_jobs" ("secret") VALUES (?) [["secret", "12312"]]
3376
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3377
+ Processing by Asyncapi::Server::V1::JobsController#destroy as JSON
3378
+ Parameters: {"secret"=>"12315", "id"=>"1"}
3379
+ Asyncapi::Server::Job Load (0.1ms) SELECT "asyncapi_server_jobs".* FROM "asyncapi_server_jobs" WHERE "asyncapi_server_jobs"."id" = ? AND "asyncapi_server_jobs"."secret" = ? LIMIT 1 [["id", 1], ["secret", "12315"]]
3380
+ Rendered text template (0.0ms)
3381
+ Completed 404 Not Found in 8ms (Views: 6.9ms | ActiveRecord: 0.1ms)
3382
+  (1.7ms) rollback transaction
3383
+  (0.1ms) begin transaction
3384
+  (0.0ms) commit transaction
3385
+  (0.0ms) begin transaction
3386
+  (0.1ms) SAVEPOINT active_record_1
3387
+ SQL (8.2ms) INSERT INTO "asyncapi_server_jobs" DEFAULT VALUES
3388
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3389
+  (0.1ms) SAVEPOINT active_record_1
3390
+ SQL (0.2ms) INSERT INTO "asyncapi_server_jobs" DEFAULT VALUES
3391
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3392
+ Processing by Asyncapi::Server::V1::JobsController#index as JSON
3393
+ Parameters: {"page"=>2, "per_page"=>1}
3394
+  (0.1ms) SELECT COUNT(*) FROM "asyncapi_server_jobs"
3395
+ Asyncapi::Server::Job Load (0.1ms) SELECT "asyncapi_server_jobs".* FROM "asyncapi_server_jobs" LIMIT 1 OFFSET 1
3396
+ Completed 200 OK in 58ms (Views: 48.5ms | ActiveRecord: 0.2ms)
3397
+  (3.0ms) rollback transaction
3398
+  (0.1ms) begin transaction
3399
+  (0.0ms) commit transaction
3400
+  (0.1ms) begin transaction
3401
+  (0.1ms) rollback transaction
3402
+  (0.2ms) begin transaction
3403
+  (0.1ms) commit transaction
3404
+  (0.1ms) begin transaction
3405
+  (0.1ms) rollback transaction
3406
+  (10.2ms) DELETE FROM "asyncapi_server_jobs";
3407
+  (1.7ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
3408
+  (1.4ms) DELETE FROM sqlite_sequence where name = 'asyncapi_server_jobs';
3409
+  (0.1ms) begin transaction
3410
+  (0.0ms) commit transaction
3411
+  (0.0ms) begin transaction
3412
+  (0.1ms) rollback transaction
3413
+  (0.1ms) begin transaction
3414
+  (0.1ms) commit transaction
3415
+  (0.1ms) begin transaction
3416
+  (0.1ms) rollback transaction
3417
+  (0.1ms) begin transaction
3418
+  (0.0ms) commit transaction
3419
+  (0.0ms) begin transaction
3420
+  (0.1ms) rollback transaction
3421
+  (0.3ms) begin transaction
3422
+  (0.2ms) commit transaction
3423
+  (0.1ms) begin transaction
3424
+  (0.1ms) rollback transaction
3425
+  (0.1ms) begin transaction
3426
+  (0.1ms) commit transaction
3427
+  (0.0ms) begin transaction
3428
+  (0.0ms) rollback transaction
3429
+  (0.1ms) begin transaction
3430
+  (0.1ms) commit transaction
3431
+  (0.0ms) begin transaction
3432
+  (0.0ms) SAVEPOINT active_record_1
3433
+ SQL (2.8ms) INSERT INTO "asyncapi_server_jobs" ("status", "callback_url", "class_name", "params") VALUES (?, ?, ?, ?) [["status", 2], ["callback_url", "http://callback_url.com"], ["class_name", "CreateStorageFacility"], ["params", "{\"param\":\"values\"}"]]
3434
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3435
+  (4.1ms) rollback transaction
3436
+  (0.5ms) begin transaction
3437
+  (0.1ms) commit transaction
3438
+  (0.1ms) begin transaction
3439
+  (0.1ms) rollback transaction
3440
+  (0.1ms) begin transaction
3441
+  (0.0ms) commit transaction
3442
+  (0.1ms) begin transaction
3443
+  (0.1ms) SAVEPOINT active_record_1
3444
+ SQL (3.9ms) INSERT INTO "asyncapi_server_jobs" ("secret") VALUES (?) [["secret", "12312"]]
3445
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3446
+ Processing by Asyncapi::Server::V1::JobsController#destroy as JSON
3447
+ Parameters: {"secret"=>"12312", "id"=>"1"}
3448
+ Asyncapi::Server::Job Load (0.2ms) SELECT "asyncapi_server_jobs".* FROM "asyncapi_server_jobs" WHERE "asyncapi_server_jobs"."id" = ? AND "asyncapi_server_jobs"."secret" = ? LIMIT 1 [["id", 1], ["secret", "12312"]]
3449
+  (0.1ms) SAVEPOINT active_record_1
3450
+ SQL (0.2ms) DELETE FROM "asyncapi_server_jobs" WHERE "asyncapi_server_jobs"."id" = ? [["id", 1]]
3451
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3452
+ Completed 204 No Content in 109ms (ActiveRecord: 0.6ms)
3453
+  (2.1ms) rollback transaction
3454
+  (0.1ms) begin transaction
3455
+  (0.1ms) commit transaction
3456
+  (0.0ms) begin transaction
3457
+  (0.1ms) SAVEPOINT active_record_1
3458
+ SQL (4.3ms) INSERT INTO "asyncapi_server_jobs" ("secret") VALUES (?) [["secret", "12312"]]
3459
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3460
+ Processing by Asyncapi::Server::V1::JobsController#destroy as JSON
3461
+ Parameters: {"secret"=>"12315", "id"=>"1"}
3462
+ Asyncapi::Server::Job Load (0.1ms) SELECT "asyncapi_server_jobs".* FROM "asyncapi_server_jobs" WHERE "asyncapi_server_jobs"."id" = ? AND "asyncapi_server_jobs"."secret" = ? LIMIT 1 [["id", 1], ["secret", "12315"]]
3463
+ Rendered text template (0.0ms)
3464
+ Completed 404 Not Found in 15ms (Views: 13.8ms | ActiveRecord: 0.1ms)
3465
+  (3.4ms) rollback transaction
3466
+  (0.3ms) begin transaction
3467
+  (0.1ms) commit transaction
3468
+  (0.2ms) begin transaction
3469
+  (0.2ms) SAVEPOINT active_record_1
3470
+ SQL (4.8ms) INSERT INTO "asyncapi_server_jobs" DEFAULT VALUES
3471
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3472
+  (0.1ms) SAVEPOINT active_record_1
3473
+ SQL (0.2ms) INSERT INTO "asyncapi_server_jobs" DEFAULT VALUES
3474
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3475
+ Processing by Asyncapi::Server::V1::JobsController#index as JSON
3476
+ Parameters: {"page"=>2, "per_page"=>1}
3477
+  (0.1ms) SELECT COUNT(*) FROM "asyncapi_server_jobs"
3478
+ Asyncapi::Server::Job Load (0.2ms) SELECT "asyncapi_server_jobs".* FROM "asyncapi_server_jobs" LIMIT 1 OFFSET 1
3479
+ Completed 200 OK in 57ms (Views: 48.2ms | ActiveRecord: 0.3ms)
3480
+  (2.4ms) rollback transaction
3481
+  (0.1ms) begin transaction
3482
+  (0.0ms) commit transaction
3483
+  (0.1ms) begin transaction
3484
+  (0.1ms) SAVEPOINT active_record_1
3485
+ SQL (3.5ms) INSERT INTO "asyncapi_server_jobs" DEFAULT VALUES
3486
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3487
+ Processing by Asyncapi::Server::V1::JobsController#show as JSON
3488
+ Parameters: {"id"=>"1"}
3489
+ Asyncapi::Server::Job Load (0.1ms) SELECT "asyncapi_server_jobs".* FROM "asyncapi_server_jobs" WHERE "asyncapi_server_jobs"."id" = ? LIMIT 1 [["id", 1]]
3490
+ Completed 200 OK in 60ms (Views: 58.9ms | ActiveRecord: 0.1ms)
3491
+  (2.9ms) rollback transaction
3492
+  (0.1ms) begin transaction
3493
+  (0.1ms) commit transaction
3494
+  (0.0ms) begin transaction
3495
+  (0.1ms) rollback transaction
3496
+  (0.1ms) begin transaction
3497
+  (0.1ms) commit transaction
3498
+  (0.1ms) begin transaction
3499
+  (0.1ms) rollback transaction
3500
+ Started POST "/tests" for 127.0.0.1 at 2016-07-21 02:16:54 +0000
3501
+ Processing by TestsController#create as HTML
3502
+ Parameters: {"job"=>{"callback_url"=>"callback_url", "params"=>"{\"client\":\"params\"}", "secret"=>"secret"}}
3503
+  (0.1ms) begin transaction
3504
+ SQL (4.2ms) INSERT INTO "asyncapi_server_jobs" ("callback_url", "class_name", "params", "secret") VALUES (?, ?, ?, ?) [["callback_url", "callback_url"], ["class_name", "Runner"], ["params", "{\"client\":\"params\"}"], ["secret", "secret"]]
3505
+  (1.9ms) commit transaction
3506
+ Completed 200 OK in 111ms (Views: 101.7ms | ActiveRecord: 6.1ms)
3507
+  (6.1ms) DELETE FROM "asyncapi_server_jobs";
3508
+  (5.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
3509
+  (6.1ms) DELETE FROM sqlite_sequence where name = 'asyncapi_server_jobs';
3510
+  (0.1ms) begin transaction
3511
+  (0.1ms) commit transaction
3512
+  (0.1ms) begin transaction
3513
+  (0.1ms) rollback transaction
3514
+  (0.2ms) begin transaction
3515
+  (0.1ms) commit transaction
3516
+  (0.1ms) begin transaction
3517
+  (0.1ms) rollback transaction
3518
+  (0.1ms) begin transaction
3519
+  (0.1ms) commit transaction
3520
+  (0.1ms) begin transaction
3521
+  (0.1ms) rollback transaction
3522
+  (0.1ms) begin transaction
3523
+  (0.0ms) commit transaction
3524
+  (0.1ms) begin transaction
3525
+  (0.0ms) SAVEPOINT active_record_1
3526
+ SQL (4.3ms) INSERT INTO "asyncapi_server_jobs" ("class_name", "params", "callback_url", "secret") VALUES (?, ?, ?, ?) [["class_name", "Runner"], ["params", "{\"some\":\"params\"}"], ["callback_url", "client_job_url"], ["secret", "sekret"]]
3527
+  (0.2ms) RELEASE SAVEPOINT active_record_1
3528
+ Asyncapi::Server::Job Load (0.1ms) SELECT "asyncapi_server_jobs".* FROM "asyncapi_server_jobs" WHERE "asyncapi_server_jobs"."id" = ? LIMIT 1 [["id", 1]]
3529
+  (0.1ms) SAVEPOINT active_record_1
3530
+ SQL (0.2ms) UPDATE "asyncapi_server_jobs" SET "status" = ? WHERE "asyncapi_server_jobs"."id" = ? [["status", 1], ["id", 1]]
3531
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3532
+ Asyncapi::Server::Job Load (0.1ms) SELECT "asyncapi_server_jobs".* FROM "asyncapi_server_jobs" WHERE "asyncapi_server_jobs"."id" = ? LIMIT 1 [["id", 1]]
3533
+  (2.8ms) rollback transaction
3534
+  (0.1ms) begin transaction
3535
+  (0.1ms) commit transaction
3536
+  (0.1ms) begin transaction
3537
+  (0.0ms) SAVEPOINT active_record_1
3538
+ SQL (3.1ms) INSERT INTO "asyncapi_server_jobs" ("class_name", "callback_url", "secret") VALUES (?, ?, ?) [["class_name", "Runner"], ["callback_url", "client_job_url"], ["secret", "sekret"]]
3539
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3540
+ Asyncapi::Server::Job Load (0.2ms) SELECT "asyncapi_server_jobs".* FROM "asyncapi_server_jobs" WHERE "asyncapi_server_jobs"."id" = ? LIMIT 1 [["id", 1]]
3541
+  (0.1ms) SAVEPOINT active_record_1
3542
+ SQL (0.1ms) UPDATE "asyncapi_server_jobs" SET "status" = ? WHERE "asyncapi_server_jobs"."id" = ? [["status", 2], ["id", 1]]
3543
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3544
+ Asyncapi::Server::Job Load (0.0ms) SELECT "asyncapi_server_jobs".* FROM "asyncapi_server_jobs" WHERE "asyncapi_server_jobs"."id" = ? LIMIT 1 [["id", 1]]
3545
+  (2.1ms) rollback transaction