bloom_remit 0.1.0 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/controllers/bloom_remit/api/v1/txns_controller.rb +5 -0
- data/config/routes.rb +5 -1
- data/lib/bloom_remit/version.rb +1 -1
- data/spec/dummy/log/test.log +766 -0
- data/spec/requests/api/v1/txns_spec.rb +26 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e8fa16f494b5bdda6094edab188074c0191a2a59
|
4
|
+
data.tar.gz: 93b378a258e801a8ffea80dd1b4ae761f56f00e1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 264a254bef4cf585a6ab39169e280b7c6b3e1964551b380ac1dc47d1bf6e84f6f53d623224cf1457e4e869acfba531de5b604372496174dc3d11d92ca2973bcc
|
7
|
+
data.tar.gz: eb050f92ff6d3976e8ace7d635dbda302e618a4014fe064264eed279201ffa0fe3376b212037efea35920bd3af78b532d2a4d19cf0b0292a375141453947fcaa
|
data/config/routes.rb
CHANGED
data/lib/bloom_remit/version.rb
CHANGED
data/spec/dummy/log/test.log
CHANGED
@@ -27579,3 +27579,769 @@ Completed 204 No Content in 42ms (ActiveRecord: 1.3ms)
|
|
27579
27579
|
[1m[35m (0.2ms)[0m COMMIT
|
27580
27580
|
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
27581
27581
|
[1m[35m (0.2ms)[0m ROLLBACK
|
27582
|
+
[1m[36mActiveRecord::SchemaMigration Load (3.5ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
27583
|
+
[1m[35m (4.3ms)[0m ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "billers" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "bloom_remit_txns" DISABLE TRIGGER ALL;ALTER TABLE "bloom_remit_responses" DISABLE TRIGGER ALL;ALTER TABLE "payments" DISABLE TRIGGER ALL
|
27584
|
+
[1m[36m (2.9ms)[0m [1m SELECT schemaname || '.' || tablename
|
27585
|
+
FROM pg_tables
|
27586
|
+
WHERE
|
27587
|
+
tablename !~ '_prt_' AND
|
27588
|
+
tablename <> 'schema_migrations' AND
|
27589
|
+
schemaname = ANY (current_schemas(false))
|
27590
|
+
[0m
|
27591
|
+
[1m[35m (6.3ms)[0m select table_name from information_schema.views where table_schema = 'bloom_remit_rails_test'
|
27592
|
+
[1m[36m (38.9ms)[0m [1mTRUNCATE TABLE "public"."billers", "public"."users", "public"."bloom_remit_txns", "public"."bloom_remit_responses", "public"."payments" RESTART IDENTITY CASCADE;[0m
|
27593
|
+
[1m[35m (6.6ms)[0m ALTER TABLE "billers" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_txns" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_responses" ENABLE TRIGGER ALL;ALTER TABLE "payments" ENABLE TRIGGER ALL
|
27594
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
27595
|
+
[1m[35m (0.7ms)[0m COMMIT
|
27596
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
27597
|
+
[1m[35m (0.4ms)[0m SAVEPOINT active_record_1
|
27598
|
+
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO "users" DEFAULT VALUES RETURNING "id"[0m
|
27599
|
+
[1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1
|
27600
|
+
[1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m
|
27601
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "bloom_remit_txns" ("target_slug", "amount", "secret", "sender_id", "sender_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["target_slug", "TARGET_SLUG"], ["amount", "2500.0"], ["secret", "303da2a5-85c6-428d-9573-9a6efa8e5ab5"], ["sender_id", "1"], ["sender_type", "User"]]
|
27602
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
27603
|
+
Started POST "/bloom_remit/api/v1/txns/1" for 127.0.0.1 at 2016-08-08 04:17:45 +0000
|
27604
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
27605
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.5ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
27606
|
+
[1m[35m (0.5ms)[0m ALTER TABLE "billers" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "bloom_remit_txns" DISABLE TRIGGER ALL;ALTER TABLE "bloom_remit_responses" DISABLE TRIGGER ALL;ALTER TABLE "payments" DISABLE TRIGGER ALL
|
27607
|
+
[1m[36m (1.4ms)[0m [1m SELECT schemaname || '.' || tablename
|
27608
|
+
FROM pg_tables
|
27609
|
+
WHERE
|
27610
|
+
tablename !~ '_prt_' AND
|
27611
|
+
tablename <> 'schema_migrations' AND
|
27612
|
+
schemaname = ANY (current_schemas(false))
|
27613
|
+
[0m
|
27614
|
+
[1m[35m (1.2ms)[0m select table_name from information_schema.views where table_schema = 'bloom_remit_rails_test'
|
27615
|
+
[1m[36m (115.2ms)[0m [1mTRUNCATE TABLE "public"."billers", "public"."users", "public"."bloom_remit_txns", "public"."bloom_remit_responses", "public"."payments" RESTART IDENTITY CASCADE;[0m
|
27616
|
+
[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 "bloom_remit_txns" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_responses" ENABLE TRIGGER ALL;ALTER TABLE "payments" ENABLE TRIGGER ALL
|
27617
|
+
[1m[36m (0.7ms)[0m [1mBEGIN[0m
|
27618
|
+
[1m[35m (0.2ms)[0m COMMIT
|
27619
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
27620
|
+
[1m[35m (0.3ms)[0m SAVEPOINT active_record_1
|
27621
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "users" DEFAULT VALUES RETURNING "id"[0m
|
27622
|
+
[1m[35m (2.2ms)[0m RELEASE SAVEPOINT active_record_1
|
27623
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
27624
|
+
[1m[35mSQL (0.6ms)[0m INSERT INTO "bloom_remit_txns" ("target_slug", "amount", "secret", "sender_id", "sender_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["target_slug", "TARGET_SLUG"], ["amount", "2500.0"], ["secret", "9ba97c27-e15c-48e7-9467-a28db06e1a9e"], ["sender_id", "1"], ["sender_type", "User"]]
|
27625
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
27626
|
+
Started POST "/bloom_remit/api/v1/txns/1" for 127.0.0.1 at 2016-08-08 04:19:07 +0000
|
27627
|
+
Processing by BloomRemit::Api::V1::TxnsController#update as JSON
|
27628
|
+
Parameters: {"secret"=>"fake", "status"=>"doesn't matter", "id"=>"1", "txn"=>{"status"=>"doesn't matter", "secret"=>"fake"}}
|
27629
|
+
[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]]
|
27630
|
+
Rendered text template (0.0ms)
|
27631
|
+
Completed 404 Not Found in 1762ms (Views: 361.4ms | ActiveRecord: 0.4ms)
|
27632
|
+
Started POST "/bloom_remit/api/v1/txns/1" for 127.0.0.1 at 2016-08-08 04:19:10 +0000
|
27633
|
+
Processing by BloomRemit::Api::V1::TxnsController#update as JSON
|
27634
|
+
Parameters: {"secret"=>"9ba97c27-e15c-48e7-9467-a28db06e1a9e", "status"=>"paid", "id"=>"1", "txn"=>{"status"=>"paid", "secret"=>"9ba97c27-e15c-48e7-9467-a28db06e1a9e"}}
|
27635
|
+
[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", 1], ["secret", "9ba97c27-e15c-48e7-9467-a28db06e1a9e"]]
|
27636
|
+
[1m[35m (0.3ms)[0m SAVEPOINT active_record_1
|
27637
|
+
[1m[36mSQL (0.3ms)[0m [1mUPDATE "bloom_remit_txns" SET "status" = $1 WHERE "bloom_remit_txns"."id" = $2[0m [["status", 1], ["id", 1]]
|
27638
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
27639
|
+
Completed 500 Internal Server Error in 373ms (ActiveRecord: 1.3ms)
|
27640
|
+
[1m[36m (0.3ms)[0m [1mROLLBACK[0m
|
27641
|
+
[1m[36mActiveRecord::SchemaMigration Load (5.7ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
27642
|
+
[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 "bloom_remit_txns" DISABLE TRIGGER ALL;ALTER TABLE "bloom_remit_responses" DISABLE TRIGGER ALL;ALTER TABLE "payments" DISABLE TRIGGER ALL
|
27643
|
+
[1m[36m (1.5ms)[0m [1m SELECT schemaname || '.' || tablename
|
27644
|
+
FROM pg_tables
|
27645
|
+
WHERE
|
27646
|
+
tablename !~ '_prt_' AND
|
27647
|
+
tablename <> 'schema_migrations' AND
|
27648
|
+
schemaname = ANY (current_schemas(false))
|
27649
|
+
[0m
|
27650
|
+
[1m[35m (1.0ms)[0m select table_name from information_schema.views where table_schema = 'bloom_remit_rails_test'
|
27651
|
+
[1m[36m (23.4ms)[0m [1mTRUNCATE TABLE "public"."billers", "public"."users", "public"."bloom_remit_txns", "public"."bloom_remit_responses", "public"."payments" RESTART IDENTITY CASCADE;[0m
|
27652
|
+
[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 "bloom_remit_txns" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_responses" ENABLE TRIGGER ALL;ALTER TABLE "payments" ENABLE TRIGGER ALL
|
27653
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
27654
|
+
[1m[35m (0.1ms)[0m COMMIT
|
27655
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
27656
|
+
[1m[35m (4.3ms)[0m SAVEPOINT active_record_1
|
27657
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" DEFAULT VALUES RETURNING "id"[0m
|
27658
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
27659
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
27660
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "bloom_remit_txns" ("target_slug", "amount", "secret", "sender_id", "sender_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["target_slug", "TARGET_SLUG"], ["amount", "2500.0"], ["secret", "54d4c113-b82c-42cd-83b1-960c0be97d01"], ["sender_id", "1"], ["sender_type", "User"]]
|
27661
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
27662
|
+
Started POST "/bloom_remit/api/v1/txns/1" for 127.0.0.1 at 2016-08-08 04:21:17 +0000
|
27663
|
+
Processing by BloomRemit::Api::V1::TxnsController#update as JSON
|
27664
|
+
Parameters: {"secret"=>"fake", "status"=>"doesn't matter", "id"=>"1", "txn"=>{"status"=>"doesn't matter", "secret"=>"fake"}}
|
27665
|
+
[1m[35mBloomRemit::Txn Load (0.2ms)[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]]
|
27666
|
+
Rendered text template (0.0ms)
|
27667
|
+
Completed 404 Not Found in 1070ms (Views: 176.1ms | ActiveRecord: 0.2ms)
|
27668
|
+
Started POST "/bloom_remit/api/v1/txns/1" for 127.0.0.1 at 2016-08-08 04:21:19 +0000
|
27669
|
+
Processing by BloomRemit::Api::V1::TxnsController#update as JSON
|
27670
|
+
Parameters: {"secret"=>"54d4c113-b82c-42cd-83b1-960c0be97d01", "status"=>"paid", "id"=>"1", "txn"=>{"status"=>"paid", "secret"=>"54d4c113-b82c-42cd-83b1-960c0be97d01"}}
|
27671
|
+
[1m[36mBloomRemit::Txn Load (0.3ms)[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", "54d4c113-b82c-42cd-83b1-960c0be97d01"]]
|
27672
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
27673
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "bloom_remit_txns" SET "status" = $1 WHERE "bloom_remit_txns"."id" = $2[0m [["status", 1], ["id", 1]]
|
27674
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
27675
|
+
Completed 500 Internal Server Error in 226ms (ActiveRecord: 0.8ms)
|
27676
|
+
[1m[36m (0.7ms)[0m [1mROLLBACK[0m
|
27677
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.5ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
27678
|
+
[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 "bloom_remit_txns" DISABLE TRIGGER ALL;ALTER TABLE "bloom_remit_responses" DISABLE TRIGGER ALL;ALTER TABLE "payments" DISABLE TRIGGER ALL
|
27679
|
+
[1m[36m (1.5ms)[0m [1m SELECT schemaname || '.' || tablename
|
27680
|
+
FROM pg_tables
|
27681
|
+
WHERE
|
27682
|
+
tablename !~ '_prt_' AND
|
27683
|
+
tablename <> 'schema_migrations' AND
|
27684
|
+
schemaname = ANY (current_schemas(false))
|
27685
|
+
[0m
|
27686
|
+
[1m[35m (1.2ms)[0m select table_name from information_schema.views where table_schema = 'bloom_remit_rails_test'
|
27687
|
+
[1m[36m (22.3ms)[0m [1mTRUNCATE TABLE "public"."billers", "public"."users", "public"."bloom_remit_txns", "public"."bloom_remit_responses", "public"."payments" RESTART IDENTITY CASCADE;[0m
|
27688
|
+
[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 "bloom_remit_txns" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_responses" ENABLE TRIGGER ALL;ALTER TABLE "payments" ENABLE TRIGGER ALL
|
27689
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
27690
|
+
[1m[35m (0.2ms)[0m COMMIT
|
27691
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
27692
|
+
[1m[35m (10.8ms)[0m SAVEPOINT active_record_1
|
27693
|
+
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO "users" DEFAULT VALUES RETURNING "id"[0m
|
27694
|
+
[1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1
|
27695
|
+
[1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m
|
27696
|
+
[1m[35mSQL (0.7ms)[0m INSERT INTO "bloom_remit_txns" ("target_slug", "amount", "secret", "sender_id", "sender_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["target_slug", "TARGET_SLUG"], ["amount", "2500.0"], ["secret", "e1f00b06-51ad-4b47-9315-a13134b29552"], ["sender_id", "1"], ["sender_type", "User"]]
|
27697
|
+
[1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
27698
|
+
Started POST "/bloom_remit/api/v1/txns/1" for 127.0.0.1 at 2016-08-08 04:22:51 +0000
|
27699
|
+
Processing by BloomRemit::Api::V1::TxnsController#update as JSON
|
27700
|
+
Parameters: {"secret"=>"fake", "status"=>"doesn't matter", "id"=>"1", "txn"=>{"status"=>"doesn't matter", "secret"=>"fake"}}
|
27701
|
+
[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", nil]]
|
27702
|
+
Rendered text template (0.0ms)
|
27703
|
+
Completed 404 Not Found in 1353ms (Views: 72.2ms | ActiveRecord: 0.3ms)
|
27704
|
+
Started POST "/bloom_remit/api/v1/txns/1" for 127.0.0.1 at 2016-08-08 04:22:54 +0000
|
27705
|
+
Processing by BloomRemit::Api::V1::TxnsController#update as JSON
|
27706
|
+
Parameters: {"secret"=>"e1f00b06-51ad-4b47-9315-a13134b29552", "status"=>"paid", "id"=>"1", "txn"=>{"status"=>"paid", "secret"=>"e1f00b06-51ad-4b47-9315-a13134b29552"}}
|
27707
|
+
[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", 1], ["secret", "e1f00b06-51ad-4b47-9315-a13134b29552"]]
|
27708
|
+
[1m[35m (0.3ms)[0m SAVEPOINT active_record_1
|
27709
|
+
[1m[36mSQL (0.3ms)[0m [1mUPDATE "bloom_remit_txns" SET "status" = $1 WHERE "bloom_remit_txns"."id" = $2[0m [["status", 1], ["id", 1]]
|
27710
|
+
[1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1
|
27711
|
+
Completed 500 Internal Server Error in 413ms (ActiveRecord: 1.5ms)
|
27712
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
27713
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.7ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
27714
|
+
[1m[35m (0.7ms)[0m ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "billers" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "bloom_remit_txns" DISABLE TRIGGER ALL;ALTER TABLE "bloom_remit_responses" DISABLE TRIGGER ALL;ALTER TABLE "payments" DISABLE TRIGGER ALL
|
27715
|
+
[1m[36m (2.5ms)[0m [1m SELECT schemaname || '.' || tablename
|
27716
|
+
FROM pg_tables
|
27717
|
+
WHERE
|
27718
|
+
tablename !~ '_prt_' AND
|
27719
|
+
tablename <> 'schema_migrations' AND
|
27720
|
+
schemaname = ANY (current_schemas(false))
|
27721
|
+
[0m
|
27722
|
+
[1m[35m (1.2ms)[0m select table_name from information_schema.views where table_schema = 'bloom_remit_rails_test'
|
27723
|
+
[1m[36m (68.8ms)[0m [1mTRUNCATE TABLE "public"."billers", "public"."users", "public"."bloom_remit_txns", "public"."bloom_remit_responses", "public"."payments" RESTART IDENTITY CASCADE;[0m
|
27724
|
+
[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 "bloom_remit_txns" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_responses" ENABLE TRIGGER ALL;ALTER TABLE "payments" ENABLE TRIGGER ALL
|
27725
|
+
[1m[36m (7.9ms)[0m [1mBEGIN[0m
|
27726
|
+
[1m[35m (9.0ms)[0m COMMIT
|
27727
|
+
[1m[36m (1.1ms)[0m [1mBEGIN[0m
|
27728
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
27729
|
+
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO "users" DEFAULT VALUES RETURNING "id"[0m
|
27730
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
27731
|
+
[1m[36m (7.9ms)[0m [1mSAVEPOINT active_record_1[0m
|
27732
|
+
[1m[35mSQL (5.9ms)[0m INSERT INTO "bloom_remit_txns" ("target_slug", "amount", "secret", "sender_id", "sender_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["target_slug", "TARGET_SLUG"], ["amount", "2500.0"], ["secret", "c8caac0a-9901-4a85-b1de-b1e4e5f8f72a"], ["sender_id", "1"], ["sender_type", "User"]]
|
27733
|
+
[1m[36m (3.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
27734
|
+
Started POST "/bloom_remit/api/v1/txns/1" for 127.0.0.1 at 2016-08-08 04:33:28 +0000
|
27735
|
+
Processing by BloomRemit::Api::V1::TxnsController#update as JSON
|
27736
|
+
Parameters: {"secret"=>"fake", "status"=>"doesn't matter", "id"=>"1", "txn"=>{"status"=>"doesn't matter", "secret"=>"fake"}}
|
27737
|
+
[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]]
|
27738
|
+
Rendered text template (0.0ms)
|
27739
|
+
Completed 404 Not Found in 1229ms (Views: 122.5ms | ActiveRecord: 1.1ms)
|
27740
|
+
Started POST "/bloom_remit/api/v1/txns/1" for 127.0.0.1 at 2016-08-08 04:33:30 +0000
|
27741
|
+
Processing by BloomRemit::Api::V1::TxnsController#update as JSON
|
27742
|
+
Parameters: {"secret"=>"c8caac0a-9901-4a85-b1de-b1e4e5f8f72a", "status"=>"paid", "id"=>"1", "txn"=>{"status"=>"paid", "secret"=>"c8caac0a-9901-4a85-b1de-b1e4e5f8f72a"}}
|
27743
|
+
[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", "c8caac0a-9901-4a85-b1de-b1e4e5f8f72a"]]
|
27744
|
+
[1m[35m (1.1ms)[0m SAVEPOINT active_record_1
|
27745
|
+
[1m[36mSQL (0.5ms)[0m [1mUPDATE "bloom_remit_txns" SET "status" = $1 WHERE "bloom_remit_txns"."id" = $2[0m [["status", 1], ["id", 1]]
|
27746
|
+
[1m[35m (0.6ms)[0m RELEASE SAVEPOINT active_record_1
|
27747
|
+
Completed 500 Internal Server Error in 185ms (ActiveRecord: 3.1ms)
|
27748
|
+
[1m[36m (0.7ms)[0m [1mROLLBACK[0m
|
27749
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.7ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
27750
|
+
[1m[35m (2.6ms)[0m ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "billers" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "bloom_remit_txns" DISABLE TRIGGER ALL;ALTER TABLE "bloom_remit_responses" DISABLE TRIGGER ALL;ALTER TABLE "payments" DISABLE TRIGGER ALL
|
27751
|
+
[1m[36m (5.8ms)[0m [1m SELECT schemaname || '.' || tablename
|
27752
|
+
FROM pg_tables
|
27753
|
+
WHERE
|
27754
|
+
tablename !~ '_prt_' AND
|
27755
|
+
tablename <> 'schema_migrations' AND
|
27756
|
+
schemaname = ANY (current_schemas(false))
|
27757
|
+
[0m
|
27758
|
+
[1m[35m (3.1ms)[0m select table_name from information_schema.views where table_schema = 'bloom_remit_rails_test'
|
27759
|
+
[1m[36m (51.1ms)[0m [1mTRUNCATE TABLE "public"."billers", "public"."users", "public"."bloom_remit_txns", "public"."bloom_remit_responses", "public"."payments" RESTART IDENTITY CASCADE;[0m
|
27760
|
+
[1m[35m (0.7ms)[0m ALTER TABLE "billers" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_txns" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_responses" ENABLE TRIGGER ALL;ALTER TABLE "payments" ENABLE TRIGGER ALL
|
27761
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
27762
|
+
[1m[35m (0.3ms)[0m COMMIT
|
27763
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
27764
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
27765
|
+
[1m[36mSQL (6.8ms)[0m [1mINSERT INTO "users" DEFAULT VALUES RETURNING "id"[0m
|
27766
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
27767
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
27768
|
+
[1m[35mSQL (0.7ms)[0m INSERT INTO "bloom_remit_txns" ("target_slug", "amount", "secret", "sender_id", "sender_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["target_slug", "TARGET_SLUG"], ["amount", "2500.0"], ["secret", "2765d4bc-5ec9-45a0-9058-ced942c01b34"], ["sender_id", "1"], ["sender_type", "User"]]
|
27769
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
27770
|
+
Started POST "/bloom_remit/api/v1/txns/1" for 127.0.0.1 at 2016-08-08 04:36:26 +0000
|
27771
|
+
[1m[35m (0.4ms)[0m ROLLBACK
|
27772
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.6ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
27773
|
+
[1m[35m (0.6ms)[0m ALTER TABLE "billers" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "bloom_remit_txns" DISABLE TRIGGER ALL;ALTER TABLE "bloom_remit_responses" DISABLE TRIGGER ALL;ALTER TABLE "payments" DISABLE TRIGGER ALL
|
27774
|
+
[1m[36m (1.4ms)[0m [1m SELECT schemaname || '.' || tablename
|
27775
|
+
FROM pg_tables
|
27776
|
+
WHERE
|
27777
|
+
tablename !~ '_prt_' AND
|
27778
|
+
tablename <> 'schema_migrations' AND
|
27779
|
+
schemaname = ANY (current_schemas(false))
|
27780
|
+
[0m
|
27781
|
+
[1m[35m (1.2ms)[0m select table_name from information_schema.views where table_schema = 'bloom_remit_rails_test'
|
27782
|
+
[1m[36m (23.6ms)[0m [1mTRUNCATE TABLE "public"."billers", "public"."users", "public"."bloom_remit_txns", "public"."bloom_remit_responses", "public"."payments" RESTART IDENTITY CASCADE;[0m
|
27783
|
+
[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 "bloom_remit_txns" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_responses" ENABLE TRIGGER ALL;ALTER TABLE "payments" ENABLE TRIGGER ALL
|
27784
|
+
[1m[36m (0.4ms)[0m [1mBEGIN[0m
|
27785
|
+
[1m[35m (0.1ms)[0m COMMIT
|
27786
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
27787
|
+
[1m[35m (11.4ms)[0m SAVEPOINT active_record_1
|
27788
|
+
[1m[36mSQL (0.7ms)[0m [1mINSERT INTO "users" DEFAULT VALUES RETURNING "id"[0m
|
27789
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
27790
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
27791
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "bloom_remit_txns" ("target_slug", "amount", "secret", "sender_id", "sender_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["target_slug", "TARGET_SLUG"], ["amount", "2500.0"], ["secret", "dbfc0c33-8a7b-4373-a26b-a2566ff363c8"], ["sender_id", "1"], ["sender_type", "User"]]
|
27792
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
27793
|
+
Started POST "/bloom_remit/api/v1/txns/1" for 127.0.0.1 at 2016-08-08 04:41:06 +0000
|
27794
|
+
Processing by BloomRemit::Api::V1::TxnsController#update as JSON
|
27795
|
+
Parameters: {"secret"=>"fake", "status"=>"doesn't matter", "id"=>"1", "txn"=>{"status"=>"doesn't matter", "secret"=>"fake"}}
|
27796
|
+
[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", nil]]
|
27797
|
+
Rendered text template (0.0ms)
|
27798
|
+
Completed 404 Not Found in 1938ms (Views: 401.1ms | ActiveRecord: 0.3ms)
|
27799
|
+
Started POST "/bloom_remit/api/v1/txns/1" for 127.0.0.1 at 2016-08-08 04:41:08 +0000
|
27800
|
+
Processing by BloomRemit::Api::V1::TxnsController#update as JSON
|
27801
|
+
Parameters: {"secret"=>"dbfc0c33-8a7b-4373-a26b-a2566ff363c8", "status"=>"paid", "id"=>"1", "txn"=>{"status"=>"paid", "secret"=>"dbfc0c33-8a7b-4373-a26b-a2566ff363c8"}}
|
27802
|
+
[1m[36mBloomRemit::Txn Load (0.3ms)[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", "dbfc0c33-8a7b-4373-a26b-a2566ff363c8"]]
|
27803
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
27804
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "bloom_remit_txns" SET "status" = $1 WHERE "bloom_remit_txns"."id" = $2[0m [["status", 1], ["id", 1]]
|
27805
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
27806
|
+
Completed 500 Internal Server Error in 378ms (ActiveRecord: 0.7ms)
|
27807
|
+
[1m[36m (0.5ms)[0m [1mROLLBACK[0m
|
27808
|
+
[1m[35m (0.1ms)[0m BEGIN
|
27809
|
+
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
|
27810
|
+
[1m[35m (0.1ms)[0m BEGIN
|
27811
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
27812
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "users" DEFAULT VALUES RETURNING "id"
|
27813
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
27814
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
27815
|
+
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO "bloom_remit_txns" ("target_slug", "amount", "secret", "sender_id", "sender_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["target_slug", "TARGET_SLUG"], ["amount", "2500.0"], ["secret", "65c40567-5a94-4736-806d-7e12fedb12be"], ["sender_id", "2"], ["sender_type", "User"]]
|
27816
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
27817
|
+
Started PATCH "/bloom_remit/api/v1/txns/2" for 127.0.0.1 at 2016-08-08 04:41:09 +0000
|
27818
|
+
Processing by BloomRemit::Api::V1::TxnsController#update as JSON
|
27819
|
+
Parameters: {"secret"=>"fake", "status"=>"doesn't matter", "id"=>"2", "txn"=>{"status"=>"doesn't matter", "secret"=>"fake"}}
|
27820
|
+
[1m[36mBloomRemit::Txn Load (0.2ms)[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", nil]]
|
27821
|
+
Rendered text template (0.0ms)
|
27822
|
+
Completed 404 Not Found in 1ms (Views: 0.4ms | ActiveRecord: 0.2ms)
|
27823
|
+
Started PATCH "/bloom_remit/api/v1/txns/2" for 127.0.0.1 at 2016-08-08 04:41:09 +0000
|
27824
|
+
Processing by BloomRemit::Api::V1::TxnsController#update as JSON
|
27825
|
+
Parameters: {"secret"=>"65c40567-5a94-4736-806d-7e12fedb12be", "status"=>"paid", "id"=>"2", "txn"=>{"status"=>"paid", "secret"=>"65c40567-5a94-4736-806d-7e12fedb12be"}}
|
27826
|
+
[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", "65c40567-5a94-4736-806d-7e12fedb12be"]]
|
27827
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
27828
|
+
[1m[35mSQL (0.4ms)[0m UPDATE "bloom_remit_txns" SET "status" = $1 WHERE "bloom_remit_txns"."id" = $2 [["status", 1], ["id", 2]]
|
27829
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
27830
|
+
Completed 204 No Content in 8ms (ActiveRecord: 1.1ms)
|
27831
|
+
[1m[35mBloomRemit::Txn Load (0.4ms)[0m SELECT "bloom_remit_txns".* FROM "bloom_remit_txns" WHERE "bloom_remit_txns"."id" = $1 LIMIT 1 [["id", 2]]
|
27832
|
+
[1m[36m (0.3ms)[0m [1mROLLBACK[0m
|
27833
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.4ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
27834
|
+
[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 "bloom_remit_txns" DISABLE TRIGGER ALL;ALTER TABLE "bloom_remit_responses" DISABLE TRIGGER ALL;ALTER TABLE "payments" DISABLE TRIGGER ALL
|
27835
|
+
[1m[36m (1.2ms)[0m [1m SELECT schemaname || '.' || tablename
|
27836
|
+
FROM pg_tables
|
27837
|
+
WHERE
|
27838
|
+
tablename !~ '_prt_' AND
|
27839
|
+
tablename <> 'schema_migrations' AND
|
27840
|
+
schemaname = ANY (current_schemas(false))
|
27841
|
+
[0m
|
27842
|
+
[1m[35m (1.1ms)[0m select table_name from information_schema.views where table_schema = 'bloom_remit_rails_test'
|
27843
|
+
[1m[36m (16.9ms)[0m [1mTRUNCATE TABLE "public"."billers", "public"."users", "public"."bloom_remit_txns", "public"."bloom_remit_responses", "public"."payments" RESTART IDENTITY CASCADE;[0m
|
27844
|
+
[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 "bloom_remit_txns" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_responses" ENABLE TRIGGER ALL;ALTER TABLE "payments" ENABLE TRIGGER ALL
|
27845
|
+
[1m[36m (0.5ms)[0m [1mBEGIN[0m
|
27846
|
+
[1m[35m (0.1ms)[0m COMMIT
|
27847
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
27848
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
27849
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "users" DEFAULT VALUES RETURNING "id"[0m
|
27850
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
27851
|
+
[1m[36m (0.4ms)[0m [1mSAVEPOINT active_record_1[0m
|
27852
|
+
[1m[35mSQL (1.9ms)[0m INSERT INTO "bloom_remit_txns" ("target_slug", "amount", "secret", "sender_id", "sender_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["target_slug", "TARGET_SLUG"], ["amount", "2500.0"], ["secret", "f6bc2bd4-a823-4525-98b9-154ca9aa62d9"], ["sender_id", "1"], ["sender_type", "User"]]
|
27853
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
27854
|
+
Started POST "/bloom_remit/api/v1/txns/1" for 127.0.0.1 at 2016-08-08 04:43:26 +0000
|
27855
|
+
Processing by BloomRemit::Api::V1::TxnsController#update as JSON
|
27856
|
+
Parameters: {"secret"=>"fake", "status"=>"doesn't matter", "id"=>"1", "txn"=>{"status"=>"doesn't matter", "secret"=>"fake"}}
|
27857
|
+
[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]]
|
27858
|
+
Rendered text template (0.0ms)
|
27859
|
+
Completed 404 Not Found in 1034ms (Views: 299.7ms | ActiveRecord: 0.4ms)
|
27860
|
+
Started POST "/bloom_remit/api/v1/txns/1" for 127.0.0.1 at 2016-08-08 04:43:27 +0000
|
27861
|
+
Processing by BloomRemit::Api::V1::TxnsController#update as JSON
|
27862
|
+
Parameters: {"secret"=>"f6bc2bd4-a823-4525-98b9-154ca9aa62d9", "status"=>"paid", "id"=>"1", "txn"=>{"status"=>"paid", "secret"=>"f6bc2bd4-a823-4525-98b9-154ca9aa62d9"}}
|
27863
|
+
[1m[36mBloomRemit::Txn Load (4.8ms)[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", "f6bc2bd4-a823-4525-98b9-154ca9aa62d9"]]
|
27864
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
27865
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "bloom_remit_txns" SET "status" = $1 WHERE "bloom_remit_txns"."id" = $2[0m [["status", 1], ["id", 1]]
|
27866
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
27867
|
+
Completed 500 Internal Server Error in 572ms (ActiveRecord: 5.2ms)
|
27868
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
27869
|
+
[1m[35m (0.1ms)[0m BEGIN
|
27870
|
+
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
|
27871
|
+
[1m[35m (0.1ms)[0m BEGIN
|
27872
|
+
[1m[36m (2.6ms)[0m [1mSAVEPOINT active_record_1[0m
|
27873
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "users" DEFAULT VALUES RETURNING "id"
|
27874
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
27875
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
27876
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "bloom_remit_txns" ("target_slug", "amount", "secret", "sender_id", "sender_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["target_slug", "TARGET_SLUG"], ["amount", "2500.0"], ["secret", "5b6727c0-d417-484b-bf56-8e3576c195d2"], ["sender_id", "2"], ["sender_type", "User"]]
|
27877
|
+
[1m[35m (6.9ms)[0m RELEASE SAVEPOINT active_record_1
|
27878
|
+
Started PATCH "/bloom_remit/api/v1/txns/2" for 127.0.0.1 at 2016-08-08 04:43:28 +0000
|
27879
|
+
Processing by BloomRemit::Api::V1::TxnsController#update as JSON
|
27880
|
+
Parameters: {"secret"=>"fake", "status"=>"doesn't matter", "id"=>"2", "txn"=>{"status"=>"doesn't matter", "secret"=>"fake"}}
|
27881
|
+
[1m[36mBloomRemit::Txn Load (0.3ms)[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", nil]]
|
27882
|
+
Rendered text template (0.0ms)
|
27883
|
+
Completed 404 Not Found in 3ms (Views: 0.5ms | ActiveRecord: 0.3ms)
|
27884
|
+
Started PATCH "/bloom_remit/api/v1/txns/2" for 127.0.0.1 at 2016-08-08 04:43:28 +0000
|
27885
|
+
Processing by BloomRemit::Api::V1::TxnsController#update as JSON
|
27886
|
+
Parameters: {"secret"=>"5b6727c0-d417-484b-bf56-8e3576c195d2", "status"=>"paid", "id"=>"2", "txn"=>{"status"=>"paid", "secret"=>"5b6727c0-d417-484b-bf56-8e3576c195d2"}}
|
27887
|
+
[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", "5b6727c0-d417-484b-bf56-8e3576c195d2"]]
|
27888
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
27889
|
+
[1m[35mSQL (0.2ms)[0m UPDATE "bloom_remit_txns" SET "status" = $1 WHERE "bloom_remit_txns"."id" = $2 [["status", 1], ["id", 2]]
|
27890
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
27891
|
+
Completed 204 No Content in 6ms (ActiveRecord: 0.8ms)
|
27892
|
+
[1m[35mBloomRemit::Txn Load (0.2ms)[0m SELECT "bloom_remit_txns".* FROM "bloom_remit_txns" WHERE "bloom_remit_txns"."id" = $1 LIMIT 1 [["id", 2]]
|
27893
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
27894
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.5ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
27895
|
+
[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 "bloom_remit_txns" DISABLE TRIGGER ALL;ALTER TABLE "bloom_remit_responses" DISABLE TRIGGER ALL;ALTER TABLE "payments" DISABLE TRIGGER ALL
|
27896
|
+
[1m[36m (1.3ms)[0m [1m SELECT schemaname || '.' || tablename
|
27897
|
+
FROM pg_tables
|
27898
|
+
WHERE
|
27899
|
+
tablename !~ '_prt_' AND
|
27900
|
+
tablename <> 'schema_migrations' AND
|
27901
|
+
schemaname = ANY (current_schemas(false))
|
27902
|
+
[0m
|
27903
|
+
[1m[35m (1.2ms)[0m select table_name from information_schema.views where table_schema = 'bloom_remit_rails_test'
|
27904
|
+
[1m[36m (12.9ms)[0m [1mTRUNCATE TABLE "public"."billers", "public"."users", "public"."bloom_remit_txns", "public"."bloom_remit_responses", "public"."payments" RESTART IDENTITY CASCADE;[0m
|
27905
|
+
[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 "bloom_remit_txns" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_responses" ENABLE TRIGGER ALL;ALTER TABLE "payments" ENABLE TRIGGER ALL
|
27906
|
+
[1m[36m (0.9ms)[0m [1mBEGIN[0m
|
27907
|
+
[1m[35m (0.3ms)[0m COMMIT
|
27908
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
27909
|
+
[1m[35m (0.4ms)[0m SAVEPOINT active_record_1
|
27910
|
+
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO "users" DEFAULT VALUES RETURNING "id"[0m
|
27911
|
+
[1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1
|
27912
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
27913
|
+
[1m[35mSQL (0.8ms)[0m INSERT INTO "bloom_remit_txns" ("target_slug", "amount", "secret", "sender_id", "sender_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["target_slug", "TARGET_SLUG"], ["amount", "2500.0"], ["secret", "fcb30454-95bd-40de-868d-61142f0014a6"], ["sender_id", "1"], ["sender_type", "User"]]
|
27914
|
+
[1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
27915
|
+
Started POST "/bloom_remit/api/v1/txns/1" for 127.0.0.1 at 2016-08-08 04:45:10 +0000
|
27916
|
+
[1m[35m (6.4ms)[0m ROLLBACK
|
27917
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
27918
|
+
[1m[35m (0.3ms)[0m COMMIT
|
27919
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
27920
|
+
[1m[35m (0.3ms)[0m SAVEPOINT active_record_1
|
27921
|
+
[1m[36mSQL (7.0ms)[0m [1mINSERT INTO "users" DEFAULT VALUES RETURNING "id"[0m
|
27922
|
+
[1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1
|
27923
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
27924
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "bloom_remit_txns" ("target_slug", "amount", "secret", "sender_id", "sender_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["target_slug", "TARGET_SLUG"], ["amount", "2500.0"], ["secret", "571b18f9-506b-40dd-b562-c20c5f088e50"], ["sender_id", "2"], ["sender_type", "User"]]
|
27925
|
+
[1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
27926
|
+
Started PATCH "/bloom_remit/api/v1/txns/2" for 127.0.0.1 at 2016-08-08 04:45:10 +0000
|
27927
|
+
Processing by BloomRemit::Api::V1::TxnsController#update as JSON
|
27928
|
+
Parameters: {"secret"=>"fake", "status"=>"doesn't matter", "id"=>"2", "txn"=>{"status"=>"doesn't matter", "secret"=>"fake"}}
|
27929
|
+
[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]]
|
27930
|
+
Rendered text template (0.0ms)
|
27931
|
+
Completed 404 Not Found in 1543ms (Views: 341.7ms | ActiveRecord: 0.4ms)
|
27932
|
+
Started PATCH "/bloom_remit/api/v1/txns/2" for 127.0.0.1 at 2016-08-08 04:45:13 +0000
|
27933
|
+
Processing by BloomRemit::Api::V1::TxnsController#update as JSON
|
27934
|
+
Parameters: {"secret"=>"571b18f9-506b-40dd-b562-c20c5f088e50", "status"=>"paid", "id"=>"2", "txn"=>{"status"=>"paid", "secret"=>"571b18f9-506b-40dd-b562-c20c5f088e50"}}
|
27935
|
+
[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", "571b18f9-506b-40dd-b562-c20c5f088e50"]]
|
27936
|
+
[1m[35m (0.3ms)[0m SAVEPOINT active_record_1
|
27937
|
+
[1m[36mSQL (0.4ms)[0m [1mUPDATE "bloom_remit_txns" SET "status" = $1 WHERE "bloom_remit_txns"."id" = $2[0m [["status", 1], ["id", 2]]
|
27938
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
27939
|
+
Completed 204 No Content in 492ms (ActiveRecord: 1.5ms)
|
27940
|
+
[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", 2]]
|
27941
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
27942
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.5ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
27943
|
+
[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 "bloom_remit_txns" DISABLE TRIGGER ALL;ALTER TABLE "bloom_remit_responses" DISABLE TRIGGER ALL;ALTER TABLE "payments" DISABLE TRIGGER ALL
|
27944
|
+
[1m[36m (1.2ms)[0m [1m SELECT schemaname || '.' || tablename
|
27945
|
+
FROM pg_tables
|
27946
|
+
WHERE
|
27947
|
+
tablename !~ '_prt_' AND
|
27948
|
+
tablename <> 'schema_migrations' AND
|
27949
|
+
schemaname = ANY (current_schemas(false))
|
27950
|
+
[0m
|
27951
|
+
[1m[35m (1.1ms)[0m select table_name from information_schema.views where table_schema = 'bloom_remit_rails_test'
|
27952
|
+
[1m[36m (27.0ms)[0m [1mTRUNCATE TABLE "public"."billers", "public"."users", "public"."bloom_remit_txns", "public"."bloom_remit_responses", "public"."payments" RESTART IDENTITY CASCADE;[0m
|
27953
|
+
[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 "bloom_remit_txns" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_responses" ENABLE TRIGGER ALL;ALTER TABLE "payments" ENABLE TRIGGER ALL
|
27954
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
27955
|
+
[1m[35m (0.3ms)[0m COMMIT
|
27956
|
+
[1m[36m (0.4ms)[0m [1mBEGIN[0m
|
27957
|
+
[1m[35m (0.5ms)[0m SAVEPOINT active_record_1
|
27958
|
+
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO "users" DEFAULT VALUES RETURNING "id"[0m
|
27959
|
+
[1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1
|
27960
|
+
[1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m
|
27961
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "bloom_remit_txns" ("target_slug", "amount", "secret", "sender_id", "sender_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["target_slug", "TARGET_SLUG"], ["amount", "2500.0"], ["secret", "3dbfbdf6-2b98-4df8-accf-409d1eba4647"], ["sender_id", "1"], ["sender_type", "User"]]
|
27962
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
27963
|
+
Started POST "/bloom_remit/api/v1/txns" for 127.0.0.1 at 2016-08-08 04:46:44 +0000
|
27964
|
+
Processing by BloomRemit::Api::V1::TxnsController#create as JSON
|
27965
|
+
Parameters: {"id"=>1, "secret"=>"fake", "status"=>"doesn't matter", "txn"=>{"id"=>1, "status"=>"doesn't matter", "secret"=>"fake"}}
|
27966
|
+
[1m[35mBloomRemit::Txn Load (3.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]]
|
27967
|
+
Rendered text template (0.0ms)
|
27968
|
+
Completed 404 Not Found in 11929ms (Views: 291.6ms | ActiveRecord: 3.8ms)
|
27969
|
+
Started POST "/bloom_remit/api/v1/txns" for 127.0.0.1 at 2016-08-08 04:46:56 +0000
|
27970
|
+
Processing by BloomRemit::Api::V1::TxnsController#create as JSON
|
27971
|
+
Parameters: {"id"=>1, "secret"=>"3dbfbdf6-2b98-4df8-accf-409d1eba4647", "status"=>"paid", "txn"=>{"id"=>1, "status"=>"paid", "secret"=>"3dbfbdf6-2b98-4df8-accf-409d1eba4647"}}
|
27972
|
+
[1m[36mBloomRemit::Txn Load (0.8ms)[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", "3dbfbdf6-2b98-4df8-accf-409d1eba4647"]]
|
27973
|
+
[1m[35m (0.3ms)[0m SAVEPOINT active_record_1
|
27974
|
+
[1m[36mSQL (0.3ms)[0m [1mUPDATE "bloom_remit_txns" SET "status" = $1 WHERE "bloom_remit_txns"."id" = $2[0m [["status", 1], ["id", 1]]
|
27975
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
27976
|
+
Completed 200 OK in 17039ms (Views: 0.4ms | ActiveRecord: 1.6ms)
|
27977
|
+
[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", 1]]
|
27978
|
+
[1m[35m (0.8ms)[0m ROLLBACK
|
27979
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
27980
|
+
[1m[35m (0.2ms)[0m COMMIT
|
27981
|
+
[1m[36m (0.5ms)[0m [1mBEGIN[0m
|
27982
|
+
[1m[35m (7.4ms)[0m SAVEPOINT active_record_1
|
27983
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "users" DEFAULT VALUES RETURNING "id"[0m
|
27984
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
27985
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
27986
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "bloom_remit_txns" ("target_slug", "amount", "secret", "sender_id", "sender_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["target_slug", "TARGET_SLUG"], ["amount", "2500.0"], ["secret", "0635f599-7704-42b8-ae74-92b0284202c0"], ["sender_id", "2"], ["sender_type", "User"]]
|
27987
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
27988
|
+
Started PATCH "/bloom_remit/api/v1/txns/2" for 127.0.0.1 at 2016-08-08 04:47:13 +0000
|
27989
|
+
Processing by BloomRemit::Api::V1::TxnsController#update as JSON
|
27990
|
+
Parameters: {"secret"=>"fake", "status"=>"doesn't matter", "id"=>"2", "txn"=>{"status"=>"doesn't matter", "secret"=>"fake"}}
|
27991
|
+
[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]]
|
27992
|
+
Rendered text template (0.0ms)
|
27993
|
+
Completed 404 Not Found in 2ms (Views: 0.4ms | ActiveRecord: 0.4ms)
|
27994
|
+
Started PATCH "/bloom_remit/api/v1/txns/2" for 127.0.0.1 at 2016-08-08 04:47:13 +0000
|
27995
|
+
Processing by BloomRemit::Api::V1::TxnsController#update as JSON
|
27996
|
+
Parameters: {"secret"=>"0635f599-7704-42b8-ae74-92b0284202c0", "status"=>"paid", "id"=>"2", "txn"=>{"status"=>"paid", "secret"=>"0635f599-7704-42b8-ae74-92b0284202c0"}}
|
27997
|
+
[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", "0635f599-7704-42b8-ae74-92b0284202c0"]]
|
27998
|
+
[1m[35m (0.3ms)[0m SAVEPOINT active_record_1
|
27999
|
+
[1m[36mSQL (0.4ms)[0m [1mUPDATE "bloom_remit_txns" SET "status" = $1 WHERE "bloom_remit_txns"."id" = $2[0m [["status", 1], ["id", 2]]
|
28000
|
+
[1m[35m (8.3ms)[0m RELEASE SAVEPOINT active_record_1
|
28001
|
+
Completed 204 No Content in 286ms (ActiveRecord: 9.5ms)
|
28002
|
+
[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]]
|
28003
|
+
[1m[35m (0.5ms)[0m ROLLBACK
|
28004
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.5ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
28005
|
+
[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 "bloom_remit_txns" DISABLE TRIGGER ALL;ALTER TABLE "bloom_remit_responses" DISABLE TRIGGER ALL;ALTER TABLE "payments" DISABLE TRIGGER ALL
|
28006
|
+
[1m[36m (1.4ms)[0m [1m SELECT schemaname || '.' || tablename
|
28007
|
+
FROM pg_tables
|
28008
|
+
WHERE
|
28009
|
+
tablename !~ '_prt_' AND
|
28010
|
+
tablename <> 'schema_migrations' AND
|
28011
|
+
schemaname = ANY (current_schemas(false))
|
28012
|
+
[0m
|
28013
|
+
[1m[35m (1.2ms)[0m select table_name from information_schema.views where table_schema = 'bloom_remit_rails_test'
|
28014
|
+
[1m[36m (14.9ms)[0m [1mTRUNCATE TABLE "public"."billers", "public"."users", "public"."bloom_remit_txns", "public"."bloom_remit_responses", "public"."payments" RESTART IDENTITY CASCADE;[0m
|
28015
|
+
[1m[35m (0.4ms)[0m ALTER TABLE "billers" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_txns" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_responses" ENABLE TRIGGER ALL;ALTER TABLE "payments" ENABLE TRIGGER ALL
|
28016
|
+
[1m[36m (0.5ms)[0m [1mBEGIN[0m
|
28017
|
+
[1m[35m (0.2ms)[0m COMMIT
|
28018
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
28019
|
+
[1m[35m (5.6ms)[0m SAVEPOINT active_record_1
|
28020
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "users" DEFAULT VALUES RETURNING "id"[0m
|
28021
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
28022
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
28023
|
+
[1m[35mSQL (0.7ms)[0m INSERT INTO "bloom_remit_txns" ("target_slug", "amount", "secret", "sender_id", "sender_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["target_slug", "TARGET_SLUG"], ["amount", "2500.0"], ["secret", "acb0e8d6-ea12-46dd-aeed-769025fc0cb9"], ["sender_id", "1"], ["sender_type", "User"]]
|
28024
|
+
[1m[36m (0.4ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
28025
|
+
Started POST "/bloom_remit/api/v1/txns/1" for 127.0.0.1 at 2016-08-08 04:54:38 +0000
|
28026
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
28027
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
28028
|
+
[1m[35m (0.2ms)[0m COMMIT
|
28029
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
28030
|
+
[1m[35m (1.0ms)[0m SAVEPOINT active_record_1
|
28031
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" DEFAULT VALUES RETURNING "id"[0m
|
28032
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
28033
|
+
[1m[36m (0.8ms)[0m [1mSAVEPOINT active_record_1[0m
|
28034
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "bloom_remit_txns" ("target_slug", "amount", "secret", "sender_id", "sender_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["target_slug", "TARGET_SLUG"], ["amount", "2500.0"], ["secret", "bc703a9d-1837-4df1-b988-db129f1c28d8"], ["sender_id", "2"], ["sender_type", "User"]]
|
28035
|
+
[1m[36m (0.4ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
28036
|
+
Started PATCH "/bloom_remit/api/v1/txns/2" for 127.0.0.1 at 2016-08-08 04:54:39 +0000
|
28037
|
+
Processing by BloomRemit::Api::V1::TxnsController#update as JSON
|
28038
|
+
Parameters: {"secret"=>"fake", "status"=>"doesn't matter", "id"=>"2", "txn"=>{"status"=>"doesn't matter", "secret"=>"fake"}}
|
28039
|
+
[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]]
|
28040
|
+
Rendered text template (0.0ms)
|
28041
|
+
Completed 404 Not Found in 1597ms (Views: 223.0ms | ActiveRecord: 0.3ms)
|
28042
|
+
Started PATCH "/bloom_remit/api/v1/txns/2" for 127.0.0.1 at 2016-08-08 04:54:42 +0000
|
28043
|
+
Processing by BloomRemit::Api::V1::TxnsController#update as JSON
|
28044
|
+
Parameters: {"secret"=>"bc703a9d-1837-4df1-b988-db129f1c28d8", "status"=>"paid", "id"=>"2", "txn"=>{"status"=>"paid", "secret"=>"bc703a9d-1837-4df1-b988-db129f1c28d8"}}
|
28045
|
+
[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", "bc703a9d-1837-4df1-b988-db129f1c28d8"]]
|
28046
|
+
[1m[35m (0.4ms)[0m SAVEPOINT active_record_1
|
28047
|
+
[1m[36mSQL (0.3ms)[0m [1mUPDATE "bloom_remit_txns" SET "status" = $1 WHERE "bloom_remit_txns"."id" = $2[0m [["status", 1], ["id", 2]]
|
28048
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
28049
|
+
Completed 204 No Content in 301ms (ActiveRecord: 1.3ms)
|
28050
|
+
[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", 2]]
|
28051
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
28052
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.5ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
28053
|
+
[1m[35m (0.6ms)[0m ALTER TABLE "billers" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "bloom_remit_txns" DISABLE TRIGGER ALL;ALTER TABLE "bloom_remit_responses" DISABLE TRIGGER ALL;ALTER TABLE "payments" DISABLE TRIGGER ALL
|
28054
|
+
[1m[36m (1.3ms)[0m [1m SELECT schemaname || '.' || tablename
|
28055
|
+
FROM pg_tables
|
28056
|
+
WHERE
|
28057
|
+
tablename !~ '_prt_' AND
|
28058
|
+
tablename <> 'schema_migrations' AND
|
28059
|
+
schemaname = ANY (current_schemas(false))
|
28060
|
+
[0m
|
28061
|
+
[1m[35m (1.4ms)[0m select table_name from information_schema.views where table_schema = 'bloom_remit_rails_test'
|
28062
|
+
[1m[36m (13.3ms)[0m [1mTRUNCATE TABLE "public"."billers", "public"."users", "public"."bloom_remit_txns", "public"."bloom_remit_responses", "public"."payments" RESTART IDENTITY CASCADE;[0m
|
28063
|
+
[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 "bloom_remit_txns" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_responses" ENABLE TRIGGER ALL;ALTER TABLE "payments" ENABLE TRIGGER ALL
|
28064
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
28065
|
+
[1m[35m (0.4ms)[0m COMMIT
|
28066
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
28067
|
+
[1m[35m (9.1ms)[0m SAVEPOINT active_record_1
|
28068
|
+
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO "users" DEFAULT VALUES RETURNING "id"[0m
|
28069
|
+
[1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1
|
28070
|
+
[1m[36m (0.4ms)[0m [1mSAVEPOINT active_record_1[0m
|
28071
|
+
[1m[35mSQL (2.6ms)[0m INSERT INTO "bloom_remit_txns" ("target_slug", "amount", "secret", "sender_id", "sender_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["target_slug", "TARGET_SLUG"], ["amount", "2500.0"], ["secret", "5ca0fccf-4c26-41c9-bd81-c594cdce2d1c"], ["sender_id", "1"], ["sender_type", "User"]]
|
28072
|
+
[1m[36m (2.7ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
28073
|
+
Started POST "/bloom_remit/api/v1/txns/1" for 127.0.0.1 at 2016-08-08 04:56:19 +0000
|
28074
|
+
[1m[35m (0.5ms)[0m ROLLBACK
|
28075
|
+
[1m[36m (0.6ms)[0m [1mBEGIN[0m
|
28076
|
+
[1m[35m (1.9ms)[0m COMMIT
|
28077
|
+
[1m[36m (0.9ms)[0m [1mBEGIN[0m
|
28078
|
+
[1m[35m (0.3ms)[0m SAVEPOINT active_record_1
|
28079
|
+
[1m[36mSQL (2.3ms)[0m [1mINSERT INTO "users" DEFAULT VALUES RETURNING "id"[0m
|
28080
|
+
[1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1
|
28081
|
+
[1m[36m (1.3ms)[0m [1mSAVEPOINT active_record_1[0m
|
28082
|
+
[1m[35mSQL (6.9ms)[0m INSERT INTO "bloom_remit_txns" ("target_slug", "amount", "secret", "sender_id", "sender_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["target_slug", "TARGET_SLUG"], ["amount", "2500.0"], ["secret", "b40ef4ce-fec6-4a95-a650-edd95907e210"], ["sender_id", "2"], ["sender_type", "User"]]
|
28083
|
+
[1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
28084
|
+
Started PATCH "/bloom_remit/api/v1/txns/2" for 127.0.0.1 at 2016-08-08 04:56:19 +0000
|
28085
|
+
Processing by BloomRemit::Api::V1::TxnsController#update as JSON
|
28086
|
+
Parameters: {"secret"=>"fake", "status"=>"doesn't matter", "id"=>"2", "txn"=>{"status"=>"doesn't matter", "secret"=>"fake"}}
|
28087
|
+
[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]]
|
28088
|
+
Rendered text template (0.0ms)
|
28089
|
+
Completed 404 Not Found in 953ms (Views: 217.7ms | ActiveRecord: 0.3ms)
|
28090
|
+
Started PATCH "/bloom_remit/api/v1/txns/2" for 127.0.0.1 at 2016-08-08 04:56:21 +0000
|
28091
|
+
Processing by BloomRemit::Api::V1::TxnsController#update as JSON
|
28092
|
+
Parameters: {"secret"=>"b40ef4ce-fec6-4a95-a650-edd95907e210", "status"=>"paid", "id"=>"2", "txn"=>{"status"=>"paid", "secret"=>"b40ef4ce-fec6-4a95-a650-edd95907e210"}}
|
28093
|
+
[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", "b40ef4ce-fec6-4a95-a650-edd95907e210"]]
|
28094
|
+
[1m[35m (0.3ms)[0m SAVEPOINT active_record_1
|
28095
|
+
[1m[36mSQL (0.4ms)[0m [1mUPDATE "bloom_remit_txns" SET "status" = $1 WHERE "bloom_remit_txns"."id" = $2[0m [["status", 1], ["id", 2]]
|
28096
|
+
[1m[35m (0.4ms)[0m RELEASE SAVEPOINT active_record_1
|
28097
|
+
Completed 204 No Content in 349ms (ActiveRecord: 1.4ms)
|
28098
|
+
[1m[36mBloomRemit::Txn Load (3.6ms)[0m [1mSELECT "bloom_remit_txns".* FROM "bloom_remit_txns" WHERE "bloom_remit_txns"."id" = $1 LIMIT 1[0m [["id", 2]]
|
28099
|
+
[1m[35m (0.6ms)[0m ROLLBACK
|
28100
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.5ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
28101
|
+
[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 "bloom_remit_txns" DISABLE TRIGGER ALL;ALTER TABLE "bloom_remit_responses" DISABLE TRIGGER ALL;ALTER TABLE "payments" DISABLE TRIGGER ALL
|
28102
|
+
[1m[36m (1.2ms)[0m [1m SELECT schemaname || '.' || tablename
|
28103
|
+
FROM pg_tables
|
28104
|
+
WHERE
|
28105
|
+
tablename !~ '_prt_' AND
|
28106
|
+
tablename <> 'schema_migrations' AND
|
28107
|
+
schemaname = ANY (current_schemas(false))
|
28108
|
+
[0m
|
28109
|
+
[1m[35m (1.0ms)[0m select table_name from information_schema.views where table_schema = 'bloom_remit_rails_test'
|
28110
|
+
[1m[36m (10.8ms)[0m [1mTRUNCATE TABLE "public"."billers", "public"."users", "public"."bloom_remit_txns", "public"."bloom_remit_responses", "public"."payments" RESTART IDENTITY CASCADE;[0m
|
28111
|
+
[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 "bloom_remit_txns" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_responses" ENABLE TRIGGER ALL;ALTER TABLE "payments" ENABLE TRIGGER ALL
|
28112
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
28113
|
+
[1m[35m (0.2ms)[0m COMMIT
|
28114
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
28115
|
+
[1m[35m (4.2ms)[0m SAVEPOINT active_record_1
|
28116
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "users" DEFAULT VALUES RETURNING "id"[0m
|
28117
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
28118
|
+
[1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m
|
28119
|
+
[1m[35mSQL (0.7ms)[0m INSERT INTO "bloom_remit_txns" ("target_slug", "amount", "secret", "sender_id", "sender_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["target_slug", "TARGET_SLUG"], ["amount", "2500.0"], ["secret", "39bafbaf-3d96-4c46-91f6-8525265361c9"], ["sender_id", "1"], ["sender_type", "User"]]
|
28120
|
+
[1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
28121
|
+
Started POST "/bloom_remit/api/v1/txns/1" for 127.0.0.1 at 2016-08-08 04:57:48 +0000
|
28122
|
+
Processing by BloomRemit::Api::V1::TxnsController#post_update as JSON
|
28123
|
+
Parameters: {"secret"=>"fake", "status"=>"doesn't matter", "id"=>"1", "txn"=>{"status"=>"doesn't matter", "secret"=>"fake"}}
|
28124
|
+
[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", nil]]
|
28125
|
+
Rendered text template (0.0ms)
|
28126
|
+
Completed 404 Not Found in 848ms (Views: 186.3ms | ActiveRecord: 0.3ms)
|
28127
|
+
Started POST "/bloom_remit/api/v1/txns/1" for 127.0.0.1 at 2016-08-08 04:57:50 +0000
|
28128
|
+
Processing by BloomRemit::Api::V1::TxnsController#post_update as JSON
|
28129
|
+
Parameters: {"secret"=>"39bafbaf-3d96-4c46-91f6-8525265361c9", "status"=>"paid", "id"=>"1", "txn"=>{"status"=>"paid", "secret"=>"39bafbaf-3d96-4c46-91f6-8525265361c9"}}
|
28130
|
+
[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", "39bafbaf-3d96-4c46-91f6-8525265361c9"]]
|
28131
|
+
[1m[35m (3.2ms)[0m SAVEPOINT active_record_1
|
28132
|
+
[1m[36mSQL (0.3ms)[0m [1mUPDATE "bloom_remit_txns" SET "status" = $1 WHERE "bloom_remit_txns"."id" = $2[0m [["status", 1], ["id", 1]]
|
28133
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
28134
|
+
Completed 200 OK in 24ms (Views: 0.5ms | ActiveRecord: 4.1ms)
|
28135
|
+
[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]]
|
28136
|
+
[1m[35m (0.4ms)[0m ROLLBACK
|
28137
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
28138
|
+
[1m[35m (0.2ms)[0m COMMIT
|
28139
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
28140
|
+
[1m[35m (2.1ms)[0m SAVEPOINT active_record_1
|
28141
|
+
[1m[36mSQL (1.5ms)[0m [1mINSERT INTO "users" DEFAULT VALUES RETURNING "id"[0m
|
28142
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
28143
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
28144
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "bloom_remit_txns" ("target_slug", "amount", "secret", "sender_id", "sender_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["target_slug", "TARGET_SLUG"], ["amount", "2500.0"], ["secret", "2f2ee2ae-94a9-44fe-942a-430b86ec487c"], ["sender_id", "2"], ["sender_type", "User"]]
|
28145
|
+
[1m[36m (4.8ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
28146
|
+
Started PATCH "/bloom_remit/api/v1/txns/2" for 127.0.0.1 at 2016-08-08 04:57:50 +0000
|
28147
|
+
Processing by BloomRemit::Api::V1::TxnsController#update as JSON
|
28148
|
+
Parameters: {"secret"=>"fake", "status"=>"doesn't matter", "id"=>"2", "txn"=>{"status"=>"doesn't matter", "secret"=>"fake"}}
|
28149
|
+
[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]]
|
28150
|
+
Rendered text template (0.0ms)
|
28151
|
+
Completed 404 Not Found in 4ms (Views: 0.7ms | ActiveRecord: 0.4ms)
|
28152
|
+
Started PATCH "/bloom_remit/api/v1/txns/2" for 127.0.0.1 at 2016-08-08 04:57:50 +0000
|
28153
|
+
Processing by BloomRemit::Api::V1::TxnsController#update as JSON
|
28154
|
+
Parameters: {"secret"=>"2f2ee2ae-94a9-44fe-942a-430b86ec487c", "status"=>"paid", "id"=>"2", "txn"=>{"status"=>"paid", "secret"=>"2f2ee2ae-94a9-44fe-942a-430b86ec487c"}}
|
28155
|
+
[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", "2f2ee2ae-94a9-44fe-942a-430b86ec487c"]]
|
28156
|
+
[1m[35m (0.3ms)[0m SAVEPOINT active_record_1
|
28157
|
+
[1m[36mSQL (0.4ms)[0m [1mUPDATE "bloom_remit_txns" SET "status" = $1 WHERE "bloom_remit_txns"."id" = $2[0m [["status", 1], ["id", 2]]
|
28158
|
+
[1m[35m (6.2ms)[0m RELEASE SAVEPOINT active_record_1
|
28159
|
+
Completed 204 No Content in 258ms (ActiveRecord: 7.2ms)
|
28160
|
+
[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]]
|
28161
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
28162
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.5ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
28163
|
+
[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 "bloom_remit_txns" DISABLE TRIGGER ALL;ALTER TABLE "bloom_remit_responses" DISABLE TRIGGER ALL;ALTER TABLE "payments" DISABLE TRIGGER ALL
|
28164
|
+
[1m[36m (1.3ms)[0m [1m SELECT schemaname || '.' || tablename
|
28165
|
+
FROM pg_tables
|
28166
|
+
WHERE
|
28167
|
+
tablename !~ '_prt_' AND
|
28168
|
+
tablename <> 'schema_migrations' AND
|
28169
|
+
schemaname = ANY (current_schemas(false))
|
28170
|
+
[0m
|
28171
|
+
[1m[35m (1.2ms)[0m select table_name from information_schema.views where table_schema = 'bloom_remit_rails_test'
|
28172
|
+
[1m[36m (15.3ms)[0m [1mTRUNCATE TABLE "public"."billers", "public"."users", "public"."bloom_remit_txns", "public"."bloom_remit_responses", "public"."payments" RESTART IDENTITY CASCADE;[0m
|
28173
|
+
[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 "bloom_remit_txns" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_responses" ENABLE TRIGGER ALL;ALTER TABLE "payments" ENABLE TRIGGER ALL
|
28174
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
28175
|
+
[1m[35m (0.2ms)[0m COMMIT
|
28176
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
28177
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
28178
|
+
[1m[36m (0.6ms)[0m [1mBEGIN[0m
|
28179
|
+
[1m[35m (0.5ms)[0m COMMIT
|
28180
|
+
[1m[36m (0.9ms)[0m [1mBEGIN[0m
|
28181
|
+
[1m[35m (0.9ms)[0m ROLLBACK
|
28182
|
+
[1m[36m (1.1ms)[0m [1mBEGIN[0m
|
28183
|
+
[1m[35mSQL (0.6ms)[0m INSERT INTO "billers" ("slug") VALUES ($1) RETURNING "id" [["slug", "PLDT"]]
|
28184
|
+
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
|
28185
|
+
[1m[35m (8.3ms)[0m BEGIN
|
28186
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("type") VALUES ($1) RETURNING "id"[0m [["type", "SubUser"]]
|
28187
|
+
[1m[35m (0.7ms)[0m COMMIT
|
28188
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
28189
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "payments" ("type") VALUES ($1) RETURNING "id" [["type", "SubPayment"]]
|
28190
|
+
[1m[36m (0.5ms)[0m [1mCOMMIT[0m
|
28191
|
+
[1m[35m (0.3ms)[0m BEGIN
|
28192
|
+
[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") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id"[0m [["secret", "645779a8-c874-46c9-b4f0-4a0231c3fe09"], ["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"]]
|
28193
|
+
[1m[35m (0.5ms)[0m COMMIT
|
28194
|
+
[1m[36mUser Load (0.9ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1[0m [["id", 1]]
|
28195
|
+
[1m[35mPayment Load (1.3ms)[0m SELECT "payments".* FROM "payments" WHERE "payments"."id" = $1 LIMIT 1 [["id", 1]]
|
28196
|
+
[1m[36m (0.6ms)[0m [1mALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "billers" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "bloom_remit_txns" DISABLE TRIGGER ALL;ALTER TABLE "bloom_remit_responses" DISABLE TRIGGER ALL;ALTER TABLE "payments" DISABLE TRIGGER ALL[0m
|
28197
|
+
[1m[35m (32.1ms)[0m TRUNCATE TABLE "public"."billers", "public"."users", "public"."bloom_remit_txns", "public"."bloom_remit_responses", "public"."payments" RESTART IDENTITY CASCADE;
|
28198
|
+
[1m[36m (0.7ms)[0m [1mALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "billers" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_txns" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_responses" ENABLE TRIGGER ALL;ALTER TABLE "payments" ENABLE TRIGGER ALL[0m
|
28199
|
+
[1m[35m (7.0ms)[0m BEGIN
|
28200
|
+
[1m[36mSQL (0.7ms)[0m [1mINSERT INTO "users" DEFAULT VALUES RETURNING "id"[0m
|
28201
|
+
[1m[35m (0.5ms)[0m COMMIT
|
28202
|
+
[1m[36m (2.0ms)[0m [1mBEGIN[0m
|
28203
|
+
[1m[35mSQL (1.8ms)[0m INSERT INTO "bloom_remit_txns" ("target_slug", "amount", "secret", "sender_id", "sender_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["target_slug", "TARGET_SLUG"], ["amount", "2500.0"], ["secret", "0ddf73e9-f256-4803-a0e6-152187f52cc6"], ["sender_id", "1"], ["sender_type", "User"]]
|
28204
|
+
[1m[36m (3.4ms)[0m [1mCOMMIT[0m
|
28205
|
+
[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", "0ddf73e9-f256-4803-a0e6-152187f52cc6"]]
|
28206
|
+
[1m[36m (2.4ms)[0m [1mBEGIN[0m
|
28207
|
+
[1m[35mSQL (0.4ms)[0m UPDATE "bloom_remit_txns" SET "status" = $1 WHERE "bloom_remit_txns"."id" = $2 [["status", 1], ["id", 1]]
|
28208
|
+
[1m[36m (0.6ms)[0m [1mCOMMIT[0m
|
28209
|
+
[1m[35m (6.2ms)[0m ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "billers" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "bloom_remit_txns" DISABLE TRIGGER ALL;ALTER TABLE "bloom_remit_responses" DISABLE TRIGGER ALL;ALTER TABLE "payments" DISABLE TRIGGER ALL
|
28210
|
+
[1m[36m (44.0ms)[0m [1mTRUNCATE TABLE "public"."billers", "public"."users", "public"."bloom_remit_txns", "public"."bloom_remit_responses", "public"."payments" RESTART IDENTITY CASCADE;[0m
|
28211
|
+
[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 "bloom_remit_txns" ENABLE TRIGGER ALL;ALTER TABLE "bloom_remit_responses" ENABLE TRIGGER ALL;ALTER TABLE "payments" ENABLE TRIGGER ALL
|
28212
|
+
[1m[36m (0.8ms)[0m [1mBEGIN[0m
|
28213
|
+
[1m[35m (3.8ms)[0m COMMIT
|
28214
|
+
[1m[36m (0.5ms)[0m [1mBEGIN[0m
|
28215
|
+
[1m[35m (1.0ms)[0m ROLLBACK
|
28216
|
+
[1m[36m (2.4ms)[0m [1mBEGIN[0m
|
28217
|
+
[1m[35m (0.3ms)[0m COMMIT
|
28218
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
28219
|
+
[1m[35m (9.7ms)[0m ROLLBACK
|
28220
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
28221
|
+
[1m[35m (0.2ms)[0m COMMIT
|
28222
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
28223
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
28224
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
28225
|
+
[1m[35m (3.3ms)[0m COMMIT
|
28226
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
28227
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
28228
|
+
[1m[36m (3.3ms)[0m [1mBEGIN[0m
|
28229
|
+
[1m[35m (0.2ms)[0m COMMIT
|
28230
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
28231
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
28232
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
28233
|
+
[1m[35m (0.2ms)[0m COMMIT
|
28234
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
28235
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
28236
|
+
[1m[36m (0.6ms)[0m [1mBEGIN[0m
|
28237
|
+
[1m[35m (0.4ms)[0m COMMIT
|
28238
|
+
[1m[36m (0.4ms)[0m [1mBEGIN[0m
|
28239
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
28240
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
28241
|
+
[1m[35m (0.2ms)[0m COMMIT
|
28242
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
28243
|
+
[1m[35m (5.1ms)[0m SAVEPOINT active_record_1
|
28244
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "users" DEFAULT VALUES RETURNING "id"[0m
|
28245
|
+
[1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1
|
28246
|
+
[1m[36m (6.9ms)[0m [1mSAVEPOINT active_record_1[0m
|
28247
|
+
[1m[35mSQL (0.7ms)[0m INSERT INTO "bloom_remit_txns" ("target_slug", "amount", "secret", "sender_id", "sender_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["target_slug", "TARGET_SLUG"], ["amount", "2500.0"], ["secret", "d321cf03-6acc-447c-9a21-ee6a09d5208d"], ["sender_id", "1"], ["sender_type", "User"]]
|
28248
|
+
[1m[36m (0.4ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
28249
|
+
Started POST "/bloom_remit/api/v1/txns/1" for 127.0.0.1 at 2016-08-08 05:01:53 +0000
|
28250
|
+
Processing by BloomRemit::Api::V1::TxnsController#post_update as JSON
|
28251
|
+
Parameters: {"secret"=>"fake", "status"=>"doesn't matter", "id"=>"1", "txn"=>{"status"=>"doesn't matter", "secret"=>"fake"}}
|
28252
|
+
[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", nil]]
|
28253
|
+
Rendered text template (0.0ms)
|
28254
|
+
Completed 404 Not Found in 168ms (Views: 166.4ms | ActiveRecord: 0.3ms)
|
28255
|
+
Started POST "/bloom_remit/api/v1/txns/1" for 127.0.0.1 at 2016-08-08 05:01:54 +0000
|
28256
|
+
Processing by BloomRemit::Api::V1::TxnsController#post_update as JSON
|
28257
|
+
Parameters: {"secret"=>"d321cf03-6acc-447c-9a21-ee6a09d5208d", "status"=>"paid", "id"=>"1", "txn"=>{"status"=>"paid", "secret"=>"d321cf03-6acc-447c-9a21-ee6a09d5208d"}}
|
28258
|
+
[1m[36mBloomRemit::Txn Load (0.3ms)[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", "d321cf03-6acc-447c-9a21-ee6a09d5208d"]]
|
28259
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
28260
|
+
[1m[36mSQL (0.3ms)[0m [1mUPDATE "bloom_remit_txns" SET "status" = $1 WHERE "bloom_remit_txns"."id" = $2[0m [["status", 1], ["id", 1]]
|
28261
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
28262
|
+
Completed 200 OK in 8ms (Views: 0.7ms | ActiveRecord: 1.0ms)
|
28263
|
+
[1m[36mBloomRemit::Txn Load (0.2ms)[0m [1mSELECT "bloom_remit_txns".* FROM "bloom_remit_txns" WHERE "bloom_remit_txns"."id" = $1 LIMIT 1[0m [["id", 1]]
|
28264
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
28265
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
28266
|
+
[1m[35m (0.1ms)[0m COMMIT
|
28267
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
28268
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
28269
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "users" DEFAULT VALUES RETURNING "id"[0m
|
28270
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
28271
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
28272
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "bloom_remit_txns" ("target_slug", "amount", "secret", "sender_id", "sender_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["target_slug", "TARGET_SLUG"], ["amount", "2500.0"], ["secret", "b47d9795-c393-41a0-89b6-1ccdc85b35d7"], ["sender_id", "2"], ["sender_type", "User"]]
|
28273
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
28274
|
+
Started PATCH "/bloom_remit/api/v1/txns/2" for 127.0.0.1 at 2016-08-08 05:01:55 +0000
|
28275
|
+
Processing by BloomRemit::Api::V1::TxnsController#update as JSON
|
28276
|
+
Parameters: {"secret"=>"fake", "status"=>"doesn't matter", "id"=>"2", "txn"=>{"status"=>"doesn't matter", "secret"=>"fake"}}
|
28277
|
+
[1m[35mBloomRemit::Txn Load (1.2ms)[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]]
|
28278
|
+
Rendered text template (0.0ms)
|
28279
|
+
Completed 404 Not Found in 6ms (Views: 0.6ms | ActiveRecord: 1.2ms)
|
28280
|
+
Started PATCH "/bloom_remit/api/v1/txns/2" for 127.0.0.1 at 2016-08-08 05:01:55 +0000
|
28281
|
+
Processing by BloomRemit::Api::V1::TxnsController#update as JSON
|
28282
|
+
Parameters: {"secret"=>"b47d9795-c393-41a0-89b6-1ccdc85b35d7", "status"=>"paid", "id"=>"2", "txn"=>{"status"=>"paid", "secret"=>"b47d9795-c393-41a0-89b6-1ccdc85b35d7"}}
|
28283
|
+
[1m[36mBloomRemit::Txn Load (1.2ms)[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", "b47d9795-c393-41a0-89b6-1ccdc85b35d7"]]
|
28284
|
+
[1m[35m (9.1ms)[0m SAVEPOINT active_record_1
|
28285
|
+
[1m[36mSQL (0.5ms)[0m [1mUPDATE "bloom_remit_txns" SET "status" = $1 WHERE "bloom_remit_txns"."id" = $2[0m [["status", 1], ["id", 2]]
|
28286
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
28287
|
+
Completed 204 No Content in 170ms (ActiveRecord: 11.1ms)
|
28288
|
+
[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]]
|
28289
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
28290
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
28291
|
+
[1m[35m (0.7ms)[0m COMMIT
|
28292
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
28293
|
+
[1m[35m (0.3ms)[0m SAVEPOINT active_record_1
|
28294
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("type") VALUES ($1) RETURNING "id"[0m [["type", "SubUser"]]
|
28295
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
28296
|
+
[1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m
|
28297
|
+
[1m[35mSQL (0.6ms)[0m INSERT INTO "billers" ("slug") VALUES ($1) RETURNING "id" [["slug", "PLDT"]]
|
28298
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
28299
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
28300
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "payments" ("type") VALUES ($1) RETURNING "id"[0m [["type", "SubPayment"]]
|
28301
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
28302
|
+
[1m[36m (8.9ms)[0m [1mSAVEPOINT active_record_1[0m
|
28303
|
+
[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") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["secret", "4da9118a-5f7a-499e-be7e-a74cf119ab27"], ["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"]]
|
28304
|
+
[1m[36m (0.4ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
28305
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
28306
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
28307
|
+
[1m[35m (0.2ms)[0m COMMIT
|
28308
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
28309
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
28310
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
28311
|
+
[1m[35m (0.2ms)[0m COMMIT
|
28312
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
28313
|
+
[1m[35m (1.0ms)[0m SAVEPOINT active_record_1
|
28314
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "payments" DEFAULT VALUES RETURNING "id"[0m
|
28315
|
+
[1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1
|
28316
|
+
[1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m
|
28317
|
+
[1m[35mSQL (0.7ms)[0m INSERT INTO "users" DEFAULT VALUES RETURNING "id"
|
28318
|
+
[1m[36m (0.4ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
28319
|
+
[1m[35m (0.4ms)[0m SAVEPOINT active_record_1
|
28320
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "bloom_remit_txns" ("target_slug", "amount", "secret", "owner_id", "owner_type", "sender_id", "sender_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["target_slug", "TARGET_SLUG"], ["amount", "2500.0"], ["secret", "10dda651-4cf6-4eeb-8744-62b5032843cc"], ["owner_id", "2"], ["owner_type", "Payment"], ["sender_id", "4"], ["sender_type", "User"]]
|
28321
|
+
[1m[35m (0.4ms)[0m RELEASE SAVEPOINT active_record_1
|
28322
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
28323
|
+
[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-08-08 05:01:55.432333"], ["updated_at", "2016-08-08 05:01:55.432333"]]
|
28324
|
+
[1m[36m (0.4ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
28325
|
+
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "bloom_remit_responses" WHERE "bloom_remit_responses"."txn_id" = $1 [["txn_id", 4]]
|
28326
|
+
[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]]
|
28327
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
28328
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
28329
|
+
[1m[35m (0.2ms)[0m COMMIT
|
28330
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
28331
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
28332
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
28333
|
+
[1m[35m (0.2ms)[0m COMMIT
|
28334
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
28335
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
28336
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
28337
|
+
[1m[35m (0.2ms)[0m COMMIT
|
28338
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
28339
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
28340
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
28341
|
+
[1m[35m (0.2ms)[0m COMMIT
|
28342
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
28343
|
+
[1m[35m (7.1ms)[0m ROLLBACK
|
28344
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
28345
|
+
[1m[35m (0.2ms)[0m COMMIT
|
28346
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
28347
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
@@ -14,7 +14,32 @@ RSpec.describe "api/v1/txns" do
|
|
14
14
|
}
|
15
15
|
end
|
16
16
|
|
17
|
-
it "updates the status of the txn" do
|
17
|
+
it "updates the status of the txn via POST" do
|
18
|
+
post(
|
19
|
+
BloomRemit::Engine.routes.url_helpers.api_v1_txn_url(txn),
|
20
|
+
{
|
21
|
+
secret: "fake",
|
22
|
+
status: "doesn't matter",
|
23
|
+
}.to_json,
|
24
|
+
headers
|
25
|
+
)
|
26
|
+
puts response.body
|
27
|
+
expect(response.status).to be 404
|
28
|
+
|
29
|
+
post(
|
30
|
+
BloomRemit::Engine.routes.url_helpers.api_v1_txn_url(txn),
|
31
|
+
{
|
32
|
+
secret: txn.secret,
|
33
|
+
status: "paid",
|
34
|
+
}.to_json,
|
35
|
+
headers
|
36
|
+
)
|
37
|
+
expect(response).to be_success
|
38
|
+
expect(txn.reload).to be_paid
|
39
|
+
end
|
40
|
+
|
41
|
+
|
42
|
+
it "updates the status of the txn via PATCH" do
|
18
43
|
patch(
|
19
44
|
BloomRemit::Engine.routes.url_helpers.api_v1_txn_url(txn),
|
20
45
|
{
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bloom_remit
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ramon Tayag
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-08-
|
11
|
+
date: 2016-08-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|