bloom_remit 0.6.1 → 0.7.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/txns/handle_response.rb +3 -1
- data/lib/bloom_remit/version.rb +1 -1
- data/spec/dummy/config/database.yml +8 -11
- data/spec/dummy/config/database.yml.sample +8 -11
- data/spec/dummy/db/schema.rb +0 -11
- data/spec/dummy/log/test.log +871 -0
- data/spec/services/bloom_remit/txns/handle_response_spec.rb +32 -12
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7cdb2c2f7b353f74026d084ec937cf4ef0b01eb6
|
4
|
+
data.tar.gz: a956e34dc807d9026f2101368d8979f34028acea
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8e7cf8fe8cdbed00df092ff1bdeb92a4159941cfcf058035e4c43cc18bb8efcdcf9d21f832734d323fe414b8ebab870cd41ada3b7044b23cfd5b7f266658a421
|
7
|
+
data.tar.gz: dd01c5c43a22a472ee13c8b9c076e2f6db7d2954838a0329c63202bcf4f7ef3daa0171ffc36968b6c9762bd5db7eb6ceccd3f24c84f1d8ee6a616ed829bdddb0
|
@@ -7,7 +7,9 @@ module BloomRemit
|
|
7
7
|
promises :response
|
8
8
|
|
9
9
|
executed do |c|
|
10
|
-
|
10
|
+
remote_response = c.remote_response
|
11
|
+
c.txn.error! unless remote_response.success?
|
12
|
+
body = remote_response.body
|
11
13
|
c.response = c.txn.responses.create!(body: body)
|
12
14
|
end
|
13
15
|
|
data/lib/bloom_remit/version.rb
CHANGED
@@ -1,16 +1,13 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
username: ubuntu
|
4
|
-
password:
|
5
|
-
|
6
|
-
development:
|
7
|
-
<<: *defaults
|
2
|
+
development: &default
|
8
3
|
adapter: postgresql
|
9
4
|
encoding: unicode
|
10
|
-
database:
|
5
|
+
database: postgres
|
6
|
+
pool: 5
|
7
|
+
username: postgres
|
8
|
+
password:
|
9
|
+
host: db
|
11
10
|
|
12
11
|
test:
|
13
|
-
<<: *
|
14
|
-
|
15
|
-
encoding: unicode
|
16
|
-
database: bloom_remit_rails_test
|
12
|
+
<<: *default
|
13
|
+
database: app_test
|
@@ -1,16 +1,13 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
username: ubuntu
|
4
|
-
password:
|
5
|
-
|
6
|
-
development:
|
7
|
-
<<: *defaults
|
2
|
+
development: &default
|
8
3
|
adapter: postgresql
|
9
4
|
encoding: unicode
|
10
|
-
database:
|
5
|
+
database: postgres
|
6
|
+
pool: 5
|
7
|
+
username: postgres
|
8
|
+
password:
|
9
|
+
host: db
|
11
10
|
|
12
11
|
test:
|
13
|
-
<<: *
|
14
|
-
|
15
|
-
encoding: unicode
|
16
|
-
database: bloom_remit_rails_test
|
12
|
+
<<: *default
|
13
|
+
database: app_test
|
data/spec/dummy/db/schema.rb
CHANGED
@@ -15,22 +15,11 @@ ActiveRecord::Schema.define(version: 20160817003323) do
|
|
15
15
|
|
16
16
|
# These are extensions that must be enabled in order to support this database
|
17
17
|
enable_extension "plpgsql"
|
18
|
-
enable_extension "hstore"
|
19
18
|
|
20
19
|
create_table "billers", force: :cascade do |t|
|
21
20
|
t.string "slug"
|
22
21
|
end
|
23
22
|
|
24
|
-
create_table "bloom_remit_billers", force: :cascade do |t|
|
25
|
-
t.string "slug", null: false
|
26
|
-
t.text "description"
|
27
|
-
t.hstore "fields"
|
28
|
-
t.decimal "service_charge", default: 0.0, null: false
|
29
|
-
t.datetime "deactivated_at"
|
30
|
-
t.datetime "created_at", null: false
|
31
|
-
t.datetime "updated_at", null: false
|
32
|
-
end
|
33
|
-
|
34
23
|
create_table "bloom_remit_responses", force: :cascade do |t|
|
35
24
|
t.integer "txn_id", null: false
|
36
25
|
t.text "body", null: false
|
data/spec/dummy/log/test.log
CHANGED
@@ -30634,3 +30634,874 @@ Completed 204 No Content in 37ms (ActiveRecord: 1.4ms)
|
|
30634
30634
|
[1m[35m (0.2ms)[0m COMMIT
|
30635
30635
|
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
30636
30636
|
[1m[35m (0.2ms)[0m ROLLBACK
|
30637
|
+
[1m[36mSQL (1.3ms)[0m [1mCREATE EXTENSION IF NOT EXISTS "plpgsql"[0m
|
30638
|
+
[1m[35mSQL (21.5ms)[0m CREATE EXTENSION IF NOT EXISTS "hstore"
|
30639
|
+
[1m[36m (12.1ms)[0m [1mCREATE TABLE "billers" ("id" serial primary key, "slug" character varying) [0m
|
30640
|
+
[1m[35m (5.8ms)[0m CREATE TABLE "bloom_remit_billers" ("id" serial primary key, "slug" character varying NOT NULL, "description" text, "fields" hstore, "service_charge" decimal DEFAULT 0.0 NOT NULL, "deactivated_at" timestamp, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
|
30641
|
+
[1m[36m (8.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
|
30642
|
+
[1m[35m (3.5ms)[0m CREATE INDEX "index_bloom_remit_responses_on_txn_id" ON "bloom_remit_responses" USING btree ("txn_id")
|
30643
|
+
[1m[36m (11.6ms)[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
|
30644
|
+
[1m[35m (4.3ms)[0m CREATE INDEX "index_bloom_remit_txns_on_external_id" ON "bloom_remit_txns" USING btree ("external_id")
|
30645
|
+
[1m[36m (3.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
|
30646
|
+
[1m[35m (5.0ms)[0m CREATE INDEX "index_bloom_remit_txns_on_vendor_external_id" ON "bloom_remit_txns" USING btree ("vendor_external_id")
|
30647
|
+
[1m[36m (6.1ms)[0m [1mCREATE TABLE "payments" ("id" serial primary key, "type" character varying) [0m
|
30648
|
+
[1m[35m (9.3ms)[0m CREATE TABLE "users" ("id" serial primary key, "email" character varying, "bloom_remit_id" character varying, "type" character varying)
|
30649
|
+
[1m[36m (5.3ms)[0m [1mCREATE TABLE "schema_migrations" ("version" character varying NOT NULL) [0m
|
30650
|
+
[1m[35m (2.9ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
30651
|
+
[1m[36m (0.7ms)[0m [1mSELECT version FROM "schema_migrations"[0m
|
30652
|
+
[1m[35m (1.0ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20160817003323')
|
30653
|
+
[1m[36m (1.8ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20160729085500')[0m
|
30654
|
+
[1m[35m (0.8ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20160805001840')
|
30655
|
+
[1m[36m (0.8ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20160805042105')[0m
|
30656
|
+
[1m[35m (0.7ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20160806011259')
|
30657
|
+
[1m[36m (0.7ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20160806012210')[0m
|
30658
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.5ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
30659
|
+
[1m[36m (2.1ms)[0m [1mDROP DATABASE IF EXISTS "postgres"[0m
|
30660
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.5ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
30661
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.6ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
30662
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.3ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
30663
|
+
[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
|
30664
|
+
FROM pg_constraint c
|
30665
|
+
JOIN pg_class t1 ON c.conrelid = t1.oid
|
30666
|
+
JOIN pg_class t2 ON c.confrelid = t2.oid
|
30667
|
+
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
|
30668
|
+
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
|
30669
|
+
JOIN pg_namespace t3 ON c.connamespace = t3.oid
|
30670
|
+
WHERE c.contype = 'f'
|
30671
|
+
AND t1.relname = 'billers'
|
30672
|
+
AND t3.nspname = ANY (current_schemas(false))
|
30673
|
+
ORDER BY c.conname
|
30674
|
+
[0m
|
30675
|
+
[1m[35m (2.0ms)[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
|
30676
|
+
FROM pg_constraint c
|
30677
|
+
JOIN pg_class t1 ON c.conrelid = t1.oid
|
30678
|
+
JOIN pg_class t2 ON c.confrelid = t2.oid
|
30679
|
+
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
|
30680
|
+
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
|
30681
|
+
JOIN pg_namespace t3 ON c.connamespace = t3.oid
|
30682
|
+
WHERE c.contype = 'f'
|
30683
|
+
AND t1.relname = 'bloom_remit_billers'
|
30684
|
+
AND t3.nspname = ANY (current_schemas(false))
|
30685
|
+
ORDER BY c.conname
|
30686
|
+
|
30687
|
+
[1m[36m (2.0ms)[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
|
30688
|
+
FROM pg_constraint c
|
30689
|
+
JOIN pg_class t1 ON c.conrelid = t1.oid
|
30690
|
+
JOIN pg_class t2 ON c.confrelid = t2.oid
|
30691
|
+
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
|
30692
|
+
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
|
30693
|
+
JOIN pg_namespace t3 ON c.connamespace = t3.oid
|
30694
|
+
WHERE c.contype = 'f'
|
30695
|
+
AND t1.relname = 'bloom_remit_responses'
|
30696
|
+
AND t3.nspname = ANY (current_schemas(false))
|
30697
|
+
ORDER BY c.conname
|
30698
|
+
[0m
|
30699
|
+
[1m[35m (2.0ms)[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
|
30700
|
+
FROM pg_constraint c
|
30701
|
+
JOIN pg_class t1 ON c.conrelid = t1.oid
|
30702
|
+
JOIN pg_class t2 ON c.confrelid = t2.oid
|
30703
|
+
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
|
30704
|
+
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
|
30705
|
+
JOIN pg_namespace t3 ON c.connamespace = t3.oid
|
30706
|
+
WHERE c.contype = 'f'
|
30707
|
+
AND t1.relname = 'bloom_remit_txns'
|
30708
|
+
AND t3.nspname = ANY (current_schemas(false))
|
30709
|
+
ORDER BY c.conname
|
30710
|
+
|
30711
|
+
[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
|
30712
|
+
FROM pg_constraint c
|
30713
|
+
JOIN pg_class t1 ON c.conrelid = t1.oid
|
30714
|
+
JOIN pg_class t2 ON c.confrelid = t2.oid
|
30715
|
+
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
|
30716
|
+
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
|
30717
|
+
JOIN pg_namespace t3 ON c.connamespace = t3.oid
|
30718
|
+
WHERE c.contype = 'f'
|
30719
|
+
AND t1.relname = 'payments'
|
30720
|
+
AND t3.nspname = ANY (current_schemas(false))
|
30721
|
+
ORDER BY c.conname
|
30722
|
+
[0m
|
30723
|
+
[1m[35m (2.1ms)[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
|
30724
|
+
FROM pg_constraint c
|
30725
|
+
JOIN pg_class t1 ON c.conrelid = t1.oid
|
30726
|
+
JOIN pg_class t2 ON c.confrelid = t2.oid
|
30727
|
+
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
|
30728
|
+
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
|
30729
|
+
JOIN pg_namespace t3 ON c.connamespace = t3.oid
|
30730
|
+
WHERE c.contype = 'f'
|
30731
|
+
AND t1.relname = 'users'
|
30732
|
+
AND t3.nspname = ANY (current_schemas(false))
|
30733
|
+
ORDER BY c.conname
|
30734
|
+
|
30735
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.5ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
30736
|
+
[1m[36m (0.9ms)[0m [1mDROP DATABASE IF EXISTS "postgres"[0m
|
30737
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.5ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
30738
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.6ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
30739
|
+
[1m[36m (0.9ms)[0m [1mDROP DATABASE IF EXISTS "postgres"[0m
|
30740
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.5ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
30741
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.5ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
30742
|
+
Migrating to CreateBloomRemitTxns (20160729070509)
|
30743
|
+
[1m[35m (0.3ms)[0m BEGIN
|
30744
|
+
[1m[36m (2.4ms)[0m [1mCREATE TABLE "bloom_remit_txns" ("id" serial primary key, "status" integer DEFAULT 0 NOT NULL, "recipient_type" character varying NOT NULL, "recipient_id" character varying NOT NULL, "sender_id" integer NOT NULL, "sender_type" character varying NOT NULL, "amount" decimal NOT NULL, "account_name" character varying, "account_id" character varying, "secret" uuid NOT NULL) [0m
|
30745
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
30746
|
+
[1m[36m (5.6ms)[0m [1mCREATE TABLE "schema_migrations" ("version" character varying NOT NULL) [0m
|
30747
|
+
[1m[35m (2.5ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
30748
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.4ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
30749
|
+
Migrating to CreateBloomRemitTxns (20160729070509)
|
30750
|
+
[1m[35m (0.2ms)[0m BEGIN
|
30751
|
+
[1m[36m (7.4ms)[0m [1mCREATE TABLE "bloom_remit_txns" ("id" serial primary key, "status" integer DEFAULT 0 NOT NULL, "recipient_type" character varying NOT NULL, "recipient_id" character varying NOT NULL, "sender_id" integer NOT NULL, "sender_type" character varying NOT NULL, "amount" decimal NOT NULL, "account_name" character varying, "account_id" character varying, "secret" uuid NOT NULL) [0m
|
30752
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20160729070509"]]
|
30753
|
+
[1m[36m (1.4ms)[0m [1mCOMMIT[0m
|
30754
|
+
Migrating to CreateUsers (20160729085500)
|
30755
|
+
[1m[35m (0.2ms)[0m BEGIN
|
30756
|
+
[1m[36m (6.4ms)[0m [1mCREATE TABLE "users" ("id" serial primary key, "email" character varying, "bloom_remit_id" character varying) [0m
|
30757
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20160729085500"]]
|
30758
|
+
[1m[36m (1.3ms)[0m [1mCOMMIT[0m
|
30759
|
+
Migrating to CreateBillers (20160805001840)
|
30760
|
+
[1m[35m (0.3ms)[0m BEGIN
|
30761
|
+
[1m[36m (8.1ms)[0m [1mCREATE TABLE "billers" ("id" serial primary key, "slug" character varying) [0m
|
30762
|
+
[1m[35mSQL (0.8ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20160805001840"]]
|
30763
|
+
[1m[36m (1.1ms)[0m [1mCOMMIT[0m
|
30764
|
+
Migrating to DropRecipientFromTxns (20160805004223)
|
30765
|
+
[1m[35m (0.2ms)[0m BEGIN
|
30766
|
+
[1m[36m (1.1ms)[0m [1mALTER TABLE "bloom_remit_txns" DROP "recipient_id"[0m
|
30767
|
+
[1m[35m (0.7ms)[0m ALTER TABLE "bloom_remit_txns" DROP "recipient_type"
|
30768
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ($1)[0m [["version", "20160805004223"]]
|
30769
|
+
[1m[35m (0.9ms)[0m COMMIT
|
30770
|
+
Migrating to AddTargetSlugToBloomRemitTxns (20160805004350)
|
30771
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
30772
|
+
[1m[35m (0.9ms)[0m ALTER TABLE "bloom_remit_txns" ADD "target_slug" character varying NOT NULL
|
30773
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ($1)[0m [["version", "20160805004350"]]
|
30774
|
+
[1m[35m (0.7ms)[0m COMMIT
|
30775
|
+
Migrating to AddOwnerToBloomRemitTxns (20160805040950)
|
30776
|
+
[1m[36m (0.6ms)[0m [1mBEGIN[0m
|
30777
|
+
[1m[35m (0.9ms)[0m ALTER TABLE "bloom_remit_txns" ADD "owner_id" character varying
|
30778
|
+
[1m[36m (0.5ms)[0m [1mALTER TABLE "bloom_remit_txns" ADD "owner_type" character varying[0m
|
30779
|
+
[1m[35m (3.1ms)[0m CREATE INDEX "index_bloom_remit_txns_on_owner_id_and_owner_type" ON "bloom_remit_txns" ("owner_id", "owner_type")
|
30780
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ($1)[0m [["version", "20160805040950"]]
|
30781
|
+
[1m[35m (1.8ms)[0m COMMIT
|
30782
|
+
Migrating to CreatePayments (20160805042105)
|
30783
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
30784
|
+
[1m[35m (6.3ms)[0m CREATE TABLE "payments" ("id" serial primary key)
|
30785
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ($1)[0m [["version", "20160805042105"]]
|
30786
|
+
[1m[35m (1.3ms)[0m COMMIT
|
30787
|
+
Migrating to ChangeTxnsSenderIdToString (20160805095308)
|
30788
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
30789
|
+
[1m[35m (9.1ms)[0m ALTER TABLE "bloom_remit_txns" ALTER COLUMN "sender_id" TYPE character varying
|
30790
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ($1)[0m [["version", "20160805095308"]]
|
30791
|
+
[1m[35m (1.7ms)[0m COMMIT
|
30792
|
+
Migrating to AddTypeToUsers (20160806011259)
|
30793
|
+
[1m[36m (0.4ms)[0m [1mBEGIN[0m
|
30794
|
+
[1m[35m (0.9ms)[0m ALTER TABLE "users" ADD "type" character varying
|
30795
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ($1)[0m [["version", "20160806011259"]]
|
30796
|
+
[1m[35m (1.7ms)[0m COMMIT
|
30797
|
+
Migrating to AddTypeToPayments (20160806012210)
|
30798
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
30799
|
+
[1m[35m (4.5ms)[0m ALTER TABLE "payments" ADD "type" character varying
|
30800
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ($1)[0m [["version", "20160806012210"]]
|
30801
|
+
[1m[35m (1.1ms)[0m COMMIT
|
30802
|
+
Migrating to CreateBloomRemitResponses (20160806054012)
|
30803
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
30804
|
+
[1m[35m (9.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)
|
30805
|
+
[1m[36m (3.3ms)[0m [1mCREATE INDEX "index_bloom_remit_responses_on_txn_id" ON "bloom_remit_responses" ("txn_id")[0m
|
30806
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20160806054012"]]
|
30807
|
+
[1m[36m (1.2ms)[0m [1mCOMMIT[0m
|
30808
|
+
Migrating to AddExternalIdToBloomRemitTxns (20160808081300)
|
30809
|
+
[1m[35m (0.3ms)[0m BEGIN
|
30810
|
+
[1m[36m (0.7ms)[0m [1mALTER TABLE "bloom_remit_txns" ADD "external_id" character varying NOT NULL[0m
|
30811
|
+
[1m[35m (2.2ms)[0m CREATE INDEX "index_bloom_remit_txns_on_external_id" ON "bloom_remit_txns" ("external_id")
|
30812
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ($1)[0m [["version", "20160808081300"]]
|
30813
|
+
[1m[35m (0.8ms)[0m COMMIT
|
30814
|
+
Migrating to AddStatusDescriptionToBloomRemitTxns (20160809043433)
|
30815
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
30816
|
+
[1m[35m (2.2ms)[0m ALTER TABLE "bloom_remit_txns" ADD "status_description" text
|
30817
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ($1)[0m [["version", "20160809043433"]]
|
30818
|
+
[1m[35m (1.0ms)[0m COMMIT
|
30819
|
+
Migrating to AddVendorExternalIdToBloomRemitTxns (20160817003323)
|
30820
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
30821
|
+
[1m[35m (0.5ms)[0m ALTER TABLE "bloom_remit_txns" ADD "vendor_external_id" character varying
|
30822
|
+
[1m[36m (2.9ms)[0m [1mCREATE INDEX "index_bloom_remit_txns_on_vendor_external_id" ON "bloom_remit_txns" ("vendor_external_id")[0m
|
30823
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20160817003323"]]
|
30824
|
+
[1m[36m (0.7ms)[0m [1mCOMMIT[0m
|
30825
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.4ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
30826
|
+
[1m[36m (2.2ms)[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
|
30827
|
+
FROM pg_constraint c
|
30828
|
+
JOIN pg_class t1 ON c.conrelid = t1.oid
|
30829
|
+
JOIN pg_class t2 ON c.confrelid = t2.oid
|
30830
|
+
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
|
30831
|
+
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
|
30832
|
+
JOIN pg_namespace t3 ON c.connamespace = t3.oid
|
30833
|
+
WHERE c.contype = 'f'
|
30834
|
+
AND t1.relname = 'billers'
|
30835
|
+
AND t3.nspname = ANY (current_schemas(false))
|
30836
|
+
ORDER BY c.conname
|
30837
|
+
[0m
|
30838
|
+
[1m[35m (2.1ms)[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
|
30839
|
+
FROM pg_constraint c
|
30840
|
+
JOIN pg_class t1 ON c.conrelid = t1.oid
|
30841
|
+
JOIN pg_class t2 ON c.confrelid = t2.oid
|
30842
|
+
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
|
30843
|
+
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
|
30844
|
+
JOIN pg_namespace t3 ON c.connamespace = t3.oid
|
30845
|
+
WHERE c.contype = 'f'
|
30846
|
+
AND t1.relname = 'bloom_remit_responses'
|
30847
|
+
AND t3.nspname = ANY (current_schemas(false))
|
30848
|
+
ORDER BY c.conname
|
30849
|
+
|
30850
|
+
[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
|
30851
|
+
FROM pg_constraint c
|
30852
|
+
JOIN pg_class t1 ON c.conrelid = t1.oid
|
30853
|
+
JOIN pg_class t2 ON c.confrelid = t2.oid
|
30854
|
+
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
|
30855
|
+
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
|
30856
|
+
JOIN pg_namespace t3 ON c.connamespace = t3.oid
|
30857
|
+
WHERE c.contype = 'f'
|
30858
|
+
AND t1.relname = 'bloom_remit_txns'
|
30859
|
+
AND t3.nspname = ANY (current_schemas(false))
|
30860
|
+
ORDER BY c.conname
|
30861
|
+
[0m
|
30862
|
+
[1m[35m (2.2ms)[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
|
30863
|
+
FROM pg_constraint c
|
30864
|
+
JOIN pg_class t1 ON c.conrelid = t1.oid
|
30865
|
+
JOIN pg_class t2 ON c.confrelid = t2.oid
|
30866
|
+
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
|
30867
|
+
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
|
30868
|
+
JOIN pg_namespace t3 ON c.connamespace = t3.oid
|
30869
|
+
WHERE c.contype = 'f'
|
30870
|
+
AND t1.relname = 'payments'
|
30871
|
+
AND t3.nspname = ANY (current_schemas(false))
|
30872
|
+
ORDER BY c.conname
|
30873
|
+
|
30874
|
+
[1m[36m (2.0ms)[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
|
30875
|
+
FROM pg_constraint c
|
30876
|
+
JOIN pg_class t1 ON c.conrelid = t1.oid
|
30877
|
+
JOIN pg_class t2 ON c.confrelid = t2.oid
|
30878
|
+
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
|
30879
|
+
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
|
30880
|
+
JOIN pg_namespace t3 ON c.connamespace = t3.oid
|
30881
|
+
WHERE c.contype = 'f'
|
30882
|
+
AND t1.relname = 'users'
|
30883
|
+
AND t3.nspname = ANY (current_schemas(false))
|
30884
|
+
ORDER BY c.conname
|
30885
|
+
[0m
|
30886
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.5ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
30887
|
+
[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
|
30888
|
+
[1m[36m (1.3ms)[0m [1m SELECT schemaname || '.' || tablename
|
30889
|
+
FROM pg_tables
|
30890
|
+
WHERE
|
30891
|
+
tablename !~ '_prt_' AND
|
30892
|
+
tablename <> 'schema_migrations' AND
|
30893
|
+
schemaname = ANY (current_schemas(false))
|
30894
|
+
[0m
|
30895
|
+
[1m[35m (1.2ms)[0m select table_name from information_schema.views where table_schema = 'app_test'
|
30896
|
+
[1m[36m (26.4ms)[0m [1mTRUNCATE TABLE "public"."billers", "public"."users", "public"."payments", "public"."bloom_remit_responses", "public"."bloom_remit_txns" RESTART IDENTITY CASCADE;[0m
|
30897
|
+
[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
|
30898
|
+
[1m[36m (0.4ms)[0m [1mBEGIN[0m
|
30899
|
+
[1m[35m (0.4ms)[0m COMMIT
|
30900
|
+
[1m[36m (0.4ms)[0m [1mBEGIN[0m
|
30901
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
30902
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
30903
|
+
[1m[35m (0.3ms)[0m COMMIT
|
30904
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
30905
|
+
[1m[35m (0.4ms)[0m ROLLBACK
|
30906
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
30907
|
+
[1m[35m (0.2ms)[0m COMMIT
|
30908
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
30909
|
+
[1m[35m (0.5ms)[0m ROLLBACK
|
30910
|
+
[1m[36m (0.5ms)[0m [1mBEGIN[0m
|
30911
|
+
[1m[35mSQL (0.7ms)[0m INSERT INTO "billers" ("slug") VALUES ($1) RETURNING "id" [["slug", "PLDT"]]
|
30912
|
+
[1m[36m (1.8ms)[0m [1mCOMMIT[0m
|
30913
|
+
[1m[35m (0.7ms)[0m BEGIN
|
30914
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "users" ("type") VALUES ($1) RETURNING "id"[0m [["type", "SubUser"]]
|
30915
|
+
[1m[35m (0.9ms)[0m COMMIT
|
30916
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
30917
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "payments" ("type") VALUES ($1) RETURNING "id" [["type", "SubPayment"]]
|
30918
|
+
[1m[36m (0.9ms)[0m [1mCOMMIT[0m
|
30919
|
+
[1m[35m (0.3ms)[0m BEGIN
|
30920
|
+
[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", "b7b69113-ca68-43e5-b78c-ad22e96cb8b2"], ["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", "ac0eb9debf9e009c2864dc7c"]]
|
30921
|
+
[1m[35m (0.9ms)[0m COMMIT
|
30922
|
+
[1m[36mUser Load (0.4ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1[0m [["id", 1]]
|
30923
|
+
[1m[35mPayment Load (0.4ms)[0m SELECT "payments".* FROM "payments" WHERE "payments"."id" = $1 LIMIT 1 [["id", 1]]
|
30924
|
+
[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
|
30925
|
+
[1m[35m (35.1ms)[0m TRUNCATE TABLE "public"."billers", "public"."users", "public"."payments", "public"."bloom_remit_responses", "public"."bloom_remit_txns" RESTART IDENTITY CASCADE;
|
30926
|
+
[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
|
30927
|
+
[1m[35m (0.4ms)[0m BEGIN
|
30928
|
+
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO "users" DEFAULT VALUES RETURNING "id"[0m
|
30929
|
+
[1m[35m (0.9ms)[0m COMMIT
|
30930
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
30931
|
+
[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", "29451f7c-e40b-43c0-9b87-19348a2b7224"], ["external_id", "9e70c49e5fd3514fb2b33e85"], ["sender_id", "1"], ["sender_type", "User"]]
|
30932
|
+
[1m[36m (0.8ms)[0m [1mCOMMIT[0m
|
30933
|
+
[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", "29451f7c-e40b-43c0-9b87-19348a2b7224"]]
|
30934
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
30935
|
+
[1m[35mSQL (1.3ms)[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]]
|
30936
|
+
[1m[36m (0.8ms)[0m [1mCOMMIT[0m
|
30937
|
+
[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
|
30938
|
+
[1m[36m (36.4ms)[0m [1mTRUNCATE TABLE "public"."billers", "public"."users", "public"."payments", "public"."bloom_remit_responses", "public"."bloom_remit_txns" RESTART IDENTITY CASCADE;[0m
|
30939
|
+
[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
|
30940
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
30941
|
+
[1m[35m (0.2ms)[0m COMMIT
|
30942
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
30943
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
30944
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
30945
|
+
[1m[35m (0.2ms)[0m COMMIT
|
30946
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
30947
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
30948
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
30949
|
+
[1m[35m (0.2ms)[0m COMMIT
|
30950
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
30951
|
+
[1m[35m (0.4ms)[0m ROLLBACK
|
30952
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
30953
|
+
[1m[35m (0.2ms)[0m COMMIT
|
30954
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
30955
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
30956
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
30957
|
+
[1m[35m (0.2ms)[0m COMMIT
|
30958
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
30959
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
30960
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
30961
|
+
[1m[35m (0.2ms)[0m COMMIT
|
30962
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
30963
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
30964
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
30965
|
+
[1m[35m (0.2ms)[0m COMMIT
|
30966
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
30967
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
30968
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
30969
|
+
[1m[35m (0.2ms)[0m COMMIT
|
30970
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
30971
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
30972
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "users" DEFAULT VALUES RETURNING "id"[0m
|
30973
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
30974
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
30975
|
+
[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", "aafcc137-973b-4b1b-af6f-235cfabe8b48"], ["external_id", "fab80018c674dc857bc86bd9"], ["sender_id", "1"], ["sender_type", "User"]]
|
30976
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
30977
|
+
Started POST "/bloom_remit/api/v1/txns/1" for 127.0.0.1 at 2016-09-01 08:28:10 +0000
|
30978
|
+
Processing by BloomRemit::Api::V1::TxnsController#post_update as JSON
|
30979
|
+
Parameters: {"secret"=>"fake", "status"=>"doesn't matter", "id"=>"1", "txn"=>{"status"=>"doesn't matter", "secret"=>"fake"}}
|
30980
|
+
[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]]
|
30981
|
+
Rendered text template (0.0ms)
|
30982
|
+
Completed 404 Not Found in 51ms (Views: 48.6ms | ActiveRecord: 0.4ms)
|
30983
|
+
Started POST "/bloom_remit/api/v1/txns/1" for 127.0.0.1 at 2016-09-01 08:28:11 +0000
|
30984
|
+
Processing by BloomRemit::Api::V1::TxnsController#post_update as JSON
|
30985
|
+
Parameters: {"secret"=>"aafcc137-973b-4b1b-af6f-235cfabe8b48", "status"=>"paid", "id"=>"1", "txn"=>{"status"=>"paid", "secret"=>"aafcc137-973b-4b1b-af6f-235cfabe8b48"}}
|
30986
|
+
[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", "aafcc137-973b-4b1b-af6f-235cfabe8b48"]]
|
30987
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
30988
|
+
[1m[36mSQL (0.3ms)[0m [1mUPDATE "bloom_remit_txns" SET "status" = $1 WHERE "bloom_remit_txns"."id" = $2[0m [["status", 1], ["id", 1]]
|
30989
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
30990
|
+
Completed 200 OK in 8ms (Views: 0.4ms | ActiveRecord: 1.1ms)
|
30991
|
+
[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]]
|
30992
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
30993
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
30994
|
+
[1m[35m (0.2ms)[0m COMMIT
|
30995
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
30996
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
30997
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" DEFAULT VALUES RETURNING "id"[0m
|
30998
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
30999
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
31000
|
+
[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", "50716e10-ab3b-4a62-b681-f62063de9107"], ["external_id", "7174e538a66c3ff17d99122f"], ["sender_id", "2"], ["sender_type", "User"]]
|
31001
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
31002
|
+
Started PATCH "/bloom_remit/api/v1/txns/2" for 127.0.0.1 at 2016-09-01 08:28:11 +0000
|
31003
|
+
Processing by BloomRemit::Api::V1::TxnsController#update as JSON
|
31004
|
+
Parameters: {"secret"=>"fake", "status"=>"doesn't matter", "id"=>"2", "txn"=>{"status"=>"doesn't matter", "secret"=>"fake"}}
|
31005
|
+
[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]]
|
31006
|
+
Rendered text template (0.0ms)
|
31007
|
+
Completed 404 Not Found in 3ms (Views: 0.9ms | ActiveRecord: 0.4ms)
|
31008
|
+
Started PATCH "/bloom_remit/api/v1/txns/2" for 127.0.0.1 at 2016-09-01 08:28:11 +0000
|
31009
|
+
Processing by BloomRemit::Api::V1::TxnsController#update as JSON
|
31010
|
+
Parameters: {"secret"=>"50716e10-ab3b-4a62-b681-f62063de9107", "status"=>"paid", "id"=>"2", "txn"=>{"status"=>"paid", "secret"=>"50716e10-ab3b-4a62-b681-f62063de9107"}}
|
31011
|
+
[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", "50716e10-ab3b-4a62-b681-f62063de9107"]]
|
31012
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
31013
|
+
[1m[36mSQL (0.3ms)[0m [1mUPDATE "bloom_remit_txns" SET "status" = $1 WHERE "bloom_remit_txns"."id" = $2[0m [["status", 1], ["id", 2]]
|
31014
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
31015
|
+
Completed 204 No Content in 58ms (ActiveRecord: 1.2ms)
|
31016
|
+
[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]]
|
31017
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
31018
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
31019
|
+
[1m[35m (0.2ms)[0m COMMIT
|
31020
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
31021
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
31022
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("type") VALUES ($1) RETURNING "id"[0m [["type", "SubUser"]]
|
31023
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
31024
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
31025
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "billers" ("slug") VALUES ($1) RETURNING "id" [["slug", "PLDT"]]
|
31026
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
31027
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
31028
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "payments" ("type") VALUES ($1) RETURNING "id"[0m [["type", "SubPayment"]]
|
31029
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
31030
|
+
[1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m
|
31031
|
+
[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", "383d5a17-8eab-4efe-8f83-2e329648c2b8"], ["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", "0616630a029ab914ed83d6e6"]]
|
31032
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
31033
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
31034
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
31035
|
+
[1m[35m (0.2ms)[0m COMMIT
|
31036
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
31037
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
31038
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
31039
|
+
[1m[35m (0.3ms)[0m COMMIT
|
31040
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
31041
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
31042
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "payments" DEFAULT VALUES RETURNING "id"[0m
|
31043
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
31044
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
31045
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "users" DEFAULT VALUES RETURNING "id"
|
31046
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
31047
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
31048
|
+
[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", "6fa65d97-1cc8-47d6-acd5-807fb0e4a29a"], ["external_id", "de91f07512aba2b1fc7e568b"], ["owner_id", "2"], ["owner_type", "Payment"], ["sender_id", "4"], ["sender_type", "User"]]
|
31049
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
31050
|
+
[1m[36m (0.4ms)[0m [1mROLLBACK[0m
|
31051
|
+
[1m[35m (0.1ms)[0m BEGIN
|
31052
|
+
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
|
31053
|
+
[1m[35m (0.2ms)[0m BEGIN
|
31054
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
31055
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "payments" DEFAULT VALUES RETURNING "id"
|
31056
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
31057
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
31058
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" DEFAULT VALUES RETURNING "id"[0m
|
31059
|
+
[1m[35m (0.6ms)[0m RELEASE SAVEPOINT active_record_1
|
31060
|
+
[1m[36m (0.4ms)[0m [1mSAVEPOINT active_record_1[0m
|
31061
|
+
[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", "3380bc90-f525-474c-a1bf-fac7cc22933e"], ["external_id", "ae82cbca98a7b676c9cfcef8"], ["owner_id", "3"], ["owner_type", "Payment"], ["sender_id", "5"], ["sender_type", "User"]]
|
31062
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
31063
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
31064
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
31065
|
+
[1m[35m (0.2ms)[0m COMMIT
|
31066
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
31067
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
31068
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
31069
|
+
[1m[35m (0.2ms)[0m COMMIT
|
31070
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
31071
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
31072
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
31073
|
+
[1m[35m (0.2ms)[0m COMMIT
|
31074
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
31075
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
31076
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
31077
|
+
[1m[35m (0.2ms)[0m COMMIT
|
31078
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
31079
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
31080
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
31081
|
+
[1m[35m (0.2ms)[0m COMMIT
|
31082
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
31083
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
31084
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.6ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
31085
|
+
[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
|
31086
|
+
[1m[36m (1.3ms)[0m [1m SELECT schemaname || '.' || tablename
|
31087
|
+
FROM pg_tables
|
31088
|
+
WHERE
|
31089
|
+
tablename !~ '_prt_' AND
|
31090
|
+
tablename <> 'schema_migrations' AND
|
31091
|
+
schemaname = ANY (current_schemas(false))
|
31092
|
+
[0m
|
31093
|
+
[1m[35m (1.2ms)[0m select table_name from information_schema.views where table_schema = 'app_test'
|
31094
|
+
[1m[36m (32.7ms)[0m [1mTRUNCATE TABLE "public"."billers", "public"."users", "public"."payments", "public"."bloom_remit_responses", "public"."bloom_remit_txns" RESTART IDENTITY CASCADE;[0m
|
31095
|
+
[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
|
31096
|
+
[1m[36m (0.4ms)[0m [1mBEGIN[0m
|
31097
|
+
[1m[35m (0.3ms)[0m COMMIT
|
31098
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
31099
|
+
[1m[35m (0.3ms)[0m SAVEPOINT active_record_1
|
31100
|
+
[1m[36mSQL (0.7ms)[0m [1mINSERT INTO "payments" DEFAULT VALUES RETURNING "id"[0m
|
31101
|
+
[1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1
|
31102
|
+
[1m[36m (0.4ms)[0m [1mSAVEPOINT active_record_1[0m
|
31103
|
+
[1m[35mSQL (0.7ms)[0m INSERT INTO "users" DEFAULT VALUES RETURNING "id"
|
31104
|
+
[1m[36m (0.6ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
31105
|
+
[1m[35m (0.3ms)[0m SAVEPOINT active_record_1
|
31106
|
+
[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", "f2a38286-2fd8-4335-9e36-6e33046f9c02"], ["external_id", "b2a706b639cabd35a017c6a1"], ["owner_id", "1"], ["owner_type", "Payment"], ["sender_id", "1"], ["sender_type", "User"]]
|
31107
|
+
[1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1
|
31108
|
+
[1m[36m (0.5ms)[0m [1mROLLBACK[0m
|
31109
|
+
[1m[35m (0.3ms)[0m BEGIN
|
31110
|
+
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
|
31111
|
+
[1m[35m (0.3ms)[0m BEGIN
|
31112
|
+
[1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m
|
31113
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "payments" DEFAULT VALUES RETURNING "id"
|
31114
|
+
[1m[36m (0.5ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
31115
|
+
[1m[35m (0.3ms)[0m SAVEPOINT active_record_1
|
31116
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "users" DEFAULT VALUES RETURNING "id"[0m
|
31117
|
+
[1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1
|
31118
|
+
[1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m
|
31119
|
+
[1m[35mSQL (0.6ms)[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", "0490b469-a25a-4108-9204-8aa8dd5d755c"], ["external_id", "078ed02b9909dc1d1c9965b2"], ["owner_id", "2"], ["owner_type", "Payment"], ["sender_id", "2"], ["sender_type", "User"]]
|
31120
|
+
[1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
31121
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
31122
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.6ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
31123
|
+
[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
|
31124
|
+
[1m[36m (1.3ms)[0m [1m SELECT schemaname || '.' || tablename
|
31125
|
+
FROM pg_tables
|
31126
|
+
WHERE
|
31127
|
+
tablename !~ '_prt_' AND
|
31128
|
+
tablename <> 'schema_migrations' AND
|
31129
|
+
schemaname = ANY (current_schemas(false))
|
31130
|
+
[0m
|
31131
|
+
[1m[35m (1.2ms)[0m select table_name from information_schema.views where table_schema = 'app_test'
|
31132
|
+
[1m[36m (26.6ms)[0m [1mTRUNCATE TABLE "public"."billers", "public"."users", "public"."payments", "public"."bloom_remit_responses", "public"."bloom_remit_txns" RESTART IDENTITY CASCADE;[0m
|
31133
|
+
[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
|
31134
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.5ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
31135
|
+
[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
|
31136
|
+
[1m[36m (1.3ms)[0m [1m SELECT schemaname || '.' || tablename
|
31137
|
+
FROM pg_tables
|
31138
|
+
WHERE
|
31139
|
+
tablename !~ '_prt_' AND
|
31140
|
+
tablename <> 'schema_migrations' AND
|
31141
|
+
schemaname = ANY (current_schemas(false))
|
31142
|
+
[0m
|
31143
|
+
[1m[35m (1.1ms)[0m select table_name from information_schema.views where table_schema = 'app_test'
|
31144
|
+
[1m[36m (33.8ms)[0m [1mTRUNCATE TABLE "public"."billers", "public"."users", "public"."payments", "public"."bloom_remit_responses", "public"."bloom_remit_txns" RESTART IDENTITY CASCADE;[0m
|
31145
|
+
[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
|
31146
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
31147
|
+
[1m[35m (0.4ms)[0m COMMIT
|
31148
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
31149
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
31150
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "payments" DEFAULT VALUES RETURNING "id"[0m
|
31151
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
31152
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
31153
|
+
[1m[35mSQL (0.6ms)[0m INSERT INTO "users" DEFAULT VALUES RETURNING "id"
|
31154
|
+
[1m[36m (0.4ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
31155
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
31156
|
+
[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", "18d7fd37-afde-4ae7-b7c2-a8dd670f4be2"], ["external_id", "0570128fc84b173c60c484ee"], ["owner_id", "1"], ["owner_type", "Payment"], ["sender_id", "1"], ["sender_type", "User"]]
|
31157
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
31158
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
31159
|
+
[1m[35m (0.2ms)[0m BEGIN
|
31160
|
+
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
|
31161
|
+
[1m[35m (0.2ms)[0m BEGIN
|
31162
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
31163
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "payments" DEFAULT VALUES RETURNING "id"
|
31164
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
31165
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
31166
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" DEFAULT VALUES RETURNING "id"[0m
|
31167
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
31168
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
31169
|
+
[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", "ab7faddd-844e-4f60-99ed-1051c336f19c"], ["external_id", "5959df784423b9b99808abcb"], ["owner_id", "2"], ["owner_type", "Payment"], ["sender_id", "2"], ["sender_type", "User"]]
|
31170
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
31171
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
31172
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.5ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
31173
|
+
[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
|
31174
|
+
[1m[36m (1.2ms)[0m [1m SELECT schemaname || '.' || tablename
|
31175
|
+
FROM pg_tables
|
31176
|
+
WHERE
|
31177
|
+
tablename !~ '_prt_' AND
|
31178
|
+
tablename <> 'schema_migrations' AND
|
31179
|
+
schemaname = ANY (current_schemas(false))
|
31180
|
+
[0m
|
31181
|
+
[1m[35m (1.1ms)[0m select table_name from information_schema.views where table_schema = 'app_test'
|
31182
|
+
[1m[36m (38.8ms)[0m [1mTRUNCATE TABLE "public"."billers", "public"."users", "public"."payments", "public"."bloom_remit_responses", "public"."bloom_remit_txns" RESTART IDENTITY CASCADE;[0m
|
31183
|
+
[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
|
31184
|
+
[1m[36m (0.4ms)[0m [1mBEGIN[0m
|
31185
|
+
[1m[35m (0.3ms)[0m COMMIT
|
31186
|
+
[1m[36m (0.4ms)[0m [1mBEGIN[0m
|
31187
|
+
[1m[35m (0.3ms)[0m SAVEPOINT active_record_1
|
31188
|
+
[1m[36mSQL (0.7ms)[0m [1mINSERT INTO "payments" DEFAULT VALUES RETURNING "id"[0m
|
31189
|
+
[1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1
|
31190
|
+
[1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m
|
31191
|
+
[1m[35mSQL (0.7ms)[0m INSERT INTO "users" DEFAULT VALUES RETURNING "id"
|
31192
|
+
[1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
31193
|
+
[1m[35m (0.3ms)[0m SAVEPOINT active_record_1
|
31194
|
+
[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", "b8a1b4b5-b10d-4fd8-952e-914e4a714539"], ["external_id", "b37131f8f23e9449d2c40e97"], ["owner_id", "1"], ["owner_type", "Payment"], ["sender_id", "1"], ["sender_type", "User"]]
|
31195
|
+
[1m[35m (0.4ms)[0m RELEASE SAVEPOINT active_record_1
|
31196
|
+
[1m[36m (0.3ms)[0m [1mROLLBACK[0m
|
31197
|
+
[1m[35m (0.3ms)[0m BEGIN
|
31198
|
+
[1m[36m (0.6ms)[0m [1mCOMMIT[0m
|
31199
|
+
[1m[35m (0.6ms)[0m BEGIN
|
31200
|
+
[1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m
|
31201
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "payments" DEFAULT VALUES RETURNING "id"
|
31202
|
+
[1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
31203
|
+
[1m[35m (0.3ms)[0m SAVEPOINT active_record_1
|
31204
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" DEFAULT VALUES RETURNING "id"[0m
|
31205
|
+
[1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1
|
31206
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
31207
|
+
[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", "7585a816-1191-44e0-8e29-5583782f91d8"], ["external_id", "19567584dbda43cf1574d76c"], ["owner_id", "2"], ["owner_type", "Payment"], ["sender_id", "2"], ["sender_type", "User"]]
|
31208
|
+
[1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
31209
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
31210
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.5ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
31211
|
+
[1m[35m (0.8ms)[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
|
31212
|
+
[1m[36m (1.2ms)[0m [1m SELECT schemaname || '.' || tablename
|
31213
|
+
FROM pg_tables
|
31214
|
+
WHERE
|
31215
|
+
tablename !~ '_prt_' AND
|
31216
|
+
tablename <> 'schema_migrations' AND
|
31217
|
+
schemaname = ANY (current_schemas(false))
|
31218
|
+
[0m
|
31219
|
+
[1m[35m (1.0ms)[0m select table_name from information_schema.views where table_schema = 'app_test'
|
31220
|
+
[1m[36m (36.7ms)[0m [1mTRUNCATE TABLE "public"."billers", "public"."users", "public"."payments", "public"."bloom_remit_responses", "public"."bloom_remit_txns" RESTART IDENTITY CASCADE;[0m
|
31221
|
+
[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
|
31222
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
31223
|
+
[1m[35m (0.3ms)[0m COMMIT
|
31224
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
31225
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
31226
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "payments" DEFAULT VALUES RETURNING "id"[0m
|
31227
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
31228
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
31229
|
+
[1m[35mSQL (0.6ms)[0m INSERT INTO "users" DEFAULT VALUES RETURNING "id"
|
31230
|
+
[1m[36m (0.4ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
31231
|
+
[1m[35m (0.3ms)[0m SAVEPOINT active_record_1
|
31232
|
+
[1m[36mSQL (1.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", "235e5623-9bcd-4c19-9451-7046432e612f"], ["external_id", "1af730ef4d77b4c3ef299e10"], ["owner_id", "1"], ["owner_type", "Payment"], ["sender_id", "1"], ["sender_type", "User"]]
|
31233
|
+
[1m[35m (0.5ms)[0m RELEASE SAVEPOINT active_record_1
|
31234
|
+
[1m[36m (0.6ms)[0m [1mROLLBACK[0m
|
31235
|
+
[1m[35m (0.1ms)[0m BEGIN
|
31236
|
+
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
|
31237
|
+
[1m[35m (0.1ms)[0m BEGIN
|
31238
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
31239
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "payments" DEFAULT VALUES RETURNING "id"
|
31240
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
31241
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
31242
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "users" DEFAULT VALUES RETURNING "id"[0m
|
31243
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
31244
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
31245
|
+
[1m[35mSQL (0.3ms)[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", "1e874f7f-78a1-41f1-b6a0-6d93ac8794ab"], ["external_id", "e9c4de674a71c3a4c3b033e0"], ["owner_id", "2"], ["owner_type", "Payment"], ["sender_id", "2"], ["sender_type", "User"]]
|
31246
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
31247
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
31248
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.6ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
31249
|
+
[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
|
31250
|
+
[1m[36m (1.3ms)[0m [1m SELECT schemaname || '.' || tablename
|
31251
|
+
FROM pg_tables
|
31252
|
+
WHERE
|
31253
|
+
tablename !~ '_prt_' AND
|
31254
|
+
tablename <> 'schema_migrations' AND
|
31255
|
+
schemaname = ANY (current_schemas(false))
|
31256
|
+
[0m
|
31257
|
+
[1m[35m (1.1ms)[0m select table_name from information_schema.views where table_schema = 'app_test'
|
31258
|
+
[1m[36m (28.2ms)[0m [1mTRUNCATE TABLE "public"."billers", "public"."users", "public"."payments", "public"."bloom_remit_responses", "public"."bloom_remit_txns" RESTART IDENTITY CASCADE;[0m
|
31259
|
+
[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
|
31260
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
31261
|
+
[1m[35m (0.3ms)[0m COMMIT
|
31262
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
31263
|
+
[1m[35m (0.3ms)[0m SAVEPOINT active_record_1
|
31264
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "payments" DEFAULT VALUES RETURNING "id"[0m
|
31265
|
+
[1m[35m (0.4ms)[0m RELEASE SAVEPOINT active_record_1
|
31266
|
+
[1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m
|
31267
|
+
[1m[35mSQL (0.6ms)[0m INSERT INTO "users" DEFAULT VALUES RETURNING "id"
|
31268
|
+
[1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
31269
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
31270
|
+
[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", "732423bb-eddc-4e17-9dbe-18d9d1cb811d"], ["external_id", "51841a7af95130ba1a73513a"], ["owner_id", "1"], ["owner_type", "Payment"], ["sender_id", "1"], ["sender_type", "User"]]
|
31271
|
+
[1m[35m (0.4ms)[0m RELEASE SAVEPOINT active_record_1
|
31272
|
+
[1m[36m (0.4ms)[0m [1mSAVEPOINT active_record_1[0m
|
31273
|
+
[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", 1], ["created_at", "2016-09-01 08:36:57.667933"], ["updated_at", "2016-09-01 08:36:57.667933"]]
|
31274
|
+
[1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
31275
|
+
[1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "bloom_remit_responses" WHERE "bloom_remit_responses"."txn_id" = $1 [["txn_id", 1]]
|
31276
|
+
[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", 1]]
|
31277
|
+
[1m[35m (0.5ms)[0m ROLLBACK
|
31278
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
31279
|
+
[1m[35m (0.4ms)[0m COMMIT
|
31280
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
31281
|
+
[1m[35m (0.4ms)[0m SAVEPOINT active_record_1
|
31282
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "payments" DEFAULT VALUES RETURNING "id"[0m
|
31283
|
+
[1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1
|
31284
|
+
[1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m
|
31285
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "users" DEFAULT VALUES RETURNING "id"
|
31286
|
+
[1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
31287
|
+
[1m[35m (0.3ms)[0m SAVEPOINT active_record_1
|
31288
|
+
[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", "b6b38d6b-e6c2-43ce-b13f-8bfd44ad76a8"], ["external_id", "59eb8773a9f756be6c53a8e6"], ["owner_id", "2"], ["owner_type", "Payment"], ["sender_id", "2"], ["sender_type", "User"]]
|
31289
|
+
[1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1
|
31290
|
+
[1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m
|
31291
|
+
[1m[35mSQL (0.5ms)[0m UPDATE "bloom_remit_txns" SET "status" = $1 WHERE "bloom_remit_txns"."id" = $2 [["status", 7], ["id", 2]]
|
31292
|
+
[1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
31293
|
+
[1m[35m (0.3ms)[0m SAVEPOINT active_record_1
|
31294
|
+
[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", 2], ["created_at", "2016-09-01 08:36:57.755027"], ["updated_at", "2016-09-01 08:36:57.755027"]]
|
31295
|
+
[1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1
|
31296
|
+
[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]]
|
31297
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
31298
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.6ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
31299
|
+
[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
|
31300
|
+
[1m[36m (1.3ms)[0m [1m SELECT schemaname || '.' || tablename
|
31301
|
+
FROM pg_tables
|
31302
|
+
WHERE
|
31303
|
+
tablename !~ '_prt_' AND
|
31304
|
+
tablename <> 'schema_migrations' AND
|
31305
|
+
schemaname = ANY (current_schemas(false))
|
31306
|
+
[0m
|
31307
|
+
[1m[35m (1.2ms)[0m select table_name from information_schema.views where table_schema = 'app_test'
|
31308
|
+
[1m[36m (33.2ms)[0m [1mTRUNCATE TABLE "public"."billers", "public"."users", "public"."payments", "public"."bloom_remit_responses", "public"."bloom_remit_txns" RESTART IDENTITY CASCADE;[0m
|
31309
|
+
[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
|
31310
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
31311
|
+
[1m[35m (0.4ms)[0m COMMIT
|
31312
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
31313
|
+
[1m[35m (0.8ms)[0m ROLLBACK
|
31314
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
31315
|
+
[1m[35m (0.4ms)[0m COMMIT
|
31316
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
31317
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
31318
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
31319
|
+
[1m[35m (0.3ms)[0m COMMIT
|
31320
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
31321
|
+
[1m[35m (0.4ms)[0m ROLLBACK
|
31322
|
+
[1m[36m (0.4ms)[0m [1mBEGIN[0m
|
31323
|
+
[1m[35mSQL (1.3ms)[0m INSERT INTO "billers" ("slug") VALUES ($1) RETURNING "id" [["slug", "PLDT"]]
|
31324
|
+
[1m[36m (1.7ms)[0m [1mCOMMIT[0m
|
31325
|
+
[1m[35m (0.2ms)[0m BEGIN
|
31326
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("type") VALUES ($1) RETURNING "id"[0m [["type", "SubUser"]]
|
31327
|
+
[1m[35m (0.8ms)[0m COMMIT
|
31328
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
31329
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "payments" ("type") VALUES ($1) RETURNING "id" [["type", "SubPayment"]]
|
31330
|
+
[1m[36m (0.9ms)[0m [1mCOMMIT[0m
|
31331
|
+
[1m[35m (0.2ms)[0m BEGIN
|
31332
|
+
[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", "2935470c-8fa5-4d20-aa94-4c04b3ba75aa"], ["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", "0093d4a144f850794a78439c"]]
|
31333
|
+
[1m[35m (0.8ms)[0m COMMIT
|
31334
|
+
[1m[36mUser Load (0.3ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1[0m [["id", 1]]
|
31335
|
+
[1m[35mPayment Load (0.4ms)[0m SELECT "payments".* FROM "payments" WHERE "payments"."id" = $1 LIMIT 1 [["id", 1]]
|
31336
|
+
[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
|
31337
|
+
[1m[35m (33.2ms)[0m TRUNCATE TABLE "public"."billers", "public"."users", "public"."payments", "public"."bloom_remit_responses", "public"."bloom_remit_txns" RESTART IDENTITY CASCADE;
|
31338
|
+
[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
|
31339
|
+
[1m[35m (0.2ms)[0m BEGIN
|
31340
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "users" DEFAULT VALUES RETURNING "id"[0m
|
31341
|
+
[1m[35m (0.6ms)[0m COMMIT
|
31342
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
31343
|
+
[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", "3445a3fd-5c88-471d-ad94-5457b5e1cdab"], ["external_id", "045f4d23680a331a785ca3d7"], ["sender_id", "1"], ["sender_type", "User"]]
|
31344
|
+
[1m[36m (0.7ms)[0m [1mCOMMIT[0m
|
31345
|
+
[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", "3445a3fd-5c88-471d-ad94-5457b5e1cdab"]]
|
31346
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
31347
|
+
[1m[35mSQL (0.3ms)[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]]
|
31348
|
+
[1m[36m (0.8ms)[0m [1mCOMMIT[0m
|
31349
|
+
[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
|
31350
|
+
[1m[36m (34.1ms)[0m [1mTRUNCATE TABLE "public"."billers", "public"."users", "public"."payments", "public"."bloom_remit_responses", "public"."bloom_remit_txns" RESTART IDENTITY CASCADE;[0m
|
31351
|
+
[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
|
31352
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
31353
|
+
[1m[35m (0.2ms)[0m COMMIT
|
31354
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
31355
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
31356
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
31357
|
+
[1m[35m (0.2ms)[0m COMMIT
|
31358
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
31359
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
31360
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
31361
|
+
[1m[35m (0.2ms)[0m COMMIT
|
31362
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
31363
|
+
[1m[35m (0.4ms)[0m ROLLBACK
|
31364
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
31365
|
+
[1m[35m (0.2ms)[0m COMMIT
|
31366
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
31367
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
31368
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
31369
|
+
[1m[35m (0.2ms)[0m COMMIT
|
31370
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
31371
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
31372
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
31373
|
+
[1m[35m (0.2ms)[0m COMMIT
|
31374
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
31375
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
31376
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
31377
|
+
[1m[35m (0.2ms)[0m COMMIT
|
31378
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
31379
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
31380
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
31381
|
+
[1m[35m (0.2ms)[0m COMMIT
|
31382
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
31383
|
+
[1m[35m (0.5ms)[0m SAVEPOINT active_record_1
|
31384
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "users" DEFAULT VALUES RETURNING "id"[0m
|
31385
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
31386
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
31387
|
+
[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", "faef9bb7-6374-4476-9424-667592765c30"], ["external_id", "287cf61afd727c5c40cdf7d7"], ["sender_id", "1"], ["sender_type", "User"]]
|
31388
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
31389
|
+
Started POST "/bloom_remit/api/v1/txns/1" for 127.0.0.1 at 2016-09-01 08:40:21 +0000
|
31390
|
+
Processing by BloomRemit::Api::V1::TxnsController#post_update as JSON
|
31391
|
+
Parameters: {"secret"=>"fake", "status"=>"doesn't matter", "id"=>"1", "txn"=>{"status"=>"doesn't matter", "secret"=>"fake"}}
|
31392
|
+
[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]]
|
31393
|
+
Rendered text template (0.0ms)
|
31394
|
+
Completed 404 Not Found in 54ms (Views: 52.0ms | ActiveRecord: 0.4ms)
|
31395
|
+
Started POST "/bloom_remit/api/v1/txns/1" for 127.0.0.1 at 2016-09-01 08:40:21 +0000
|
31396
|
+
Processing by BloomRemit::Api::V1::TxnsController#post_update as JSON
|
31397
|
+
Parameters: {"secret"=>"faef9bb7-6374-4476-9424-667592765c30", "status"=>"paid", "id"=>"1", "txn"=>{"status"=>"paid", "secret"=>"faef9bb7-6374-4476-9424-667592765c30"}}
|
31398
|
+
[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", "faef9bb7-6374-4476-9424-667592765c30"]]
|
31399
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
31400
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "bloom_remit_txns" SET "status" = $1 WHERE "bloom_remit_txns"."id" = $2[0m [["status", 1], ["id", 1]]
|
31401
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
31402
|
+
Completed 200 OK in 7ms (Views: 0.4ms | ActiveRecord: 1.0ms)
|
31403
|
+
[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]]
|
31404
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
31405
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
31406
|
+
[1m[35m (0.2ms)[0m COMMIT
|
31407
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
31408
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
31409
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" DEFAULT VALUES RETURNING "id"[0m
|
31410
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
31411
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
31412
|
+
[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", "2b86b0fc-0bc5-4b2b-a32c-4e01a3876ea4"], ["external_id", "cedeae050a38c571c6c209bd"], ["sender_id", "2"], ["sender_type", "User"]]
|
31413
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
31414
|
+
Started PATCH "/bloom_remit/api/v1/txns/2" for 127.0.0.1 at 2016-09-01 08:40:21 +0000
|
31415
|
+
Processing by BloomRemit::Api::V1::TxnsController#update as JSON
|
31416
|
+
Parameters: {"secret"=>"fake", "status"=>"doesn't matter", "id"=>"2", "txn"=>{"status"=>"doesn't matter", "secret"=>"fake"}}
|
31417
|
+
[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]]
|
31418
|
+
Rendered text template (0.0ms)
|
31419
|
+
Completed 404 Not Found in 3ms (Views: 1.0ms | ActiveRecord: 0.4ms)
|
31420
|
+
Started PATCH "/bloom_remit/api/v1/txns/2" for 127.0.0.1 at 2016-09-01 08:40:21 +0000
|
31421
|
+
Processing by BloomRemit::Api::V1::TxnsController#update as JSON
|
31422
|
+
Parameters: {"secret"=>"2b86b0fc-0bc5-4b2b-a32c-4e01a3876ea4", "status"=>"paid", "id"=>"2", "txn"=>{"status"=>"paid", "secret"=>"2b86b0fc-0bc5-4b2b-a32c-4e01a3876ea4"}}
|
31423
|
+
[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", "2b86b0fc-0bc5-4b2b-a32c-4e01a3876ea4"]]
|
31424
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
31425
|
+
[1m[36mSQL (0.5ms)[0m [1mUPDATE "bloom_remit_txns" SET "status" = $1 WHERE "bloom_remit_txns"."id" = $2[0m [["status", 1], ["id", 2]]
|
31426
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
31427
|
+
Completed 204 No Content in 47ms (ActiveRecord: 1.2ms)
|
31428
|
+
[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]]
|
31429
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
31430
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
31431
|
+
[1m[35m (0.2ms)[0m COMMIT
|
31432
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
31433
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
31434
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("type") VALUES ($1) RETURNING "id"[0m [["type", "SubUser"]]
|
31435
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
31436
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
31437
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "billers" ("slug") VALUES ($1) RETURNING "id" [["slug", "PLDT"]]
|
31438
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
31439
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
31440
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "payments" ("type") VALUES ($1) RETURNING "id"[0m [["type", "SubPayment"]]
|
31441
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
31442
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
31443
|
+
[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", "f73d1176-2716-4230-b98a-af564a5566f6"], ["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", "dc278d6fbda5aa0b1708f5db"]]
|
31444
|
+
[1m[36m (0.4ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
31445
|
+
[1m[35m (1.9ms)[0m ROLLBACK
|
31446
|
+
[1m[36m (2.7ms)[0m [1mBEGIN[0m
|
31447
|
+
[1m[35m (0.6ms)[0m COMMIT
|
31448
|
+
[1m[36m (0.6ms)[0m [1mBEGIN[0m
|
31449
|
+
[1m[35m (0.7ms)[0m ROLLBACK
|
31450
|
+
[1m[36m (0.4ms)[0m [1mBEGIN[0m
|
31451
|
+
[1m[35m (0.4ms)[0m COMMIT
|
31452
|
+
[1m[36m (0.4ms)[0m [1mBEGIN[0m
|
31453
|
+
[1m[35m (0.8ms)[0m SAVEPOINT active_record_1
|
31454
|
+
[1m[36mSQL (4.2ms)[0m [1mINSERT INTO "payments" DEFAULT VALUES RETURNING "id"[0m
|
31455
|
+
[1m[35m (0.8ms)[0m RELEASE SAVEPOINT active_record_1
|
31456
|
+
[1m[36m (0.5ms)[0m [1mSAVEPOINT active_record_1[0m
|
31457
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "users" DEFAULT VALUES RETURNING "id"
|
31458
|
+
[1m[36m (1.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
31459
|
+
[1m[35m (0.7ms)[0m SAVEPOINT active_record_1
|
31460
|
+
[1m[36mSQL (1.0ms)[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", "a113628f-420a-4380-b4ae-1db1223907bd"], ["external_id", "8d28b8e1bea5134259a1351f"], ["owner_id", "2"], ["owner_type", "Payment"], ["sender_id", "4"], ["sender_type", "User"]]
|
31461
|
+
[1m[35m (0.5ms)[0m RELEASE SAVEPOINT active_record_1
|
31462
|
+
[1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m
|
31463
|
+
[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-01 08:40:22.234828"], ["updated_at", "2016-09-01 08:40:22.234828"]]
|
31464
|
+
[1m[36m (0.4ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
31465
|
+
[1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "bloom_remit_responses" WHERE "bloom_remit_responses"."txn_id" = $1 [["txn_id", 4]]
|
31466
|
+
[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]]
|
31467
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
31468
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
31469
|
+
[1m[35m (0.4ms)[0m COMMIT
|
31470
|
+
[1m[36m (0.5ms)[0m [1mBEGIN[0m
|
31471
|
+
[1m[35m (0.3ms)[0m SAVEPOINT active_record_1
|
31472
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "payments" DEFAULT VALUES RETURNING "id"[0m
|
31473
|
+
[1m[35m (1.4ms)[0m RELEASE SAVEPOINT active_record_1
|
31474
|
+
[1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m
|
31475
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "users" DEFAULT VALUES RETURNING "id"
|
31476
|
+
[1m[36m (1.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
31477
|
+
[1m[35m (0.4ms)[0m SAVEPOINT active_record_1
|
31478
|
+
[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", "63741166-4b03-4f41-a0e0-cd7f76d02df5"], ["external_id", "ba558d75a7a3664ec081bd46"], ["owner_id", "3"], ["owner_type", "Payment"], ["sender_id", "5"], ["sender_type", "User"]]
|
31479
|
+
[1m[35m (0.4ms)[0m RELEASE SAVEPOINT active_record_1
|
31480
|
+
[1m[36m (0.5ms)[0m [1mSAVEPOINT active_record_1[0m
|
31481
|
+
[1m[35mSQL (1.4ms)[0m UPDATE "bloom_remit_txns" SET "status" = $1 WHERE "bloom_remit_txns"."id" = $2 [["status", 7], ["id", 5]]
|
31482
|
+
[1m[36m (1.9ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
31483
|
+
[1m[35m (0.4ms)[0m SAVEPOINT active_record_1
|
31484
|
+
[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-01 08:40:22.299392"], ["updated_at", "2016-09-01 08:40:22.299392"]]
|
31485
|
+
[1m[35m (0.4ms)[0m RELEASE SAVEPOINT active_record_1
|
31486
|
+
[1m[36mBloomRemit::Txn Load (1.1ms)[0m [1mSELECT "bloom_remit_txns".* FROM "bloom_remit_txns" WHERE "bloom_remit_txns"."id" = $1 LIMIT 1[0m [["id", 5]]
|
31487
|
+
[1m[35m (1.7ms)[0m ROLLBACK
|
31488
|
+
[1m[36m (0.4ms)[0m [1mBEGIN[0m
|
31489
|
+
[1m[35m (0.4ms)[0m COMMIT
|
31490
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
31491
|
+
[1m[35m (0.4ms)[0m ROLLBACK
|
31492
|
+
[1m[36m (0.4ms)[0m [1mBEGIN[0m
|
31493
|
+
[1m[35m (0.7ms)[0m COMMIT
|
31494
|
+
[1m[36m (0.5ms)[0m [1mBEGIN[0m
|
31495
|
+
[1m[35m (0.7ms)[0m ROLLBACK
|
31496
|
+
[1m[36m (0.5ms)[0m [1mBEGIN[0m
|
31497
|
+
[1m[35m (0.5ms)[0m COMMIT
|
31498
|
+
[1m[36m (2.2ms)[0m [1mBEGIN[0m
|
31499
|
+
[1m[35m (0.5ms)[0m ROLLBACK
|
31500
|
+
[1m[36m (0.5ms)[0m [1mBEGIN[0m
|
31501
|
+
[1m[35m (0.5ms)[0m COMMIT
|
31502
|
+
[1m[36m (0.4ms)[0m [1mBEGIN[0m
|
31503
|
+
[1m[35m (0.4ms)[0m ROLLBACK
|
31504
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
31505
|
+
[1m[35m (0.4ms)[0m COMMIT
|
31506
|
+
[1m[36m (0.4ms)[0m [1mBEGIN[0m
|
31507
|
+
[1m[35m (0.4ms)[0m ROLLBACK
|
@@ -4,20 +4,40 @@ module BloomRemit
|
|
4
4
|
module Txns
|
5
5
|
RSpec.describe HandleResponse do
|
6
6
|
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
7
|
+
context "successful response" do
|
8
|
+
let(:remote_response) do
|
9
|
+
build(:bloom_remit_client_create_payment_response, {
|
10
|
+
success: true,
|
11
|
+
body: {"i" => "am body"},
|
12
|
+
})
|
13
|
+
end
|
14
|
+
let(:txn) { create(:txn) }
|
15
|
+
|
16
|
+
it "saves the response" do
|
17
|
+
resulting_ctx = described_class.
|
18
|
+
execute(txn: txn, remote_response: remote_response)
|
19
|
+
expect(txn.responses.count).to eq 1
|
20
|
+
expect(txn.responses.first).to eq resulting_ctx.response
|
21
|
+
response = resulting_ctx.response
|
22
|
+
expect(response.body).to eq({"i" => "am body"})
|
23
|
+
end
|
11
24
|
end
|
12
|
-
let(:txn) { create(:txn) }
|
13
25
|
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
26
|
+
context "unsuccessful response" do
|
27
|
+
let(:remote_response) do
|
28
|
+
build(:bloom_remit_client_create_payment_response, {
|
29
|
+
success: false,
|
30
|
+
body: {"status"=>"500", "error"=>"Internal Server Error"},
|
31
|
+
})
|
32
|
+
end
|
33
|
+
let(:txn) { create(:txn) }
|
34
|
+
|
35
|
+
it "marks the txn as error" do
|
36
|
+
resulting_ctx = described_class.
|
37
|
+
execute(txn: txn, remote_response: remote_response)
|
38
|
+
txn.reload
|
39
|
+
expect(txn).to be_error
|
40
|
+
end
|
21
41
|
end
|
22
42
|
|
23
43
|
end
|
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.7.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-
|
11
|
+
date: 2016-09-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -58,14 +58,14 @@ dependencies:
|
|
58
58
|
requirements:
|
59
59
|
- - ">="
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version: 0.
|
61
|
+
version: 0.4.0
|
62
62
|
type: :runtime
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
66
|
- - ">="
|
67
67
|
- !ruby/object:Gem::Version
|
68
|
-
version: 0.
|
68
|
+
version: 0.4.0
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: sidekiq
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|