bloom_remit 0.7.0 → 0.8.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/services/bloom_remit/initialize_client.rb +3 -3
- data/lib/bloom_remit.rb +2 -1
- data/lib/bloom_remit/version.rb +1 -1
- data/spec/bloom_remit_spec.rb +1 -2
- data/spec/dummy/config/database.yml +2 -1
- data/spec/dummy/config/database.yml.sample +2 -1
- data/spec/dummy/config/database.yml.travis +7 -0
- data/spec/dummy/log/development.log +116 -0
- data/spec/dummy/log/test.log +2322 -0
- data/spec/rails_helper.rb +1 -1
- data/spec/services/bloom_remit/create_txn_spec.rb +1 -1
- data/spec/services/bloom_remit/initialize_client_spec.rb +4 -4
- data/spec/services/bloom_remit/txns/handle_response_spec.rb +2 -2
- data/spec/services/bloom_remit/txns/post_spec.rb +1 -1
- data/spec/support/vcr.rb +1 -1
- metadata +6 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 19e5b892ac994036a07aa500f15a42d40218b98d
|
4
|
+
data.tar.gz: 1f205caf04341f305ae7c21b9dbf0e92f12aecb6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b3e6c2ee8efc6d63d9163bebe7cbd32b966290a1e27f49fae93eaff9972ac2d68dc5c65de3b3af1d6a5e2e8869aeabd427eb1b5e9f528c258457b41c0394596f
|
7
|
+
data.tar.gz: 7e15e8b2a09af1ba376e466b501ba67c2b9c1f4486a2da37eaac83948efee9eae9dbb3370a96f48083ec0b9d22cd7ef63a92c78a1235a09444b7cc62706e9d9c
|
@@ -6,10 +6,10 @@ module BloomRemit
|
|
6
6
|
|
7
7
|
executed do |c|
|
8
8
|
c.client = BloomRemitClient.new(
|
9
|
-
|
10
|
-
|
9
|
+
api_token: BloomRemit.token,
|
10
|
+
api_secret: BloomRemit.secret,
|
11
11
|
agent_id: BloomRemit.agent_id,
|
12
|
-
|
12
|
+
sandbox: BloomRemit.sandbox,
|
13
13
|
)
|
14
14
|
end
|
15
15
|
|
data/lib/bloom_remit.rb
CHANGED
@@ -20,7 +20,8 @@ module BloomRemit
|
|
20
20
|
mattr_accessor :token
|
21
21
|
mattr_accessor :secret
|
22
22
|
mattr_accessor :agent_id
|
23
|
-
mattr_accessor :
|
23
|
+
mattr_accessor :sandbox
|
24
|
+
mattr_accessor :host
|
24
25
|
mattr_reader :sender_id_method_default
|
25
26
|
mattr_accessor :on_txn_response
|
26
27
|
@@sender_id_method_default = :bloom_remit_id
|
data/lib/bloom_remit/version.rb
CHANGED
data/spec/bloom_remit_spec.rb
CHANGED
@@ -6,14 +6,13 @@ RSpec.describe BloomRemit do
|
|
6
6
|
BloomRemit.configure do |c|
|
7
7
|
c.token = "token"
|
8
8
|
c.secret = "secret"
|
9
|
-
c.url = "https://url.com"
|
10
9
|
c.agent_id = "agent_id"
|
11
10
|
c.on_txn_response = OnTxnResponse
|
11
|
+
c.sandbox = true
|
12
12
|
end
|
13
13
|
|
14
14
|
expect(described_class.token).to eq "token"
|
15
15
|
expect(described_class.secret).to eq "secret"
|
16
|
-
expect(described_class.url).to eq "https://url.com"
|
17
16
|
expect(described_class.agent_id).to eq "agent_id"
|
18
17
|
expect(described_class.sender_id_method).to eq :bloom_remit_id
|
19
18
|
expect(described_class.on_txn_response).to eq OnTxnResponse
|
@@ -2191,4 +2191,120 @@ WHERE c.contype = 'f'
|
|
2191
2191
|
AND t1.relname = 'users'
|
2192
2192
|
AND t3.nspname = ANY (current_schemas(false))
|
2193
2193
|
ORDER BY c.conname
|
2194
|
+
[0m
|
2195
|
+
[1m[36mSQL (1.3ms)[0m [1mCREATE EXTENSION IF NOT EXISTS "plpgsql"[0m
|
2196
|
+
[1m[35m (59.8ms)[0m CREATE TABLE "billers" ("id" serial primary key, "slug" character varying)
|
2197
|
+
[1m[36m (75.5ms)[0m [1mCREATE TABLE "bloom_remit_responses" ("id" serial primary key, "txn_id" integer NOT NULL, "body" text NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [0m
|
2198
|
+
[1m[35m (39.0ms)[0m CREATE INDEX "index_bloom_remit_responses_on_txn_id" ON "bloom_remit_responses" USING btree ("txn_id")
|
2199
|
+
[1m[36m (56.4ms)[0m [1mCREATE TABLE "bloom_remit_txns" ("id" serial primary key, "status" integer DEFAULT 0 NOT NULL, "sender_id" character varying NOT NULL, "sender_type" character varying NOT NULL, "amount" decimal NOT NULL, "account_name" character varying, "account_id" character varying, "secret" uuid NOT NULL, "target_slug" character varying NOT NULL, "owner_id" character varying, "owner_type" character varying, "external_id" character varying NOT NULL, "status_description" text, "vendor_external_id" character varying) [0m
|
2200
|
+
[1m[35m (37.4ms)[0m CREATE INDEX "index_bloom_remit_txns_on_external_id" ON "bloom_remit_txns" USING btree ("external_id")
|
2201
|
+
[1m[36m (42.9ms)[0m [1mCREATE INDEX "index_bloom_remit_txns_on_owner_id_and_owner_type" ON "bloom_remit_txns" USING btree ("owner_id", "owner_type")[0m
|
2202
|
+
[1m[35m (41.0ms)[0m CREATE INDEX "index_bloom_remit_txns_on_vendor_external_id" ON "bloom_remit_txns" USING btree ("vendor_external_id")
|
2203
|
+
[1m[36m (56.9ms)[0m [1mCREATE TABLE "payments" ("id" serial primary key, "type" character varying) [0m
|
2204
|
+
[1m[35m (67.3ms)[0m CREATE TABLE "users" ("id" serial primary key, "email" character varying, "bloom_remit_id" character varying, "type" character varying)
|
2205
|
+
[1m[36m (32.4ms)[0m [1mCREATE TABLE "schema_migrations" ("version" character varying NOT NULL) [0m
|
2206
|
+
[1m[35m (31.2ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
2207
|
+
[1m[36m (1.5ms)[0m [1mSELECT version FROM "schema_migrations"[0m
|
2208
|
+
[1m[35m (10.5ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20160817003323')
|
2209
|
+
[1m[36m (9.9ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20160729085500')[0m
|
2210
|
+
[1m[35m (10.3ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20160805001840')
|
2211
|
+
[1m[36m (10.8ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20160805042105')[0m
|
2212
|
+
[1m[35m (11.6ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20160806011259')
|
2213
|
+
[1m[36m (11.0ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20160806012210')[0m
|
2214
|
+
[1m[35m (11.0ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20160729070509')
|
2215
|
+
[1m[36m (11.1ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20160805004223')[0m
|
2216
|
+
[1m[35m (10.7ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20160805004350')
|
2217
|
+
[1m[36m (13.6ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20160805040950')[0m
|
2218
|
+
[1m[35m (11.5ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20160805095308')
|
2219
|
+
[1m[36m (10.6ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20160806054012')[0m
|
2220
|
+
[1m[35m (19.6ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20160808081300')
|
2221
|
+
[1m[36m (14.0ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20160809043433')[0m
|
2222
|
+
[1m[35mSQL (0.7ms)[0m CREATE EXTENSION IF NOT EXISTS "plpgsql"
|
2223
|
+
[1m[36m (71.2ms)[0m [1mCREATE TABLE "billers" ("id" serial primary key, "slug" character varying) [0m
|
2224
|
+
[1m[35m (57.2ms)[0m CREATE TABLE "bloom_remit_responses" ("id" serial primary key, "txn_id" integer NOT NULL, "body" text NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
|
2225
|
+
[1m[36m (42.7ms)[0m [1mCREATE INDEX "index_bloom_remit_responses_on_txn_id" ON "bloom_remit_responses" USING btree ("txn_id")[0m
|
2226
|
+
[1m[35m (69.8ms)[0m CREATE TABLE "bloom_remit_txns" ("id" serial primary key, "status" integer DEFAULT 0 NOT NULL, "sender_id" character varying NOT NULL, "sender_type" character varying NOT NULL, "amount" decimal NOT NULL, "account_name" character varying, "account_id" character varying, "secret" uuid NOT NULL, "target_slug" character varying NOT NULL, "owner_id" character varying, "owner_type" character varying, "external_id" character varying NOT NULL, "status_description" text, "vendor_external_id" character varying)
|
2227
|
+
[1m[36m (35.7ms)[0m [1mCREATE INDEX "index_bloom_remit_txns_on_external_id" ON "bloom_remit_txns" USING btree ("external_id")[0m
|
2228
|
+
[1m[35m (35.9ms)[0m CREATE INDEX "index_bloom_remit_txns_on_owner_id_and_owner_type" ON "bloom_remit_txns" USING btree ("owner_id", "owner_type")
|
2229
|
+
[1m[36m (42.6ms)[0m [1mCREATE INDEX "index_bloom_remit_txns_on_vendor_external_id" ON "bloom_remit_txns" USING btree ("vendor_external_id")[0m
|
2230
|
+
[1m[35m (71.4ms)[0m CREATE TABLE "payments" ("id" serial primary key, "type" character varying)
|
2231
|
+
[1m[36m (54.0ms)[0m [1mCREATE TABLE "users" ("id" serial primary key, "email" character varying, "bloom_remit_id" character varying, "type" character varying) [0m
|
2232
|
+
[1m[35m (36.0ms)[0m CREATE TABLE "schema_migrations" ("version" character varying NOT NULL)
|
2233
|
+
[1m[36m (33.3ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
2234
|
+
[1m[35m (1.1ms)[0m SELECT version FROM "schema_migrations"
|
2235
|
+
[1m[36m (9.8ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20160817003323')[0m
|
2236
|
+
[1m[35m (12.7ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20160729085500')
|
2237
|
+
[1m[36m (13.9ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20160805001840')[0m
|
2238
|
+
[1m[35m (13.0ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20160805042105')
|
2239
|
+
[1m[36m (13.4ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20160806011259')[0m
|
2240
|
+
[1m[35m (12.0ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20160806012210')
|
2241
|
+
[1m[36m (17.0ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20160729070509')[0m
|
2242
|
+
[1m[35m (12.6ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20160805004223')
|
2243
|
+
[1m[36m (9.1ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20160805004350')[0m
|
2244
|
+
[1m[35m (9.6ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20160805040950')
|
2245
|
+
[1m[36m (10.0ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20160805095308')[0m
|
2246
|
+
[1m[35m (12.8ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20160806054012')
|
2247
|
+
[1m[36m (9.5ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20160808081300')[0m
|
2248
|
+
[1m[35m (10.0ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20160809043433')
|
2249
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.9ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
2250
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.6ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
2251
|
+
[1m[36m (3.1ms)[0m [1mSELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
|
2252
|
+
FROM pg_constraint c
|
2253
|
+
JOIN pg_class t1 ON c.conrelid = t1.oid
|
2254
|
+
JOIN pg_class t2 ON c.confrelid = t2.oid
|
2255
|
+
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
|
2256
|
+
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
|
2257
|
+
JOIN pg_namespace t3 ON c.connamespace = t3.oid
|
2258
|
+
WHERE c.contype = 'f'
|
2259
|
+
AND t1.relname = 'billers'
|
2260
|
+
AND t3.nspname = ANY (current_schemas(false))
|
2261
|
+
ORDER BY c.conname
|
2262
|
+
[0m
|
2263
|
+
[1m[35m (4.9ms)[0m SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
|
2264
|
+
FROM pg_constraint c
|
2265
|
+
JOIN pg_class t1 ON c.conrelid = t1.oid
|
2266
|
+
JOIN pg_class t2 ON c.confrelid = t2.oid
|
2267
|
+
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
|
2268
|
+
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
|
2269
|
+
JOIN pg_namespace t3 ON c.connamespace = t3.oid
|
2270
|
+
WHERE c.contype = 'f'
|
2271
|
+
AND t1.relname = 'bloom_remit_responses'
|
2272
|
+
AND t3.nspname = ANY (current_schemas(false))
|
2273
|
+
ORDER BY c.conname
|
2274
|
+
|
2275
|
+
[1m[36m (2.3ms)[0m [1mSELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
|
2276
|
+
FROM pg_constraint c
|
2277
|
+
JOIN pg_class t1 ON c.conrelid = t1.oid
|
2278
|
+
JOIN pg_class t2 ON c.confrelid = t2.oid
|
2279
|
+
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
|
2280
|
+
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
|
2281
|
+
JOIN pg_namespace t3 ON c.connamespace = t3.oid
|
2282
|
+
WHERE c.contype = 'f'
|
2283
|
+
AND t1.relname = 'bloom_remit_txns'
|
2284
|
+
AND t3.nspname = ANY (current_schemas(false))
|
2285
|
+
ORDER BY c.conname
|
2286
|
+
[0m
|
2287
|
+
[1m[35m (2.3ms)[0m SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
|
2288
|
+
FROM pg_constraint c
|
2289
|
+
JOIN pg_class t1 ON c.conrelid = t1.oid
|
2290
|
+
JOIN pg_class t2 ON c.confrelid = t2.oid
|
2291
|
+
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
|
2292
|
+
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
|
2293
|
+
JOIN pg_namespace t3 ON c.connamespace = t3.oid
|
2294
|
+
WHERE c.contype = 'f'
|
2295
|
+
AND t1.relname = 'payments'
|
2296
|
+
AND t3.nspname = ANY (current_schemas(false))
|
2297
|
+
ORDER BY c.conname
|
2298
|
+
|
2299
|
+
[1m[36m (2.4ms)[0m [1mSELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
|
2300
|
+
FROM pg_constraint c
|
2301
|
+
JOIN pg_class t1 ON c.conrelid = t1.oid
|
2302
|
+
JOIN pg_class t2 ON c.confrelid = t2.oid
|
2303
|
+
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
|
2304
|
+
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
|
2305
|
+
JOIN pg_namespace t3 ON c.connamespace = t3.oid
|
2306
|
+
WHERE c.contype = 'f'
|
2307
|
+
AND t1.relname = 'users'
|
2308
|
+
AND t3.nspname = ANY (current_schemas(false))
|
2309
|
+
ORDER BY c.conname
|
2194
2310
|
[0m
|
data/spec/dummy/log/test.log
CHANGED
@@ -31505,3 +31505,2325 @@ Completed 204 No Content in 47ms (ActiveRecord: 1.2ms)
|
|
31505
31505
|
[1m[35m (0.4ms)[0m COMMIT
|
31506
31506
|
[1m[36m (0.4ms)[0m [1mBEGIN[0m
|
31507
31507
|
[1m[35m (0.4ms)[0m ROLLBACK
|
31508
|
+
[1m[36mActiveRecord::SchemaMigration Load (3.6ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
31509
|
+
[1m[35m (5.1ms)[0m ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "billers" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "payments" DISABLE TRIGGER ALL;ALTER TABLE "bloom_remit_responses" DISABLE TRIGGER ALL;ALTER TABLE "bloom_remit_txns" DISABLE TRIGGER ALL
|
31510
|
+
[1m[36m (2.6ms)[0m [1m SELECT schemaname || '.' || tablename
|
31511
|
+
FROM pg_tables
|
31512
|
+
WHERE
|
31513
|
+
tablename !~ '_prt_' AND
|
31514
|
+
tablename <> 'schema_migrations' AND
|
31515
|
+
schemaname = ANY (current_schemas(false))
|
31516
|
+
[0m
|
31517
|
+
[1m[35m (5.8ms)[0m select table_name from information_schema.views where table_schema = 'app_test'
|
31518
|
+
[1m[36m (34.6ms)[0m [1mTRUNCATE TABLE "public"."billers", "public"."users", "public"."payments", "public"."bloom_remit_responses", "public"."bloom_remit_txns" RESTART IDENTITY CASCADE;[0m
|
31519
|
+
[1m[35m (0.9ms)[0m ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "billers" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "payments" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_responses" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_txns" ENABLE TRIGGER ALL
|
31520
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
31521
|
+
[1m[35m (0.2ms)[0m COMMIT
|
31522
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
31523
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
31524
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.6ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
31525
|
+
[1m[35m (0.6ms)[0m ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "billers" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "payments" DISABLE TRIGGER ALL;ALTER TABLE "bloom_remit_responses" DISABLE TRIGGER ALL;ALTER TABLE "bloom_remit_txns" DISABLE TRIGGER ALL
|
31526
|
+
[1m[36m (1.5ms)[0m [1m SELECT schemaname || '.' || tablename
|
31527
|
+
FROM pg_tables
|
31528
|
+
WHERE
|
31529
|
+
tablename !~ '_prt_' AND
|
31530
|
+
tablename <> 'schema_migrations' AND
|
31531
|
+
schemaname = ANY (current_schemas(false))
|
31532
|
+
[0m
|
31533
|
+
[1m[35m (1.3ms)[0m select table_name from information_schema.views where table_schema = 'app_test'
|
31534
|
+
[1m[36m (24.6ms)[0m [1mTRUNCATE TABLE "public"."billers", "public"."users", "public"."payments", "public"."bloom_remit_responses", "public"."bloom_remit_txns" RESTART IDENTITY CASCADE;[0m
|
31535
|
+
[1m[35m (0.5ms)[0m ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "billers" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "payments" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_responses" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_txns" ENABLE TRIGGER ALL
|
31536
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
31537
|
+
[1m[35m (0.3ms)[0m COMMIT
|
31538
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
31539
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
31540
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.6ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
31541
|
+
[1m[35m (0.5ms)[0m ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "billers" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "payments" DISABLE TRIGGER ALL;ALTER TABLE "bloom_remit_responses" DISABLE TRIGGER ALL;ALTER TABLE "bloom_remit_txns" DISABLE TRIGGER ALL
|
31542
|
+
[1m[36m (1.4ms)[0m [1m SELECT schemaname || '.' || tablename
|
31543
|
+
FROM pg_tables
|
31544
|
+
WHERE
|
31545
|
+
tablename !~ '_prt_' AND
|
31546
|
+
tablename <> 'schema_migrations' AND
|
31547
|
+
schemaname = ANY (current_schemas(false))
|
31548
|
+
[0m
|
31549
|
+
[1m[35m (1.2ms)[0m select table_name from information_schema.views where table_schema = 'app_test'
|
31550
|
+
[1m[36m (21.7ms)[0m [1mTRUNCATE TABLE "public"."billers", "public"."users", "public"."payments", "public"."bloom_remit_responses", "public"."bloom_remit_txns" RESTART IDENTITY CASCADE;[0m
|
31551
|
+
[1m[35m (0.4ms)[0m ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "billers" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "payments" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_responses" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_txns" ENABLE TRIGGER ALL
|
31552
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
31553
|
+
[1m[35m (0.4ms)[0m COMMIT
|
31554
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
31555
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
31556
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.6ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
31557
|
+
[1m[35m (0.4ms)[0m ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "billers" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "payments" DISABLE TRIGGER ALL;ALTER TABLE "bloom_remit_responses" DISABLE TRIGGER ALL;ALTER TABLE "bloom_remit_txns" DISABLE TRIGGER ALL
|
31558
|
+
[1m[36m (1.2ms)[0m [1m SELECT schemaname || '.' || tablename
|
31559
|
+
FROM pg_tables
|
31560
|
+
WHERE
|
31561
|
+
tablename !~ '_prt_' AND
|
31562
|
+
tablename <> 'schema_migrations' AND
|
31563
|
+
schemaname = ANY (current_schemas(false))
|
31564
|
+
[0m
|
31565
|
+
[1m[35m (1.3ms)[0m select table_name from information_schema.views where table_schema = 'app_test'
|
31566
|
+
[1m[36m (27.6ms)[0m [1mTRUNCATE TABLE "public"."billers", "public"."users", "public"."payments", "public"."bloom_remit_responses", "public"."bloom_remit_txns" RESTART IDENTITY CASCADE;[0m
|
31567
|
+
[1m[35m (0.5ms)[0m ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "billers" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "payments" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_responses" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_txns" ENABLE TRIGGER ALL
|
31568
|
+
[1m[36m (0.4ms)[0m [1mBEGIN[0m
|
31569
|
+
[1m[35m (0.4ms)[0m COMMIT
|
31570
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
31571
|
+
[1m[35m (0.4ms)[0m ROLLBACK
|
31572
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.6ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
31573
|
+
[1m[35m (0.4ms)[0m ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "billers" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "payments" DISABLE TRIGGER ALL;ALTER TABLE "bloom_remit_responses" DISABLE TRIGGER ALL;ALTER TABLE "bloom_remit_txns" DISABLE TRIGGER ALL
|
31574
|
+
[1m[36m (1.2ms)[0m [1m SELECT schemaname || '.' || tablename
|
31575
|
+
FROM pg_tables
|
31576
|
+
WHERE
|
31577
|
+
tablename !~ '_prt_' AND
|
31578
|
+
tablename <> 'schema_migrations' AND
|
31579
|
+
schemaname = ANY (current_schemas(false))
|
31580
|
+
[0m
|
31581
|
+
[1m[35m (1.5ms)[0m select table_name from information_schema.views where table_schema = 'app_test'
|
31582
|
+
[1m[36m (22.8ms)[0m [1mTRUNCATE TABLE "public"."billers", "public"."users", "public"."payments", "public"."bloom_remit_responses", "public"."bloom_remit_txns" RESTART IDENTITY CASCADE;[0m
|
31583
|
+
[1m[35m (0.7ms)[0m ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "billers" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "payments" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_responses" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_txns" ENABLE TRIGGER ALL
|
31584
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
31585
|
+
[1m[35m (0.3ms)[0m COMMIT
|
31586
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
31587
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
31588
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.7ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
31589
|
+
[1m[35m (0.5ms)[0m ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "billers" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "payments" DISABLE TRIGGER ALL;ALTER TABLE "bloom_remit_responses" DISABLE TRIGGER ALL;ALTER TABLE "bloom_remit_txns" DISABLE TRIGGER ALL
|
31590
|
+
[1m[36m (1.3ms)[0m [1m SELECT schemaname || '.' || tablename
|
31591
|
+
FROM pg_tables
|
31592
|
+
WHERE
|
31593
|
+
tablename !~ '_prt_' AND
|
31594
|
+
tablename <> 'schema_migrations' AND
|
31595
|
+
schemaname = ANY (current_schemas(false))
|
31596
|
+
[0m
|
31597
|
+
[1m[35m (1.3ms)[0m select table_name from information_schema.views where table_schema = 'app_test'
|
31598
|
+
[1m[36m (22.0ms)[0m [1mTRUNCATE TABLE "public"."billers", "public"."users", "public"."payments", "public"."bloom_remit_responses", "public"."bloom_remit_txns" RESTART IDENTITY CASCADE;[0m
|
31599
|
+
[1m[35m (0.5ms)[0m ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "billers" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "payments" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_responses" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_txns" ENABLE TRIGGER ALL
|
31600
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
31601
|
+
[1m[35m (0.3ms)[0m COMMIT
|
31602
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
31603
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
31604
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.5ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
31605
|
+
[1m[35m (0.5ms)[0m ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "billers" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "payments" DISABLE TRIGGER ALL;ALTER TABLE "bloom_remit_responses" DISABLE TRIGGER ALL;ALTER TABLE "bloom_remit_txns" DISABLE TRIGGER ALL
|
31606
|
+
[1m[36m (1.3ms)[0m [1m SELECT schemaname || '.' || tablename
|
31607
|
+
FROM pg_tables
|
31608
|
+
WHERE
|
31609
|
+
tablename !~ '_prt_' AND
|
31610
|
+
tablename <> 'schema_migrations' AND
|
31611
|
+
schemaname = ANY (current_schemas(false))
|
31612
|
+
[0m
|
31613
|
+
[1m[35m (1.0ms)[0m select table_name from information_schema.views where table_schema = 'app_test'
|
31614
|
+
[1m[36m (24.8ms)[0m [1mTRUNCATE TABLE "public"."billers", "public"."users", "public"."payments", "public"."bloom_remit_responses", "public"."bloom_remit_txns" RESTART IDENTITY CASCADE;[0m
|
31615
|
+
[1m[35m (0.5ms)[0m ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "billers" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "payments" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_responses" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_txns" ENABLE TRIGGER ALL
|
31616
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
31617
|
+
[1m[35m (0.3ms)[0m COMMIT
|
31618
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
31619
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
31620
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
31621
|
+
[1m[35m (0.3ms)[0m COMMIT
|
31622
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
31623
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
31624
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
31625
|
+
[1m[35m (0.3ms)[0m COMMIT
|
31626
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
31627
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
31628
|
+
[1m[36m (0.4ms)[0m [1mBEGIN[0m
|
31629
|
+
[1m[35mSQL (1.1ms)[0m INSERT INTO "billers" ("slug") VALUES ($1) RETURNING "id" [["slug", "PLDT"]]
|
31630
|
+
[1m[36m (0.7ms)[0m [1mCOMMIT[0m
|
31631
|
+
[1m[35m (0.3ms)[0m BEGIN
|
31632
|
+
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO "users" ("type") VALUES ($1) RETURNING "id"[0m [["type", "SubUser"]]
|
31633
|
+
[1m[35m (0.9ms)[0m COMMIT
|
31634
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
31635
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "payments" ("type") VALUES ($1) RETURNING "id" [["type", "SubPayment"]]
|
31636
|
+
[1m[36m (1.0ms)[0m [1mCOMMIT[0m
|
31637
|
+
[1m[35m (0.3ms)[0m BEGIN
|
31638
|
+
[1m[36mSQL (2.1ms)[0m [1mINSERT INTO "bloom_remit_txns" ("secret", "sender_type", "sender_id", "amount", "account_name", "account_id", "target_slug", "owner_id", "owner_type", "external_id") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id"[0m [["secret", "ec62a532-5145-4b31-a908-51cdc1083fab"], ["sender_type", "User"], ["sender_id", "1"], ["amount", "800.0"], ["account_name", "028109090"], ["account_id", "Hooli X"], ["target_slug", "PLDT"], ["owner_id", "1"], ["owner_type", "Payment"], ["external_id", "083d4e4ee08cb70794798235"]]
|
31639
|
+
[1m[35m (0.9ms)[0m COMMIT
|
31640
|
+
[1m[36mUser Load (1.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1[0m [["id", 1]]
|
31641
|
+
[1m[35mPayment Load (0.4ms)[0m SELECT "payments".* FROM "payments" WHERE "payments"."id" = $1 LIMIT 1 [["id", 1]]
|
31642
|
+
[1m[36m (0.3ms)[0m [1mALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "billers" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "payments" DISABLE TRIGGER ALL;ALTER TABLE "bloom_remit_responses" DISABLE TRIGGER ALL;ALTER TABLE "bloom_remit_txns" DISABLE TRIGGER ALL[0m
|
31643
|
+
[1m[35m (20.5ms)[0m TRUNCATE TABLE "public"."billers", "public"."users", "public"."payments", "public"."bloom_remit_responses", "public"."bloom_remit_txns" RESTART IDENTITY CASCADE;
|
31644
|
+
[1m[36m (0.4ms)[0m [1mALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "billers" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "payments" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_responses" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_txns" ENABLE TRIGGER ALL[0m
|
31645
|
+
[1m[35m (0.3ms)[0m BEGIN
|
31646
|
+
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO "users" DEFAULT VALUES RETURNING "id"[0m
|
31647
|
+
[1m[35m (1.0ms)[0m COMMIT
|
31648
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
31649
|
+
[1m[35mSQL (0.6ms)[0m INSERT INTO "bloom_remit_txns" ("target_slug", "amount", "secret", "external_id", "sender_id", "sender_type") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["target_slug", "TARGET_SLUG"], ["amount", "2500.0"], ["secret", "6ba32f9c-ce4d-4b5c-aeab-ad000df4c505"], ["external_id", "0733f02ca3f8adad8de50836"], ["sender_id", "1"], ["sender_type", "User"]]
|
31650
|
+
[1m[36m (1.0ms)[0m [1mCOMMIT[0m
|
31651
|
+
[1m[35mBloomRemit::Txn Load (0.4ms)[0m SELECT "bloom_remit_txns".* FROM "bloom_remit_txns" WHERE "bloom_remit_txns"."id" = $1 AND "bloom_remit_txns"."secret" = $2 LIMIT 1 [["id", 1], ["secret", "6ba32f9c-ce4d-4b5c-aeab-ad000df4c505"]]
|
31652
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
31653
|
+
[1m[35mSQL (1.2ms)[0m UPDATE "bloom_remit_txns" SET "status" = $1, "status_description" = $2, "vendor_external_id" = $3 WHERE "bloom_remit_txns"."id" = $4 [["status", 1], ["status_description", "My status description"], ["vendor_external_id", "somerefno"], ["id", 1]]
|
31654
|
+
[1m[36m (1.2ms)[0m [1mCOMMIT[0m
|
31655
|
+
[1m[35m (0.4ms)[0m ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "billers" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "payments" DISABLE TRIGGER ALL;ALTER TABLE "bloom_remit_responses" DISABLE TRIGGER ALL;ALTER TABLE "bloom_remit_txns" DISABLE TRIGGER ALL
|
31656
|
+
[1m[36m (24.3ms)[0m [1mTRUNCATE TABLE "public"."billers", "public"."users", "public"."payments", "public"."bloom_remit_responses", "public"."bloom_remit_txns" RESTART IDENTITY CASCADE;[0m
|
31657
|
+
[1m[35m (0.3ms)[0m ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "billers" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "payments" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_responses" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_txns" ENABLE TRIGGER ALL
|
31658
|
+
[1m[36m (0.4ms)[0m [1mBEGIN[0m
|
31659
|
+
[1m[35m (0.3ms)[0m COMMIT
|
31660
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
31661
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
31662
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
31663
|
+
[1m[35m (0.3ms)[0m COMMIT
|
31664
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
31665
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
31666
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
31667
|
+
[1m[35m (0.2ms)[0m COMMIT
|
31668
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
31669
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
31670
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
31671
|
+
[1m[35m (0.4ms)[0m COMMIT
|
31672
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
31673
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
31674
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
31675
|
+
[1m[35m (0.2ms)[0m COMMIT
|
31676
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
31677
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
31678
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
31679
|
+
[1m[35m (0.2ms)[0m COMMIT
|
31680
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
31681
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
31682
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
31683
|
+
[1m[35m (0.3ms)[0m COMMIT
|
31684
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
31685
|
+
[1m[35m (0.4ms)[0m ROLLBACK
|
31686
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
31687
|
+
[1m[35m (0.8ms)[0m COMMIT
|
31688
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
31689
|
+
[1m[35m (0.3ms)[0m SAVEPOINT active_record_1
|
31690
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "users" DEFAULT VALUES RETURNING "id"[0m
|
31691
|
+
[1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1
|
31692
|
+
[1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m
|
31693
|
+
[1m[35mSQL (0.7ms)[0m INSERT INTO "bloom_remit_txns" ("target_slug", "amount", "secret", "external_id", "sender_id", "sender_type") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["target_slug", "TARGET_SLUG"], ["amount", "2500.0"], ["secret", "184ddaa0-0f06-46b3-b757-254c82b73435"], ["external_id", "e9a7d4929ed5aaae009c4661"], ["sender_id", "1"], ["sender_type", "User"]]
|
31694
|
+
[1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
31695
|
+
Started POST "/bloom_remit/api/v1/txns/1" for 127.0.0.1 at 2016-09-16 01:11:14 +0000
|
31696
|
+
Processing by BloomRemit::Api::V1::TxnsController#post_update as JSON
|
31697
|
+
Parameters: {"secret"=>"fake", "status"=>"doesn't matter", "id"=>"1", "txn"=>{"status"=>"doesn't matter", "secret"=>"fake"}}
|
31698
|
+
[1m[35mBloomRemit::Txn Load (0.4ms)[0m SELECT "bloom_remit_txns".* FROM "bloom_remit_txns" WHERE "bloom_remit_txns"."id" = $1 AND "bloom_remit_txns"."secret" = $2 LIMIT 1 [["id", 1], ["secret", nil]]
|
31699
|
+
Rendered text template (0.0ms)
|
31700
|
+
Completed 404 Not Found in 51ms (Views: 48.9ms | ActiveRecord: 0.4ms)
|
31701
|
+
Started POST "/bloom_remit/api/v1/txns/1" for 127.0.0.1 at 2016-09-16 01:11:14 +0000
|
31702
|
+
Processing by BloomRemit::Api::V1::TxnsController#post_update as JSON
|
31703
|
+
Parameters: {"secret"=>"184ddaa0-0f06-46b3-b757-254c82b73435", "status"=>"paid", "id"=>"1", "txn"=>{"status"=>"paid", "secret"=>"184ddaa0-0f06-46b3-b757-254c82b73435"}}
|
31704
|
+
[1m[36mBloomRemit::Txn Load (0.4ms)[0m [1mSELECT "bloom_remit_txns".* FROM "bloom_remit_txns" WHERE "bloom_remit_txns"."id" = $1 AND "bloom_remit_txns"."secret" = $2 LIMIT 1[0m [["id", 1], ["secret", "184ddaa0-0f06-46b3-b757-254c82b73435"]]
|
31705
|
+
[1m[35m (0.3ms)[0m SAVEPOINT active_record_1
|
31706
|
+
[1m[36mSQL (0.3ms)[0m [1mUPDATE "bloom_remit_txns" SET "status" = $1 WHERE "bloom_remit_txns"."id" = $2[0m [["status", 1], ["id", 1]]
|
31707
|
+
[1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1
|
31708
|
+
Completed 200 OK in 7ms (Views: 0.4ms | ActiveRecord: 1.4ms)
|
31709
|
+
[1m[36mBloomRemit::Txn Load (0.3ms)[0m [1mSELECT "bloom_remit_txns".* FROM "bloom_remit_txns" WHERE "bloom_remit_txns"."id" = $1 LIMIT 1[0m [["id", 1]]
|
31710
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
31711
|
+
[1m[36m (0.6ms)[0m [1mBEGIN[0m
|
31712
|
+
[1m[35m (0.4ms)[0m COMMIT
|
31713
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
31714
|
+
[1m[35m (0.4ms)[0m SAVEPOINT active_record_1
|
31715
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "users" DEFAULT VALUES RETURNING "id"[0m
|
31716
|
+
[1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1
|
31717
|
+
[1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m
|
31718
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "bloom_remit_txns" ("target_slug", "amount", "secret", "external_id", "sender_id", "sender_type") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["target_slug", "TARGET_SLUG"], ["amount", "2500.0"], ["secret", "d77300d0-8e82-4545-9f4d-99e85fa873bf"], ["external_id", "e0c650e4ca347916339528d0"], ["sender_id", "2"], ["sender_type", "User"]]
|
31719
|
+
[1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
31720
|
+
Started PATCH "/bloom_remit/api/v1/txns/2" for 127.0.0.1 at 2016-09-16 01:11:14 +0000
|
31721
|
+
Processing by BloomRemit::Api::V1::TxnsController#update as JSON
|
31722
|
+
Parameters: {"secret"=>"fake", "status"=>"doesn't matter", "id"=>"2", "txn"=>{"status"=>"doesn't matter", "secret"=>"fake"}}
|
31723
|
+
[1m[35mBloomRemit::Txn Load (0.5ms)[0m SELECT "bloom_remit_txns".* FROM "bloom_remit_txns" WHERE "bloom_remit_txns"."id" = $1 AND "bloom_remit_txns"."secret" = $2 LIMIT 1 [["id", 2], ["secret", nil]]
|
31724
|
+
Rendered text template (0.0ms)
|
31725
|
+
Completed 404 Not Found in 3ms (Views: 1.0ms | ActiveRecord: 0.5ms)
|
31726
|
+
Started PATCH "/bloom_remit/api/v1/txns/2" for 127.0.0.1 at 2016-09-16 01:11:14 +0000
|
31727
|
+
Processing by BloomRemit::Api::V1::TxnsController#update as JSON
|
31728
|
+
Parameters: {"secret"=>"d77300d0-8e82-4545-9f4d-99e85fa873bf", "status"=>"paid", "id"=>"2", "txn"=>{"status"=>"paid", "secret"=>"d77300d0-8e82-4545-9f4d-99e85fa873bf"}}
|
31729
|
+
[1m[36mBloomRemit::Txn Load (0.5ms)[0m [1mSELECT "bloom_remit_txns".* FROM "bloom_remit_txns" WHERE "bloom_remit_txns"."id" = $1 AND "bloom_remit_txns"."secret" = $2 LIMIT 1[0m [["id", 2], ["secret", "d77300d0-8e82-4545-9f4d-99e85fa873bf"]]
|
31730
|
+
[1m[35m (0.3ms)[0m SAVEPOINT active_record_1
|
31731
|
+
[1m[36mSQL (0.4ms)[0m [1mUPDATE "bloom_remit_txns" SET "status" = $1 WHERE "bloom_remit_txns"."id" = $2[0m [["status", 1], ["id", 2]]
|
31732
|
+
[1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1
|
31733
|
+
Completed 204 No Content in 45ms (ActiveRecord: 1.6ms)
|
31734
|
+
[1m[36mBloomRemit::Txn Load (0.6ms)[0m [1mSELECT "bloom_remit_txns".* FROM "bloom_remit_txns" WHERE "bloom_remit_txns"."id" = $1 LIMIT 1[0m [["id", 2]]
|
31735
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
31736
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
31737
|
+
[1m[35m (0.3ms)[0m COMMIT
|
31738
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
31739
|
+
[1m[35m (0.4ms)[0m ROLLBACK
|
31740
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
31741
|
+
[1m[35m (0.2ms)[0m COMMIT
|
31742
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
31743
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
31744
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
31745
|
+
[1m[35m (0.2ms)[0m COMMIT
|
31746
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
31747
|
+
[1m[35m (0.3ms)[0m SAVEPOINT active_record_1
|
31748
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "payments" DEFAULT VALUES RETURNING "id"[0m
|
31749
|
+
[1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1
|
31750
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
31751
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "users" DEFAULT VALUES RETURNING "id"
|
31752
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
31753
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
31754
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "bloom_remit_txns" ("target_slug", "amount", "secret", "external_id", "owner_id", "owner_type", "sender_id", "sender_type") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["target_slug", "TARGET_SLUG"], ["amount", "2500.0"], ["secret", "f55849e6-746b-4c5b-ad34-aacf031fc1e5"], ["external_id", "88589a71abbeb29f0a4f4ce9"], ["owner_id", "1"], ["owner_type", "Payment"], ["sender_id", "3"], ["sender_type", "User"]]
|
31755
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
31756
|
+
[1m[36m (0.4ms)[0m [1mROLLBACK[0m
|
31757
|
+
[1m[35m (0.3ms)[0m BEGIN
|
31758
|
+
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
|
31759
|
+
[1m[35m (0.3ms)[0m BEGIN
|
31760
|
+
[1m[36m (0.4ms)[0m [1mSAVEPOINT active_record_1[0m
|
31761
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "payments" DEFAULT VALUES RETURNING "id"
|
31762
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
31763
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
31764
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" DEFAULT VALUES RETURNING "id"[0m
|
31765
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
31766
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
31767
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "bloom_remit_txns" ("target_slug", "amount", "secret", "external_id", "owner_id", "owner_type", "sender_id", "sender_type") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["target_slug", "TARGET_SLUG"], ["amount", "2500.0"], ["secret", "923e4ca7-8e87-4aa0-a942-d4dcf3cdcbb6"], ["external_id", "78eb5a99279d12b20024c736"], ["owner_id", "2"], ["owner_type", "Payment"], ["sender_id", "4"], ["sender_type", "User"]]
|
31768
|
+
[1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
31769
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
31770
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
31771
|
+
[1m[35m (0.3ms)[0m COMMIT
|
31772
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
31773
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
31774
|
+
[1m[36m (0.5ms)[0m [1mBEGIN[0m
|
31775
|
+
[1m[35m (0.3ms)[0m COMMIT
|
31776
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
31777
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
31778
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
31779
|
+
[1m[35m (0.3ms)[0m COMMIT
|
31780
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
31781
|
+
[1m[35m (0.4ms)[0m ROLLBACK
|
31782
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
31783
|
+
[1m[35m (0.3ms)[0m COMMIT
|
31784
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
31785
|
+
[1m[35m (0.4ms)[0m ROLLBACK
|
31786
|
+
[1m[36m (0.4ms)[0m [1mBEGIN[0m
|
31787
|
+
[1m[35m (0.4ms)[0m COMMIT
|
31788
|
+
[1m[36m (0.4ms)[0m [1mBEGIN[0m
|
31789
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
31790
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.6ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
31791
|
+
[1m[35m (0.4ms)[0m ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "billers" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "payments" DISABLE TRIGGER ALL;ALTER TABLE "bloom_remit_responses" DISABLE TRIGGER ALL;ALTER TABLE "bloom_remit_txns" DISABLE TRIGGER ALL
|
31792
|
+
[1m[36m (1.3ms)[0m [1m SELECT schemaname || '.' || tablename
|
31793
|
+
FROM pg_tables
|
31794
|
+
WHERE
|
31795
|
+
tablename !~ '_prt_' AND
|
31796
|
+
tablename <> 'schema_migrations' AND
|
31797
|
+
schemaname = ANY (current_schemas(false))
|
31798
|
+
[0m
|
31799
|
+
[1m[35m (1.1ms)[0m select table_name from information_schema.views where table_schema = 'app_test'
|
31800
|
+
[1m[36m (26.5ms)[0m [1mTRUNCATE TABLE "public"."billers", "public"."users", "public"."payments", "public"."bloom_remit_responses", "public"."bloom_remit_txns" RESTART IDENTITY CASCADE;[0m
|
31801
|
+
[1m[35m (0.5ms)[0m ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "billers" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "payments" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_responses" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_txns" ENABLE TRIGGER ALL
|
31802
|
+
[1m[36m (0.4ms)[0m [1mBEGIN[0m
|
31803
|
+
[1m[35m (0.3ms)[0m COMMIT
|
31804
|
+
[1m[36m (0.4ms)[0m [1mBEGIN[0m
|
31805
|
+
[1m[35m (0.4ms)[0m ROLLBACK
|
31806
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
31807
|
+
[1m[35m (0.3ms)[0m COMMIT
|
31808
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
31809
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
31810
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
31811
|
+
[1m[35m (0.4ms)[0m COMMIT
|
31812
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
31813
|
+
[1m[35m (0.4ms)[0m ROLLBACK
|
31814
|
+
[1m[36m (0.4ms)[0m [1mBEGIN[0m
|
31815
|
+
[1m[35mSQL (0.6ms)[0m INSERT INTO "billers" ("slug") VALUES ($1) RETURNING "id" [["slug", "PLDT"]]
|
31816
|
+
[1m[36m (0.8ms)[0m [1mCOMMIT[0m
|
31817
|
+
[1m[35m (0.3ms)[0m BEGIN
|
31818
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "users" ("type") VALUES ($1) RETURNING "id"[0m [["type", "SubUser"]]
|
31819
|
+
[1m[35m (0.9ms)[0m COMMIT
|
31820
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
31821
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "payments" ("type") VALUES ($1) RETURNING "id" [["type", "SubPayment"]]
|
31822
|
+
[1m[36m (1.1ms)[0m [1mCOMMIT[0m
|
31823
|
+
[1m[35m (0.3ms)[0m BEGIN
|
31824
|
+
[1m[36mSQL (0.7ms)[0m [1mINSERT INTO "bloom_remit_txns" ("secret", "sender_type", "sender_id", "amount", "account_name", "account_id", "target_slug", "owner_id", "owner_type", "external_id") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id"[0m [["secret", "260b046a-38ce-4935-b2af-beaae7ebf0ca"], ["sender_type", "User"], ["sender_id", "1"], ["amount", "800.0"], ["account_name", "028109090"], ["account_id", "Hooli X"], ["target_slug", "PLDT"], ["owner_id", "1"], ["owner_type", "Payment"], ["external_id", "7229ae29bfa05715a42fa8e4"]]
|
31825
|
+
[1m[35m (0.9ms)[0m COMMIT
|
31826
|
+
[1m[36mUser Load (0.4ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1[0m [["id", 1]]
|
31827
|
+
[1m[35mPayment Load (0.4ms)[0m SELECT "payments".* FROM "payments" WHERE "payments"."id" = $1 LIMIT 1 [["id", 1]]
|
31828
|
+
[1m[36m (0.5ms)[0m [1mALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "billers" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "payments" DISABLE TRIGGER ALL;ALTER TABLE "bloom_remit_responses" DISABLE TRIGGER ALL;ALTER TABLE "bloom_remit_txns" DISABLE TRIGGER ALL[0m
|
31829
|
+
[1m[35m (26.0ms)[0m TRUNCATE TABLE "public"."billers", "public"."users", "public"."payments", "public"."bloom_remit_responses", "public"."bloom_remit_txns" RESTART IDENTITY CASCADE;
|
31830
|
+
[1m[36m (0.5ms)[0m [1mALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "billers" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "payments" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_responses" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_txns" ENABLE TRIGGER ALL[0m
|
31831
|
+
[1m[35m (0.8ms)[0m BEGIN
|
31832
|
+
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO "users" DEFAULT VALUES RETURNING "id"[0m
|
31833
|
+
[1m[35m (1.2ms)[0m COMMIT
|
31834
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
31835
|
+
[1m[35mSQL (0.6ms)[0m INSERT INTO "bloom_remit_txns" ("target_slug", "amount", "secret", "external_id", "sender_id", "sender_type") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["target_slug", "TARGET_SLUG"], ["amount", "2500.0"], ["secret", "1cb3b6b4-c3f6-4515-9f0d-4c8993e5eb8f"], ["external_id", "306fac3998660b2277dcfd86"], ["sender_id", "1"], ["sender_type", "User"]]
|
31836
|
+
[1m[36m (1.0ms)[0m [1mCOMMIT[0m
|
31837
|
+
[1m[35mBloomRemit::Txn Load (0.4ms)[0m SELECT "bloom_remit_txns".* FROM "bloom_remit_txns" WHERE "bloom_remit_txns"."id" = $1 AND "bloom_remit_txns"."secret" = $2 LIMIT 1 [["id", 1], ["secret", "1cb3b6b4-c3f6-4515-9f0d-4c8993e5eb8f"]]
|
31838
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
31839
|
+
[1m[35mSQL (0.4ms)[0m UPDATE "bloom_remit_txns" SET "status" = $1, "status_description" = $2, "vendor_external_id" = $3 WHERE "bloom_remit_txns"."id" = $4 [["status", 1], ["status_description", "My status description"], ["vendor_external_id", "somerefno"], ["id", 1]]
|
31840
|
+
[1m[36m (1.0ms)[0m [1mCOMMIT[0m
|
31841
|
+
[1m[35m (0.4ms)[0m ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "billers" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "payments" DISABLE TRIGGER ALL;ALTER TABLE "bloom_remit_responses" DISABLE TRIGGER ALL;ALTER TABLE "bloom_remit_txns" DISABLE TRIGGER ALL
|
31842
|
+
[1m[36m (27.0ms)[0m [1mTRUNCATE TABLE "public"."billers", "public"."users", "public"."payments", "public"."bloom_remit_responses", "public"."bloom_remit_txns" RESTART IDENTITY CASCADE;[0m
|
31843
|
+
[1m[35m (0.7ms)[0m ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "billers" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "payments" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_responses" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_txns" ENABLE TRIGGER ALL
|
31844
|
+
[1m[36m (0.4ms)[0m [1mBEGIN[0m
|
31845
|
+
[1m[35m (0.5ms)[0m COMMIT
|
31846
|
+
[1m[36m (0.7ms)[0m [1mBEGIN[0m
|
31847
|
+
[1m[35m (0.4ms)[0m ROLLBACK
|
31848
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
31849
|
+
[1m[35m (0.3ms)[0m COMMIT
|
31850
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
31851
|
+
[1m[35m (0.4ms)[0m ROLLBACK
|
31852
|
+
[1m[36m (0.4ms)[0m [1mBEGIN[0m
|
31853
|
+
[1m[35m (0.4ms)[0m COMMIT
|
31854
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
31855
|
+
[1m[35m (0.5ms)[0m ROLLBACK
|
31856
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
31857
|
+
[1m[35m (0.4ms)[0m COMMIT
|
31858
|
+
[1m[36m (0.4ms)[0m [1mBEGIN[0m
|
31859
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
31860
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
31861
|
+
[1m[35m (0.2ms)[0m COMMIT
|
31862
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
31863
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
31864
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
31865
|
+
[1m[35m (0.2ms)[0m COMMIT
|
31866
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
31867
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
31868
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
31869
|
+
[1m[35m (0.2ms)[0m COMMIT
|
31870
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
31871
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
31872
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
31873
|
+
[1m[35m (0.3ms)[0m COMMIT
|
31874
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
31875
|
+
[1m[35m (0.3ms)[0m SAVEPOINT active_record_1
|
31876
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "users" DEFAULT VALUES RETURNING "id"[0m
|
31877
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
31878
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
31879
|
+
[1m[35mSQL (0.7ms)[0m INSERT INTO "bloom_remit_txns" ("target_slug", "amount", "secret", "external_id", "sender_id", "sender_type") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["target_slug", "TARGET_SLUG"], ["amount", "2500.0"], ["secret", "8e876109-5f91-441c-887d-cc8e66e79792"], ["external_id", "7b5ce3230e6d1e82df334d64"], ["sender_id", "1"], ["sender_type", "User"]]
|
31880
|
+
[1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
31881
|
+
Started POST "/bloom_remit/api/v1/txns/1" for 127.0.0.1 at 2016-09-16 01:13:37 +0000
|
31882
|
+
Processing by BloomRemit::Api::V1::TxnsController#post_update as JSON
|
31883
|
+
Parameters: {"secret"=>"fake", "status"=>"doesn't matter", "id"=>"1", "txn"=>{"status"=>"doesn't matter", "secret"=>"fake"}}
|
31884
|
+
[1m[35mBloomRemit::Txn Load (0.5ms)[0m SELECT "bloom_remit_txns".* FROM "bloom_remit_txns" WHERE "bloom_remit_txns"."id" = $1 AND "bloom_remit_txns"."secret" = $2 LIMIT 1 [["id", 1], ["secret", nil]]
|
31885
|
+
Rendered text template (0.0ms)
|
31886
|
+
Completed 404 Not Found in 58ms (Views: 56.3ms | ActiveRecord: 0.5ms)
|
31887
|
+
Started POST "/bloom_remit/api/v1/txns/1" for 127.0.0.1 at 2016-09-16 01:13:37 +0000
|
31888
|
+
Processing by BloomRemit::Api::V1::TxnsController#post_update as JSON
|
31889
|
+
Parameters: {"secret"=>"8e876109-5f91-441c-887d-cc8e66e79792", "status"=>"paid", "id"=>"1", "txn"=>{"status"=>"paid", "secret"=>"8e876109-5f91-441c-887d-cc8e66e79792"}}
|
31890
|
+
[1m[36mBloomRemit::Txn Load (0.5ms)[0m [1mSELECT "bloom_remit_txns".* FROM "bloom_remit_txns" WHERE "bloom_remit_txns"."id" = $1 AND "bloom_remit_txns"."secret" = $2 LIMIT 1[0m [["id", 1], ["secret", "8e876109-5f91-441c-887d-cc8e66e79792"]]
|
31891
|
+
[1m[35m (0.4ms)[0m SAVEPOINT active_record_1
|
31892
|
+
[1m[36mSQL (0.5ms)[0m [1mUPDATE "bloom_remit_txns" SET "status" = $1 WHERE "bloom_remit_txns"."id" = $2[0m [["status", 1], ["id", 1]]
|
31893
|
+
[1m[35m (0.4ms)[0m RELEASE SAVEPOINT active_record_1
|
31894
|
+
Completed 200 OK in 9ms (Views: 0.5ms | ActiveRecord: 1.8ms)
|
31895
|
+
[1m[36mBloomRemit::Txn Load (0.4ms)[0m [1mSELECT "bloom_remit_txns".* FROM "bloom_remit_txns" WHERE "bloom_remit_txns"."id" = $1 LIMIT 1[0m [["id", 1]]
|
31896
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
31897
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
31898
|
+
[1m[35m (0.3ms)[0m COMMIT
|
31899
|
+
[1m[36m (0.4ms)[0m [1mBEGIN[0m
|
31900
|
+
[1m[35m (0.4ms)[0m SAVEPOINT active_record_1
|
31901
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "users" DEFAULT VALUES RETURNING "id"[0m
|
31902
|
+
[1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1
|
31903
|
+
[1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m
|
31904
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "bloom_remit_txns" ("target_slug", "amount", "secret", "external_id", "sender_id", "sender_type") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["target_slug", "TARGET_SLUG"], ["amount", "2500.0"], ["secret", "f7b1d284-11f2-4fa5-a173-c1d3caef9d88"], ["external_id", "b4e2e1943f297bb18cb4ec36"], ["sender_id", "2"], ["sender_type", "User"]]
|
31905
|
+
[1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
31906
|
+
Started PATCH "/bloom_remit/api/v1/txns/2" for 127.0.0.1 at 2016-09-16 01:13:37 +0000
|
31907
|
+
Processing by BloomRemit::Api::V1::TxnsController#update as JSON
|
31908
|
+
Parameters: {"secret"=>"fake", "status"=>"doesn't matter", "id"=>"2", "txn"=>{"status"=>"doesn't matter", "secret"=>"fake"}}
|
31909
|
+
[1m[35mBloomRemit::Txn Load (0.5ms)[0m SELECT "bloom_remit_txns".* FROM "bloom_remit_txns" WHERE "bloom_remit_txns"."id" = $1 AND "bloom_remit_txns"."secret" = $2 LIMIT 1 [["id", 2], ["secret", nil]]
|
31910
|
+
Rendered text template (0.0ms)
|
31911
|
+
Completed 404 Not Found in 3ms (Views: 0.9ms | ActiveRecord: 0.5ms)
|
31912
|
+
Started PATCH "/bloom_remit/api/v1/txns/2" for 127.0.0.1 at 2016-09-16 01:13:37 +0000
|
31913
|
+
Processing by BloomRemit::Api::V1::TxnsController#update as JSON
|
31914
|
+
Parameters: {"secret"=>"f7b1d284-11f2-4fa5-a173-c1d3caef9d88", "status"=>"paid", "id"=>"2", "txn"=>{"status"=>"paid", "secret"=>"f7b1d284-11f2-4fa5-a173-c1d3caef9d88"}}
|
31915
|
+
[1m[36mBloomRemit::Txn Load (0.6ms)[0m [1mSELECT "bloom_remit_txns".* FROM "bloom_remit_txns" WHERE "bloom_remit_txns"."id" = $1 AND "bloom_remit_txns"."secret" = $2 LIMIT 1[0m [["id", 2], ["secret", "f7b1d284-11f2-4fa5-a173-c1d3caef9d88"]]
|
31916
|
+
[1m[35m (0.3ms)[0m SAVEPOINT active_record_1
|
31917
|
+
[1m[36mSQL (0.6ms)[0m [1mUPDATE "bloom_remit_txns" SET "status" = $1 WHERE "bloom_remit_txns"."id" = $2[0m [["status", 1], ["id", 2]]
|
31918
|
+
[1m[35m (0.5ms)[0m RELEASE SAVEPOINT active_record_1
|
31919
|
+
Completed 204 No Content in 51ms (ActiveRecord: 2.0ms)
|
31920
|
+
[1m[36mBloomRemit::Txn Load (0.5ms)[0m [1mSELECT "bloom_remit_txns".* FROM "bloom_remit_txns" WHERE "bloom_remit_txns"."id" = $1 LIMIT 1[0m [["id", 2]]
|
31921
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
31922
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
31923
|
+
[1m[35m (0.4ms)[0m COMMIT
|
31924
|
+
[1m[36m (0.4ms)[0m [1mBEGIN[0m
|
31925
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
31926
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
31927
|
+
[1m[35m (0.3ms)[0m COMMIT
|
31928
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
31929
|
+
[1m[35m (0.4ms)[0m ROLLBACK
|
31930
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
31931
|
+
[1m[35m (0.2ms)[0m COMMIT
|
31932
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
31933
|
+
[1m[35m (0.3ms)[0m SAVEPOINT active_record_1
|
31934
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "payments" DEFAULT VALUES RETURNING "id"[0m
|
31935
|
+
[1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1
|
31936
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
31937
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "users" DEFAULT VALUES RETURNING "id"
|
31938
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
31939
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
31940
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "bloom_remit_txns" ("target_slug", "amount", "secret", "external_id", "owner_id", "owner_type", "sender_id", "sender_type") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["target_slug", "TARGET_SLUG"], ["amount", "2500.0"], ["secret", "2bdce183-22dc-4d4c-bd2b-b3c645a61033"], ["external_id", "052e13745cd3054b290d01e1"], ["owner_id", "1"], ["owner_type", "Payment"], ["sender_id", "3"], ["sender_type", "User"]]
|
31941
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
31942
|
+
[1m[36m (0.3ms)[0m [1mROLLBACK[0m
|
31943
|
+
[1m[35m (0.3ms)[0m BEGIN
|
31944
|
+
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
|
31945
|
+
[1m[35m (0.3ms)[0m BEGIN
|
31946
|
+
[1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m
|
31947
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "payments" DEFAULT VALUES RETURNING "id"
|
31948
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
31949
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
31950
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" DEFAULT VALUES RETURNING "id"[0m
|
31951
|
+
[1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1
|
31952
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
31953
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "bloom_remit_txns" ("target_slug", "amount", "secret", "external_id", "owner_id", "owner_type", "sender_id", "sender_type") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["target_slug", "TARGET_SLUG"], ["amount", "2500.0"], ["secret", "32cabca1-5815-4041-a15e-4a3d74d1ddf4"], ["external_id", "8398757fac8b9f7332ce7a54"], ["owner_id", "2"], ["owner_type", "Payment"], ["sender_id", "4"], ["sender_type", "User"]]
|
31954
|
+
[1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
31955
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
31956
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
31957
|
+
[1m[35m (0.3ms)[0m COMMIT
|
31958
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
31959
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
31960
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
31961
|
+
[1m[35m (0.5ms)[0m COMMIT
|
31962
|
+
[1m[36m (0.4ms)[0m [1mBEGIN[0m
|
31963
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
31964
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
31965
|
+
[1m[35m (0.4ms)[0m COMMIT
|
31966
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
31967
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
31968
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
31969
|
+
[1m[35m (0.3ms)[0m COMMIT
|
31970
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
31971
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
31972
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
31973
|
+
[1m[35m (0.4ms)[0m COMMIT
|
31974
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
31975
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
31976
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.8ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
31977
|
+
[1m[35m (0.4ms)[0m ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "billers" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "payments" DISABLE TRIGGER ALL;ALTER TABLE "bloom_remit_responses" DISABLE TRIGGER ALL;ALTER TABLE "bloom_remit_txns" DISABLE TRIGGER ALL
|
31978
|
+
[1m[36m (1.2ms)[0m [1m SELECT schemaname || '.' || tablename
|
31979
|
+
FROM pg_tables
|
31980
|
+
WHERE
|
31981
|
+
tablename !~ '_prt_' AND
|
31982
|
+
tablename <> 'schema_migrations' AND
|
31983
|
+
schemaname = ANY (current_schemas(false))
|
31984
|
+
[0m
|
31985
|
+
[1m[35m (1.1ms)[0m select table_name from information_schema.views where table_schema = 'app_test'
|
31986
|
+
[1m[36m (27.3ms)[0m [1mTRUNCATE TABLE "public"."billers", "public"."users", "public"."payments", "public"."bloom_remit_responses", "public"."bloom_remit_txns" RESTART IDENTITY CASCADE;[0m
|
31987
|
+
[1m[35m (0.4ms)[0m ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "billers" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "payments" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_responses" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_txns" ENABLE TRIGGER ALL
|
31988
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
31989
|
+
[1m[35m (0.3ms)[0m COMMIT
|
31990
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
31991
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
31992
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
31993
|
+
[1m[35m (0.5ms)[0m COMMIT
|
31994
|
+
[1m[36m (0.4ms)[0m [1mBEGIN[0m
|
31995
|
+
[1m[35m (0.6ms)[0m ROLLBACK
|
31996
|
+
[1m[36m (0.4ms)[0m [1mBEGIN[0m
|
31997
|
+
[1m[35m (0.6ms)[0m COMMIT
|
31998
|
+
[1m[36m (1.1ms)[0m [1mBEGIN[0m
|
31999
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
32000
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
32001
|
+
[1m[35mSQL (0.7ms)[0m INSERT INTO "billers" ("slug") VALUES ($1) RETURNING "id" [["slug", "PLDT"]]
|
32002
|
+
[1m[36m (1.1ms)[0m [1mCOMMIT[0m
|
32003
|
+
[1m[35m (0.4ms)[0m BEGIN
|
32004
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "users" ("type") VALUES ($1) RETURNING "id"[0m [["type", "SubUser"]]
|
32005
|
+
[1m[35m (1.1ms)[0m COMMIT
|
32006
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
32007
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "payments" ("type") VALUES ($1) RETURNING "id" [["type", "SubPayment"]]
|
32008
|
+
[1m[36m (1.0ms)[0m [1mCOMMIT[0m
|
32009
|
+
[1m[35m (0.3ms)[0m BEGIN
|
32010
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "bloom_remit_txns" ("secret", "sender_type", "sender_id", "amount", "account_name", "account_id", "target_slug", "owner_id", "owner_type", "external_id") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id"[0m [["secret", "ef81f1a8-ab44-4ffb-9389-efaf6bf30849"], ["sender_type", "User"], ["sender_id", "1"], ["amount", "800.0"], ["account_name", "028109090"], ["account_id", "Hooli X"], ["target_slug", "PLDT"], ["owner_id", "1"], ["owner_type", "Payment"], ["external_id", "be2903aeabba691e4b9e0502"]]
|
32011
|
+
[1m[35m (1.0ms)[0m COMMIT
|
32012
|
+
[1m[36mUser Load (0.4ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1[0m [["id", 1]]
|
32013
|
+
[1m[35mPayment Load (0.4ms)[0m SELECT "payments".* FROM "payments" WHERE "payments"."id" = $1 LIMIT 1 [["id", 1]]
|
32014
|
+
[1m[36m (0.3ms)[0m [1mALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "billers" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "payments" DISABLE TRIGGER ALL;ALTER TABLE "bloom_remit_responses" DISABLE TRIGGER ALL;ALTER TABLE "bloom_remit_txns" DISABLE TRIGGER ALL[0m
|
32015
|
+
[1m[35m (25.7ms)[0m TRUNCATE TABLE "public"."billers", "public"."users", "public"."payments", "public"."bloom_remit_responses", "public"."bloom_remit_txns" RESTART IDENTITY CASCADE;
|
32016
|
+
[1m[36m (0.4ms)[0m [1mALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "billers" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "payments" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_responses" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_txns" ENABLE TRIGGER ALL[0m
|
32017
|
+
[1m[35m (0.3ms)[0m BEGIN
|
32018
|
+
[1m[36mSQL (1.7ms)[0m [1mINSERT INTO "users" DEFAULT VALUES RETURNING "id"[0m
|
32019
|
+
[1m[35m (0.8ms)[0m COMMIT
|
32020
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
32021
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "bloom_remit_txns" ("target_slug", "amount", "secret", "external_id", "sender_id", "sender_type") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["target_slug", "TARGET_SLUG"], ["amount", "2500.0"], ["secret", "94577739-c67e-4cdb-9f07-7730a0d2e50b"], ["external_id", "9545701985ee4a6456093143"], ["sender_id", "1"], ["sender_type", "User"]]
|
32022
|
+
[1m[36m (1.1ms)[0m [1mCOMMIT[0m
|
32023
|
+
[1m[35mBloomRemit::Txn Load (0.3ms)[0m SELECT "bloom_remit_txns".* FROM "bloom_remit_txns" WHERE "bloom_remit_txns"."id" = $1 AND "bloom_remit_txns"."secret" = $2 LIMIT 1 [["id", 1], ["secret", "94577739-c67e-4cdb-9f07-7730a0d2e50b"]]
|
32024
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
32025
|
+
[1m[35mSQL (0.4ms)[0m UPDATE "bloom_remit_txns" SET "status" = $1, "status_description" = $2, "vendor_external_id" = $3 WHERE "bloom_remit_txns"."id" = $4 [["status", 1], ["status_description", "My status description"], ["vendor_external_id", "somerefno"], ["id", 1]]
|
32026
|
+
[1m[36m (0.9ms)[0m [1mCOMMIT[0m
|
32027
|
+
[1m[35m (0.3ms)[0m ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "billers" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "payments" DISABLE TRIGGER ALL;ALTER TABLE "bloom_remit_responses" DISABLE TRIGGER ALL;ALTER TABLE "bloom_remit_txns" DISABLE TRIGGER ALL
|
32028
|
+
[1m[36m (27.8ms)[0m [1mTRUNCATE TABLE "public"."billers", "public"."users", "public"."payments", "public"."bloom_remit_responses", "public"."bloom_remit_txns" RESTART IDENTITY CASCADE;[0m
|
32029
|
+
[1m[35m (0.3ms)[0m ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "billers" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "payments" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_responses" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_txns" ENABLE TRIGGER ALL
|
32030
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
32031
|
+
[1m[35m (0.5ms)[0m COMMIT
|
32032
|
+
[1m[36m (0.4ms)[0m [1mBEGIN[0m
|
32033
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
32034
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
32035
|
+
[1m[35m (0.2ms)[0m COMMIT
|
32036
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
32037
|
+
[1m[35m (0.4ms)[0m ROLLBACK
|
32038
|
+
[1m[36m (0.4ms)[0m [1mBEGIN[0m
|
32039
|
+
[1m[35m (0.5ms)[0m COMMIT
|
32040
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
32041
|
+
[1m[35m (0.5ms)[0m ROLLBACK
|
32042
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
32043
|
+
[1m[35m (0.3ms)[0m COMMIT
|
32044
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
32045
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
32046
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
32047
|
+
[1m[35m (1.3ms)[0m COMMIT
|
32048
|
+
[1m[36m (0.4ms)[0m [1mBEGIN[0m
|
32049
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
32050
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
32051
|
+
[1m[35m (0.3ms)[0m COMMIT
|
32052
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
32053
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
32054
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
32055
|
+
[1m[35m (0.2ms)[0m COMMIT
|
32056
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
32057
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
32058
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
32059
|
+
[1m[35m (0.3ms)[0m COMMIT
|
32060
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
32061
|
+
[1m[35m (0.3ms)[0m SAVEPOINT active_record_1
|
32062
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "users" DEFAULT VALUES RETURNING "id"[0m
|
32063
|
+
[1m[35m (0.4ms)[0m RELEASE SAVEPOINT active_record_1
|
32064
|
+
[1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m
|
32065
|
+
[1m[35mSQL (0.7ms)[0m INSERT INTO "bloom_remit_txns" ("target_slug", "amount", "secret", "external_id", "sender_id", "sender_type") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["target_slug", "TARGET_SLUG"], ["amount", "2500.0"], ["secret", "cfd3a3b8-60f8-4fce-a1ca-420c709cd76f"], ["external_id", "04c995634950aad904c0cf47"], ["sender_id", "1"], ["sender_type", "User"]]
|
32066
|
+
[1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
32067
|
+
Started POST "/bloom_remit/api/v1/txns/1" for 127.0.0.1 at 2016-09-16 01:15:37 +0000
|
32068
|
+
Processing by BloomRemit::Api::V1::TxnsController#post_update as JSON
|
32069
|
+
Parameters: {"secret"=>"fake", "status"=>"doesn't matter", "id"=>"1", "txn"=>{"status"=>"doesn't matter", "secret"=>"fake"}}
|
32070
|
+
[1m[35mBloomRemit::Txn Load (0.5ms)[0m SELECT "bloom_remit_txns".* FROM "bloom_remit_txns" WHERE "bloom_remit_txns"."id" = $1 AND "bloom_remit_txns"."secret" = $2 LIMIT 1 [["id", 1], ["secret", nil]]
|
32071
|
+
Rendered text template (0.0ms)
|
32072
|
+
Completed 404 Not Found in 55ms (Views: 53.3ms | ActiveRecord: 0.5ms)
|
32073
|
+
Started POST "/bloom_remit/api/v1/txns/1" for 127.0.0.1 at 2016-09-16 01:15:37 +0000
|
32074
|
+
Processing by BloomRemit::Api::V1::TxnsController#post_update as JSON
|
32075
|
+
Parameters: {"secret"=>"cfd3a3b8-60f8-4fce-a1ca-420c709cd76f", "status"=>"paid", "id"=>"1", "txn"=>{"status"=>"paid", "secret"=>"cfd3a3b8-60f8-4fce-a1ca-420c709cd76f"}}
|
32076
|
+
[1m[36mBloomRemit::Txn Load (0.4ms)[0m [1mSELECT "bloom_remit_txns".* FROM "bloom_remit_txns" WHERE "bloom_remit_txns"."id" = $1 AND "bloom_remit_txns"."secret" = $2 LIMIT 1[0m [["id", 1], ["secret", "cfd3a3b8-60f8-4fce-a1ca-420c709cd76f"]]
|
32077
|
+
[1m[35m (0.3ms)[0m SAVEPOINT active_record_1
|
32078
|
+
[1m[36mSQL (0.4ms)[0m [1mUPDATE "bloom_remit_txns" SET "status" = $1 WHERE "bloom_remit_txns"."id" = $2[0m [["status", 1], ["id", 1]]
|
32079
|
+
[1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1
|
32080
|
+
Completed 200 OK in 8ms (Views: 0.4ms | ActiveRecord: 1.4ms)
|
32081
|
+
[1m[36mBloomRemit::Txn Load (0.4ms)[0m [1mSELECT "bloom_remit_txns".* FROM "bloom_remit_txns" WHERE "bloom_remit_txns"."id" = $1 LIMIT 1[0m [["id", 1]]
|
32082
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
32083
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
32084
|
+
[1m[35m (0.4ms)[0m COMMIT
|
32085
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
32086
|
+
[1m[35m (0.3ms)[0m SAVEPOINT active_record_1
|
32087
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" DEFAULT VALUES RETURNING "id"[0m
|
32088
|
+
[1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1
|
32089
|
+
[1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m
|
32090
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "bloom_remit_txns" ("target_slug", "amount", "secret", "external_id", "sender_id", "sender_type") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["target_slug", "TARGET_SLUG"], ["amount", "2500.0"], ["secret", "3b0ebb5a-bd61-496b-a509-1a627cd7c335"], ["external_id", "05aa8afaa66de13563b6a1ad"], ["sender_id", "2"], ["sender_type", "User"]]
|
32091
|
+
[1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
32092
|
+
Started PATCH "/bloom_remit/api/v1/txns/2" for 127.0.0.1 at 2016-09-16 01:15:37 +0000
|
32093
|
+
Processing by BloomRemit::Api::V1::TxnsController#update as JSON
|
32094
|
+
Parameters: {"secret"=>"fake", "status"=>"doesn't matter", "id"=>"2", "txn"=>{"status"=>"doesn't matter", "secret"=>"fake"}}
|
32095
|
+
[1m[35mBloomRemit::Txn Load (0.6ms)[0m SELECT "bloom_remit_txns".* FROM "bloom_remit_txns" WHERE "bloom_remit_txns"."id" = $1 AND "bloom_remit_txns"."secret" = $2 LIMIT 1 [["id", 2], ["secret", nil]]
|
32096
|
+
Rendered text template (0.0ms)
|
32097
|
+
Completed 404 Not Found in 4ms (Views: 0.9ms | ActiveRecord: 0.6ms)
|
32098
|
+
Started PATCH "/bloom_remit/api/v1/txns/2" for 127.0.0.1 at 2016-09-16 01:15:37 +0000
|
32099
|
+
Processing by BloomRemit::Api::V1::TxnsController#update as JSON
|
32100
|
+
Parameters: {"secret"=>"3b0ebb5a-bd61-496b-a509-1a627cd7c335", "status"=>"paid", "id"=>"2", "txn"=>{"status"=>"paid", "secret"=>"3b0ebb5a-bd61-496b-a509-1a627cd7c335"}}
|
32101
|
+
[1m[36mBloomRemit::Txn Load (0.5ms)[0m [1mSELECT "bloom_remit_txns".* FROM "bloom_remit_txns" WHERE "bloom_remit_txns"."id" = $1 AND "bloom_remit_txns"."secret" = $2 LIMIT 1[0m [["id", 2], ["secret", "3b0ebb5a-bd61-496b-a509-1a627cd7c335"]]
|
32102
|
+
[1m[35m (0.4ms)[0m SAVEPOINT active_record_1
|
32103
|
+
[1m[36mSQL (0.5ms)[0m [1mUPDATE "bloom_remit_txns" SET "status" = $1 WHERE "bloom_remit_txns"."id" = $2[0m [["status", 1], ["id", 2]]
|
32104
|
+
[1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1
|
32105
|
+
Completed 204 No Content in 53ms (ActiveRecord: 1.7ms)
|
32106
|
+
[1m[36mBloomRemit::Txn Load (0.5ms)[0m [1mSELECT "bloom_remit_txns".* FROM "bloom_remit_txns" WHERE "bloom_remit_txns"."id" = $1 LIMIT 1[0m [["id", 2]]
|
32107
|
+
[1m[35m (0.4ms)[0m ROLLBACK
|
32108
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
32109
|
+
[1m[35m (0.3ms)[0m COMMIT
|
32110
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
32111
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
32112
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
32113
|
+
[1m[35m (0.3ms)[0m COMMIT
|
32114
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
32115
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
32116
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
32117
|
+
[1m[35m (0.2ms)[0m COMMIT
|
32118
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
32119
|
+
[1m[35m (0.3ms)[0m SAVEPOINT active_record_1
|
32120
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "payments" DEFAULT VALUES RETURNING "id"[0m
|
32121
|
+
[1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1
|
32122
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
32123
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "users" DEFAULT VALUES RETURNING "id"
|
32124
|
+
[1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
32125
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
32126
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "bloom_remit_txns" ("target_slug", "amount", "secret", "external_id", "owner_id", "owner_type", "sender_id", "sender_type") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["target_slug", "TARGET_SLUG"], ["amount", "2500.0"], ["secret", "8d1c7c38-ff56-49a5-8c17-870da434af1c"], ["external_id", "a02df48bd7b456e706118f18"], ["owner_id", "1"], ["owner_type", "Payment"], ["sender_id", "3"], ["sender_type", "User"]]
|
32127
|
+
[1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1
|
32128
|
+
[1m[36m (0.3ms)[0m [1mROLLBACK[0m
|
32129
|
+
[1m[35m (0.2ms)[0m BEGIN
|
32130
|
+
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
|
32131
|
+
[1m[35m (0.2ms)[0m BEGIN
|
32132
|
+
[1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m
|
32133
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "payments" DEFAULT VALUES RETURNING "id"
|
32134
|
+
[1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
32135
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
32136
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "users" DEFAULT VALUES RETURNING "id"[0m
|
32137
|
+
[1m[35m (0.4ms)[0m RELEASE SAVEPOINT active_record_1
|
32138
|
+
[1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m
|
32139
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "bloom_remit_txns" ("target_slug", "amount", "secret", "external_id", "owner_id", "owner_type", "sender_id", "sender_type") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["target_slug", "TARGET_SLUG"], ["amount", "2500.0"], ["secret", "38855de5-55a4-43eb-aa03-53896883e122"], ["external_id", "34ba3edd8eca49d9c47e8251"], ["owner_id", "2"], ["owner_type", "Payment"], ["sender_id", "4"], ["sender_type", "User"]]
|
32140
|
+
[1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
32141
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
32142
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
32143
|
+
[1m[35m (0.3ms)[0m COMMIT
|
32144
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
32145
|
+
[1m[35m (0.4ms)[0m ROLLBACK
|
32146
|
+
[1m[36m (0.6ms)[0m [1mBEGIN[0m
|
32147
|
+
[1m[35m (0.5ms)[0m COMMIT
|
32148
|
+
[1m[36m (0.4ms)[0m [1mBEGIN[0m
|
32149
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
32150
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
32151
|
+
[1m[35m (0.4ms)[0m COMMIT
|
32152
|
+
[1m[36m (0.4ms)[0m [1mBEGIN[0m
|
32153
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
32154
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
32155
|
+
[1m[35m (0.3ms)[0m COMMIT
|
32156
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
32157
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
32158
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
32159
|
+
[1m[35m (0.2ms)[0m COMMIT
|
32160
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
32161
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
32162
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.5ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
32163
|
+
[1m[35m (0.4ms)[0m ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "billers" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "payments" DISABLE TRIGGER ALL;ALTER TABLE "bloom_remit_responses" DISABLE TRIGGER ALL;ALTER TABLE "bloom_remit_txns" DISABLE TRIGGER ALL
|
32164
|
+
[1m[36m (1.2ms)[0m [1m SELECT schemaname || '.' || tablename
|
32165
|
+
FROM pg_tables
|
32166
|
+
WHERE
|
32167
|
+
tablename !~ '_prt_' AND
|
32168
|
+
tablename <> 'schema_migrations' AND
|
32169
|
+
schemaname = ANY (current_schemas(false))
|
32170
|
+
[0m
|
32171
|
+
[1m[35m (1.0ms)[0m select table_name from information_schema.views where table_schema = 'app_test'
|
32172
|
+
[1m[36m (25.2ms)[0m [1mTRUNCATE TABLE "public"."billers", "public"."users", "public"."payments", "public"."bloom_remit_responses", "public"."bloom_remit_txns" RESTART IDENTITY CASCADE;[0m
|
32173
|
+
[1m[35m (1.0ms)[0m ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "billers" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "payments" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_responses" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_txns" ENABLE TRIGGER ALL
|
32174
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
32175
|
+
[1m[35m (0.3ms)[0m COMMIT
|
32176
|
+
[1m[36m (0.4ms)[0m [1mBEGIN[0m
|
32177
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
32178
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
32179
|
+
[1m[35m (0.2ms)[0m COMMIT
|
32180
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
32181
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
32182
|
+
[1m[36m (0.4ms)[0m [1mBEGIN[0m
|
32183
|
+
[1m[35m (0.4ms)[0m COMMIT
|
32184
|
+
[1m[36m (0.4ms)[0m [1mBEGIN[0m
|
32185
|
+
[1m[35m (0.4ms)[0m ROLLBACK
|
32186
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
32187
|
+
[1m[35mSQL (0.6ms)[0m INSERT INTO "billers" ("slug") VALUES ($1) RETURNING "id" [["slug", "PLDT"]]
|
32188
|
+
[1m[36m (0.9ms)[0m [1mCOMMIT[0m
|
32189
|
+
[1m[35m (0.4ms)[0m BEGIN
|
32190
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "users" ("type") VALUES ($1) RETURNING "id"[0m [["type", "SubUser"]]
|
32191
|
+
[1m[35m (0.8ms)[0m COMMIT
|
32192
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
32193
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "payments" ("type") VALUES ($1) RETURNING "id" [["type", "SubPayment"]]
|
32194
|
+
[1m[36m (0.8ms)[0m [1mCOMMIT[0m
|
32195
|
+
[1m[35m (0.4ms)[0m BEGIN
|
32196
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "bloom_remit_txns" ("secret", "sender_type", "sender_id", "amount", "account_name", "account_id", "target_slug", "owner_id", "owner_type", "external_id") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id"[0m [["secret", "6f46faf8-197b-4d6f-a313-9c588dd317ff"], ["sender_type", "User"], ["sender_id", "1"], ["amount", "800.0"], ["account_name", "028109090"], ["account_id", "Hooli X"], ["target_slug", "PLDT"], ["owner_id", "1"], ["owner_type", "Payment"], ["external_id", "820ab386879a91c7aeedfeeb"]]
|
32197
|
+
[1m[35m (1.0ms)[0m COMMIT
|
32198
|
+
[1m[36mUser Load (0.4ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1[0m [["id", 1]]
|
32199
|
+
[1m[35mPayment Load (0.4ms)[0m SELECT "payments".* FROM "payments" WHERE "payments"."id" = $1 LIMIT 1 [["id", 1]]
|
32200
|
+
[1m[36m (0.3ms)[0m [1mALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "billers" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "payments" DISABLE TRIGGER ALL;ALTER TABLE "bloom_remit_responses" DISABLE TRIGGER ALL;ALTER TABLE "bloom_remit_txns" DISABLE TRIGGER ALL[0m
|
32201
|
+
[1m[35m (21.4ms)[0m TRUNCATE TABLE "public"."billers", "public"."users", "public"."payments", "public"."bloom_remit_responses", "public"."bloom_remit_txns" RESTART IDENTITY CASCADE;
|
32202
|
+
[1m[36m (0.3ms)[0m [1mALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "billers" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "payments" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_responses" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_txns" ENABLE TRIGGER ALL[0m
|
32203
|
+
[1m[35m (0.4ms)[0m BEGIN
|
32204
|
+
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO "users" DEFAULT VALUES RETURNING "id"[0m
|
32205
|
+
[1m[35m (0.9ms)[0m COMMIT
|
32206
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
32207
|
+
[1m[35mSQL (0.6ms)[0m INSERT INTO "bloom_remit_txns" ("target_slug", "amount", "secret", "external_id", "sender_id", "sender_type") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["target_slug", "TARGET_SLUG"], ["amount", "2500.0"], ["secret", "862dcd7b-44b2-4345-8cae-c07bfcee9989"], ["external_id", "dd8323f7c11693ce2531b8e7"], ["sender_id", "1"], ["sender_type", "User"]]
|
32208
|
+
[1m[36m (1.0ms)[0m [1mCOMMIT[0m
|
32209
|
+
[1m[35mBloomRemit::Txn Load (0.5ms)[0m SELECT "bloom_remit_txns".* FROM "bloom_remit_txns" WHERE "bloom_remit_txns"."id" = $1 AND "bloom_remit_txns"."secret" = $2 LIMIT 1 [["id", 1], ["secret", "862dcd7b-44b2-4345-8cae-c07bfcee9989"]]
|
32210
|
+
[1m[36m (0.4ms)[0m [1mBEGIN[0m
|
32211
|
+
[1m[35mSQL (0.4ms)[0m UPDATE "bloom_remit_txns" SET "status" = $1, "status_description" = $2, "vendor_external_id" = $3 WHERE "bloom_remit_txns"."id" = $4 [["status", 1], ["status_description", "My status description"], ["vendor_external_id", "somerefno"], ["id", 1]]
|
32212
|
+
[1m[36m (1.0ms)[0m [1mCOMMIT[0m
|
32213
|
+
[1m[35m (0.3ms)[0m ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "billers" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "payments" DISABLE TRIGGER ALL;ALTER TABLE "bloom_remit_responses" DISABLE TRIGGER ALL;ALTER TABLE "bloom_remit_txns" DISABLE TRIGGER ALL
|
32214
|
+
[1m[36m (25.9ms)[0m [1mTRUNCATE TABLE "public"."billers", "public"."users", "public"."payments", "public"."bloom_remit_responses", "public"."bloom_remit_txns" RESTART IDENTITY CASCADE;[0m
|
32215
|
+
[1m[35m (0.3ms)[0m ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "billers" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "payments" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_responses" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_txns" ENABLE TRIGGER ALL
|
32216
|
+
[1m[36m (0.4ms)[0m [1mBEGIN[0m
|
32217
|
+
[1m[35m (0.3ms)[0m COMMIT
|
32218
|
+
[1m[36m (0.4ms)[0m [1mBEGIN[0m
|
32219
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
32220
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
32221
|
+
[1m[35m (0.3ms)[0m COMMIT
|
32222
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
32223
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
32224
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
32225
|
+
[1m[35m (0.3ms)[0m COMMIT
|
32226
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
32227
|
+
[1m[35m (0.5ms)[0m ROLLBACK
|
32228
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
32229
|
+
[1m[35m (0.3ms)[0m COMMIT
|
32230
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
32231
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
32232
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
32233
|
+
[1m[35m (0.3ms)[0m COMMIT
|
32234
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
32235
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
32236
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
32237
|
+
[1m[35m (0.3ms)[0m COMMIT
|
32238
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
32239
|
+
[1m[35m (0.4ms)[0m ROLLBACK
|
32240
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
32241
|
+
[1m[35m (0.4ms)[0m COMMIT
|
32242
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
32243
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
32244
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
32245
|
+
[1m[35m (0.2ms)[0m COMMIT
|
32246
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
32247
|
+
[1m[35m (0.3ms)[0m SAVEPOINT active_record_1
|
32248
|
+
[1m[36mSQL (0.7ms)[0m [1mINSERT INTO "users" DEFAULT VALUES RETURNING "id"[0m
|
32249
|
+
[1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1
|
32250
|
+
[1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m
|
32251
|
+
[1m[35mSQL (0.7ms)[0m INSERT INTO "bloom_remit_txns" ("target_slug", "amount", "secret", "external_id", "sender_id", "sender_type") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["target_slug", "TARGET_SLUG"], ["amount", "2500.0"], ["secret", "50c91f52-f7a0-48ab-9fcc-fa797f4c611f"], ["external_id", "ef3f6e4a8c10f05ba42d9b61"], ["sender_id", "1"], ["sender_type", "User"]]
|
32252
|
+
[1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
32253
|
+
Started POST "/bloom_remit/api/v1/txns/1" for 127.0.0.1 at 2016-09-16 01:16:20 +0000
|
32254
|
+
Processing by BloomRemit::Api::V1::TxnsController#post_update as JSON
|
32255
|
+
Parameters: {"secret"=>"fake", "status"=>"doesn't matter", "id"=>"1", "txn"=>{"status"=>"doesn't matter", "secret"=>"fake"}}
|
32256
|
+
[1m[35mBloomRemit::Txn Load (0.5ms)[0m SELECT "bloom_remit_txns".* FROM "bloom_remit_txns" WHERE "bloom_remit_txns"."id" = $1 AND "bloom_remit_txns"."secret" = $2 LIMIT 1 [["id", 1], ["secret", nil]]
|
32257
|
+
Rendered text template (0.0ms)
|
32258
|
+
Completed 404 Not Found in 59ms (Views: 56.7ms | ActiveRecord: 0.5ms)
|
32259
|
+
Started POST "/bloom_remit/api/v1/txns/1" for 127.0.0.1 at 2016-09-16 01:16:20 +0000
|
32260
|
+
Processing by BloomRemit::Api::V1::TxnsController#post_update as JSON
|
32261
|
+
Parameters: {"secret"=>"50c91f52-f7a0-48ab-9fcc-fa797f4c611f", "status"=>"paid", "id"=>"1", "txn"=>{"status"=>"paid", "secret"=>"50c91f52-f7a0-48ab-9fcc-fa797f4c611f"}}
|
32262
|
+
[1m[36mBloomRemit::Txn Load (0.5ms)[0m [1mSELECT "bloom_remit_txns".* FROM "bloom_remit_txns" WHERE "bloom_remit_txns"."id" = $1 AND "bloom_remit_txns"."secret" = $2 LIMIT 1[0m [["id", 1], ["secret", "50c91f52-f7a0-48ab-9fcc-fa797f4c611f"]]
|
32263
|
+
[1m[35m (0.3ms)[0m SAVEPOINT active_record_1
|
32264
|
+
[1m[36mSQL (0.4ms)[0m [1mUPDATE "bloom_remit_txns" SET "status" = $1 WHERE "bloom_remit_txns"."id" = $2[0m [["status", 1], ["id", 1]]
|
32265
|
+
[1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1
|
32266
|
+
Completed 200 OK in 8ms (Views: 0.4ms | ActiveRecord: 1.5ms)
|
32267
|
+
[1m[36mBloomRemit::Txn Load (0.4ms)[0m [1mSELECT "bloom_remit_txns".* FROM "bloom_remit_txns" WHERE "bloom_remit_txns"."id" = $1 LIMIT 1[0m [["id", 1]]
|
32268
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
32269
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
32270
|
+
[1m[35m (0.4ms)[0m COMMIT
|
32271
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
32272
|
+
[1m[35m (0.3ms)[0m SAVEPOINT active_record_1
|
32273
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" DEFAULT VALUES RETURNING "id"[0m
|
32274
|
+
[1m[35m (0.4ms)[0m RELEASE SAVEPOINT active_record_1
|
32275
|
+
[1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m
|
32276
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "bloom_remit_txns" ("target_slug", "amount", "secret", "external_id", "sender_id", "sender_type") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["target_slug", "TARGET_SLUG"], ["amount", "2500.0"], ["secret", "ebf17738-eb89-42b4-93cc-0d9dcb7b217d"], ["external_id", "8205d58f2f58b996261b82b8"], ["sender_id", "2"], ["sender_type", "User"]]
|
32277
|
+
[1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
32278
|
+
Started PATCH "/bloom_remit/api/v1/txns/2" for 127.0.0.1 at 2016-09-16 01:16:20 +0000
|
32279
|
+
Processing by BloomRemit::Api::V1::TxnsController#update as JSON
|
32280
|
+
Parameters: {"secret"=>"fake", "status"=>"doesn't matter", "id"=>"2", "txn"=>{"status"=>"doesn't matter", "secret"=>"fake"}}
|
32281
|
+
[1m[35mBloomRemit::Txn Load (0.7ms)[0m SELECT "bloom_remit_txns".* FROM "bloom_remit_txns" WHERE "bloom_remit_txns"."id" = $1 AND "bloom_remit_txns"."secret" = $2 LIMIT 1 [["id", 2], ["secret", nil]]
|
32282
|
+
Rendered text template (0.0ms)
|
32283
|
+
Completed 404 Not Found in 3ms (Views: 1.0ms | ActiveRecord: 0.7ms)
|
32284
|
+
Started PATCH "/bloom_remit/api/v1/txns/2" for 127.0.0.1 at 2016-09-16 01:16:20 +0000
|
32285
|
+
Processing by BloomRemit::Api::V1::TxnsController#update as JSON
|
32286
|
+
Parameters: {"secret"=>"ebf17738-eb89-42b4-93cc-0d9dcb7b217d", "status"=>"paid", "id"=>"2", "txn"=>{"status"=>"paid", "secret"=>"ebf17738-eb89-42b4-93cc-0d9dcb7b217d"}}
|
32287
|
+
[1m[36mBloomRemit::Txn Load (0.5ms)[0m [1mSELECT "bloom_remit_txns".* FROM "bloom_remit_txns" WHERE "bloom_remit_txns"."id" = $1 AND "bloom_remit_txns"."secret" = $2 LIMIT 1[0m [["id", 2], ["secret", "ebf17738-eb89-42b4-93cc-0d9dcb7b217d"]]
|
32288
|
+
[1m[35m (0.3ms)[0m SAVEPOINT active_record_1
|
32289
|
+
[1m[36mSQL (0.6ms)[0m [1mUPDATE "bloom_remit_txns" SET "status" = $1 WHERE "bloom_remit_txns"."id" = $2[0m [["status", 1], ["id", 2]]
|
32290
|
+
[1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1
|
32291
|
+
Completed 204 No Content in 48ms (ActiveRecord: 1.7ms)
|
32292
|
+
[1m[36mBloomRemit::Txn Load (0.4ms)[0m [1mSELECT "bloom_remit_txns".* FROM "bloom_remit_txns" WHERE "bloom_remit_txns"."id" = $1 LIMIT 1[0m [["id", 2]]
|
32293
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
32294
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
32295
|
+
[1m[35m (0.3ms)[0m COMMIT
|
32296
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
32297
|
+
[1m[35m (0.6ms)[0m ROLLBACK
|
32298
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
32299
|
+
[1m[35m (0.3ms)[0m COMMIT
|
32300
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
32301
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
32302
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
32303
|
+
[1m[35m (0.4ms)[0m COMMIT
|
32304
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
32305
|
+
[1m[35m (0.3ms)[0m SAVEPOINT active_record_1
|
32306
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "payments" DEFAULT VALUES RETURNING "id"[0m
|
32307
|
+
[1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1
|
32308
|
+
[1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m
|
32309
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "users" DEFAULT VALUES RETURNING "id"
|
32310
|
+
[1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
32311
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
32312
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "bloom_remit_txns" ("target_slug", "amount", "secret", "external_id", "owner_id", "owner_type", "sender_id", "sender_type") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["target_slug", "TARGET_SLUG"], ["amount", "2500.0"], ["secret", "48917bef-e574-4184-9c2a-9a8318944975"], ["external_id", "8b479132aeb74b0beeffa5ea"], ["owner_id", "1"], ["owner_type", "Payment"], ["sender_id", "3"], ["sender_type", "User"]]
|
32313
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
32314
|
+
[1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m
|
32315
|
+
[1m[35mSQL (0.8ms)[0m INSERT INTO "bloom_remit_responses" ("body", "txn_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["body", "{\"i\":\"am body\"}"], ["txn_id", 3], ["created_at", "2016-09-16 01:16:20.907457"], ["updated_at", "2016-09-16 01:16:20.907457"]]
|
32316
|
+
[1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
32317
|
+
[1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "bloom_remit_responses" WHERE "bloom_remit_responses"."txn_id" = $1 [["txn_id", 3]]
|
32318
|
+
[1m[36mBloomRemit::Response Load (0.4ms)[0m [1mSELECT "bloom_remit_responses".* FROM "bloom_remit_responses" WHERE "bloom_remit_responses"."txn_id" = $1 ORDER BY "bloom_remit_responses"."id" ASC LIMIT 1[0m [["txn_id", 3]]
|
32319
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
32320
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
32321
|
+
[1m[35m (0.3ms)[0m COMMIT
|
32322
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
32323
|
+
[1m[35m (0.3ms)[0m SAVEPOINT active_record_1
|
32324
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "payments" DEFAULT VALUES RETURNING "id"[0m
|
32325
|
+
[1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1
|
32326
|
+
[1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m
|
32327
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "users" DEFAULT VALUES RETURNING "id"
|
32328
|
+
[1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
32329
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
32330
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "bloom_remit_txns" ("target_slug", "amount", "secret", "external_id", "owner_id", "owner_type", "sender_id", "sender_type") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["target_slug", "TARGET_SLUG"], ["amount", "2500.0"], ["secret", "06b02eb4-8b9e-4242-b06a-6e504219181e"], ["external_id", "2d5d54ffb3cac101b0234951"], ["owner_id", "2"], ["owner_type", "Payment"], ["sender_id", "4"], ["sender_type", "User"]]
|
32331
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
32332
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
32333
|
+
[1m[35mSQL (0.4ms)[0m UPDATE "bloom_remit_txns" SET "status" = $1 WHERE "bloom_remit_txns"."id" = $2 [["status", 7], ["id", 4]]
|
32334
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
32335
|
+
[1m[35m (0.3ms)[0m SAVEPOINT active_record_1
|
32336
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "bloom_remit_responses" ("body", "txn_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["body", "{\"status\":\"500\",\"error\":\"Internal Server Error\"}"], ["txn_id", 4], ["created_at", "2016-09-16 01:16:20.942611"], ["updated_at", "2016-09-16 01:16:20.942611"]]
|
32337
|
+
[1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1
|
32338
|
+
[1m[36mBloomRemit::Txn Load (1.2ms)[0m [1mSELECT "bloom_remit_txns".* FROM "bloom_remit_txns" WHERE "bloom_remit_txns"."id" = $1 LIMIT 1[0m [["id", 4]]
|
32339
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
32340
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
32341
|
+
[1m[35m (0.3ms)[0m COMMIT
|
32342
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
32343
|
+
[1m[35m (0.4ms)[0m ROLLBACK
|
32344
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
32345
|
+
[1m[35m (0.3ms)[0m COMMIT
|
32346
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
32347
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
32348
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
32349
|
+
[1m[35m (0.5ms)[0m COMMIT
|
32350
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
32351
|
+
[1m[35m (0.4ms)[0m ROLLBACK
|
32352
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
32353
|
+
[1m[35m (0.3ms)[0m COMMIT
|
32354
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
32355
|
+
[1m[35m (0.5ms)[0m ROLLBACK
|
32356
|
+
[1m[36m (0.4ms)[0m [1mBEGIN[0m
|
32357
|
+
[1m[35m (0.4ms)[0m COMMIT
|
32358
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
32359
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
32360
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.7ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
32361
|
+
[1m[35m (0.6ms)[0m ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "billers" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "payments" DISABLE TRIGGER ALL;ALTER TABLE "bloom_remit_responses" DISABLE TRIGGER ALL;ALTER TABLE "bloom_remit_txns" DISABLE TRIGGER ALL
|
32362
|
+
[1m[36m (1.3ms)[0m [1m SELECT schemaname || '.' || tablename
|
32363
|
+
FROM pg_tables
|
32364
|
+
WHERE
|
32365
|
+
tablename !~ '_prt_' AND
|
32366
|
+
tablename <> 'schema_migrations' AND
|
32367
|
+
schemaname = ANY (current_schemas(false))
|
32368
|
+
[0m
|
32369
|
+
[1m[35m (1.1ms)[0m select table_name from information_schema.views where table_schema = 'app_test'
|
32370
|
+
[1m[36m (42.0ms)[0m [1mTRUNCATE TABLE "public"."billers", "public"."users", "public"."payments", "public"."bloom_remit_responses", "public"."bloom_remit_txns" RESTART IDENTITY CASCADE;[0m
|
32371
|
+
[1m[35m (0.5ms)[0m ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "billers" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "payments" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_responses" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_txns" ENABLE TRIGGER ALL
|
32372
|
+
[1m[36m (0.4ms)[0m [1mBEGIN[0m
|
32373
|
+
[1m[35m (0.3ms)[0m COMMIT
|
32374
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
32375
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
32376
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
32377
|
+
[1m[35m (0.3ms)[0m COMMIT
|
32378
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
32379
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
32380
|
+
[1m[36m (0.4ms)[0m [1mBEGIN[0m
|
32381
|
+
[1m[35m (0.4ms)[0m COMMIT
|
32382
|
+
[1m[36m (0.5ms)[0m [1mBEGIN[0m
|
32383
|
+
[1m[35m (0.4ms)[0m ROLLBACK
|
32384
|
+
[1m[36m (0.4ms)[0m [1mBEGIN[0m
|
32385
|
+
[1m[35mSQL (1.2ms)[0m INSERT INTO "billers" ("slug") VALUES ($1) RETURNING "id" [["slug", "PLDT"]]
|
32386
|
+
[1m[36m (1.4ms)[0m [1mCOMMIT[0m
|
32387
|
+
[1m[35m (0.3ms)[0m BEGIN
|
32388
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "users" ("type") VALUES ($1) RETURNING "id"[0m [["type", "SubUser"]]
|
32389
|
+
[1m[35m (0.8ms)[0m COMMIT
|
32390
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
32391
|
+
[1m[35mSQL (0.6ms)[0m INSERT INTO "payments" ("type") VALUES ($1) RETURNING "id" [["type", "SubPayment"]]
|
32392
|
+
[1m[36m (0.8ms)[0m [1mCOMMIT[0m
|
32393
|
+
[1m[35m (0.4ms)[0m BEGIN
|
32394
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "bloom_remit_txns" ("secret", "sender_type", "sender_id", "amount", "account_name", "account_id", "target_slug", "owner_id", "owner_type", "external_id") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id"[0m [["secret", "6289d9e3-716d-4c8c-8f75-a52e91f367fe"], ["sender_type", "User"], ["sender_id", "1"], ["amount", "800.0"], ["account_name", "028109090"], ["account_id", "Hooli X"], ["target_slug", "PLDT"], ["owner_id", "1"], ["owner_type", "Payment"], ["external_id", "52c0d5cca8dcb7a1ab2982a2"]]
|
32395
|
+
[1m[35m (0.8ms)[0m COMMIT
|
32396
|
+
[1m[36mUser Load (0.4ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1[0m [["id", 1]]
|
32397
|
+
[1m[35mPayment Load (0.4ms)[0m SELECT "payments".* FROM "payments" WHERE "payments"."id" = $1 LIMIT 1 [["id", 1]]
|
32398
|
+
[1m[36m (0.4ms)[0m [1mALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "billers" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "payments" DISABLE TRIGGER ALL;ALTER TABLE "bloom_remit_responses" DISABLE TRIGGER ALL;ALTER TABLE "bloom_remit_txns" DISABLE TRIGGER ALL[0m
|
32399
|
+
[1m[35m (24.7ms)[0m TRUNCATE TABLE "public"."billers", "public"."users", "public"."payments", "public"."bloom_remit_responses", "public"."bloom_remit_txns" RESTART IDENTITY CASCADE;
|
32400
|
+
[1m[36m (0.3ms)[0m [1mALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "billers" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "payments" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_responses" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_txns" ENABLE TRIGGER ALL[0m
|
32401
|
+
[1m[35m (0.3ms)[0m BEGIN
|
32402
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "users" DEFAULT VALUES RETURNING "id"[0m
|
32403
|
+
[1m[35m (0.9ms)[0m COMMIT
|
32404
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
32405
|
+
[1m[35mSQL (0.8ms)[0m INSERT INTO "bloom_remit_txns" ("target_slug", "amount", "secret", "external_id", "sender_id", "sender_type") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["target_slug", "TARGET_SLUG"], ["amount", "2500.0"], ["secret", "b5b58bfa-b225-4a73-90b3-2b4f87b0e4d0"], ["external_id", "9082820a82b7684c5468896b"], ["sender_id", "1"], ["sender_type", "User"]]
|
32406
|
+
[1m[36m (0.8ms)[0m [1mCOMMIT[0m
|
32407
|
+
[1m[35mBloomRemit::Txn Load (0.5ms)[0m SELECT "bloom_remit_txns".* FROM "bloom_remit_txns" WHERE "bloom_remit_txns"."id" = $1 AND "bloom_remit_txns"."secret" = $2 LIMIT 1 [["id", 1], ["secret", "b5b58bfa-b225-4a73-90b3-2b4f87b0e4d0"]]
|
32408
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
32409
|
+
[1m[35mSQL (0.4ms)[0m UPDATE "bloom_remit_txns" SET "status" = $1, "status_description" = $2, "vendor_external_id" = $3 WHERE "bloom_remit_txns"."id" = $4 [["status", 1], ["status_description", "My status description"], ["vendor_external_id", "somerefno"], ["id", 1]]
|
32410
|
+
[1m[36m (0.9ms)[0m [1mCOMMIT[0m
|
32411
|
+
[1m[35m (0.3ms)[0m ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "billers" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "payments" DISABLE TRIGGER ALL;ALTER TABLE "bloom_remit_responses" DISABLE TRIGGER ALL;ALTER TABLE "bloom_remit_txns" DISABLE TRIGGER ALL
|
32412
|
+
[1m[36m (23.6ms)[0m [1mTRUNCATE TABLE "public"."billers", "public"."users", "public"."payments", "public"."bloom_remit_responses", "public"."bloom_remit_txns" RESTART IDENTITY CASCADE;[0m
|
32413
|
+
[1m[35m (0.6ms)[0m ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "billers" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "payments" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_responses" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_txns" ENABLE TRIGGER ALL
|
32414
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
32415
|
+
[1m[35m (0.4ms)[0m COMMIT
|
32416
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
32417
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
32418
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
32419
|
+
[1m[35m (0.2ms)[0m COMMIT
|
32420
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
32421
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
32422
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
32423
|
+
[1m[35m (0.3ms)[0m COMMIT
|
32424
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
32425
|
+
[1m[35m (0.4ms)[0m ROLLBACK
|
32426
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
32427
|
+
[1m[35m (0.4ms)[0m COMMIT
|
32428
|
+
[1m[36m (0.5ms)[0m [1mBEGIN[0m
|
32429
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
32430
|
+
[1m[36m (0.4ms)[0m [1mBEGIN[0m
|
32431
|
+
[1m[35m (0.5ms)[0m COMMIT
|
32432
|
+
[1m[36m (0.8ms)[0m [1mBEGIN[0m
|
32433
|
+
[1m[35m (0.9ms)[0m ROLLBACK
|
32434
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
32435
|
+
[1m[35m (0.4ms)[0m COMMIT
|
32436
|
+
[1m[36m (0.4ms)[0m [1mBEGIN[0m
|
32437
|
+
[1m[35m (0.4ms)[0m ROLLBACK
|
32438
|
+
[1m[36m (0.5ms)[0m [1mBEGIN[0m
|
32439
|
+
[1m[35m (0.3ms)[0m COMMIT
|
32440
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
32441
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
32442
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
32443
|
+
[1m[35m (0.2ms)[0m COMMIT
|
32444
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
32445
|
+
[1m[35m (0.3ms)[0m SAVEPOINT active_record_1
|
32446
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "users" DEFAULT VALUES RETURNING "id"[0m
|
32447
|
+
[1m[35m (0.4ms)[0m RELEASE SAVEPOINT active_record_1
|
32448
|
+
[1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m
|
32449
|
+
[1m[35mSQL (0.6ms)[0m INSERT INTO "bloom_remit_txns" ("target_slug", "amount", "secret", "external_id", "sender_id", "sender_type") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["target_slug", "TARGET_SLUG"], ["amount", "2500.0"], ["secret", "65e56458-4838-4eec-baa4-2ac08eac64b7"], ["external_id", "78e284d84b8e31078ff34378"], ["sender_id", "1"], ["sender_type", "User"]]
|
32450
|
+
[1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
32451
|
+
Started POST "/bloom_remit/api/v1/txns/1" for 127.0.0.1 at 2016-09-16 01:17:00 +0000
|
32452
|
+
Processing by BloomRemit::Api::V1::TxnsController#post_update as JSON
|
32453
|
+
Parameters: {"secret"=>"fake", "status"=>"doesn't matter", "id"=>"1", "txn"=>{"status"=>"doesn't matter", "secret"=>"fake"}}
|
32454
|
+
[1m[35mBloomRemit::Txn Load (0.5ms)[0m SELECT "bloom_remit_txns".* FROM "bloom_remit_txns" WHERE "bloom_remit_txns"."id" = $1 AND "bloom_remit_txns"."secret" = $2 LIMIT 1 [["id", 1], ["secret", nil]]
|
32455
|
+
Rendered text template (0.0ms)
|
32456
|
+
Completed 404 Not Found in 50ms (Views: 48.4ms | ActiveRecord: 0.5ms)
|
32457
|
+
Started POST "/bloom_remit/api/v1/txns/1" for 127.0.0.1 at 2016-09-16 01:17:00 +0000
|
32458
|
+
Processing by BloomRemit::Api::V1::TxnsController#post_update as JSON
|
32459
|
+
Parameters: {"secret"=>"65e56458-4838-4eec-baa4-2ac08eac64b7", "status"=>"paid", "id"=>"1", "txn"=>{"status"=>"paid", "secret"=>"65e56458-4838-4eec-baa4-2ac08eac64b7"}}
|
32460
|
+
[1m[36mBloomRemit::Txn Load (0.5ms)[0m [1mSELECT "bloom_remit_txns".* FROM "bloom_remit_txns" WHERE "bloom_remit_txns"."id" = $1 AND "bloom_remit_txns"."secret" = $2 LIMIT 1[0m [["id", 1], ["secret", "65e56458-4838-4eec-baa4-2ac08eac64b7"]]
|
32461
|
+
[1m[35m (0.3ms)[0m SAVEPOINT active_record_1
|
32462
|
+
[1m[36mSQL (0.4ms)[0m [1mUPDATE "bloom_remit_txns" SET "status" = $1 WHERE "bloom_remit_txns"."id" = $2[0m [["status", 1], ["id", 1]]
|
32463
|
+
[1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1
|
32464
|
+
Completed 200 OK in 8ms (Views: 0.4ms | ActiveRecord: 1.5ms)
|
32465
|
+
[1m[36mBloomRemit::Txn Load (0.3ms)[0m [1mSELECT "bloom_remit_txns".* FROM "bloom_remit_txns" WHERE "bloom_remit_txns"."id" = $1 LIMIT 1[0m [["id", 1]]
|
32466
|
+
[1m[35m (0.4ms)[0m ROLLBACK
|
32467
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
32468
|
+
[1m[35m (0.3ms)[0m COMMIT
|
32469
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
32470
|
+
[1m[35m (0.3ms)[0m SAVEPOINT active_record_1
|
32471
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "users" DEFAULT VALUES RETURNING "id"[0m
|
32472
|
+
[1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1
|
32473
|
+
[1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m
|
32474
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "bloom_remit_txns" ("target_slug", "amount", "secret", "external_id", "sender_id", "sender_type") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["target_slug", "TARGET_SLUG"], ["amount", "2500.0"], ["secret", "8178db3a-95e9-410a-842a-486b019da436"], ["external_id", "256edb39607d93d343991b64"], ["sender_id", "2"], ["sender_type", "User"]]
|
32475
|
+
[1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
32476
|
+
Started PATCH "/bloom_remit/api/v1/txns/2" for 127.0.0.1 at 2016-09-16 01:17:00 +0000
|
32477
|
+
Processing by BloomRemit::Api::V1::TxnsController#update as JSON
|
32478
|
+
Parameters: {"secret"=>"fake", "status"=>"doesn't matter", "id"=>"2", "txn"=>{"status"=>"doesn't matter", "secret"=>"fake"}}
|
32479
|
+
[1m[35mBloomRemit::Txn Load (0.5ms)[0m SELECT "bloom_remit_txns".* FROM "bloom_remit_txns" WHERE "bloom_remit_txns"."id" = $1 AND "bloom_remit_txns"."secret" = $2 LIMIT 1 [["id", 2], ["secret", nil]]
|
32480
|
+
Rendered text template (0.0ms)
|
32481
|
+
Completed 404 Not Found in 3ms (Views: 0.8ms | ActiveRecord: 0.5ms)
|
32482
|
+
Started PATCH "/bloom_remit/api/v1/txns/2" for 127.0.0.1 at 2016-09-16 01:17:00 +0000
|
32483
|
+
Processing by BloomRemit::Api::V1::TxnsController#update as JSON
|
32484
|
+
Parameters: {"secret"=>"8178db3a-95e9-410a-842a-486b019da436", "status"=>"paid", "id"=>"2", "txn"=>{"status"=>"paid", "secret"=>"8178db3a-95e9-410a-842a-486b019da436"}}
|
32485
|
+
[1m[36mBloomRemit::Txn Load (0.5ms)[0m [1mSELECT "bloom_remit_txns".* FROM "bloom_remit_txns" WHERE "bloom_remit_txns"."id" = $1 AND "bloom_remit_txns"."secret" = $2 LIMIT 1[0m [["id", 2], ["secret", "8178db3a-95e9-410a-842a-486b019da436"]]
|
32486
|
+
[1m[35m (0.3ms)[0m SAVEPOINT active_record_1
|
32487
|
+
[1m[36mSQL (0.4ms)[0m [1mUPDATE "bloom_remit_txns" SET "status" = $1 WHERE "bloom_remit_txns"."id" = $2[0m [["status", 1], ["id", 2]]
|
32488
|
+
[1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1
|
32489
|
+
Completed 204 No Content in 46ms (ActiveRecord: 1.6ms)
|
32490
|
+
[1m[36mBloomRemit::Txn Load (0.5ms)[0m [1mSELECT "bloom_remit_txns".* FROM "bloom_remit_txns" WHERE "bloom_remit_txns"."id" = $1 LIMIT 1[0m [["id", 2]]
|
32491
|
+
[1m[35m (0.4ms)[0m ROLLBACK
|
32492
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
32493
|
+
[1m[35m (0.2ms)[0m COMMIT
|
32494
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
32495
|
+
[1m[35m (0.3ms)[0m SAVEPOINT active_record_1
|
32496
|
+
[1m[36mSQL (0.7ms)[0m [1mINSERT INTO "users" ("type") VALUES ($1) RETURNING "id"[0m [["type", "SubUser"]]
|
32497
|
+
[1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1
|
32498
|
+
[1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m
|
32499
|
+
[1m[35mSQL (0.6ms)[0m INSERT INTO "billers" ("slug") VALUES ($1) RETURNING "id" [["slug", "PLDT"]]
|
32500
|
+
[1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
32501
|
+
[1m[35m (0.3ms)[0m SAVEPOINT active_record_1
|
32502
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "payments" ("type") VALUES ($1) RETURNING "id"[0m [["type", "SubPayment"]]
|
32503
|
+
[1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1
|
32504
|
+
[1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m
|
32505
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "bloom_remit_txns" ("secret", "sender_type", "sender_id", "amount", "account_name", "account_id", "target_slug", "owner_id", "owner_type", "external_id") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["secret", "08d13411-9825-4552-835b-3fa4a8870b09"], ["sender_type", "User"], ["sender_id", "3"], ["amount", "800.0"], ["account_name", "028109090"], ["account_id", "Hooli X"], ["target_slug", "PLDT"], ["owner_id", "1"], ["owner_type", "Payment"], ["external_id", "d4977442e8a751ab891db28c"]]
|
32506
|
+
[1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
32507
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
32508
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
32509
|
+
[1m[35m (0.3ms)[0m COMMIT
|
32510
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
32511
|
+
[1m[35m (0.4ms)[0m ROLLBACK
|
32512
|
+
[1m[36m (0.6ms)[0m [1mBEGIN[0m
|
32513
|
+
[1m[35m (0.3ms)[0m COMMIT
|
32514
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
32515
|
+
[1m[35m (0.3ms)[0m SAVEPOINT active_record_1
|
32516
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "payments" DEFAULT VALUES RETURNING "id"[0m
|
32517
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
32518
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
32519
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "users" DEFAULT VALUES RETURNING "id"
|
32520
|
+
[1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
32521
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
32522
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "bloom_remit_txns" ("target_slug", "amount", "secret", "external_id", "owner_id", "owner_type", "sender_id", "sender_type") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["target_slug", "TARGET_SLUG"], ["amount", "2500.0"], ["secret", "7b91f8ad-c666-4f4d-b59f-2f99badf17ce"], ["external_id", "4c936b4e38a1266f50ba472c"], ["owner_id", "2"], ["owner_type", "Payment"], ["sender_id", "4"], ["sender_type", "User"]]
|
32523
|
+
[1m[35m (0.4ms)[0m RELEASE SAVEPOINT active_record_1
|
32524
|
+
[1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m
|
32525
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "bloom_remit_responses" ("body", "txn_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["body", "{\"i\":\"am body\"}"], ["txn_id", 4], ["created_at", "2016-09-16 01:17:00.531637"], ["updated_at", "2016-09-16 01:17:00.531637"]]
|
32526
|
+
[1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
32527
|
+
[1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "bloom_remit_responses" WHERE "bloom_remit_responses"."txn_id" = $1 [["txn_id", 4]]
|
32528
|
+
[1m[36mBloomRemit::Response Load (0.4ms)[0m [1mSELECT "bloom_remit_responses".* FROM "bloom_remit_responses" WHERE "bloom_remit_responses"."txn_id" = $1 ORDER BY "bloom_remit_responses"."id" ASC LIMIT 1[0m [["txn_id", 4]]
|
32529
|
+
[1m[35m (0.4ms)[0m ROLLBACK
|
32530
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
32531
|
+
[1m[35m (0.7ms)[0m COMMIT
|
32532
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
32533
|
+
[1m[35m (0.4ms)[0m SAVEPOINT active_record_1
|
32534
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "payments" DEFAULT VALUES RETURNING "id"[0m
|
32535
|
+
[1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1
|
32536
|
+
[1m[36m (0.4ms)[0m [1mSAVEPOINT active_record_1[0m
|
32537
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "users" DEFAULT VALUES RETURNING "id"
|
32538
|
+
[1m[36m (0.4ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
32539
|
+
[1m[35m (0.3ms)[0m SAVEPOINT active_record_1
|
32540
|
+
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO "bloom_remit_txns" ("target_slug", "amount", "secret", "external_id", "owner_id", "owner_type", "sender_id", "sender_type") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["target_slug", "TARGET_SLUG"], ["amount", "2500.0"], ["secret", "61868532-f568-45e0-89b9-db7ce1f5fe24"], ["external_id", "7aba7b0b778e07cacab04c6b"], ["owner_id", "3"], ["owner_type", "Payment"], ["sender_id", "5"], ["sender_type", "User"]]
|
32541
|
+
[1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1
|
32542
|
+
[1m[36m (0.4ms)[0m [1mSAVEPOINT active_record_1[0m
|
32543
|
+
[1m[35mSQL (0.7ms)[0m UPDATE "bloom_remit_txns" SET "status" = $1 WHERE "bloom_remit_txns"."id" = $2 [["status", 7], ["id", 5]]
|
32544
|
+
[1m[36m (0.5ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
32545
|
+
[1m[35m (0.4ms)[0m SAVEPOINT active_record_1
|
32546
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "bloom_remit_responses" ("body", "txn_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["body", "{\"status\":\"500\",\"error\":\"Internal Server Error\"}"], ["txn_id", 5], ["created_at", "2016-09-16 01:17:00.571094"], ["updated_at", "2016-09-16 01:17:00.571094"]]
|
32547
|
+
[1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1
|
32548
|
+
[1m[36mBloomRemit::Txn Load (0.5ms)[0m [1mSELECT "bloom_remit_txns".* FROM "bloom_remit_txns" WHERE "bloom_remit_txns"."id" = $1 LIMIT 1[0m [["id", 5]]
|
32549
|
+
[1m[35m (0.4ms)[0m ROLLBACK
|
32550
|
+
[1m[36m (0.6ms)[0m [1mBEGIN[0m
|
32551
|
+
[1m[35m (0.5ms)[0m COMMIT
|
32552
|
+
[1m[36m (0.4ms)[0m [1mBEGIN[0m
|
32553
|
+
[1m[35m (0.4ms)[0m ROLLBACK
|
32554
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
32555
|
+
[1m[35m (0.3ms)[0m COMMIT
|
32556
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
32557
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
32558
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
32559
|
+
[1m[35m (0.2ms)[0m COMMIT
|
32560
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
32561
|
+
[1m[35m (0.4ms)[0m ROLLBACK
|
32562
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
32563
|
+
[1m[35m (0.3ms)[0m COMMIT
|
32564
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
32565
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
32566
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
32567
|
+
[1m[35m (0.3ms)[0m COMMIT
|
32568
|
+
[1m[36m (0.4ms)[0m [1mBEGIN[0m
|
32569
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
32570
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.4ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
32571
|
+
[1m[35m (0.4ms)[0m ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "billers" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "payments" DISABLE TRIGGER ALL;ALTER TABLE "bloom_remit_responses" DISABLE TRIGGER ALL;ALTER TABLE "bloom_remit_txns" DISABLE TRIGGER ALL
|
32572
|
+
[1m[36m (1.1ms)[0m [1m SELECT schemaname || '.' || tablename
|
32573
|
+
FROM pg_tables
|
32574
|
+
WHERE
|
32575
|
+
tablename !~ '_prt_' AND
|
32576
|
+
tablename <> 'schema_migrations' AND
|
32577
|
+
schemaname = ANY (current_schemas(false))
|
32578
|
+
[0m
|
32579
|
+
[1m[35m (1.0ms)[0m select table_name from information_schema.views where table_schema = 'app_test'
|
32580
|
+
[1m[36m (34.0ms)[0m [1mTRUNCATE TABLE "public"."billers", "public"."users", "public"."payments", "public"."bloom_remit_responses", "public"."bloom_remit_txns" RESTART IDENTITY CASCADE;[0m
|
32581
|
+
[1m[35m (0.3ms)[0m ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "billers" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "payments" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_responses" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_txns" ENABLE TRIGGER ALL
|
32582
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
32583
|
+
[1m[35m (0.2ms)[0m COMMIT
|
32584
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
32585
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
32586
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
32587
|
+
[1m[35m (0.2ms)[0m COMMIT
|
32588
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
32589
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
32590
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
32591
|
+
[1m[35m (0.2ms)[0m COMMIT
|
32592
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
32593
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
32594
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
32595
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "billers" ("slug") VALUES ($1) RETURNING "id" [["slug", "PLDT"]]
|
32596
|
+
[1m[36m (1.6ms)[0m [1mCOMMIT[0m
|
32597
|
+
[1m[35m (0.2ms)[0m BEGIN
|
32598
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("type") VALUES ($1) RETURNING "id"[0m [["type", "SubUser"]]
|
32599
|
+
[1m[35m (0.7ms)[0m COMMIT
|
32600
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
32601
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "payments" ("type") VALUES ($1) RETURNING "id" [["type", "SubPayment"]]
|
32602
|
+
[1m[36m (0.8ms)[0m [1mCOMMIT[0m
|
32603
|
+
[1m[35m (0.2ms)[0m BEGIN
|
32604
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "bloom_remit_txns" ("secret", "sender_type", "sender_id", "amount", "account_name", "account_id", "target_slug", "owner_id", "owner_type", "external_id") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id"[0m [["secret", "436bc828-fda8-40c2-accd-7c1e6f23fc18"], ["sender_type", "User"], ["sender_id", "1"], ["amount", "800.0"], ["account_name", "028109090"], ["account_id", "Hooli X"], ["target_slug", "PLDT"], ["owner_id", "1"], ["owner_type", "Payment"], ["external_id", "733fc4daff7e37b85cb60be2"]]
|
32605
|
+
[1m[35m (0.8ms)[0m COMMIT
|
32606
|
+
[1m[36mUser Load (0.3ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1[0m [["id", 1]]
|
32607
|
+
[1m[35mPayment Load (0.2ms)[0m SELECT "payments".* FROM "payments" WHERE "payments"."id" = $1 LIMIT 1 [["id", 1]]
|
32608
|
+
[1m[36m (0.3ms)[0m [1mALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "billers" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "payments" DISABLE TRIGGER ALL;ALTER TABLE "bloom_remit_responses" DISABLE TRIGGER ALL;ALTER TABLE "bloom_remit_txns" DISABLE TRIGGER ALL[0m
|
32609
|
+
[1m[35m (24.2ms)[0m TRUNCATE TABLE "public"."billers", "public"."users", "public"."payments", "public"."bloom_remit_responses", "public"."bloom_remit_txns" RESTART IDENTITY CASCADE;
|
32610
|
+
[1m[36m (0.4ms)[0m [1mALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "billers" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "payments" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_responses" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_txns" ENABLE TRIGGER ALL[0m
|
32611
|
+
[1m[35m (0.1ms)[0m BEGIN
|
32612
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "users" DEFAULT VALUES RETURNING "id"[0m
|
32613
|
+
[1m[35m (0.7ms)[0m COMMIT
|
32614
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
32615
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "bloom_remit_txns" ("target_slug", "amount", "secret", "external_id", "sender_id", "sender_type") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["target_slug", "TARGET_SLUG"], ["amount", "2500.0"], ["secret", "f3a81db6-f779-4aa8-af4e-0a254caff834"], ["external_id", "81998d88d0cd3c2a72b222c3"], ["sender_id", "1"], ["sender_type", "User"]]
|
32616
|
+
[1m[36m (0.7ms)[0m [1mCOMMIT[0m
|
32617
|
+
[1m[35mBloomRemit::Txn Load (0.4ms)[0m SELECT "bloom_remit_txns".* FROM "bloom_remit_txns" WHERE "bloom_remit_txns"."id" = $1 AND "bloom_remit_txns"."secret" = $2 LIMIT 1 [["id", 1], ["secret", "f3a81db6-f779-4aa8-af4e-0a254caff834"]]
|
32618
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
32619
|
+
[1m[35mSQL (0.4ms)[0m UPDATE "bloom_remit_txns" SET "status" = $1, "status_description" = $2, "vendor_external_id" = $3 WHERE "bloom_remit_txns"."id" = $4 [["status", 1], ["status_description", "My status description"], ["vendor_external_id", "somerefno"], ["id", 1]]
|
32620
|
+
[1m[36m (2.0ms)[0m [1mCOMMIT[0m
|
32621
|
+
[1m[35m (0.2ms)[0m ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "billers" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "payments" DISABLE TRIGGER ALL;ALTER TABLE "bloom_remit_responses" DISABLE TRIGGER ALL;ALTER TABLE "bloom_remit_txns" DISABLE TRIGGER ALL
|
32622
|
+
[1m[36m (26.0ms)[0m [1mTRUNCATE TABLE "public"."billers", "public"."users", "public"."payments", "public"."bloom_remit_responses", "public"."bloom_remit_txns" RESTART IDENTITY CASCADE;[0m
|
32623
|
+
[1m[35m (0.3ms)[0m ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "billers" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "payments" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_responses" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_txns" ENABLE TRIGGER ALL
|
32624
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
32625
|
+
[1m[35m (0.2ms)[0m COMMIT
|
32626
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
32627
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
32628
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
32629
|
+
[1m[35m (0.2ms)[0m COMMIT
|
32630
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
32631
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
32632
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
32633
|
+
[1m[35m (0.2ms)[0m COMMIT
|
32634
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
32635
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
32636
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
32637
|
+
[1m[35m (0.2ms)[0m COMMIT
|
32638
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
32639
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
32640
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
32641
|
+
[1m[35m (0.2ms)[0m COMMIT
|
32642
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
32643
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
32644
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
32645
|
+
[1m[35m (0.2ms)[0m COMMIT
|
32646
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
32647
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
32648
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
32649
|
+
[1m[35m (0.2ms)[0m COMMIT
|
32650
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
32651
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
32652
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
32653
|
+
[1m[35m (0.2ms)[0m COMMIT
|
32654
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
32655
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
32656
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "users" DEFAULT VALUES RETURNING "id"[0m
|
32657
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
32658
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
32659
|
+
[1m[35mSQL (0.8ms)[0m INSERT INTO "bloom_remit_txns" ("target_slug", "amount", "secret", "external_id", "sender_id", "sender_type") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["target_slug", "TARGET_SLUG"], ["amount", "2500.0"], ["secret", "32df5820-114d-4d28-82e3-2d896c7bdfe5"], ["external_id", "e975c5fdbf00fdb4fcbdb747"], ["sender_id", "1"], ["sender_type", "User"]]
|
32660
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
32661
|
+
Started POST "/bloom_remit/api/v1/txns/1" for 127.0.0.1 at 2016-09-16 01:17:19 +0000
|
32662
|
+
Processing by BloomRemit::Api::V1::TxnsController#post_update as JSON
|
32663
|
+
Parameters: {"secret"=>"fake", "status"=>"doesn't matter", "id"=>"1", "txn"=>{"status"=>"doesn't matter", "secret"=>"fake"}}
|
32664
|
+
[1m[35mBloomRemit::Txn Load (0.4ms)[0m SELECT "bloom_remit_txns".* FROM "bloom_remit_txns" WHERE "bloom_remit_txns"."id" = $1 AND "bloom_remit_txns"."secret" = $2 LIMIT 1 [["id", 1], ["secret", nil]]
|
32665
|
+
Rendered text template (0.0ms)
|
32666
|
+
Completed 404 Not Found in 54ms (Views: 51.7ms | ActiveRecord: 0.4ms)
|
32667
|
+
Started POST "/bloom_remit/api/v1/txns/1" for 127.0.0.1 at 2016-09-16 01:17:19 +0000
|
32668
|
+
Processing by BloomRemit::Api::V1::TxnsController#post_update as JSON
|
32669
|
+
Parameters: {"secret"=>"32df5820-114d-4d28-82e3-2d896c7bdfe5", "status"=>"paid", "id"=>"1", "txn"=>{"status"=>"paid", "secret"=>"32df5820-114d-4d28-82e3-2d896c7bdfe5"}}
|
32670
|
+
[1m[36mBloomRemit::Txn Load (0.4ms)[0m [1mSELECT "bloom_remit_txns".* FROM "bloom_remit_txns" WHERE "bloom_remit_txns"."id" = $1 AND "bloom_remit_txns"."secret" = $2 LIMIT 1[0m [["id", 1], ["secret", "32df5820-114d-4d28-82e3-2d896c7bdfe5"]]
|
32671
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
32672
|
+
[1m[36mSQL (0.3ms)[0m [1mUPDATE "bloom_remit_txns" SET "status" = $1 WHERE "bloom_remit_txns"."id" = $2[0m [["status", 1], ["id", 1]]
|
32673
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
32674
|
+
Completed 200 OK in 8ms (Views: 0.4ms | ActiveRecord: 1.0ms)
|
32675
|
+
[1m[36mBloomRemit::Txn Load (0.3ms)[0m [1mSELECT "bloom_remit_txns".* FROM "bloom_remit_txns" WHERE "bloom_remit_txns"."id" = $1 LIMIT 1[0m [["id", 1]]
|
32676
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
32677
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
32678
|
+
[1m[35m (0.2ms)[0m COMMIT
|
32679
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
32680
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
32681
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" DEFAULT VALUES RETURNING "id"[0m
|
32682
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
32683
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
32684
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "bloom_remit_txns" ("target_slug", "amount", "secret", "external_id", "sender_id", "sender_type") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["target_slug", "TARGET_SLUG"], ["amount", "2500.0"], ["secret", "f1c1bceb-fcb2-4703-8c6b-68c8d1e2848f"], ["external_id", "3a4f9ad9608f6f5a6d58793e"], ["sender_id", "2"], ["sender_type", "User"]]
|
32685
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
32686
|
+
Started PATCH "/bloom_remit/api/v1/txns/2" for 127.0.0.1 at 2016-09-16 01:17:19 +0000
|
32687
|
+
Processing by BloomRemit::Api::V1::TxnsController#update as JSON
|
32688
|
+
Parameters: {"secret"=>"fake", "status"=>"doesn't matter", "id"=>"2", "txn"=>{"status"=>"doesn't matter", "secret"=>"fake"}}
|
32689
|
+
[1m[35mBloomRemit::Txn Load (0.3ms)[0m SELECT "bloom_remit_txns".* FROM "bloom_remit_txns" WHERE "bloom_remit_txns"."id" = $1 AND "bloom_remit_txns"."secret" = $2 LIMIT 1 [["id", 2], ["secret", nil]]
|
32690
|
+
Rendered text template (0.0ms)
|
32691
|
+
Completed 404 Not Found in 3ms (Views: 0.9ms | ActiveRecord: 0.3ms)
|
32692
|
+
Started PATCH "/bloom_remit/api/v1/txns/2" for 127.0.0.1 at 2016-09-16 01:17:19 +0000
|
32693
|
+
Processing by BloomRemit::Api::V1::TxnsController#update as JSON
|
32694
|
+
Parameters: {"secret"=>"f1c1bceb-fcb2-4703-8c6b-68c8d1e2848f", "status"=>"paid", "id"=>"2", "txn"=>{"status"=>"paid", "secret"=>"f1c1bceb-fcb2-4703-8c6b-68c8d1e2848f"}}
|
32695
|
+
[1m[36mBloomRemit::Txn Load (0.4ms)[0m [1mSELECT "bloom_remit_txns".* FROM "bloom_remit_txns" WHERE "bloom_remit_txns"."id" = $1 AND "bloom_remit_txns"."secret" = $2 LIMIT 1[0m [["id", 2], ["secret", "f1c1bceb-fcb2-4703-8c6b-68c8d1e2848f"]]
|
32696
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
32697
|
+
[1m[36mSQL (0.3ms)[0m [1mUPDATE "bloom_remit_txns" SET "status" = $1 WHERE "bloom_remit_txns"."id" = $2[0m [["status", 1], ["id", 2]]
|
32698
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
32699
|
+
Completed 204 No Content in 47ms (ActiveRecord: 1.1ms)
|
32700
|
+
[1m[36mBloomRemit::Txn Load (0.4ms)[0m [1mSELECT "bloom_remit_txns".* FROM "bloom_remit_txns" WHERE "bloom_remit_txns"."id" = $1 LIMIT 1[0m [["id", 2]]
|
32701
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
32702
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
32703
|
+
[1m[35m (0.2ms)[0m COMMIT
|
32704
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
32705
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
32706
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("type") VALUES ($1) RETURNING "id"[0m [["type", "SubUser"]]
|
32707
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
32708
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
32709
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "billers" ("slug") VALUES ($1) RETURNING "id" [["slug", "PLDT"]]
|
32710
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
32711
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
32712
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "payments" ("type") VALUES ($1) RETURNING "id"[0m [["type", "SubPayment"]]
|
32713
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
32714
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
32715
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "bloom_remit_txns" ("secret", "sender_type", "sender_id", "amount", "account_name", "account_id", "target_slug", "owner_id", "owner_type", "external_id") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["secret", "03804180-8a23-44e9-8880-bddd0e6f0e30"], ["sender_type", "User"], ["sender_id", "3"], ["amount", "800.0"], ["account_name", "028109090"], ["account_id", "Hooli X"], ["target_slug", "PLDT"], ["owner_id", "1"], ["owner_type", "Payment"], ["external_id", "0d4e1e8274a3a35da1b04047"]]
|
32716
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
32717
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
32718
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
32719
|
+
[1m[35m (0.2ms)[0m COMMIT
|
32720
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
32721
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
32722
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
32723
|
+
[1m[35m (0.2ms)[0m COMMIT
|
32724
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
32725
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
32726
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "payments" DEFAULT VALUES RETURNING "id"[0m
|
32727
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
32728
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
32729
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "users" DEFAULT VALUES RETURNING "id"
|
32730
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
32731
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
32732
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "bloom_remit_txns" ("target_slug", "amount", "secret", "external_id", "owner_id", "owner_type", "sender_id", "sender_type") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["target_slug", "TARGET_SLUG"], ["amount", "2500.0"], ["secret", "2e38129f-3f76-443a-96a5-3af4a59419a3"], ["external_id", "28112319dc9a4b07c0d711a1"], ["owner_id", "2"], ["owner_type", "Payment"], ["sender_id", "4"], ["sender_type", "User"]]
|
32733
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
32734
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
32735
|
+
[1m[35mSQL (0.6ms)[0m INSERT INTO "bloom_remit_responses" ("body", "txn_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["body", "{\"i\":\"am body\"}"], ["txn_id", 4], ["created_at", "2016-09-16 01:17:20.004581"], ["updated_at", "2016-09-16 01:17:20.004581"]]
|
32736
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
32737
|
+
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "bloom_remit_responses" WHERE "bloom_remit_responses"."txn_id" = $1 [["txn_id", 4]]
|
32738
|
+
[1m[36mBloomRemit::Response Load (0.3ms)[0m [1mSELECT "bloom_remit_responses".* FROM "bloom_remit_responses" WHERE "bloom_remit_responses"."txn_id" = $1 ORDER BY "bloom_remit_responses"."id" ASC LIMIT 1[0m [["txn_id", 4]]
|
32739
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
32740
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
32741
|
+
[1m[35m (0.2ms)[0m COMMIT
|
32742
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
32743
|
+
[1m[35m (0.5ms)[0m SAVEPOINT active_record_1
|
32744
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "payments" DEFAULT VALUES RETURNING "id"[0m
|
32745
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
32746
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
32747
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "users" DEFAULT VALUES RETURNING "id"
|
32748
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
32749
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
32750
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "bloom_remit_txns" ("target_slug", "amount", "secret", "external_id", "owner_id", "owner_type", "sender_id", "sender_type") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["target_slug", "TARGET_SLUG"], ["amount", "2500.0"], ["secret", "399fc3d7-39b8-4568-8ed8-048d060e9188"], ["external_id", "35b7b2618eed778e1c5beb36"], ["owner_id", "3"], ["owner_type", "Payment"], ["sender_id", "5"], ["sender_type", "User"]]
|
32751
|
+
[1m[35m (0.4ms)[0m RELEASE SAVEPOINT active_record_1
|
32752
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
32753
|
+
[1m[35mSQL (0.3ms)[0m UPDATE "bloom_remit_txns" SET "status" = $1 WHERE "bloom_remit_txns"."id" = $2 [["status", 7], ["id", 5]]
|
32754
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
32755
|
+
[1m[35m (0.3ms)[0m SAVEPOINT active_record_1
|
32756
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "bloom_remit_responses" ("body", "txn_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["body", "{\"status\":\"500\",\"error\":\"Internal Server Error\"}"], ["txn_id", 5], ["created_at", "2016-09-16 01:17:20.040786"], ["updated_at", "2016-09-16 01:17:20.040786"]]
|
32757
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
32758
|
+
[1m[36mBloomRemit::Txn Load (0.3ms)[0m [1mSELECT "bloom_remit_txns".* FROM "bloom_remit_txns" WHERE "bloom_remit_txns"."id" = $1 LIMIT 1[0m [["id", 5]]
|
32759
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
32760
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
32761
|
+
[1m[35m (0.2ms)[0m COMMIT
|
32762
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
32763
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
32764
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
32765
|
+
[1m[35m (0.4ms)[0m COMMIT
|
32766
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
32767
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
32768
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
32769
|
+
[1m[35m (0.2ms)[0m COMMIT
|
32770
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
32771
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
32772
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
32773
|
+
[1m[35m (0.2ms)[0m COMMIT
|
32774
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
32775
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
32776
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
32777
|
+
[1m[35m (0.2ms)[0m COMMIT
|
32778
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
32779
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
32780
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.6ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
32781
|
+
[1m[35m (0.4ms)[0m ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "billers" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "payments" DISABLE TRIGGER ALL;ALTER TABLE "bloom_remit_responses" DISABLE TRIGGER ALL;ALTER TABLE "bloom_remit_txns" DISABLE TRIGGER ALL
|
32782
|
+
[1m[36m (1.2ms)[0m [1m SELECT schemaname || '.' || tablename
|
32783
|
+
FROM pg_tables
|
32784
|
+
WHERE
|
32785
|
+
tablename !~ '_prt_' AND
|
32786
|
+
tablename <> 'schema_migrations' AND
|
32787
|
+
schemaname = ANY (current_schemas(false))
|
32788
|
+
[0m
|
32789
|
+
[1m[35m (1.2ms)[0m select table_name from information_schema.views where table_schema = 'app_test'
|
32790
|
+
[1m[36m (25.1ms)[0m [1mTRUNCATE TABLE "public"."billers", "public"."users", "public"."payments", "public"."bloom_remit_responses", "public"."bloom_remit_txns" RESTART IDENTITY CASCADE;[0m
|
32791
|
+
[1m[35m (0.5ms)[0m ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "billers" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "payments" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_responses" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_txns" ENABLE TRIGGER ALL
|
32792
|
+
[1m[36m (0.4ms)[0m [1mBEGIN[0m
|
32793
|
+
[1m[35m (0.3ms)[0m COMMIT
|
32794
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
32795
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
32796
|
+
[1m[36m (0.4ms)[0m [1mBEGIN[0m
|
32797
|
+
[1m[35m (0.4ms)[0m COMMIT
|
32798
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
32799
|
+
[1m[35m (0.5ms)[0m ROLLBACK
|
32800
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
32801
|
+
[1m[35m (0.2ms)[0m COMMIT
|
32802
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
32803
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
32804
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
32805
|
+
[1m[35mSQL (0.6ms)[0m INSERT INTO "billers" ("slug") VALUES ($1) RETURNING "id" [["slug", "PLDT"]]
|
32806
|
+
[1m[36m (2.2ms)[0m [1mCOMMIT[0m
|
32807
|
+
[1m[35m (0.3ms)[0m BEGIN
|
32808
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "users" ("type") VALUES ($1) RETURNING "id"[0m [["type", "SubUser"]]
|
32809
|
+
[1m[35m (1.0ms)[0m COMMIT
|
32810
|
+
[1m[36m (0.4ms)[0m [1mBEGIN[0m
|
32811
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "payments" ("type") VALUES ($1) RETURNING "id" [["type", "SubPayment"]]
|
32812
|
+
[1m[36m (0.9ms)[0m [1mCOMMIT[0m
|
32813
|
+
[1m[35m (0.3ms)[0m BEGIN
|
32814
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "bloom_remit_txns" ("secret", "sender_type", "sender_id", "amount", "account_name", "account_id", "target_slug", "owner_id", "owner_type", "external_id") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id"[0m [["secret", "eee38e58-ef0d-42ae-bef3-27a90bbd77b0"], ["sender_type", "User"], ["sender_id", "1"], ["amount", "800.0"], ["account_name", "028109090"], ["account_id", "Hooli X"], ["target_slug", "PLDT"], ["owner_id", "1"], ["owner_type", "Payment"], ["external_id", "da4d7aea4b59efee2e19dc09"]]
|
32815
|
+
[1m[35m (1.0ms)[0m COMMIT
|
32816
|
+
[1m[36mUser Load (0.4ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1[0m [["id", 1]]
|
32817
|
+
[1m[35mPayment Load (0.4ms)[0m SELECT "payments".* FROM "payments" WHERE "payments"."id" = $1 LIMIT 1 [["id", 1]]
|
32818
|
+
[1m[36m (0.4ms)[0m [1mALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "billers" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "payments" DISABLE TRIGGER ALL;ALTER TABLE "bloom_remit_responses" DISABLE TRIGGER ALL;ALTER TABLE "bloom_remit_txns" DISABLE TRIGGER ALL[0m
|
32819
|
+
[1m[35m (21.1ms)[0m TRUNCATE TABLE "public"."billers", "public"."users", "public"."payments", "public"."bloom_remit_responses", "public"."bloom_remit_txns" RESTART IDENTITY CASCADE;
|
32820
|
+
[1m[36m (0.3ms)[0m [1mALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "billers" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "payments" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_responses" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_txns" ENABLE TRIGGER ALL[0m
|
32821
|
+
[1m[35m (0.3ms)[0m BEGIN
|
32822
|
+
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO "users" DEFAULT VALUES RETURNING "id"[0m
|
32823
|
+
[1m[35m (0.8ms)[0m COMMIT
|
32824
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
32825
|
+
[1m[35mSQL (0.6ms)[0m INSERT INTO "bloom_remit_txns" ("target_slug", "amount", "secret", "external_id", "sender_id", "sender_type") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["target_slug", "TARGET_SLUG"], ["amount", "2500.0"], ["secret", "18f8fbb2-cd11-44b4-b66a-738f9aefcda9"], ["external_id", "03136ecf969d84372d67f0ae"], ["sender_id", "1"], ["sender_type", "User"]]
|
32826
|
+
[1m[36m (0.9ms)[0m [1mCOMMIT[0m
|
32827
|
+
[1m[35mBloomRemit::Txn Load (0.4ms)[0m SELECT "bloom_remit_txns".* FROM "bloom_remit_txns" WHERE "bloom_remit_txns"."id" = $1 AND "bloom_remit_txns"."secret" = $2 LIMIT 1 [["id", 1], ["secret", "18f8fbb2-cd11-44b4-b66a-738f9aefcda9"]]
|
32828
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
32829
|
+
[1m[35mSQL (0.4ms)[0m UPDATE "bloom_remit_txns" SET "status" = $1, "status_description" = $2, "vendor_external_id" = $3 WHERE "bloom_remit_txns"."id" = $4 [["status", 1], ["status_description", "My status description"], ["vendor_external_id", "somerefno"], ["id", 1]]
|
32830
|
+
[1m[36m (0.8ms)[0m [1mCOMMIT[0m
|
32831
|
+
[1m[35m (0.4ms)[0m ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "billers" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "payments" DISABLE TRIGGER ALL;ALTER TABLE "bloom_remit_responses" DISABLE TRIGGER ALL;ALTER TABLE "bloom_remit_txns" DISABLE TRIGGER ALL
|
32832
|
+
[1m[36m (30.4ms)[0m [1mTRUNCATE TABLE "public"."billers", "public"."users", "public"."payments", "public"."bloom_remit_responses", "public"."bloom_remit_txns" RESTART IDENTITY CASCADE;[0m
|
32833
|
+
[1m[35m (0.3ms)[0m ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "billers" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "payments" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_responses" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_txns" ENABLE TRIGGER ALL
|
32834
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
32835
|
+
[1m[35m (0.3ms)[0m COMMIT
|
32836
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
32837
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
32838
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
32839
|
+
[1m[35m (0.3ms)[0m COMMIT
|
32840
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
32841
|
+
[1m[35m (0.4ms)[0m ROLLBACK
|
32842
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
32843
|
+
[1m[35m (0.4ms)[0m COMMIT
|
32844
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
32845
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
32846
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
32847
|
+
[1m[35m (0.2ms)[0m COMMIT
|
32848
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
32849
|
+
[1m[35m (0.4ms)[0m ROLLBACK
|
32850
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
32851
|
+
[1m[35m (0.2ms)[0m COMMIT
|
32852
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
32853
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
32854
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
32855
|
+
[1m[35m (0.3ms)[0m COMMIT
|
32856
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
32857
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
32858
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
32859
|
+
[1m[35m (0.3ms)[0m COMMIT
|
32860
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
32861
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
32862
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
32863
|
+
[1m[35m (0.4ms)[0m COMMIT
|
32864
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
32865
|
+
[1m[35m (0.3ms)[0m SAVEPOINT active_record_1
|
32866
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "users" DEFAULT VALUES RETURNING "id"[0m
|
32867
|
+
[1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1
|
32868
|
+
[1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m
|
32869
|
+
[1m[35mSQL (0.6ms)[0m INSERT INTO "bloom_remit_txns" ("target_slug", "amount", "secret", "external_id", "sender_id", "sender_type") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["target_slug", "TARGET_SLUG"], ["amount", "2500.0"], ["secret", "54b8c199-2855-403a-a982-d461650e27c2"], ["external_id", "f11c5617e472305efdc81a44"], ["sender_id", "1"], ["sender_type", "User"]]
|
32870
|
+
[1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
32871
|
+
Started POST "/bloom_remit/api/v1/txns/1" for 127.0.0.1 at 2016-09-16 01:17:39 +0000
|
32872
|
+
Processing by BloomRemit::Api::V1::TxnsController#post_update as JSON
|
32873
|
+
Parameters: {"secret"=>"fake", "status"=>"doesn't matter", "id"=>"1", "txn"=>{"status"=>"doesn't matter", "secret"=>"fake"}}
|
32874
|
+
[1m[35mBloomRemit::Txn Load (1.1ms)[0m SELECT "bloom_remit_txns".* FROM "bloom_remit_txns" WHERE "bloom_remit_txns"."id" = $1 AND "bloom_remit_txns"."secret" = $2 LIMIT 1 [["id", 1], ["secret", nil]]
|
32875
|
+
Rendered text template (0.0ms)
|
32876
|
+
Completed 404 Not Found in 49ms (Views: 46.5ms | ActiveRecord: 1.1ms)
|
32877
|
+
Started POST "/bloom_remit/api/v1/txns/1" for 127.0.0.1 at 2016-09-16 01:17:39 +0000
|
32878
|
+
Processing by BloomRemit::Api::V1::TxnsController#post_update as JSON
|
32879
|
+
Parameters: {"secret"=>"54b8c199-2855-403a-a982-d461650e27c2", "status"=>"paid", "id"=>"1", "txn"=>{"status"=>"paid", "secret"=>"54b8c199-2855-403a-a982-d461650e27c2"}}
|
32880
|
+
[1m[36mBloomRemit::Txn Load (0.5ms)[0m [1mSELECT "bloom_remit_txns".* FROM "bloom_remit_txns" WHERE "bloom_remit_txns"."id" = $1 AND "bloom_remit_txns"."secret" = $2 LIMIT 1[0m [["id", 1], ["secret", "54b8c199-2855-403a-a982-d461650e27c2"]]
|
32881
|
+
[1m[35m (0.4ms)[0m SAVEPOINT active_record_1
|
32882
|
+
[1m[36mSQL (0.4ms)[0m [1mUPDATE "bloom_remit_txns" SET "status" = $1 WHERE "bloom_remit_txns"."id" = $2[0m [["status", 1], ["id", 1]]
|
32883
|
+
[1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1
|
32884
|
+
Completed 200 OK in 8ms (Views: 0.4ms | ActiveRecord: 1.6ms)
|
32885
|
+
[1m[36mBloomRemit::Txn Load (0.3ms)[0m [1mSELECT "bloom_remit_txns".* FROM "bloom_remit_txns" WHERE "bloom_remit_txns"."id" = $1 LIMIT 1[0m [["id", 1]]
|
32886
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
32887
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
32888
|
+
[1m[35m (0.3ms)[0m COMMIT
|
32889
|
+
[1m[36m (0.4ms)[0m [1mBEGIN[0m
|
32890
|
+
[1m[35m (0.3ms)[0m SAVEPOINT active_record_1
|
32891
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" DEFAULT VALUES RETURNING "id"[0m
|
32892
|
+
[1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1
|
32893
|
+
[1m[36m (0.4ms)[0m [1mSAVEPOINT active_record_1[0m
|
32894
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "bloom_remit_txns" ("target_slug", "amount", "secret", "external_id", "sender_id", "sender_type") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["target_slug", "TARGET_SLUG"], ["amount", "2500.0"], ["secret", "256d34b4-f522-4a3a-a389-942d5b2e1d83"], ["external_id", "df332a98584b232328cc953e"], ["sender_id", "2"], ["sender_type", "User"]]
|
32895
|
+
[1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
32896
|
+
Started PATCH "/bloom_remit/api/v1/txns/2" for 127.0.0.1 at 2016-09-16 01:17:39 +0000
|
32897
|
+
Processing by BloomRemit::Api::V1::TxnsController#update as JSON
|
32898
|
+
Parameters: {"secret"=>"fake", "status"=>"doesn't matter", "id"=>"2", "txn"=>{"status"=>"doesn't matter", "secret"=>"fake"}}
|
32899
|
+
[1m[35mBloomRemit::Txn Load (0.4ms)[0m SELECT "bloom_remit_txns".* FROM "bloom_remit_txns" WHERE "bloom_remit_txns"."id" = $1 AND "bloom_remit_txns"."secret" = $2 LIMIT 1 [["id", 2], ["secret", nil]]
|
32900
|
+
Rendered text template (0.0ms)
|
32901
|
+
Completed 404 Not Found in 3ms (Views: 1.0ms | ActiveRecord: 0.4ms)
|
32902
|
+
Started PATCH "/bloom_remit/api/v1/txns/2" for 127.0.0.1 at 2016-09-16 01:17:39 +0000
|
32903
|
+
Processing by BloomRemit::Api::V1::TxnsController#update as JSON
|
32904
|
+
Parameters: {"secret"=>"256d34b4-f522-4a3a-a389-942d5b2e1d83", "status"=>"paid", "id"=>"2", "txn"=>{"status"=>"paid", "secret"=>"256d34b4-f522-4a3a-a389-942d5b2e1d83"}}
|
32905
|
+
[1m[36mBloomRemit::Txn Load (0.5ms)[0m [1mSELECT "bloom_remit_txns".* FROM "bloom_remit_txns" WHERE "bloom_remit_txns"."id" = $1 AND "bloom_remit_txns"."secret" = $2 LIMIT 1[0m [["id", 2], ["secret", "256d34b4-f522-4a3a-a389-942d5b2e1d83"]]
|
32906
|
+
[1m[35m (0.4ms)[0m SAVEPOINT active_record_1
|
32907
|
+
[1m[36mSQL (0.5ms)[0m [1mUPDATE "bloom_remit_txns" SET "status" = $1 WHERE "bloom_remit_txns"."id" = $2[0m [["status", 1], ["id", 2]]
|
32908
|
+
[1m[35m (0.4ms)[0m RELEASE SAVEPOINT active_record_1
|
32909
|
+
Completed 204 No Content in 47ms (ActiveRecord: 1.8ms)
|
32910
|
+
[1m[36mBloomRemit::Txn Load (0.5ms)[0m [1mSELECT "bloom_remit_txns".* FROM "bloom_remit_txns" WHERE "bloom_remit_txns"."id" = $1 LIMIT 1[0m [["id", 2]]
|
32911
|
+
[1m[35m (0.4ms)[0m ROLLBACK
|
32912
|
+
[1m[36m (0.4ms)[0m [1mBEGIN[0m
|
32913
|
+
[1m[35m (0.3ms)[0m COMMIT
|
32914
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
32915
|
+
[1m[35m (0.4ms)[0m SAVEPOINT active_record_1
|
32916
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("type") VALUES ($1) RETURNING "id"[0m [["type", "SubUser"]]
|
32917
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
32918
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
32919
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "billers" ("slug") VALUES ($1) RETURNING "id" [["slug", "PLDT"]]
|
32920
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
32921
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
32922
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "payments" ("type") VALUES ($1) RETURNING "id"[0m [["type", "SubPayment"]]
|
32923
|
+
[1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1
|
32924
|
+
[1m[36m (0.4ms)[0m [1mSAVEPOINT active_record_1[0m
|
32925
|
+
[1m[35mSQL (0.8ms)[0m INSERT INTO "bloom_remit_txns" ("secret", "sender_type", "sender_id", "amount", "account_name", "account_id", "target_slug", "owner_id", "owner_type", "external_id") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["secret", "a0d1ea29-0cae-47a1-9496-1763ddb34081"], ["sender_type", "User"], ["sender_id", "3"], ["amount", "800.0"], ["account_name", "028109090"], ["account_id", "Hooli X"], ["target_slug", "PLDT"], ["owner_id", "1"], ["owner_type", "Payment"], ["external_id", "67fa177ddabd629e5126e907"]]
|
32926
|
+
[1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
32927
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
32928
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
32929
|
+
[1m[35m (0.3ms)[0m COMMIT
|
32930
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
32931
|
+
[1m[35m (0.4ms)[0m ROLLBACK
|
32932
|
+
[1m[36m (0.4ms)[0m [1mBEGIN[0m
|
32933
|
+
[1m[35m (0.3ms)[0m COMMIT
|
32934
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
32935
|
+
[1m[35m (0.3ms)[0m SAVEPOINT active_record_1
|
32936
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "payments" DEFAULT VALUES RETURNING "id"[0m
|
32937
|
+
[1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1
|
32938
|
+
[1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m
|
32939
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "users" DEFAULT VALUES RETURNING "id"
|
32940
|
+
[1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
32941
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
32942
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "bloom_remit_txns" ("target_slug", "amount", "secret", "external_id", "owner_id", "owner_type", "sender_id", "sender_type") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["target_slug", "TARGET_SLUG"], ["amount", "2500.0"], ["secret", "fd50cf5f-dbbf-4cb5-ab2f-755f1a185672"], ["external_id", "b7a4cb07a109cd779f49b986"], ["owner_id", "2"], ["owner_type", "Payment"], ["sender_id", "4"], ["sender_type", "User"]]
|
32943
|
+
[1m[35m (0.6ms)[0m RELEASE SAVEPOINT active_record_1
|
32944
|
+
[1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m
|
32945
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "bloom_remit_responses" ("body", "txn_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["body", "{\"i\":\"am body\"}"], ["txn_id", 4], ["created_at", "2016-09-16 01:17:39.462655"], ["updated_at", "2016-09-16 01:17:39.462655"]]
|
32946
|
+
[1m[36m (0.4ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
32947
|
+
[1m[35m (0.6ms)[0m SELECT COUNT(*) FROM "bloom_remit_responses" WHERE "bloom_remit_responses"."txn_id" = $1 [["txn_id", 4]]
|
32948
|
+
[1m[36mBloomRemit::Response Load (0.4ms)[0m [1mSELECT "bloom_remit_responses".* FROM "bloom_remit_responses" WHERE "bloom_remit_responses"."txn_id" = $1 ORDER BY "bloom_remit_responses"."id" ASC LIMIT 1[0m [["txn_id", 4]]
|
32949
|
+
[1m[35m (0.4ms)[0m ROLLBACK
|
32950
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
32951
|
+
[1m[35m (0.3ms)[0m COMMIT
|
32952
|
+
[1m[36m (0.4ms)[0m [1mBEGIN[0m
|
32953
|
+
[1m[35m (0.4ms)[0m SAVEPOINT active_record_1
|
32954
|
+
[1m[36mSQL (0.7ms)[0m [1mINSERT INTO "payments" DEFAULT VALUES RETURNING "id"[0m
|
32955
|
+
[1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1
|
32956
|
+
[1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m
|
32957
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "users" DEFAULT VALUES RETURNING "id"
|
32958
|
+
[1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
32959
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
32960
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "bloom_remit_txns" ("target_slug", "amount", "secret", "external_id", "owner_id", "owner_type", "sender_id", "sender_type") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["target_slug", "TARGET_SLUG"], ["amount", "2500.0"], ["secret", "5925876a-7eeb-4aee-be09-29f0874f39b5"], ["external_id", "f1a5b1b9ce4776cd6b22f2ab"], ["owner_id", "3"], ["owner_type", "Payment"], ["sender_id", "5"], ["sender_type", "User"]]
|
32961
|
+
[1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1
|
32962
|
+
[1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m
|
32963
|
+
[1m[35mSQL (0.4ms)[0m UPDATE "bloom_remit_txns" SET "status" = $1 WHERE "bloom_remit_txns"."id" = $2 [["status", 7], ["id", 5]]
|
32964
|
+
[1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
32965
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
32966
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "bloom_remit_responses" ("body", "txn_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["body", "{\"status\":\"500\",\"error\":\"Internal Server Error\"}"], ["txn_id", 5], ["created_at", "2016-09-16 01:17:39.497635"], ["updated_at", "2016-09-16 01:17:39.497635"]]
|
32967
|
+
[1m[35m (0.5ms)[0m RELEASE SAVEPOINT active_record_1
|
32968
|
+
[1m[36mBloomRemit::Txn Load (0.4ms)[0m [1mSELECT "bloom_remit_txns".* FROM "bloom_remit_txns" WHERE "bloom_remit_txns"."id" = $1 LIMIT 1[0m [["id", 5]]
|
32969
|
+
[1m[35m (0.4ms)[0m ROLLBACK
|
32970
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
32971
|
+
[1m[35m (0.5ms)[0m COMMIT
|
32972
|
+
[1m[36m (0.5ms)[0m [1mBEGIN[0m
|
32973
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
32974
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
32975
|
+
[1m[35m (0.3ms)[0m COMMIT
|
32976
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
32977
|
+
[1m[35m (0.4ms)[0m ROLLBACK
|
32978
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
32979
|
+
[1m[35m (0.3ms)[0m COMMIT
|
32980
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
32981
|
+
[1m[35m (0.4ms)[0m ROLLBACK
|
32982
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
32983
|
+
[1m[35m (0.3ms)[0m COMMIT
|
32984
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
32985
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
32986
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
32987
|
+
[1m[35m (0.3ms)[0m COMMIT
|
32988
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
32989
|
+
[1m[35m (0.4ms)[0m ROLLBACK
|
32990
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.5ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
32991
|
+
[1m[35m (0.4ms)[0m ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "billers" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "payments" DISABLE TRIGGER ALL;ALTER TABLE "bloom_remit_responses" DISABLE TRIGGER ALL;ALTER TABLE "bloom_remit_txns" DISABLE TRIGGER ALL
|
32992
|
+
[1m[36m (1.3ms)[0m [1m SELECT schemaname || '.' || tablename
|
32993
|
+
FROM pg_tables
|
32994
|
+
WHERE
|
32995
|
+
tablename !~ '_prt_' AND
|
32996
|
+
tablename <> 'schema_migrations' AND
|
32997
|
+
schemaname = ANY (current_schemas(false))
|
32998
|
+
[0m
|
32999
|
+
[1m[35m (1.1ms)[0m select table_name from information_schema.views where table_schema = 'app_test'
|
33000
|
+
[1m[36m (30.8ms)[0m [1mTRUNCATE TABLE "public"."billers", "public"."users", "public"."payments", "public"."bloom_remit_responses", "public"."bloom_remit_txns" RESTART IDENTITY CASCADE;[0m
|
33001
|
+
[1m[35m (0.3ms)[0m ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "billers" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "payments" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_responses" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_txns" ENABLE TRIGGER ALL
|
33002
|
+
[1m[36m (0.4ms)[0m [1mBEGIN[0m
|
33003
|
+
[1m[35m (0.3ms)[0m COMMIT
|
33004
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
33005
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
33006
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
33007
|
+
[1m[35m (0.3ms)[0m COMMIT
|
33008
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
33009
|
+
[1m[35m (0.4ms)[0m ROLLBACK
|
33010
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
33011
|
+
[1m[35m (0.2ms)[0m COMMIT
|
33012
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
33013
|
+
[1m[35m (0.4ms)[0m ROLLBACK
|
33014
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
33015
|
+
[1m[35mSQL (0.6ms)[0m INSERT INTO "billers" ("slug") VALUES ($1) RETURNING "id" [["slug", "PLDT"]]
|
33016
|
+
[1m[36m (0.8ms)[0m [1mCOMMIT[0m
|
33017
|
+
[1m[35m (0.3ms)[0m BEGIN
|
33018
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "users" ("type") VALUES ($1) RETURNING "id"[0m [["type", "SubUser"]]
|
33019
|
+
[1m[35m (0.9ms)[0m COMMIT
|
33020
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
33021
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "payments" ("type") VALUES ($1) RETURNING "id" [["type", "SubPayment"]]
|
33022
|
+
[1m[36m (0.8ms)[0m [1mCOMMIT[0m
|
33023
|
+
[1m[35m (0.3ms)[0m BEGIN
|
33024
|
+
[1m[36mSQL (0.7ms)[0m [1mINSERT INTO "bloom_remit_txns" ("secret", "sender_type", "sender_id", "amount", "account_name", "account_id", "target_slug", "owner_id", "owner_type", "external_id") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id"[0m [["secret", "a2babf09-1e27-4d60-b144-ce1c05e82ad5"], ["sender_type", "User"], ["sender_id", "1"], ["amount", "800.0"], ["account_name", "028109090"], ["account_id", "Hooli X"], ["target_slug", "PLDT"], ["owner_id", "1"], ["owner_type", "Payment"], ["external_id", "1d27492bc9fef77e8c86f2d3"]]
|
33025
|
+
[1m[35m (1.6ms)[0m COMMIT
|
33026
|
+
[1m[36mUser Load (0.4ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1[0m [["id", 1]]
|
33027
|
+
[1m[35mPayment Load (0.4ms)[0m SELECT "payments".* FROM "payments" WHERE "payments"."id" = $1 LIMIT 1 [["id", 1]]
|
33028
|
+
[1m[36m (0.3ms)[0m [1mALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "billers" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "payments" DISABLE TRIGGER ALL;ALTER TABLE "bloom_remit_responses" DISABLE TRIGGER ALL;ALTER TABLE "bloom_remit_txns" DISABLE TRIGGER ALL[0m
|
33029
|
+
[1m[35m (31.0ms)[0m TRUNCATE TABLE "public"."billers", "public"."users", "public"."payments", "public"."bloom_remit_responses", "public"."bloom_remit_txns" RESTART IDENTITY CASCADE;
|
33030
|
+
[1m[36m (0.4ms)[0m [1mALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "billers" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "payments" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_responses" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_txns" ENABLE TRIGGER ALL[0m
|
33031
|
+
[1m[35m (0.3ms)[0m BEGIN
|
33032
|
+
[1m[36mSQL (0.7ms)[0m [1mINSERT INTO "users" DEFAULT VALUES RETURNING "id"[0m
|
33033
|
+
[1m[35m (0.9ms)[0m COMMIT
|
33034
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
33035
|
+
[1m[35mSQL (0.6ms)[0m INSERT INTO "bloom_remit_txns" ("target_slug", "amount", "secret", "external_id", "sender_id", "sender_type") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["target_slug", "TARGET_SLUG"], ["amount", "2500.0"], ["secret", "c4724497-4a7b-43b4-91ad-08c784c55dce"], ["external_id", "1bdb1aebe10cc580e2772bf7"], ["sender_id", "1"], ["sender_type", "User"]]
|
33036
|
+
[1m[36m (1.0ms)[0m [1mCOMMIT[0m
|
33037
|
+
[1m[35mBloomRemit::Txn Load (0.4ms)[0m SELECT "bloom_remit_txns".* FROM "bloom_remit_txns" WHERE "bloom_remit_txns"."id" = $1 AND "bloom_remit_txns"."secret" = $2 LIMIT 1 [["id", 1], ["secret", "c4724497-4a7b-43b4-91ad-08c784c55dce"]]
|
33038
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
33039
|
+
[1m[35mSQL (0.6ms)[0m UPDATE "bloom_remit_txns" SET "status" = $1, "status_description" = $2, "vendor_external_id" = $3 WHERE "bloom_remit_txns"."id" = $4 [["status", 1], ["status_description", "My status description"], ["vendor_external_id", "somerefno"], ["id", 1]]
|
33040
|
+
[1m[36m (0.9ms)[0m [1mCOMMIT[0m
|
33041
|
+
[1m[35m (0.4ms)[0m ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "billers" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "payments" DISABLE TRIGGER ALL;ALTER TABLE "bloom_remit_responses" DISABLE TRIGGER ALL;ALTER TABLE "bloom_remit_txns" DISABLE TRIGGER ALL
|
33042
|
+
[1m[36m (27.0ms)[0m [1mTRUNCATE TABLE "public"."billers", "public"."users", "public"."payments", "public"."bloom_remit_responses", "public"."bloom_remit_txns" RESTART IDENTITY CASCADE;[0m
|
33043
|
+
[1m[35m (0.5ms)[0m ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "billers" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "payments" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_responses" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_txns" ENABLE TRIGGER ALL
|
33044
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
33045
|
+
[1m[35m (0.3ms)[0m COMMIT
|
33046
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
33047
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
33048
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
33049
|
+
[1m[35m (0.2ms)[0m COMMIT
|
33050
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
33051
|
+
[1m[35m (0.4ms)[0m ROLLBACK
|
33052
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
33053
|
+
[1m[35m (0.4ms)[0m COMMIT
|
33054
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
33055
|
+
[1m[35m (0.4ms)[0m ROLLBACK
|
33056
|
+
[1m[36m (0.4ms)[0m [1mBEGIN[0m
|
33057
|
+
[1m[35m (0.4ms)[0m COMMIT
|
33058
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
33059
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
33060
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
33061
|
+
[1m[35m (0.2ms)[0m COMMIT
|
33062
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
33063
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
33064
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
33065
|
+
[1m[35m (0.2ms)[0m COMMIT
|
33066
|
+
[1m[36m (0.5ms)[0m [1mBEGIN[0m
|
33067
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
33068
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
33069
|
+
[1m[35m (0.3ms)[0m COMMIT
|
33070
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
33071
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
33072
|
+
[1m[36m (0.4ms)[0m [1mBEGIN[0m
|
33073
|
+
[1m[35m (0.3ms)[0m COMMIT
|
33074
|
+
[1m[36m (0.4ms)[0m [1mBEGIN[0m
|
33075
|
+
[1m[35m (0.3ms)[0m SAVEPOINT active_record_1
|
33076
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "users" DEFAULT VALUES RETURNING "id"[0m
|
33077
|
+
[1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1
|
33078
|
+
[1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m
|
33079
|
+
[1m[35mSQL (1.3ms)[0m INSERT INTO "bloom_remit_txns" ("target_slug", "amount", "secret", "external_id", "sender_id", "sender_type") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["target_slug", "TARGET_SLUG"], ["amount", "2500.0"], ["secret", "9276ac90-25be-462c-9b8c-3408768a7444"], ["external_id", "1d6d6403b3ac02d456dd1fd2"], ["sender_id", "1"], ["sender_type", "User"]]
|
33080
|
+
[1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
33081
|
+
Started POST "/bloom_remit/api/v1/txns/1" for 127.0.0.1 at 2016-09-16 01:18:07 +0000
|
33082
|
+
Processing by BloomRemit::Api::V1::TxnsController#post_update as JSON
|
33083
|
+
Parameters: {"secret"=>"fake", "status"=>"doesn't matter", "id"=>"1", "txn"=>{"status"=>"doesn't matter", "secret"=>"fake"}}
|
33084
|
+
[1m[35mBloomRemit::Txn Load (0.4ms)[0m SELECT "bloom_remit_txns".* FROM "bloom_remit_txns" WHERE "bloom_remit_txns"."id" = $1 AND "bloom_remit_txns"."secret" = $2 LIMIT 1 [["id", 1], ["secret", nil]]
|
33085
|
+
Rendered text template (0.0ms)
|
33086
|
+
Completed 404 Not Found in 52ms (Views: 50.1ms | ActiveRecord: 0.4ms)
|
33087
|
+
Started POST "/bloom_remit/api/v1/txns/1" for 127.0.0.1 at 2016-09-16 01:18:07 +0000
|
33088
|
+
Processing by BloomRemit::Api::V1::TxnsController#post_update as JSON
|
33089
|
+
Parameters: {"secret"=>"9276ac90-25be-462c-9b8c-3408768a7444", "status"=>"paid", "id"=>"1", "txn"=>{"status"=>"paid", "secret"=>"9276ac90-25be-462c-9b8c-3408768a7444"}}
|
33090
|
+
[1m[36mBloomRemit::Txn Load (0.5ms)[0m [1mSELECT "bloom_remit_txns".* FROM "bloom_remit_txns" WHERE "bloom_remit_txns"."id" = $1 AND "bloom_remit_txns"."secret" = $2 LIMIT 1[0m [["id", 1], ["secret", "9276ac90-25be-462c-9b8c-3408768a7444"]]
|
33091
|
+
[1m[35m (0.3ms)[0m SAVEPOINT active_record_1
|
33092
|
+
[1m[36mSQL (0.4ms)[0m [1mUPDATE "bloom_remit_txns" SET "status" = $1 WHERE "bloom_remit_txns"."id" = $2[0m [["status", 1], ["id", 1]]
|
33093
|
+
[1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1
|
33094
|
+
Completed 200 OK in 8ms (Views: 0.5ms | ActiveRecord: 1.5ms)
|
33095
|
+
[1m[36mBloomRemit::Txn Load (0.4ms)[0m [1mSELECT "bloom_remit_txns".* FROM "bloom_remit_txns" WHERE "bloom_remit_txns"."id" = $1 LIMIT 1[0m [["id", 1]]
|
33096
|
+
[1m[35m (0.4ms)[0m ROLLBACK
|
33097
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
33098
|
+
[1m[35m (0.5ms)[0m COMMIT
|
33099
|
+
[1m[36m (0.5ms)[0m [1mBEGIN[0m
|
33100
|
+
[1m[35m (0.3ms)[0m SAVEPOINT active_record_1
|
33101
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "users" DEFAULT VALUES RETURNING "id"[0m
|
33102
|
+
[1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1
|
33103
|
+
[1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m
|
33104
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "bloom_remit_txns" ("target_slug", "amount", "secret", "external_id", "sender_id", "sender_type") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["target_slug", "TARGET_SLUG"], ["amount", "2500.0"], ["secret", "6f5bdb40-3ae0-4d4f-886b-93ae70582a48"], ["external_id", "47dcdb7b8dfb5faa18672071"], ["sender_id", "2"], ["sender_type", "User"]]
|
33105
|
+
[1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
33106
|
+
Started PATCH "/bloom_remit/api/v1/txns/2" for 127.0.0.1 at 2016-09-16 01:18:07 +0000
|
33107
|
+
Processing by BloomRemit::Api::V1::TxnsController#update as JSON
|
33108
|
+
Parameters: {"secret"=>"fake", "status"=>"doesn't matter", "id"=>"2", "txn"=>{"status"=>"doesn't matter", "secret"=>"fake"}}
|
33109
|
+
[1m[35mBloomRemit::Txn Load (0.5ms)[0m SELECT "bloom_remit_txns".* FROM "bloom_remit_txns" WHERE "bloom_remit_txns"."id" = $1 AND "bloom_remit_txns"."secret" = $2 LIMIT 1 [["id", 2], ["secret", nil]]
|
33110
|
+
Rendered text template (0.0ms)
|
33111
|
+
Completed 404 Not Found in 3ms (Views: 0.9ms | ActiveRecord: 0.5ms)
|
33112
|
+
Started PATCH "/bloom_remit/api/v1/txns/2" for 127.0.0.1 at 2016-09-16 01:18:07 +0000
|
33113
|
+
Processing by BloomRemit::Api::V1::TxnsController#update as JSON
|
33114
|
+
Parameters: {"secret"=>"6f5bdb40-3ae0-4d4f-886b-93ae70582a48", "status"=>"paid", "id"=>"2", "txn"=>{"status"=>"paid", "secret"=>"6f5bdb40-3ae0-4d4f-886b-93ae70582a48"}}
|
33115
|
+
[1m[36mBloomRemit::Txn Load (0.5ms)[0m [1mSELECT "bloom_remit_txns".* FROM "bloom_remit_txns" WHERE "bloom_remit_txns"."id" = $1 AND "bloom_remit_txns"."secret" = $2 LIMIT 1[0m [["id", 2], ["secret", "6f5bdb40-3ae0-4d4f-886b-93ae70582a48"]]
|
33116
|
+
[1m[35m (0.4ms)[0m SAVEPOINT active_record_1
|
33117
|
+
[1m[36mSQL (0.5ms)[0m [1mUPDATE "bloom_remit_txns" SET "status" = $1 WHERE "bloom_remit_txns"."id" = $2[0m [["status", 1], ["id", 2]]
|
33118
|
+
[1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1
|
33119
|
+
Completed 204 No Content in 45ms (ActiveRecord: 1.7ms)
|
33120
|
+
[1m[36mBloomRemit::Txn Load (0.4ms)[0m [1mSELECT "bloom_remit_txns".* FROM "bloom_remit_txns" WHERE "bloom_remit_txns"."id" = $1 LIMIT 1[0m [["id", 2]]
|
33121
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
33122
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
33123
|
+
[1m[35m (0.4ms)[0m COMMIT
|
33124
|
+
[1m[36m (0.5ms)[0m [1mBEGIN[0m
|
33125
|
+
[1m[35m (0.5ms)[0m SAVEPOINT active_record_1
|
33126
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("type") VALUES ($1) RETURNING "id"[0m [["type", "SubUser"]]
|
33127
|
+
[1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1
|
33128
|
+
[1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m
|
33129
|
+
[1m[35mSQL (0.6ms)[0m INSERT INTO "billers" ("slug") VALUES ($1) RETURNING "id" [["slug", "PLDT"]]
|
33130
|
+
[1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
33131
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
33132
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "payments" ("type") VALUES ($1) RETURNING "id"[0m [["type", "SubPayment"]]
|
33133
|
+
[1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1
|
33134
|
+
[1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m
|
33135
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "bloom_remit_txns" ("secret", "sender_type", "sender_id", "amount", "account_name", "account_id", "target_slug", "owner_id", "owner_type", "external_id") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["secret", "3c9a2992-b396-40de-a656-6ede430d59d6"], ["sender_type", "User"], ["sender_id", "3"], ["amount", "800.0"], ["account_name", "028109090"], ["account_id", "Hooli X"], ["target_slug", "PLDT"], ["owner_id", "1"], ["owner_type", "Payment"], ["external_id", "d815f3cea605a7c74d1c55f6"]]
|
33136
|
+
[1m[36m (0.5ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
33137
|
+
[1m[35m (0.4ms)[0m ROLLBACK
|
33138
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
33139
|
+
[1m[35m (0.2ms)[0m COMMIT
|
33140
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
33141
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
33142
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
33143
|
+
[1m[35m (0.3ms)[0m COMMIT
|
33144
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
33145
|
+
[1m[35m (0.3ms)[0m SAVEPOINT active_record_1
|
33146
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "payments" DEFAULT VALUES RETURNING "id"[0m
|
33147
|
+
[1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1
|
33148
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
33149
|
+
[1m[35mSQL (0.6ms)[0m INSERT INTO "users" DEFAULT VALUES RETURNING "id"
|
33150
|
+
[1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
33151
|
+
[1m[35m (0.3ms)[0m SAVEPOINT active_record_1
|
33152
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "bloom_remit_txns" ("target_slug", "amount", "secret", "external_id", "owner_id", "owner_type", "sender_id", "sender_type") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["target_slug", "TARGET_SLUG"], ["amount", "2500.0"], ["secret", "71a452a9-6395-4782-8ae8-680cce44e21d"], ["external_id", "354ef923a4b9c4b9450bb7c3"], ["owner_id", "2"], ["owner_type", "Payment"], ["sender_id", "4"], ["sender_type", "User"]]
|
33153
|
+
[1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1
|
33154
|
+
[1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m
|
33155
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "bloom_remit_responses" ("body", "txn_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["body", "{\"i\":\"am body\"}"], ["txn_id", 4], ["created_at", "2016-09-16 01:18:08.107838"], ["updated_at", "2016-09-16 01:18:08.107838"]]
|
33156
|
+
[1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
33157
|
+
[1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "bloom_remit_responses" WHERE "bloom_remit_responses"."txn_id" = $1 [["txn_id", 4]]
|
33158
|
+
[1m[36mBloomRemit::Response Load (0.4ms)[0m [1mSELECT "bloom_remit_responses".* FROM "bloom_remit_responses" WHERE "bloom_remit_responses"."txn_id" = $1 ORDER BY "bloom_remit_responses"."id" ASC LIMIT 1[0m [["txn_id", 4]]
|
33159
|
+
[1m[35m (0.6ms)[0m ROLLBACK
|
33160
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
33161
|
+
[1m[35m (0.4ms)[0m COMMIT
|
33162
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
33163
|
+
[1m[35m (0.3ms)[0m SAVEPOINT active_record_1
|
33164
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "payments" DEFAULT VALUES RETURNING "id"[0m
|
33165
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
33166
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
33167
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "users" DEFAULT VALUES RETURNING "id"
|
33168
|
+
[1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
33169
|
+
[1m[35m (0.3ms)[0m SAVEPOINT active_record_1
|
33170
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "bloom_remit_txns" ("target_slug", "amount", "secret", "external_id", "owner_id", "owner_type", "sender_id", "sender_type") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["target_slug", "TARGET_SLUG"], ["amount", "2500.0"], ["secret", "5b14ea7f-f0fe-4353-a9be-b0122690644f"], ["external_id", "b9eadfa5b985dd80e84feeee"], ["owner_id", "3"], ["owner_type", "Payment"], ["sender_id", "5"], ["sender_type", "User"]]
|
33171
|
+
[1m[35m (0.4ms)[0m RELEASE SAVEPOINT active_record_1
|
33172
|
+
[1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m
|
33173
|
+
[1m[35mSQL (0.5ms)[0m UPDATE "bloom_remit_txns" SET "status" = $1 WHERE "bloom_remit_txns"."id" = $2 [["status", 7], ["id", 5]]
|
33174
|
+
[1m[36m (0.4ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
33175
|
+
[1m[35m (0.3ms)[0m SAVEPOINT active_record_1
|
33176
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "bloom_remit_responses" ("body", "txn_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["body", "{\"status\":\"500\",\"error\":\"Internal Server Error\"}"], ["txn_id", 5], ["created_at", "2016-09-16 01:18:08.146710"], ["updated_at", "2016-09-16 01:18:08.146710"]]
|
33177
|
+
[1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1
|
33178
|
+
[1m[36mBloomRemit::Txn Load (0.5ms)[0m [1mSELECT "bloom_remit_txns".* FROM "bloom_remit_txns" WHERE "bloom_remit_txns"."id" = $1 LIMIT 1[0m [["id", 5]]
|
33179
|
+
[1m[35m (0.4ms)[0m ROLLBACK
|
33180
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
33181
|
+
[1m[35m (0.3ms)[0m COMMIT
|
33182
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
33183
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
33184
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
33185
|
+
[1m[35m (0.3ms)[0m COMMIT
|
33186
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
33187
|
+
[1m[35m (0.4ms)[0m ROLLBACK
|
33188
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
33189
|
+
[1m[35m (0.3ms)[0m COMMIT
|
33190
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
33191
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
33192
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
33193
|
+
[1m[35m (0.2ms)[0m COMMIT
|
33194
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
33195
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
33196
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
33197
|
+
[1m[35m (0.2ms)[0m COMMIT
|
33198
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
33199
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
33200
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.6ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
33201
|
+
[1m[35m (0.4ms)[0m ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "billers" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "payments" DISABLE TRIGGER ALL;ALTER TABLE "bloom_remit_responses" DISABLE TRIGGER ALL;ALTER TABLE "bloom_remit_txns" DISABLE TRIGGER ALL
|
33202
|
+
[1m[36m (1.3ms)[0m [1m SELECT schemaname || '.' || tablename
|
33203
|
+
FROM pg_tables
|
33204
|
+
WHERE
|
33205
|
+
tablename !~ '_prt_' AND
|
33206
|
+
tablename <> 'schema_migrations' AND
|
33207
|
+
schemaname = ANY (current_schemas(false))
|
33208
|
+
[0m
|
33209
|
+
[1m[35m (1.2ms)[0m select table_name from information_schema.views where table_schema = 'app_test'
|
33210
|
+
[1m[36m (33.0ms)[0m [1mTRUNCATE TABLE "public"."billers", "public"."users", "public"."payments", "public"."bloom_remit_responses", "public"."bloom_remit_txns" RESTART IDENTITY CASCADE;[0m
|
33211
|
+
[1m[35m (0.4ms)[0m ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "billers" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "payments" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_responses" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_txns" ENABLE TRIGGER ALL
|
33212
|
+
[1m[36m (0.4ms)[0m [1mBEGIN[0m
|
33213
|
+
[1m[35m (0.5ms)[0m COMMIT
|
33214
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
33215
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
33216
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
33217
|
+
[1m[35m (0.2ms)[0m COMMIT
|
33218
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
33219
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
33220
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
33221
|
+
[1m[35m (0.3ms)[0m COMMIT
|
33222
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
33223
|
+
[1m[35m (0.4ms)[0m ROLLBACK
|
33224
|
+
[1m[36m (0.6ms)[0m [1mBEGIN[0m
|
33225
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "billers" ("slug") VALUES ($1) RETURNING "id" [["slug", "PLDT"]]
|
33226
|
+
[1m[36m (1.6ms)[0m [1mCOMMIT[0m
|
33227
|
+
[1m[35m (0.4ms)[0m BEGIN
|
33228
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "users" ("type") VALUES ($1) RETURNING "id"[0m [["type", "SubUser"]]
|
33229
|
+
[1m[35m (0.9ms)[0m COMMIT
|
33230
|
+
[1m[36m (0.4ms)[0m [1mBEGIN[0m
|
33231
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "payments" ("type") VALUES ($1) RETURNING "id" [["type", "SubPayment"]]
|
33232
|
+
[1m[36m (0.8ms)[0m [1mCOMMIT[0m
|
33233
|
+
[1m[35m (0.4ms)[0m BEGIN
|
33234
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "bloom_remit_txns" ("secret", "sender_type", "sender_id", "amount", "account_name", "account_id", "target_slug", "owner_id", "owner_type", "external_id") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id"[0m [["secret", "3a62b954-7c3d-4312-b78c-6cafa7f16d77"], ["sender_type", "User"], ["sender_id", "1"], ["amount", "800.0"], ["account_name", "028109090"], ["account_id", "Hooli X"], ["target_slug", "PLDT"], ["owner_id", "1"], ["owner_type", "Payment"], ["external_id", "410e0fbcae1eaef6dc4b1644"]]
|
33235
|
+
[1m[35m (0.8ms)[0m COMMIT
|
33236
|
+
[1m[36mUser Load (0.4ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1[0m [["id", 1]]
|
33237
|
+
[1m[35mPayment Load (0.4ms)[0m SELECT "payments".* FROM "payments" WHERE "payments"."id" = $1 LIMIT 1 [["id", 1]]
|
33238
|
+
[1m[36m (0.3ms)[0m [1mALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "billers" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "payments" DISABLE TRIGGER ALL;ALTER TABLE "bloom_remit_responses" DISABLE TRIGGER ALL;ALTER TABLE "bloom_remit_txns" DISABLE TRIGGER ALL[0m
|
33239
|
+
[1m[35m (30.8ms)[0m TRUNCATE TABLE "public"."billers", "public"."users", "public"."payments", "public"."bloom_remit_responses", "public"."bloom_remit_txns" RESTART IDENTITY CASCADE;
|
33240
|
+
[1m[36m (0.5ms)[0m [1mALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "billers" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "payments" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_responses" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_txns" ENABLE TRIGGER ALL[0m
|
33241
|
+
[1m[35m (0.5ms)[0m BEGIN
|
33242
|
+
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO "users" DEFAULT VALUES RETURNING "id"[0m
|
33243
|
+
[1m[35m (0.9ms)[0m COMMIT
|
33244
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
33245
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "bloom_remit_txns" ("target_slug", "amount", "secret", "external_id", "sender_id", "sender_type") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["target_slug", "TARGET_SLUG"], ["amount", "2500.0"], ["secret", "7cb52899-6b26-4c3a-91d5-0eeba73735c3"], ["external_id", "e31587d66ab50c9c1a8d9517"], ["sender_id", "1"], ["sender_type", "User"]]
|
33246
|
+
[1m[36m (0.7ms)[0m [1mCOMMIT[0m
|
33247
|
+
[1m[35mBloomRemit::Txn Load (0.4ms)[0m SELECT "bloom_remit_txns".* FROM "bloom_remit_txns" WHERE "bloom_remit_txns"."id" = $1 AND "bloom_remit_txns"."secret" = $2 LIMIT 1 [["id", 1], ["secret", "7cb52899-6b26-4c3a-91d5-0eeba73735c3"]]
|
33248
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
33249
|
+
[1m[35mSQL (0.4ms)[0m UPDATE "bloom_remit_txns" SET "status" = $1, "status_description" = $2, "vendor_external_id" = $3 WHERE "bloom_remit_txns"."id" = $4 [["status", 1], ["status_description", "My status description"], ["vendor_external_id", "somerefno"], ["id", 1]]
|
33250
|
+
[1m[36m (0.8ms)[0m [1mCOMMIT[0m
|
33251
|
+
[1m[35m (0.6ms)[0m ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "billers" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "payments" DISABLE TRIGGER ALL;ALTER TABLE "bloom_remit_responses" DISABLE TRIGGER ALL;ALTER TABLE "bloom_remit_txns" DISABLE TRIGGER ALL
|
33252
|
+
[1m[36m (30.0ms)[0m [1mTRUNCATE TABLE "public"."billers", "public"."users", "public"."payments", "public"."bloom_remit_responses", "public"."bloom_remit_txns" RESTART IDENTITY CASCADE;[0m
|
33253
|
+
[1m[35m (0.4ms)[0m ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "billers" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "payments" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_responses" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_txns" ENABLE TRIGGER ALL
|
33254
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
33255
|
+
[1m[35m (0.2ms)[0m COMMIT
|
33256
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
33257
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
33258
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
33259
|
+
[1m[35m (0.2ms)[0m COMMIT
|
33260
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
33261
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
33262
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
33263
|
+
[1m[35m (0.1ms)[0m COMMIT
|
33264
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
33265
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
33266
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
33267
|
+
[1m[35m (0.3ms)[0m COMMIT
|
33268
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
33269
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
33270
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
33271
|
+
[1m[35m (0.2ms)[0m COMMIT
|
33272
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
33273
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
33274
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
33275
|
+
[1m[35m (0.2ms)[0m COMMIT
|
33276
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
33277
|
+
[1m[35m (0.7ms)[0m ROLLBACK
|
33278
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
33279
|
+
[1m[35m (0.2ms)[0m COMMIT
|
33280
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
33281
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
33282
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
33283
|
+
[1m[35m (0.2ms)[0m COMMIT
|
33284
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
33285
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
33286
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "users" DEFAULT VALUES RETURNING "id"[0m
|
33287
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
33288
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
33289
|
+
[1m[35mSQL (0.6ms)[0m INSERT INTO "bloom_remit_txns" ("target_slug", "amount", "secret", "external_id", "sender_id", "sender_type") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["target_slug", "TARGET_SLUG"], ["amount", "2500.0"], ["secret", "56bc1cba-4f29-4c2c-9e9e-a86ae1e77abc"], ["external_id", "270a2c4498525096b2c13f1f"], ["sender_id", "1"], ["sender_type", "User"]]
|
33290
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
33291
|
+
Started POST "/bloom_remit/api/v1/txns/1" for 127.0.0.1 at 2016-09-16 01:23:04 +0000
|
33292
|
+
Processing by BloomRemit::Api::V1::TxnsController#post_update as JSON
|
33293
|
+
Parameters: {"secret"=>"fake", "status"=>"doesn't matter", "id"=>"1", "txn"=>{"status"=>"doesn't matter", "secret"=>"fake"}}
|
33294
|
+
[1m[35mBloomRemit::Txn Load (0.4ms)[0m SELECT "bloom_remit_txns".* FROM "bloom_remit_txns" WHERE "bloom_remit_txns"."id" = $1 AND "bloom_remit_txns"."secret" = $2 LIMIT 1 [["id", 1], ["secret", nil]]
|
33295
|
+
Rendered text template (0.0ms)
|
33296
|
+
Completed 404 Not Found in 45ms (Views: 43.6ms | ActiveRecord: 0.4ms)
|
33297
|
+
Started POST "/bloom_remit/api/v1/txns/1" for 127.0.0.1 at 2016-09-16 01:23:04 +0000
|
33298
|
+
Processing by BloomRemit::Api::V1::TxnsController#post_update as JSON
|
33299
|
+
Parameters: {"secret"=>"56bc1cba-4f29-4c2c-9e9e-a86ae1e77abc", "status"=>"paid", "id"=>"1", "txn"=>{"status"=>"paid", "secret"=>"56bc1cba-4f29-4c2c-9e9e-a86ae1e77abc"}}
|
33300
|
+
[1m[36mBloomRemit::Txn Load (0.4ms)[0m [1mSELECT "bloom_remit_txns".* FROM "bloom_remit_txns" WHERE "bloom_remit_txns"."id" = $1 AND "bloom_remit_txns"."secret" = $2 LIMIT 1[0m [["id", 1], ["secret", "56bc1cba-4f29-4c2c-9e9e-a86ae1e77abc"]]
|
33301
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
33302
|
+
[1m[36mSQL (0.4ms)[0m [1mUPDATE "bloom_remit_txns" SET "status" = $1 WHERE "bloom_remit_txns"."id" = $2[0m [["status", 1], ["id", 1]]
|
33303
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
33304
|
+
Completed 200 OK in 8ms (Views: 0.4ms | ActiveRecord: 1.2ms)
|
33305
|
+
[1m[36mBloomRemit::Txn Load (0.3ms)[0m [1mSELECT "bloom_remit_txns".* FROM "bloom_remit_txns" WHERE "bloom_remit_txns"."id" = $1 LIMIT 1[0m [["id", 1]]
|
33306
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
33307
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
33308
|
+
[1m[35m (0.2ms)[0m COMMIT
|
33309
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
33310
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
33311
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" DEFAULT VALUES RETURNING "id"[0m
|
33312
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
33313
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
33314
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "bloom_remit_txns" ("target_slug", "amount", "secret", "external_id", "sender_id", "sender_type") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["target_slug", "TARGET_SLUG"], ["amount", "2500.0"], ["secret", "9595c6a8-6f9a-4fc4-9b09-50df78265f5a"], ["external_id", "d0b556051edd55fe9965ae35"], ["sender_id", "2"], ["sender_type", "User"]]
|
33315
|
+
[1m[36m (0.5ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
33316
|
+
Started PATCH "/bloom_remit/api/v1/txns/2" for 127.0.0.1 at 2016-09-16 01:23:04 +0000
|
33317
|
+
Processing by BloomRemit::Api::V1::TxnsController#update as JSON
|
33318
|
+
Parameters: {"secret"=>"fake", "status"=>"doesn't matter", "id"=>"2", "txn"=>{"status"=>"doesn't matter", "secret"=>"fake"}}
|
33319
|
+
[1m[35mBloomRemit::Txn Load (0.5ms)[0m SELECT "bloom_remit_txns".* FROM "bloom_remit_txns" WHERE "bloom_remit_txns"."id" = $1 AND "bloom_remit_txns"."secret" = $2 LIMIT 1 [["id", 2], ["secret", nil]]
|
33320
|
+
Rendered text template (0.0ms)
|
33321
|
+
Completed 404 Not Found in 3ms (Views: 0.9ms | ActiveRecord: 0.5ms)
|
33322
|
+
Started PATCH "/bloom_remit/api/v1/txns/2" for 127.0.0.1 at 2016-09-16 01:23:04 +0000
|
33323
|
+
Processing by BloomRemit::Api::V1::TxnsController#update as JSON
|
33324
|
+
Parameters: {"secret"=>"9595c6a8-6f9a-4fc4-9b09-50df78265f5a", "status"=>"paid", "id"=>"2", "txn"=>{"status"=>"paid", "secret"=>"9595c6a8-6f9a-4fc4-9b09-50df78265f5a"}}
|
33325
|
+
[1m[36mBloomRemit::Txn Load (0.4ms)[0m [1mSELECT "bloom_remit_txns".* FROM "bloom_remit_txns" WHERE "bloom_remit_txns"."id" = $1 AND "bloom_remit_txns"."secret" = $2 LIMIT 1[0m [["id", 2], ["secret", "9595c6a8-6f9a-4fc4-9b09-50df78265f5a"]]
|
33326
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
33327
|
+
[1m[36mSQL (0.4ms)[0m [1mUPDATE "bloom_remit_txns" SET "status" = $1 WHERE "bloom_remit_txns"."id" = $2[0m [["status", 1], ["id", 2]]
|
33328
|
+
[1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1
|
33329
|
+
Completed 204 No Content in 43ms (ActiveRecord: 1.3ms)
|
33330
|
+
[1m[36mBloomRemit::Txn Load (0.4ms)[0m [1mSELECT "bloom_remit_txns".* FROM "bloom_remit_txns" WHERE "bloom_remit_txns"."id" = $1 LIMIT 1[0m [["id", 2]]
|
33331
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
33332
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
33333
|
+
[1m[35m (0.2ms)[0m COMMIT
|
33334
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
33335
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
33336
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("type") VALUES ($1) RETURNING "id"[0m [["type", "SubUser"]]
|
33337
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
33338
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
33339
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "billers" ("slug") VALUES ($1) RETURNING "id" [["slug", "PLDT"]]
|
33340
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
33341
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
33342
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "payments" ("type") VALUES ($1) RETURNING "id"[0m [["type", "SubPayment"]]
|
33343
|
+
[1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1
|
33344
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
33345
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "bloom_remit_txns" ("secret", "sender_type", "sender_id", "amount", "account_name", "account_id", "target_slug", "owner_id", "owner_type", "external_id") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["secret", "65507af4-67fe-479f-957c-90ce3a521737"], ["sender_type", "User"], ["sender_id", "3"], ["amount", "800.0"], ["account_name", "028109090"], ["account_id", "Hooli X"], ["target_slug", "PLDT"], ["owner_id", "1"], ["owner_type", "Payment"], ["external_id", "21ab0ab4bab58951689806cc"]]
|
33346
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
33347
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
33348
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
33349
|
+
[1m[35m (0.2ms)[0m COMMIT
|
33350
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
33351
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
33352
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
33353
|
+
[1m[35m (0.2ms)[0m COMMIT
|
33354
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
33355
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
33356
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "payments" DEFAULT VALUES RETURNING "id"[0m
|
33357
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
33358
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
33359
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "users" DEFAULT VALUES RETURNING "id"
|
33360
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
33361
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
33362
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "bloom_remit_txns" ("target_slug", "amount", "secret", "external_id", "owner_id", "owner_type", "sender_id", "sender_type") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["target_slug", "TARGET_SLUG"], ["amount", "2500.0"], ["secret", "31feb9d8-74ef-4d98-8bd7-68f4a4ac465e"], ["external_id", "0e9a1e105e0a397083c2baea"], ["owner_id", "2"], ["owner_type", "Payment"], ["sender_id", "4"], ["sender_type", "User"]]
|
33363
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
33364
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
33365
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "bloom_remit_responses" ("body", "txn_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["body", "{\"i\":\"am body\"}"], ["txn_id", 4], ["created_at", "2016-09-16 01:23:04.889022"], ["updated_at", "2016-09-16 01:23:04.889022"]]
|
33366
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
33367
|
+
[1m[35m (0.5ms)[0m SELECT COUNT(*) FROM "bloom_remit_responses" WHERE "bloom_remit_responses"."txn_id" = $1 [["txn_id", 4]]
|
33368
|
+
[1m[36mBloomRemit::Response Load (0.3ms)[0m [1mSELECT "bloom_remit_responses".* FROM "bloom_remit_responses" WHERE "bloom_remit_responses"."txn_id" = $1 ORDER BY "bloom_remit_responses"."id" ASC LIMIT 1[0m [["txn_id", 4]]
|
33369
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
33370
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
33371
|
+
[1m[35m (0.2ms)[0m COMMIT
|
33372
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
33373
|
+
[1m[35m (0.4ms)[0m SAVEPOINT active_record_1
|
33374
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "payments" DEFAULT VALUES RETURNING "id"[0m
|
33375
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
33376
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
33377
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "users" DEFAULT VALUES RETURNING "id"
|
33378
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
33379
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
33380
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "bloom_remit_txns" ("target_slug", "amount", "secret", "external_id", "owner_id", "owner_type", "sender_id", "sender_type") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["target_slug", "TARGET_SLUG"], ["amount", "2500.0"], ["secret", "756d71fa-981a-4944-9258-eea4842107b3"], ["external_id", "57df5e567f3d9eff0ac9bf4b"], ["owner_id", "3"], ["owner_type", "Payment"], ["sender_id", "5"], ["sender_type", "User"]]
|
33381
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
33382
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
33383
|
+
[1m[35mSQL (0.4ms)[0m UPDATE "bloom_remit_txns" SET "status" = $1 WHERE "bloom_remit_txns"."id" = $2 [["status", 7], ["id", 5]]
|
33384
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
33385
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
33386
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "bloom_remit_responses" ("body", "txn_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["body", "{\"status\":\"500\",\"error\":\"Internal Server Error\"}"], ["txn_id", 5], ["created_at", "2016-09-16 01:23:04.922945"], ["updated_at", "2016-09-16 01:23:04.922945"]]
|
33387
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
33388
|
+
[1m[36mBloomRemit::Txn Load (0.4ms)[0m [1mSELECT "bloom_remit_txns".* FROM "bloom_remit_txns" WHERE "bloom_remit_txns"."id" = $1 LIMIT 1[0m [["id", 5]]
|
33389
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
33390
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
33391
|
+
[1m[35m (0.2ms)[0m COMMIT
|
33392
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
33393
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
33394
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
33395
|
+
[1m[35m (0.6ms)[0m COMMIT
|
33396
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
33397
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
33398
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
33399
|
+
[1m[35m (0.2ms)[0m COMMIT
|
33400
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
33401
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
33402
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
33403
|
+
[1m[35m (0.2ms)[0m COMMIT
|
33404
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
33405
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
33406
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
33407
|
+
[1m[35m (0.3ms)[0m COMMIT
|
33408
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
33409
|
+
[1m[35m (0.4ms)[0m ROLLBACK
|
33410
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.9ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
33411
|
+
[1m[35m (0.8ms)[0m ALTER TABLE "billers" DISABLE TRIGGER ALL;ALTER TABLE "bloom_remit_responses" DISABLE TRIGGER ALL;ALTER TABLE "bloom_remit_txns" DISABLE TRIGGER ALL;ALTER TABLE "payments" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL
|
33412
|
+
[1m[36m (1.7ms)[0m [1m SELECT schemaname || '.' || tablename
|
33413
|
+
FROM pg_tables
|
33414
|
+
WHERE
|
33415
|
+
tablename !~ '_prt_' AND
|
33416
|
+
tablename <> 'schema_migrations' AND
|
33417
|
+
schemaname = ANY (current_schemas(false))
|
33418
|
+
[0m
|
33419
|
+
[1m[35m (1.8ms)[0m select table_name from information_schema.views where table_schema = 'app_test'
|
33420
|
+
[1m[36m (394.2ms)[0m [1mTRUNCATE TABLE "public"."billers", "public"."bloom_remit_responses", "public"."bloom_remit_txns", "public"."payments", "public"."users" RESTART IDENTITY CASCADE;[0m
|
33421
|
+
[1m[35m (0.8ms)[0m ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "billers" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_responses" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_txns" ENABLE TRIGGER ALL;ALTER TABLE "payments" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL
|
33422
|
+
[1m[36m (0.5ms)[0m [1mBEGIN[0m
|
33423
|
+
[1m[35m (0.4ms)[0m COMMIT
|
33424
|
+
[1m[36m (0.5ms)[0m [1mBEGIN[0m
|
33425
|
+
[1m[35m (1.3ms)[0m ROLLBACK
|
33426
|
+
[1m[36m (0.5ms)[0m [1mBEGIN[0m
|
33427
|
+
[1m[35m (0.4ms)[0m COMMIT
|
33428
|
+
[1m[36m (0.5ms)[0m [1mBEGIN[0m
|
33429
|
+
[1m[35m (0.4ms)[0m ROLLBACK
|
33430
|
+
[1m[36m (0.4ms)[0m [1mBEGIN[0m
|
33431
|
+
[1m[35m (0.5ms)[0m COMMIT
|
33432
|
+
[1m[36m (0.5ms)[0m [1mBEGIN[0m
|
33433
|
+
[1m[35m (0.7ms)[0m ROLLBACK
|
33434
|
+
[1m[36m (0.5ms)[0m [1mBEGIN[0m
|
33435
|
+
[1m[35mSQL (0.8ms)[0m INSERT INTO "billers" ("slug") VALUES ($1) RETURNING "id" [["slug", "PLDT"]]
|
33436
|
+
[1m[36m (10.5ms)[0m [1mCOMMIT[0m
|
33437
|
+
[1m[35m (1.7ms)[0m BEGIN
|
33438
|
+
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO "users" ("type") VALUES ($1) RETURNING "id"[0m [["type", "SubUser"]]
|
33439
|
+
[1m[35m (12.9ms)[0m COMMIT
|
33440
|
+
[1m[36m (0.5ms)[0m [1mBEGIN[0m
|
33441
|
+
[1m[35mSQL (0.6ms)[0m INSERT INTO "payments" ("type") VALUES ($1) RETURNING "id" [["type", "SubPayment"]]
|
33442
|
+
[1m[36m (10.2ms)[0m [1mCOMMIT[0m
|
33443
|
+
[1m[35m (1.1ms)[0m BEGIN
|
33444
|
+
[1m[36mSQL (1.6ms)[0m [1mINSERT INTO "bloom_remit_txns" ("secret", "sender_type", "sender_id", "amount", "account_name", "account_id", "target_slug", "owner_id", "owner_type", "external_id") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id"[0m [["secret", "ac5fd411-2a46-40b5-9043-034e8819906f"], ["sender_type", "User"], ["sender_id", "1"], ["amount", "800.0"], ["account_name", "028109090"], ["account_id", "Hooli X"], ["target_slug", "PLDT"], ["owner_id", "1"], ["owner_type", "Payment"], ["external_id", "93351e8c98153f7709a546cd"]]
|
33445
|
+
[1m[35m (9.9ms)[0m COMMIT
|
33446
|
+
[1m[36mUser Load (0.8ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1[0m [["id", 1]]
|
33447
|
+
[1m[35mPayment Load (0.6ms)[0m SELECT "payments".* FROM "payments" WHERE "payments"."id" = $1 LIMIT 1 [["id", 1]]
|
33448
|
+
[1m[36m (0.7ms)[0m [1mALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "billers" DISABLE TRIGGER ALL;ALTER TABLE "bloom_remit_responses" DISABLE TRIGGER ALL;ALTER TABLE "bloom_remit_txns" DISABLE TRIGGER ALL;ALTER TABLE "payments" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL[0m
|
33449
|
+
[1m[35m (346.1ms)[0m TRUNCATE TABLE "public"."billers", "public"."bloom_remit_responses", "public"."bloom_remit_txns", "public"."payments", "public"."users" RESTART IDENTITY CASCADE;
|
33450
|
+
[1m[36m (0.8ms)[0m [1mALTER TABLE "billers" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_responses" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_txns" ENABLE TRIGGER ALL;ALTER TABLE "payments" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL[0m
|
33451
|
+
[1m[35m (0.4ms)[0m BEGIN
|
33452
|
+
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO "users" DEFAULT VALUES RETURNING "id"[0m
|
33453
|
+
[1m[35m (11.4ms)[0m COMMIT
|
33454
|
+
[1m[36m (0.7ms)[0m [1mBEGIN[0m
|
33455
|
+
[1m[35mSQL (0.9ms)[0m INSERT INTO "bloom_remit_txns" ("target_slug", "amount", "secret", "external_id", "sender_id", "sender_type") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["target_slug", "TARGET_SLUG"], ["amount", "2500.0"], ["secret", "2a9c8a0e-0dfd-4c4e-a450-1e45524a4199"], ["external_id", "92e9976685de376fbbb1a178"], ["sender_id", "1"], ["sender_type", "User"]]
|
33456
|
+
[1m[36m (13.4ms)[0m [1mCOMMIT[0m
|
33457
|
+
[1m[35mBloomRemit::Txn Load (0.7ms)[0m SELECT "bloom_remit_txns".* FROM "bloom_remit_txns" WHERE "bloom_remit_txns"."id" = $1 AND "bloom_remit_txns"."secret" = $2 LIMIT 1 [["id", 1], ["secret", "2a9c8a0e-0dfd-4c4e-a450-1e45524a4199"]]
|
33458
|
+
[1m[36m (0.5ms)[0m [1mBEGIN[0m
|
33459
|
+
[1m[35mSQL (0.9ms)[0m UPDATE "bloom_remit_txns" SET "status" = $1, "status_description" = $2, "vendor_external_id" = $3 WHERE "bloom_remit_txns"."id" = $4 [["status", 1], ["status_description", "My status description"], ["vendor_external_id", "somerefno"], ["id", 1]]
|
33460
|
+
[1m[36m (13.8ms)[0m [1mCOMMIT[0m
|
33461
|
+
[1m[35m (0.7ms)[0m ALTER TABLE "billers" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "bloom_remit_responses" DISABLE TRIGGER ALL;ALTER TABLE "bloom_remit_txns" DISABLE TRIGGER ALL;ALTER TABLE "payments" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL
|
33462
|
+
[1m[36m (340.7ms)[0m [1mTRUNCATE TABLE "public"."billers", "public"."bloom_remit_responses", "public"."bloom_remit_txns", "public"."payments", "public"."users" RESTART IDENTITY CASCADE;[0m
|
33463
|
+
[1m[35m (0.7ms)[0m ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "billers" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_responses" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_txns" ENABLE TRIGGER ALL;ALTER TABLE "payments" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL
|
33464
|
+
[1m[36m (0.9ms)[0m [1mBEGIN[0m
|
33465
|
+
[1m[35m (0.8ms)[0m COMMIT
|
33466
|
+
[1m[36m (1.0ms)[0m [1mBEGIN[0m
|
33467
|
+
[1m[35m (1.8ms)[0m ROLLBACK
|
33468
|
+
[1m[36m (0.5ms)[0m [1mBEGIN[0m
|
33469
|
+
[1m[35m (0.4ms)[0m COMMIT
|
33470
|
+
[1m[36m (0.4ms)[0m [1mBEGIN[0m
|
33471
|
+
[1m[35m (0.7ms)[0m ROLLBACK
|
33472
|
+
[1m[36m (0.4ms)[0m [1mBEGIN[0m
|
33473
|
+
[1m[35m (0.4ms)[0m COMMIT
|
33474
|
+
[1m[36m (0.4ms)[0m [1mBEGIN[0m
|
33475
|
+
[1m[35m (0.9ms)[0m ROLLBACK
|
33476
|
+
[1m[36m (0.6ms)[0m [1mBEGIN[0m
|
33477
|
+
[1m[35m (0.8ms)[0m COMMIT
|
33478
|
+
[1m[36m (0.5ms)[0m [1mBEGIN[0m
|
33479
|
+
[1m[35m (0.6ms)[0m ROLLBACK
|
33480
|
+
[1m[36m (0.4ms)[0m [1mBEGIN[0m
|
33481
|
+
[1m[35m (0.4ms)[0m COMMIT
|
33482
|
+
[1m[36m (0.4ms)[0m [1mBEGIN[0m
|
33483
|
+
[1m[35m (0.5ms)[0m ROLLBACK
|
33484
|
+
[1m[36m (1.4ms)[0m [1mBEGIN[0m
|
33485
|
+
[1m[35m (0.9ms)[0m COMMIT
|
33486
|
+
[1m[36m (0.9ms)[0m [1mBEGIN[0m
|
33487
|
+
[1m[35m (1.1ms)[0m ROLLBACK
|
33488
|
+
[1m[36m (0.6ms)[0m [1mBEGIN[0m
|
33489
|
+
[1m[35m (0.5ms)[0m COMMIT
|
33490
|
+
[1m[36m (0.6ms)[0m [1mBEGIN[0m
|
33491
|
+
[1m[35m (0.6ms)[0m ROLLBACK
|
33492
|
+
[1m[36m (0.5ms)[0m [1mBEGIN[0m
|
33493
|
+
[1m[35m (0.4ms)[0m COMMIT
|
33494
|
+
[1m[36m (0.5ms)[0m [1mBEGIN[0m
|
33495
|
+
[1m[35m (0.6ms)[0m SAVEPOINT active_record_1
|
33496
|
+
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO "users" DEFAULT VALUES RETURNING "id"[0m
|
33497
|
+
[1m[35m (0.5ms)[0m RELEASE SAVEPOINT active_record_1
|
33498
|
+
[1m[36m (0.5ms)[0m [1mSAVEPOINT active_record_1[0m
|
33499
|
+
[1m[35mSQL (0.9ms)[0m INSERT INTO "bloom_remit_txns" ("target_slug", "amount", "secret", "external_id", "sender_id", "sender_type") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["target_slug", "TARGET_SLUG"], ["amount", "2500.0"], ["secret", "c1664c06-f368-4768-aad0-02966a63203a"], ["external_id", "96d8e04e973d13ad4297f781"], ["sender_id", "1"], ["sender_type", "User"]]
|
33500
|
+
[1m[36m (0.5ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
33501
|
+
Started POST "/bloom_remit/api/v1/txns/1" for 127.0.0.1 at 2016-09-19 15:15:42 +0800
|
33502
|
+
Processing by BloomRemit::Api::V1::TxnsController#post_update as JSON
|
33503
|
+
Parameters: {"secret"=>"fake", "status"=>"doesn't matter", "id"=>"1", "txn"=>{"status"=>"doesn't matter", "secret"=>"fake"}}
|
33504
|
+
[1m[35mBloomRemit::Txn Load (0.8ms)[0m SELECT "bloom_remit_txns".* FROM "bloom_remit_txns" WHERE "bloom_remit_txns"."id" = $1 AND "bloom_remit_txns"."secret" = $2 LIMIT 1 [["id", 1], ["secret", nil]]
|
33505
|
+
Rendered text template (0.0ms)
|
33506
|
+
Completed 404 Not Found in 13ms (Views: 11.7ms | ActiveRecord: 0.8ms)
|
33507
|
+
Started POST "/bloom_remit/api/v1/txns/1" for 127.0.0.1 at 2016-09-19 15:15:43 +0800
|
33508
|
+
Processing by BloomRemit::Api::V1::TxnsController#post_update as JSON
|
33509
|
+
Parameters: {"secret"=>"c1664c06-f368-4768-aad0-02966a63203a", "status"=>"paid", "id"=>"1", "txn"=>{"status"=>"paid", "secret"=>"c1664c06-f368-4768-aad0-02966a63203a"}}
|
33510
|
+
[1m[36mBloomRemit::Txn Load (0.7ms)[0m [1mSELECT "bloom_remit_txns".* FROM "bloom_remit_txns" WHERE "bloom_remit_txns"."id" = $1 AND "bloom_remit_txns"."secret" = $2 LIMIT 1[0m [["id", 1], ["secret", "c1664c06-f368-4768-aad0-02966a63203a"]]
|
33511
|
+
[1m[35m (2.8ms)[0m SAVEPOINT active_record_1
|
33512
|
+
[1m[36mSQL (0.7ms)[0m [1mUPDATE "bloom_remit_txns" SET "status" = $1 WHERE "bloom_remit_txns"."id" = $2[0m [["status", 1], ["id", 1]]
|
33513
|
+
[1m[35m (0.6ms)[0m RELEASE SAVEPOINT active_record_1
|
33514
|
+
Completed 200 OK in 10ms (Views: 0.5ms | ActiveRecord: 4.8ms)
|
33515
|
+
[1m[36mBloomRemit::Txn Load (0.6ms)[0m [1mSELECT "bloom_remit_txns".* FROM "bloom_remit_txns" WHERE "bloom_remit_txns"."id" = $1 LIMIT 1[0m [["id", 1]]
|
33516
|
+
[1m[35m (0.5ms)[0m ROLLBACK
|
33517
|
+
[1m[36m (0.5ms)[0m [1mBEGIN[0m
|
33518
|
+
[1m[35m (0.4ms)[0m COMMIT
|
33519
|
+
[1m[36m (0.4ms)[0m [1mBEGIN[0m
|
33520
|
+
[1m[35m (0.9ms)[0m SAVEPOINT active_record_1
|
33521
|
+
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO "users" DEFAULT VALUES RETURNING "id"[0m
|
33522
|
+
[1m[35m (1.6ms)[0m RELEASE SAVEPOINT active_record_1
|
33523
|
+
[1m[36m (0.8ms)[0m [1mSAVEPOINT active_record_1[0m
|
33524
|
+
[1m[35mSQL (0.8ms)[0m INSERT INTO "bloom_remit_txns" ("target_slug", "amount", "secret", "external_id", "sender_id", "sender_type") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["target_slug", "TARGET_SLUG"], ["amount", "2500.0"], ["secret", "4ed895dd-79ad-4f11-b7e8-fdba3c51c816"], ["external_id", "203169d0e15c064c7f14e17f"], ["sender_id", "2"], ["sender_type", "User"]]
|
33525
|
+
[1m[36m (0.5ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
33526
|
+
Started PATCH "/bloom_remit/api/v1/txns/2" for 127.0.0.1 at 2016-09-19 15:15:43 +0800
|
33527
|
+
Processing by BloomRemit::Api::V1::TxnsController#update as JSON
|
33528
|
+
Parameters: {"secret"=>"fake", "status"=>"doesn't matter", "id"=>"2", "txn"=>{"status"=>"doesn't matter", "secret"=>"fake"}}
|
33529
|
+
[1m[35mBloomRemit::Txn Load (0.8ms)[0m SELECT "bloom_remit_txns".* FROM "bloom_remit_txns" WHERE "bloom_remit_txns"."id" = $1 AND "bloom_remit_txns"."secret" = $2 LIMIT 1 [["id", 2], ["secret", nil]]
|
33530
|
+
Rendered text template (0.0ms)
|
33531
|
+
Completed 404 Not Found in 2ms (Views: 0.3ms | ActiveRecord: 0.8ms)
|
33532
|
+
Started PATCH "/bloom_remit/api/v1/txns/2" for 127.0.0.1 at 2016-09-19 15:15:43 +0800
|
33533
|
+
Processing by BloomRemit::Api::V1::TxnsController#update as JSON
|
33534
|
+
Parameters: {"secret"=>"4ed895dd-79ad-4f11-b7e8-fdba3c51c816", "status"=>"paid", "id"=>"2", "txn"=>{"status"=>"paid", "secret"=>"4ed895dd-79ad-4f11-b7e8-fdba3c51c816"}}
|
33535
|
+
[1m[36mBloomRemit::Txn Load (0.9ms)[0m [1mSELECT "bloom_remit_txns".* FROM "bloom_remit_txns" WHERE "bloom_remit_txns"."id" = $1 AND "bloom_remit_txns"."secret" = $2 LIMIT 1[0m [["id", 2], ["secret", "4ed895dd-79ad-4f11-b7e8-fdba3c51c816"]]
|
33536
|
+
[1m[35m (0.8ms)[0m SAVEPOINT active_record_1
|
33537
|
+
[1m[36mSQL (2.1ms)[0m [1mUPDATE "bloom_remit_txns" SET "status" = $1 WHERE "bloom_remit_txns"."id" = $2[0m [["status", 1], ["id", 2]]
|
33538
|
+
[1m[35m (0.7ms)[0m RELEASE SAVEPOINT active_record_1
|
33539
|
+
Completed 204 No Content in 14ms (ActiveRecord: 4.4ms)
|
33540
|
+
[1m[36mBloomRemit::Txn Load (0.7ms)[0m [1mSELECT "bloom_remit_txns".* FROM "bloom_remit_txns" WHERE "bloom_remit_txns"."id" = $1 LIMIT 1[0m [["id", 2]]
|
33541
|
+
[1m[35m (0.4ms)[0m ROLLBACK
|
33542
|
+
[1m[36m (0.4ms)[0m [1mBEGIN[0m
|
33543
|
+
[1m[35m (0.3ms)[0m COMMIT
|
33544
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
33545
|
+
[1m[35m (1.6ms)[0m SAVEPOINT active_record_1
|
33546
|
+
[1m[36mSQL (0.7ms)[0m [1mINSERT INTO "users" ("type") VALUES ($1) RETURNING "id"[0m [["type", "SubUser"]]
|
33547
|
+
[1m[35m (0.4ms)[0m RELEASE SAVEPOINT active_record_1
|
33548
|
+
[1m[36m (0.4ms)[0m [1mSAVEPOINT active_record_1[0m
|
33549
|
+
[1m[35mSQL (0.7ms)[0m INSERT INTO "billers" ("slug") VALUES ($1) RETURNING "id" [["slug", "PLDT"]]
|
33550
|
+
[1m[36m (0.5ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
33551
|
+
[1m[35m (0.5ms)[0m SAVEPOINT active_record_1
|
33552
|
+
[1m[36mSQL (0.7ms)[0m [1mINSERT INTO "payments" ("type") VALUES ($1) RETURNING "id"[0m [["type", "SubPayment"]]
|
33553
|
+
[1m[35m (0.4ms)[0m RELEASE SAVEPOINT active_record_1
|
33554
|
+
[1m[36m (0.5ms)[0m [1mSAVEPOINT active_record_1[0m
|
33555
|
+
[1m[35mSQL (0.8ms)[0m INSERT INTO "bloom_remit_txns" ("secret", "sender_type", "sender_id", "amount", "account_name", "account_id", "target_slug", "owner_id", "owner_type", "external_id") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["secret", "e0df31ed-9ad8-4f05-8ea7-1797eda897e9"], ["sender_type", "User"], ["sender_id", "3"], ["amount", "800.0"], ["account_name", "028109090"], ["account_id", "Hooli X"], ["target_slug", "PLDT"], ["owner_id", "1"], ["owner_type", "Payment"], ["external_id", "7e615dd1ffcad69c70b4cccc"]]
|
33556
|
+
[1m[36m (0.5ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
33557
|
+
[1m[35m (0.5ms)[0m ROLLBACK
|
33558
|
+
[1m[36m (0.6ms)[0m [1mBEGIN[0m
|
33559
|
+
[1m[35m (2.4ms)[0m COMMIT
|
33560
|
+
[1m[36m (0.7ms)[0m [1mBEGIN[0m
|
33561
|
+
[1m[35m (0.5ms)[0m ROLLBACK
|
33562
|
+
[1m[36m (0.4ms)[0m [1mBEGIN[0m
|
33563
|
+
[1m[35m (0.4ms)[0m COMMIT
|
33564
|
+
[1m[36m (0.4ms)[0m [1mBEGIN[0m
|
33565
|
+
[1m[35m (0.5ms)[0m SAVEPOINT active_record_1
|
33566
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "payments" DEFAULT VALUES RETURNING "id"[0m
|
33567
|
+
[1m[35m (0.4ms)[0m RELEASE SAVEPOINT active_record_1
|
33568
|
+
[1m[36m (0.4ms)[0m [1mSAVEPOINT active_record_1[0m
|
33569
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "users" DEFAULT VALUES RETURNING "id"
|
33570
|
+
[1m[36m (0.4ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
33571
|
+
[1m[35m (0.4ms)[0m SAVEPOINT active_record_1
|
33572
|
+
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO "bloom_remit_txns" ("target_slug", "amount", "secret", "external_id", "owner_id", "owner_type", "sender_id", "sender_type") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["target_slug", "TARGET_SLUG"], ["amount", "2500.0"], ["secret", "ee4c26ac-fa70-45be-9a62-7c90ce19a157"], ["external_id", "b1e192dedca7ac65772051cd"], ["owner_id", "2"], ["owner_type", "Payment"], ["sender_id", "4"], ["sender_type", "User"]]
|
33573
|
+
[1m[35m (1.0ms)[0m RELEASE SAVEPOINT active_record_1
|
33574
|
+
[1m[36m (0.5ms)[0m [1mSAVEPOINT active_record_1[0m
|
33575
|
+
[1m[35mSQL (0.7ms)[0m INSERT INTO "bloom_remit_responses" ("body", "txn_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["body", "{\"i\":\"am body\"}"], ["txn_id", 4], ["created_at", "2016-09-19 07:15:43.146389"], ["updated_at", "2016-09-19 07:15:43.146389"]]
|
33576
|
+
[1m[36m (1.6ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
33577
|
+
[1m[35m (0.5ms)[0m SELECT COUNT(*) FROM "bloom_remit_responses" WHERE "bloom_remit_responses"."txn_id" = $1 [["txn_id", 4]]
|
33578
|
+
[1m[36mBloomRemit::Response Load (0.6ms)[0m [1mSELECT "bloom_remit_responses".* FROM "bloom_remit_responses" WHERE "bloom_remit_responses"."txn_id" = $1 ORDER BY "bloom_remit_responses"."id" ASC LIMIT 1[0m [["txn_id", 4]]
|
33579
|
+
[1m[35m (0.5ms)[0m ROLLBACK
|
33580
|
+
[1m[36m (0.4ms)[0m [1mBEGIN[0m
|
33581
|
+
[1m[35m (0.4ms)[0m COMMIT
|
33582
|
+
[1m[36m (0.4ms)[0m [1mBEGIN[0m
|
33583
|
+
[1m[35m (0.4ms)[0m SAVEPOINT active_record_1
|
33584
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "payments" DEFAULT VALUES RETURNING "id"[0m
|
33585
|
+
[1m[35m (0.4ms)[0m RELEASE SAVEPOINT active_record_1
|
33586
|
+
[1m[36m (0.4ms)[0m [1mSAVEPOINT active_record_1[0m
|
33587
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "users" DEFAULT VALUES RETURNING "id"
|
33588
|
+
[1m[36m (1.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
33589
|
+
[1m[35m (0.7ms)[0m SAVEPOINT active_record_1
|
33590
|
+
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO "bloom_remit_txns" ("target_slug", "amount", "secret", "external_id", "owner_id", "owner_type", "sender_id", "sender_type") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["target_slug", "TARGET_SLUG"], ["amount", "2500.0"], ["secret", "5143c377-5cd7-4a23-aab8-338fa7020764"], ["external_id", "104280e80f6d011b441ce9a1"], ["owner_id", "3"], ["owner_type", "Payment"], ["sender_id", "5"], ["sender_type", "User"]]
|
33591
|
+
[1m[35m (0.5ms)[0m RELEASE SAVEPOINT active_record_1
|
33592
|
+
[1m[36m (0.5ms)[0m [1mSAVEPOINT active_record_1[0m
|
33593
|
+
[1m[35mSQL (0.6ms)[0m UPDATE "bloom_remit_txns" SET "status" = $1 WHERE "bloom_remit_txns"."id" = $2 [["status", 7], ["id", 5]]
|
33594
|
+
[1m[36m (0.4ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
33595
|
+
[1m[35m (0.4ms)[0m SAVEPOINT active_record_1
|
33596
|
+
[1m[36mSQL (0.7ms)[0m [1mINSERT INTO "bloom_remit_responses" ("body", "txn_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["body", "{\"status\":\"500\",\"error\":\"Internal Server Error\"}"], ["txn_id", 5], ["created_at", "2016-09-19 07:15:43.178508"], ["updated_at", "2016-09-19 07:15:43.178508"]]
|
33597
|
+
[1m[35m (0.5ms)[0m RELEASE SAVEPOINT active_record_1
|
33598
|
+
[1m[36mBloomRemit::Txn Load (0.7ms)[0m [1mSELECT "bloom_remit_txns".* FROM "bloom_remit_txns" WHERE "bloom_remit_txns"."id" = $1 LIMIT 1[0m [["id", 5]]
|
33599
|
+
[1m[35m (3.2ms)[0m ROLLBACK
|
33600
|
+
[1m[36m (0.4ms)[0m [1mBEGIN[0m
|
33601
|
+
[1m[35m (0.4ms)[0m COMMIT
|
33602
|
+
[1m[36m (0.4ms)[0m [1mBEGIN[0m
|
33603
|
+
[1m[35m (0.5ms)[0m ROLLBACK
|
33604
|
+
[1m[36m (0.5ms)[0m [1mBEGIN[0m
|
33605
|
+
[1m[35m (0.5ms)[0m COMMIT
|
33606
|
+
[1m[36m (0.4ms)[0m [1mBEGIN[0m
|
33607
|
+
[1m[35m (0.5ms)[0m ROLLBACK
|
33608
|
+
[1m[36m (0.6ms)[0m [1mBEGIN[0m
|
33609
|
+
[1m[35m (0.8ms)[0m COMMIT
|
33610
|
+
[1m[36m (0.9ms)[0m [1mBEGIN[0m
|
33611
|
+
[1m[35m (0.6ms)[0m ROLLBACK
|
33612
|
+
[1m[36m (0.4ms)[0m [1mBEGIN[0m
|
33613
|
+
[1m[35m (0.4ms)[0m COMMIT
|
33614
|
+
[1m[36m (0.4ms)[0m [1mBEGIN[0m
|
33615
|
+
[1m[35m (0.5ms)[0m ROLLBACK
|
33616
|
+
[1m[36m (0.4ms)[0m [1mBEGIN[0m
|
33617
|
+
[1m[35m (0.4ms)[0m COMMIT
|
33618
|
+
[1m[36m (0.4ms)[0m [1mBEGIN[0m
|
33619
|
+
[1m[35m (0.5ms)[0m ROLLBACK
|
33620
|
+
[1m[36mActiveRecord::SchemaMigration Load (3.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
33621
|
+
[1m[35m (1.1ms)[0m ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "billers" DISABLE TRIGGER ALL;ALTER TABLE "bloom_remit_responses" DISABLE TRIGGER ALL;ALTER TABLE "bloom_remit_txns" DISABLE TRIGGER ALL;ALTER TABLE "payments" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL
|
33622
|
+
[1m[36m (3.3ms)[0m [1m SELECT schemaname || '.' || tablename
|
33623
|
+
FROM pg_tables
|
33624
|
+
WHERE
|
33625
|
+
tablename !~ '_prt_' AND
|
33626
|
+
tablename <> 'schema_migrations' AND
|
33627
|
+
schemaname = ANY (current_schemas(false))
|
33628
|
+
[0m
|
33629
|
+
[1m[35m (1.7ms)[0m select table_name from information_schema.views where table_schema = 'app_test'
|
33630
|
+
[1m[36m (322.4ms)[0m [1mTRUNCATE TABLE "public"."billers", "public"."bloom_remit_responses", "public"."bloom_remit_txns", "public"."payments", "public"."users" RESTART IDENTITY CASCADE;[0m
|
33631
|
+
[1m[35m (1.0ms)[0m ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "billers" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_responses" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_txns" ENABLE TRIGGER ALL;ALTER TABLE "payments" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL
|
33632
|
+
[1m[36m (1.2ms)[0m [1mBEGIN[0m
|
33633
|
+
[1m[35m (2.4ms)[0m COMMIT
|
33634
|
+
[1m[36m (0.6ms)[0m [1mBEGIN[0m
|
33635
|
+
[1m[35m (0.6ms)[0m ROLLBACK
|
33636
|
+
[1m[36m (0.4ms)[0m [1mBEGIN[0m
|
33637
|
+
[1m[35m (0.4ms)[0m COMMIT
|
33638
|
+
[1m[36m (0.4ms)[0m [1mBEGIN[0m
|
33639
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
33640
|
+
[1m[36m (0.4ms)[0m [1mBEGIN[0m
|
33641
|
+
[1m[35m (0.3ms)[0m COMMIT
|
33642
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
33643
|
+
[1m[35m (0.8ms)[0m ROLLBACK
|
33644
|
+
[1m[36m (1.0ms)[0m [1mBEGIN[0m
|
33645
|
+
[1m[35mSQL (0.9ms)[0m INSERT INTO "billers" ("slug") VALUES ($1) RETURNING "id" [["slug", "PLDT"]]
|
33646
|
+
[1m[36m (10.6ms)[0m [1mCOMMIT[0m
|
33647
|
+
[1m[35m (0.5ms)[0m BEGIN
|
33648
|
+
[1m[36mSQL (0.7ms)[0m [1mINSERT INTO "users" ("type") VALUES ($1) RETURNING "id"[0m [["type", "SubUser"]]
|
33649
|
+
[1m[35m (10.5ms)[0m COMMIT
|
33650
|
+
[1m[36m (0.6ms)[0m [1mBEGIN[0m
|
33651
|
+
[1m[35mSQL (0.7ms)[0m INSERT INTO "payments" ("type") VALUES ($1) RETURNING "id" [["type", "SubPayment"]]
|
33652
|
+
[1m[36m (10.2ms)[0m [1mCOMMIT[0m
|
33653
|
+
[1m[35m (0.6ms)[0m BEGIN
|
33654
|
+
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO "bloom_remit_txns" ("secret", "sender_type", "sender_id", "amount", "account_name", "account_id", "target_slug", "owner_id", "owner_type", "external_id") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id"[0m [["secret", "3c73a0d8-59f9-4df0-871f-efd6a5da2790"], ["sender_type", "User"], ["sender_id", "1"], ["amount", "800.0"], ["account_name", "028109090"], ["account_id", "Hooli X"], ["target_slug", "PLDT"], ["owner_id", "1"], ["owner_type", "Payment"], ["external_id", "6cfa55a20ba0a7499cb91457"]]
|
33655
|
+
[1m[35m (10.6ms)[0m COMMIT
|
33656
|
+
[1m[36mUser Load (0.6ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1[0m [["id", 1]]
|
33657
|
+
[1m[35mPayment Load (0.7ms)[0m SELECT "payments".* FROM "payments" WHERE "payments"."id" = $1 LIMIT 1 [["id", 1]]
|
33658
|
+
[1m[36m (0.5ms)[0m [1mALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "billers" DISABLE TRIGGER ALL;ALTER TABLE "bloom_remit_responses" DISABLE TRIGGER ALL;ALTER TABLE "bloom_remit_txns" DISABLE TRIGGER ALL;ALTER TABLE "payments" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL[0m
|
33659
|
+
[1m[35m (392.4ms)[0m TRUNCATE TABLE "public"."billers", "public"."bloom_remit_responses", "public"."bloom_remit_txns", "public"."payments", "public"."users" RESTART IDENTITY CASCADE;
|
33660
|
+
[1m[36m (0.9ms)[0m [1mALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "billers" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_responses" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_txns" ENABLE TRIGGER ALL;ALTER TABLE "payments" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL[0m
|
33661
|
+
[1m[35m (0.5ms)[0m BEGIN
|
33662
|
+
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO "users" DEFAULT VALUES RETURNING "id"[0m
|
33663
|
+
[1m[35m (10.1ms)[0m COMMIT
|
33664
|
+
[1m[36m (0.6ms)[0m [1mBEGIN[0m
|
33665
|
+
[1m[35mSQL (0.8ms)[0m INSERT INTO "bloom_remit_txns" ("target_slug", "amount", "secret", "external_id", "sender_id", "sender_type") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["target_slug", "TARGET_SLUG"], ["amount", "2500.0"], ["secret", "50e0b072-f725-46dd-937d-b40c1f1f2276"], ["external_id", "6b4224ad39cf4c7b3c5cf169"], ["sender_id", "1"], ["sender_type", "User"]]
|
33666
|
+
[1m[36m (10.0ms)[0m [1mCOMMIT[0m
|
33667
|
+
[1m[35mBloomRemit::Txn Load (0.6ms)[0m SELECT "bloom_remit_txns".* FROM "bloom_remit_txns" WHERE "bloom_remit_txns"."id" = $1 AND "bloom_remit_txns"."secret" = $2 LIMIT 1 [["id", 1], ["secret", "50e0b072-f725-46dd-937d-b40c1f1f2276"]]
|
33668
|
+
[1m[36m (0.5ms)[0m [1mBEGIN[0m
|
33669
|
+
[1m[35mSQL (0.6ms)[0m UPDATE "bloom_remit_txns" SET "status" = $1, "status_description" = $2, "vendor_external_id" = $3 WHERE "bloom_remit_txns"."id" = $4 [["status", 1], ["status_description", "My status description"], ["vendor_external_id", "somerefno"], ["id", 1]]
|
33670
|
+
[1m[36m (9.8ms)[0m [1mCOMMIT[0m
|
33671
|
+
[1m[35m (0.6ms)[0m ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "billers" DISABLE TRIGGER ALL;ALTER TABLE "bloom_remit_responses" DISABLE TRIGGER ALL;ALTER TABLE "bloom_remit_txns" DISABLE TRIGGER ALL;ALTER TABLE "payments" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL
|
33672
|
+
[1m[36m (372.9ms)[0m [1mTRUNCATE TABLE "public"."billers", "public"."bloom_remit_responses", "public"."bloom_remit_txns", "public"."payments", "public"."users" RESTART IDENTITY CASCADE;[0m
|
33673
|
+
[1m[35m (0.8ms)[0m ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "billers" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_responses" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_txns" ENABLE TRIGGER ALL;ALTER TABLE "payments" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL
|
33674
|
+
[1m[36m (0.4ms)[0m [1mBEGIN[0m
|
33675
|
+
[1m[35m (0.4ms)[0m COMMIT
|
33676
|
+
[1m[36m (0.4ms)[0m [1mBEGIN[0m
|
33677
|
+
[1m[35m (0.5ms)[0m ROLLBACK
|
33678
|
+
[1m[36m (0.4ms)[0m [1mBEGIN[0m
|
33679
|
+
[1m[35m (0.4ms)[0m COMMIT
|
33680
|
+
[1m[36m (0.4ms)[0m [1mBEGIN[0m
|
33681
|
+
[1m[35m (0.6ms)[0m ROLLBACK
|
33682
|
+
[1m[36m (0.4ms)[0m [1mBEGIN[0m
|
33683
|
+
[1m[35m (0.4ms)[0m COMMIT
|
33684
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
33685
|
+
[1m[35m (0.7ms)[0m ROLLBACK
|
33686
|
+
[1m[36m (0.5ms)[0m [1mBEGIN[0m
|
33687
|
+
[1m[35m (0.4ms)[0m COMMIT
|
33688
|
+
[1m[36m (0.4ms)[0m [1mBEGIN[0m
|
33689
|
+
[1m[35m (0.5ms)[0m ROLLBACK
|
33690
|
+
[1m[36m (0.4ms)[0m [1mBEGIN[0m
|
33691
|
+
[1m[35m (0.3ms)[0m COMMIT
|
33692
|
+
[1m[36m (0.4ms)[0m [1mBEGIN[0m
|
33693
|
+
[1m[35m (0.4ms)[0m ROLLBACK
|
33694
|
+
[1m[36m (0.4ms)[0m [1mBEGIN[0m
|
33695
|
+
[1m[35m (0.5ms)[0m COMMIT
|
33696
|
+
[1m[36m (0.8ms)[0m [1mBEGIN[0m
|
33697
|
+
[1m[35m (0.7ms)[0m ROLLBACK
|
33698
|
+
[1m[36m (0.5ms)[0m [1mBEGIN[0m
|
33699
|
+
[1m[35m (0.4ms)[0m COMMIT
|
33700
|
+
[1m[36m (0.4ms)[0m [1mBEGIN[0m
|
33701
|
+
[1m[35m (0.5ms)[0m ROLLBACK
|
33702
|
+
[1m[36m (0.5ms)[0m [1mBEGIN[0m
|
33703
|
+
[1m[35m (0.4ms)[0m COMMIT
|
33704
|
+
[1m[36m (0.4ms)[0m [1mBEGIN[0m
|
33705
|
+
[1m[35m (0.6ms)[0m SAVEPOINT active_record_1
|
33706
|
+
[1m[36mSQL (1.7ms)[0m [1mINSERT INTO "users" DEFAULT VALUES RETURNING "id"[0m
|
33707
|
+
[1m[35m (0.9ms)[0m RELEASE SAVEPOINT active_record_1
|
33708
|
+
[1m[36m (0.6ms)[0m [1mSAVEPOINT active_record_1[0m
|
33709
|
+
[1m[35mSQL (1.0ms)[0m INSERT INTO "bloom_remit_txns" ("target_slug", "amount", "secret", "external_id", "sender_id", "sender_type") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["target_slug", "TARGET_SLUG"], ["amount", "2500.0"], ["secret", "dedbfb2a-81bd-4e0c-a3d7-2ada9d088226"], ["external_id", "ff13aa442e2bf525c2776c6a"], ["sender_id", "1"], ["sender_type", "User"]]
|
33710
|
+
[1m[36m (0.5ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
33711
|
+
Started POST "/bloom_remit/api/v1/txns/1" for 127.0.0.1 at 2016-09-19 15:48:52 +0800
|
33712
|
+
Processing by BloomRemit::Api::V1::TxnsController#post_update as JSON
|
33713
|
+
Parameters: {"secret"=>"fake", "status"=>"doesn't matter", "id"=>"1", "txn"=>{"status"=>"doesn't matter", "secret"=>"fake"}}
|
33714
|
+
[1m[35mBloomRemit::Txn Load (0.7ms)[0m SELECT "bloom_remit_txns".* FROM "bloom_remit_txns" WHERE "bloom_remit_txns"."id" = $1 AND "bloom_remit_txns"."secret" = $2 LIMIT 1 [["id", 1], ["secret", nil]]
|
33715
|
+
Rendered text template (0.0ms)
|
33716
|
+
Completed 404 Not Found in 12ms (Views: 10.1ms | ActiveRecord: 0.7ms)
|
33717
|
+
Started POST "/bloom_remit/api/v1/txns/1" for 127.0.0.1 at 2016-09-19 15:48:52 +0800
|
33718
|
+
Processing by BloomRemit::Api::V1::TxnsController#post_update as JSON
|
33719
|
+
Parameters: {"secret"=>"dedbfb2a-81bd-4e0c-a3d7-2ada9d088226", "status"=>"paid", "id"=>"1", "txn"=>{"status"=>"paid", "secret"=>"dedbfb2a-81bd-4e0c-a3d7-2ada9d088226"}}
|
33720
|
+
[1m[36mBloomRemit::Txn Load (0.9ms)[0m [1mSELECT "bloom_remit_txns".* FROM "bloom_remit_txns" WHERE "bloom_remit_txns"."id" = $1 AND "bloom_remit_txns"."secret" = $2 LIMIT 1[0m [["id", 1], ["secret", "dedbfb2a-81bd-4e0c-a3d7-2ada9d088226"]]
|
33721
|
+
[1m[35m (0.5ms)[0m SAVEPOINT active_record_1
|
33722
|
+
[1m[36mSQL (0.6ms)[0m [1mUPDATE "bloom_remit_txns" SET "status" = $1 WHERE "bloom_remit_txns"."id" = $2[0m [["status", 1], ["id", 1]]
|
33723
|
+
[1m[35m (1.2ms)[0m RELEASE SAVEPOINT active_record_1
|
33724
|
+
Completed 200 OK in 8ms (Views: 1.2ms | ActiveRecord: 3.1ms)
|
33725
|
+
[1m[36mBloomRemit::Txn Load (0.6ms)[0m [1mSELECT "bloom_remit_txns".* FROM "bloom_remit_txns" WHERE "bloom_remit_txns"."id" = $1 LIMIT 1[0m [["id", 1]]
|
33726
|
+
[1m[35m (0.6ms)[0m ROLLBACK
|
33727
|
+
[1m[36m (0.4ms)[0m [1mBEGIN[0m
|
33728
|
+
[1m[35m (0.4ms)[0m COMMIT
|
33729
|
+
[1m[36m (0.4ms)[0m [1mBEGIN[0m
|
33730
|
+
[1m[35m (0.6ms)[0m SAVEPOINT active_record_1
|
33731
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "users" DEFAULT VALUES RETURNING "id"[0m
|
33732
|
+
[1m[35m (1.0ms)[0m RELEASE SAVEPOINT active_record_1
|
33733
|
+
[1m[36m (0.8ms)[0m [1mSAVEPOINT active_record_1[0m
|
33734
|
+
[1m[35mSQL (1.2ms)[0m INSERT INTO "bloom_remit_txns" ("target_slug", "amount", "secret", "external_id", "sender_id", "sender_type") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["target_slug", "TARGET_SLUG"], ["amount", "2500.0"], ["secret", "ca8b650e-d509-4c45-b9a7-c56714a82294"], ["external_id", "1a8f4ba2b5d2ec8e49766c3d"], ["sender_id", "2"], ["sender_type", "User"]]
|
33735
|
+
[1m[36m (0.5ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
33736
|
+
Started PATCH "/bloom_remit/api/v1/txns/2" for 127.0.0.1 at 2016-09-19 15:48:52 +0800
|
33737
|
+
Processing by BloomRemit::Api::V1::TxnsController#update as JSON
|
33738
|
+
Parameters: {"secret"=>"fake", "status"=>"doesn't matter", "id"=>"2", "txn"=>{"status"=>"doesn't matter", "secret"=>"fake"}}
|
33739
|
+
[1m[35mBloomRemit::Txn Load (0.8ms)[0m SELECT "bloom_remit_txns".* FROM "bloom_remit_txns" WHERE "bloom_remit_txns"."id" = $1 AND "bloom_remit_txns"."secret" = $2 LIMIT 1 [["id", 2], ["secret", nil]]
|
33740
|
+
Rendered text template (0.0ms)
|
33741
|
+
Completed 404 Not Found in 2ms (Views: 0.3ms | ActiveRecord: 0.8ms)
|
33742
|
+
Started PATCH "/bloom_remit/api/v1/txns/2" for 127.0.0.1 at 2016-09-19 15:48:52 +0800
|
33743
|
+
Processing by BloomRemit::Api::V1::TxnsController#update as JSON
|
33744
|
+
Parameters: {"secret"=>"ca8b650e-d509-4c45-b9a7-c56714a82294", "status"=>"paid", "id"=>"2", "txn"=>{"status"=>"paid", "secret"=>"ca8b650e-d509-4c45-b9a7-c56714a82294"}}
|
33745
|
+
[1m[36mBloomRemit::Txn Load (0.9ms)[0m [1mSELECT "bloom_remit_txns".* FROM "bloom_remit_txns" WHERE "bloom_remit_txns"."id" = $1 AND "bloom_remit_txns"."secret" = $2 LIMIT 1[0m [["id", 2], ["secret", "ca8b650e-d509-4c45-b9a7-c56714a82294"]]
|
33746
|
+
[1m[35m (0.5ms)[0m SAVEPOINT active_record_1
|
33747
|
+
[1m[36mSQL (0.7ms)[0m [1mUPDATE "bloom_remit_txns" SET "status" = $1 WHERE "bloom_remit_txns"."id" = $2[0m [["status", 1], ["id", 2]]
|
33748
|
+
[1m[35m (0.4ms)[0m RELEASE SAVEPOINT active_record_1
|
33749
|
+
Completed 204 No Content in 13ms (ActiveRecord: 2.5ms)
|
33750
|
+
[1m[36mBloomRemit::Txn Load (0.7ms)[0m [1mSELECT "bloom_remit_txns".* FROM "bloom_remit_txns" WHERE "bloom_remit_txns"."id" = $1 LIMIT 1[0m [["id", 2]]
|
33751
|
+
[1m[35m (0.5ms)[0m ROLLBACK
|
33752
|
+
[1m[36m (0.4ms)[0m [1mBEGIN[0m
|
33753
|
+
[1m[35m (0.5ms)[0m COMMIT
|
33754
|
+
[1m[36m (0.4ms)[0m [1mBEGIN[0m
|
33755
|
+
[1m[35m (0.5ms)[0m SAVEPOINT active_record_1
|
33756
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "users" ("type") VALUES ($1) RETURNING "id"[0m [["type", "SubUser"]]
|
33757
|
+
[1m[35m (0.5ms)[0m RELEASE SAVEPOINT active_record_1
|
33758
|
+
[1m[36m (0.4ms)[0m [1mSAVEPOINT active_record_1[0m
|
33759
|
+
[1m[35mSQL (1.2ms)[0m INSERT INTO "billers" ("slug") VALUES ($1) RETURNING "id" [["slug", "PLDT"]]
|
33760
|
+
[1m[36m (0.9ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
33761
|
+
[1m[35m (0.6ms)[0m SAVEPOINT active_record_1
|
33762
|
+
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO "payments" ("type") VALUES ($1) RETURNING "id"[0m [["type", "SubPayment"]]
|
33763
|
+
[1m[35m (0.5ms)[0m RELEASE SAVEPOINT active_record_1
|
33764
|
+
[1m[36m (0.5ms)[0m [1mSAVEPOINT active_record_1[0m
|
33765
|
+
[1m[35mSQL (0.8ms)[0m INSERT INTO "bloom_remit_txns" ("secret", "sender_type", "sender_id", "amount", "account_name", "account_id", "target_slug", "owner_id", "owner_type", "external_id") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["secret", "83b8dabb-f251-451c-8c3c-8fcdfba5a5fc"], ["sender_type", "User"], ["sender_id", "3"], ["amount", "800.0"], ["account_name", "028109090"], ["account_id", "Hooli X"], ["target_slug", "PLDT"], ["owner_id", "1"], ["owner_type", "Payment"], ["external_id", "3a962af9a7c9ef5520071910"]]
|
33766
|
+
[1m[36m (0.7ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
33767
|
+
[1m[35m (0.5ms)[0m ROLLBACK
|
33768
|
+
[1m[36m (0.5ms)[0m [1mBEGIN[0m
|
33769
|
+
[1m[35m (0.5ms)[0m COMMIT
|
33770
|
+
[1m[36m (0.4ms)[0m [1mBEGIN[0m
|
33771
|
+
[1m[35m (0.4ms)[0m ROLLBACK
|
33772
|
+
[1m[36m (0.5ms)[0m [1mBEGIN[0m
|
33773
|
+
[1m[35m (0.4ms)[0m COMMIT
|
33774
|
+
[1m[36m (0.4ms)[0m [1mBEGIN[0m
|
33775
|
+
[1m[35m (0.6ms)[0m SAVEPOINT active_record_1
|
33776
|
+
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO "payments" DEFAULT VALUES RETURNING "id"[0m
|
33777
|
+
[1m[35m (0.5ms)[0m RELEASE SAVEPOINT active_record_1
|
33778
|
+
[1m[36m (0.5ms)[0m [1mSAVEPOINT active_record_1[0m
|
33779
|
+
[1m[35mSQL (0.6ms)[0m INSERT INTO "users" DEFAULT VALUES RETURNING "id"
|
33780
|
+
[1m[36m (0.5ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
33781
|
+
[1m[35m (0.5ms)[0m SAVEPOINT active_record_1
|
33782
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "bloom_remit_txns" ("target_slug", "amount", "secret", "external_id", "owner_id", "owner_type", "sender_id", "sender_type") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["target_slug", "TARGET_SLUG"], ["amount", "2500.0"], ["secret", "6073cf6c-69ff-4182-87a6-cdd241ca9dfd"], ["external_id", "58c474ea76b9c99e72eac455"], ["owner_id", "2"], ["owner_type", "Payment"], ["sender_id", "4"], ["sender_type", "User"]]
|
33783
|
+
[1m[35m (0.5ms)[0m RELEASE SAVEPOINT active_record_1
|
33784
|
+
[1m[36m (0.6ms)[0m [1mSAVEPOINT active_record_1[0m
|
33785
|
+
[1m[35mSQL (0.8ms)[0m INSERT INTO "bloom_remit_responses" ("body", "txn_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["body", "{\"i\":\"am body\"}"], ["txn_id", 4], ["created_at", "2016-09-19 07:48:52.995769"], ["updated_at", "2016-09-19 07:48:52.995769"]]
|
33786
|
+
[1m[36m (0.5ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
33787
|
+
[1m[35m (0.5ms)[0m SELECT COUNT(*) FROM "bloom_remit_responses" WHERE "bloom_remit_responses"."txn_id" = $1 [["txn_id", 4]]
|
33788
|
+
[1m[36mBloomRemit::Response Load (0.6ms)[0m [1mSELECT "bloom_remit_responses".* FROM "bloom_remit_responses" WHERE "bloom_remit_responses"."txn_id" = $1 ORDER BY "bloom_remit_responses"."id" ASC LIMIT 1[0m [["txn_id", 4]]
|
33789
|
+
[1m[35m (0.4ms)[0m ROLLBACK
|
33790
|
+
[1m[36m (0.4ms)[0m [1mBEGIN[0m
|
33791
|
+
[1m[35m (1.2ms)[0m COMMIT
|
33792
|
+
[1m[36m (0.8ms)[0m [1mBEGIN[0m
|
33793
|
+
[1m[35m (0.6ms)[0m SAVEPOINT active_record_1
|
33794
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "payments" DEFAULT VALUES RETURNING "id"[0m
|
33795
|
+
[1m[35m (0.5ms)[0m RELEASE SAVEPOINT active_record_1
|
33796
|
+
[1m[36m (0.4ms)[0m [1mSAVEPOINT active_record_1[0m
|
33797
|
+
[1m[35mSQL (0.6ms)[0m INSERT INTO "users" DEFAULT VALUES RETURNING "id"
|
33798
|
+
[1m[36m (0.4ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
33799
|
+
[1m[35m (0.4ms)[0m SAVEPOINT active_record_1
|
33800
|
+
[1m[36mSQL (0.7ms)[0m [1mINSERT INTO "bloom_remit_txns" ("target_slug", "amount", "secret", "external_id", "owner_id", "owner_type", "sender_id", "sender_type") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["target_slug", "TARGET_SLUG"], ["amount", "2500.0"], ["secret", "58a5f2f0-5655-458e-96d7-3ef6d17e6c71"], ["external_id", "fc9f62802ddf2beebd00b2e2"], ["owner_id", "3"], ["owner_type", "Payment"], ["sender_id", "5"], ["sender_type", "User"]]
|
33801
|
+
[1m[35m (0.5ms)[0m RELEASE SAVEPOINT active_record_1
|
33802
|
+
[1m[36m (0.6ms)[0m [1mSAVEPOINT active_record_1[0m
|
33803
|
+
[1m[35mSQL (0.8ms)[0m UPDATE "bloom_remit_txns" SET "status" = $1 WHERE "bloom_remit_txns"."id" = $2 [["status", 7], ["id", 5]]
|
33804
|
+
[1m[36m (1.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
33805
|
+
[1m[35m (2.4ms)[0m SAVEPOINT active_record_1
|
33806
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "bloom_remit_responses" ("body", "txn_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["body", "{\"status\":\"500\",\"error\":\"Internal Server Error\"}"], ["txn_id", 5], ["created_at", "2016-09-19 07:48:53.028651"], ["updated_at", "2016-09-19 07:48:53.028651"]]
|
33807
|
+
[1m[35m (0.4ms)[0m RELEASE SAVEPOINT active_record_1
|
33808
|
+
[1m[36mBloomRemit::Txn Load (0.7ms)[0m [1mSELECT "bloom_remit_txns".* FROM "bloom_remit_txns" WHERE "bloom_remit_txns"."id" = $1 LIMIT 1[0m [["id", 5]]
|
33809
|
+
[1m[35m (0.5ms)[0m ROLLBACK
|
33810
|
+
[1m[36m (0.5ms)[0m [1mBEGIN[0m
|
33811
|
+
[1m[35m (0.5ms)[0m COMMIT
|
33812
|
+
[1m[36m (0.5ms)[0m [1mBEGIN[0m
|
33813
|
+
[1m[35m (0.8ms)[0m ROLLBACK
|
33814
|
+
[1m[36m (0.8ms)[0m [1mBEGIN[0m
|
33815
|
+
[1m[35m (0.5ms)[0m COMMIT
|
33816
|
+
[1m[36m (0.4ms)[0m [1mBEGIN[0m
|
33817
|
+
[1m[35m (0.5ms)[0m ROLLBACK
|
33818
|
+
[1m[36m (0.4ms)[0m [1mBEGIN[0m
|
33819
|
+
[1m[35m (0.4ms)[0m COMMIT
|
33820
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
33821
|
+
[1m[35m (0.6ms)[0m ROLLBACK
|
33822
|
+
[1m[36m (2.1ms)[0m [1mBEGIN[0m
|
33823
|
+
[1m[35m (0.7ms)[0m COMMIT
|
33824
|
+
[1m[36m (0.5ms)[0m [1mBEGIN[0m
|
33825
|
+
[1m[35m (0.6ms)[0m ROLLBACK
|
33826
|
+
[1m[36m (0.5ms)[0m [1mBEGIN[0m
|
33827
|
+
[1m[35m (0.3ms)[0m COMMIT
|
33828
|
+
[1m[36m (0.4ms)[0m [1mBEGIN[0m
|
33829
|
+
[1m[35m (0.6ms)[0m ROLLBACK
|