action_smser 2.1.1 → 2.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -47,7 +47,7 @@ module ActionSmser::DeliveryMethods
|
|
47
47
|
|
48
48
|
def self.deliver_path(sms, to, options)
|
49
49
|
path = "/sms/json?username=#{options[:username]}&password=#{options[:password]}&ttl=#{sms.ttl_to_i*1000}&status-report-req=#{options[:status_report_req]}&from=#{sms.from_encoded}&to=#{to}&text=#{sms.body_escaped}"
|
50
|
-
path += "&
|
50
|
+
path += "&type=#{options[:type]}" if options[:type]
|
51
51
|
path
|
52
52
|
end
|
53
53
|
|
data/lib/action_smser/version.rb
CHANGED
data/test/dummy/log/test.log
CHANGED
@@ -62736,3 +62736,3500 @@ Processing by ActionSmser::DeliveryReportsController#gateway_commit as HTML
|
|
62736
62736
|
Parameters: {"gateway"=>"example_gateway"}
|
62737
62737
|
Completed 200 OK in 1ms (Views: 0.9ms | ActiveRecord: 0.0ms)
|
62738
62738
|
[1m[35m (0.2ms)[0m rollback transaction
|
62739
|
+
[1m[36m (0.2ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [0m
|
62740
|
+
[1m[35m (0.1ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
62741
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
62742
|
+
Migrating to CreateActionSmserDeliveryReports (20120102215215)
|
62743
|
+
[1m[35m (0.0ms)[0m begin transaction
|
62744
|
+
[1m[36m (0.2ms)[0m [1mCREATE TABLE "action_smser_delivery_reports" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "msg_id" varchar(255), "status" varchar(255), "status_updated_at" datetime, "sms_type" varchar(255), "log" text, "to" varchar(255), "from" varchar(255), "body" varchar(255), "gateway" varchar(255), "re_delivery_of_delivery_report_id" integer, "re_delivered" boolean, "created_at" datetime, "updated_at" datetime) [0m
|
62745
|
+
[1m[35m (0.1ms)[0m CREATE INDEX "index_action_smser_delivery_reports_on_msg_id" ON "action_smser_delivery_reports" ("msg_id")
|
62746
|
+
[1m[36mSQL (0.7ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20120102215215"]]
|
62747
|
+
[1m[35m (0.0ms)[0m commit transaction
|
62748
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
62749
|
+
---------------------------------------------------------------------------
|
62750
|
+
ActionSmser::BaseTest: test_after_delivery_should_be_called_if_it's_present
|
62751
|
+
---------------------------------------------------------------------------
|
62752
|
+
ActionSmser: Sending sms - Delivery_method: test_array - Sms: (Sms ActionSmser::BaseTest::MockSms.basic_sms - From: "555666", To: ["555123555", "123", "+358123555123"], Body: "Body with ääkköset end", Valid: true)
|
62753
|
+
ActionSmser: ActionSmser::DeliveryMethods::TestArray.deliveries added message, no real delivery.
|
62754
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
62755
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
62756
|
+
----------------------------------------------------------------------------
|
62757
|
+
ActionSmser::BaseTest: test_before_delivery_should_be_called_if_it's_present
|
62758
|
+
----------------------------------------------------------------------------
|
62759
|
+
ActionSmser: Sending sms - Delivery_method: test_array - Sms: (Sms ActionSmser::BaseTest::MockSms.basic_sms - From: "555666", To: ["555123555", "123", "+358123555123"], Body: "Body with ääkköset end", Valid: true)
|
62760
|
+
ActionSmser: ActionSmser::DeliveryMethods::TestArray.deliveries added message, no real delivery.
|
62761
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
62762
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
62763
|
+
--------------------------------------------------------------------------------------------
|
62764
|
+
ActionSmser::BaseTest: test_body_should_be_cropped_to_500_chars,_limit_extra_looong_messages
|
62765
|
+
--------------------------------------------------------------------------------------------
|
62766
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
62767
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
62768
|
+
-------------------------------------------------------------
|
62769
|
+
ActionSmser::BaseTest: test_body_should_be_possible_to_encode
|
62770
|
+
-------------------------------------------------------------
|
62771
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
62772
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
62773
|
+
----------------------------------------------------------------------
|
62774
|
+
ActionSmser::BaseTest: test_from_encoded_should_remove_leading_+_and_0
|
62775
|
+
----------------------------------------------------------------------
|
62776
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
62777
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
62778
|
+
--------------------------------------------------------------------------------------------------------
|
62779
|
+
ActionSmser::BaseTest: test_message_real_crop_should_return_cropped_message_with_sms_chars_taken_account
|
62780
|
+
--------------------------------------------------------------------------------------------------------
|
62781
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
62782
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
62783
|
+
-----------------------------------------------------------------------------
|
62784
|
+
ActionSmser::BaseTest: test_message_real_length_should_return_real_sms_lenght
|
62785
|
+
-----------------------------------------------------------------------------
|
62786
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
62787
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
62788
|
+
----------------------------------------------------------------
|
62789
|
+
ActionSmser::BaseTest: test_receivers_should_be_joined_by_commas
|
62790
|
+
----------------------------------------------------------------
|
62791
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
62792
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
62793
|
+
--------------------------------------------------------
|
62794
|
+
ActionSmser::BaseTest: test_should_be_able_to_change_ttl
|
62795
|
+
--------------------------------------------------------
|
62796
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
62797
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
62798
|
+
--------------------------------------------------------------
|
62799
|
+
ActionSmser::BaseTest: test_should_be_ok_with_single_receivers
|
62800
|
+
--------------------------------------------------------------
|
62801
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
62802
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
62803
|
+
-----------------------------------------------
|
62804
|
+
ActionSmser::BaseTest: test_should_be_valid_sms
|
62805
|
+
-----------------------------------------------
|
62806
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
62807
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
62808
|
+
-------------------------------------------------------------------------------------
|
62809
|
+
ActionSmser::BaseTest: test_should_have_copied_the_delivery_options_when_initializing
|
62810
|
+
-------------------------------------------------------------------------------------
|
62811
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
62812
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
62813
|
+
------------------------------------------------------
|
62814
|
+
ActionSmser::BaseTest: test_should_have_saved_sms_type
|
62815
|
+
------------------------------------------------------
|
62816
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
62817
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
62818
|
+
---------------------------------------------------------------------
|
62819
|
+
ActionSmser::BaseTest: test_should_have_test_array_as_delivery_method
|
62820
|
+
---------------------------------------------------------------------
|
62821
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
62822
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
62823
|
+
----------------------------------------------------------------
|
62824
|
+
ActionSmser::BaseTest: test_should_not_be_valid_if_no_recipients
|
62825
|
+
----------------------------------------------------------------
|
62826
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
62827
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
62828
|
+
-------------------------------------------------------------
|
62829
|
+
ActionSmser::BaseTest: test_ttl_should_be_24_hours_by_default
|
62830
|
+
-------------------------------------------------------------
|
62831
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
62832
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
62833
|
+
----------------------------------------------------------------------------------------------
|
62834
|
+
ActionSmser::DelayedJobTest: test_should_be_able_to_deliver_and_call_enqueue_for_all_receivers
|
62835
|
+
----------------------------------------------------------------------------------------------
|
62836
|
+
ActionSmser: Sending sms - Delivery_method: delayed_job - Sms: (Sms ActionSmser::DelayedJobTest::MockSms.basic_sms - From: "555666", To: ["555123555", "123555123"], Body: "Body with ääkköset end", Valid: true)
|
62837
|
+
ActionSmser: Delivering sms by delayed_job
|
62838
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
62839
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
62840
|
+
-------------------------------------------------------------
|
62841
|
+
ActionSmser::DelayedJobTest: test_test_that_serializing_is_ok
|
62842
|
+
-------------------------------------------------------------
|
62843
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
62844
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
62845
|
+
-------------------------------------------------------------------
|
62846
|
+
ActionSmser::DeliveryReportTest: test_build_DeliveryReport_from_sms
|
62847
|
+
-------------------------------------------------------------------
|
62848
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
62849
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
62850
|
+
------------------------------------------------------
|
62851
|
+
ActionSmser::DeliveryReportTest: test_create_from_save
|
62852
|
+
------------------------------------------------------
|
62853
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "action_smser_delivery_reports"
|
62854
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
62855
|
+
[1m[35mSQL (2.6ms)[0m INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Body with ääkköset end"], ["created_at", Mon, 13 Jan 2014 13:10:30 UTC +00:00], ["from", "555666"], ["gateway", "test_array"], ["log", "2014-01-13 15:10:30: LOCAL_SENT\n"], ["msg_id", "msg_id_a"], ["sms_type", "ActionSmser::DeliveryReportTest::MockSms.basic_sms"], ["status", "LOCAL_SENT"], ["status_updated_at", Mon, 13 Jan 2014 13:10:30 UTC +00:00], ["to", "123"], ["updated_at", Mon, 13 Jan 2014 13:10:30 UTC +00:00]]
|
62856
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
62857
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "action_smser_delivery_reports"
|
62858
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
62859
|
+
[1m[35m (0.0ms)[0m begin transaction
|
62860
|
+
-----------------------------------------------------------------
|
62861
|
+
ActionSmser::DeliveryReportTest: test_re_deliver_with_simple_http
|
62862
|
+
-----------------------------------------------------------------
|
62863
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
62864
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Body with ääkköset end"], ["created_at", Mon, 13 Jan 2014 13:10:30 UTC +00:00], ["from", "555666"], ["gateway", "test_array"], ["log", "2014-01-13 15:10:30: LOCAL_SENT\n"], ["msg_id", "msg_id_a"], ["sms_type", "ActionSmser::DeliveryReportTest::MockSms.basic_sms"], ["status", "LOCAL_SENT"], ["status_updated_at", Mon, 13 Jan 2014 13:10:30 UTC +00:00], ["to", "123"], ["updated_at", Mon, 13 Jan 2014 13:10:30 UTC +00:00]]
|
62865
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
62866
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
62867
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "action_smser_delivery_reports" SET "gateway" = ?, "updated_at" = ? WHERE "action_smser_delivery_reports"."id" = 1[0m [["gateway", "some_delivery"], ["updated_at", Mon, 13 Jan 2014 13:10:30 UTC +00:00]]
|
62868
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
62869
|
+
[1m[36mActionSmser::DeliveryReport Load (0.1ms)[0m [1mSELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."id" = ? LIMIT 1[0m [["id", 1]]
|
62870
|
+
ActionSmser: Re_delivering: #<ActionSmser::DeliveryReport id: 1, msg_id: "msg_id_a", status: "LOCAL_SENT", status_updated_at: "2014-01-13 13:10:30", sms_type: "ActionSmser::DeliveryReportTest::MockSms.basic_sms", log: "2014-01-13 15:10:30: LOCAL_SENT\n", to: "123", from: "555666", body: "Body with ääkköset end", gateway: "some_delivery", re_delivery_of_delivery_report_id: nil, re_delivered: nil, created_at: "2014-01-13 13:10:30", updated_at: "2014-01-13 13:10:30">
|
62871
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
62872
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "action_smser_delivery_reports" SET "re_delivered" = ?, "updated_at" = ? WHERE "action_smser_delivery_reports"."id" = 1[0m [["re_delivered", true], ["updated_at", Mon, 13 Jan 2014 13:10:30 UTC +00:00]]
|
62873
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
62874
|
+
[1m[36mActionSmser::DeliveryReport Load (0.0ms)[0m [1mSELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."id" = ? LIMIT 1[0m [["id", 1]]
|
62875
|
+
ActionSmser: Sending sms - Delivery_method: test_array - Sms: (Sms ActionSmser::DeliveryReportTest::MockSms.basic_sms.re_delivery - From: "555666", To: "123", Body: "Body with ääkköset end", Valid: true)
|
62876
|
+
ActionSmser: ActionSmser::DeliveryMethods::TestArray.deliveries added message, no real delivery.
|
62877
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
62878
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "re_delivery_of_delivery_report_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Body with ääkköset end"], ["created_at", Mon, 13 Jan 2014 13:10:30 UTC +00:00], ["from", "555666"], ["gateway", "test_array"], ["log", "2014-01-13 15:10:30: LOCAL_SENT\n"], ["msg_id", "test_array_id_65202665"], ["re_delivery_of_delivery_report_id", 1], ["sms_type", "ActionSmser::DeliveryReportTest::MockSms.basic_sms.re_delivery"], ["status", "LOCAL_SENT"], ["status_updated_at", Mon, 13 Jan 2014 13:10:30 UTC +00:00], ["to", "123"], ["updated_at", Mon, 13 Jan 2014 13:10:30 UTC +00:00]]
|
62879
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
62880
|
+
[1m[36mActionSmser::DeliveryReport Load (0.1ms)[0m [1mSELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" ORDER BY "action_smser_delivery_reports"."id" DESC LIMIT 1[0m
|
62881
|
+
[1m[35mActionSmser::DeliveryReport Load (0.2ms)[0m SELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."re_delivery_of_delivery_report_id" = ? ORDER BY "action_smser_delivery_reports"."id" ASC LIMIT 1 [["re_delivery_of_delivery_report_id", 1]]
|
62882
|
+
[1m[36mActionSmser::DeliveryReport Load (0.1ms)[0m [1mSELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."id" = ? ORDER BY "action_smser_delivery_reports"."id" ASC LIMIT 1[0m [["id", 1]]
|
62883
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
62884
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
62885
|
+
--------------------------------------------
|
62886
|
+
ActionSmser::DeliveryReportTest: test_to_sms
|
62887
|
+
--------------------------------------------
|
62888
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
62889
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Body with ääkköset end"], ["created_at", Mon, 13 Jan 2014 13:10:30 UTC +00:00], ["from", "555666"], ["gateway", "test_array"], ["log", "2014-01-13 15:10:30: LOCAL_SENT\n"], ["msg_id", "msg_id_a"], ["sms_type", "ActionSmser::DeliveryReportTest::MockSms.basic_sms"], ["status", "LOCAL_SENT"], ["status_updated_at", Mon, 13 Jan 2014 13:10:30 UTC +00:00], ["to", "123"], ["updated_at", Mon, 13 Jan 2014 13:10:30 UTC +00:00]]
|
62890
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
62891
|
+
[1m[36mActionSmser::DeliveryReport Load (0.0ms)[0m [1mSELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."id" = ? LIMIT 1[0m [["id", 1]]
|
62892
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
62893
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
62894
|
+
-----------------------------------------------------
|
62895
|
+
ActionSmser::DeliveryReportTest: test_updating_status
|
62896
|
+
-----------------------------------------------------
|
62897
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
62898
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "action_smser_delivery_reports" ("created_at", "log", "status", "status_updated_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["created_at", Mon, 13 Jan 2014 13:10:30 UTC +00:00], ["log", "2014-01-13 15:10:30: LOCAL_TEST\n"], ["status", "LOCAL_TEST"], ["status_updated_at", Mon, 13 Jan 2014 13:10:30 UTC +00:00], ["updated_at", Mon, 13 Jan 2014 13:10:30 UTC +00:00]]
|
62899
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
62900
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
62901
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "action_smser_delivery_reports" SET "status" = ?, "status_updated_at" = ?, "log" = ?, "updated_at" = ? WHERE "action_smser_delivery_reports"."id" = 1 [["status", "TEST_2"], ["status_updated_at", Mon, 13 Jan 2014 13:10:30 UTC +00:00], ["log", "2014-01-13 15:10:30: LOCAL_TEST\n2014-01-13 15:10:30: TEST_2\n"], ["updated_at", Mon, 13 Jan 2014 13:10:30 UTC +00:00]]
|
62902
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
62903
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
62904
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
62905
|
+
--------------------------------------------------------------------------------
|
62906
|
+
ActionSmser::DeliveryReportsControllerTest: test_gateway_commit_with_existing_dr
|
62907
|
+
--------------------------------------------------------------------------------
|
62908
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
62909
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "action_smser_delivery_reports" ("created_at", "log", "msg_id", "status", "status_updated_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 13 Jan 2014 13:10:30 UTC +00:00], ["log", "2014-01-13 15:10:30: ORIGINAL_STATUS\n"], ["msg_id", "102010314204056202"], ["status", "ORIGINAL_STATUS"], ["status_updated_at", Mon, 13 Jan 2014 13:10:30 UTC +00:00], ["updated_at", Mon, 13 Jan 2014 13:10:30 UTC +00:00]]
|
62910
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
62911
|
+
Processing by ActionSmser::DeliveryReportsController#gateway_commit as HTML
|
62912
|
+
Parameters: {"gateway"=>"test_gateway", "DeliveryReport"=>{"message"=>{"id"=>"102010314204056202", "donedate"=>"2012/01/03 14:20:45", "sentdate"=>"2012/01/03 14:20:40", "status"=>"DELIVERED"}}}
|
62913
|
+
ActionSmser: Gateway_commit found parser for gateway: test_gateway
|
62914
|
+
[1m[36mActionSmser::DeliveryReport Load (0.1ms)[0m [1mSELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."msg_id" = '102010314204056202' ORDER BY "action_smser_delivery_reports"."id" ASC LIMIT 1[0m
|
62915
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
62916
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "action_smser_delivery_reports" SET "status" = ?, "status_updated_at" = ?, "log" = ?, "updated_at" = ? WHERE "action_smser_delivery_reports"."id" = 1[0m [["status", "DELIVERED"], ["status_updated_at", Mon, 13 Jan 2014 13:10:30 UTC +00:00], ["log", "2014-01-13 15:10:30: ORIGINAL_STATUS\n2014-01-13 15:10:30: DELIVERED\n"], ["updated_at", Mon, 13 Jan 2014 13:10:30 UTC +00:00]]
|
62917
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
62918
|
+
ActionSmser: Gateway_commit updated item with id: 102010314204056202, params: {"msg_id"=>"102010314204056202", "status"=>"DELIVERED"}
|
62919
|
+
Rendered text template (0.0ms)
|
62920
|
+
Completed 200 OK in 3ms (Views: 0.6ms | ActiveRecord: 0.4ms)
|
62921
|
+
[1m[36mActionSmser::DeliveryReport Load (0.1ms)[0m [1mSELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."id" = ? LIMIT 1[0m [["id", 1]]
|
62922
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
62923
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
62924
|
+
-------------------------------------------------------------------------------------
|
62925
|
+
ActionSmser::DeliveryReportsControllerTest: test_gateway_commit_with_multiple_records
|
62926
|
+
-------------------------------------------------------------------------------------
|
62927
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
62928
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "action_smser_delivery_reports" ("created_at", "log", "msg_id", "status", "status_updated_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 13 Jan 2014 13:10:30 UTC +00:00], ["log", "2014-01-13 15:10:30: ORIGINAL_STATUS\n"], ["msg_id", "102010314204056202"], ["status", "ORIGINAL_STATUS"], ["status_updated_at", Mon, 13 Jan 2014 13:10:30 UTC +00:00], ["updated_at", Mon, 13 Jan 2014 13:10:30 UTC +00:00]]
|
62929
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
62930
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
62931
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "action_smser_delivery_reports" ("created_at", "log", "msg_id", "status", "status_updated_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 13 Jan 2014 13:10:30 UTC +00:00], ["log", "2014-01-13 15:10:30: ORIGINAL_STATUS\n"], ["msg_id", "99999999999999999"], ["status", "ORIGINAL_STATUS"], ["status_updated_at", Mon, 13 Jan 2014 13:10:30 UTC +00:00], ["updated_at", Mon, 13 Jan 2014 13:10:30 UTC +00:00]]
|
62932
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
62933
|
+
Processing by ActionSmser::DeliveryReportsController#gateway_commit as HTML
|
62934
|
+
Parameters: {"gateway"=>"test_gateway", "DeliveryReport"=>{"message"=>[{"id"=>"102010314204056202", "status"=>"DELIVERED"}, {"id"=>"99999999999999999", "status"=>"DELIVERED"}]}}
|
62935
|
+
ActionSmser: Gateway_commit found parser for gateway: test_gateway
|
62936
|
+
[1m[35mActionSmser::DeliveryReport Load (0.1ms)[0m SELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."msg_id" = '102010314204056202' ORDER BY "action_smser_delivery_reports"."id" ASC LIMIT 1
|
62937
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
62938
|
+
[1m[35mSQL (0.2ms)[0m UPDATE "action_smser_delivery_reports" SET "status" = ?, "status_updated_at" = ?, "log" = ?, "updated_at" = ? WHERE "action_smser_delivery_reports"."id" = 1 [["status", "DELIVERED"], ["status_updated_at", Mon, 13 Jan 2014 13:10:30 UTC +00:00], ["log", "2014-01-13 15:10:30: ORIGINAL_STATUS\n2014-01-13 15:10:30: DELIVERED\n"], ["updated_at", Mon, 13 Jan 2014 13:10:30 UTC +00:00]]
|
62939
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
62940
|
+
ActionSmser: Gateway_commit updated item with id: 102010314204056202, params: {"msg_id"=>"102010314204056202", "status"=>"DELIVERED"}
|
62941
|
+
[1m[35mActionSmser::DeliveryReport Load (0.1ms)[0m SELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."msg_id" = '99999999999999999' ORDER BY "action_smser_delivery_reports"."id" ASC LIMIT 1
|
62942
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
62943
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "action_smser_delivery_reports" SET "status" = ?, "status_updated_at" = ?, "log" = ?, "updated_at" = ? WHERE "action_smser_delivery_reports"."id" = 2 [["status", "DELIVERED"], ["status_updated_at", Mon, 13 Jan 2014 13:10:30 UTC +00:00], ["log", "2014-01-13 15:10:30: ORIGINAL_STATUS\n2014-01-13 15:10:30: DELIVERED\n"], ["updated_at", Mon, 13 Jan 2014 13:10:30 UTC +00:00]]
|
62944
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
62945
|
+
ActionSmser: Gateway_commit updated item with id: 99999999999999999, params: {"msg_id"=>"99999999999999999", "status"=>"DELIVERED"}
|
62946
|
+
Completed 200 OK in 4ms (Views: 0.2ms | ActiveRecord: 0.7ms)
|
62947
|
+
[1m[35mActionSmser::DeliveryReport Load (0.0ms)[0m SELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."id" = ? LIMIT 1 [["id", 1]]
|
62948
|
+
[1m[36mActionSmser::DeliveryReport Load (0.0ms)[0m [1mSELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."id" = ? LIMIT 1[0m [["id", 2]]
|
62949
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
62950
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
62951
|
+
----------------------------------------------------------------------------------
|
62952
|
+
ActionSmser::DeliveryReportsControllerTest: test_gateway_commit_without_any_parser
|
62953
|
+
----------------------------------------------------------------------------------
|
62954
|
+
Processing by ActionSmser::DeliveryReportsController#gateway_commit as HTML
|
62955
|
+
Parameters: {"gateway"=>"gateway_not_found", "DeliveryReport"=>{"message"=>{"id"=>"wrongid", "donedate"=>"2012/01/03 14:20:45", "sentdate"=>"2012/01/03 14:20:40", "status"=>"DELIVERED"}}}
|
62956
|
+
Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
|
62957
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
62958
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
62959
|
+
--------------------------------------------------------------------------
|
62960
|
+
ActionSmser::DeliveryReportsControllerTest: test_gateway_commit_without_dr
|
62961
|
+
--------------------------------------------------------------------------
|
62962
|
+
Processing by ActionSmser::DeliveryReportsController#gateway_commit as HTML
|
62963
|
+
Parameters: {"gateway"=>"test_gateway", "DeliveryReport"=>{"message"=>{"id"=>"wrongid", "donedate"=>"2012/01/03 14:20:45", "sentdate"=>"2012/01/03 14:20:40", "status"=>"DELIVERED"}}}
|
62964
|
+
ActionSmser: Gateway_commit found parser for gateway: test_gateway
|
62965
|
+
[1m[35mActionSmser::DeliveryReport Load (0.1ms)[0m SELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."msg_id" = 'wrongid' ORDER BY "action_smser_delivery_reports"."id" ASC LIMIT 1
|
62966
|
+
ActionSmser: Gateway_commit not found item with id: wrongid, params: {"msg_id"=>"wrongid", "status"=>"DELIVERED"}
|
62967
|
+
Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
|
62968
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
62969
|
+
[1m[35m (0.0ms)[0m begin transaction
|
62970
|
+
-----------------------------------------------------------------------------------------------------
|
62971
|
+
ActionSmser::DeliveryReportsControllerTest: test_index_with_admin_access_lambda_with_right_login_info
|
62972
|
+
-----------------------------------------------------------------------------------------------------
|
62973
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
62974
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "action_smser_delivery_reports" ("created_at", "msg_id", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 13 Jan 2014 13:10:30 UTC +00:00], ["msg_id", "idtest_1"], ["updated_at", Mon, 13 Jan 2014 13:10:30 UTC +00:00]]
|
62975
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
62976
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
62977
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "action_smser_delivery_reports" ("created_at", "msg_id", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 13 Jan 2014 13:10:30 UTC +00:00], ["msg_id", "idtest_7"], ["updated_at", Mon, 13 Jan 2014 13:10:30 UTC +00:00]]
|
62978
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
62979
|
+
Processing by ActionSmser::DeliveryReportsController#index as HTML
|
62980
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2014-01-06 13:10:30.450090' AND '2014-01-13 13:00:30.450208')[0m
|
62981
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) AS count_all, gateway AS gateway FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2014-01-06 13:10:30.450090' AND '2014-01-13 13:00:30.450208') GROUP BY gateway
|
62982
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2014-01-06 13:10:30.450090' AND '2014-01-13 13:00:30.450208')[0m
|
62983
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) AS count_all, status AS status FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2014-01-06 13:10:30.450090' AND '2014-01-13 13:00:30.450208') GROUP BY status
|
62984
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2014-01-06 13:10:30.450090' AND '2014-01-13 13:00:30.450208')[0m
|
62985
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) AS count_all, sms_type AS sms_type FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2014-01-06 13:10:30.450090' AND '2014-01-13 13:00:30.450208') GROUP BY sms_type
|
62986
|
+
Completed 200 OK in 9ms (Views: 8.8ms | ActiveRecord: 0.4ms)
|
62987
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
62988
|
+
[1m[35m (0.0ms)[0m begin transaction
|
62989
|
+
--------------------------------------------------------------------------------
|
62990
|
+
ActionSmser::DeliveryReportsControllerTest: test_index_with_always_enabled_admin
|
62991
|
+
--------------------------------------------------------------------------------
|
62992
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
62993
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "action_smser_delivery_reports" ("created_at", "msg_id", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 13 Jan 2014 13:10:30 UTC +00:00], ["msg_id", "idtest_2"], ["updated_at", Mon, 13 Jan 2014 13:10:30 UTC +00:00]]
|
62994
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
62995
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
62996
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "action_smser_delivery_reports" ("created_at", "msg_id", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 13 Jan 2014 13:10:30 UTC +00:00], ["msg_id", "idtest_4"], ["updated_at", Mon, 13 Jan 2014 13:10:30 UTC +00:00]]
|
62997
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
62998
|
+
Processing by ActionSmser::DeliveryReportsController#index as HTML
|
62999
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2014-01-06 13:10:30.461531' AND '2014-01-13 13:00:30.461612')[0m
|
63000
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) AS count_all, gateway AS gateway FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2014-01-06 13:10:30.461531' AND '2014-01-13 13:00:30.461612') GROUP BY gateway
|
63001
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2014-01-06 13:10:30.461531' AND '2014-01-13 13:00:30.461612')[0m
|
63002
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) AS count_all, status AS status FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2014-01-06 13:10:30.461531' AND '2014-01-13 13:00:30.461612') GROUP BY status
|
63003
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2014-01-06 13:10:30.461531' AND '2014-01-13 13:00:30.461612')[0m
|
63004
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) AS count_all, sms_type AS sms_type FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2014-01-06 13:10:30.461531' AND '2014-01-13 13:00:30.461612') GROUP BY sms_type
|
63005
|
+
Completed 200 OK in 6ms (Views: 5.4ms | ActiveRecord: 0.4ms)
|
63006
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
63007
|
+
[1m[35m (0.0ms)[0m begin transaction
|
63008
|
+
--------------------------------------------------------------------------------------------------------
|
63009
|
+
ActionSmser::DeliveryReportsControllerTest: test_index_with_forbidden_admin_access_(default_access_mode)
|
63010
|
+
--------------------------------------------------------------------------------------------------------
|
63011
|
+
Processing by ActionSmser::DeliveryReportsController#index as HTML
|
63012
|
+
Filter chain halted as :admin_access_only rendered or redirected
|
63013
|
+
Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
|
63014
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
63015
|
+
[1m[35m (0.0ms)[0m begin transaction
|
63016
|
+
-------------------------------------------------------------------------------
|
63017
|
+
ActionSmser::DeliveryReportsControllerTest: test_list_with_always_enabled_admin
|
63018
|
+
-------------------------------------------------------------------------------
|
63019
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
63020
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "action_smser_delivery_reports" ("created_at", "msg_id", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 13 Jan 2014 13:10:30 UTC +00:00], ["msg_id", "idtest_4"], ["updated_at", Mon, 13 Jan 2014 13:10:30 UTC +00:00]]
|
63021
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
63022
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
63023
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "action_smser_delivery_reports" ("created_at", "msg_id", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 13 Jan 2014 13:10:30 UTC +00:00], ["msg_id", "idtest_3"], ["updated_at", Mon, 13 Jan 2014 13:10:30 UTC +00:00]]
|
63024
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
63025
|
+
Processing by ActionSmser::DeliveryReportsController#list as HTML
|
63026
|
+
[1m[36mActionSmser::DeliveryReport Load (0.1ms)[0m [1mSELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" ORDER BY created_at DESC LIMIT 20 OFFSET 0[0m
|
63027
|
+
Completed 200 OK in 3ms (Views: 3.1ms | ActiveRecord: 0.1ms)
|
63028
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
63029
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
63030
|
+
--------------------------------------------------------------------
|
63031
|
+
ActionSmser::NexmoTest: test_gateway_process_delivery_report(params)
|
63032
|
+
--------------------------------------------------------------------
|
63033
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
63034
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
63035
|
+
------------------------------------------------------
|
63036
|
+
ActionSmser::NexmoTest: test_should_be_able_to_deliver
|
63037
|
+
------------------------------------------------------
|
63038
|
+
ActionSmser: Sending sms - Delivery_method: nexmo - Sms: (Sms ActionSmser::NexmoTest::MockSms.basic_sms - From: "555666", To: ["555123555", "123555123"], Body: "Body with ääkköset end", Valid: true)
|
63039
|
+
ActionSmser: Nexmo delivery http ||| /sms/json?username=user&password=pass&ttl=86400000&status-report-req=false&from=555666&to=555123555&text=Body+with+%C3%A4%C3%A4kk%C3%B6set+end ||| #<Mock:0x9ece560>
|
63040
|
+
ActionSmser: {"message-count":"1","messages":[{"message-price":"0.02500000","status":"0","message-id":"0778DE88","remaining-balance":"1.77500000"}]}
|
63041
|
+
ActionSmser: Nexmo delivery http ||| /sms/json?username=user&password=pass&ttl=86400000&status-report-req=false&from=555666&to=123555123&text=Body+with+%C3%A4%C3%A4kk%C3%B6set+end ||| #<Mock:0x9ece560>
|
63042
|
+
ActionSmser: {"message-count":"1","messages":[{"message-price":"0.02500000","status":"0","message-id":"0778DE88","remaining-balance":"1.77500000"}]}
|
63043
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
63044
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
63045
|
+
---------------------------------------------------------
|
63046
|
+
ActionSmser::NexmoTest: test_with_saving_delivery_reports
|
63047
|
+
---------------------------------------------------------
|
63048
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "action_smser_delivery_reports"
|
63049
|
+
ActionSmser: Sending sms - Delivery_method: nexmo - Sms: (Sms ActionSmser::NexmoTest::MockSms.basic_sms - From: "555666", To: ["555123555", "123555123"], Body: "Body with ääkköset end", Valid: true)
|
63050
|
+
ActionSmser: Nexmo delivery http ||| /sms/json?username=user&password=pass&ttl=86400000&status-report-req=true&from=555666&to=555123555&text=Body+with+%C3%A4%C3%A4kk%C3%B6set+end ||| #<Mock:0x9ee8208>
|
63051
|
+
ActionSmser: {"message-count":"1","messages":[{"message-price":"0.02500000","status":"0","message-id":"0778DE88","remaining-balance":"1.77500000"}]}
|
63052
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
63053
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Body with ääkköset end"], ["created_at", Mon, 13 Jan 2014 13:10:30 UTC +00:00], ["from", "555666"], ["gateway", "nexmo"], ["log", "2014-01-13 15:10:30: LOCAL_SENT\n"], ["msg_id", "0778DE88"], ["sms_type", "ActionSmser::NexmoTest::MockSms.basic_sms"], ["status", "LOCAL_SENT"], ["status_updated_at", Mon, 13 Jan 2014 13:10:30 UTC +00:00], ["to", "555123555"], ["updated_at", Mon, 13 Jan 2014 13:10:30 UTC +00:00]]
|
63054
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
63055
|
+
ActionSmser: Nexmo delivery http ||| /sms/json?username=user&password=pass&ttl=86400000&status-report-req=true&from=555666&to=123555123&text=Body+with+%C3%A4%C3%A4kk%C3%B6set+end ||| #<Mock:0x9ee8208>
|
63056
|
+
ActionSmser: {"message-count":"1","messages":[{"message-price":"0.02500000","status":"0","message-id":"0778DE88","remaining-balance":"1.77500000"}]}
|
63057
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
63058
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Body with ääkköset end"], ["created_at", Mon, 13 Jan 2014 13:10:30 UTC +00:00], ["from", "555666"], ["gateway", "nexmo"], ["log", "2014-01-13 15:10:30: LOCAL_SENT\n"], ["msg_id", "0778DE88"], ["sms_type", "ActionSmser::NexmoTest::MockSms.basic_sms"], ["status", "LOCAL_SENT"], ["status_updated_at", Mon, 13 Jan 2014 13:10:30 UTC +00:00], ["to", "123555123"], ["updated_at", Mon, 13 Jan 2014 13:10:30 UTC +00:00]]
|
63059
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
63060
|
+
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "action_smser_delivery_reports"[0m
|
63061
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
63062
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
63063
|
+
-----------------------------------------------------------
|
63064
|
+
ActionSmser::SimpleHttpTest: test_should_be_able_to_deliver
|
63065
|
+
-----------------------------------------------------------
|
63066
|
+
ActionSmser: Sending sms - Delivery_method: simple_http - Sms: (Sms ActionSmser::SimpleHttpTest::MockSms.basic_sms - From: "555666", To: ["555123555", "123555123"], Body: "Body with ääkköset end", Valid: true)
|
63067
|
+
ActionSmser: SimpleHttp delivery ||| /api/sendsms/plain?user=user&password=pass&sender=555666&SMSText=Body+with+%E4%E4kk%F6set+end&GSM=555123555,123555123 ||| #<Mock:0x9f2ea00>
|
63068
|
+
ActionSmser: id_1234
|
63069
|
+
id_6666
|
63070
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
63071
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
63072
|
+
--------------------------------------------------------------
|
63073
|
+
ActionSmser::SimpleHttpTest: test_with_saving_delivery_reports
|
63074
|
+
--------------------------------------------------------------
|
63075
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "action_smser_delivery_reports"
|
63076
|
+
ActionSmser: Sending sms - Delivery_method: simple_http - Sms: (Sms ActionSmser::SimpleHttpTest::MockSms.basic_sms - From: "555666", To: ["555123555", "123555123"], Body: "Body with ääkköset end", Valid: true)
|
63077
|
+
ActionSmser: SimpleHttp delivery ||| /api/sendsms/plain?user=user&password=pass&sender=555666&SMSText=Body+with+%E4%E4kk%F6set+end&GSM=555123555,123555123 ||| #<Mock:0x9f34f68>
|
63078
|
+
ActionSmser: id_1234
|
63079
|
+
id_6666
|
63080
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
63081
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Body with ääkköset end"], ["created_at", Mon, 13 Jan 2014 13:10:30 UTC +00:00], ["from", "555666"], ["gateway", "simple_http"], ["log", "2014-01-13 15:10:30: LOCAL_SENT\n"], ["msg_id", "id_1234"], ["sms_type", "ActionSmser::SimpleHttpTest::MockSms.basic_sms"], ["status", "LOCAL_SENT"], ["status_updated_at", Mon, 13 Jan 2014 13:10:30 UTC +00:00], ["to", "555123555"], ["updated_at", Mon, 13 Jan 2014 13:10:30 UTC +00:00]]
|
63082
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
63083
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
63084
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Body with ääkköset end"], ["created_at", Mon, 13 Jan 2014 13:10:30 UTC +00:00], ["from", "555666"], ["gateway", "simple_http"], ["log", "2014-01-13 15:10:30: LOCAL_SENT\n"], ["msg_id", "id_6666"], ["sms_type", "ActionSmser::SimpleHttpTest::MockSms.basic_sms"], ["status", "LOCAL_SENT"], ["status_updated_at", Mon, 13 Jan 2014 13:10:30 UTC +00:00], ["to", "123555123"], ["updated_at", Mon, 13 Jan 2014 13:10:30 UTC +00:00]]
|
63085
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
63086
|
+
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "action_smser_delivery_reports"[0m
|
63087
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
63088
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
63089
|
+
---------------------------------------------------------
|
63090
|
+
ActionSmser::SmstradeTest: test_should_be_able_to_deliver
|
63091
|
+
---------------------------------------------------------
|
63092
|
+
ActionSmser: Sending sms - Delivery_method: smstrade - Sms: (Sms ActionSmser::SmstradeTest::MockSms.basic_sms - From: "4917212341234", To: ["4915112341234", "4917812341234"], Body: "Body with ümläüts.", Valid: true)
|
63093
|
+
ActionSmser: Smstrade delivery http ||| /?key=api-key-here&from=4917212341234&to=4915112341234&message=Body+with+%C3%BCml%C3%A4%C3%BCts.&route=gold&debug=1&cost=1&message_id=1&count=1&charset=utf-8 ||| #<Mock:0x9f7b918>
|
63094
|
+
ActionSmser: 100
|
63095
|
+
123456789
|
63096
|
+
0.064
|
63097
|
+
1
|
63098
|
+
ActionSmser: Smstrade delivery http ||| /?key=api-key-here&from=4917212341234&to=4917812341234&message=Body+with+%C3%BCml%C3%A4%C3%BCts.&route=gold&debug=1&cost=1&message_id=1&count=1&charset=utf-8 ||| #<Mock:0x9f7b918>
|
63099
|
+
ActionSmser: 100
|
63100
|
+
123456789
|
63101
|
+
0.064
|
63102
|
+
1
|
63103
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
63104
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
63105
|
+
------------------------------------------------------------
|
63106
|
+
ActionSmser::SmstradeTest: test_with_saving_delivery_reports
|
63107
|
+
------------------------------------------------------------
|
63108
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "action_smser_delivery_reports"
|
63109
|
+
ActionSmser: Sending sms - Delivery_method: smstrade - Sms: (Sms ActionSmser::SmstradeTest::MockSms.basic_sms - From: "4917212341234", To: ["4915112341234", "4917812341234"], Body: "Body with ümläüts.", Valid: true)
|
63110
|
+
ActionSmser: Smstrade delivery http ||| /?key=api-key-here&from=4917212341234&to=4915112341234&message=Body+with+%C3%BCml%C3%A4%C3%BCts.&route=gold&debug=1&cost=1&message_id=1&count=1&charset=utf-8 ||| #<Mock:0x9f8a788>
|
63111
|
+
ActionSmser: 100
|
63112
|
+
123456789
|
63113
|
+
0.064
|
63114
|
+
1
|
63115
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
63116
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Body with ümläüts."], ["created_at", Mon, 13 Jan 2014 13:10:30 UTC +00:00], ["from", "4917212341234"], ["gateway", "smstrade"], ["log", "2014-01-13 15:10:30: LOCAL_SENT\n"], ["msg_id", "123456789"], ["sms_type", "ActionSmser::SmstradeTest::MockSms.basic_sms"], ["status", "LOCAL_SENT"], ["status_updated_at", Mon, 13 Jan 2014 13:10:30 UTC +00:00], ["to", "4915112341234"], ["updated_at", Mon, 13 Jan 2014 13:10:30 UTC +00:00]]
|
63117
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
63118
|
+
ActionSmser: Smstrade delivery http ||| /?key=api-key-here&from=4917212341234&to=4917812341234&message=Body+with+%C3%BCml%C3%A4%C3%BCts.&route=gold&debug=1&cost=1&message_id=1&count=1&charset=utf-8 ||| #<Mock:0x9f8a788>
|
63119
|
+
ActionSmser: 100
|
63120
|
+
123456789
|
63121
|
+
0.064
|
63122
|
+
1
|
63123
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
63124
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Body with ümläüts."], ["created_at", Mon, 13 Jan 2014 13:10:30 UTC +00:00], ["from", "4917212341234"], ["gateway", "smstrade"], ["log", "2014-01-13 15:10:30: LOCAL_SENT\n"], ["msg_id", "123456789"], ["sms_type", "ActionSmser::SmstradeTest::MockSms.basic_sms"], ["status", "LOCAL_SENT"], ["status_updated_at", Mon, 13 Jan 2014 13:10:30 UTC +00:00], ["to", "4917812341234"], ["updated_at", Mon, 13 Jan 2014 13:10:30 UTC +00:00]]
|
63125
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
63126
|
+
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "action_smser_delivery_reports"[0m
|
63127
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
63128
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
63129
|
+
--------------------------------------------------------
|
63130
|
+
ActionSmser::TestArrayTest: test_should_add_to_TestArray
|
63131
|
+
--------------------------------------------------------
|
63132
|
+
ActionSmser: Sending sms - Delivery_method: test_array - Sms: (Sms ActionSmser::TestArrayTest::MockSms.basic_sms - From: "555666", To: ["555123555", "123555123"], Body: "Body with ääkköset end", Valid: true)
|
63133
|
+
ActionSmser: ActionSmser::DeliveryMethods::TestArray.deliveries added message, no real delivery.
|
63134
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
63135
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
63136
|
+
----------------------------------------------------------
|
63137
|
+
ActionSmser::TestArrayTest: test_should_be_able_to_deliver
|
63138
|
+
----------------------------------------------------------
|
63139
|
+
ActionSmser: Sending sms - Delivery_method: test_array - Sms: (Sms ActionSmser::TestArrayTest::MockSms.basic_sms - From: "555666", To: ["555123555", "123555123"], Body: "Body with ääkköset end", Valid: true)
|
63140
|
+
ActionSmser: ActionSmser::DeliveryMethods::TestArray.deliveries added message, no real delivery.
|
63141
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
63142
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
63143
|
+
-------------------------------------------------------------
|
63144
|
+
ActionSmser::TestArrayTest: test_with_saving_delivery_reports
|
63145
|
+
-------------------------------------------------------------
|
63146
|
+
ActionSmser: Sending sms - Delivery_method: test_array - Sms: (Sms ActionSmser::TestArrayTest::MockSms.basic_sms - From: "555666", To: ["555123555", "123555123"], Body: "Body with ääkköset end", Valid: true)
|
63147
|
+
ActionSmser: ActionSmser::DeliveryMethods::TestArray.deliveries added message, no real delivery.
|
63148
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "action_smser_delivery_reports"
|
63149
|
+
ActionSmser: Sending sms - Delivery_method: test_array - Sms: (Sms ActionSmser::TestArrayTest::MockSms.basic_sms - From: "555666", To: ["555123555", "123555123"], Body: "Body with ääkköset end", Valid: true)
|
63150
|
+
ActionSmser: ActionSmser::DeliveryMethods::TestArray.deliveries added message, no real delivery.
|
63151
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
63152
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Body with ääkköset end"], ["created_at", Mon, 13 Jan 2014 13:10:30 UTC +00:00], ["from", "555666"], ["gateway", "test_array"], ["log", "2014-01-13 15:10:30: LOCAL_SENT\n"], ["msg_id", "test_array_id_12428786"], ["sms_type", "ActionSmser::TestArrayTest::MockSms.basic_sms"], ["status", "LOCAL_SENT"], ["status_updated_at", Mon, 13 Jan 2014 13:10:30 UTC +00:00], ["to", "555123555"], ["updated_at", Mon, 13 Jan 2014 13:10:30 UTC +00:00]]
|
63153
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
63154
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
63155
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Body with ääkköset end"], ["created_at", Mon, 13 Jan 2014 13:10:30 UTC +00:00], ["from", "555666"], ["gateway", "test_array"], ["log", "2014-01-13 15:10:30: LOCAL_SENT\n"], ["msg_id", "test_array_id_79966800"], ["sms_type", "ActionSmser::TestArrayTest::MockSms.basic_sms"], ["status", "LOCAL_SENT"], ["status_updated_at", Mon, 13 Jan 2014 13:10:30 UTC +00:00], ["to", "123555123"], ["updated_at", Mon, 13 Jan 2014 13:10:30 UTC +00:00]]
|
63156
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
63157
|
+
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "action_smser_delivery_reports"[0m
|
63158
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
63159
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
63160
|
+
---------------------------
|
63161
|
+
ActionSmserTest: test_truth
|
63162
|
+
---------------------------
|
63163
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
63164
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
63165
|
+
---------------------------------------------------------
|
63166
|
+
NavigationTest: test_basic_gateway_commit_delivery_report
|
63167
|
+
---------------------------------------------------------
|
63168
|
+
Started GET "/action_smser/delivery_reports/gateway_commit/example_gateway" for 127.0.0.1 at 2014-01-13 15:10:30 +0200
|
63169
|
+
Processing by ActionSmser::DeliveryReportsController#gateway_commit as HTML
|
63170
|
+
Parameters: {"gateway"=>"example_gateway"}
|
63171
|
+
Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
|
63172
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
63173
|
+
[1m[36m (0.2ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [0m
|
63174
|
+
[1m[35m (0.1ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
63175
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
63176
|
+
Migrating to CreateActionSmserDeliveryReports (20120102215215)
|
63177
|
+
[1m[35m (0.0ms)[0m begin transaction
|
63178
|
+
[1m[36m (0.2ms)[0m [1mCREATE TABLE "action_smser_delivery_reports" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "msg_id" varchar(255), "status" varchar(255), "status_updated_at" datetime, "sms_type" varchar(255), "log" text, "to" varchar(255), "from" varchar(255), "body" varchar(255), "gateway" varchar(255), "re_delivery_of_delivery_report_id" integer, "re_delivered" boolean, "created_at" datetime, "updated_at" datetime) [0m
|
63179
|
+
[1m[35m (0.1ms)[0m CREATE INDEX "index_action_smser_delivery_reports_on_msg_id" ON "action_smser_delivery_reports" ("msg_id")
|
63180
|
+
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20120102215215"]]
|
63181
|
+
[1m[35m (0.0ms)[0m commit transaction
|
63182
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
63183
|
+
---------------------------------------------------------------------------
|
63184
|
+
ActionSmser::BaseTest: test_after_delivery_should_be_called_if_it's_present
|
63185
|
+
---------------------------------------------------------------------------
|
63186
|
+
ActionSmser: Sending sms - Delivery_method: test_array - Sms: (Sms ActionSmser::BaseTest::MockSms.basic_sms - From: "555666", To: ["555123555", "123", "+358123555123"], Body: "Body with ääkköset end", Valid: true)
|
63187
|
+
ActionSmser: ActionSmser::DeliveryMethods::TestArray.deliveries added message, no real delivery.
|
63188
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
63189
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
63190
|
+
----------------------------------------------------------------------------
|
63191
|
+
ActionSmser::BaseTest: test_before_delivery_should_be_called_if_it's_present
|
63192
|
+
----------------------------------------------------------------------------
|
63193
|
+
ActionSmser: Sending sms - Delivery_method: test_array - Sms: (Sms ActionSmser::BaseTest::MockSms.basic_sms - From: "555666", To: ["555123555", "123", "+358123555123"], Body: "Body with ääkköset end", Valid: true)
|
63194
|
+
ActionSmser: ActionSmser::DeliveryMethods::TestArray.deliveries added message, no real delivery.
|
63195
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
63196
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
63197
|
+
--------------------------------------------------------------------------------------------
|
63198
|
+
ActionSmser::BaseTest: test_body_should_be_cropped_to_500_chars,_limit_extra_looong_messages
|
63199
|
+
--------------------------------------------------------------------------------------------
|
63200
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
63201
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
63202
|
+
-------------------------------------------------------------
|
63203
|
+
ActionSmser::BaseTest: test_body_should_be_possible_to_encode
|
63204
|
+
-------------------------------------------------------------
|
63205
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
63206
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
63207
|
+
----------------------------------------------------------------------
|
63208
|
+
ActionSmser::BaseTest: test_from_encoded_should_remove_leading_+_and_0
|
63209
|
+
----------------------------------------------------------------------
|
63210
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
63211
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
63212
|
+
--------------------------------------------------------------------------------------------------------
|
63213
|
+
ActionSmser::BaseTest: test_message_real_crop_should_return_cropped_message_with_sms_chars_taken_account
|
63214
|
+
--------------------------------------------------------------------------------------------------------
|
63215
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
63216
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
63217
|
+
-----------------------------------------------------------------------------
|
63218
|
+
ActionSmser::BaseTest: test_message_real_length_should_return_real_sms_lenght
|
63219
|
+
-----------------------------------------------------------------------------
|
63220
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
63221
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
63222
|
+
----------------------------------------------------------------
|
63223
|
+
ActionSmser::BaseTest: test_receivers_should_be_joined_by_commas
|
63224
|
+
----------------------------------------------------------------
|
63225
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
63226
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
63227
|
+
--------------------------------------------------------
|
63228
|
+
ActionSmser::BaseTest: test_should_be_able_to_change_ttl
|
63229
|
+
--------------------------------------------------------
|
63230
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
63231
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
63232
|
+
--------------------------------------------------------------
|
63233
|
+
ActionSmser::BaseTest: test_should_be_ok_with_single_receivers
|
63234
|
+
--------------------------------------------------------------
|
63235
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
63236
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
63237
|
+
-----------------------------------------------
|
63238
|
+
ActionSmser::BaseTest: test_should_be_valid_sms
|
63239
|
+
-----------------------------------------------
|
63240
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
63241
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
63242
|
+
-------------------------------------------------------------------------------------
|
63243
|
+
ActionSmser::BaseTest: test_should_have_copied_the_delivery_options_when_initializing
|
63244
|
+
-------------------------------------------------------------------------------------
|
63245
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
63246
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
63247
|
+
------------------------------------------------------
|
63248
|
+
ActionSmser::BaseTest: test_should_have_saved_sms_type
|
63249
|
+
------------------------------------------------------
|
63250
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
63251
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
63252
|
+
---------------------------------------------------------------------
|
63253
|
+
ActionSmser::BaseTest: test_should_have_test_array_as_delivery_method
|
63254
|
+
---------------------------------------------------------------------
|
63255
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
63256
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
63257
|
+
----------------------------------------------------------------
|
63258
|
+
ActionSmser::BaseTest: test_should_not_be_valid_if_no_recipients
|
63259
|
+
----------------------------------------------------------------
|
63260
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
63261
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
63262
|
+
-------------------------------------------------------------
|
63263
|
+
ActionSmser::BaseTest: test_ttl_should_be_24_hours_by_default
|
63264
|
+
-------------------------------------------------------------
|
63265
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
63266
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
63267
|
+
----------------------------------------------------------------------------------------------
|
63268
|
+
ActionSmser::DelayedJobTest: test_should_be_able_to_deliver_and_call_enqueue_for_all_receivers
|
63269
|
+
----------------------------------------------------------------------------------------------
|
63270
|
+
ActionSmser: Sending sms - Delivery_method: delayed_job - Sms: (Sms ActionSmser::DelayedJobTest::MockSms.basic_sms - From: "555666", To: ["555123555", "123555123"], Body: "Body with ääkköset end", Valid: true)
|
63271
|
+
ActionSmser: Delivering sms by delayed_job
|
63272
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
63273
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
63274
|
+
-------------------------------------------------------------
|
63275
|
+
ActionSmser::DelayedJobTest: test_test_that_serializing_is_ok
|
63276
|
+
-------------------------------------------------------------
|
63277
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
63278
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
63279
|
+
-------------------------------------------------------------------
|
63280
|
+
ActionSmser::DeliveryReportTest: test_build_DeliveryReport_from_sms
|
63281
|
+
-------------------------------------------------------------------
|
63282
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
63283
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
63284
|
+
------------------------------------------------------
|
63285
|
+
ActionSmser::DeliveryReportTest: test_create_from_save
|
63286
|
+
------------------------------------------------------
|
63287
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "action_smser_delivery_reports"
|
63288
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
63289
|
+
[1m[35mSQL (3.3ms)[0m INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Body with ääkköset end"], ["created_at", Mon, 13 Jan 2014 13:14:01 UTC +00:00], ["from", "555666"], ["gateway", "test_array"], ["log", "2014-01-13 15:14:01: LOCAL_SENT\n"], ["msg_id", "msg_id_a"], ["sms_type", "ActionSmser::DeliveryReportTest::MockSms.basic_sms"], ["status", "LOCAL_SENT"], ["status_updated_at", Mon, 13 Jan 2014 13:14:01 UTC +00:00], ["to", "123"], ["updated_at", Mon, 13 Jan 2014 13:14:01 UTC +00:00]]
|
63290
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
63291
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "action_smser_delivery_reports"
|
63292
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
63293
|
+
[1m[35m (0.0ms)[0m begin transaction
|
63294
|
+
-----------------------------------------------------------------
|
63295
|
+
ActionSmser::DeliveryReportTest: test_re_deliver_with_simple_http
|
63296
|
+
-----------------------------------------------------------------
|
63297
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
63298
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Body with ääkköset end"], ["created_at", Mon, 13 Jan 2014 13:14:01 UTC +00:00], ["from", "555666"], ["gateway", "test_array"], ["log", "2014-01-13 15:14:01: LOCAL_SENT\n"], ["msg_id", "msg_id_a"], ["sms_type", "ActionSmser::DeliveryReportTest::MockSms.basic_sms"], ["status", "LOCAL_SENT"], ["status_updated_at", Mon, 13 Jan 2014 13:14:01 UTC +00:00], ["to", "123"], ["updated_at", Mon, 13 Jan 2014 13:14:01 UTC +00:00]]
|
63299
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
63300
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
63301
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "action_smser_delivery_reports" SET "gateway" = ?, "updated_at" = ? WHERE "action_smser_delivery_reports"."id" = 1[0m [["gateway", "some_delivery"], ["updated_at", Mon, 13 Jan 2014 13:14:01 UTC +00:00]]
|
63302
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
63303
|
+
[1m[36mActionSmser::DeliveryReport Load (0.1ms)[0m [1mSELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."id" = ? LIMIT 1[0m [["id", 1]]
|
63304
|
+
ActionSmser: Re_delivering: #<ActionSmser::DeliveryReport id: 1, msg_id: "msg_id_a", status: "LOCAL_SENT", status_updated_at: "2014-01-13 13:14:01", sms_type: "ActionSmser::DeliveryReportTest::MockSms.basic_sms", log: "2014-01-13 15:14:01: LOCAL_SENT\n", to: "123", from: "555666", body: "Body with ääkköset end", gateway: "some_delivery", re_delivery_of_delivery_report_id: nil, re_delivered: nil, created_at: "2014-01-13 13:14:01", updated_at: "2014-01-13 13:14:01">
|
63305
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
63306
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "action_smser_delivery_reports" SET "re_delivered" = ?, "updated_at" = ? WHERE "action_smser_delivery_reports"."id" = 1[0m [["re_delivered", true], ["updated_at", Mon, 13 Jan 2014 13:14:01 UTC +00:00]]
|
63307
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
63308
|
+
[1m[36mActionSmser::DeliveryReport Load (0.1ms)[0m [1mSELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."id" = ? LIMIT 1[0m [["id", 1]]
|
63309
|
+
ActionSmser: Sending sms - Delivery_method: test_array - Sms: (Sms ActionSmser::DeliveryReportTest::MockSms.basic_sms.re_delivery - From: "555666", To: "123", Body: "Body with ääkköset end", Valid: true)
|
63310
|
+
ActionSmser: ActionSmser::DeliveryMethods::TestArray.deliveries added message, no real delivery.
|
63311
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
63312
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "re_delivery_of_delivery_report_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Body with ääkköset end"], ["created_at", Mon, 13 Jan 2014 13:14:01 UTC +00:00], ["from", "555666"], ["gateway", "test_array"], ["log", "2014-01-13 15:14:01: LOCAL_SENT\n"], ["msg_id", "test_array_id_27058140"], ["re_delivery_of_delivery_report_id", 1], ["sms_type", "ActionSmser::DeliveryReportTest::MockSms.basic_sms.re_delivery"], ["status", "LOCAL_SENT"], ["status_updated_at", Mon, 13 Jan 2014 13:14:01 UTC +00:00], ["to", "123"], ["updated_at", Mon, 13 Jan 2014 13:14:01 UTC +00:00]]
|
63313
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
63314
|
+
[1m[36mActionSmser::DeliveryReport Load (0.1ms)[0m [1mSELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" ORDER BY "action_smser_delivery_reports"."id" DESC LIMIT 1[0m
|
63315
|
+
[1m[35mActionSmser::DeliveryReport Load (0.2ms)[0m SELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."re_delivery_of_delivery_report_id" = ? ORDER BY "action_smser_delivery_reports"."id" ASC LIMIT 1 [["re_delivery_of_delivery_report_id", 1]]
|
63316
|
+
[1m[36mActionSmser::DeliveryReport Load (0.2ms)[0m [1mSELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."id" = ? ORDER BY "action_smser_delivery_reports"."id" ASC LIMIT 1[0m [["id", 1]]
|
63317
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
63318
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
63319
|
+
--------------------------------------------
|
63320
|
+
ActionSmser::DeliveryReportTest: test_to_sms
|
63321
|
+
--------------------------------------------
|
63322
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
63323
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Body with ääkköset end"], ["created_at", Mon, 13 Jan 2014 13:14:01 UTC +00:00], ["from", "555666"], ["gateway", "test_array"], ["log", "2014-01-13 15:14:01: LOCAL_SENT\n"], ["msg_id", "msg_id_a"], ["sms_type", "ActionSmser::DeliveryReportTest::MockSms.basic_sms"], ["status", "LOCAL_SENT"], ["status_updated_at", Mon, 13 Jan 2014 13:14:01 UTC +00:00], ["to", "123"], ["updated_at", Mon, 13 Jan 2014 13:14:01 UTC +00:00]]
|
63324
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
63325
|
+
[1m[36mActionSmser::DeliveryReport Load (0.0ms)[0m [1mSELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."id" = ? LIMIT 1[0m [["id", 1]]
|
63326
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
63327
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
63328
|
+
-----------------------------------------------------
|
63329
|
+
ActionSmser::DeliveryReportTest: test_updating_status
|
63330
|
+
-----------------------------------------------------
|
63331
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
63332
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "action_smser_delivery_reports" ("created_at", "log", "status", "status_updated_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["created_at", Mon, 13 Jan 2014 13:14:01 UTC +00:00], ["log", "2014-01-13 15:14:01: LOCAL_TEST\n"], ["status", "LOCAL_TEST"], ["status_updated_at", Mon, 13 Jan 2014 13:14:01 UTC +00:00], ["updated_at", Mon, 13 Jan 2014 13:14:01 UTC +00:00]]
|
63333
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
63334
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
63335
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "action_smser_delivery_reports" SET "status" = ?, "status_updated_at" = ?, "log" = ?, "updated_at" = ? WHERE "action_smser_delivery_reports"."id" = 1 [["status", "TEST_2"], ["status_updated_at", Mon, 13 Jan 2014 13:14:01 UTC +00:00], ["log", "2014-01-13 15:14:01: LOCAL_TEST\n2014-01-13 15:14:01: TEST_2\n"], ["updated_at", Mon, 13 Jan 2014 13:14:01 UTC +00:00]]
|
63336
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
63337
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
63338
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
63339
|
+
--------------------------------------------------------------------------------
|
63340
|
+
ActionSmser::DeliveryReportsControllerTest: test_gateway_commit_with_existing_dr
|
63341
|
+
--------------------------------------------------------------------------------
|
63342
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
63343
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "action_smser_delivery_reports" ("created_at", "log", "msg_id", "status", "status_updated_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 13 Jan 2014 13:14:01 UTC +00:00], ["log", "2014-01-13 15:14:01: ORIGINAL_STATUS\n"], ["msg_id", "102010314204056202"], ["status", "ORIGINAL_STATUS"], ["status_updated_at", Mon, 13 Jan 2014 13:14:01 UTC +00:00], ["updated_at", Mon, 13 Jan 2014 13:14:01 UTC +00:00]]
|
63344
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
63345
|
+
Processing by ActionSmser::DeliveryReportsController#gateway_commit as HTML
|
63346
|
+
Parameters: {"gateway"=>"test_gateway", "DeliveryReport"=>{"message"=>{"id"=>"102010314204056202", "donedate"=>"2012/01/03 14:20:45", "sentdate"=>"2012/01/03 14:20:40", "status"=>"DELIVERED"}}}
|
63347
|
+
ActionSmser: Gateway_commit found parser for gateway: test_gateway
|
63348
|
+
[1m[36mActionSmser::DeliveryReport Load (0.1ms)[0m [1mSELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."msg_id" = '102010314204056202' ORDER BY "action_smser_delivery_reports"."id" ASC LIMIT 1[0m
|
63349
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
63350
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "action_smser_delivery_reports" SET "status" = ?, "status_updated_at" = ?, "log" = ?, "updated_at" = ? WHERE "action_smser_delivery_reports"."id" = 1[0m [["status", "DELIVERED"], ["status_updated_at", Mon, 13 Jan 2014 13:14:01 UTC +00:00], ["log", "2014-01-13 15:14:01: ORIGINAL_STATUS\n2014-01-13 15:14:01: DELIVERED\n"], ["updated_at", Mon, 13 Jan 2014 13:14:01 UTC +00:00]]
|
63351
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
63352
|
+
ActionSmser: Gateway_commit updated item with id: 102010314204056202, params: {"msg_id"=>"102010314204056202", "status"=>"DELIVERED"}
|
63353
|
+
Rendered text template (0.0ms)
|
63354
|
+
Completed 200 OK in 3ms (Views: 0.4ms | ActiveRecord: 0.3ms)
|
63355
|
+
[1m[36mActionSmser::DeliveryReport Load (0.0ms)[0m [1mSELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."id" = ? LIMIT 1[0m [["id", 1]]
|
63356
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
63357
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
63358
|
+
-------------------------------------------------------------------------------------
|
63359
|
+
ActionSmser::DeliveryReportsControllerTest: test_gateway_commit_with_multiple_records
|
63360
|
+
-------------------------------------------------------------------------------------
|
63361
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
63362
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "action_smser_delivery_reports" ("created_at", "log", "msg_id", "status", "status_updated_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 13 Jan 2014 13:14:01 UTC +00:00], ["log", "2014-01-13 15:14:01: ORIGINAL_STATUS\n"], ["msg_id", "102010314204056202"], ["status", "ORIGINAL_STATUS"], ["status_updated_at", Mon, 13 Jan 2014 13:14:01 UTC +00:00], ["updated_at", Mon, 13 Jan 2014 13:14:01 UTC +00:00]]
|
63363
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
63364
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
63365
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "action_smser_delivery_reports" ("created_at", "log", "msg_id", "status", "status_updated_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 13 Jan 2014 13:14:01 UTC +00:00], ["log", "2014-01-13 15:14:01: ORIGINAL_STATUS\n"], ["msg_id", "99999999999999999"], ["status", "ORIGINAL_STATUS"], ["status_updated_at", Mon, 13 Jan 2014 13:14:01 UTC +00:00], ["updated_at", Mon, 13 Jan 2014 13:14:01 UTC +00:00]]
|
63366
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
63367
|
+
Processing by ActionSmser::DeliveryReportsController#gateway_commit as HTML
|
63368
|
+
Parameters: {"gateway"=>"test_gateway", "DeliveryReport"=>{"message"=>[{"id"=>"102010314204056202", "status"=>"DELIVERED"}, {"id"=>"99999999999999999", "status"=>"DELIVERED"}]}}
|
63369
|
+
ActionSmser: Gateway_commit found parser for gateway: test_gateway
|
63370
|
+
[1m[35mActionSmser::DeliveryReport Load (0.1ms)[0m SELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."msg_id" = '102010314204056202' ORDER BY "action_smser_delivery_reports"."id" ASC LIMIT 1
|
63371
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
63372
|
+
[1m[35mSQL (0.2ms)[0m UPDATE "action_smser_delivery_reports" SET "status" = ?, "status_updated_at" = ?, "log" = ?, "updated_at" = ? WHERE "action_smser_delivery_reports"."id" = 1 [["status", "DELIVERED"], ["status_updated_at", Mon, 13 Jan 2014 13:14:01 UTC +00:00], ["log", "2014-01-13 15:14:01: ORIGINAL_STATUS\n2014-01-13 15:14:01: DELIVERED\n"], ["updated_at", Mon, 13 Jan 2014 13:14:01 UTC +00:00]]
|
63373
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
63374
|
+
ActionSmser: Gateway_commit updated item with id: 102010314204056202, params: {"msg_id"=>"102010314204056202", "status"=>"DELIVERED"}
|
63375
|
+
[1m[35mActionSmser::DeliveryReport Load (0.1ms)[0m SELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."msg_id" = '99999999999999999' ORDER BY "action_smser_delivery_reports"."id" ASC LIMIT 1
|
63376
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
63377
|
+
[1m[35mSQL (0.2ms)[0m UPDATE "action_smser_delivery_reports" SET "status" = ?, "status_updated_at" = ?, "log" = ?, "updated_at" = ? WHERE "action_smser_delivery_reports"."id" = 2 [["status", "DELIVERED"], ["status_updated_at", Mon, 13 Jan 2014 13:14:01 UTC +00:00], ["log", "2014-01-13 15:14:01: ORIGINAL_STATUS\n2014-01-13 15:14:01: DELIVERED\n"], ["updated_at", Mon, 13 Jan 2014 13:14:01 UTC +00:00]]
|
63378
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
63379
|
+
ActionSmser: Gateway_commit updated item with id: 99999999999999999, params: {"msg_id"=>"99999999999999999", "status"=>"DELIVERED"}
|
63380
|
+
Completed 200 OK in 4ms (Views: 0.3ms | ActiveRecord: 0.7ms)
|
63381
|
+
[1m[35mActionSmser::DeliveryReport Load (0.0ms)[0m SELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."id" = ? LIMIT 1 [["id", 1]]
|
63382
|
+
[1m[36mActionSmser::DeliveryReport Load (0.0ms)[0m [1mSELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."id" = ? LIMIT 1[0m [["id", 2]]
|
63383
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
63384
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
63385
|
+
----------------------------------------------------------------------------------
|
63386
|
+
ActionSmser::DeliveryReportsControllerTest: test_gateway_commit_without_any_parser
|
63387
|
+
----------------------------------------------------------------------------------
|
63388
|
+
Processing by ActionSmser::DeliveryReportsController#gateway_commit as HTML
|
63389
|
+
Parameters: {"gateway"=>"gateway_not_found", "DeliveryReport"=>{"message"=>{"id"=>"wrongid", "donedate"=>"2012/01/03 14:20:45", "sentdate"=>"2012/01/03 14:20:40", "status"=>"DELIVERED"}}}
|
63390
|
+
Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
|
63391
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
63392
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
63393
|
+
--------------------------------------------------------------------------
|
63394
|
+
ActionSmser::DeliveryReportsControllerTest: test_gateway_commit_without_dr
|
63395
|
+
--------------------------------------------------------------------------
|
63396
|
+
Processing by ActionSmser::DeliveryReportsController#gateway_commit as HTML
|
63397
|
+
Parameters: {"gateway"=>"test_gateway", "DeliveryReport"=>{"message"=>{"id"=>"wrongid", "donedate"=>"2012/01/03 14:20:45", "sentdate"=>"2012/01/03 14:20:40", "status"=>"DELIVERED"}}}
|
63398
|
+
ActionSmser: Gateway_commit found parser for gateway: test_gateway
|
63399
|
+
[1m[35mActionSmser::DeliveryReport Load (0.1ms)[0m SELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."msg_id" = 'wrongid' ORDER BY "action_smser_delivery_reports"."id" ASC LIMIT 1
|
63400
|
+
ActionSmser: Gateway_commit not found item with id: wrongid, params: {"msg_id"=>"wrongid", "status"=>"DELIVERED"}
|
63401
|
+
Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
|
63402
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
63403
|
+
[1m[35m (0.0ms)[0m begin transaction
|
63404
|
+
-----------------------------------------------------------------------------------------------------
|
63405
|
+
ActionSmser::DeliveryReportsControllerTest: test_index_with_admin_access_lambda_with_right_login_info
|
63406
|
+
-----------------------------------------------------------------------------------------------------
|
63407
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
63408
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "action_smser_delivery_reports" ("created_at", "msg_id", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 13 Jan 2014 13:14:01 UTC +00:00], ["msg_id", "idtest_9"], ["updated_at", Mon, 13 Jan 2014 13:14:01 UTC +00:00]]
|
63409
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
63410
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
63411
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "action_smser_delivery_reports" ("created_at", "msg_id", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 13 Jan 2014 13:14:01 UTC +00:00], ["msg_id", "idtest_8"], ["updated_at", Mon, 13 Jan 2014 13:14:01 UTC +00:00]]
|
63412
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
63413
|
+
Processing by ActionSmser::DeliveryReportsController#index as HTML
|
63414
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2014-01-06 13:14:01.385427' AND '2014-01-13 13:04:01.385536')[0m
|
63415
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) AS count_all, gateway AS gateway FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2014-01-06 13:14:01.385427' AND '2014-01-13 13:04:01.385536') GROUP BY gateway
|
63416
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2014-01-06 13:14:01.385427' AND '2014-01-13 13:04:01.385536')[0m
|
63417
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) AS count_all, status AS status FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2014-01-06 13:14:01.385427' AND '2014-01-13 13:04:01.385536') GROUP BY status
|
63418
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2014-01-06 13:14:01.385427' AND '2014-01-13 13:04:01.385536')[0m
|
63419
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) AS count_all, sms_type AS sms_type FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2014-01-06 13:14:01.385427' AND '2014-01-13 13:04:01.385536') GROUP BY sms_type
|
63420
|
+
Completed 200 OK in 9ms (Views: 8.6ms | ActiveRecord: 0.5ms)
|
63421
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
63422
|
+
[1m[35m (0.0ms)[0m begin transaction
|
63423
|
+
--------------------------------------------------------------------------------
|
63424
|
+
ActionSmser::DeliveryReportsControllerTest: test_index_with_always_enabled_admin
|
63425
|
+
--------------------------------------------------------------------------------
|
63426
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
63427
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "action_smser_delivery_reports" ("created_at", "msg_id", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 13 Jan 2014 13:14:01 UTC +00:00], ["msg_id", "idtest_9"], ["updated_at", Mon, 13 Jan 2014 13:14:01 UTC +00:00]]
|
63428
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
63429
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
63430
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "action_smser_delivery_reports" ("created_at", "msg_id", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 13 Jan 2014 13:14:01 UTC +00:00], ["msg_id", "idtest_6"], ["updated_at", Mon, 13 Jan 2014 13:14:01 UTC +00:00]]
|
63431
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
63432
|
+
Processing by ActionSmser::DeliveryReportsController#index as HTML
|
63433
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2014-01-06 13:14:01.397192' AND '2014-01-13 13:04:01.397291')[0m
|
63434
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) AS count_all, gateway AS gateway FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2014-01-06 13:14:01.397192' AND '2014-01-13 13:04:01.397291') GROUP BY gateway
|
63435
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2014-01-06 13:14:01.397192' AND '2014-01-13 13:04:01.397291')[0m
|
63436
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) AS count_all, status AS status FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2014-01-06 13:14:01.397192' AND '2014-01-13 13:04:01.397291') GROUP BY status
|
63437
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2014-01-06 13:14:01.397192' AND '2014-01-13 13:04:01.397291')[0m
|
63438
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) AS count_all, sms_type AS sms_type FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2014-01-06 13:14:01.397192' AND '2014-01-13 13:04:01.397291') GROUP BY sms_type
|
63439
|
+
Completed 200 OK in 6ms (Views: 5.7ms | ActiveRecord: 0.4ms)
|
63440
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
63441
|
+
[1m[35m (0.0ms)[0m begin transaction
|
63442
|
+
--------------------------------------------------------------------------------------------------------
|
63443
|
+
ActionSmser::DeliveryReportsControllerTest: test_index_with_forbidden_admin_access_(default_access_mode)
|
63444
|
+
--------------------------------------------------------------------------------------------------------
|
63445
|
+
Processing by ActionSmser::DeliveryReportsController#index as HTML
|
63446
|
+
Filter chain halted as :admin_access_only rendered or redirected
|
63447
|
+
Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
|
63448
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
63449
|
+
[1m[35m (0.0ms)[0m begin transaction
|
63450
|
+
-------------------------------------------------------------------------------
|
63451
|
+
ActionSmser::DeliveryReportsControllerTest: test_list_with_always_enabled_admin
|
63452
|
+
-------------------------------------------------------------------------------
|
63453
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
63454
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "action_smser_delivery_reports" ("created_at", "msg_id", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 13 Jan 2014 13:14:01 UTC +00:00], ["msg_id", "idtest_7"], ["updated_at", Mon, 13 Jan 2014 13:14:01 UTC +00:00]]
|
63455
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
63456
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
63457
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "action_smser_delivery_reports" ("created_at", "msg_id", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 13 Jan 2014 13:14:01 UTC +00:00], ["msg_id", "idtest_8"], ["updated_at", Mon, 13 Jan 2014 13:14:01 UTC +00:00]]
|
63458
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
63459
|
+
Processing by ActionSmser::DeliveryReportsController#list as HTML
|
63460
|
+
[1m[36mActionSmser::DeliveryReport Load (0.1ms)[0m [1mSELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" ORDER BY created_at DESC LIMIT 20 OFFSET 0[0m
|
63461
|
+
Completed 200 OK in 3ms (Views: 2.8ms | ActiveRecord: 0.1ms)
|
63462
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
63463
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
63464
|
+
--------------------------------------------------------------------
|
63465
|
+
ActionSmser::NexmoTest: test_gateway_process_delivery_report(params)
|
63466
|
+
--------------------------------------------------------------------
|
63467
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
63468
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
63469
|
+
------------------------------------------------------
|
63470
|
+
ActionSmser::NexmoTest: test_should_be_able_to_deliver
|
63471
|
+
------------------------------------------------------
|
63472
|
+
ActionSmser: Sending sms - Delivery_method: nexmo - Sms: (Sms ActionSmser::NexmoTest::MockSms.basic_sms - From: "555666", To: ["555123555", "123555123"], Body: "Body with ääkköset end", Valid: true)
|
63473
|
+
ActionSmser: Nexmo delivery http ||| /sms/json?username=user&password=pass&ttl=86400000&status-report-req=false&from=555666&to=555123555&text=Body+with+%C3%A4%C3%A4kk%C3%B6set+end ||| #<Mock:0x686b6a8>
|
63474
|
+
ActionSmser: {"message-count":"1","messages":[{"message-price":"0.02500000","status":"0","message-id":"0778DE88","remaining-balance":"1.77500000"}]}
|
63475
|
+
ActionSmser: Nexmo delivery http ||| /sms/json?username=user&password=pass&ttl=86400000&status-report-req=false&from=555666&to=123555123&text=Body+with+%C3%A4%C3%A4kk%C3%B6set+end ||| #<Mock:0x686b6a8>
|
63476
|
+
ActionSmser: {"message-count":"1","messages":[{"message-price":"0.02500000","status":"0","message-id":"0778DE88","remaining-balance":"1.77500000"}]}
|
63477
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
63478
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
63479
|
+
---------------------------------------------------------
|
63480
|
+
ActionSmser::NexmoTest: test_with_saving_delivery_reports
|
63481
|
+
---------------------------------------------------------
|
63482
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "action_smser_delivery_reports"
|
63483
|
+
ActionSmser: Sending sms - Delivery_method: nexmo - Sms: (Sms ActionSmser::NexmoTest::MockSms.basic_sms - From: "555666", To: ["555123555", "123555123"], Body: "Body with ääkköset end", Valid: true)
|
63484
|
+
ActionSmser: Nexmo delivery http ||| /sms/json?username=user&password=pass&ttl=86400000&status-report-req=true&from=555666&to=555123555&text=Body+with+%C3%A4%C3%A4kk%C3%B6set+end ||| #<Mock:0x6bdfdc0>
|
63485
|
+
ActionSmser: {"message-count":"1","messages":[{"message-price":"0.02500000","status":"0","message-id":"0778DE88","remaining-balance":"1.77500000"}]}
|
63486
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
63487
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Body with ääkköset end"], ["created_at", Mon, 13 Jan 2014 13:14:01 UTC +00:00], ["from", "555666"], ["gateway", "nexmo"], ["log", "2014-01-13 15:14:01: LOCAL_SENT\n"], ["msg_id", "0778DE88"], ["sms_type", "ActionSmser::NexmoTest::MockSms.basic_sms"], ["status", "LOCAL_SENT"], ["status_updated_at", Mon, 13 Jan 2014 13:14:01 UTC +00:00], ["to", "555123555"], ["updated_at", Mon, 13 Jan 2014 13:14:01 UTC +00:00]]
|
63488
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
63489
|
+
ActionSmser: Nexmo delivery http ||| /sms/json?username=user&password=pass&ttl=86400000&status-report-req=true&from=555666&to=123555123&text=Body+with+%C3%A4%C3%A4kk%C3%B6set+end ||| #<Mock:0x6bdfdc0>
|
63490
|
+
ActionSmser: {"message-count":"1","messages":[{"message-price":"0.02500000","status":"0","message-id":"0778DE88","remaining-balance":"1.77500000"}]}
|
63491
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
63492
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Body with ääkköset end"], ["created_at", Mon, 13 Jan 2014 13:14:01 UTC +00:00], ["from", "555666"], ["gateway", "nexmo"], ["log", "2014-01-13 15:14:01: LOCAL_SENT\n"], ["msg_id", "0778DE88"], ["sms_type", "ActionSmser::NexmoTest::MockSms.basic_sms"], ["status", "LOCAL_SENT"], ["status_updated_at", Mon, 13 Jan 2014 13:14:01 UTC +00:00], ["to", "123555123"], ["updated_at", Mon, 13 Jan 2014 13:14:01 UTC +00:00]]
|
63493
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
63494
|
+
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "action_smser_delivery_reports"[0m
|
63495
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
63496
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
63497
|
+
-----------------------------------------------------------
|
63498
|
+
ActionSmser::SimpleHttpTest: test_should_be_able_to_deliver
|
63499
|
+
-----------------------------------------------------------
|
63500
|
+
ActionSmser: Sending sms - Delivery_method: simple_http - Sms: (Sms ActionSmser::SimpleHttpTest::MockSms.basic_sms - From: "555666", To: ["555123555", "123555123"], Body: "Body with ääkköset end", Valid: true)
|
63501
|
+
ActionSmser: SimpleHttp delivery ||| /api/sendsms/plain?user=user&password=pass&sender=555666&SMSText=Body+with+%E4%E4kk%F6set+end&GSM=555123555,123555123 ||| #<Mock:0x5d0b2e0>
|
63502
|
+
ActionSmser: id_1234
|
63503
|
+
id_6666
|
63504
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
63505
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
63506
|
+
--------------------------------------------------------------
|
63507
|
+
ActionSmser::SimpleHttpTest: test_with_saving_delivery_reports
|
63508
|
+
--------------------------------------------------------------
|
63509
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "action_smser_delivery_reports"
|
63510
|
+
ActionSmser: Sending sms - Delivery_method: simple_http - Sms: (Sms ActionSmser::SimpleHttpTest::MockSms.basic_sms - From: "555666", To: ["555123555", "123555123"], Body: "Body with ääkköset end", Valid: true)
|
63511
|
+
ActionSmser: SimpleHttp delivery ||| /api/sendsms/plain?user=user&password=pass&sender=555666&SMSText=Body+with+%E4%E4kk%F6set+end&GSM=555123555,123555123 ||| #<Mock:0x73d3388>
|
63512
|
+
ActionSmser: id_1234
|
63513
|
+
id_6666
|
63514
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
63515
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Body with ääkköset end"], ["created_at", Mon, 13 Jan 2014 13:14:01 UTC +00:00], ["from", "555666"], ["gateway", "simple_http"], ["log", "2014-01-13 15:14:01: LOCAL_SENT\n"], ["msg_id", "id_1234"], ["sms_type", "ActionSmser::SimpleHttpTest::MockSms.basic_sms"], ["status", "LOCAL_SENT"], ["status_updated_at", Mon, 13 Jan 2014 13:14:01 UTC +00:00], ["to", "555123555"], ["updated_at", Mon, 13 Jan 2014 13:14:01 UTC +00:00]]
|
63516
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
63517
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
63518
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Body with ääkköset end"], ["created_at", Mon, 13 Jan 2014 13:14:01 UTC +00:00], ["from", "555666"], ["gateway", "simple_http"], ["log", "2014-01-13 15:14:01: LOCAL_SENT\n"], ["msg_id", "id_6666"], ["sms_type", "ActionSmser::SimpleHttpTest::MockSms.basic_sms"], ["status", "LOCAL_SENT"], ["status_updated_at", Mon, 13 Jan 2014 13:14:01 UTC +00:00], ["to", "123555123"], ["updated_at", Mon, 13 Jan 2014 13:14:01 UTC +00:00]]
|
63519
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
63520
|
+
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "action_smser_delivery_reports"[0m
|
63521
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
63522
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
63523
|
+
---------------------------------------------------------
|
63524
|
+
ActionSmser::SmstradeTest: test_should_be_able_to_deliver
|
63525
|
+
---------------------------------------------------------
|
63526
|
+
ActionSmser: Sending sms - Delivery_method: smstrade - Sms: (Sms ActionSmser::SmstradeTest::MockSms.basic_sms - From: "4917212341234", To: ["4915112341234", "4917812341234"], Body: "Body with ümläüts.", Valid: true)
|
63527
|
+
ActionSmser: Smstrade delivery http ||| /?key=api-key-here&from=4917212341234&to=4915112341234&message=Body+with+%C3%BCml%C3%A4%C3%BCts.&route=gold&debug=1&cost=1&message_id=1&count=1&charset=utf-8 ||| #<Mock:0x3c32988>
|
63528
|
+
ActionSmser: 100
|
63529
|
+
123456789
|
63530
|
+
0.064
|
63531
|
+
1
|
63532
|
+
ActionSmser: Smstrade delivery http ||| /?key=api-key-here&from=4917212341234&to=4917812341234&message=Body+with+%C3%BCml%C3%A4%C3%BCts.&route=gold&debug=1&cost=1&message_id=1&count=1&charset=utf-8 ||| #<Mock:0x3c32988>
|
63533
|
+
ActionSmser: 100
|
63534
|
+
123456789
|
63535
|
+
0.064
|
63536
|
+
1
|
63537
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
63538
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
63539
|
+
------------------------------------------------------------
|
63540
|
+
ActionSmser::SmstradeTest: test_with_saving_delivery_reports
|
63541
|
+
------------------------------------------------------------
|
63542
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "action_smser_delivery_reports"
|
63543
|
+
ActionSmser: Sending sms - Delivery_method: smstrade - Sms: (Sms ActionSmser::SmstradeTest::MockSms.basic_sms - From: "4917212341234", To: ["4915112341234", "4917812341234"], Body: "Body with ümläüts.", Valid: true)
|
63544
|
+
ActionSmser: Smstrade delivery http ||| /?key=api-key-here&from=4917212341234&to=4915112341234&message=Body+with+%C3%BCml%C3%A4%C3%BCts.&route=gold&debug=1&cost=1&message_id=1&count=1&charset=utf-8 ||| #<Mock:0x3bf88a0>
|
63545
|
+
ActionSmser: 100
|
63546
|
+
123456789
|
63547
|
+
0.064
|
63548
|
+
1
|
63549
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
63550
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Body with ümläüts."], ["created_at", Mon, 13 Jan 2014 13:14:01 UTC +00:00], ["from", "4917212341234"], ["gateway", "smstrade"], ["log", "2014-01-13 15:14:01: LOCAL_SENT\n"], ["msg_id", "123456789"], ["sms_type", "ActionSmser::SmstradeTest::MockSms.basic_sms"], ["status", "LOCAL_SENT"], ["status_updated_at", Mon, 13 Jan 2014 13:14:01 UTC +00:00], ["to", "4915112341234"], ["updated_at", Mon, 13 Jan 2014 13:14:01 UTC +00:00]]
|
63551
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
63552
|
+
ActionSmser: Smstrade delivery http ||| /?key=api-key-here&from=4917212341234&to=4917812341234&message=Body+with+%C3%BCml%C3%A4%C3%BCts.&route=gold&debug=1&cost=1&message_id=1&count=1&charset=utf-8 ||| #<Mock:0x3bf88a0>
|
63553
|
+
ActionSmser: 100
|
63554
|
+
123456789
|
63555
|
+
0.064
|
63556
|
+
1
|
63557
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
63558
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Body with ümläüts."], ["created_at", Mon, 13 Jan 2014 13:14:01 UTC +00:00], ["from", "4917212341234"], ["gateway", "smstrade"], ["log", "2014-01-13 15:14:01: LOCAL_SENT\n"], ["msg_id", "123456789"], ["sms_type", "ActionSmser::SmstradeTest::MockSms.basic_sms"], ["status", "LOCAL_SENT"], ["status_updated_at", Mon, 13 Jan 2014 13:14:01 UTC +00:00], ["to", "4917812341234"], ["updated_at", Mon, 13 Jan 2014 13:14:01 UTC +00:00]]
|
63559
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
63560
|
+
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "action_smser_delivery_reports"[0m
|
63561
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
63562
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
63563
|
+
--------------------------------------------------------
|
63564
|
+
ActionSmser::TestArrayTest: test_should_add_to_TestArray
|
63565
|
+
--------------------------------------------------------
|
63566
|
+
ActionSmser: Sending sms - Delivery_method: test_array - Sms: (Sms ActionSmser::TestArrayTest::MockSms.basic_sms - From: "555666", To: ["555123555", "123555123"], Body: "Body with ääkköset end", Valid: true)
|
63567
|
+
ActionSmser: ActionSmser::DeliveryMethods::TestArray.deliveries added message, no real delivery.
|
63568
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
63569
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
63570
|
+
----------------------------------------------------------
|
63571
|
+
ActionSmser::TestArrayTest: test_should_be_able_to_deliver
|
63572
|
+
----------------------------------------------------------
|
63573
|
+
ActionSmser: Sending sms - Delivery_method: test_array - Sms: (Sms ActionSmser::TestArrayTest::MockSms.basic_sms - From: "555666", To: ["555123555", "123555123"], Body: "Body with ääkköset end", Valid: true)
|
63574
|
+
ActionSmser: ActionSmser::DeliveryMethods::TestArray.deliveries added message, no real delivery.
|
63575
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
63576
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
63577
|
+
-------------------------------------------------------------
|
63578
|
+
ActionSmser::TestArrayTest: test_with_saving_delivery_reports
|
63579
|
+
-------------------------------------------------------------
|
63580
|
+
ActionSmser: Sending sms - Delivery_method: test_array - Sms: (Sms ActionSmser::TestArrayTest::MockSms.basic_sms - From: "555666", To: ["555123555", "123555123"], Body: "Body with ääkköset end", Valid: true)
|
63581
|
+
ActionSmser: ActionSmser::DeliveryMethods::TestArray.deliveries added message, no real delivery.
|
63582
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "action_smser_delivery_reports"
|
63583
|
+
ActionSmser: Sending sms - Delivery_method: test_array - Sms: (Sms ActionSmser::TestArrayTest::MockSms.basic_sms - From: "555666", To: ["555123555", "123555123"], Body: "Body with ääkköset end", Valid: true)
|
63584
|
+
ActionSmser: ActionSmser::DeliveryMethods::TestArray.deliveries added message, no real delivery.
|
63585
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
63586
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Body with ääkköset end"], ["created_at", Mon, 13 Jan 2014 13:14:01 UTC +00:00], ["from", "555666"], ["gateway", "test_array"], ["log", "2014-01-13 15:14:01: LOCAL_SENT\n"], ["msg_id", "test_array_id_52692672"], ["sms_type", "ActionSmser::TestArrayTest::MockSms.basic_sms"], ["status", "LOCAL_SENT"], ["status_updated_at", Mon, 13 Jan 2014 13:14:01 UTC +00:00], ["to", "555123555"], ["updated_at", Mon, 13 Jan 2014 13:14:01 UTC +00:00]]
|
63587
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
63588
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
63589
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Body with ääkköset end"], ["created_at", Mon, 13 Jan 2014 13:14:01 UTC +00:00], ["from", "555666"], ["gateway", "test_array"], ["log", "2014-01-13 15:14:01: LOCAL_SENT\n"], ["msg_id", "test_array_id_5621661"], ["sms_type", "ActionSmser::TestArrayTest::MockSms.basic_sms"], ["status", "LOCAL_SENT"], ["status_updated_at", Mon, 13 Jan 2014 13:14:01 UTC +00:00], ["to", "123555123"], ["updated_at", Mon, 13 Jan 2014 13:14:01 UTC +00:00]]
|
63590
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
63591
|
+
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "action_smser_delivery_reports"[0m
|
63592
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
63593
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
63594
|
+
---------------------------
|
63595
|
+
ActionSmserTest: test_truth
|
63596
|
+
---------------------------
|
63597
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
63598
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
63599
|
+
---------------------------------------------------------
|
63600
|
+
NavigationTest: test_basic_gateway_commit_delivery_report
|
63601
|
+
---------------------------------------------------------
|
63602
|
+
Started GET "/action_smser/delivery_reports/gateway_commit/example_gateway" for 127.0.0.1 at 2014-01-13 15:14:01 +0200
|
63603
|
+
Processing by ActionSmser::DeliveryReportsController#gateway_commit as HTML
|
63604
|
+
Parameters: {"gateway"=>"example_gateway"}
|
63605
|
+
Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
|
63606
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
63607
|
+
[1m[36m (0.2ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [0m
|
63608
|
+
[1m[35m (0.1ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
63609
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
63610
|
+
Migrating to CreateActionSmserDeliveryReports (20120102215215)
|
63611
|
+
[1m[35m (0.0ms)[0m begin transaction
|
63612
|
+
[1m[36m (0.2ms)[0m [1mCREATE TABLE "action_smser_delivery_reports" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "msg_id" varchar(255), "status" varchar(255), "status_updated_at" datetime, "sms_type" varchar(255), "log" text, "to" varchar(255), "from" varchar(255), "body" varchar(255), "gateway" varchar(255), "re_delivery_of_delivery_report_id" integer, "re_delivered" boolean, "created_at" datetime, "updated_at" datetime) [0m
|
63613
|
+
[1m[35m (0.1ms)[0m CREATE INDEX "index_action_smser_delivery_reports_on_msg_id" ON "action_smser_delivery_reports" ("msg_id")
|
63614
|
+
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20120102215215"]]
|
63615
|
+
[1m[35m (0.0ms)[0m commit transaction
|
63616
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
63617
|
+
---------------------------------------------------------------------------
|
63618
|
+
ActionSmser::BaseTest: test_after_delivery_should_be_called_if_it's_present
|
63619
|
+
---------------------------------------------------------------------------
|
63620
|
+
ActionSmser: Sending sms - Delivery_method: test_array - Sms: (Sms ActionSmser::BaseTest::MockSms.basic_sms - From: "555666", To: ["555123555", "123", "+358123555123"], Body: "Body with ääkköset end", Valid: true)
|
63621
|
+
ActionSmser: ActionSmser::DeliveryMethods::TestArray.deliveries added message, no real delivery.
|
63622
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
63623
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
63624
|
+
----------------------------------------------------------------------------
|
63625
|
+
ActionSmser::BaseTest: test_before_delivery_should_be_called_if_it's_present
|
63626
|
+
----------------------------------------------------------------------------
|
63627
|
+
ActionSmser: Sending sms - Delivery_method: test_array - Sms: (Sms ActionSmser::BaseTest::MockSms.basic_sms - From: "555666", To: ["555123555", "123", "+358123555123"], Body: "Body with ääkköset end", Valid: true)
|
63628
|
+
ActionSmser: ActionSmser::DeliveryMethods::TestArray.deliveries added message, no real delivery.
|
63629
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
63630
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
63631
|
+
--------------------------------------------------------------------------------------------
|
63632
|
+
ActionSmser::BaseTest: test_body_should_be_cropped_to_500_chars,_limit_extra_looong_messages
|
63633
|
+
--------------------------------------------------------------------------------------------
|
63634
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
63635
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
63636
|
+
-------------------------------------------------------------
|
63637
|
+
ActionSmser::BaseTest: test_body_should_be_possible_to_encode
|
63638
|
+
-------------------------------------------------------------
|
63639
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
63640
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
63641
|
+
----------------------------------------------------------------------
|
63642
|
+
ActionSmser::BaseTest: test_from_encoded_should_remove_leading_+_and_0
|
63643
|
+
----------------------------------------------------------------------
|
63644
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
63645
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
63646
|
+
--------------------------------------------------------------------------------------------------------
|
63647
|
+
ActionSmser::BaseTest: test_message_real_crop_should_return_cropped_message_with_sms_chars_taken_account
|
63648
|
+
--------------------------------------------------------------------------------------------------------
|
63649
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
63650
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
63651
|
+
-----------------------------------------------------------------------------
|
63652
|
+
ActionSmser::BaseTest: test_message_real_length_should_return_real_sms_lenght
|
63653
|
+
-----------------------------------------------------------------------------
|
63654
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
63655
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
63656
|
+
----------------------------------------------------------------
|
63657
|
+
ActionSmser::BaseTest: test_receivers_should_be_joined_by_commas
|
63658
|
+
----------------------------------------------------------------
|
63659
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
63660
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
63661
|
+
--------------------------------------------------------
|
63662
|
+
ActionSmser::BaseTest: test_should_be_able_to_change_ttl
|
63663
|
+
--------------------------------------------------------
|
63664
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
63665
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
63666
|
+
--------------------------------------------------------------
|
63667
|
+
ActionSmser::BaseTest: test_should_be_ok_with_single_receivers
|
63668
|
+
--------------------------------------------------------------
|
63669
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
63670
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
63671
|
+
-----------------------------------------------
|
63672
|
+
ActionSmser::BaseTest: test_should_be_valid_sms
|
63673
|
+
-----------------------------------------------
|
63674
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
63675
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
63676
|
+
-------------------------------------------------------------------------------------
|
63677
|
+
ActionSmser::BaseTest: test_should_have_copied_the_delivery_options_when_initializing
|
63678
|
+
-------------------------------------------------------------------------------------
|
63679
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
63680
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
63681
|
+
------------------------------------------------------
|
63682
|
+
ActionSmser::BaseTest: test_should_have_saved_sms_type
|
63683
|
+
------------------------------------------------------
|
63684
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
63685
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
63686
|
+
---------------------------------------------------------------------
|
63687
|
+
ActionSmser::BaseTest: test_should_have_test_array_as_delivery_method
|
63688
|
+
---------------------------------------------------------------------
|
63689
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
63690
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
63691
|
+
----------------------------------------------------------------
|
63692
|
+
ActionSmser::BaseTest: test_should_not_be_valid_if_no_recipients
|
63693
|
+
----------------------------------------------------------------
|
63694
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
63695
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
63696
|
+
-------------------------------------------------------------
|
63697
|
+
ActionSmser::BaseTest: test_ttl_should_be_24_hours_by_default
|
63698
|
+
-------------------------------------------------------------
|
63699
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
63700
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
63701
|
+
----------------------------------------------------------------------------------------------
|
63702
|
+
ActionSmser::DelayedJobTest: test_should_be_able_to_deliver_and_call_enqueue_for_all_receivers
|
63703
|
+
----------------------------------------------------------------------------------------------
|
63704
|
+
ActionSmser: Sending sms - Delivery_method: delayed_job - Sms: (Sms ActionSmser::DelayedJobTest::MockSms.basic_sms - From: "555666", To: ["555123555", "123555123"], Body: "Body with ääkköset end", Valid: true)
|
63705
|
+
ActionSmser: Delivering sms by delayed_job
|
63706
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
63707
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
63708
|
+
-------------------------------------------------------------
|
63709
|
+
ActionSmser::DelayedJobTest: test_test_that_serializing_is_ok
|
63710
|
+
-------------------------------------------------------------
|
63711
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
63712
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
63713
|
+
-------------------------------------------------------------------
|
63714
|
+
ActionSmser::DeliveryReportTest: test_build_DeliveryReport_from_sms
|
63715
|
+
-------------------------------------------------------------------
|
63716
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
63717
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
63718
|
+
------------------------------------------------------
|
63719
|
+
ActionSmser::DeliveryReportTest: test_create_from_save
|
63720
|
+
------------------------------------------------------
|
63721
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "action_smser_delivery_reports"
|
63722
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
63723
|
+
[1m[35mSQL (23.3ms)[0m INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Body with ääkköset end"], ["created_at", Mon, 13 Jan 2014 13:14:18 UTC +00:00], ["from", "555666"], ["gateway", "test_array"], ["log", "2014-01-13 15:14:18: LOCAL_SENT\n"], ["msg_id", "msg_id_a"], ["sms_type", "ActionSmser::DeliveryReportTest::MockSms.basic_sms"], ["status", "LOCAL_SENT"], ["status_updated_at", Mon, 13 Jan 2014 13:14:18 UTC +00:00], ["to", "123"], ["updated_at", Mon, 13 Jan 2014 13:14:18 UTC +00:00]]
|
63724
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
63725
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "action_smser_delivery_reports"
|
63726
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
63727
|
+
[1m[35m (0.0ms)[0m begin transaction
|
63728
|
+
-----------------------------------------------------------------
|
63729
|
+
ActionSmser::DeliveryReportTest: test_re_deliver_with_simple_http
|
63730
|
+
-----------------------------------------------------------------
|
63731
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
63732
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Body with ääkköset end"], ["created_at", Mon, 13 Jan 2014 13:14:18 UTC +00:00], ["from", "555666"], ["gateway", "test_array"], ["log", "2014-01-13 15:14:18: LOCAL_SENT\n"], ["msg_id", "msg_id_a"], ["sms_type", "ActionSmser::DeliveryReportTest::MockSms.basic_sms"], ["status", "LOCAL_SENT"], ["status_updated_at", Mon, 13 Jan 2014 13:14:18 UTC +00:00], ["to", "123"], ["updated_at", Mon, 13 Jan 2014 13:14:18 UTC +00:00]]
|
63733
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
63734
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
63735
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "action_smser_delivery_reports" SET "gateway" = ?, "updated_at" = ? WHERE "action_smser_delivery_reports"."id" = 1[0m [["gateway", "some_delivery"], ["updated_at", Mon, 13 Jan 2014 13:14:18 UTC +00:00]]
|
63736
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
63737
|
+
[1m[36mActionSmser::DeliveryReport Load (0.1ms)[0m [1mSELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."id" = ? LIMIT 1[0m [["id", 1]]
|
63738
|
+
ActionSmser: Re_delivering: #<ActionSmser::DeliveryReport id: 1, msg_id: "msg_id_a", status: "LOCAL_SENT", status_updated_at: "2014-01-13 13:14:18", sms_type: "ActionSmser::DeliveryReportTest::MockSms.basic_sms", log: "2014-01-13 15:14:18: LOCAL_SENT\n", to: "123", from: "555666", body: "Body with ääkköset end", gateway: "some_delivery", re_delivery_of_delivery_report_id: nil, re_delivered: nil, created_at: "2014-01-13 13:14:18", updated_at: "2014-01-13 13:14:18">
|
63739
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
63740
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "action_smser_delivery_reports" SET "re_delivered" = ?, "updated_at" = ? WHERE "action_smser_delivery_reports"."id" = 1[0m [["re_delivered", true], ["updated_at", Mon, 13 Jan 2014 13:14:18 UTC +00:00]]
|
63741
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
63742
|
+
[1m[36mActionSmser::DeliveryReport Load (0.0ms)[0m [1mSELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."id" = ? LIMIT 1[0m [["id", 1]]
|
63743
|
+
ActionSmser: Sending sms - Delivery_method: test_array - Sms: (Sms ActionSmser::DeliveryReportTest::MockSms.basic_sms.re_delivery - From: "555666", To: "123", Body: "Body with ääkköset end", Valid: true)
|
63744
|
+
ActionSmser: ActionSmser::DeliveryMethods::TestArray.deliveries added message, no real delivery.
|
63745
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
63746
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "re_delivery_of_delivery_report_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Body with ääkköset end"], ["created_at", Mon, 13 Jan 2014 13:14:18 UTC +00:00], ["from", "555666"], ["gateway", "test_array"], ["log", "2014-01-13 15:14:18: LOCAL_SENT\n"], ["msg_id", "test_array_id_63310685"], ["re_delivery_of_delivery_report_id", 1], ["sms_type", "ActionSmser::DeliveryReportTest::MockSms.basic_sms.re_delivery"], ["status", "LOCAL_SENT"], ["status_updated_at", Mon, 13 Jan 2014 13:14:18 UTC +00:00], ["to", "123"], ["updated_at", Mon, 13 Jan 2014 13:14:18 UTC +00:00]]
|
63747
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
63748
|
+
[1m[36mActionSmser::DeliveryReport Load (0.1ms)[0m [1mSELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" ORDER BY "action_smser_delivery_reports"."id" DESC LIMIT 1[0m
|
63749
|
+
[1m[35mActionSmser::DeliveryReport Load (0.1ms)[0m SELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."re_delivery_of_delivery_report_id" = ? ORDER BY "action_smser_delivery_reports"."id" ASC LIMIT 1 [["re_delivery_of_delivery_report_id", 1]]
|
63750
|
+
[1m[36mActionSmser::DeliveryReport Load (0.2ms)[0m [1mSELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."id" = ? ORDER BY "action_smser_delivery_reports"."id" ASC LIMIT 1[0m [["id", 1]]
|
63751
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
63752
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
63753
|
+
--------------------------------------------
|
63754
|
+
ActionSmser::DeliveryReportTest: test_to_sms
|
63755
|
+
--------------------------------------------
|
63756
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
63757
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Body with ääkköset end"], ["created_at", Mon, 13 Jan 2014 13:14:18 UTC +00:00], ["from", "555666"], ["gateway", "test_array"], ["log", "2014-01-13 15:14:18: LOCAL_SENT\n"], ["msg_id", "msg_id_a"], ["sms_type", "ActionSmser::DeliveryReportTest::MockSms.basic_sms"], ["status", "LOCAL_SENT"], ["status_updated_at", Mon, 13 Jan 2014 13:14:18 UTC +00:00], ["to", "123"], ["updated_at", Mon, 13 Jan 2014 13:14:18 UTC +00:00]]
|
63758
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
63759
|
+
[1m[36mActionSmser::DeliveryReport Load (0.0ms)[0m [1mSELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."id" = ? LIMIT 1[0m [["id", 1]]
|
63760
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
63761
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
63762
|
+
-----------------------------------------------------
|
63763
|
+
ActionSmser::DeliveryReportTest: test_updating_status
|
63764
|
+
-----------------------------------------------------
|
63765
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
63766
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "action_smser_delivery_reports" ("created_at", "log", "status", "status_updated_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["created_at", Mon, 13 Jan 2014 13:14:18 UTC +00:00], ["log", "2014-01-13 15:14:18: LOCAL_TEST\n"], ["status", "LOCAL_TEST"], ["status_updated_at", Mon, 13 Jan 2014 13:14:18 UTC +00:00], ["updated_at", Mon, 13 Jan 2014 13:14:18 UTC +00:00]]
|
63767
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
63768
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
63769
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "action_smser_delivery_reports" SET "status" = ?, "status_updated_at" = ?, "log" = ?, "updated_at" = ? WHERE "action_smser_delivery_reports"."id" = 1 [["status", "TEST_2"], ["status_updated_at", Mon, 13 Jan 2014 13:14:18 UTC +00:00], ["log", "2014-01-13 15:14:18: LOCAL_TEST\n2014-01-13 15:14:18: TEST_2\n"], ["updated_at", Mon, 13 Jan 2014 13:14:18 UTC +00:00]]
|
63770
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
63771
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
63772
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
63773
|
+
--------------------------------------------------------------------------------
|
63774
|
+
ActionSmser::DeliveryReportsControllerTest: test_gateway_commit_with_existing_dr
|
63775
|
+
--------------------------------------------------------------------------------
|
63776
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
63777
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "action_smser_delivery_reports" ("created_at", "log", "msg_id", "status", "status_updated_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 13 Jan 2014 13:14:18 UTC +00:00], ["log", "2014-01-13 15:14:18: ORIGINAL_STATUS\n"], ["msg_id", "102010314204056202"], ["status", "ORIGINAL_STATUS"], ["status_updated_at", Mon, 13 Jan 2014 13:14:18 UTC +00:00], ["updated_at", Mon, 13 Jan 2014 13:14:18 UTC +00:00]]
|
63778
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
63779
|
+
Processing by ActionSmser::DeliveryReportsController#gateway_commit as HTML
|
63780
|
+
Parameters: {"gateway"=>"test_gateway", "DeliveryReport"=>{"message"=>{"id"=>"102010314204056202", "donedate"=>"2012/01/03 14:20:45", "sentdate"=>"2012/01/03 14:20:40", "status"=>"DELIVERED"}}}
|
63781
|
+
ActionSmser: Gateway_commit found parser for gateway: test_gateway
|
63782
|
+
[1m[36mActionSmser::DeliveryReport Load (0.1ms)[0m [1mSELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."msg_id" = '102010314204056202' ORDER BY "action_smser_delivery_reports"."id" ASC LIMIT 1[0m
|
63783
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
63784
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "action_smser_delivery_reports" SET "status" = ?, "status_updated_at" = ?, "log" = ?, "updated_at" = ? WHERE "action_smser_delivery_reports"."id" = 1[0m [["status", "DELIVERED"], ["status_updated_at", Mon, 13 Jan 2014 13:14:18 UTC +00:00], ["log", "2014-01-13 15:14:18: ORIGINAL_STATUS\n2014-01-13 15:14:18: DELIVERED\n"], ["updated_at", Mon, 13 Jan 2014 13:14:18 UTC +00:00]]
|
63785
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
63786
|
+
ActionSmser: Gateway_commit updated item with id: 102010314204056202, params: {"msg_id"=>"102010314204056202", "status"=>"DELIVERED"}
|
63787
|
+
Rendered text template (0.0ms)
|
63788
|
+
Completed 200 OK in 3ms (Views: 0.5ms | ActiveRecord: 0.4ms)
|
63789
|
+
[1m[36mActionSmser::DeliveryReport Load (0.1ms)[0m [1mSELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."id" = ? LIMIT 1[0m [["id", 1]]
|
63790
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
63791
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
63792
|
+
-------------------------------------------------------------------------------------
|
63793
|
+
ActionSmser::DeliveryReportsControllerTest: test_gateway_commit_with_multiple_records
|
63794
|
+
-------------------------------------------------------------------------------------
|
63795
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
63796
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "action_smser_delivery_reports" ("created_at", "log", "msg_id", "status", "status_updated_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 13 Jan 2014 13:14:18 UTC +00:00], ["log", "2014-01-13 15:14:18: ORIGINAL_STATUS\n"], ["msg_id", "102010314204056202"], ["status", "ORIGINAL_STATUS"], ["status_updated_at", Mon, 13 Jan 2014 13:14:18 UTC +00:00], ["updated_at", Mon, 13 Jan 2014 13:14:18 UTC +00:00]]
|
63797
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
63798
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
63799
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "action_smser_delivery_reports" ("created_at", "log", "msg_id", "status", "status_updated_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 13 Jan 2014 13:14:18 UTC +00:00], ["log", "2014-01-13 15:14:18: ORIGINAL_STATUS\n"], ["msg_id", "99999999999999999"], ["status", "ORIGINAL_STATUS"], ["status_updated_at", Mon, 13 Jan 2014 13:14:18 UTC +00:00], ["updated_at", Mon, 13 Jan 2014 13:14:18 UTC +00:00]]
|
63800
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
63801
|
+
Processing by ActionSmser::DeliveryReportsController#gateway_commit as HTML
|
63802
|
+
Parameters: {"gateway"=>"test_gateway", "DeliveryReport"=>{"message"=>[{"id"=>"102010314204056202", "status"=>"DELIVERED"}, {"id"=>"99999999999999999", "status"=>"DELIVERED"}]}}
|
63803
|
+
ActionSmser: Gateway_commit found parser for gateway: test_gateway
|
63804
|
+
[1m[35mActionSmser::DeliveryReport Load (0.2ms)[0m SELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."msg_id" = '102010314204056202' ORDER BY "action_smser_delivery_reports"."id" ASC LIMIT 1
|
63805
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
63806
|
+
[1m[35mSQL (0.2ms)[0m UPDATE "action_smser_delivery_reports" SET "status" = ?, "status_updated_at" = ?, "log" = ?, "updated_at" = ? WHERE "action_smser_delivery_reports"."id" = 1 [["status", "DELIVERED"], ["status_updated_at", Mon, 13 Jan 2014 13:14:18 UTC +00:00], ["log", "2014-01-13 15:14:18: ORIGINAL_STATUS\n2014-01-13 15:14:18: DELIVERED\n"], ["updated_at", Mon, 13 Jan 2014 13:14:18 UTC +00:00]]
|
63807
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
63808
|
+
ActionSmser: Gateway_commit updated item with id: 102010314204056202, params: {"msg_id"=>"102010314204056202", "status"=>"DELIVERED"}
|
63809
|
+
[1m[35mActionSmser::DeliveryReport Load (0.1ms)[0m SELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."msg_id" = '99999999999999999' ORDER BY "action_smser_delivery_reports"."id" ASC LIMIT 1
|
63810
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
63811
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "action_smser_delivery_reports" SET "status" = ?, "status_updated_at" = ?, "log" = ?, "updated_at" = ? WHERE "action_smser_delivery_reports"."id" = 2 [["status", "DELIVERED"], ["status_updated_at", Mon, 13 Jan 2014 13:14:18 UTC +00:00], ["log", "2014-01-13 15:14:18: ORIGINAL_STATUS\n2014-01-13 15:14:18: DELIVERED\n"], ["updated_at", Mon, 13 Jan 2014 13:14:18 UTC +00:00]]
|
63812
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
63813
|
+
ActionSmser: Gateway_commit updated item with id: 99999999999999999, params: {"msg_id"=>"99999999999999999", "status"=>"DELIVERED"}
|
63814
|
+
Completed 200 OK in 4ms (Views: 0.2ms | ActiveRecord: 0.7ms)
|
63815
|
+
[1m[35mActionSmser::DeliveryReport Load (0.0ms)[0m SELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."id" = ? LIMIT 1 [["id", 1]]
|
63816
|
+
[1m[36mActionSmser::DeliveryReport Load (0.0ms)[0m [1mSELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."id" = ? LIMIT 1[0m [["id", 2]]
|
63817
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
63818
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
63819
|
+
----------------------------------------------------------------------------------
|
63820
|
+
ActionSmser::DeliveryReportsControllerTest: test_gateway_commit_without_any_parser
|
63821
|
+
----------------------------------------------------------------------------------
|
63822
|
+
Processing by ActionSmser::DeliveryReportsController#gateway_commit as HTML
|
63823
|
+
Parameters: {"gateway"=>"gateway_not_found", "DeliveryReport"=>{"message"=>{"id"=>"wrongid", "donedate"=>"2012/01/03 14:20:45", "sentdate"=>"2012/01/03 14:20:40", "status"=>"DELIVERED"}}}
|
63824
|
+
Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
|
63825
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
63826
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
63827
|
+
--------------------------------------------------------------------------
|
63828
|
+
ActionSmser::DeliveryReportsControllerTest: test_gateway_commit_without_dr
|
63829
|
+
--------------------------------------------------------------------------
|
63830
|
+
Processing by ActionSmser::DeliveryReportsController#gateway_commit as HTML
|
63831
|
+
Parameters: {"gateway"=>"test_gateway", "DeliveryReport"=>{"message"=>{"id"=>"wrongid", "donedate"=>"2012/01/03 14:20:45", "sentdate"=>"2012/01/03 14:20:40", "status"=>"DELIVERED"}}}
|
63832
|
+
ActionSmser: Gateway_commit found parser for gateway: test_gateway
|
63833
|
+
[1m[35mActionSmser::DeliveryReport Load (0.1ms)[0m SELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."msg_id" = 'wrongid' ORDER BY "action_smser_delivery_reports"."id" ASC LIMIT 1
|
63834
|
+
ActionSmser: Gateway_commit not found item with id: wrongid, params: {"msg_id"=>"wrongid", "status"=>"DELIVERED"}
|
63835
|
+
Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.1ms)
|
63836
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
63837
|
+
[1m[35m (0.0ms)[0m begin transaction
|
63838
|
+
-----------------------------------------------------------------------------------------------------
|
63839
|
+
ActionSmser::DeliveryReportsControllerTest: test_index_with_admin_access_lambda_with_right_login_info
|
63840
|
+
-----------------------------------------------------------------------------------------------------
|
63841
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
63842
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "action_smser_delivery_reports" ("created_at", "msg_id", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 13 Jan 2014 13:14:18 UTC +00:00], ["msg_id", "idtest_8"], ["updated_at", Mon, 13 Jan 2014 13:14:18 UTC +00:00]]
|
63843
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
63844
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
63845
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "action_smser_delivery_reports" ("created_at", "msg_id", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 13 Jan 2014 13:14:18 UTC +00:00], ["msg_id", "idtest_8"], ["updated_at", Mon, 13 Jan 2014 13:14:18 UTC +00:00]]
|
63846
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
63847
|
+
Processing by ActionSmser::DeliveryReportsController#index as HTML
|
63848
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2014-01-06 13:14:18.792561' AND '2014-01-13 13:04:18.792669')[0m
|
63849
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) AS count_all, gateway AS gateway FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2014-01-06 13:14:18.792561' AND '2014-01-13 13:04:18.792669') GROUP BY gateway
|
63850
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2014-01-06 13:14:18.792561' AND '2014-01-13 13:04:18.792669')[0m
|
63851
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) AS count_all, status AS status FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2014-01-06 13:14:18.792561' AND '2014-01-13 13:04:18.792669') GROUP BY status
|
63852
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2014-01-06 13:14:18.792561' AND '2014-01-13 13:04:18.792669')[0m
|
63853
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) AS count_all, sms_type AS sms_type FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2014-01-06 13:14:18.792561' AND '2014-01-13 13:04:18.792669') GROUP BY sms_type
|
63854
|
+
Completed 200 OK in 9ms (Views: 8.4ms | ActiveRecord: 0.4ms)
|
63855
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
63856
|
+
[1m[35m (0.0ms)[0m begin transaction
|
63857
|
+
--------------------------------------------------------------------------------
|
63858
|
+
ActionSmser::DeliveryReportsControllerTest: test_index_with_always_enabled_admin
|
63859
|
+
--------------------------------------------------------------------------------
|
63860
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
63861
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "action_smser_delivery_reports" ("created_at", "msg_id", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 13 Jan 2014 13:14:18 UTC +00:00], ["msg_id", "idtest_8"], ["updated_at", Mon, 13 Jan 2014 13:14:18 UTC +00:00]]
|
63862
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
63863
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
63864
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "action_smser_delivery_reports" ("created_at", "msg_id", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 13 Jan 2014 13:14:18 UTC +00:00], ["msg_id", "idtest_1"], ["updated_at", Mon, 13 Jan 2014 13:14:18 UTC +00:00]]
|
63865
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
63866
|
+
Processing by ActionSmser::DeliveryReportsController#index as HTML
|
63867
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2014-01-06 13:14:18.804456' AND '2014-01-13 13:04:18.804546')[0m
|
63868
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) AS count_all, gateway AS gateway FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2014-01-06 13:14:18.804456' AND '2014-01-13 13:04:18.804546') GROUP BY gateway
|
63869
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2014-01-06 13:14:18.804456' AND '2014-01-13 13:04:18.804546')[0m
|
63870
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) AS count_all, status AS status FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2014-01-06 13:14:18.804456' AND '2014-01-13 13:04:18.804546') GROUP BY status
|
63871
|
+
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2014-01-06 13:14:18.804456' AND '2014-01-13 13:04:18.804546')[0m
|
63872
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) AS count_all, sms_type AS sms_type FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2014-01-06 13:14:18.804456' AND '2014-01-13 13:04:18.804546') GROUP BY sms_type
|
63873
|
+
Completed 200 OK in 5ms (Views: 4.9ms | ActiveRecord: 0.4ms)
|
63874
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
63875
|
+
[1m[35m (0.0ms)[0m begin transaction
|
63876
|
+
--------------------------------------------------------------------------------------------------------
|
63877
|
+
ActionSmser::DeliveryReportsControllerTest: test_index_with_forbidden_admin_access_(default_access_mode)
|
63878
|
+
--------------------------------------------------------------------------------------------------------
|
63879
|
+
Processing by ActionSmser::DeliveryReportsController#index as HTML
|
63880
|
+
Filter chain halted as :admin_access_only rendered or redirected
|
63881
|
+
Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
|
63882
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
63883
|
+
[1m[35m (0.0ms)[0m begin transaction
|
63884
|
+
-------------------------------------------------------------------------------
|
63885
|
+
ActionSmser::DeliveryReportsControllerTest: test_list_with_always_enabled_admin
|
63886
|
+
-------------------------------------------------------------------------------
|
63887
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
63888
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "action_smser_delivery_reports" ("created_at", "msg_id", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 13 Jan 2014 13:14:18 UTC +00:00], ["msg_id", "idtest_1"], ["updated_at", Mon, 13 Jan 2014 13:14:18 UTC +00:00]]
|
63889
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
63890
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
63891
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "action_smser_delivery_reports" ("created_at", "msg_id", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 13 Jan 2014 13:14:18 UTC +00:00], ["msg_id", "idtest_2"], ["updated_at", Mon, 13 Jan 2014 13:14:18 UTC +00:00]]
|
63892
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
63893
|
+
Processing by ActionSmser::DeliveryReportsController#list as HTML
|
63894
|
+
[1m[36mActionSmser::DeliveryReport Load (0.1ms)[0m [1mSELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" ORDER BY created_at DESC LIMIT 20 OFFSET 0[0m
|
63895
|
+
Completed 200 OK in 3ms (Views: 2.8ms | ActiveRecord: 0.1ms)
|
63896
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
63897
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
63898
|
+
--------------------------------------------------------------------
|
63899
|
+
ActionSmser::NexmoTest: test_gateway_process_delivery_report(params)
|
63900
|
+
--------------------------------------------------------------------
|
63901
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
63902
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
63903
|
+
------------------------------------------------------
|
63904
|
+
ActionSmser::NexmoTest: test_should_be_able_to_deliver
|
63905
|
+
------------------------------------------------------
|
63906
|
+
ActionSmser: Sending sms - Delivery_method: nexmo - Sms: (Sms ActionSmser::NexmoTest::MockSms.basic_sms - From: "555666", To: ["555123555", "123555123"], Body: "Body with ääkköset end", Valid: true)
|
63907
|
+
ActionSmser: Nexmo delivery http ||| /sms/json?username=user&password=pass&ttl=86400000&status-report-req=false&from=555666&to=555123555&text=Body+with+%C3%A4%C3%A4kk%C3%B6set+end ||| #<Mock:0x4858988>
|
63908
|
+
ActionSmser: {"message-count":"1","messages":[{"message-price":"0.02500000","status":"0","message-id":"0778DE88","remaining-balance":"1.77500000"}]}
|
63909
|
+
ActionSmser: Nexmo delivery http ||| /sms/json?username=user&password=pass&ttl=86400000&status-report-req=false&from=555666&to=123555123&text=Body+with+%C3%A4%C3%A4kk%C3%B6set+end ||| #<Mock:0x4858988>
|
63910
|
+
ActionSmser: {"message-count":"1","messages":[{"message-price":"0.02500000","status":"0","message-id":"0778DE88","remaining-balance":"1.77500000"}]}
|
63911
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
63912
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
63913
|
+
---------------------------------------------------------
|
63914
|
+
ActionSmser::NexmoTest: test_with_saving_delivery_reports
|
63915
|
+
---------------------------------------------------------
|
63916
|
+
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "action_smser_delivery_reports"
|
63917
|
+
ActionSmser: Sending sms - Delivery_method: nexmo - Sms: (Sms ActionSmser::NexmoTest::MockSms.basic_sms - From: "555666", To: ["555123555", "123555123"], Body: "Body with ääkköset end", Valid: true)
|
63918
|
+
ActionSmser: Nexmo delivery http ||| /sms/json?username=user&password=pass&ttl=86400000&status-report-req=true&from=555666&to=555123555&text=Body+with+%C3%A4%C3%A4kk%C3%B6set+end ||| #<Mock:0x470be18>
|
63919
|
+
ActionSmser: {"message-count":"1","messages":[{"message-price":"0.02500000","status":"0","message-id":"0778DE88","remaining-balance":"1.77500000"}]}
|
63920
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
63921
|
+
[1m[35mSQL (0.6ms)[0m INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Body with ääkköset end"], ["created_at", Mon, 13 Jan 2014 13:20:01 UTC +00:00], ["from", "555666"], ["gateway", "nexmo"], ["log", "2014-01-13 15:20:01: LOCAL_SENT\n"], ["msg_id", "0778DE88"], ["sms_type", "ActionSmser::NexmoTest::MockSms.basic_sms"], ["status", "LOCAL_SENT"], ["status_updated_at", Mon, 13 Jan 2014 13:20:01 UTC +00:00], ["to", "555123555"], ["updated_at", Mon, 13 Jan 2014 13:20:01 UTC +00:00]]
|
63922
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
63923
|
+
ActionSmser: Nexmo delivery http ||| /sms/json?username=user&password=pass&ttl=86400000&status-report-req=true&from=555666&to=123555123&text=Body+with+%C3%A4%C3%A4kk%C3%B6set+end ||| #<Mock:0x470be18>
|
63924
|
+
ActionSmser: {"message-count":"1","messages":[{"message-price":"0.02500000","status":"0","message-id":"0778DE88","remaining-balance":"1.77500000"}]}
|
63925
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
63926
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Body with ääkköset end"], ["created_at", Mon, 13 Jan 2014 13:20:01 UTC +00:00], ["from", "555666"], ["gateway", "nexmo"], ["log", "2014-01-13 15:20:01: LOCAL_SENT\n"], ["msg_id", "0778DE88"], ["sms_type", "ActionSmser::NexmoTest::MockSms.basic_sms"], ["status", "LOCAL_SENT"], ["status_updated_at", Mon, 13 Jan 2014 13:20:01 UTC +00:00], ["to", "123555123"], ["updated_at", Mon, 13 Jan 2014 13:20:01 UTC +00:00]]
|
63927
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
63928
|
+
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "action_smser_delivery_reports"[0m
|
63929
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
63930
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
63931
|
+
-----------------------------------------------------------
|
63932
|
+
ActionSmser::SimpleHttpTest: test_should_be_able_to_deliver
|
63933
|
+
-----------------------------------------------------------
|
63934
|
+
ActionSmser: Sending sms - Delivery_method: simple_http - Sms: (Sms ActionSmser::SimpleHttpTest::MockSms.basic_sms - From: "555666", To: ["555123555", "123555123"], Body: "Body with ääkköset end", Valid: true)
|
63935
|
+
ActionSmser: SimpleHttp delivery ||| /api/sendsms/plain?user=user&password=pass&sender=555666&SMSText=Body+with+%E4%E4kk%F6set+end&GSM=555123555,123555123 ||| #<Mock:0x4470d98>
|
63936
|
+
ActionSmser: id_1234
|
63937
|
+
id_6666
|
63938
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
63939
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
63940
|
+
--------------------------------------------------------------
|
63941
|
+
ActionSmser::SimpleHttpTest: test_with_saving_delivery_reports
|
63942
|
+
--------------------------------------------------------------
|
63943
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "action_smser_delivery_reports"
|
63944
|
+
ActionSmser: Sending sms - Delivery_method: simple_http - Sms: (Sms ActionSmser::SimpleHttpTest::MockSms.basic_sms - From: "555666", To: ["555123555", "123555123"], Body: "Body with ääkköset end", Valid: true)
|
63945
|
+
ActionSmser: SimpleHttp delivery ||| /api/sendsms/plain?user=user&password=pass&sender=555666&SMSText=Body+with+%E4%E4kk%F6set+end&GSM=555123555,123555123 ||| #<Mock:0x4548fb8>
|
63946
|
+
ActionSmser: id_1234
|
63947
|
+
id_6666
|
63948
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
63949
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Body with ääkköset end"], ["created_at", Mon, 13 Jan 2014 13:20:01 UTC +00:00], ["from", "555666"], ["gateway", "simple_http"], ["log", "2014-01-13 15:20:01: LOCAL_SENT\n"], ["msg_id", "id_1234"], ["sms_type", "ActionSmser::SimpleHttpTest::MockSms.basic_sms"], ["status", "LOCAL_SENT"], ["status_updated_at", Mon, 13 Jan 2014 13:20:01 UTC +00:00], ["to", "555123555"], ["updated_at", Mon, 13 Jan 2014 13:20:01 UTC +00:00]]
|
63950
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
63951
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
63952
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Body with ääkköset end"], ["created_at", Mon, 13 Jan 2014 13:20:01 UTC +00:00], ["from", "555666"], ["gateway", "simple_http"], ["log", "2014-01-13 15:20:01: LOCAL_SENT\n"], ["msg_id", "id_6666"], ["sms_type", "ActionSmser::SimpleHttpTest::MockSms.basic_sms"], ["status", "LOCAL_SENT"], ["status_updated_at", Mon, 13 Jan 2014 13:20:01 UTC +00:00], ["to", "123555123"], ["updated_at", Mon, 13 Jan 2014 13:20:01 UTC +00:00]]
|
63953
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
63954
|
+
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "action_smser_delivery_reports"[0m
|
63955
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
63956
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
63957
|
+
---------------------------------------------------------
|
63958
|
+
ActionSmser::SmstradeTest: test_should_be_able_to_deliver
|
63959
|
+
---------------------------------------------------------
|
63960
|
+
ActionSmser: Sending sms - Delivery_method: smstrade - Sms: (Sms ActionSmser::SmstradeTest::MockSms.basic_sms - From: "4917212341234", To: ["4915112341234", "4917812341234"], Body: "Body with ümläüts.", Valid: true)
|
63961
|
+
ActionSmser: Smstrade delivery http ||| /?key=api-key-here&from=4917212341234&to=4915112341234&message=Body+with+%C3%BCml%C3%A4%C3%BCts.&route=gold&debug=1&cost=1&message_id=1&count=1&charset=utf-8 ||| #<Mock:0x4d0e720>
|
63962
|
+
ActionSmser: 100
|
63963
|
+
123456789
|
63964
|
+
0.064
|
63965
|
+
1
|
63966
|
+
ActionSmser: Smstrade delivery http ||| /?key=api-key-here&from=4917212341234&to=4917812341234&message=Body+with+%C3%BCml%C3%A4%C3%BCts.&route=gold&debug=1&cost=1&message_id=1&count=1&charset=utf-8 ||| #<Mock:0x4d0e720>
|
63967
|
+
ActionSmser: 100
|
63968
|
+
123456789
|
63969
|
+
0.064
|
63970
|
+
1
|
63971
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
63972
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
63973
|
+
------------------------------------------------------------
|
63974
|
+
ActionSmser::SmstradeTest: test_with_saving_delivery_reports
|
63975
|
+
------------------------------------------------------------
|
63976
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "action_smser_delivery_reports"
|
63977
|
+
ActionSmser: Sending sms - Delivery_method: smstrade - Sms: (Sms ActionSmser::SmstradeTest::MockSms.basic_sms - From: "4917212341234", To: ["4915112341234", "4917812341234"], Body: "Body with ümläüts.", Valid: true)
|
63978
|
+
ActionSmser: Smstrade delivery http ||| /?key=api-key-here&from=4917212341234&to=4915112341234&message=Body+with+%C3%BCml%C3%A4%C3%BCts.&route=gold&debug=1&cost=1&message_id=1&count=1&charset=utf-8 ||| #<Mock:0x4cf67b0>
|
63979
|
+
ActionSmser: 100
|
63980
|
+
123456789
|
63981
|
+
0.064
|
63982
|
+
1
|
63983
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
63984
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Body with ümläüts."], ["created_at", Mon, 13 Jan 2014 13:20:01 UTC +00:00], ["from", "4917212341234"], ["gateway", "smstrade"], ["log", "2014-01-13 15:20:01: LOCAL_SENT\n"], ["msg_id", "123456789"], ["sms_type", "ActionSmser::SmstradeTest::MockSms.basic_sms"], ["status", "LOCAL_SENT"], ["status_updated_at", Mon, 13 Jan 2014 13:20:01 UTC +00:00], ["to", "4915112341234"], ["updated_at", Mon, 13 Jan 2014 13:20:01 UTC +00:00]]
|
63985
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
63986
|
+
ActionSmser: Smstrade delivery http ||| /?key=api-key-here&from=4917212341234&to=4917812341234&message=Body+with+%C3%BCml%C3%A4%C3%BCts.&route=gold&debug=1&cost=1&message_id=1&count=1&charset=utf-8 ||| #<Mock:0x4cf67b0>
|
63987
|
+
ActionSmser: 100
|
63988
|
+
123456789
|
63989
|
+
0.064
|
63990
|
+
1
|
63991
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
63992
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Body with ümläüts."], ["created_at", Mon, 13 Jan 2014 13:20:01 UTC +00:00], ["from", "4917212341234"], ["gateway", "smstrade"], ["log", "2014-01-13 15:20:01: LOCAL_SENT\n"], ["msg_id", "123456789"], ["sms_type", "ActionSmser::SmstradeTest::MockSms.basic_sms"], ["status", "LOCAL_SENT"], ["status_updated_at", Mon, 13 Jan 2014 13:20:01 UTC +00:00], ["to", "4917812341234"], ["updated_at", Mon, 13 Jan 2014 13:20:01 UTC +00:00]]
|
63993
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
63994
|
+
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "action_smser_delivery_reports"[0m
|
63995
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
63996
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
63997
|
+
--------------------------------------------------------
|
63998
|
+
ActionSmser::TestArrayTest: test_should_add_to_TestArray
|
63999
|
+
--------------------------------------------------------
|
64000
|
+
ActionSmser: Sending sms - Delivery_method: test_array - Sms: (Sms ActionSmser::TestArrayTest::MockSms.basic_sms - From: "555666", To: ["555123555", "123555123"], Body: "Body with ääkköset end", Valid: true)
|
64001
|
+
ActionSmser: ActionSmser::DeliveryMethods::TestArray.deliveries added message, no real delivery.
|
64002
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
64003
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
64004
|
+
----------------------------------------------------------
|
64005
|
+
ActionSmser::TestArrayTest: test_should_be_able_to_deliver
|
64006
|
+
----------------------------------------------------------
|
64007
|
+
ActionSmser: Sending sms - Delivery_method: test_array - Sms: (Sms ActionSmser::TestArrayTest::MockSms.basic_sms - From: "555666", To: ["555123555", "123555123"], Body: "Body with ääkköset end", Valid: true)
|
64008
|
+
ActionSmser: ActionSmser::DeliveryMethods::TestArray.deliveries added message, no real delivery.
|
64009
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
64010
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
64011
|
+
-------------------------------------------------------------
|
64012
|
+
ActionSmser::TestArrayTest: test_with_saving_delivery_reports
|
64013
|
+
-------------------------------------------------------------
|
64014
|
+
ActionSmser: Sending sms - Delivery_method: test_array - Sms: (Sms ActionSmser::TestArrayTest::MockSms.basic_sms - From: "555666", To: ["555123555", "123555123"], Body: "Body with ääkköset end", Valid: true)
|
64015
|
+
ActionSmser: ActionSmser::DeliveryMethods::TestArray.deliveries added message, no real delivery.
|
64016
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "action_smser_delivery_reports"
|
64017
|
+
ActionSmser: Sending sms - Delivery_method: test_array - Sms: (Sms ActionSmser::TestArrayTest::MockSms.basic_sms - From: "555666", To: ["555123555", "123555123"], Body: "Body with ääkköset end", Valid: true)
|
64018
|
+
ActionSmser: ActionSmser::DeliveryMethods::TestArray.deliveries added message, no real delivery.
|
64019
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
64020
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Body with ääkköset end"], ["created_at", Mon, 13 Jan 2014 13:20:01 UTC +00:00], ["from", "555666"], ["gateway", "test_array"], ["log", "2014-01-13 15:20:01: LOCAL_SENT\n"], ["msg_id", "test_array_id_20467337"], ["sms_type", "ActionSmser::TestArrayTest::MockSms.basic_sms"], ["status", "LOCAL_SENT"], ["status_updated_at", Mon, 13 Jan 2014 13:20:01 UTC +00:00], ["to", "555123555"], ["updated_at", Mon, 13 Jan 2014 13:20:01 UTC +00:00]]
|
64021
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
64022
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
64023
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Body with ääkköset end"], ["created_at", Mon, 13 Jan 2014 13:20:01 UTC +00:00], ["from", "555666"], ["gateway", "test_array"], ["log", "2014-01-13 15:20:01: LOCAL_SENT\n"], ["msg_id", "test_array_id_96672636"], ["sms_type", "ActionSmser::TestArrayTest::MockSms.basic_sms"], ["status", "LOCAL_SENT"], ["status_updated_at", Mon, 13 Jan 2014 13:20:01 UTC +00:00], ["to", "123555123"], ["updated_at", Mon, 13 Jan 2014 13:20:01 UTC +00:00]]
|
64024
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
64025
|
+
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "action_smser_delivery_reports"[0m
|
64026
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
64027
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
64028
|
+
---------------------------
|
64029
|
+
ActionSmserTest: test_truth
|
64030
|
+
---------------------------
|
64031
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
64032
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
64033
|
+
---------------------------------------------------------
|
64034
|
+
NavigationTest: test_basic_gateway_commit_delivery_report
|
64035
|
+
---------------------------------------------------------
|
64036
|
+
Started GET "/action_smser/delivery_reports/gateway_commit/example_gateway" for 127.0.0.1 at 2014-01-13 15:20:01 +0200
|
64037
|
+
Processing by ActionSmser::DeliveryReportsController#gateway_commit as HTML
|
64038
|
+
Parameters: {"gateway"=>"example_gateway"}
|
64039
|
+
Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
|
64040
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
64041
|
+
[1m[36m (0.2ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [0m
|
64042
|
+
[1m[35m (0.1ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
64043
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
64044
|
+
Migrating to CreateActionSmserDeliveryReports (20120102215215)
|
64045
|
+
[1m[35m (0.0ms)[0m begin transaction
|
64046
|
+
[1m[36m (0.2ms)[0m [1mCREATE TABLE "action_smser_delivery_reports" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "msg_id" varchar(255), "status" varchar(255), "status_updated_at" datetime, "sms_type" varchar(255), "log" text, "to" varchar(255), "from" varchar(255), "body" varchar(255), "gateway" varchar(255), "re_delivery_of_delivery_report_id" integer, "re_delivered" boolean, "created_at" datetime, "updated_at" datetime) [0m
|
64047
|
+
[1m[35m (0.1ms)[0m CREATE INDEX "index_action_smser_delivery_reports_on_msg_id" ON "action_smser_delivery_reports" ("msg_id")
|
64048
|
+
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20120102215215"]]
|
64049
|
+
[1m[35m (0.0ms)[0m commit transaction
|
64050
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
64051
|
+
---------------------------------------------------------------------------
|
64052
|
+
ActionSmser::BaseTest: test_after_delivery_should_be_called_if_it's_present
|
64053
|
+
---------------------------------------------------------------------------
|
64054
|
+
ActionSmser: Sending sms - Delivery_method: test_array - Sms: (Sms ActionSmser::BaseTest::MockSms.basic_sms - From: "555666", To: ["555123555", "123", "+358123555123"], Body: "Body with ääkköset end", Valid: true)
|
64055
|
+
ActionSmser: ActionSmser::DeliveryMethods::TestArray.deliveries added message, no real delivery.
|
64056
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
64057
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
64058
|
+
----------------------------------------------------------------------------
|
64059
|
+
ActionSmser::BaseTest: test_before_delivery_should_be_called_if_it's_present
|
64060
|
+
----------------------------------------------------------------------------
|
64061
|
+
ActionSmser: Sending sms - Delivery_method: test_array - Sms: (Sms ActionSmser::BaseTest::MockSms.basic_sms - From: "555666", To: ["555123555", "123", "+358123555123"], Body: "Body with ääkköset end", Valid: true)
|
64062
|
+
ActionSmser: ActionSmser::DeliveryMethods::TestArray.deliveries added message, no real delivery.
|
64063
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
64064
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
64065
|
+
--------------------------------------------------------------------------------------------
|
64066
|
+
ActionSmser::BaseTest: test_body_should_be_cropped_to_500_chars,_limit_extra_looong_messages
|
64067
|
+
--------------------------------------------------------------------------------------------
|
64068
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
64069
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
64070
|
+
-------------------------------------------------------------
|
64071
|
+
ActionSmser::BaseTest: test_body_should_be_possible_to_encode
|
64072
|
+
-------------------------------------------------------------
|
64073
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
64074
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
64075
|
+
----------------------------------------------------------------------
|
64076
|
+
ActionSmser::BaseTest: test_from_encoded_should_remove_leading_+_and_0
|
64077
|
+
----------------------------------------------------------------------
|
64078
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
64079
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
64080
|
+
--------------------------------------------------------------------------------------------------------
|
64081
|
+
ActionSmser::BaseTest: test_message_real_crop_should_return_cropped_message_with_sms_chars_taken_account
|
64082
|
+
--------------------------------------------------------------------------------------------------------
|
64083
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
64084
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
64085
|
+
-----------------------------------------------------------------------------
|
64086
|
+
ActionSmser::BaseTest: test_message_real_length_should_return_real_sms_lenght
|
64087
|
+
-----------------------------------------------------------------------------
|
64088
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
64089
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
64090
|
+
----------------------------------------------------------------
|
64091
|
+
ActionSmser::BaseTest: test_receivers_should_be_joined_by_commas
|
64092
|
+
----------------------------------------------------------------
|
64093
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
64094
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
64095
|
+
--------------------------------------------------------
|
64096
|
+
ActionSmser::BaseTest: test_should_be_able_to_change_ttl
|
64097
|
+
--------------------------------------------------------
|
64098
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
64099
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
64100
|
+
--------------------------------------------------------------
|
64101
|
+
ActionSmser::BaseTest: test_should_be_ok_with_single_receivers
|
64102
|
+
--------------------------------------------------------------
|
64103
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
64104
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
64105
|
+
-----------------------------------------------
|
64106
|
+
ActionSmser::BaseTest: test_should_be_valid_sms
|
64107
|
+
-----------------------------------------------
|
64108
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
64109
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
64110
|
+
-------------------------------------------------------------------------------------
|
64111
|
+
ActionSmser::BaseTest: test_should_have_copied_the_delivery_options_when_initializing
|
64112
|
+
-------------------------------------------------------------------------------------
|
64113
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
64114
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
64115
|
+
------------------------------------------------------
|
64116
|
+
ActionSmser::BaseTest: test_should_have_saved_sms_type
|
64117
|
+
------------------------------------------------------
|
64118
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
64119
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
64120
|
+
---------------------------------------------------------------------
|
64121
|
+
ActionSmser::BaseTest: test_should_have_test_array_as_delivery_method
|
64122
|
+
---------------------------------------------------------------------
|
64123
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
64124
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
64125
|
+
----------------------------------------------------------------
|
64126
|
+
ActionSmser::BaseTest: test_should_not_be_valid_if_no_recipients
|
64127
|
+
----------------------------------------------------------------
|
64128
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
64129
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
64130
|
+
-------------------------------------------------------------
|
64131
|
+
ActionSmser::BaseTest: test_ttl_should_be_24_hours_by_default
|
64132
|
+
-------------------------------------------------------------
|
64133
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
64134
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
64135
|
+
----------------------------------------------------------------------------------------------
|
64136
|
+
ActionSmser::DelayedJobTest: test_should_be_able_to_deliver_and_call_enqueue_for_all_receivers
|
64137
|
+
----------------------------------------------------------------------------------------------
|
64138
|
+
ActionSmser: Sending sms - Delivery_method: delayed_job - Sms: (Sms ActionSmser::DelayedJobTest::MockSms.basic_sms - From: "555666", To: ["555123555", "123555123"], Body: "Body with ääkköset end", Valid: true)
|
64139
|
+
ActionSmser: Delivering sms by delayed_job
|
64140
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
64141
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
64142
|
+
-------------------------------------------------------------
|
64143
|
+
ActionSmser::DelayedJobTest: test_test_that_serializing_is_ok
|
64144
|
+
-------------------------------------------------------------
|
64145
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
64146
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
64147
|
+
-------------------------------------------------------------------
|
64148
|
+
ActionSmser::DeliveryReportTest: test_build_DeliveryReport_from_sms
|
64149
|
+
-------------------------------------------------------------------
|
64150
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
64151
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
64152
|
+
------------------------------------------------------
|
64153
|
+
ActionSmser::DeliveryReportTest: test_create_from_save
|
64154
|
+
------------------------------------------------------
|
64155
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "action_smser_delivery_reports"
|
64156
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
64157
|
+
[1m[35mSQL (22.9ms)[0m INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Body with ääkköset end"], ["created_at", Mon, 13 Jan 2014 13:20:07 UTC +00:00], ["from", "555666"], ["gateway", "test_array"], ["log", "2014-01-13 15:20:07: LOCAL_SENT\n"], ["msg_id", "msg_id_a"], ["sms_type", "ActionSmser::DeliveryReportTest::MockSms.basic_sms"], ["status", "LOCAL_SENT"], ["status_updated_at", Mon, 13 Jan 2014 13:20:07 UTC +00:00], ["to", "123"], ["updated_at", Mon, 13 Jan 2014 13:20:07 UTC +00:00]]
|
64158
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
64159
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "action_smser_delivery_reports"
|
64160
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
64161
|
+
[1m[35m (0.0ms)[0m begin transaction
|
64162
|
+
-----------------------------------------------------------------
|
64163
|
+
ActionSmser::DeliveryReportTest: test_re_deliver_with_simple_http
|
64164
|
+
-----------------------------------------------------------------
|
64165
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
64166
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Body with ääkköset end"], ["created_at", Mon, 13 Jan 2014 13:20:07 UTC +00:00], ["from", "555666"], ["gateway", "test_array"], ["log", "2014-01-13 15:20:07: LOCAL_SENT\n"], ["msg_id", "msg_id_a"], ["sms_type", "ActionSmser::DeliveryReportTest::MockSms.basic_sms"], ["status", "LOCAL_SENT"], ["status_updated_at", Mon, 13 Jan 2014 13:20:07 UTC +00:00], ["to", "123"], ["updated_at", Mon, 13 Jan 2014 13:20:07 UTC +00:00]]
|
64167
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
64168
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
64169
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "action_smser_delivery_reports" SET "gateway" = ?, "updated_at" = ? WHERE "action_smser_delivery_reports"."id" = 1[0m [["gateway", "some_delivery"], ["updated_at", Mon, 13 Jan 2014 13:20:07 UTC +00:00]]
|
64170
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
64171
|
+
[1m[36mActionSmser::DeliveryReport Load (0.1ms)[0m [1mSELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."id" = ? LIMIT 1[0m [["id", 1]]
|
64172
|
+
ActionSmser: Re_delivering: #<ActionSmser::DeliveryReport id: 1, msg_id: "msg_id_a", status: "LOCAL_SENT", status_updated_at: "2014-01-13 13:20:07", sms_type: "ActionSmser::DeliveryReportTest::MockSms.basic_sms", log: "2014-01-13 15:20:07: LOCAL_SENT\n", to: "123", from: "555666", body: "Body with ääkköset end", gateway: "some_delivery", re_delivery_of_delivery_report_id: nil, re_delivered: nil, created_at: "2014-01-13 13:20:07", updated_at: "2014-01-13 13:20:07">
|
64173
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
64174
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "action_smser_delivery_reports" SET "re_delivered" = ?, "updated_at" = ? WHERE "action_smser_delivery_reports"."id" = 1[0m [["re_delivered", true], ["updated_at", Mon, 13 Jan 2014 13:20:07 UTC +00:00]]
|
64175
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
64176
|
+
[1m[36mActionSmser::DeliveryReport Load (0.0ms)[0m [1mSELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."id" = ? LIMIT 1[0m [["id", 1]]
|
64177
|
+
ActionSmser: Sending sms - Delivery_method: test_array - Sms: (Sms ActionSmser::DeliveryReportTest::MockSms.basic_sms.re_delivery - From: "555666", To: "123", Body: "Body with ääkköset end", Valid: true)
|
64178
|
+
ActionSmser: ActionSmser::DeliveryMethods::TestArray.deliveries added message, no real delivery.
|
64179
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
64180
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "re_delivery_of_delivery_report_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Body with ääkköset end"], ["created_at", Mon, 13 Jan 2014 13:20:07 UTC +00:00], ["from", "555666"], ["gateway", "test_array"], ["log", "2014-01-13 15:20:07: LOCAL_SENT\n"], ["msg_id", "test_array_id_91303021"], ["re_delivery_of_delivery_report_id", 1], ["sms_type", "ActionSmser::DeliveryReportTest::MockSms.basic_sms.re_delivery"], ["status", "LOCAL_SENT"], ["status_updated_at", Mon, 13 Jan 2014 13:20:07 UTC +00:00], ["to", "123"], ["updated_at", Mon, 13 Jan 2014 13:20:07 UTC +00:00]]
|
64181
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
64182
|
+
[1m[36mActionSmser::DeliveryReport Load (0.1ms)[0m [1mSELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" ORDER BY "action_smser_delivery_reports"."id" DESC LIMIT 1[0m
|
64183
|
+
[1m[35mActionSmser::DeliveryReport Load (0.2ms)[0m SELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."re_delivery_of_delivery_report_id" = ? ORDER BY "action_smser_delivery_reports"."id" ASC LIMIT 1 [["re_delivery_of_delivery_report_id", 1]]
|
64184
|
+
[1m[36mActionSmser::DeliveryReport Load (0.2ms)[0m [1mSELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."id" = ? ORDER BY "action_smser_delivery_reports"."id" ASC LIMIT 1[0m [["id", 1]]
|
64185
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
64186
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
64187
|
+
--------------------------------------------
|
64188
|
+
ActionSmser::DeliveryReportTest: test_to_sms
|
64189
|
+
--------------------------------------------
|
64190
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
64191
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Body with ääkköset end"], ["created_at", Mon, 13 Jan 2014 13:20:07 UTC +00:00], ["from", "555666"], ["gateway", "test_array"], ["log", "2014-01-13 15:20:07: LOCAL_SENT\n"], ["msg_id", "msg_id_a"], ["sms_type", "ActionSmser::DeliveryReportTest::MockSms.basic_sms"], ["status", "LOCAL_SENT"], ["status_updated_at", Mon, 13 Jan 2014 13:20:07 UTC +00:00], ["to", "123"], ["updated_at", Mon, 13 Jan 2014 13:20:07 UTC +00:00]]
|
64192
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
64193
|
+
[1m[36mActionSmser::DeliveryReport Load (0.0ms)[0m [1mSELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."id" = ? LIMIT 1[0m [["id", 1]]
|
64194
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
64195
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
64196
|
+
-----------------------------------------------------
|
64197
|
+
ActionSmser::DeliveryReportTest: test_updating_status
|
64198
|
+
-----------------------------------------------------
|
64199
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
64200
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "action_smser_delivery_reports" ("created_at", "log", "status", "status_updated_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["created_at", Mon, 13 Jan 2014 13:20:07 UTC +00:00], ["log", "2014-01-13 15:20:07: LOCAL_TEST\n"], ["status", "LOCAL_TEST"], ["status_updated_at", Mon, 13 Jan 2014 13:20:07 UTC +00:00], ["updated_at", Mon, 13 Jan 2014 13:20:07 UTC +00:00]]
|
64201
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
64202
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
64203
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "action_smser_delivery_reports" SET "status" = ?, "status_updated_at" = ?, "log" = ?, "updated_at" = ? WHERE "action_smser_delivery_reports"."id" = 1 [["status", "TEST_2"], ["status_updated_at", Mon, 13 Jan 2014 13:20:07 UTC +00:00], ["log", "2014-01-13 15:20:07: LOCAL_TEST\n2014-01-13 15:20:07: TEST_2\n"], ["updated_at", Mon, 13 Jan 2014 13:20:07 UTC +00:00]]
|
64204
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
64205
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
64206
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
64207
|
+
--------------------------------------------------------------------------------
|
64208
|
+
ActionSmser::DeliveryReportsControllerTest: test_gateway_commit_with_existing_dr
|
64209
|
+
--------------------------------------------------------------------------------
|
64210
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
64211
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "action_smser_delivery_reports" ("created_at", "log", "msg_id", "status", "status_updated_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 13 Jan 2014 13:20:07 UTC +00:00], ["log", "2014-01-13 15:20:07: ORIGINAL_STATUS\n"], ["msg_id", "102010314204056202"], ["status", "ORIGINAL_STATUS"], ["status_updated_at", Mon, 13 Jan 2014 13:20:07 UTC +00:00], ["updated_at", Mon, 13 Jan 2014 13:20:07 UTC +00:00]]
|
64212
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
64213
|
+
Processing by ActionSmser::DeliveryReportsController#gateway_commit as HTML
|
64214
|
+
Parameters: {"gateway"=>"test_gateway", "DeliveryReport"=>{"message"=>{"id"=>"102010314204056202", "donedate"=>"2012/01/03 14:20:45", "sentdate"=>"2012/01/03 14:20:40", "status"=>"DELIVERED"}}}
|
64215
|
+
ActionSmser: Gateway_commit found parser for gateway: test_gateway
|
64216
|
+
[1m[36mActionSmser::DeliveryReport Load (0.2ms)[0m [1mSELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."msg_id" = '102010314204056202' ORDER BY "action_smser_delivery_reports"."id" ASC LIMIT 1[0m
|
64217
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
64218
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "action_smser_delivery_reports" SET "status" = ?, "status_updated_at" = ?, "log" = ?, "updated_at" = ? WHERE "action_smser_delivery_reports"."id" = 1[0m [["status", "DELIVERED"], ["status_updated_at", Mon, 13 Jan 2014 13:20:07 UTC +00:00], ["log", "2014-01-13 15:20:07: ORIGINAL_STATUS\n2014-01-13 15:20:07: DELIVERED\n"], ["updated_at", Mon, 13 Jan 2014 13:20:07 UTC +00:00]]
|
64219
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
64220
|
+
ActionSmser: Gateway_commit updated item with id: 102010314204056202, params: {"msg_id"=>"102010314204056202", "status"=>"DELIVERED"}
|
64221
|
+
Rendered text template (0.0ms)
|
64222
|
+
Completed 200 OK in 4ms (Views: 0.5ms | ActiveRecord: 0.4ms)
|
64223
|
+
[1m[36mActionSmser::DeliveryReport Load (0.1ms)[0m [1mSELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."id" = ? LIMIT 1[0m [["id", 1]]
|
64224
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
64225
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
64226
|
+
-------------------------------------------------------------------------------------
|
64227
|
+
ActionSmser::DeliveryReportsControllerTest: test_gateway_commit_with_multiple_records
|
64228
|
+
-------------------------------------------------------------------------------------
|
64229
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
64230
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "action_smser_delivery_reports" ("created_at", "log", "msg_id", "status", "status_updated_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 13 Jan 2014 13:20:07 UTC +00:00], ["log", "2014-01-13 15:20:07: ORIGINAL_STATUS\n"], ["msg_id", "102010314204056202"], ["status", "ORIGINAL_STATUS"], ["status_updated_at", Mon, 13 Jan 2014 13:20:07 UTC +00:00], ["updated_at", Mon, 13 Jan 2014 13:20:07 UTC +00:00]]
|
64231
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
64232
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
64233
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "action_smser_delivery_reports" ("created_at", "log", "msg_id", "status", "status_updated_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 13 Jan 2014 13:20:07 UTC +00:00], ["log", "2014-01-13 15:20:07: ORIGINAL_STATUS\n"], ["msg_id", "99999999999999999"], ["status", "ORIGINAL_STATUS"], ["status_updated_at", Mon, 13 Jan 2014 13:20:07 UTC +00:00], ["updated_at", Mon, 13 Jan 2014 13:20:07 UTC +00:00]]
|
64234
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
64235
|
+
Processing by ActionSmser::DeliveryReportsController#gateway_commit as HTML
|
64236
|
+
Parameters: {"gateway"=>"test_gateway", "DeliveryReport"=>{"message"=>[{"id"=>"102010314204056202", "status"=>"DELIVERED"}, {"id"=>"99999999999999999", "status"=>"DELIVERED"}]}}
|
64237
|
+
ActionSmser: Gateway_commit found parser for gateway: test_gateway
|
64238
|
+
[1m[35mActionSmser::DeliveryReport Load (0.1ms)[0m SELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."msg_id" = '102010314204056202' ORDER BY "action_smser_delivery_reports"."id" ASC LIMIT 1
|
64239
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
64240
|
+
[1m[35mSQL (0.2ms)[0m UPDATE "action_smser_delivery_reports" SET "status" = ?, "status_updated_at" = ?, "log" = ?, "updated_at" = ? WHERE "action_smser_delivery_reports"."id" = 1 [["status", "DELIVERED"], ["status_updated_at", Mon, 13 Jan 2014 13:20:07 UTC +00:00], ["log", "2014-01-13 15:20:07: ORIGINAL_STATUS\n2014-01-13 15:20:07: DELIVERED\n"], ["updated_at", Mon, 13 Jan 2014 13:20:07 UTC +00:00]]
|
64241
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
64242
|
+
ActionSmser: Gateway_commit updated item with id: 102010314204056202, params: {"msg_id"=>"102010314204056202", "status"=>"DELIVERED"}
|
64243
|
+
[1m[35mActionSmser::DeliveryReport Load (0.1ms)[0m SELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."msg_id" = '99999999999999999' ORDER BY "action_smser_delivery_reports"."id" ASC LIMIT 1
|
64244
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
64245
|
+
[1m[35mSQL (0.2ms)[0m UPDATE "action_smser_delivery_reports" SET "status" = ?, "status_updated_at" = ?, "log" = ?, "updated_at" = ? WHERE "action_smser_delivery_reports"."id" = 2 [["status", "DELIVERED"], ["status_updated_at", Mon, 13 Jan 2014 13:20:07 UTC +00:00], ["log", "2014-01-13 15:20:07: ORIGINAL_STATUS\n2014-01-13 15:20:07: DELIVERED\n"], ["updated_at", Mon, 13 Jan 2014 13:20:07 UTC +00:00]]
|
64246
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
64247
|
+
ActionSmser: Gateway_commit updated item with id: 99999999999999999, params: {"msg_id"=>"99999999999999999", "status"=>"DELIVERED"}
|
64248
|
+
Completed 200 OK in 4ms (Views: 0.2ms | ActiveRecord: 0.7ms)
|
64249
|
+
[1m[35mActionSmser::DeliveryReport Load (0.0ms)[0m SELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."id" = ? LIMIT 1 [["id", 1]]
|
64250
|
+
[1m[36mActionSmser::DeliveryReport Load (0.0ms)[0m [1mSELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."id" = ? LIMIT 1[0m [["id", 2]]
|
64251
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
64252
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
64253
|
+
----------------------------------------------------------------------------------
|
64254
|
+
ActionSmser::DeliveryReportsControllerTest: test_gateway_commit_without_any_parser
|
64255
|
+
----------------------------------------------------------------------------------
|
64256
|
+
Processing by ActionSmser::DeliveryReportsController#gateway_commit as HTML
|
64257
|
+
Parameters: {"gateway"=>"gateway_not_found", "DeliveryReport"=>{"message"=>{"id"=>"wrongid", "donedate"=>"2012/01/03 14:20:45", "sentdate"=>"2012/01/03 14:20:40", "status"=>"DELIVERED"}}}
|
64258
|
+
Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
|
64259
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
64260
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
64261
|
+
--------------------------------------------------------------------------
|
64262
|
+
ActionSmser::DeliveryReportsControllerTest: test_gateway_commit_without_dr
|
64263
|
+
--------------------------------------------------------------------------
|
64264
|
+
Processing by ActionSmser::DeliveryReportsController#gateway_commit as HTML
|
64265
|
+
Parameters: {"gateway"=>"test_gateway", "DeliveryReport"=>{"message"=>{"id"=>"wrongid", "donedate"=>"2012/01/03 14:20:45", "sentdate"=>"2012/01/03 14:20:40", "status"=>"DELIVERED"}}}
|
64266
|
+
ActionSmser: Gateway_commit found parser for gateway: test_gateway
|
64267
|
+
[1m[35mActionSmser::DeliveryReport Load (0.1ms)[0m SELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."msg_id" = 'wrongid' ORDER BY "action_smser_delivery_reports"."id" ASC LIMIT 1
|
64268
|
+
ActionSmser: Gateway_commit not found item with id: wrongid, params: {"msg_id"=>"wrongid", "status"=>"DELIVERED"}
|
64269
|
+
Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
|
64270
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
64271
|
+
[1m[35m (0.0ms)[0m begin transaction
|
64272
|
+
-----------------------------------------------------------------------------------------------------
|
64273
|
+
ActionSmser::DeliveryReportsControllerTest: test_index_with_admin_access_lambda_with_right_login_info
|
64274
|
+
-----------------------------------------------------------------------------------------------------
|
64275
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
64276
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "action_smser_delivery_reports" ("created_at", "msg_id", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 13 Jan 2014 13:20:07 UTC +00:00], ["msg_id", "idtest_1"], ["updated_at", Mon, 13 Jan 2014 13:20:07 UTC +00:00]]
|
64277
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
64278
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
64279
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "action_smser_delivery_reports" ("created_at", "msg_id", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 13 Jan 2014 13:20:07 UTC +00:00], ["msg_id", "idtest_6"], ["updated_at", Mon, 13 Jan 2014 13:20:07 UTC +00:00]]
|
64280
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
64281
|
+
Processing by ActionSmser::DeliveryReportsController#index as HTML
|
64282
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2014-01-06 13:20:07.670638' AND '2014-01-13 13:10:07.670763')[0m
|
64283
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) AS count_all, gateway AS gateway FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2014-01-06 13:20:07.670638' AND '2014-01-13 13:10:07.670763') GROUP BY gateway
|
64284
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2014-01-06 13:20:07.670638' AND '2014-01-13 13:10:07.670763')[0m
|
64285
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) AS count_all, status AS status FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2014-01-06 13:20:07.670638' AND '2014-01-13 13:10:07.670763') GROUP BY status
|
64286
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2014-01-06 13:20:07.670638' AND '2014-01-13 13:10:07.670763')[0m
|
64287
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) AS count_all, sms_type AS sms_type FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2014-01-06 13:20:07.670638' AND '2014-01-13 13:10:07.670763') GROUP BY sms_type
|
64288
|
+
Completed 200 OK in 9ms (Views: 8.4ms | ActiveRecord: 0.4ms)
|
64289
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
64290
|
+
[1m[35m (0.0ms)[0m begin transaction
|
64291
|
+
--------------------------------------------------------------------------------
|
64292
|
+
ActionSmser::DeliveryReportsControllerTest: test_index_with_always_enabled_admin
|
64293
|
+
--------------------------------------------------------------------------------
|
64294
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
64295
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "action_smser_delivery_reports" ("created_at", "msg_id", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 13 Jan 2014 13:20:07 UTC +00:00], ["msg_id", "idtest_6"], ["updated_at", Mon, 13 Jan 2014 13:20:07 UTC +00:00]]
|
64296
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
64297
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
64298
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "action_smser_delivery_reports" ("created_at", "msg_id", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 13 Jan 2014 13:20:07 UTC +00:00], ["msg_id", "idtest_2"], ["updated_at", Mon, 13 Jan 2014 13:20:07 UTC +00:00]]
|
64299
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
64300
|
+
Processing by ActionSmser::DeliveryReportsController#index as HTML
|
64301
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2014-01-06 13:20:07.682550' AND '2014-01-13 13:10:07.682649')[0m
|
64302
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) AS count_all, gateway AS gateway FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2014-01-06 13:20:07.682550' AND '2014-01-13 13:10:07.682649') GROUP BY gateway
|
64303
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2014-01-06 13:20:07.682550' AND '2014-01-13 13:10:07.682649')[0m
|
64304
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) AS count_all, status AS status FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2014-01-06 13:20:07.682550' AND '2014-01-13 13:10:07.682649') GROUP BY status
|
64305
|
+
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2014-01-06 13:20:07.682550' AND '2014-01-13 13:10:07.682649')[0m
|
64306
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) AS count_all, sms_type AS sms_type FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2014-01-06 13:20:07.682550' AND '2014-01-13 13:10:07.682649') GROUP BY sms_type
|
64307
|
+
Completed 200 OK in 6ms (Views: 5.0ms | ActiveRecord: 0.4ms)
|
64308
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
64309
|
+
[1m[35m (0.0ms)[0m begin transaction
|
64310
|
+
--------------------------------------------------------------------------------------------------------
|
64311
|
+
ActionSmser::DeliveryReportsControllerTest: test_index_with_forbidden_admin_access_(default_access_mode)
|
64312
|
+
--------------------------------------------------------------------------------------------------------
|
64313
|
+
Processing by ActionSmser::DeliveryReportsController#index as HTML
|
64314
|
+
Filter chain halted as :admin_access_only rendered or redirected
|
64315
|
+
Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
|
64316
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
64317
|
+
[1m[35m (0.0ms)[0m begin transaction
|
64318
|
+
-------------------------------------------------------------------------------
|
64319
|
+
ActionSmser::DeliveryReportsControllerTest: test_list_with_always_enabled_admin
|
64320
|
+
-------------------------------------------------------------------------------
|
64321
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
64322
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "action_smser_delivery_reports" ("created_at", "msg_id", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 13 Jan 2014 13:20:07 UTC +00:00], ["msg_id", "idtest_1"], ["updated_at", Mon, 13 Jan 2014 13:20:07 UTC +00:00]]
|
64323
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
64324
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
64325
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "action_smser_delivery_reports" ("created_at", "msg_id", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 13 Jan 2014 13:20:07 UTC +00:00], ["msg_id", "idtest_6"], ["updated_at", Mon, 13 Jan 2014 13:20:07 UTC +00:00]]
|
64326
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
64327
|
+
Processing by ActionSmser::DeliveryReportsController#list as HTML
|
64328
|
+
[1m[36mActionSmser::DeliveryReport Load (0.1ms)[0m [1mSELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" ORDER BY created_at DESC LIMIT 20 OFFSET 0[0m
|
64329
|
+
Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.1ms)
|
64330
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
64331
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
64332
|
+
------------------------------------------------------------------------------
|
64333
|
+
ActionSmser::NexmoTest: test_delivery_path_should_have_unicode_set_when_needed
|
64334
|
+
------------------------------------------------------------------------------
|
64335
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
64336
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
64337
|
+
--------------------------------------------------------------------
|
64338
|
+
ActionSmser::NexmoTest: test_gateway_process_delivery_report(params)
|
64339
|
+
--------------------------------------------------------------------
|
64340
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
64341
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
64342
|
+
------------------------------------------------------
|
64343
|
+
ActionSmser::NexmoTest: test_should_be_able_to_deliver
|
64344
|
+
------------------------------------------------------
|
64345
|
+
ActionSmser: Sending sms - Delivery_method: nexmo - Sms: (Sms ActionSmser::NexmoTest::MockSms.basic_sms - From: "555666", To: ["555123555", "123555123"], Body: "Body with ääkköset end", Valid: true)
|
64346
|
+
ActionSmser: Nexmo delivery http ||| /sms/json?username=user&password=pass&ttl=86400000&status-report-req=false&from=555666&to=555123555&text=Body+with+%C3%A4%C3%A4kk%C3%B6set+end ||| #<Mock:0x4d47868>
|
64347
|
+
ActionSmser: {"message-count":"1","messages":[{"message-price":"0.02500000","status":"0","message-id":"0778DE88","remaining-balance":"1.77500000"}]}
|
64348
|
+
ActionSmser: Nexmo delivery http ||| /sms/json?username=user&password=pass&ttl=86400000&status-report-req=false&from=555666&to=123555123&text=Body+with+%C3%A4%C3%A4kk%C3%B6set+end ||| #<Mock:0x4d47868>
|
64349
|
+
ActionSmser: {"message-count":"1","messages":[{"message-price":"0.02500000","status":"0","message-id":"0778DE88","remaining-balance":"1.77500000"}]}
|
64350
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
64351
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
64352
|
+
---------------------------------------------------------
|
64353
|
+
ActionSmser::NexmoTest: test_with_saving_delivery_reports
|
64354
|
+
---------------------------------------------------------
|
64355
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "action_smser_delivery_reports"
|
64356
|
+
ActionSmser: Sending sms - Delivery_method: nexmo - Sms: (Sms ActionSmser::NexmoTest::MockSms.basic_sms - From: "555666", To: ["555123555", "123555123"], Body: "Body with ääkköset end", Valid: true)
|
64357
|
+
ActionSmser: Nexmo delivery http ||| /sms/json?username=user&password=pass&ttl=86400000&status-report-req=true&from=555666&to=555123555&text=Body+with+%C3%A4%C3%A4kk%C3%B6set+end ||| #<Mock:0x4d56ed0>
|
64358
|
+
ActionSmser: {"message-count":"1","messages":[{"message-price":"0.02500000","status":"0","message-id":"0778DE88","remaining-balance":"1.77500000"}]}
|
64359
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
64360
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Body with ääkköset end"], ["created_at", Mon, 13 Jan 2014 13:20:07 UTC +00:00], ["from", "555666"], ["gateway", "nexmo"], ["log", "2014-01-13 15:20:07: LOCAL_SENT\n"], ["msg_id", "0778DE88"], ["sms_type", "ActionSmser::NexmoTest::MockSms.basic_sms"], ["status", "LOCAL_SENT"], ["status_updated_at", Mon, 13 Jan 2014 13:20:07 UTC +00:00], ["to", "555123555"], ["updated_at", Mon, 13 Jan 2014 13:20:07 UTC +00:00]]
|
64361
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
64362
|
+
ActionSmser: Nexmo delivery http ||| /sms/json?username=user&password=pass&ttl=86400000&status-report-req=true&from=555666&to=123555123&text=Body+with+%C3%A4%C3%A4kk%C3%B6set+end ||| #<Mock:0x4d56ed0>
|
64363
|
+
ActionSmser: {"message-count":"1","messages":[{"message-price":"0.02500000","status":"0","message-id":"0778DE88","remaining-balance":"1.77500000"}]}
|
64364
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
64365
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Body with ääkköset end"], ["created_at", Mon, 13 Jan 2014 13:20:07 UTC +00:00], ["from", "555666"], ["gateway", "nexmo"], ["log", "2014-01-13 15:20:07: LOCAL_SENT\n"], ["msg_id", "0778DE88"], ["sms_type", "ActionSmser::NexmoTest::MockSms.basic_sms"], ["status", "LOCAL_SENT"], ["status_updated_at", Mon, 13 Jan 2014 13:20:07 UTC +00:00], ["to", "123555123"], ["updated_at", Mon, 13 Jan 2014 13:20:07 UTC +00:00]]
|
64366
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
64367
|
+
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "action_smser_delivery_reports"[0m
|
64368
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
64369
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
64370
|
+
-----------------------------------------------------------
|
64371
|
+
ActionSmser::SimpleHttpTest: test_should_be_able_to_deliver
|
64372
|
+
-----------------------------------------------------------
|
64373
|
+
ActionSmser: Sending sms - Delivery_method: simple_http - Sms: (Sms ActionSmser::SimpleHttpTest::MockSms.basic_sms - From: "555666", To: ["555123555", "123555123"], Body: "Body with ääkköset end", Valid: true)
|
64374
|
+
ActionSmser: SimpleHttp delivery ||| /api/sendsms/plain?user=user&password=pass&sender=555666&SMSText=Body+with+%E4%E4kk%F6set+end&GSM=555123555,123555123 ||| #<Mock:0x50e0998>
|
64375
|
+
ActionSmser: id_1234
|
64376
|
+
id_6666
|
64377
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
64378
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
64379
|
+
--------------------------------------------------------------
|
64380
|
+
ActionSmser::SimpleHttpTest: test_with_saving_delivery_reports
|
64381
|
+
--------------------------------------------------------------
|
64382
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "action_smser_delivery_reports"
|
64383
|
+
ActionSmser: Sending sms - Delivery_method: simple_http - Sms: (Sms ActionSmser::SimpleHttpTest::MockSms.basic_sms - From: "555666", To: ["555123555", "123555123"], Body: "Body with ääkköset end", Valid: true)
|
64384
|
+
ActionSmser: SimpleHttp delivery ||| /api/sendsms/plain?user=user&password=pass&sender=555666&SMSText=Body+with+%E4%E4kk%F6set+end&GSM=555123555,123555123 ||| #<Mock:0x50f1770>
|
64385
|
+
ActionSmser: id_1234
|
64386
|
+
id_6666
|
64387
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
64388
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Body with ääkköset end"], ["created_at", Mon, 13 Jan 2014 13:20:07 UTC +00:00], ["from", "555666"], ["gateway", "simple_http"], ["log", "2014-01-13 15:20:07: LOCAL_SENT\n"], ["msg_id", "id_1234"], ["sms_type", "ActionSmser::SimpleHttpTest::MockSms.basic_sms"], ["status", "LOCAL_SENT"], ["status_updated_at", Mon, 13 Jan 2014 13:20:07 UTC +00:00], ["to", "555123555"], ["updated_at", Mon, 13 Jan 2014 13:20:07 UTC +00:00]]
|
64389
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
64390
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
64391
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Body with ääkköset end"], ["created_at", Mon, 13 Jan 2014 13:20:07 UTC +00:00], ["from", "555666"], ["gateway", "simple_http"], ["log", "2014-01-13 15:20:07: LOCAL_SENT\n"], ["msg_id", "id_6666"], ["sms_type", "ActionSmser::SimpleHttpTest::MockSms.basic_sms"], ["status", "LOCAL_SENT"], ["status_updated_at", Mon, 13 Jan 2014 13:20:07 UTC +00:00], ["to", "123555123"], ["updated_at", Mon, 13 Jan 2014 13:20:07 UTC +00:00]]
|
64392
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
64393
|
+
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "action_smser_delivery_reports"[0m
|
64394
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
64395
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
64396
|
+
---------------------------------------------------------
|
64397
|
+
ActionSmser::SmstradeTest: test_should_be_able_to_deliver
|
64398
|
+
---------------------------------------------------------
|
64399
|
+
ActionSmser: Sending sms - Delivery_method: smstrade - Sms: (Sms ActionSmser::SmstradeTest::MockSms.basic_sms - From: "4917212341234", To: ["4915112341234", "4917812341234"], Body: "Body with ümläüts.", Valid: true)
|
64400
|
+
ActionSmser: Smstrade delivery http ||| /?key=api-key-here&from=4917212341234&to=4915112341234&message=Body+with+%C3%BCml%C3%A4%C3%BCts.&route=gold&debug=1&cost=1&message_id=1&count=1&charset=utf-8 ||| #<Mock:0x5069d98>
|
64401
|
+
ActionSmser: 100
|
64402
|
+
123456789
|
64403
|
+
0.064
|
64404
|
+
1
|
64405
|
+
ActionSmser: Smstrade delivery http ||| /?key=api-key-here&from=4917212341234&to=4917812341234&message=Body+with+%C3%BCml%C3%A4%C3%BCts.&route=gold&debug=1&cost=1&message_id=1&count=1&charset=utf-8 ||| #<Mock:0x5069d98>
|
64406
|
+
ActionSmser: 100
|
64407
|
+
123456789
|
64408
|
+
0.064
|
64409
|
+
1
|
64410
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
64411
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
64412
|
+
------------------------------------------------------------
|
64413
|
+
ActionSmser::SmstradeTest: test_with_saving_delivery_reports
|
64414
|
+
------------------------------------------------------------
|
64415
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "action_smser_delivery_reports"
|
64416
|
+
ActionSmser: Sending sms - Delivery_method: smstrade - Sms: (Sms ActionSmser::SmstradeTest::MockSms.basic_sms - From: "4917212341234", To: ["4915112341234", "4917812341234"], Body: "Body with ümläüts.", Valid: true)
|
64417
|
+
ActionSmser: Smstrade delivery http ||| /?key=api-key-here&from=4917212341234&to=4915112341234&message=Body+with+%C3%BCml%C3%A4%C3%BCts.&route=gold&debug=1&cost=1&message_id=1&count=1&charset=utf-8 ||| #<Mock:0x507bf20>
|
64418
|
+
ActionSmser: 100
|
64419
|
+
123456789
|
64420
|
+
0.064
|
64421
|
+
1
|
64422
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
64423
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Body with ümläüts."], ["created_at", Mon, 13 Jan 2014 13:20:07 UTC +00:00], ["from", "4917212341234"], ["gateway", "smstrade"], ["log", "2014-01-13 15:20:07: LOCAL_SENT\n"], ["msg_id", "123456789"], ["sms_type", "ActionSmser::SmstradeTest::MockSms.basic_sms"], ["status", "LOCAL_SENT"], ["status_updated_at", Mon, 13 Jan 2014 13:20:07 UTC +00:00], ["to", "4915112341234"], ["updated_at", Mon, 13 Jan 2014 13:20:07 UTC +00:00]]
|
64424
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
64425
|
+
ActionSmser: Smstrade delivery http ||| /?key=api-key-here&from=4917212341234&to=4917812341234&message=Body+with+%C3%BCml%C3%A4%C3%BCts.&route=gold&debug=1&cost=1&message_id=1&count=1&charset=utf-8 ||| #<Mock:0x507bf20>
|
64426
|
+
ActionSmser: 100
|
64427
|
+
123456789
|
64428
|
+
0.064
|
64429
|
+
1
|
64430
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
64431
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Body with ümläüts."], ["created_at", Mon, 13 Jan 2014 13:20:07 UTC +00:00], ["from", "4917212341234"], ["gateway", "smstrade"], ["log", "2014-01-13 15:20:07: LOCAL_SENT\n"], ["msg_id", "123456789"], ["sms_type", "ActionSmser::SmstradeTest::MockSms.basic_sms"], ["status", "LOCAL_SENT"], ["status_updated_at", Mon, 13 Jan 2014 13:20:07 UTC +00:00], ["to", "4917812341234"], ["updated_at", Mon, 13 Jan 2014 13:20:07 UTC +00:00]]
|
64432
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
64433
|
+
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "action_smser_delivery_reports"[0m
|
64434
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
64435
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
64436
|
+
--------------------------------------------------------
|
64437
|
+
ActionSmser::TestArrayTest: test_should_add_to_TestArray
|
64438
|
+
--------------------------------------------------------
|
64439
|
+
ActionSmser: Sending sms - Delivery_method: test_array - Sms: (Sms ActionSmser::TestArrayTest::MockSms.basic_sms - From: "555666", To: ["555123555", "123555123"], Body: "Body with ääkköset end", Valid: true)
|
64440
|
+
ActionSmser: ActionSmser::DeliveryMethods::TestArray.deliveries added message, no real delivery.
|
64441
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
64442
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
64443
|
+
----------------------------------------------------------
|
64444
|
+
ActionSmser::TestArrayTest: test_should_be_able_to_deliver
|
64445
|
+
----------------------------------------------------------
|
64446
|
+
ActionSmser: Sending sms - Delivery_method: test_array - Sms: (Sms ActionSmser::TestArrayTest::MockSms.basic_sms - From: "555666", To: ["555123555", "123555123"], Body: "Body with ääkköset end", Valid: true)
|
64447
|
+
ActionSmser: ActionSmser::DeliveryMethods::TestArray.deliveries added message, no real delivery.
|
64448
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
64449
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
64450
|
+
-------------------------------------------------------------
|
64451
|
+
ActionSmser::TestArrayTest: test_with_saving_delivery_reports
|
64452
|
+
-------------------------------------------------------------
|
64453
|
+
ActionSmser: Sending sms - Delivery_method: test_array - Sms: (Sms ActionSmser::TestArrayTest::MockSms.basic_sms - From: "555666", To: ["555123555", "123555123"], Body: "Body with ääkköset end", Valid: true)
|
64454
|
+
ActionSmser: ActionSmser::DeliveryMethods::TestArray.deliveries added message, no real delivery.
|
64455
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "action_smser_delivery_reports"
|
64456
|
+
ActionSmser: Sending sms - Delivery_method: test_array - Sms: (Sms ActionSmser::TestArrayTest::MockSms.basic_sms - From: "555666", To: ["555123555", "123555123"], Body: "Body with ääkköset end", Valid: true)
|
64457
|
+
ActionSmser: ActionSmser::DeliveryMethods::TestArray.deliveries added message, no real delivery.
|
64458
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
64459
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Body with ääkköset end"], ["created_at", Mon, 13 Jan 2014 13:20:07 UTC +00:00], ["from", "555666"], ["gateway", "test_array"], ["log", "2014-01-13 15:20:07: LOCAL_SENT\n"], ["msg_id", "test_array_id_8073424"], ["sms_type", "ActionSmser::TestArrayTest::MockSms.basic_sms"], ["status", "LOCAL_SENT"], ["status_updated_at", Mon, 13 Jan 2014 13:20:07 UTC +00:00], ["to", "555123555"], ["updated_at", Mon, 13 Jan 2014 13:20:07 UTC +00:00]]
|
64460
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
64461
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
64462
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Body with ääkköset end"], ["created_at", Mon, 13 Jan 2014 13:20:07 UTC +00:00], ["from", "555666"], ["gateway", "test_array"], ["log", "2014-01-13 15:20:07: LOCAL_SENT\n"], ["msg_id", "test_array_id_40237505"], ["sms_type", "ActionSmser::TestArrayTest::MockSms.basic_sms"], ["status", "LOCAL_SENT"], ["status_updated_at", Mon, 13 Jan 2014 13:20:07 UTC +00:00], ["to", "123555123"], ["updated_at", Mon, 13 Jan 2014 13:20:07 UTC +00:00]]
|
64463
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
64464
|
+
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "action_smser_delivery_reports"[0m
|
64465
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
64466
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
64467
|
+
---------------------------
|
64468
|
+
ActionSmserTest: test_truth
|
64469
|
+
---------------------------
|
64470
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
64471
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
64472
|
+
---------------------------------------------------------
|
64473
|
+
NavigationTest: test_basic_gateway_commit_delivery_report
|
64474
|
+
---------------------------------------------------------
|
64475
|
+
Started GET "/action_smser/delivery_reports/gateway_commit/example_gateway" for 127.0.0.1 at 2014-01-13 15:20:07 +0200
|
64476
|
+
Processing by ActionSmser::DeliveryReportsController#gateway_commit as HTML
|
64477
|
+
Parameters: {"gateway"=>"example_gateway"}
|
64478
|
+
Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
|
64479
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
64480
|
+
[1m[36m (0.2ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [0m
|
64481
|
+
[1m[35m (0.1ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
64482
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
64483
|
+
Migrating to CreateActionSmserDeliveryReports (20120102215215)
|
64484
|
+
[1m[35m (0.0ms)[0m begin transaction
|
64485
|
+
[1m[36m (0.2ms)[0m [1mCREATE TABLE "action_smser_delivery_reports" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "msg_id" varchar(255), "status" varchar(255), "status_updated_at" datetime, "sms_type" varchar(255), "log" text, "to" varchar(255), "from" varchar(255), "body" varchar(255), "gateway" varchar(255), "re_delivery_of_delivery_report_id" integer, "re_delivered" boolean, "created_at" datetime, "updated_at" datetime) [0m
|
64486
|
+
[1m[35m (0.1ms)[0m CREATE INDEX "index_action_smser_delivery_reports_on_msg_id" ON "action_smser_delivery_reports" ("msg_id")
|
64487
|
+
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20120102215215"]]
|
64488
|
+
[1m[35m (0.0ms)[0m commit transaction
|
64489
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
64490
|
+
---------------------------------------------------------------------------
|
64491
|
+
ActionSmser::BaseTest: test_after_delivery_should_be_called_if_it's_present
|
64492
|
+
---------------------------------------------------------------------------
|
64493
|
+
ActionSmser: Sending sms - Delivery_method: test_array - Sms: (Sms ActionSmser::BaseTest::MockSms.basic_sms - From: "555666", To: ["555123555", "123", "+358123555123"], Body: "Body with ääkköset end", Valid: true)
|
64494
|
+
ActionSmser: ActionSmser::DeliveryMethods::TestArray.deliveries added message, no real delivery.
|
64495
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
64496
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
64497
|
+
----------------------------------------------------------------------------
|
64498
|
+
ActionSmser::BaseTest: test_before_delivery_should_be_called_if_it's_present
|
64499
|
+
----------------------------------------------------------------------------
|
64500
|
+
ActionSmser: Sending sms - Delivery_method: test_array - Sms: (Sms ActionSmser::BaseTest::MockSms.basic_sms - From: "555666", To: ["555123555", "123", "+358123555123"], Body: "Body with ääkköset end", Valid: true)
|
64501
|
+
ActionSmser: ActionSmser::DeliveryMethods::TestArray.deliveries added message, no real delivery.
|
64502
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
64503
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
64504
|
+
--------------------------------------------------------------------------------------------
|
64505
|
+
ActionSmser::BaseTest: test_body_should_be_cropped_to_500_chars,_limit_extra_looong_messages
|
64506
|
+
--------------------------------------------------------------------------------------------
|
64507
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
64508
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
64509
|
+
-------------------------------------------------------------
|
64510
|
+
ActionSmser::BaseTest: test_body_should_be_possible_to_encode
|
64511
|
+
-------------------------------------------------------------
|
64512
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
64513
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
64514
|
+
----------------------------------------------------------------------
|
64515
|
+
ActionSmser::BaseTest: test_from_encoded_should_remove_leading_+_and_0
|
64516
|
+
----------------------------------------------------------------------
|
64517
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
64518
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
64519
|
+
--------------------------------------------------------------------------------------------------------
|
64520
|
+
ActionSmser::BaseTest: test_message_real_crop_should_return_cropped_message_with_sms_chars_taken_account
|
64521
|
+
--------------------------------------------------------------------------------------------------------
|
64522
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
64523
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
64524
|
+
-----------------------------------------------------------------------------
|
64525
|
+
ActionSmser::BaseTest: test_message_real_length_should_return_real_sms_lenght
|
64526
|
+
-----------------------------------------------------------------------------
|
64527
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
64528
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
64529
|
+
----------------------------------------------------------------
|
64530
|
+
ActionSmser::BaseTest: test_receivers_should_be_joined_by_commas
|
64531
|
+
----------------------------------------------------------------
|
64532
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
64533
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
64534
|
+
--------------------------------------------------------
|
64535
|
+
ActionSmser::BaseTest: test_should_be_able_to_change_ttl
|
64536
|
+
--------------------------------------------------------
|
64537
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
64538
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
64539
|
+
--------------------------------------------------------------
|
64540
|
+
ActionSmser::BaseTest: test_should_be_ok_with_single_receivers
|
64541
|
+
--------------------------------------------------------------
|
64542
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
64543
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
64544
|
+
-----------------------------------------------
|
64545
|
+
ActionSmser::BaseTest: test_should_be_valid_sms
|
64546
|
+
-----------------------------------------------
|
64547
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
64548
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
64549
|
+
-------------------------------------------------------------------------------------
|
64550
|
+
ActionSmser::BaseTest: test_should_have_copied_the_delivery_options_when_initializing
|
64551
|
+
-------------------------------------------------------------------------------------
|
64552
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
64553
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
64554
|
+
------------------------------------------------------
|
64555
|
+
ActionSmser::BaseTest: test_should_have_saved_sms_type
|
64556
|
+
------------------------------------------------------
|
64557
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
64558
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
64559
|
+
---------------------------------------------------------------------
|
64560
|
+
ActionSmser::BaseTest: test_should_have_test_array_as_delivery_method
|
64561
|
+
---------------------------------------------------------------------
|
64562
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
64563
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
64564
|
+
----------------------------------------------------------------
|
64565
|
+
ActionSmser::BaseTest: test_should_not_be_valid_if_no_recipients
|
64566
|
+
----------------------------------------------------------------
|
64567
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
64568
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
64569
|
+
-------------------------------------------------------------
|
64570
|
+
ActionSmser::BaseTest: test_ttl_should_be_24_hours_by_default
|
64571
|
+
-------------------------------------------------------------
|
64572
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
64573
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
64574
|
+
----------------------------------------------------------------------------------------------
|
64575
|
+
ActionSmser::DelayedJobTest: test_should_be_able_to_deliver_and_call_enqueue_for_all_receivers
|
64576
|
+
----------------------------------------------------------------------------------------------
|
64577
|
+
ActionSmser: Sending sms - Delivery_method: delayed_job - Sms: (Sms ActionSmser::DelayedJobTest::MockSms.basic_sms - From: "555666", To: ["555123555", "123555123"], Body: "Body with ääkköset end", Valid: true)
|
64578
|
+
ActionSmser: Delivering sms by delayed_job
|
64579
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
64580
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
64581
|
+
-------------------------------------------------------------
|
64582
|
+
ActionSmser::DelayedJobTest: test_test_that_serializing_is_ok
|
64583
|
+
-------------------------------------------------------------
|
64584
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
64585
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
64586
|
+
-------------------------------------------------------------------
|
64587
|
+
ActionSmser::DeliveryReportTest: test_build_DeliveryReport_from_sms
|
64588
|
+
-------------------------------------------------------------------
|
64589
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
64590
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
64591
|
+
------------------------------------------------------
|
64592
|
+
ActionSmser::DeliveryReportTest: test_create_from_save
|
64593
|
+
------------------------------------------------------
|
64594
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "action_smser_delivery_reports"
|
64595
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
64596
|
+
[1m[35mSQL (23.4ms)[0m INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Body with ääkköset end"], ["created_at", Mon, 13 Jan 2014 13:20:18 UTC +00:00], ["from", "555666"], ["gateway", "test_array"], ["log", "2014-01-13 15:20:18: LOCAL_SENT\n"], ["msg_id", "msg_id_a"], ["sms_type", "ActionSmser::DeliveryReportTest::MockSms.basic_sms"], ["status", "LOCAL_SENT"], ["status_updated_at", Mon, 13 Jan 2014 13:20:18 UTC +00:00], ["to", "123"], ["updated_at", Mon, 13 Jan 2014 13:20:18 UTC +00:00]]
|
64597
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
64598
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "action_smser_delivery_reports"
|
64599
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
64600
|
+
[1m[35m (0.0ms)[0m begin transaction
|
64601
|
+
-----------------------------------------------------------------
|
64602
|
+
ActionSmser::DeliveryReportTest: test_re_deliver_with_simple_http
|
64603
|
+
-----------------------------------------------------------------
|
64604
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
64605
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Body with ääkköset end"], ["created_at", Mon, 13 Jan 2014 13:20:18 UTC +00:00], ["from", "555666"], ["gateway", "test_array"], ["log", "2014-01-13 15:20:18: LOCAL_SENT\n"], ["msg_id", "msg_id_a"], ["sms_type", "ActionSmser::DeliveryReportTest::MockSms.basic_sms"], ["status", "LOCAL_SENT"], ["status_updated_at", Mon, 13 Jan 2014 13:20:18 UTC +00:00], ["to", "123"], ["updated_at", Mon, 13 Jan 2014 13:20:18 UTC +00:00]]
|
64606
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
64607
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
64608
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "action_smser_delivery_reports" SET "gateway" = ?, "updated_at" = ? WHERE "action_smser_delivery_reports"."id" = 1[0m [["gateway", "some_delivery"], ["updated_at", Mon, 13 Jan 2014 13:20:18 UTC +00:00]]
|
64609
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
64610
|
+
[1m[36mActionSmser::DeliveryReport Load (0.1ms)[0m [1mSELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."id" = ? LIMIT 1[0m [["id", 1]]
|
64611
|
+
ActionSmser: Re_delivering: #<ActionSmser::DeliveryReport id: 1, msg_id: "msg_id_a", status: "LOCAL_SENT", status_updated_at: "2014-01-13 13:20:18", sms_type: "ActionSmser::DeliveryReportTest::MockSms.basic_sms", log: "2014-01-13 15:20:18: LOCAL_SENT\n", to: "123", from: "555666", body: "Body with ääkköset end", gateway: "some_delivery", re_delivery_of_delivery_report_id: nil, re_delivered: nil, created_at: "2014-01-13 13:20:18", updated_at: "2014-01-13 13:20:18">
|
64612
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
64613
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "action_smser_delivery_reports" SET "re_delivered" = ?, "updated_at" = ? WHERE "action_smser_delivery_reports"."id" = 1[0m [["re_delivered", true], ["updated_at", Mon, 13 Jan 2014 13:20:18 UTC +00:00]]
|
64614
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
64615
|
+
[1m[36mActionSmser::DeliveryReport Load (0.0ms)[0m [1mSELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."id" = ? LIMIT 1[0m [["id", 1]]
|
64616
|
+
ActionSmser: Sending sms - Delivery_method: test_array - Sms: (Sms ActionSmser::DeliveryReportTest::MockSms.basic_sms.re_delivery - From: "555666", To: "123", Body: "Body with ääkköset end", Valid: true)
|
64617
|
+
ActionSmser: ActionSmser::DeliveryMethods::TestArray.deliveries added message, no real delivery.
|
64618
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
64619
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "re_delivery_of_delivery_report_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Body with ääkköset end"], ["created_at", Mon, 13 Jan 2014 13:20:18 UTC +00:00], ["from", "555666"], ["gateway", "test_array"], ["log", "2014-01-13 15:20:18: LOCAL_SENT\n"], ["msg_id", "test_array_id_4372149"], ["re_delivery_of_delivery_report_id", 1], ["sms_type", "ActionSmser::DeliveryReportTest::MockSms.basic_sms.re_delivery"], ["status", "LOCAL_SENT"], ["status_updated_at", Mon, 13 Jan 2014 13:20:18 UTC +00:00], ["to", "123"], ["updated_at", Mon, 13 Jan 2014 13:20:18 UTC +00:00]]
|
64620
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
64621
|
+
[1m[36mActionSmser::DeliveryReport Load (0.1ms)[0m [1mSELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" ORDER BY "action_smser_delivery_reports"."id" DESC LIMIT 1[0m
|
64622
|
+
[1m[35mActionSmser::DeliveryReport Load (0.2ms)[0m SELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."re_delivery_of_delivery_report_id" = ? ORDER BY "action_smser_delivery_reports"."id" ASC LIMIT 1 [["re_delivery_of_delivery_report_id", 1]]
|
64623
|
+
[1m[36mActionSmser::DeliveryReport Load (0.2ms)[0m [1mSELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."id" = ? ORDER BY "action_smser_delivery_reports"."id" ASC LIMIT 1[0m [["id", 1]]
|
64624
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
64625
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
64626
|
+
--------------------------------------------
|
64627
|
+
ActionSmser::DeliveryReportTest: test_to_sms
|
64628
|
+
--------------------------------------------
|
64629
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
64630
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Body with ääkköset end"], ["created_at", Mon, 13 Jan 2014 13:20:18 UTC +00:00], ["from", "555666"], ["gateway", "test_array"], ["log", "2014-01-13 15:20:18: LOCAL_SENT\n"], ["msg_id", "msg_id_a"], ["sms_type", "ActionSmser::DeliveryReportTest::MockSms.basic_sms"], ["status", "LOCAL_SENT"], ["status_updated_at", Mon, 13 Jan 2014 13:20:18 UTC +00:00], ["to", "123"], ["updated_at", Mon, 13 Jan 2014 13:20:18 UTC +00:00]]
|
64631
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
64632
|
+
[1m[36mActionSmser::DeliveryReport Load (0.0ms)[0m [1mSELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."id" = ? LIMIT 1[0m [["id", 1]]
|
64633
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
64634
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
64635
|
+
-----------------------------------------------------
|
64636
|
+
ActionSmser::DeliveryReportTest: test_updating_status
|
64637
|
+
-----------------------------------------------------
|
64638
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
64639
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "action_smser_delivery_reports" ("created_at", "log", "status", "status_updated_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["created_at", Mon, 13 Jan 2014 13:20:18 UTC +00:00], ["log", "2014-01-13 15:20:18: LOCAL_TEST\n"], ["status", "LOCAL_TEST"], ["status_updated_at", Mon, 13 Jan 2014 13:20:18 UTC +00:00], ["updated_at", Mon, 13 Jan 2014 13:20:18 UTC +00:00]]
|
64640
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
64641
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
64642
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "action_smser_delivery_reports" SET "status" = ?, "status_updated_at" = ?, "log" = ?, "updated_at" = ? WHERE "action_smser_delivery_reports"."id" = 1 [["status", "TEST_2"], ["status_updated_at", Mon, 13 Jan 2014 13:20:18 UTC +00:00], ["log", "2014-01-13 15:20:18: LOCAL_TEST\n2014-01-13 15:20:18: TEST_2\n"], ["updated_at", Mon, 13 Jan 2014 13:20:18 UTC +00:00]]
|
64643
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
64644
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
64645
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
64646
|
+
--------------------------------------------------------------------------------
|
64647
|
+
ActionSmser::DeliveryReportsControllerTest: test_gateway_commit_with_existing_dr
|
64648
|
+
--------------------------------------------------------------------------------
|
64649
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
64650
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "action_smser_delivery_reports" ("created_at", "log", "msg_id", "status", "status_updated_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 13 Jan 2014 13:20:18 UTC +00:00], ["log", "2014-01-13 15:20:18: ORIGINAL_STATUS\n"], ["msg_id", "102010314204056202"], ["status", "ORIGINAL_STATUS"], ["status_updated_at", Mon, 13 Jan 2014 13:20:18 UTC +00:00], ["updated_at", Mon, 13 Jan 2014 13:20:18 UTC +00:00]]
|
64651
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
64652
|
+
Processing by ActionSmser::DeliveryReportsController#gateway_commit as HTML
|
64653
|
+
Parameters: {"gateway"=>"test_gateway", "DeliveryReport"=>{"message"=>{"id"=>"102010314204056202", "donedate"=>"2012/01/03 14:20:45", "sentdate"=>"2012/01/03 14:20:40", "status"=>"DELIVERED"}}}
|
64654
|
+
ActionSmser: Gateway_commit found parser for gateway: test_gateway
|
64655
|
+
[1m[36mActionSmser::DeliveryReport Load (0.2ms)[0m [1mSELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."msg_id" = '102010314204056202' ORDER BY "action_smser_delivery_reports"."id" ASC LIMIT 1[0m
|
64656
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
64657
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "action_smser_delivery_reports" SET "status" = ?, "status_updated_at" = ?, "log" = ?, "updated_at" = ? WHERE "action_smser_delivery_reports"."id" = 1[0m [["status", "DELIVERED"], ["status_updated_at", Mon, 13 Jan 2014 13:20:18 UTC +00:00], ["log", "2014-01-13 15:20:18: ORIGINAL_STATUS\n2014-01-13 15:20:18: DELIVERED\n"], ["updated_at", Mon, 13 Jan 2014 13:20:18 UTC +00:00]]
|
64658
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
64659
|
+
ActionSmser: Gateway_commit updated item with id: 102010314204056202, params: {"msg_id"=>"102010314204056202", "status"=>"DELIVERED"}
|
64660
|
+
Rendered text template (0.0ms)
|
64661
|
+
Completed 200 OK in 3ms (Views: 0.4ms | ActiveRecord: 0.4ms)
|
64662
|
+
[1m[36mActionSmser::DeliveryReport Load (0.1ms)[0m [1mSELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."id" = ? LIMIT 1[0m [["id", 1]]
|
64663
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
64664
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
64665
|
+
-------------------------------------------------------------------------------------
|
64666
|
+
ActionSmser::DeliveryReportsControllerTest: test_gateway_commit_with_multiple_records
|
64667
|
+
-------------------------------------------------------------------------------------
|
64668
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
64669
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "action_smser_delivery_reports" ("created_at", "log", "msg_id", "status", "status_updated_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 13 Jan 2014 13:20:18 UTC +00:00], ["log", "2014-01-13 15:20:18: ORIGINAL_STATUS\n"], ["msg_id", "102010314204056202"], ["status", "ORIGINAL_STATUS"], ["status_updated_at", Mon, 13 Jan 2014 13:20:18 UTC +00:00], ["updated_at", Mon, 13 Jan 2014 13:20:18 UTC +00:00]]
|
64670
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
64671
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
64672
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "action_smser_delivery_reports" ("created_at", "log", "msg_id", "status", "status_updated_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 13 Jan 2014 13:20:18 UTC +00:00], ["log", "2014-01-13 15:20:18: ORIGINAL_STATUS\n"], ["msg_id", "99999999999999999"], ["status", "ORIGINAL_STATUS"], ["status_updated_at", Mon, 13 Jan 2014 13:20:18 UTC +00:00], ["updated_at", Mon, 13 Jan 2014 13:20:18 UTC +00:00]]
|
64673
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
64674
|
+
Processing by ActionSmser::DeliveryReportsController#gateway_commit as HTML
|
64675
|
+
Parameters: {"gateway"=>"test_gateway", "DeliveryReport"=>{"message"=>[{"id"=>"102010314204056202", "status"=>"DELIVERED"}, {"id"=>"99999999999999999", "status"=>"DELIVERED"}]}}
|
64676
|
+
ActionSmser: Gateway_commit found parser for gateway: test_gateway
|
64677
|
+
[1m[35mActionSmser::DeliveryReport Load (0.1ms)[0m SELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."msg_id" = '102010314204056202' ORDER BY "action_smser_delivery_reports"."id" ASC LIMIT 1
|
64678
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
64679
|
+
[1m[35mSQL (0.2ms)[0m UPDATE "action_smser_delivery_reports" SET "status" = ?, "status_updated_at" = ?, "log" = ?, "updated_at" = ? WHERE "action_smser_delivery_reports"."id" = 1 [["status", "DELIVERED"], ["status_updated_at", Mon, 13 Jan 2014 13:20:18 UTC +00:00], ["log", "2014-01-13 15:20:18: ORIGINAL_STATUS\n2014-01-13 15:20:18: DELIVERED\n"], ["updated_at", Mon, 13 Jan 2014 13:20:18 UTC +00:00]]
|
64680
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
64681
|
+
ActionSmser: Gateway_commit updated item with id: 102010314204056202, params: {"msg_id"=>"102010314204056202", "status"=>"DELIVERED"}
|
64682
|
+
[1m[35mActionSmser::DeliveryReport Load (0.1ms)[0m SELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."msg_id" = '99999999999999999' ORDER BY "action_smser_delivery_reports"."id" ASC LIMIT 1
|
64683
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
64684
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "action_smser_delivery_reports" SET "status" = ?, "status_updated_at" = ?, "log" = ?, "updated_at" = ? WHERE "action_smser_delivery_reports"."id" = 2 [["status", "DELIVERED"], ["status_updated_at", Mon, 13 Jan 2014 13:20:18 UTC +00:00], ["log", "2014-01-13 15:20:18: ORIGINAL_STATUS\n2014-01-13 15:20:18: DELIVERED\n"], ["updated_at", Mon, 13 Jan 2014 13:20:18 UTC +00:00]]
|
64685
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
64686
|
+
ActionSmser: Gateway_commit updated item with id: 99999999999999999, params: {"msg_id"=>"99999999999999999", "status"=>"DELIVERED"}
|
64687
|
+
Completed 200 OK in 4ms (Views: 0.2ms | ActiveRecord: 0.6ms)
|
64688
|
+
[1m[35mActionSmser::DeliveryReport Load (0.0ms)[0m SELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."id" = ? LIMIT 1 [["id", 1]]
|
64689
|
+
[1m[36mActionSmser::DeliveryReport Load (0.0ms)[0m [1mSELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."id" = ? LIMIT 1[0m [["id", 2]]
|
64690
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
64691
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
64692
|
+
----------------------------------------------------------------------------------
|
64693
|
+
ActionSmser::DeliveryReportsControllerTest: test_gateway_commit_without_any_parser
|
64694
|
+
----------------------------------------------------------------------------------
|
64695
|
+
Processing by ActionSmser::DeliveryReportsController#gateway_commit as HTML
|
64696
|
+
Parameters: {"gateway"=>"gateway_not_found", "DeliveryReport"=>{"message"=>{"id"=>"wrongid", "donedate"=>"2012/01/03 14:20:45", "sentdate"=>"2012/01/03 14:20:40", "status"=>"DELIVERED"}}}
|
64697
|
+
Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
|
64698
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
64699
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
64700
|
+
--------------------------------------------------------------------------
|
64701
|
+
ActionSmser::DeliveryReportsControllerTest: test_gateway_commit_without_dr
|
64702
|
+
--------------------------------------------------------------------------
|
64703
|
+
Processing by ActionSmser::DeliveryReportsController#gateway_commit as HTML
|
64704
|
+
Parameters: {"gateway"=>"test_gateway", "DeliveryReport"=>{"message"=>{"id"=>"wrongid", "donedate"=>"2012/01/03 14:20:45", "sentdate"=>"2012/01/03 14:20:40", "status"=>"DELIVERED"}}}
|
64705
|
+
ActionSmser: Gateway_commit found parser for gateway: test_gateway
|
64706
|
+
[1m[35mActionSmser::DeliveryReport Load (0.1ms)[0m SELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."msg_id" = 'wrongid' ORDER BY "action_smser_delivery_reports"."id" ASC LIMIT 1
|
64707
|
+
ActionSmser: Gateway_commit not found item with id: wrongid, params: {"msg_id"=>"wrongid", "status"=>"DELIVERED"}
|
64708
|
+
Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.1ms)
|
64709
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
64710
|
+
[1m[35m (0.0ms)[0m begin transaction
|
64711
|
+
-----------------------------------------------------------------------------------------------------
|
64712
|
+
ActionSmser::DeliveryReportsControllerTest: test_index_with_admin_access_lambda_with_right_login_info
|
64713
|
+
-----------------------------------------------------------------------------------------------------
|
64714
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
64715
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "action_smser_delivery_reports" ("created_at", "msg_id", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 13 Jan 2014 13:20:18 UTC +00:00], ["msg_id", "idtest_8"], ["updated_at", Mon, 13 Jan 2014 13:20:18 UTC +00:00]]
|
64716
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
64717
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
64718
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "action_smser_delivery_reports" ("created_at", "msg_id", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 13 Jan 2014 13:20:18 UTC +00:00], ["msg_id", "idtest_0"], ["updated_at", Mon, 13 Jan 2014 13:20:18 UTC +00:00]]
|
64719
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
64720
|
+
Processing by ActionSmser::DeliveryReportsController#index as HTML
|
64721
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2014-01-06 13:20:18.406413' AND '2014-01-13 13:10:18.406538')[0m
|
64722
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) AS count_all, gateway AS gateway FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2014-01-06 13:20:18.406413' AND '2014-01-13 13:10:18.406538') GROUP BY gateway
|
64723
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2014-01-06 13:20:18.406413' AND '2014-01-13 13:10:18.406538')[0m
|
64724
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) AS count_all, status AS status FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2014-01-06 13:20:18.406413' AND '2014-01-13 13:10:18.406538') GROUP BY status
|
64725
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2014-01-06 13:20:18.406413' AND '2014-01-13 13:10:18.406538')[0m
|
64726
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) AS count_all, sms_type AS sms_type FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2014-01-06 13:20:18.406413' AND '2014-01-13 13:10:18.406538') GROUP BY sms_type
|
64727
|
+
Completed 200 OK in 10ms (Views: 9.1ms | ActiveRecord: 0.5ms)
|
64728
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
64729
|
+
[1m[35m (0.0ms)[0m begin transaction
|
64730
|
+
--------------------------------------------------------------------------------
|
64731
|
+
ActionSmser::DeliveryReportsControllerTest: test_index_with_always_enabled_admin
|
64732
|
+
--------------------------------------------------------------------------------
|
64733
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
64734
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "action_smser_delivery_reports" ("created_at", "msg_id", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 13 Jan 2014 13:20:18 UTC +00:00], ["msg_id", "idtest_7"], ["updated_at", Mon, 13 Jan 2014 13:20:18 UTC +00:00]]
|
64735
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
64736
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
64737
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "action_smser_delivery_reports" ("created_at", "msg_id", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 13 Jan 2014 13:20:18 UTC +00:00], ["msg_id", "idtest_9"], ["updated_at", Mon, 13 Jan 2014 13:20:18 UTC +00:00]]
|
64738
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
64739
|
+
Processing by ActionSmser::DeliveryReportsController#index as HTML
|
64740
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2014-01-06 13:20:18.418454' AND '2014-01-13 13:10:18.418537')[0m
|
64741
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) AS count_all, gateway AS gateway FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2014-01-06 13:20:18.418454' AND '2014-01-13 13:10:18.418537') GROUP BY gateway
|
64742
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2014-01-06 13:20:18.418454' AND '2014-01-13 13:10:18.418537')[0m
|
64743
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) AS count_all, status AS status FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2014-01-06 13:20:18.418454' AND '2014-01-13 13:10:18.418537') GROUP BY status
|
64744
|
+
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2014-01-06 13:20:18.418454' AND '2014-01-13 13:10:18.418537')[0m
|
64745
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) AS count_all, sms_type AS sms_type FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2014-01-06 13:20:18.418454' AND '2014-01-13 13:10:18.418537') GROUP BY sms_type
|
64746
|
+
Completed 200 OK in 6ms (Views: 5.3ms | ActiveRecord: 0.4ms)
|
64747
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
64748
|
+
[1m[35m (0.0ms)[0m begin transaction
|
64749
|
+
--------------------------------------------------------------------------------------------------------
|
64750
|
+
ActionSmser::DeliveryReportsControllerTest: test_index_with_forbidden_admin_access_(default_access_mode)
|
64751
|
+
--------------------------------------------------------------------------------------------------------
|
64752
|
+
Processing by ActionSmser::DeliveryReportsController#index as HTML
|
64753
|
+
Filter chain halted as :admin_access_only rendered or redirected
|
64754
|
+
Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
|
64755
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
64756
|
+
[1m[35m (0.0ms)[0m begin transaction
|
64757
|
+
-------------------------------------------------------------------------------
|
64758
|
+
ActionSmser::DeliveryReportsControllerTest: test_list_with_always_enabled_admin
|
64759
|
+
-------------------------------------------------------------------------------
|
64760
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
64761
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "action_smser_delivery_reports" ("created_at", "msg_id", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 13 Jan 2014 13:20:18 UTC +00:00], ["msg_id", "idtest_0"], ["updated_at", Mon, 13 Jan 2014 13:20:18 UTC +00:00]]
|
64762
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
64763
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
64764
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "action_smser_delivery_reports" ("created_at", "msg_id", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 13 Jan 2014 13:20:18 UTC +00:00], ["msg_id", "idtest_9"], ["updated_at", Mon, 13 Jan 2014 13:20:18 UTC +00:00]]
|
64765
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
64766
|
+
Processing by ActionSmser::DeliveryReportsController#list as HTML
|
64767
|
+
[1m[36mActionSmser::DeliveryReport Load (0.1ms)[0m [1mSELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" ORDER BY created_at DESC LIMIT 20 OFFSET 0[0m
|
64768
|
+
Completed 200 OK in 3ms (Views: 2.9ms | ActiveRecord: 0.1ms)
|
64769
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
64770
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
64771
|
+
------------------------------------------------------------------------------
|
64772
|
+
ActionSmser::NexmoTest: test_delivery_path_should_have_unicode_set_when_needed
|
64773
|
+
------------------------------------------------------------------------------
|
64774
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
64775
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
64776
|
+
--------------------------------------------------------------------
|
64777
|
+
ActionSmser::NexmoTest: test_gateway_process_delivery_report(params)
|
64778
|
+
--------------------------------------------------------------------
|
64779
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
64780
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
64781
|
+
------------------------------------------------------
|
64782
|
+
ActionSmser::NexmoTest: test_should_be_able_to_deliver
|
64783
|
+
------------------------------------------------------
|
64784
|
+
ActionSmser: Sending sms - Delivery_method: nexmo - Sms: (Sms ActionSmser::NexmoTest::MockSms.basic_sms - From: "555666", To: ["555123555", "123555123"], Body: "Body with ääkköset end", Valid: true)
|
64785
|
+
ActionSmser: Nexmo delivery http ||| /sms/json?username=user&password=pass&ttl=86400000&status-report-req=false&from=555666&to=555123555&text=Body+with+%C3%A4%C3%A4kk%C3%B6set+end ||| #<Mock:0x52b1a60>
|
64786
|
+
ActionSmser: {"message-count":"1","messages":[{"message-price":"0.02500000","status":"0","message-id":"0778DE88","remaining-balance":"1.77500000"}]}
|
64787
|
+
ActionSmser: Nexmo delivery http ||| /sms/json?username=user&password=pass&ttl=86400000&status-report-req=false&from=555666&to=123555123&text=Body+with+%C3%A4%C3%A4kk%C3%B6set+end ||| #<Mock:0x52b1a60>
|
64788
|
+
ActionSmser: {"message-count":"1","messages":[{"message-price":"0.02500000","status":"0","message-id":"0778DE88","remaining-balance":"1.77500000"}]}
|
64789
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
64790
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
64791
|
+
---------------------------------------------------------
|
64792
|
+
ActionSmser::NexmoTest: test_with_saving_delivery_reports
|
64793
|
+
---------------------------------------------------------
|
64794
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "action_smser_delivery_reports"
|
64795
|
+
ActionSmser: Sending sms - Delivery_method: nexmo - Sms: (Sms ActionSmser::NexmoTest::MockSms.basic_sms - From: "555666", To: ["555123555", "123555123"], Body: "Body with ääkköset end", Valid: true)
|
64796
|
+
ActionSmser: Nexmo delivery http ||| /sms/json?username=user&password=pass&ttl=86400000&status-report-req=true&from=555666&to=555123555&text=Body+with+%C3%A4%C3%A4kk%C3%B6set+end ||| #<Mock:0x52c0920>
|
64797
|
+
ActionSmser: {"message-count":"1","messages":[{"message-price":"0.02500000","status":"0","message-id":"0778DE88","remaining-balance":"1.77500000"}]}
|
64798
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
64799
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Body with ääkköset end"], ["created_at", Mon, 13 Jan 2014 13:20:18 UTC +00:00], ["from", "555666"], ["gateway", "nexmo"], ["log", "2014-01-13 15:20:18: LOCAL_SENT\n"], ["msg_id", "0778DE88"], ["sms_type", "ActionSmser::NexmoTest::MockSms.basic_sms"], ["status", "LOCAL_SENT"], ["status_updated_at", Mon, 13 Jan 2014 13:20:18 UTC +00:00], ["to", "555123555"], ["updated_at", Mon, 13 Jan 2014 13:20:18 UTC +00:00]]
|
64800
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
64801
|
+
ActionSmser: Nexmo delivery http ||| /sms/json?username=user&password=pass&ttl=86400000&status-report-req=true&from=555666&to=123555123&text=Body+with+%C3%A4%C3%A4kk%C3%B6set+end ||| #<Mock:0x52c0920>
|
64802
|
+
ActionSmser: {"message-count":"1","messages":[{"message-price":"0.02500000","status":"0","message-id":"0778DE88","remaining-balance":"1.77500000"}]}
|
64803
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
64804
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Body with ääkköset end"], ["created_at", Mon, 13 Jan 2014 13:20:18 UTC +00:00], ["from", "555666"], ["gateway", "nexmo"], ["log", "2014-01-13 15:20:18: LOCAL_SENT\n"], ["msg_id", "0778DE88"], ["sms_type", "ActionSmser::NexmoTest::MockSms.basic_sms"], ["status", "LOCAL_SENT"], ["status_updated_at", Mon, 13 Jan 2014 13:20:18 UTC +00:00], ["to", "123555123"], ["updated_at", Mon, 13 Jan 2014 13:20:18 UTC +00:00]]
|
64805
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
64806
|
+
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "action_smser_delivery_reports"[0m
|
64807
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
64808
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
64809
|
+
-----------------------------------------------------------
|
64810
|
+
ActionSmser::SimpleHttpTest: test_should_be_able_to_deliver
|
64811
|
+
-----------------------------------------------------------
|
64812
|
+
ActionSmser: Sending sms - Delivery_method: simple_http - Sms: (Sms ActionSmser::SimpleHttpTest::MockSms.basic_sms - From: "555666", To: ["555123555", "123555123"], Body: "Body with ääkköset end", Valid: true)
|
64813
|
+
ActionSmser: SimpleHttp delivery ||| /api/sendsms/plain?user=user&password=pass&sender=555666&SMSText=Body+with+%E4%E4kk%F6set+end&GSM=555123555,123555123 ||| #<Mock:0x5317a68>
|
64814
|
+
ActionSmser: id_1234
|
64815
|
+
id_6666
|
64816
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
64817
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
64818
|
+
--------------------------------------------------------------
|
64819
|
+
ActionSmser::SimpleHttpTest: test_with_saving_delivery_reports
|
64820
|
+
--------------------------------------------------------------
|
64821
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "action_smser_delivery_reports"
|
64822
|
+
ActionSmser: Sending sms - Delivery_method: simple_http - Sms: (Sms ActionSmser::SimpleHttpTest::MockSms.basic_sms - From: "555666", To: ["555123555", "123555123"], Body: "Body with ääkköset end", Valid: true)
|
64823
|
+
ActionSmser: SimpleHttp delivery ||| /api/sendsms/plain?user=user&password=pass&sender=555666&SMSText=Body+with+%E4%E4kk%F6set+end&GSM=555123555,123555123 ||| #<Mock:0x5326130>
|
64824
|
+
ActionSmser: id_1234
|
64825
|
+
id_6666
|
64826
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
64827
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Body with ääkköset end"], ["created_at", Mon, 13 Jan 2014 13:20:18 UTC +00:00], ["from", "555666"], ["gateway", "simple_http"], ["log", "2014-01-13 15:20:18: LOCAL_SENT\n"], ["msg_id", "id_1234"], ["sms_type", "ActionSmser::SimpleHttpTest::MockSms.basic_sms"], ["status", "LOCAL_SENT"], ["status_updated_at", Mon, 13 Jan 2014 13:20:18 UTC +00:00], ["to", "555123555"], ["updated_at", Mon, 13 Jan 2014 13:20:18 UTC +00:00]]
|
64828
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
64829
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
64830
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Body with ääkköset end"], ["created_at", Mon, 13 Jan 2014 13:20:18 UTC +00:00], ["from", "555666"], ["gateway", "simple_http"], ["log", "2014-01-13 15:20:18: LOCAL_SENT\n"], ["msg_id", "id_6666"], ["sms_type", "ActionSmser::SimpleHttpTest::MockSms.basic_sms"], ["status", "LOCAL_SENT"], ["status_updated_at", Mon, 13 Jan 2014 13:20:18 UTC +00:00], ["to", "123555123"], ["updated_at", Mon, 13 Jan 2014 13:20:18 UTC +00:00]]
|
64831
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
64832
|
+
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "action_smser_delivery_reports"[0m
|
64833
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
64834
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
64835
|
+
---------------------------------------------------------
|
64836
|
+
ActionSmser::SmstradeTest: test_should_be_able_to_deliver
|
64837
|
+
---------------------------------------------------------
|
64838
|
+
ActionSmser: Sending sms - Delivery_method: smstrade - Sms: (Sms ActionSmser::SmstradeTest::MockSms.basic_sms - From: "4917212341234", To: ["4915112341234", "4917812341234"], Body: "Body with ümläüts.", Valid: true)
|
64839
|
+
ActionSmser: Smstrade delivery http ||| /?key=api-key-here&from=4917212341234&to=4915112341234&message=Body+with+%C3%BCml%C3%A4%C3%BCts.&route=gold&debug=1&cost=1&message_id=1&count=1&charset=utf-8 ||| #<Mock:0x542c980>
|
64840
|
+
ActionSmser: 100
|
64841
|
+
123456789
|
64842
|
+
0.064
|
64843
|
+
1
|
64844
|
+
ActionSmser: Smstrade delivery http ||| /?key=api-key-here&from=4917212341234&to=4917812341234&message=Body+with+%C3%BCml%C3%A4%C3%BCts.&route=gold&debug=1&cost=1&message_id=1&count=1&charset=utf-8 ||| #<Mock:0x542c980>
|
64845
|
+
ActionSmser: 100
|
64846
|
+
123456789
|
64847
|
+
0.064
|
64848
|
+
1
|
64849
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
64850
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
64851
|
+
------------------------------------------------------------
|
64852
|
+
ActionSmser::SmstradeTest: test_with_saving_delivery_reports
|
64853
|
+
------------------------------------------------------------
|
64854
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "action_smser_delivery_reports"
|
64855
|
+
ActionSmser: Sending sms - Delivery_method: smstrade - Sms: (Sms ActionSmser::SmstradeTest::MockSms.basic_sms - From: "4917212341234", To: ["4915112341234", "4917812341234"], Body: "Body with ümläüts.", Valid: true)
|
64856
|
+
ActionSmser: Smstrade delivery http ||| /?key=api-key-here&from=4917212341234&to=4915112341234&message=Body+with+%C3%BCml%C3%A4%C3%BCts.&route=gold&debug=1&cost=1&message_id=1&count=1&charset=utf-8 ||| #<Mock:0x5444260>
|
64857
|
+
ActionSmser: 100
|
64858
|
+
123456789
|
64859
|
+
0.064
|
64860
|
+
1
|
64861
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
64862
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Body with ümläüts."], ["created_at", Mon, 13 Jan 2014 13:20:18 UTC +00:00], ["from", "4917212341234"], ["gateway", "smstrade"], ["log", "2014-01-13 15:20:18: LOCAL_SENT\n"], ["msg_id", "123456789"], ["sms_type", "ActionSmser::SmstradeTest::MockSms.basic_sms"], ["status", "LOCAL_SENT"], ["status_updated_at", Mon, 13 Jan 2014 13:20:18 UTC +00:00], ["to", "4915112341234"], ["updated_at", Mon, 13 Jan 2014 13:20:18 UTC +00:00]]
|
64863
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
64864
|
+
ActionSmser: Smstrade delivery http ||| /?key=api-key-here&from=4917212341234&to=4917812341234&message=Body+with+%C3%BCml%C3%A4%C3%BCts.&route=gold&debug=1&cost=1&message_id=1&count=1&charset=utf-8 ||| #<Mock:0x5444260>
|
64865
|
+
ActionSmser: 100
|
64866
|
+
123456789
|
64867
|
+
0.064
|
64868
|
+
1
|
64869
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
64870
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Body with ümläüts."], ["created_at", Mon, 13 Jan 2014 13:20:18 UTC +00:00], ["from", "4917212341234"], ["gateway", "smstrade"], ["log", "2014-01-13 15:20:18: LOCAL_SENT\n"], ["msg_id", "123456789"], ["sms_type", "ActionSmser::SmstradeTest::MockSms.basic_sms"], ["status", "LOCAL_SENT"], ["status_updated_at", Mon, 13 Jan 2014 13:20:18 UTC +00:00], ["to", "4917812341234"], ["updated_at", Mon, 13 Jan 2014 13:20:18 UTC +00:00]]
|
64871
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
64872
|
+
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "action_smser_delivery_reports"[0m
|
64873
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
64874
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
64875
|
+
--------------------------------------------------------
|
64876
|
+
ActionSmser::TestArrayTest: test_should_add_to_TestArray
|
64877
|
+
--------------------------------------------------------
|
64878
|
+
ActionSmser: Sending sms - Delivery_method: test_array - Sms: (Sms ActionSmser::TestArrayTest::MockSms.basic_sms - From: "555666", To: ["555123555", "123555123"], Body: "Body with ääkköset end", Valid: true)
|
64879
|
+
ActionSmser: ActionSmser::DeliveryMethods::TestArray.deliveries added message, no real delivery.
|
64880
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
64881
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
64882
|
+
----------------------------------------------------------
|
64883
|
+
ActionSmser::TestArrayTest: test_should_be_able_to_deliver
|
64884
|
+
----------------------------------------------------------
|
64885
|
+
ActionSmser: Sending sms - Delivery_method: test_array - Sms: (Sms ActionSmser::TestArrayTest::MockSms.basic_sms - From: "555666", To: ["555123555", "123555123"], Body: "Body with ääkköset end", Valid: true)
|
64886
|
+
ActionSmser: ActionSmser::DeliveryMethods::TestArray.deliveries added message, no real delivery.
|
64887
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
64888
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
64889
|
+
-------------------------------------------------------------
|
64890
|
+
ActionSmser::TestArrayTest: test_with_saving_delivery_reports
|
64891
|
+
-------------------------------------------------------------
|
64892
|
+
ActionSmser: Sending sms - Delivery_method: test_array - Sms: (Sms ActionSmser::TestArrayTest::MockSms.basic_sms - From: "555666", To: ["555123555", "123555123"], Body: "Body with ääkköset end", Valid: true)
|
64893
|
+
ActionSmser: ActionSmser::DeliveryMethods::TestArray.deliveries added message, no real delivery.
|
64894
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "action_smser_delivery_reports"
|
64895
|
+
ActionSmser: Sending sms - Delivery_method: test_array - Sms: (Sms ActionSmser::TestArrayTest::MockSms.basic_sms - From: "555666", To: ["555123555", "123555123"], Body: "Body with ääkköset end", Valid: true)
|
64896
|
+
ActionSmser: ActionSmser::DeliveryMethods::TestArray.deliveries added message, no real delivery.
|
64897
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
64898
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Body with ääkköset end"], ["created_at", Mon, 13 Jan 2014 13:20:18 UTC +00:00], ["from", "555666"], ["gateway", "test_array"], ["log", "2014-01-13 15:20:18: LOCAL_SENT\n"], ["msg_id", "test_array_id_37610505"], ["sms_type", "ActionSmser::TestArrayTest::MockSms.basic_sms"], ["status", "LOCAL_SENT"], ["status_updated_at", Mon, 13 Jan 2014 13:20:18 UTC +00:00], ["to", "555123555"], ["updated_at", Mon, 13 Jan 2014 13:20:18 UTC +00:00]]
|
64899
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
64900
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
64901
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Body with ääkköset end"], ["created_at", Mon, 13 Jan 2014 13:20:18 UTC +00:00], ["from", "555666"], ["gateway", "test_array"], ["log", "2014-01-13 15:20:18: LOCAL_SENT\n"], ["msg_id", "test_array_id_60348596"], ["sms_type", "ActionSmser::TestArrayTest::MockSms.basic_sms"], ["status", "LOCAL_SENT"], ["status_updated_at", Mon, 13 Jan 2014 13:20:18 UTC +00:00], ["to", "123555123"], ["updated_at", Mon, 13 Jan 2014 13:20:18 UTC +00:00]]
|
64902
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
64903
|
+
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "action_smser_delivery_reports"[0m
|
64904
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
64905
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
64906
|
+
---------------------------
|
64907
|
+
ActionSmserTest: test_truth
|
64908
|
+
---------------------------
|
64909
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
64910
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
64911
|
+
---------------------------------------------------------
|
64912
|
+
NavigationTest: test_basic_gateway_commit_delivery_report
|
64913
|
+
---------------------------------------------------------
|
64914
|
+
Started GET "/action_smser/delivery_reports/gateway_commit/example_gateway" for 127.0.0.1 at 2014-01-13 15:20:18 +0200
|
64915
|
+
Processing by ActionSmser::DeliveryReportsController#gateway_commit as HTML
|
64916
|
+
Parameters: {"gateway"=>"example_gateway"}
|
64917
|
+
Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
|
64918
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
64919
|
+
[1m[36m (0.2ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [0m
|
64920
|
+
[1m[35m (0.1ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
64921
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
64922
|
+
Migrating to CreateActionSmserDeliveryReports (20120102215215)
|
64923
|
+
[1m[35m (0.0ms)[0m begin transaction
|
64924
|
+
[1m[36m (0.2ms)[0m [1mCREATE TABLE "action_smser_delivery_reports" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "msg_id" varchar(255), "status" varchar(255), "status_updated_at" datetime, "sms_type" varchar(255), "log" text, "to" varchar(255), "from" varchar(255), "body" varchar(255), "gateway" varchar(255), "re_delivery_of_delivery_report_id" integer, "re_delivered" boolean, "created_at" datetime, "updated_at" datetime) [0m
|
64925
|
+
[1m[35m (0.1ms)[0m CREATE INDEX "index_action_smser_delivery_reports_on_msg_id" ON "action_smser_delivery_reports" ("msg_id")
|
64926
|
+
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20120102215215"]]
|
64927
|
+
[1m[35m (0.0ms)[0m commit transaction
|
64928
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
64929
|
+
---------------------------------------------------------------------------
|
64930
|
+
ActionSmser::BaseTest: test_after_delivery_should_be_called_if_it's_present
|
64931
|
+
---------------------------------------------------------------------------
|
64932
|
+
ActionSmser: Sending sms - Delivery_method: test_array - Sms: (Sms ActionSmser::BaseTest::MockSms.basic_sms - From: "555666", To: ["555123555", "123", "+358123555123"], Body: "Body with ääkköset end", Valid: true)
|
64933
|
+
ActionSmser: ActionSmser::DeliveryMethods::TestArray.deliveries added message, no real delivery.
|
64934
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
64935
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
64936
|
+
----------------------------------------------------------------------------
|
64937
|
+
ActionSmser::BaseTest: test_before_delivery_should_be_called_if_it's_present
|
64938
|
+
----------------------------------------------------------------------------
|
64939
|
+
ActionSmser: Sending sms - Delivery_method: test_array - Sms: (Sms ActionSmser::BaseTest::MockSms.basic_sms - From: "555666", To: ["555123555", "123", "+358123555123"], Body: "Body with ääkköset end", Valid: true)
|
64940
|
+
ActionSmser: ActionSmser::DeliveryMethods::TestArray.deliveries added message, no real delivery.
|
64941
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
64942
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
64943
|
+
--------------------------------------------------------------------------------------------
|
64944
|
+
ActionSmser::BaseTest: test_body_should_be_cropped_to_500_chars,_limit_extra_looong_messages
|
64945
|
+
--------------------------------------------------------------------------------------------
|
64946
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
64947
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
64948
|
+
-------------------------------------------------------------
|
64949
|
+
ActionSmser::BaseTest: test_body_should_be_possible_to_encode
|
64950
|
+
-------------------------------------------------------------
|
64951
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
64952
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
64953
|
+
----------------------------------------------------------------------
|
64954
|
+
ActionSmser::BaseTest: test_from_encoded_should_remove_leading_+_and_0
|
64955
|
+
----------------------------------------------------------------------
|
64956
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
64957
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
64958
|
+
--------------------------------------------------------------------------------------------------------
|
64959
|
+
ActionSmser::BaseTest: test_message_real_crop_should_return_cropped_message_with_sms_chars_taken_account
|
64960
|
+
--------------------------------------------------------------------------------------------------------
|
64961
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
64962
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
64963
|
+
-----------------------------------------------------------------------------
|
64964
|
+
ActionSmser::BaseTest: test_message_real_length_should_return_real_sms_lenght
|
64965
|
+
-----------------------------------------------------------------------------
|
64966
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
64967
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
64968
|
+
----------------------------------------------------------------
|
64969
|
+
ActionSmser::BaseTest: test_receivers_should_be_joined_by_commas
|
64970
|
+
----------------------------------------------------------------
|
64971
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
64972
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
64973
|
+
--------------------------------------------------------
|
64974
|
+
ActionSmser::BaseTest: test_should_be_able_to_change_ttl
|
64975
|
+
--------------------------------------------------------
|
64976
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
64977
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
64978
|
+
--------------------------------------------------------------
|
64979
|
+
ActionSmser::BaseTest: test_should_be_ok_with_single_receivers
|
64980
|
+
--------------------------------------------------------------
|
64981
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
64982
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
64983
|
+
-----------------------------------------------
|
64984
|
+
ActionSmser::BaseTest: test_should_be_valid_sms
|
64985
|
+
-----------------------------------------------
|
64986
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
64987
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
64988
|
+
-------------------------------------------------------------------------------------
|
64989
|
+
ActionSmser::BaseTest: test_should_have_copied_the_delivery_options_when_initializing
|
64990
|
+
-------------------------------------------------------------------------------------
|
64991
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
64992
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
64993
|
+
------------------------------------------------------
|
64994
|
+
ActionSmser::BaseTest: test_should_have_saved_sms_type
|
64995
|
+
------------------------------------------------------
|
64996
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
64997
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
64998
|
+
---------------------------------------------------------------------
|
64999
|
+
ActionSmser::BaseTest: test_should_have_test_array_as_delivery_method
|
65000
|
+
---------------------------------------------------------------------
|
65001
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
65002
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
65003
|
+
----------------------------------------------------------------
|
65004
|
+
ActionSmser::BaseTest: test_should_not_be_valid_if_no_recipients
|
65005
|
+
----------------------------------------------------------------
|
65006
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
65007
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
65008
|
+
-------------------------------------------------------------
|
65009
|
+
ActionSmser::BaseTest: test_ttl_should_be_24_hours_by_default
|
65010
|
+
-------------------------------------------------------------
|
65011
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
65012
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
65013
|
+
----------------------------------------------------------------------------------------------
|
65014
|
+
ActionSmser::DelayedJobTest: test_should_be_able_to_deliver_and_call_enqueue_for_all_receivers
|
65015
|
+
----------------------------------------------------------------------------------------------
|
65016
|
+
ActionSmser: Sending sms - Delivery_method: delayed_job - Sms: (Sms ActionSmser::DelayedJobTest::MockSms.basic_sms - From: "555666", To: ["555123555", "123555123"], Body: "Body with ääkköset end", Valid: true)
|
65017
|
+
ActionSmser: Delivering sms by delayed_job
|
65018
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
65019
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
65020
|
+
-------------------------------------------------------------
|
65021
|
+
ActionSmser::DelayedJobTest: test_test_that_serializing_is_ok
|
65022
|
+
-------------------------------------------------------------
|
65023
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
65024
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
65025
|
+
-------------------------------------------------------------------
|
65026
|
+
ActionSmser::DeliveryReportTest: test_build_DeliveryReport_from_sms
|
65027
|
+
-------------------------------------------------------------------
|
65028
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
65029
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
65030
|
+
------------------------------------------------------
|
65031
|
+
ActionSmser::DeliveryReportTest: test_create_from_save
|
65032
|
+
------------------------------------------------------
|
65033
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "action_smser_delivery_reports"
|
65034
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
65035
|
+
[1m[35mSQL (2.6ms)[0m INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Body with ääkköset end"], ["created_at", Mon, 13 Jan 2014 13:20:59 UTC +00:00], ["from", "555666"], ["gateway", "test_array"], ["log", "2014-01-13 15:20:59: LOCAL_SENT\n"], ["msg_id", "msg_id_a"], ["sms_type", "ActionSmser::DeliveryReportTest::MockSms.basic_sms"], ["status", "LOCAL_SENT"], ["status_updated_at", Mon, 13 Jan 2014 13:20:59 UTC +00:00], ["to", "123"], ["updated_at", Mon, 13 Jan 2014 13:20:59 UTC +00:00]]
|
65036
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
65037
|
+
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "action_smser_delivery_reports"
|
65038
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
65039
|
+
[1m[35m (0.0ms)[0m begin transaction
|
65040
|
+
-----------------------------------------------------------------
|
65041
|
+
ActionSmser::DeliveryReportTest: test_re_deliver_with_simple_http
|
65042
|
+
-----------------------------------------------------------------
|
65043
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
65044
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Body with ääkköset end"], ["created_at", Mon, 13 Jan 2014 13:20:59 UTC +00:00], ["from", "555666"], ["gateway", "test_array"], ["log", "2014-01-13 15:20:59: LOCAL_SENT\n"], ["msg_id", "msg_id_a"], ["sms_type", "ActionSmser::DeliveryReportTest::MockSms.basic_sms"], ["status", "LOCAL_SENT"], ["status_updated_at", Mon, 13 Jan 2014 13:20:59 UTC +00:00], ["to", "123"], ["updated_at", Mon, 13 Jan 2014 13:20:59 UTC +00:00]]
|
65045
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
65046
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
65047
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "action_smser_delivery_reports" SET "gateway" = ?, "updated_at" = ? WHERE "action_smser_delivery_reports"."id" = 1[0m [["gateway", "some_delivery"], ["updated_at", Mon, 13 Jan 2014 13:20:59 UTC +00:00]]
|
65048
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
65049
|
+
[1m[36mActionSmser::DeliveryReport Load (0.1ms)[0m [1mSELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."id" = ? LIMIT 1[0m [["id", 1]]
|
65050
|
+
ActionSmser: Re_delivering: #<ActionSmser::DeliveryReport id: 1, msg_id: "msg_id_a", status: "LOCAL_SENT", status_updated_at: "2014-01-13 13:20:59", sms_type: "ActionSmser::DeliveryReportTest::MockSms.basic_sms", log: "2014-01-13 15:20:59: LOCAL_SENT\n", to: "123", from: "555666", body: "Body with ääkköset end", gateway: "some_delivery", re_delivery_of_delivery_report_id: nil, re_delivered: nil, created_at: "2014-01-13 13:20:59", updated_at: "2014-01-13 13:20:59">
|
65051
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
65052
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "action_smser_delivery_reports" SET "re_delivered" = ?, "updated_at" = ? WHERE "action_smser_delivery_reports"."id" = 1[0m [["re_delivered", true], ["updated_at", Mon, 13 Jan 2014 13:20:59 UTC +00:00]]
|
65053
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
65054
|
+
[1m[36mActionSmser::DeliveryReport Load (0.0ms)[0m [1mSELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."id" = ? LIMIT 1[0m [["id", 1]]
|
65055
|
+
ActionSmser: Sending sms - Delivery_method: test_array - Sms: (Sms ActionSmser::DeliveryReportTest::MockSms.basic_sms.re_delivery - From: "555666", To: "123", Body: "Body with ääkköset end", Valid: true)
|
65056
|
+
ActionSmser: ActionSmser::DeliveryMethods::TestArray.deliveries added message, no real delivery.
|
65057
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
65058
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "re_delivery_of_delivery_report_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Body with ääkköset end"], ["created_at", Mon, 13 Jan 2014 13:20:59 UTC +00:00], ["from", "555666"], ["gateway", "test_array"], ["log", "2014-01-13 15:20:59: LOCAL_SENT\n"], ["msg_id", "test_array_id_71240292"], ["re_delivery_of_delivery_report_id", 1], ["sms_type", "ActionSmser::DeliveryReportTest::MockSms.basic_sms.re_delivery"], ["status", "LOCAL_SENT"], ["status_updated_at", Mon, 13 Jan 2014 13:20:59 UTC +00:00], ["to", "123"], ["updated_at", Mon, 13 Jan 2014 13:20:59 UTC +00:00]]
|
65059
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
65060
|
+
[1m[36mActionSmser::DeliveryReport Load (0.1ms)[0m [1mSELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" ORDER BY "action_smser_delivery_reports"."id" DESC LIMIT 1[0m
|
65061
|
+
[1m[35mActionSmser::DeliveryReport Load (0.2ms)[0m SELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."re_delivery_of_delivery_report_id" = ? ORDER BY "action_smser_delivery_reports"."id" ASC LIMIT 1 [["re_delivery_of_delivery_report_id", 1]]
|
65062
|
+
[1m[36mActionSmser::DeliveryReport Load (0.2ms)[0m [1mSELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."id" = ? ORDER BY "action_smser_delivery_reports"."id" ASC LIMIT 1[0m [["id", 1]]
|
65063
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
65064
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
65065
|
+
--------------------------------------------
|
65066
|
+
ActionSmser::DeliveryReportTest: test_to_sms
|
65067
|
+
--------------------------------------------
|
65068
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
65069
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Body with ääkköset end"], ["created_at", Mon, 13 Jan 2014 13:21:00 UTC +00:00], ["from", "555666"], ["gateway", "test_array"], ["log", "2014-01-13 15:21:00: LOCAL_SENT\n"], ["msg_id", "msg_id_a"], ["sms_type", "ActionSmser::DeliveryReportTest::MockSms.basic_sms"], ["status", "LOCAL_SENT"], ["status_updated_at", Mon, 13 Jan 2014 13:21:00 UTC +00:00], ["to", "123"], ["updated_at", Mon, 13 Jan 2014 13:21:00 UTC +00:00]]
|
65070
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
65071
|
+
[1m[36mActionSmser::DeliveryReport Load (0.0ms)[0m [1mSELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."id" = ? LIMIT 1[0m [["id", 1]]
|
65072
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
65073
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
65074
|
+
-----------------------------------------------------
|
65075
|
+
ActionSmser::DeliveryReportTest: test_updating_status
|
65076
|
+
-----------------------------------------------------
|
65077
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
65078
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "action_smser_delivery_reports" ("created_at", "log", "status", "status_updated_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["created_at", Mon, 13 Jan 2014 13:21:00 UTC +00:00], ["log", "2014-01-13 15:21:00: LOCAL_TEST\n"], ["status", "LOCAL_TEST"], ["status_updated_at", Mon, 13 Jan 2014 13:21:00 UTC +00:00], ["updated_at", Mon, 13 Jan 2014 13:21:00 UTC +00:00]]
|
65079
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
65080
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
65081
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "action_smser_delivery_reports" SET "status" = ?, "status_updated_at" = ?, "log" = ?, "updated_at" = ? WHERE "action_smser_delivery_reports"."id" = 1 [["status", "TEST_2"], ["status_updated_at", Mon, 13 Jan 2014 13:21:00 UTC +00:00], ["log", "2014-01-13 15:21:00: LOCAL_TEST\n2014-01-13 15:21:00: TEST_2\n"], ["updated_at", Mon, 13 Jan 2014 13:21:00 UTC +00:00]]
|
65082
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
65083
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
65084
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
65085
|
+
--------------------------------------------------------------------------------
|
65086
|
+
ActionSmser::DeliveryReportsControllerTest: test_gateway_commit_with_existing_dr
|
65087
|
+
--------------------------------------------------------------------------------
|
65088
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
65089
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "action_smser_delivery_reports" ("created_at", "log", "msg_id", "status", "status_updated_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 13 Jan 2014 13:21:00 UTC +00:00], ["log", "2014-01-13 15:21:00: ORIGINAL_STATUS\n"], ["msg_id", "102010314204056202"], ["status", "ORIGINAL_STATUS"], ["status_updated_at", Mon, 13 Jan 2014 13:21:00 UTC +00:00], ["updated_at", Mon, 13 Jan 2014 13:21:00 UTC +00:00]]
|
65090
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
65091
|
+
Processing by ActionSmser::DeliveryReportsController#gateway_commit as HTML
|
65092
|
+
Parameters: {"gateway"=>"test_gateway", "DeliveryReport"=>{"message"=>{"id"=>"102010314204056202", "donedate"=>"2012/01/03 14:20:45", "sentdate"=>"2012/01/03 14:20:40", "status"=>"DELIVERED"}}}
|
65093
|
+
ActionSmser: Gateway_commit found parser for gateway: test_gateway
|
65094
|
+
[1m[36mActionSmser::DeliveryReport Load (0.1ms)[0m [1mSELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."msg_id" = '102010314204056202' ORDER BY "action_smser_delivery_reports"."id" ASC LIMIT 1[0m
|
65095
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
65096
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "action_smser_delivery_reports" SET "status" = ?, "status_updated_at" = ?, "log" = ?, "updated_at" = ? WHERE "action_smser_delivery_reports"."id" = 1[0m [["status", "DELIVERED"], ["status_updated_at", Mon, 13 Jan 2014 13:21:00 UTC +00:00], ["log", "2014-01-13 15:21:00: ORIGINAL_STATUS\n2014-01-13 15:21:00: DELIVERED\n"], ["updated_at", Mon, 13 Jan 2014 13:21:00 UTC +00:00]]
|
65097
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
65098
|
+
ActionSmser: Gateway_commit updated item with id: 102010314204056202, params: {"msg_id"=>"102010314204056202", "status"=>"DELIVERED"}
|
65099
|
+
Rendered text template (0.0ms)
|
65100
|
+
Completed 200 OK in 3ms (Views: 0.4ms | ActiveRecord: 0.4ms)
|
65101
|
+
[1m[36mActionSmser::DeliveryReport Load (0.1ms)[0m [1mSELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."id" = ? LIMIT 1[0m [["id", 1]]
|
65102
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
65103
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
65104
|
+
-------------------------------------------------------------------------------------
|
65105
|
+
ActionSmser::DeliveryReportsControllerTest: test_gateway_commit_with_multiple_records
|
65106
|
+
-------------------------------------------------------------------------------------
|
65107
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
65108
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "action_smser_delivery_reports" ("created_at", "log", "msg_id", "status", "status_updated_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 13 Jan 2014 13:21:00 UTC +00:00], ["log", "2014-01-13 15:21:00: ORIGINAL_STATUS\n"], ["msg_id", "102010314204056202"], ["status", "ORIGINAL_STATUS"], ["status_updated_at", Mon, 13 Jan 2014 13:21:00 UTC +00:00], ["updated_at", Mon, 13 Jan 2014 13:21:00 UTC +00:00]]
|
65109
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
65110
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
65111
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "action_smser_delivery_reports" ("created_at", "log", "msg_id", "status", "status_updated_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 13 Jan 2014 13:21:00 UTC +00:00], ["log", "2014-01-13 15:21:00: ORIGINAL_STATUS\n"], ["msg_id", "99999999999999999"], ["status", "ORIGINAL_STATUS"], ["status_updated_at", Mon, 13 Jan 2014 13:21:00 UTC +00:00], ["updated_at", Mon, 13 Jan 2014 13:21:00 UTC +00:00]]
|
65112
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
65113
|
+
Processing by ActionSmser::DeliveryReportsController#gateway_commit as HTML
|
65114
|
+
Parameters: {"gateway"=>"test_gateway", "DeliveryReport"=>{"message"=>[{"id"=>"102010314204056202", "status"=>"DELIVERED"}, {"id"=>"99999999999999999", "status"=>"DELIVERED"}]}}
|
65115
|
+
ActionSmser: Gateway_commit found parser for gateway: test_gateway
|
65116
|
+
[1m[35mActionSmser::DeliveryReport Load (0.1ms)[0m SELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."msg_id" = '102010314204056202' ORDER BY "action_smser_delivery_reports"."id" ASC LIMIT 1
|
65117
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
65118
|
+
[1m[35mSQL (0.2ms)[0m UPDATE "action_smser_delivery_reports" SET "status" = ?, "status_updated_at" = ?, "log" = ?, "updated_at" = ? WHERE "action_smser_delivery_reports"."id" = 1 [["status", "DELIVERED"], ["status_updated_at", Mon, 13 Jan 2014 13:21:00 UTC +00:00], ["log", "2014-01-13 15:21:00: ORIGINAL_STATUS\n2014-01-13 15:21:00: DELIVERED\n"], ["updated_at", Mon, 13 Jan 2014 13:21:00 UTC +00:00]]
|
65119
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
65120
|
+
ActionSmser: Gateway_commit updated item with id: 102010314204056202, params: {"msg_id"=>"102010314204056202", "status"=>"DELIVERED"}
|
65121
|
+
[1m[35mActionSmser::DeliveryReport Load (0.1ms)[0m SELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."msg_id" = '99999999999999999' ORDER BY "action_smser_delivery_reports"."id" ASC LIMIT 1
|
65122
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
65123
|
+
[1m[35mSQL (0.2ms)[0m UPDATE "action_smser_delivery_reports" SET "status" = ?, "status_updated_at" = ?, "log" = ?, "updated_at" = ? WHERE "action_smser_delivery_reports"."id" = 2 [["status", "DELIVERED"], ["status_updated_at", Mon, 13 Jan 2014 13:21:00 UTC +00:00], ["log", "2014-01-13 15:21:00: ORIGINAL_STATUS\n2014-01-13 15:21:00: DELIVERED\n"], ["updated_at", Mon, 13 Jan 2014 13:21:00 UTC +00:00]]
|
65124
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
65125
|
+
ActionSmser: Gateway_commit updated item with id: 99999999999999999, params: {"msg_id"=>"99999999999999999", "status"=>"DELIVERED"}
|
65126
|
+
Completed 200 OK in 4ms (Views: 0.3ms | ActiveRecord: 0.8ms)
|
65127
|
+
[1m[35mActionSmser::DeliveryReport Load (0.0ms)[0m SELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."id" = ? LIMIT 1 [["id", 1]]
|
65128
|
+
[1m[36mActionSmser::DeliveryReport Load (0.0ms)[0m [1mSELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."id" = ? LIMIT 1[0m [["id", 2]]
|
65129
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
65130
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
65131
|
+
----------------------------------------------------------------------------------
|
65132
|
+
ActionSmser::DeliveryReportsControllerTest: test_gateway_commit_without_any_parser
|
65133
|
+
----------------------------------------------------------------------------------
|
65134
|
+
Processing by ActionSmser::DeliveryReportsController#gateway_commit as HTML
|
65135
|
+
Parameters: {"gateway"=>"gateway_not_found", "DeliveryReport"=>{"message"=>{"id"=>"wrongid", "donedate"=>"2012/01/03 14:20:45", "sentdate"=>"2012/01/03 14:20:40", "status"=>"DELIVERED"}}}
|
65136
|
+
Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
|
65137
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
65138
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
65139
|
+
--------------------------------------------------------------------------
|
65140
|
+
ActionSmser::DeliveryReportsControllerTest: test_gateway_commit_without_dr
|
65141
|
+
--------------------------------------------------------------------------
|
65142
|
+
Processing by ActionSmser::DeliveryReportsController#gateway_commit as HTML
|
65143
|
+
Parameters: {"gateway"=>"test_gateway", "DeliveryReport"=>{"message"=>{"id"=>"wrongid", "donedate"=>"2012/01/03 14:20:45", "sentdate"=>"2012/01/03 14:20:40", "status"=>"DELIVERED"}}}
|
65144
|
+
ActionSmser: Gateway_commit found parser for gateway: test_gateway
|
65145
|
+
[1m[35mActionSmser::DeliveryReport Load (0.1ms)[0m SELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."msg_id" = 'wrongid' ORDER BY "action_smser_delivery_reports"."id" ASC LIMIT 1
|
65146
|
+
ActionSmser: Gateway_commit not found item with id: wrongid, params: {"msg_id"=>"wrongid", "status"=>"DELIVERED"}
|
65147
|
+
Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
|
65148
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
65149
|
+
[1m[35m (0.0ms)[0m begin transaction
|
65150
|
+
-----------------------------------------------------------------------------------------------------
|
65151
|
+
ActionSmser::DeliveryReportsControllerTest: test_index_with_admin_access_lambda_with_right_login_info
|
65152
|
+
-----------------------------------------------------------------------------------------------------
|
65153
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
65154
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "action_smser_delivery_reports" ("created_at", "msg_id", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 13 Jan 2014 13:21:00 UTC +00:00], ["msg_id", "idtest_5"], ["updated_at", Mon, 13 Jan 2014 13:21:00 UTC +00:00]]
|
65155
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
65156
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
65157
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "action_smser_delivery_reports" ("created_at", "msg_id", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 13 Jan 2014 13:21:00 UTC +00:00], ["msg_id", "idtest_6"], ["updated_at", Mon, 13 Jan 2014 13:21:00 UTC +00:00]]
|
65158
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
65159
|
+
Processing by ActionSmser::DeliveryReportsController#index as HTML
|
65160
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2014-01-06 13:21:00.047328' AND '2014-01-13 13:11:00.047438')[0m
|
65161
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) AS count_all, gateway AS gateway FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2014-01-06 13:21:00.047328' AND '2014-01-13 13:11:00.047438') GROUP BY gateway
|
65162
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2014-01-06 13:21:00.047328' AND '2014-01-13 13:11:00.047438')[0m
|
65163
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) AS count_all, status AS status FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2014-01-06 13:21:00.047328' AND '2014-01-13 13:11:00.047438') GROUP BY status
|
65164
|
+
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2014-01-06 13:21:00.047328' AND '2014-01-13 13:11:00.047438')[0m
|
65165
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) AS count_all, sms_type AS sms_type FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2014-01-06 13:21:00.047328' AND '2014-01-13 13:11:00.047438') GROUP BY sms_type
|
65166
|
+
Completed 200 OK in 10ms (Views: 9.0ms | ActiveRecord: 0.4ms)
|
65167
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
65168
|
+
[1m[35m (0.0ms)[0m begin transaction
|
65169
|
+
--------------------------------------------------------------------------------
|
65170
|
+
ActionSmser::DeliveryReportsControllerTest: test_index_with_always_enabled_admin
|
65171
|
+
--------------------------------------------------------------------------------
|
65172
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
65173
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "action_smser_delivery_reports" ("created_at", "msg_id", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 13 Jan 2014 13:21:00 UTC +00:00], ["msg_id", "idtest_8"], ["updated_at", Mon, 13 Jan 2014 13:21:00 UTC +00:00]]
|
65174
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
65175
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
65176
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "action_smser_delivery_reports" ("created_at", "msg_id", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 13 Jan 2014 13:21:00 UTC +00:00], ["msg_id", "idtest_8"], ["updated_at", Mon, 13 Jan 2014 13:21:00 UTC +00:00]]
|
65177
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
65178
|
+
Processing by ActionSmser::DeliveryReportsController#index as HTML
|
65179
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2014-01-06 13:21:00.060115' AND '2014-01-13 13:11:00.060228')[0m
|
65180
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) AS count_all, gateway AS gateway FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2014-01-06 13:21:00.060115' AND '2014-01-13 13:11:00.060228') GROUP BY gateway
|
65181
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2014-01-06 13:21:00.060115' AND '2014-01-13 13:11:00.060228')[0m
|
65182
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) AS count_all, status AS status FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2014-01-06 13:21:00.060115' AND '2014-01-13 13:11:00.060228') GROUP BY status
|
65183
|
+
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2014-01-06 13:21:00.060115' AND '2014-01-13 13:11:00.060228')[0m
|
65184
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) AS count_all, sms_type AS sms_type FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2014-01-06 13:21:00.060115' AND '2014-01-13 13:11:00.060228') GROUP BY sms_type
|
65185
|
+
Completed 200 OK in 6ms (Views: 5.2ms | ActiveRecord: 0.4ms)
|
65186
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
65187
|
+
[1m[35m (0.0ms)[0m begin transaction
|
65188
|
+
--------------------------------------------------------------------------------------------------------
|
65189
|
+
ActionSmser::DeliveryReportsControllerTest: test_index_with_forbidden_admin_access_(default_access_mode)
|
65190
|
+
--------------------------------------------------------------------------------------------------------
|
65191
|
+
Processing by ActionSmser::DeliveryReportsController#index as HTML
|
65192
|
+
Filter chain halted as :admin_access_only rendered or redirected
|
65193
|
+
Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
|
65194
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
65195
|
+
[1m[35m (0.0ms)[0m begin transaction
|
65196
|
+
-------------------------------------------------------------------------------
|
65197
|
+
ActionSmser::DeliveryReportsControllerTest: test_list_with_always_enabled_admin
|
65198
|
+
-------------------------------------------------------------------------------
|
65199
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
65200
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "action_smser_delivery_reports" ("created_at", "msg_id", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 13 Jan 2014 13:21:00 UTC +00:00], ["msg_id", "idtest_7"], ["updated_at", Mon, 13 Jan 2014 13:21:00 UTC +00:00]]
|
65201
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
65202
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
65203
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "action_smser_delivery_reports" ("created_at", "msg_id", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 13 Jan 2014 13:21:00 UTC +00:00], ["msg_id", "idtest_2"], ["updated_at", Mon, 13 Jan 2014 13:21:00 UTC +00:00]]
|
65204
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
65205
|
+
Processing by ActionSmser::DeliveryReportsController#list as HTML
|
65206
|
+
[1m[36mActionSmser::DeliveryReport Load (0.2ms)[0m [1mSELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" ORDER BY created_at DESC LIMIT 20 OFFSET 0[0m
|
65207
|
+
Completed 200 OK in 3ms (Views: 2.8ms | ActiveRecord: 0.2ms)
|
65208
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
65209
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
65210
|
+
------------------------------------------------------------------------------
|
65211
|
+
ActionSmser::NexmoTest: test_delivery_path_should_have_unicode_set_when_needed
|
65212
|
+
------------------------------------------------------------------------------
|
65213
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
65214
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
65215
|
+
--------------------------------------------------------------------
|
65216
|
+
ActionSmser::NexmoTest: test_gateway_process_delivery_report(params)
|
65217
|
+
--------------------------------------------------------------------
|
65218
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
65219
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
65220
|
+
------------------------------------------------------
|
65221
|
+
ActionSmser::NexmoTest: test_should_be_able_to_deliver
|
65222
|
+
------------------------------------------------------
|
65223
|
+
ActionSmser: Sending sms - Delivery_method: nexmo - Sms: (Sms ActionSmser::NexmoTest::MockSms.basic_sms - From: "555666", To: ["555123555", "123555123"], Body: "Body with ääkköset end", Valid: true)
|
65224
|
+
ActionSmser: Nexmo delivery http ||| /sms/json?username=user&password=pass&ttl=86400000&status-report-req=false&from=555666&to=555123555&text=Body+with+%C3%A4%C3%A4kk%C3%B6set+end ||| #<Mock:0x36fd300>
|
65225
|
+
ActionSmser: {"message-count":"1","messages":[{"message-price":"0.02500000","status":"0","message-id":"0778DE88","remaining-balance":"1.77500000"}]}
|
65226
|
+
ActionSmser: Nexmo delivery http ||| /sms/json?username=user&password=pass&ttl=86400000&status-report-req=false&from=555666&to=123555123&text=Body+with+%C3%A4%C3%A4kk%C3%B6set+end ||| #<Mock:0x36fd300>
|
65227
|
+
ActionSmser: {"message-count":"1","messages":[{"message-price":"0.02500000","status":"0","message-id":"0778DE88","remaining-balance":"1.77500000"}]}
|
65228
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
65229
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
65230
|
+
---------------------------------------------------------
|
65231
|
+
ActionSmser::NexmoTest: test_with_saving_delivery_reports
|
65232
|
+
---------------------------------------------------------
|
65233
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "action_smser_delivery_reports"
|
65234
|
+
ActionSmser: Sending sms - Delivery_method: nexmo - Sms: (Sms ActionSmser::NexmoTest::MockSms.basic_sms - From: "555666", To: ["555123555", "123555123"], Body: "Body with ääkköset end", Valid: true)
|
65235
|
+
ActionSmser: Nexmo delivery http ||| /sms/json?username=user&password=pass&ttl=86400000&status-report-req=true&from=555666&to=555123555&text=Body+with+%C3%A4%C3%A4kk%C3%B6set+end ||| #<Mock:0x370bf68>
|
65236
|
+
ActionSmser: {"message-count":"1","messages":[{"message-price":"0.02500000","status":"0","message-id":"0778DE88","remaining-balance":"1.77500000"}]}
|
65237
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
65238
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Body with ääkköset end"], ["created_at", Mon, 13 Jan 2014 13:21:00 UTC +00:00], ["from", "555666"], ["gateway", "nexmo"], ["log", "2014-01-13 15:21:00: LOCAL_SENT\n"], ["msg_id", "0778DE88"], ["sms_type", "ActionSmser::NexmoTest::MockSms.basic_sms"], ["status", "LOCAL_SENT"], ["status_updated_at", Mon, 13 Jan 2014 13:21:00 UTC +00:00], ["to", "555123555"], ["updated_at", Mon, 13 Jan 2014 13:21:00 UTC +00:00]]
|
65239
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
65240
|
+
ActionSmser: Nexmo delivery http ||| /sms/json?username=user&password=pass&ttl=86400000&status-report-req=true&from=555666&to=123555123&text=Body+with+%C3%A4%C3%A4kk%C3%B6set+end ||| #<Mock:0x370bf68>
|
65241
|
+
ActionSmser: {"message-count":"1","messages":[{"message-price":"0.02500000","status":"0","message-id":"0778DE88","remaining-balance":"1.77500000"}]}
|
65242
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
65243
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Body with ääkköset end"], ["created_at", Mon, 13 Jan 2014 13:21:00 UTC +00:00], ["from", "555666"], ["gateway", "nexmo"], ["log", "2014-01-13 15:21:00: LOCAL_SENT\n"], ["msg_id", "0778DE88"], ["sms_type", "ActionSmser::NexmoTest::MockSms.basic_sms"], ["status", "LOCAL_SENT"], ["status_updated_at", Mon, 13 Jan 2014 13:21:00 UTC +00:00], ["to", "123555123"], ["updated_at", Mon, 13 Jan 2014 13:21:00 UTC +00:00]]
|
65244
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
65245
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "action_smser_delivery_reports"[0m
|
65246
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
65247
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
65248
|
+
-----------------------------------------------------------
|
65249
|
+
ActionSmser::SimpleHttpTest: test_should_be_able_to_deliver
|
65250
|
+
-----------------------------------------------------------
|
65251
|
+
ActionSmser: Sending sms - Delivery_method: simple_http - Sms: (Sms ActionSmser::SimpleHttpTest::MockSms.basic_sms - From: "555666", To: ["555123555", "123555123"], Body: "Body with ääkköset end", Valid: true)
|
65252
|
+
ActionSmser: SimpleHttp delivery ||| /api/sendsms/plain?user=user&password=pass&sender=555666&SMSText=Body+with+%E4%E4kk%F6set+end&GSM=555123555,123555123 ||| #<Mock:0x4ac3ab0>
|
65253
|
+
ActionSmser: id_1234
|
65254
|
+
id_6666
|
65255
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
65256
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
65257
|
+
--------------------------------------------------------------
|
65258
|
+
ActionSmser::SimpleHttpTest: test_with_saving_delivery_reports
|
65259
|
+
--------------------------------------------------------------
|
65260
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "action_smser_delivery_reports"
|
65261
|
+
ActionSmser: Sending sms - Delivery_method: simple_http - Sms: (Sms ActionSmser::SimpleHttpTest::MockSms.basic_sms - From: "555666", To: ["555123555", "123555123"], Body: "Body with ääkköset end", Valid: true)
|
65262
|
+
ActionSmser: SimpleHttp delivery ||| /api/sendsms/plain?user=user&password=pass&sender=555666&SMSText=Body+with+%E4%E4kk%F6set+end&GSM=555123555,123555123 ||| #<Mock:0x580fde0>
|
65263
|
+
ActionSmser: id_1234
|
65264
|
+
id_6666
|
65265
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
65266
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Body with ääkköset end"], ["created_at", Mon, 13 Jan 2014 13:21:00 UTC +00:00], ["from", "555666"], ["gateway", "simple_http"], ["log", "2014-01-13 15:21:00: LOCAL_SENT\n"], ["msg_id", "id_1234"], ["sms_type", "ActionSmser::SimpleHttpTest::MockSms.basic_sms"], ["status", "LOCAL_SENT"], ["status_updated_at", Mon, 13 Jan 2014 13:21:00 UTC +00:00], ["to", "555123555"], ["updated_at", Mon, 13 Jan 2014 13:21:00 UTC +00:00]]
|
65267
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
65268
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
65269
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Body with ääkköset end"], ["created_at", Mon, 13 Jan 2014 13:21:00 UTC +00:00], ["from", "555666"], ["gateway", "simple_http"], ["log", "2014-01-13 15:21:00: LOCAL_SENT\n"], ["msg_id", "id_6666"], ["sms_type", "ActionSmser::SimpleHttpTest::MockSms.basic_sms"], ["status", "LOCAL_SENT"], ["status_updated_at", Mon, 13 Jan 2014 13:21:00 UTC +00:00], ["to", "123555123"], ["updated_at", Mon, 13 Jan 2014 13:21:00 UTC +00:00]]
|
65270
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
65271
|
+
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "action_smser_delivery_reports"[0m
|
65272
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
65273
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
65274
|
+
---------------------------------------------------------
|
65275
|
+
ActionSmser::SmstradeTest: test_should_be_able_to_deliver
|
65276
|
+
---------------------------------------------------------
|
65277
|
+
ActionSmser: Sending sms - Delivery_method: smstrade - Sms: (Sms ActionSmser::SmstradeTest::MockSms.basic_sms - From: "4917212341234", To: ["4915112341234", "4917812341234"], Body: "Body with ümläüts.", Valid: true)
|
65278
|
+
ActionSmser: Smstrade delivery http ||| /?key=api-key-here&from=4917212341234&to=4915112341234&message=Body+with+%C3%BCml%C3%A4%C3%BCts.&route=gold&debug=1&cost=1&message_id=1&count=1&charset=utf-8 ||| #<Mock:0x7776990>
|
65279
|
+
ActionSmser: 100
|
65280
|
+
123456789
|
65281
|
+
0.064
|
65282
|
+
1
|
65283
|
+
ActionSmser: Smstrade delivery http ||| /?key=api-key-here&from=4917212341234&to=4917812341234&message=Body+with+%C3%BCml%C3%A4%C3%BCts.&route=gold&debug=1&cost=1&message_id=1&count=1&charset=utf-8 ||| #<Mock:0x7776990>
|
65284
|
+
ActionSmser: 100
|
65285
|
+
123456789
|
65286
|
+
0.064
|
65287
|
+
1
|
65288
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
65289
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
65290
|
+
------------------------------------------------------------
|
65291
|
+
ActionSmser::SmstradeTest: test_with_saving_delivery_reports
|
65292
|
+
------------------------------------------------------------
|
65293
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "action_smser_delivery_reports"
|
65294
|
+
ActionSmser: Sending sms - Delivery_method: smstrade - Sms: (Sms ActionSmser::SmstradeTest::MockSms.basic_sms - From: "4917212341234", To: ["4915112341234", "4917812341234"], Body: "Body with ümläüts.", Valid: true)
|
65295
|
+
ActionSmser: Smstrade delivery http ||| /?key=api-key-here&from=4917212341234&to=4915112341234&message=Body+with+%C3%BCml%C3%A4%C3%BCts.&route=gold&debug=1&cost=1&message_id=1&count=1&charset=utf-8 ||| #<Mock:0x7767918>
|
65296
|
+
ActionSmser: 100
|
65297
|
+
123456789
|
65298
|
+
0.064
|
65299
|
+
1
|
65300
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
65301
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Body with ümläüts."], ["created_at", Mon, 13 Jan 2014 13:21:00 UTC +00:00], ["from", "4917212341234"], ["gateway", "smstrade"], ["log", "2014-01-13 15:21:00: LOCAL_SENT\n"], ["msg_id", "123456789"], ["sms_type", "ActionSmser::SmstradeTest::MockSms.basic_sms"], ["status", "LOCAL_SENT"], ["status_updated_at", Mon, 13 Jan 2014 13:21:00 UTC +00:00], ["to", "4915112341234"], ["updated_at", Mon, 13 Jan 2014 13:21:00 UTC +00:00]]
|
65302
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
65303
|
+
ActionSmser: Smstrade delivery http ||| /?key=api-key-here&from=4917212341234&to=4917812341234&message=Body+with+%C3%BCml%C3%A4%C3%BCts.&route=gold&debug=1&cost=1&message_id=1&count=1&charset=utf-8 ||| #<Mock:0x7767918>
|
65304
|
+
ActionSmser: 100
|
65305
|
+
123456789
|
65306
|
+
0.064
|
65307
|
+
1
|
65308
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
65309
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Body with ümläüts."], ["created_at", Mon, 13 Jan 2014 13:21:00 UTC +00:00], ["from", "4917212341234"], ["gateway", "smstrade"], ["log", "2014-01-13 15:21:00: LOCAL_SENT\n"], ["msg_id", "123456789"], ["sms_type", "ActionSmser::SmstradeTest::MockSms.basic_sms"], ["status", "LOCAL_SENT"], ["status_updated_at", Mon, 13 Jan 2014 13:21:00 UTC +00:00], ["to", "4917812341234"], ["updated_at", Mon, 13 Jan 2014 13:21:00 UTC +00:00]]
|
65310
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
65311
|
+
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "action_smser_delivery_reports"[0m
|
65312
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
65313
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
65314
|
+
--------------------------------------------------------
|
65315
|
+
ActionSmser::TestArrayTest: test_should_add_to_TestArray
|
65316
|
+
--------------------------------------------------------
|
65317
|
+
ActionSmser: Sending sms - Delivery_method: test_array - Sms: (Sms ActionSmser::TestArrayTest::MockSms.basic_sms - From: "555666", To: ["555123555", "123555123"], Body: "Body with ääkköset end", Valid: true)
|
65318
|
+
ActionSmser: ActionSmser::DeliveryMethods::TestArray.deliveries added message, no real delivery.
|
65319
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
65320
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
65321
|
+
----------------------------------------------------------
|
65322
|
+
ActionSmser::TestArrayTest: test_should_be_able_to_deliver
|
65323
|
+
----------------------------------------------------------
|
65324
|
+
ActionSmser: Sending sms - Delivery_method: test_array - Sms: (Sms ActionSmser::TestArrayTest::MockSms.basic_sms - From: "555666", To: ["555123555", "123555123"], Body: "Body with ääkköset end", Valid: true)
|
65325
|
+
ActionSmser: ActionSmser::DeliveryMethods::TestArray.deliveries added message, no real delivery.
|
65326
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
65327
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
65328
|
+
-------------------------------------------------------------
|
65329
|
+
ActionSmser::TestArrayTest: test_with_saving_delivery_reports
|
65330
|
+
-------------------------------------------------------------
|
65331
|
+
ActionSmser: Sending sms - Delivery_method: test_array - Sms: (Sms ActionSmser::TestArrayTest::MockSms.basic_sms - From: "555666", To: ["555123555", "123555123"], Body: "Body with ääkköset end", Valid: true)
|
65332
|
+
ActionSmser: ActionSmser::DeliveryMethods::TestArray.deliveries added message, no real delivery.
|
65333
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "action_smser_delivery_reports"
|
65334
|
+
ActionSmser: Sending sms - Delivery_method: test_array - Sms: (Sms ActionSmser::TestArrayTest::MockSms.basic_sms - From: "555666", To: ["555123555", "123555123"], Body: "Body with ääkköset end", Valid: true)
|
65335
|
+
ActionSmser: ActionSmser::DeliveryMethods::TestArray.deliveries added message, no real delivery.
|
65336
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
65337
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Body with ääkköset end"], ["created_at", Mon, 13 Jan 2014 13:21:00 UTC +00:00], ["from", "555666"], ["gateway", "test_array"], ["log", "2014-01-13 15:21:00: LOCAL_SENT\n"], ["msg_id", "test_array_id_7196626"], ["sms_type", "ActionSmser::TestArrayTest::MockSms.basic_sms"], ["status", "LOCAL_SENT"], ["status_updated_at", Mon, 13 Jan 2014 13:21:00 UTC +00:00], ["to", "555123555"], ["updated_at", Mon, 13 Jan 2014 13:21:00 UTC +00:00]]
|
65338
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
65339
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
65340
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Body with ääkköset end"], ["created_at", Mon, 13 Jan 2014 13:21:00 UTC +00:00], ["from", "555666"], ["gateway", "test_array"], ["log", "2014-01-13 15:21:00: LOCAL_SENT\n"], ["msg_id", "test_array_id_1366476"], ["sms_type", "ActionSmser::TestArrayTest::MockSms.basic_sms"], ["status", "LOCAL_SENT"], ["status_updated_at", Mon, 13 Jan 2014 13:21:00 UTC +00:00], ["to", "123555123"], ["updated_at", Mon, 13 Jan 2014 13:21:00 UTC +00:00]]
|
65341
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
65342
|
+
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "action_smser_delivery_reports"[0m
|
65343
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
65344
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
65345
|
+
---------------------------
|
65346
|
+
ActionSmserTest: test_truth
|
65347
|
+
---------------------------
|
65348
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
65349
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
65350
|
+
---------------------------------------------------------
|
65351
|
+
NavigationTest: test_basic_gateway_commit_delivery_report
|
65352
|
+
---------------------------------------------------------
|
65353
|
+
Started GET "/action_smser/delivery_reports/gateway_commit/example_gateway" for 127.0.0.1 at 2014-01-13 15:21:00 +0200
|
65354
|
+
Processing by ActionSmser::DeliveryReportsController#gateway_commit as HTML
|
65355
|
+
Parameters: {"gateway"=>"example_gateway"}
|
65356
|
+
Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
|
65357
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
65358
|
+
[1m[36m (0.2ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [0m
|
65359
|
+
[1m[35m (0.1ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
65360
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
65361
|
+
Migrating to CreateActionSmserDeliveryReports (20120102215215)
|
65362
|
+
[1m[35m (0.1ms)[0m begin transaction
|
65363
|
+
[1m[36m (0.2ms)[0m [1mCREATE TABLE "action_smser_delivery_reports" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "msg_id" varchar(255), "status" varchar(255), "status_updated_at" datetime, "sms_type" varchar(255), "log" text, "to" varchar(255), "from" varchar(255), "body" varchar(255), "gateway" varchar(255), "re_delivery_of_delivery_report_id" integer, "re_delivered" boolean, "created_at" datetime, "updated_at" datetime) [0m
|
65364
|
+
[1m[35m (0.1ms)[0m CREATE INDEX "index_action_smser_delivery_reports_on_msg_id" ON "action_smser_delivery_reports" ("msg_id")
|
65365
|
+
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20120102215215"]]
|
65366
|
+
[1m[35m (0.0ms)[0m commit transaction
|
65367
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
65368
|
+
---------------------------------------------------------------------------
|
65369
|
+
ActionSmser::BaseTest: test_after_delivery_should_be_called_if_it's_present
|
65370
|
+
---------------------------------------------------------------------------
|
65371
|
+
ActionSmser: Sending sms - Delivery_method: test_array - Sms: (Sms ActionSmser::BaseTest::MockSms.basic_sms - From: "555666", To: ["555123555", "123", "+358123555123"], Body: "Body with ääkköset end", Valid: true)
|
65372
|
+
ActionSmser: ActionSmser::DeliveryMethods::TestArray.deliveries added message, no real delivery.
|
65373
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
65374
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
65375
|
+
----------------------------------------------------------------------------
|
65376
|
+
ActionSmser::BaseTest: test_before_delivery_should_be_called_if_it's_present
|
65377
|
+
----------------------------------------------------------------------------
|
65378
|
+
ActionSmser: Sending sms - Delivery_method: test_array - Sms: (Sms ActionSmser::BaseTest::MockSms.basic_sms - From: "555666", To: ["555123555", "123", "+358123555123"], Body: "Body with ääkköset end", Valid: true)
|
65379
|
+
ActionSmser: ActionSmser::DeliveryMethods::TestArray.deliveries added message, no real delivery.
|
65380
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
65381
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
65382
|
+
--------------------------------------------------------------------------------------------
|
65383
|
+
ActionSmser::BaseTest: test_body_should_be_cropped_to_500_chars,_limit_extra_looong_messages
|
65384
|
+
--------------------------------------------------------------------------------------------
|
65385
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
65386
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
65387
|
+
-------------------------------------------------------------
|
65388
|
+
ActionSmser::BaseTest: test_body_should_be_possible_to_encode
|
65389
|
+
-------------------------------------------------------------
|
65390
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
65391
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
65392
|
+
----------------------------------------------------------------------
|
65393
|
+
ActionSmser::BaseTest: test_from_encoded_should_remove_leading_+_and_0
|
65394
|
+
----------------------------------------------------------------------
|
65395
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
65396
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
65397
|
+
--------------------------------------------------------------------------------------------------------
|
65398
|
+
ActionSmser::BaseTest: test_message_real_crop_should_return_cropped_message_with_sms_chars_taken_account
|
65399
|
+
--------------------------------------------------------------------------------------------------------
|
65400
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
65401
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
65402
|
+
-----------------------------------------------------------------------------
|
65403
|
+
ActionSmser::BaseTest: test_message_real_length_should_return_real_sms_lenght
|
65404
|
+
-----------------------------------------------------------------------------
|
65405
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
65406
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
65407
|
+
----------------------------------------------------------------
|
65408
|
+
ActionSmser::BaseTest: test_receivers_should_be_joined_by_commas
|
65409
|
+
----------------------------------------------------------------
|
65410
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
65411
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
65412
|
+
--------------------------------------------------------
|
65413
|
+
ActionSmser::BaseTest: test_should_be_able_to_change_ttl
|
65414
|
+
--------------------------------------------------------
|
65415
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
65416
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
65417
|
+
--------------------------------------------------------------
|
65418
|
+
ActionSmser::BaseTest: test_should_be_ok_with_single_receivers
|
65419
|
+
--------------------------------------------------------------
|
65420
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
65421
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
65422
|
+
-----------------------------------------------
|
65423
|
+
ActionSmser::BaseTest: test_should_be_valid_sms
|
65424
|
+
-----------------------------------------------
|
65425
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
65426
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
65427
|
+
-------------------------------------------------------------------------------------
|
65428
|
+
ActionSmser::BaseTest: test_should_have_copied_the_delivery_options_when_initializing
|
65429
|
+
-------------------------------------------------------------------------------------
|
65430
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
65431
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
65432
|
+
------------------------------------------------------
|
65433
|
+
ActionSmser::BaseTest: test_should_have_saved_sms_type
|
65434
|
+
------------------------------------------------------
|
65435
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
65436
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
65437
|
+
---------------------------------------------------------------------
|
65438
|
+
ActionSmser::BaseTest: test_should_have_test_array_as_delivery_method
|
65439
|
+
---------------------------------------------------------------------
|
65440
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
65441
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
65442
|
+
----------------------------------------------------------------
|
65443
|
+
ActionSmser::BaseTest: test_should_not_be_valid_if_no_recipients
|
65444
|
+
----------------------------------------------------------------
|
65445
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
65446
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
65447
|
+
-------------------------------------------------------------
|
65448
|
+
ActionSmser::BaseTest: test_ttl_should_be_24_hours_by_default
|
65449
|
+
-------------------------------------------------------------
|
65450
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
65451
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
65452
|
+
----------------------------------------------------------------------------------------------
|
65453
|
+
ActionSmser::DelayedJobTest: test_should_be_able_to_deliver_and_call_enqueue_for_all_receivers
|
65454
|
+
----------------------------------------------------------------------------------------------
|
65455
|
+
ActionSmser: Sending sms - Delivery_method: delayed_job - Sms: (Sms ActionSmser::DelayedJobTest::MockSms.basic_sms - From: "555666", To: ["555123555", "123555123"], Body: "Body with ääkköset end", Valid: true)
|
65456
|
+
ActionSmser: Delivering sms by delayed_job
|
65457
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
65458
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
65459
|
+
-------------------------------------------------------------
|
65460
|
+
ActionSmser::DelayedJobTest: test_test_that_serializing_is_ok
|
65461
|
+
-------------------------------------------------------------
|
65462
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
65463
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
65464
|
+
-------------------------------------------------------------------
|
65465
|
+
ActionSmser::DeliveryReportTest: test_build_DeliveryReport_from_sms
|
65466
|
+
-------------------------------------------------------------------
|
65467
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
65468
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
65469
|
+
------------------------------------------------------
|
65470
|
+
ActionSmser::DeliveryReportTest: test_create_from_save
|
65471
|
+
------------------------------------------------------
|
65472
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "action_smser_delivery_reports"
|
65473
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
65474
|
+
[1m[35mSQL (3.1ms)[0m INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Body with ääkköset end"], ["created_at", Mon, 13 Jan 2014 13:21:14 UTC +00:00], ["from", "555666"], ["gateway", "test_array"], ["log", "2014-01-13 15:21:14: LOCAL_SENT\n"], ["msg_id", "msg_id_a"], ["sms_type", "ActionSmser::DeliveryReportTest::MockSms.basic_sms"], ["status", "LOCAL_SENT"], ["status_updated_at", Mon, 13 Jan 2014 13:21:14 UTC +00:00], ["to", "123"], ["updated_at", Mon, 13 Jan 2014 13:21:14 UTC +00:00]]
|
65475
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
65476
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "action_smser_delivery_reports"
|
65477
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
65478
|
+
[1m[35m (0.0ms)[0m begin transaction
|
65479
|
+
-----------------------------------------------------------------
|
65480
|
+
ActionSmser::DeliveryReportTest: test_re_deliver_with_simple_http
|
65481
|
+
-----------------------------------------------------------------
|
65482
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
65483
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Body with ääkköset end"], ["created_at", Mon, 13 Jan 2014 13:21:14 UTC +00:00], ["from", "555666"], ["gateway", "test_array"], ["log", "2014-01-13 15:21:14: LOCAL_SENT\n"], ["msg_id", "msg_id_a"], ["sms_type", "ActionSmser::DeliveryReportTest::MockSms.basic_sms"], ["status", "LOCAL_SENT"], ["status_updated_at", Mon, 13 Jan 2014 13:21:14 UTC +00:00], ["to", "123"], ["updated_at", Mon, 13 Jan 2014 13:21:14 UTC +00:00]]
|
65484
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
65485
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
65486
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "action_smser_delivery_reports" SET "gateway" = ?, "updated_at" = ? WHERE "action_smser_delivery_reports"."id" = 1[0m [["gateway", "some_delivery"], ["updated_at", Mon, 13 Jan 2014 13:21:14 UTC +00:00]]
|
65487
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
65488
|
+
[1m[36mActionSmser::DeliveryReport Load (0.1ms)[0m [1mSELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."id" = ? LIMIT 1[0m [["id", 1]]
|
65489
|
+
ActionSmser: Re_delivering: #<ActionSmser::DeliveryReport id: 1, msg_id: "msg_id_a", status: "LOCAL_SENT", status_updated_at: "2014-01-13 13:21:14", sms_type: "ActionSmser::DeliveryReportTest::MockSms.basic_sms", log: "2014-01-13 15:21:14: LOCAL_SENT\n", to: "123", from: "555666", body: "Body with ääkköset end", gateway: "some_delivery", re_delivery_of_delivery_report_id: nil, re_delivered: nil, created_at: "2014-01-13 13:21:14", updated_at: "2014-01-13 13:21:14">
|
65490
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
65491
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "action_smser_delivery_reports" SET "re_delivered" = ?, "updated_at" = ? WHERE "action_smser_delivery_reports"."id" = 1[0m [["re_delivered", true], ["updated_at", Mon, 13 Jan 2014 13:21:14 UTC +00:00]]
|
65492
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
65493
|
+
[1m[36mActionSmser::DeliveryReport Load (0.0ms)[0m [1mSELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."id" = ? LIMIT 1[0m [["id", 1]]
|
65494
|
+
ActionSmser: Sending sms - Delivery_method: test_array - Sms: (Sms ActionSmser::DeliveryReportTest::MockSms.basic_sms.re_delivery - From: "555666", To: "123", Body: "Body with ääkköset end", Valid: true)
|
65495
|
+
ActionSmser: ActionSmser::DeliveryMethods::TestArray.deliveries added message, no real delivery.
|
65496
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
65497
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "re_delivery_of_delivery_report_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Body with ääkköset end"], ["created_at", Mon, 13 Jan 2014 13:21:14 UTC +00:00], ["from", "555666"], ["gateway", "test_array"], ["log", "2014-01-13 15:21:14: LOCAL_SENT\n"], ["msg_id", "test_array_id_50200350"], ["re_delivery_of_delivery_report_id", 1], ["sms_type", "ActionSmser::DeliveryReportTest::MockSms.basic_sms.re_delivery"], ["status", "LOCAL_SENT"], ["status_updated_at", Mon, 13 Jan 2014 13:21:14 UTC +00:00], ["to", "123"], ["updated_at", Mon, 13 Jan 2014 13:21:14 UTC +00:00]]
|
65498
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
65499
|
+
[1m[36mActionSmser::DeliveryReport Load (0.1ms)[0m [1mSELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" ORDER BY "action_smser_delivery_reports"."id" DESC LIMIT 1[0m
|
65500
|
+
[1m[35mActionSmser::DeliveryReport Load (0.1ms)[0m SELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."re_delivery_of_delivery_report_id" = ? ORDER BY "action_smser_delivery_reports"."id" ASC LIMIT 1 [["re_delivery_of_delivery_report_id", 1]]
|
65501
|
+
[1m[36mActionSmser::DeliveryReport Load (0.1ms)[0m [1mSELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."id" = ? ORDER BY "action_smser_delivery_reports"."id" ASC LIMIT 1[0m [["id", 1]]
|
65502
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
65503
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
65504
|
+
--------------------------------------------
|
65505
|
+
ActionSmser::DeliveryReportTest: test_to_sms
|
65506
|
+
--------------------------------------------
|
65507
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
65508
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Body with ääkköset end"], ["created_at", Mon, 13 Jan 2014 13:21:14 UTC +00:00], ["from", "555666"], ["gateway", "test_array"], ["log", "2014-01-13 15:21:14: LOCAL_SENT\n"], ["msg_id", "msg_id_a"], ["sms_type", "ActionSmser::DeliveryReportTest::MockSms.basic_sms"], ["status", "LOCAL_SENT"], ["status_updated_at", Mon, 13 Jan 2014 13:21:14 UTC +00:00], ["to", "123"], ["updated_at", Mon, 13 Jan 2014 13:21:14 UTC +00:00]]
|
65509
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
65510
|
+
[1m[36mActionSmser::DeliveryReport Load (0.0ms)[0m [1mSELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."id" = ? LIMIT 1[0m [["id", 1]]
|
65511
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
65512
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
65513
|
+
-----------------------------------------------------
|
65514
|
+
ActionSmser::DeliveryReportTest: test_updating_status
|
65515
|
+
-----------------------------------------------------
|
65516
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
65517
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "action_smser_delivery_reports" ("created_at", "log", "status", "status_updated_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["created_at", Mon, 13 Jan 2014 13:21:14 UTC +00:00], ["log", "2014-01-13 15:21:14: LOCAL_TEST\n"], ["status", "LOCAL_TEST"], ["status_updated_at", Mon, 13 Jan 2014 13:21:14 UTC +00:00], ["updated_at", Mon, 13 Jan 2014 13:21:14 UTC +00:00]]
|
65518
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
65519
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
65520
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "action_smser_delivery_reports" SET "status" = ?, "status_updated_at" = ?, "log" = ?, "updated_at" = ? WHERE "action_smser_delivery_reports"."id" = 1 [["status", "TEST_2"], ["status_updated_at", Mon, 13 Jan 2014 13:21:14 UTC +00:00], ["log", "2014-01-13 15:21:14: LOCAL_TEST\n2014-01-13 15:21:14: TEST_2\n"], ["updated_at", Mon, 13 Jan 2014 13:21:14 UTC +00:00]]
|
65521
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
65522
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
65523
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
65524
|
+
--------------------------------------------------------------------------------
|
65525
|
+
ActionSmser::DeliveryReportsControllerTest: test_gateway_commit_with_existing_dr
|
65526
|
+
--------------------------------------------------------------------------------
|
65527
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
65528
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "action_smser_delivery_reports" ("created_at", "log", "msg_id", "status", "status_updated_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 13 Jan 2014 13:21:14 UTC +00:00], ["log", "2014-01-13 15:21:14: ORIGINAL_STATUS\n"], ["msg_id", "102010314204056202"], ["status", "ORIGINAL_STATUS"], ["status_updated_at", Mon, 13 Jan 2014 13:21:14 UTC +00:00], ["updated_at", Mon, 13 Jan 2014 13:21:14 UTC +00:00]]
|
65529
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
65530
|
+
Processing by ActionSmser::DeliveryReportsController#gateway_commit as HTML
|
65531
|
+
Parameters: {"gateway"=>"test_gateway", "DeliveryReport"=>{"message"=>{"id"=>"102010314204056202", "donedate"=>"2012/01/03 14:20:45", "sentdate"=>"2012/01/03 14:20:40", "status"=>"DELIVERED"}}}
|
65532
|
+
ActionSmser: Gateway_commit found parser for gateway: test_gateway
|
65533
|
+
[1m[36mActionSmser::DeliveryReport Load (0.1ms)[0m [1mSELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."msg_id" = '102010314204056202' ORDER BY "action_smser_delivery_reports"."id" ASC LIMIT 1[0m
|
65534
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
65535
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "action_smser_delivery_reports" SET "status" = ?, "status_updated_at" = ?, "log" = ?, "updated_at" = ? WHERE "action_smser_delivery_reports"."id" = 1[0m [["status", "DELIVERED"], ["status_updated_at", Mon, 13 Jan 2014 13:21:14 UTC +00:00], ["log", "2014-01-13 15:21:14: ORIGINAL_STATUS\n2014-01-13 15:21:14: DELIVERED\n"], ["updated_at", Mon, 13 Jan 2014 13:21:14 UTC +00:00]]
|
65536
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
65537
|
+
ActionSmser: Gateway_commit updated item with id: 102010314204056202, params: {"msg_id"=>"102010314204056202", "status"=>"DELIVERED"}
|
65538
|
+
Rendered text template (0.0ms)
|
65539
|
+
Completed 200 OK in 3ms (Views: 0.6ms | ActiveRecord: 0.4ms)
|
65540
|
+
[1m[36mActionSmser::DeliveryReport Load (0.1ms)[0m [1mSELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."id" = ? LIMIT 1[0m [["id", 1]]
|
65541
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
65542
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
65543
|
+
-------------------------------------------------------------------------------------
|
65544
|
+
ActionSmser::DeliveryReportsControllerTest: test_gateway_commit_with_multiple_records
|
65545
|
+
-------------------------------------------------------------------------------------
|
65546
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
65547
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "action_smser_delivery_reports" ("created_at", "log", "msg_id", "status", "status_updated_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 13 Jan 2014 13:21:14 UTC +00:00], ["log", "2014-01-13 15:21:14: ORIGINAL_STATUS\n"], ["msg_id", "102010314204056202"], ["status", "ORIGINAL_STATUS"], ["status_updated_at", Mon, 13 Jan 2014 13:21:14 UTC +00:00], ["updated_at", Mon, 13 Jan 2014 13:21:14 UTC +00:00]]
|
65548
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
65549
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
65550
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "action_smser_delivery_reports" ("created_at", "log", "msg_id", "status", "status_updated_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 13 Jan 2014 13:21:14 UTC +00:00], ["log", "2014-01-13 15:21:14: ORIGINAL_STATUS\n"], ["msg_id", "99999999999999999"], ["status", "ORIGINAL_STATUS"], ["status_updated_at", Mon, 13 Jan 2014 13:21:14 UTC +00:00], ["updated_at", Mon, 13 Jan 2014 13:21:14 UTC +00:00]]
|
65551
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
65552
|
+
Processing by ActionSmser::DeliveryReportsController#gateway_commit as HTML
|
65553
|
+
Parameters: {"gateway"=>"test_gateway", "DeliveryReport"=>{"message"=>[{"id"=>"102010314204056202", "status"=>"DELIVERED"}, {"id"=>"99999999999999999", "status"=>"DELIVERED"}]}}
|
65554
|
+
ActionSmser: Gateway_commit found parser for gateway: test_gateway
|
65555
|
+
[1m[35mActionSmser::DeliveryReport Load (0.1ms)[0m SELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."msg_id" = '102010314204056202' ORDER BY "action_smser_delivery_reports"."id" ASC LIMIT 1
|
65556
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
65557
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "action_smser_delivery_reports" SET "status" = ?, "status_updated_at" = ?, "log" = ?, "updated_at" = ? WHERE "action_smser_delivery_reports"."id" = 1 [["status", "DELIVERED"], ["status_updated_at", Mon, 13 Jan 2014 13:21:14 UTC +00:00], ["log", "2014-01-13 15:21:14: ORIGINAL_STATUS\n2014-01-13 15:21:14: DELIVERED\n"], ["updated_at", Mon, 13 Jan 2014 13:21:14 UTC +00:00]]
|
65558
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
65559
|
+
ActionSmser: Gateway_commit updated item with id: 102010314204056202, params: {"msg_id"=>"102010314204056202", "status"=>"DELIVERED"}
|
65560
|
+
[1m[35mActionSmser::DeliveryReport Load (0.1ms)[0m SELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."msg_id" = '99999999999999999' ORDER BY "action_smser_delivery_reports"."id" ASC LIMIT 1
|
65561
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
65562
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "action_smser_delivery_reports" SET "status" = ?, "status_updated_at" = ?, "log" = ?, "updated_at" = ? WHERE "action_smser_delivery_reports"."id" = 2 [["status", "DELIVERED"], ["status_updated_at", Mon, 13 Jan 2014 13:21:14 UTC +00:00], ["log", "2014-01-13 15:21:14: ORIGINAL_STATUS\n2014-01-13 15:21:14: DELIVERED\n"], ["updated_at", Mon, 13 Jan 2014 13:21:14 UTC +00:00]]
|
65563
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
65564
|
+
ActionSmser: Gateway_commit updated item with id: 99999999999999999, params: {"msg_id"=>"99999999999999999", "status"=>"DELIVERED"}
|
65565
|
+
Completed 200 OK in 4ms (Views: 0.3ms | ActiveRecord: 0.6ms)
|
65566
|
+
[1m[35mActionSmser::DeliveryReport Load (0.1ms)[0m SELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."id" = ? LIMIT 1 [["id", 1]]
|
65567
|
+
[1m[36mActionSmser::DeliveryReport Load (0.0ms)[0m [1mSELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."id" = ? LIMIT 1[0m [["id", 2]]
|
65568
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
65569
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
65570
|
+
----------------------------------------------------------------------------------
|
65571
|
+
ActionSmser::DeliveryReportsControllerTest: test_gateway_commit_without_any_parser
|
65572
|
+
----------------------------------------------------------------------------------
|
65573
|
+
Processing by ActionSmser::DeliveryReportsController#gateway_commit as HTML
|
65574
|
+
Parameters: {"gateway"=>"gateway_not_found", "DeliveryReport"=>{"message"=>{"id"=>"wrongid", "donedate"=>"2012/01/03 14:20:45", "sentdate"=>"2012/01/03 14:20:40", "status"=>"DELIVERED"}}}
|
65575
|
+
Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
|
65576
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
65577
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
65578
|
+
--------------------------------------------------------------------------
|
65579
|
+
ActionSmser::DeliveryReportsControllerTest: test_gateway_commit_without_dr
|
65580
|
+
--------------------------------------------------------------------------
|
65581
|
+
Processing by ActionSmser::DeliveryReportsController#gateway_commit as HTML
|
65582
|
+
Parameters: {"gateway"=>"test_gateway", "DeliveryReport"=>{"message"=>{"id"=>"wrongid", "donedate"=>"2012/01/03 14:20:45", "sentdate"=>"2012/01/03 14:20:40", "status"=>"DELIVERED"}}}
|
65583
|
+
ActionSmser: Gateway_commit found parser for gateway: test_gateway
|
65584
|
+
[1m[35mActionSmser::DeliveryReport Load (0.1ms)[0m SELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."msg_id" = 'wrongid' ORDER BY "action_smser_delivery_reports"."id" ASC LIMIT 1
|
65585
|
+
ActionSmser: Gateway_commit not found item with id: wrongid, params: {"msg_id"=>"wrongid", "status"=>"DELIVERED"}
|
65586
|
+
Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
|
65587
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
65588
|
+
[1m[35m (0.0ms)[0m begin transaction
|
65589
|
+
-----------------------------------------------------------------------------------------------------
|
65590
|
+
ActionSmser::DeliveryReportsControllerTest: test_index_with_admin_access_lambda_with_right_login_info
|
65591
|
+
-----------------------------------------------------------------------------------------------------
|
65592
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
65593
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "action_smser_delivery_reports" ("created_at", "msg_id", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 13 Jan 2014 13:21:14 UTC +00:00], ["msg_id", "idtest_5"], ["updated_at", Mon, 13 Jan 2014 13:21:14 UTC +00:00]]
|
65594
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
65595
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
65596
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "action_smser_delivery_reports" ("created_at", "msg_id", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 13 Jan 2014 13:21:14 UTC +00:00], ["msg_id", "idtest_7"], ["updated_at", Mon, 13 Jan 2014 13:21:14 UTC +00:00]]
|
65597
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
65598
|
+
Processing by ActionSmser::DeliveryReportsController#index as HTML
|
65599
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2014-01-06 13:21:14.301220' AND '2014-01-13 13:11:14.301337')[0m
|
65600
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) AS count_all, gateway AS gateway FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2014-01-06 13:21:14.301220' AND '2014-01-13 13:11:14.301337') GROUP BY gateway
|
65601
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2014-01-06 13:21:14.301220' AND '2014-01-13 13:11:14.301337')[0m
|
65602
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) AS count_all, status AS status FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2014-01-06 13:21:14.301220' AND '2014-01-13 13:11:14.301337') GROUP BY status
|
65603
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2014-01-06 13:21:14.301220' AND '2014-01-13 13:11:14.301337')[0m
|
65604
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) AS count_all, sms_type AS sms_type FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2014-01-06 13:21:14.301220' AND '2014-01-13 13:11:14.301337') GROUP BY sms_type
|
65605
|
+
Completed 200 OK in 9ms (Views: 8.6ms | ActiveRecord: 0.4ms)
|
65606
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
65607
|
+
[1m[35m (0.0ms)[0m begin transaction
|
65608
|
+
--------------------------------------------------------------------------------
|
65609
|
+
ActionSmser::DeliveryReportsControllerTest: test_index_with_always_enabled_admin
|
65610
|
+
--------------------------------------------------------------------------------
|
65611
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
65612
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "action_smser_delivery_reports" ("created_at", "msg_id", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 13 Jan 2014 13:21:14 UTC +00:00], ["msg_id", "idtest_1"], ["updated_at", Mon, 13 Jan 2014 13:21:14 UTC +00:00]]
|
65613
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
65614
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
65615
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "action_smser_delivery_reports" ("created_at", "msg_id", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 13 Jan 2014 13:21:14 UTC +00:00], ["msg_id", "idtest_0"], ["updated_at", Mon, 13 Jan 2014 13:21:14 UTC +00:00]]
|
65616
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
65617
|
+
Processing by ActionSmser::DeliveryReportsController#index as HTML
|
65618
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2014-01-06 13:21:14.313109' AND '2014-01-13 13:11:14.313212')[0m
|
65619
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) AS count_all, gateway AS gateway FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2014-01-06 13:21:14.313109' AND '2014-01-13 13:11:14.313212') GROUP BY gateway
|
65620
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2014-01-06 13:21:14.313109' AND '2014-01-13 13:11:14.313212')[0m
|
65621
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) AS count_all, status AS status FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2014-01-06 13:21:14.313109' AND '2014-01-13 13:11:14.313212') GROUP BY status
|
65622
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2014-01-06 13:21:14.313109' AND '2014-01-13 13:11:14.313212')[0m
|
65623
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) AS count_all, sms_type AS sms_type FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2014-01-06 13:21:14.313109' AND '2014-01-13 13:11:14.313212') GROUP BY sms_type
|
65624
|
+
Completed 200 OK in 6ms (Views: 5.3ms | ActiveRecord: 0.4ms)
|
65625
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
65626
|
+
[1m[35m (0.0ms)[0m begin transaction
|
65627
|
+
--------------------------------------------------------------------------------------------------------
|
65628
|
+
ActionSmser::DeliveryReportsControllerTest: test_index_with_forbidden_admin_access_(default_access_mode)
|
65629
|
+
--------------------------------------------------------------------------------------------------------
|
65630
|
+
Processing by ActionSmser::DeliveryReportsController#index as HTML
|
65631
|
+
Filter chain halted as :admin_access_only rendered or redirected
|
65632
|
+
Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
|
65633
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
65634
|
+
[1m[35m (0.0ms)[0m begin transaction
|
65635
|
+
-------------------------------------------------------------------------------
|
65636
|
+
ActionSmser::DeliveryReportsControllerTest: test_list_with_always_enabled_admin
|
65637
|
+
-------------------------------------------------------------------------------
|
65638
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
65639
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "action_smser_delivery_reports" ("created_at", "msg_id", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 13 Jan 2014 13:21:14 UTC +00:00], ["msg_id", "idtest_9"], ["updated_at", Mon, 13 Jan 2014 13:21:14 UTC +00:00]]
|
65640
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
65641
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
65642
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "action_smser_delivery_reports" ("created_at", "msg_id", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 13 Jan 2014 13:21:14 UTC +00:00], ["msg_id", "idtest_4"], ["updated_at", Mon, 13 Jan 2014 13:21:14 UTC +00:00]]
|
65643
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
65644
|
+
Processing by ActionSmser::DeliveryReportsController#list as HTML
|
65645
|
+
[1m[36mActionSmser::DeliveryReport Load (0.1ms)[0m [1mSELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" ORDER BY created_at DESC LIMIT 20 OFFSET 0[0m
|
65646
|
+
Completed 200 OK in 3ms (Views: 2.9ms | ActiveRecord: 0.1ms)
|
65647
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
65648
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
65649
|
+
------------------------------------------------------------------------------
|
65650
|
+
ActionSmser::NexmoTest: test_delivery_path_should_have_unicode_set_when_needed
|
65651
|
+
------------------------------------------------------------------------------
|
65652
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
65653
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
65654
|
+
--------------------------------------------------------------------
|
65655
|
+
ActionSmser::NexmoTest: test_gateway_process_delivery_report(params)
|
65656
|
+
--------------------------------------------------------------------
|
65657
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
65658
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
65659
|
+
------------------------------------------------------
|
65660
|
+
ActionSmser::NexmoTest: test_should_be_able_to_deliver
|
65661
|
+
------------------------------------------------------
|
65662
|
+
ActionSmser: Sending sms - Delivery_method: nexmo - Sms: (Sms ActionSmser::NexmoTest::MockSms.basic_sms - From: "555666", To: ["555123555", "123555123"], Body: "Body with ääkköset end", Valid: true)
|
65663
|
+
ActionSmser: Nexmo delivery http ||| /sms/json?username=user&password=pass&ttl=86400000&status-report-req=false&from=555666&to=555123555&text=Body+with+%C3%A4%C3%A4kk%C3%B6set+end ||| #<Mock:0xa137748>
|
65664
|
+
ActionSmser: {"message-count":"1","messages":[{"message-price":"0.02500000","status":"0","message-id":"0778DE88","remaining-balance":"1.77500000"}]}
|
65665
|
+
ActionSmser: Nexmo delivery http ||| /sms/json?username=user&password=pass&ttl=86400000&status-report-req=false&from=555666&to=123555123&text=Body+with+%C3%A4%C3%A4kk%C3%B6set+end ||| #<Mock:0xa137748>
|
65666
|
+
ActionSmser: {"message-count":"1","messages":[{"message-price":"0.02500000","status":"0","message-id":"0778DE88","remaining-balance":"1.77500000"}]}
|
65667
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
65668
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
65669
|
+
---------------------------------------------------------
|
65670
|
+
ActionSmser::NexmoTest: test_with_saving_delivery_reports
|
65671
|
+
---------------------------------------------------------
|
65672
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "action_smser_delivery_reports"
|
65673
|
+
ActionSmser: Sending sms - Delivery_method: nexmo - Sms: (Sms ActionSmser::NexmoTest::MockSms.basic_sms - From: "555666", To: ["555123555", "123555123"], Body: "Body with ääkköset end", Valid: true)
|
65674
|
+
ActionSmser: Nexmo delivery http ||| /sms/json?username=user&password=pass&ttl=86400000&status-report-req=true&from=555666&to=555123555&text=Body+with+%C3%A4%C3%A4kk%C3%B6set+end ||| #<Mock:0xa1457f8>
|
65675
|
+
ActionSmser: {"message-count":"1","messages":[{"message-price":"0.02500000","status":"0","message-id":"0778DE88","remaining-balance":"1.77500000"}]}
|
65676
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
65677
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Body with ääkköset end"], ["created_at", Mon, 13 Jan 2014 13:21:14 UTC +00:00], ["from", "555666"], ["gateway", "nexmo"], ["log", "2014-01-13 15:21:14: LOCAL_SENT\n"], ["msg_id", "0778DE88"], ["sms_type", "ActionSmser::NexmoTest::MockSms.basic_sms"], ["status", "LOCAL_SENT"], ["status_updated_at", Mon, 13 Jan 2014 13:21:14 UTC +00:00], ["to", "555123555"], ["updated_at", Mon, 13 Jan 2014 13:21:14 UTC +00:00]]
|
65678
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
65679
|
+
ActionSmser: Nexmo delivery http ||| /sms/json?username=user&password=pass&ttl=86400000&status-report-req=true&from=555666&to=123555123&text=Body+with+%C3%A4%C3%A4kk%C3%B6set+end ||| #<Mock:0xa1457f8>
|
65680
|
+
ActionSmser: {"message-count":"1","messages":[{"message-price":"0.02500000","status":"0","message-id":"0778DE88","remaining-balance":"1.77500000"}]}
|
65681
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
65682
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Body with ääkköset end"], ["created_at", Mon, 13 Jan 2014 13:21:14 UTC +00:00], ["from", "555666"], ["gateway", "nexmo"], ["log", "2014-01-13 15:21:14: LOCAL_SENT\n"], ["msg_id", "0778DE88"], ["sms_type", "ActionSmser::NexmoTest::MockSms.basic_sms"], ["status", "LOCAL_SENT"], ["status_updated_at", Mon, 13 Jan 2014 13:21:14 UTC +00:00], ["to", "123555123"], ["updated_at", Mon, 13 Jan 2014 13:21:14 UTC +00:00]]
|
65683
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
65684
|
+
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "action_smser_delivery_reports"[0m
|
65685
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
65686
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
65687
|
+
-----------------------------------------------------------
|
65688
|
+
ActionSmser::SimpleHttpTest: test_should_be_able_to_deliver
|
65689
|
+
-----------------------------------------------------------
|
65690
|
+
ActionSmser: Sending sms - Delivery_method: simple_http - Sms: (Sms ActionSmser::SimpleHttpTest::MockSms.basic_sms - From: "555666", To: ["555123555", "123555123"], Body: "Body with ääkköset end", Valid: true)
|
65691
|
+
ActionSmser: SimpleHttp delivery ||| /api/sendsms/plain?user=user&password=pass&sender=555666&SMSText=Body+with+%E4%E4kk%F6set+end&GSM=555123555,123555123 ||| #<Mock:0xa18e9a8>
|
65692
|
+
ActionSmser: id_1234
|
65693
|
+
id_6666
|
65694
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
65695
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
65696
|
+
--------------------------------------------------------------
|
65697
|
+
ActionSmser::SimpleHttpTest: test_with_saving_delivery_reports
|
65698
|
+
--------------------------------------------------------------
|
65699
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "action_smser_delivery_reports"
|
65700
|
+
ActionSmser: Sending sms - Delivery_method: simple_http - Sms: (Sms ActionSmser::SimpleHttpTest::MockSms.basic_sms - From: "555666", To: ["555123555", "123555123"], Body: "Body with ääkköset end", Valid: true)
|
65701
|
+
ActionSmser: SimpleHttp delivery ||| /api/sendsms/plain?user=user&password=pass&sender=555666&SMSText=Body+with+%E4%E4kk%F6set+end&GSM=555123555,123555123 ||| #<Mock:0xa19d4d0>
|
65702
|
+
ActionSmser: id_1234
|
65703
|
+
id_6666
|
65704
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
65705
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Body with ääkköset end"], ["created_at", Mon, 13 Jan 2014 13:21:14 UTC +00:00], ["from", "555666"], ["gateway", "simple_http"], ["log", "2014-01-13 15:21:14: LOCAL_SENT\n"], ["msg_id", "id_1234"], ["sms_type", "ActionSmser::SimpleHttpTest::MockSms.basic_sms"], ["status", "LOCAL_SENT"], ["status_updated_at", Mon, 13 Jan 2014 13:21:14 UTC +00:00], ["to", "555123555"], ["updated_at", Mon, 13 Jan 2014 13:21:14 UTC +00:00]]
|
65706
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
65707
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
65708
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Body with ääkköset end"], ["created_at", Mon, 13 Jan 2014 13:21:14 UTC +00:00], ["from", "555666"], ["gateway", "simple_http"], ["log", "2014-01-13 15:21:14: LOCAL_SENT\n"], ["msg_id", "id_6666"], ["sms_type", "ActionSmser::SimpleHttpTest::MockSms.basic_sms"], ["status", "LOCAL_SENT"], ["status_updated_at", Mon, 13 Jan 2014 13:21:14 UTC +00:00], ["to", "123555123"], ["updated_at", Mon, 13 Jan 2014 13:21:14 UTC +00:00]]
|
65709
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
65710
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "action_smser_delivery_reports"[0m
|
65711
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
65712
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
65713
|
+
---------------------------------------------------------
|
65714
|
+
ActionSmser::SmstradeTest: test_should_be_able_to_deliver
|
65715
|
+
---------------------------------------------------------
|
65716
|
+
ActionSmser: Sending sms - Delivery_method: smstrade - Sms: (Sms ActionSmser::SmstradeTest::MockSms.basic_sms - From: "4917212341234", To: ["4915112341234", "4917812341234"], Body: "Body with ümläüts.", Valid: true)
|
65717
|
+
ActionSmser: Smstrade delivery http ||| /?key=api-key-here&from=4917212341234&to=4915112341234&message=Body+with+%C3%BCml%C3%A4%C3%BCts.&route=gold&debug=1&cost=1&message_id=1&count=1&charset=utf-8 ||| #<Mock:0xa1dbac8>
|
65718
|
+
ActionSmser: 100
|
65719
|
+
123456789
|
65720
|
+
0.064
|
65721
|
+
1
|
65722
|
+
ActionSmser: Smstrade delivery http ||| /?key=api-key-here&from=4917212341234&to=4917812341234&message=Body+with+%C3%BCml%C3%A4%C3%BCts.&route=gold&debug=1&cost=1&message_id=1&count=1&charset=utf-8 ||| #<Mock:0xa1dbac8>
|
65723
|
+
ActionSmser: 100
|
65724
|
+
123456789
|
65725
|
+
0.064
|
65726
|
+
1
|
65727
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
65728
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
65729
|
+
------------------------------------------------------------
|
65730
|
+
ActionSmser::SmstradeTest: test_with_saving_delivery_reports
|
65731
|
+
------------------------------------------------------------
|
65732
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "action_smser_delivery_reports"
|
65733
|
+
ActionSmser: Sending sms - Delivery_method: smstrade - Sms: (Sms ActionSmser::SmstradeTest::MockSms.basic_sms - From: "4917212341234", To: ["4915112341234", "4917812341234"], Body: "Body with ümläüts.", Valid: true)
|
65734
|
+
ActionSmser: Smstrade delivery http ||| /?key=api-key-here&from=4917212341234&to=4915112341234&message=Body+with+%C3%BCml%C3%A4%C3%BCts.&route=gold&debug=1&cost=1&message_id=1&count=1&charset=utf-8 ||| #<Mock:0xa1f3218>
|
65735
|
+
ActionSmser: 100
|
65736
|
+
123456789
|
65737
|
+
0.064
|
65738
|
+
1
|
65739
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
65740
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Body with ümläüts."], ["created_at", Mon, 13 Jan 2014 13:21:14 UTC +00:00], ["from", "4917212341234"], ["gateway", "smstrade"], ["log", "2014-01-13 15:21:14: LOCAL_SENT\n"], ["msg_id", "123456789"], ["sms_type", "ActionSmser::SmstradeTest::MockSms.basic_sms"], ["status", "LOCAL_SENT"], ["status_updated_at", Mon, 13 Jan 2014 13:21:14 UTC +00:00], ["to", "4915112341234"], ["updated_at", Mon, 13 Jan 2014 13:21:14 UTC +00:00]]
|
65741
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
65742
|
+
ActionSmser: Smstrade delivery http ||| /?key=api-key-here&from=4917212341234&to=4917812341234&message=Body+with+%C3%BCml%C3%A4%C3%BCts.&route=gold&debug=1&cost=1&message_id=1&count=1&charset=utf-8 ||| #<Mock:0xa1f3218>
|
65743
|
+
ActionSmser: 100
|
65744
|
+
123456789
|
65745
|
+
0.064
|
65746
|
+
1
|
65747
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
65748
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Body with ümläüts."], ["created_at", Mon, 13 Jan 2014 13:21:14 UTC +00:00], ["from", "4917212341234"], ["gateway", "smstrade"], ["log", "2014-01-13 15:21:14: LOCAL_SENT\n"], ["msg_id", "123456789"], ["sms_type", "ActionSmser::SmstradeTest::MockSms.basic_sms"], ["status", "LOCAL_SENT"], ["status_updated_at", Mon, 13 Jan 2014 13:21:14 UTC +00:00], ["to", "4917812341234"], ["updated_at", Mon, 13 Jan 2014 13:21:14 UTC +00:00]]
|
65749
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
65750
|
+
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "action_smser_delivery_reports"[0m
|
65751
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
65752
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
65753
|
+
--------------------------------------------------------
|
65754
|
+
ActionSmser::TestArrayTest: test_should_add_to_TestArray
|
65755
|
+
--------------------------------------------------------
|
65756
|
+
ActionSmser: Sending sms - Delivery_method: test_array - Sms: (Sms ActionSmser::TestArrayTest::MockSms.basic_sms - From: "555666", To: ["555123555", "123555123"], Body: "Body with ääkköset end", Valid: true)
|
65757
|
+
ActionSmser: ActionSmser::DeliveryMethods::TestArray.deliveries added message, no real delivery.
|
65758
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
65759
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
65760
|
+
----------------------------------------------------------
|
65761
|
+
ActionSmser::TestArrayTest: test_should_be_able_to_deliver
|
65762
|
+
----------------------------------------------------------
|
65763
|
+
ActionSmser: Sending sms - Delivery_method: test_array - Sms: (Sms ActionSmser::TestArrayTest::MockSms.basic_sms - From: "555666", To: ["555123555", "123555123"], Body: "Body with ääkköset end", Valid: true)
|
65764
|
+
ActionSmser: ActionSmser::DeliveryMethods::TestArray.deliveries added message, no real delivery.
|
65765
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
65766
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
65767
|
+
-------------------------------------------------------------
|
65768
|
+
ActionSmser::TestArrayTest: test_with_saving_delivery_reports
|
65769
|
+
-------------------------------------------------------------
|
65770
|
+
ActionSmser: Sending sms - Delivery_method: test_array - Sms: (Sms ActionSmser::TestArrayTest::MockSms.basic_sms - From: "555666", To: ["555123555", "123555123"], Body: "Body with ääkköset end", Valid: true)
|
65771
|
+
ActionSmser: ActionSmser::DeliveryMethods::TestArray.deliveries added message, no real delivery.
|
65772
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "action_smser_delivery_reports"
|
65773
|
+
ActionSmser: Sending sms - Delivery_method: test_array - Sms: (Sms ActionSmser::TestArrayTest::MockSms.basic_sms - From: "555666", To: ["555123555", "123555123"], Body: "Body with ääkköset end", Valid: true)
|
65774
|
+
ActionSmser: ActionSmser::DeliveryMethods::TestArray.deliveries added message, no real delivery.
|
65775
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
65776
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Body with ääkköset end"], ["created_at", Mon, 13 Jan 2014 13:21:14 UTC +00:00], ["from", "555666"], ["gateway", "test_array"], ["log", "2014-01-13 15:21:14: LOCAL_SENT\n"], ["msg_id", "test_array_id_24095176"], ["sms_type", "ActionSmser::TestArrayTest::MockSms.basic_sms"], ["status", "LOCAL_SENT"], ["status_updated_at", Mon, 13 Jan 2014 13:21:14 UTC +00:00], ["to", "555123555"], ["updated_at", Mon, 13 Jan 2014 13:21:14 UTC +00:00]]
|
65777
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
65778
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
65779
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Body with ääkköset end"], ["created_at", Mon, 13 Jan 2014 13:21:14 UTC +00:00], ["from", "555666"], ["gateway", "test_array"], ["log", "2014-01-13 15:21:14: LOCAL_SENT\n"], ["msg_id", "test_array_id_50900705"], ["sms_type", "ActionSmser::TestArrayTest::MockSms.basic_sms"], ["status", "LOCAL_SENT"], ["status_updated_at", Mon, 13 Jan 2014 13:21:14 UTC +00:00], ["to", "123555123"], ["updated_at", Mon, 13 Jan 2014 13:21:14 UTC +00:00]]
|
65780
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
65781
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "action_smser_delivery_reports"[0m
|
65782
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
65783
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
65784
|
+
---------------------------
|
65785
|
+
ActionSmserTest: test_truth
|
65786
|
+
---------------------------
|
65787
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
65788
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
65789
|
+
---------------------------------------------------------
|
65790
|
+
NavigationTest: test_basic_gateway_commit_delivery_report
|
65791
|
+
---------------------------------------------------------
|
65792
|
+
Started GET "/action_smser/delivery_reports/gateway_commit/example_gateway" for 127.0.0.1 at 2014-01-13 15:21:14 +0200
|
65793
|
+
Processing by ActionSmser::DeliveryReportsController#gateway_commit as HTML
|
65794
|
+
Parameters: {"gateway"=>"example_gateway"}
|
65795
|
+
Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
|
65796
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
65797
|
+
[1m[36m (0.2ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [0m
|
65798
|
+
[1m[35m (0.1ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
65799
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
65800
|
+
Migrating to CreateActionSmserDeliveryReports (20120102215215)
|
65801
|
+
[1m[35m (0.1ms)[0m begin transaction
|
65802
|
+
[1m[36m (0.2ms)[0m [1mCREATE TABLE "action_smser_delivery_reports" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "msg_id" varchar(255), "status" varchar(255), "status_updated_at" datetime, "sms_type" varchar(255), "log" text, "to" varchar(255), "from" varchar(255), "body" varchar(255), "gateway" varchar(255), "re_delivery_of_delivery_report_id" integer, "re_delivered" boolean, "created_at" datetime, "updated_at" datetime) [0m
|
65803
|
+
[1m[35m (0.1ms)[0m CREATE INDEX "index_action_smser_delivery_reports_on_msg_id" ON "action_smser_delivery_reports" ("msg_id")
|
65804
|
+
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20120102215215"]]
|
65805
|
+
[1m[35m (0.0ms)[0m commit transaction
|
65806
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
65807
|
+
---------------------------------------------------------------------------
|
65808
|
+
ActionSmser::BaseTest: test_after_delivery_should_be_called_if_it's_present
|
65809
|
+
---------------------------------------------------------------------------
|
65810
|
+
ActionSmser: Sending sms - Delivery_method: test_array - Sms: (Sms ActionSmser::BaseTest::MockSms.basic_sms - From: "555666", To: ["555123555", "123", "+358123555123"], Body: "Body with ääkköset end", Valid: true)
|
65811
|
+
ActionSmser: ActionSmser::DeliveryMethods::TestArray.deliveries added message, no real delivery.
|
65812
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
65813
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
65814
|
+
----------------------------------------------------------------------------
|
65815
|
+
ActionSmser::BaseTest: test_before_delivery_should_be_called_if_it's_present
|
65816
|
+
----------------------------------------------------------------------------
|
65817
|
+
ActionSmser: Sending sms - Delivery_method: test_array - Sms: (Sms ActionSmser::BaseTest::MockSms.basic_sms - From: "555666", To: ["555123555", "123", "+358123555123"], Body: "Body with ääkköset end", Valid: true)
|
65818
|
+
ActionSmser: ActionSmser::DeliveryMethods::TestArray.deliveries added message, no real delivery.
|
65819
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
65820
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
65821
|
+
--------------------------------------------------------------------------------------------
|
65822
|
+
ActionSmser::BaseTest: test_body_should_be_cropped_to_500_chars,_limit_extra_looong_messages
|
65823
|
+
--------------------------------------------------------------------------------------------
|
65824
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
65825
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
65826
|
+
-------------------------------------------------------------
|
65827
|
+
ActionSmser::BaseTest: test_body_should_be_possible_to_encode
|
65828
|
+
-------------------------------------------------------------
|
65829
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
65830
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
65831
|
+
----------------------------------------------------------------------
|
65832
|
+
ActionSmser::BaseTest: test_from_encoded_should_remove_leading_+_and_0
|
65833
|
+
----------------------------------------------------------------------
|
65834
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
65835
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
65836
|
+
--------------------------------------------------------------------------------------------------------
|
65837
|
+
ActionSmser::BaseTest: test_message_real_crop_should_return_cropped_message_with_sms_chars_taken_account
|
65838
|
+
--------------------------------------------------------------------------------------------------------
|
65839
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
65840
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
65841
|
+
-----------------------------------------------------------------------------
|
65842
|
+
ActionSmser::BaseTest: test_message_real_length_should_return_real_sms_lenght
|
65843
|
+
-----------------------------------------------------------------------------
|
65844
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
65845
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
65846
|
+
----------------------------------------------------------------
|
65847
|
+
ActionSmser::BaseTest: test_receivers_should_be_joined_by_commas
|
65848
|
+
----------------------------------------------------------------
|
65849
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
65850
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
65851
|
+
--------------------------------------------------------
|
65852
|
+
ActionSmser::BaseTest: test_should_be_able_to_change_ttl
|
65853
|
+
--------------------------------------------------------
|
65854
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
65855
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
65856
|
+
--------------------------------------------------------------
|
65857
|
+
ActionSmser::BaseTest: test_should_be_ok_with_single_receivers
|
65858
|
+
--------------------------------------------------------------
|
65859
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
65860
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
65861
|
+
-----------------------------------------------
|
65862
|
+
ActionSmser::BaseTest: test_should_be_valid_sms
|
65863
|
+
-----------------------------------------------
|
65864
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
65865
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
65866
|
+
-------------------------------------------------------------------------------------
|
65867
|
+
ActionSmser::BaseTest: test_should_have_copied_the_delivery_options_when_initializing
|
65868
|
+
-------------------------------------------------------------------------------------
|
65869
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
65870
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
65871
|
+
------------------------------------------------------
|
65872
|
+
ActionSmser::BaseTest: test_should_have_saved_sms_type
|
65873
|
+
------------------------------------------------------
|
65874
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
65875
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
65876
|
+
---------------------------------------------------------------------
|
65877
|
+
ActionSmser::BaseTest: test_should_have_test_array_as_delivery_method
|
65878
|
+
---------------------------------------------------------------------
|
65879
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
65880
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
65881
|
+
----------------------------------------------------------------
|
65882
|
+
ActionSmser::BaseTest: test_should_not_be_valid_if_no_recipients
|
65883
|
+
----------------------------------------------------------------
|
65884
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
65885
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
65886
|
+
-------------------------------------------------------------
|
65887
|
+
ActionSmser::BaseTest: test_ttl_should_be_24_hours_by_default
|
65888
|
+
-------------------------------------------------------------
|
65889
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
65890
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
65891
|
+
----------------------------------------------------------------------------------------------
|
65892
|
+
ActionSmser::DelayedJobTest: test_should_be_able_to_deliver_and_call_enqueue_for_all_receivers
|
65893
|
+
----------------------------------------------------------------------------------------------
|
65894
|
+
ActionSmser: Sending sms - Delivery_method: delayed_job - Sms: (Sms ActionSmser::DelayedJobTest::MockSms.basic_sms - From: "555666", To: ["555123555", "123555123"], Body: "Body with ääkköset end", Valid: true)
|
65895
|
+
ActionSmser: Delivering sms by delayed_job
|
65896
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
65897
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
65898
|
+
-------------------------------------------------------------
|
65899
|
+
ActionSmser::DelayedJobTest: test_test_that_serializing_is_ok
|
65900
|
+
-------------------------------------------------------------
|
65901
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
65902
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
65903
|
+
-------------------------------------------------------------------
|
65904
|
+
ActionSmser::DeliveryReportTest: test_build_DeliveryReport_from_sms
|
65905
|
+
-------------------------------------------------------------------
|
65906
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
65907
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
65908
|
+
------------------------------------------------------
|
65909
|
+
ActionSmser::DeliveryReportTest: test_create_from_save
|
65910
|
+
------------------------------------------------------
|
65911
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "action_smser_delivery_reports"
|
65912
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
65913
|
+
[1m[35mSQL (3.2ms)[0m INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Body with ääkköset end"], ["created_at", Mon, 13 Jan 2014 13:23:38 UTC +00:00], ["from", "555666"], ["gateway", "test_array"], ["log", "2014-01-13 15:23:38: LOCAL_SENT\n"], ["msg_id", "msg_id_a"], ["sms_type", "ActionSmser::DeliveryReportTest::MockSms.basic_sms"], ["status", "LOCAL_SENT"], ["status_updated_at", Mon, 13 Jan 2014 13:23:38 UTC +00:00], ["to", "123"], ["updated_at", Mon, 13 Jan 2014 13:23:38 UTC +00:00]]
|
65914
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
65915
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "action_smser_delivery_reports"
|
65916
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
65917
|
+
[1m[35m (0.0ms)[0m begin transaction
|
65918
|
+
-----------------------------------------------------------------
|
65919
|
+
ActionSmser::DeliveryReportTest: test_re_deliver_with_simple_http
|
65920
|
+
-----------------------------------------------------------------
|
65921
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
65922
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Body with ääkköset end"], ["created_at", Mon, 13 Jan 2014 13:23:38 UTC +00:00], ["from", "555666"], ["gateway", "test_array"], ["log", "2014-01-13 15:23:38: LOCAL_SENT\n"], ["msg_id", "msg_id_a"], ["sms_type", "ActionSmser::DeliveryReportTest::MockSms.basic_sms"], ["status", "LOCAL_SENT"], ["status_updated_at", Mon, 13 Jan 2014 13:23:38 UTC +00:00], ["to", "123"], ["updated_at", Mon, 13 Jan 2014 13:23:38 UTC +00:00]]
|
65923
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
65924
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
65925
|
+
[1m[36mSQL (0.3ms)[0m [1mUPDATE "action_smser_delivery_reports" SET "gateway" = ?, "updated_at" = ? WHERE "action_smser_delivery_reports"."id" = 1[0m [["gateway", "some_delivery"], ["updated_at", Mon, 13 Jan 2014 13:23:38 UTC +00:00]]
|
65926
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
65927
|
+
[1m[36mActionSmser::DeliveryReport Load (0.1ms)[0m [1mSELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."id" = ? LIMIT 1[0m [["id", 1]]
|
65928
|
+
ActionSmser: Re_delivering: #<ActionSmser::DeliveryReport id: 1, msg_id: "msg_id_a", status: "LOCAL_SENT", status_updated_at: "2014-01-13 13:23:38", sms_type: "ActionSmser::DeliveryReportTest::MockSms.basic_sms", log: "2014-01-13 15:23:38: LOCAL_SENT\n", to: "123", from: "555666", body: "Body with ääkköset end", gateway: "some_delivery", re_delivery_of_delivery_report_id: nil, re_delivered: nil, created_at: "2014-01-13 13:23:38", updated_at: "2014-01-13 13:23:38">
|
65929
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
65930
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "action_smser_delivery_reports" SET "re_delivered" = ?, "updated_at" = ? WHERE "action_smser_delivery_reports"."id" = 1[0m [["re_delivered", true], ["updated_at", Mon, 13 Jan 2014 13:23:38 UTC +00:00]]
|
65931
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
65932
|
+
[1m[36mActionSmser::DeliveryReport Load (0.0ms)[0m [1mSELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."id" = ? LIMIT 1[0m [["id", 1]]
|
65933
|
+
ActionSmser: Sending sms - Delivery_method: test_array - Sms: (Sms ActionSmser::DeliveryReportTest::MockSms.basic_sms.re_delivery - From: "555666", To: "123", Body: "Body with ääkköset end", Valid: true)
|
65934
|
+
ActionSmser: ActionSmser::DeliveryMethods::TestArray.deliveries added message, no real delivery.
|
65935
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
65936
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "re_delivery_of_delivery_report_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Body with ääkköset end"], ["created_at", Mon, 13 Jan 2014 13:23:38 UTC +00:00], ["from", "555666"], ["gateway", "test_array"], ["log", "2014-01-13 15:23:38: LOCAL_SENT\n"], ["msg_id", "test_array_id_40264468"], ["re_delivery_of_delivery_report_id", 1], ["sms_type", "ActionSmser::DeliveryReportTest::MockSms.basic_sms.re_delivery"], ["status", "LOCAL_SENT"], ["status_updated_at", Mon, 13 Jan 2014 13:23:38 UTC +00:00], ["to", "123"], ["updated_at", Mon, 13 Jan 2014 13:23:38 UTC +00:00]]
|
65937
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
65938
|
+
[1m[36mActionSmser::DeliveryReport Load (0.1ms)[0m [1mSELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" ORDER BY "action_smser_delivery_reports"."id" DESC LIMIT 1[0m
|
65939
|
+
[1m[35mActionSmser::DeliveryReport Load (0.2ms)[0m SELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."re_delivery_of_delivery_report_id" = ? ORDER BY "action_smser_delivery_reports"."id" ASC LIMIT 1 [["re_delivery_of_delivery_report_id", 1]]
|
65940
|
+
[1m[36mActionSmser::DeliveryReport Load (0.2ms)[0m [1mSELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."id" = ? ORDER BY "action_smser_delivery_reports"."id" ASC LIMIT 1[0m [["id", 1]]
|
65941
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
65942
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
65943
|
+
--------------------------------------------
|
65944
|
+
ActionSmser::DeliveryReportTest: test_to_sms
|
65945
|
+
--------------------------------------------
|
65946
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
65947
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Body with ääkköset end"], ["created_at", Mon, 13 Jan 2014 13:23:38 UTC +00:00], ["from", "555666"], ["gateway", "test_array"], ["log", "2014-01-13 15:23:38: LOCAL_SENT\n"], ["msg_id", "msg_id_a"], ["sms_type", "ActionSmser::DeliveryReportTest::MockSms.basic_sms"], ["status", "LOCAL_SENT"], ["status_updated_at", Mon, 13 Jan 2014 13:23:38 UTC +00:00], ["to", "123"], ["updated_at", Mon, 13 Jan 2014 13:23:38 UTC +00:00]]
|
65948
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
65949
|
+
[1m[36mActionSmser::DeliveryReport Load (0.0ms)[0m [1mSELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."id" = ? LIMIT 1[0m [["id", 1]]
|
65950
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
65951
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
65952
|
+
-----------------------------------------------------
|
65953
|
+
ActionSmser::DeliveryReportTest: test_updating_status
|
65954
|
+
-----------------------------------------------------
|
65955
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
65956
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "action_smser_delivery_reports" ("created_at", "log", "status", "status_updated_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["created_at", Mon, 13 Jan 2014 13:23:38 UTC +00:00], ["log", "2014-01-13 15:23:38: LOCAL_TEST\n"], ["status", "LOCAL_TEST"], ["status_updated_at", Mon, 13 Jan 2014 13:23:38 UTC +00:00], ["updated_at", Mon, 13 Jan 2014 13:23:38 UTC +00:00]]
|
65957
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
65958
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
65959
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "action_smser_delivery_reports" SET "status" = ?, "status_updated_at" = ?, "log" = ?, "updated_at" = ? WHERE "action_smser_delivery_reports"."id" = 1 [["status", "TEST_2"], ["status_updated_at", Mon, 13 Jan 2014 13:23:38 UTC +00:00], ["log", "2014-01-13 15:23:38: LOCAL_TEST\n2014-01-13 15:23:38: TEST_2\n"], ["updated_at", Mon, 13 Jan 2014 13:23:38 UTC +00:00]]
|
65960
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
65961
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
65962
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
65963
|
+
--------------------------------------------------------------------------------
|
65964
|
+
ActionSmser::DeliveryReportsControllerTest: test_gateway_commit_with_existing_dr
|
65965
|
+
--------------------------------------------------------------------------------
|
65966
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
65967
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "action_smser_delivery_reports" ("created_at", "log", "msg_id", "status", "status_updated_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 13 Jan 2014 13:23:38 UTC +00:00], ["log", "2014-01-13 15:23:38: ORIGINAL_STATUS\n"], ["msg_id", "102010314204056202"], ["status", "ORIGINAL_STATUS"], ["status_updated_at", Mon, 13 Jan 2014 13:23:38 UTC +00:00], ["updated_at", Mon, 13 Jan 2014 13:23:38 UTC +00:00]]
|
65968
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
65969
|
+
Processing by ActionSmser::DeliveryReportsController#gateway_commit as HTML
|
65970
|
+
Parameters: {"gateway"=>"test_gateway", "DeliveryReport"=>{"message"=>{"id"=>"102010314204056202", "donedate"=>"2012/01/03 14:20:45", "sentdate"=>"2012/01/03 14:20:40", "status"=>"DELIVERED"}}}
|
65971
|
+
ActionSmser: Gateway_commit found parser for gateway: test_gateway
|
65972
|
+
[1m[36mActionSmser::DeliveryReport Load (0.1ms)[0m [1mSELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."msg_id" = '102010314204056202' ORDER BY "action_smser_delivery_reports"."id" ASC LIMIT 1[0m
|
65973
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
65974
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "action_smser_delivery_reports" SET "status" = ?, "status_updated_at" = ?, "log" = ?, "updated_at" = ? WHERE "action_smser_delivery_reports"."id" = 1[0m [["status", "DELIVERED"], ["status_updated_at", Mon, 13 Jan 2014 13:23:38 UTC +00:00], ["log", "2014-01-13 15:23:38: ORIGINAL_STATUS\n2014-01-13 15:23:38: DELIVERED\n"], ["updated_at", Mon, 13 Jan 2014 13:23:38 UTC +00:00]]
|
65975
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
65976
|
+
ActionSmser: Gateway_commit updated item with id: 102010314204056202, params: {"msg_id"=>"102010314204056202", "status"=>"DELIVERED"}
|
65977
|
+
Rendered text template (0.0ms)
|
65978
|
+
Completed 200 OK in 3ms (Views: 0.4ms | ActiveRecord: 0.3ms)
|
65979
|
+
[1m[36mActionSmser::DeliveryReport Load (0.1ms)[0m [1mSELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."id" = ? LIMIT 1[0m [["id", 1]]
|
65980
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
65981
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
65982
|
+
-------------------------------------------------------------------------------------
|
65983
|
+
ActionSmser::DeliveryReportsControllerTest: test_gateway_commit_with_multiple_records
|
65984
|
+
-------------------------------------------------------------------------------------
|
65985
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
65986
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "action_smser_delivery_reports" ("created_at", "log", "msg_id", "status", "status_updated_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 13 Jan 2014 13:23:38 UTC +00:00], ["log", "2014-01-13 15:23:38: ORIGINAL_STATUS\n"], ["msg_id", "102010314204056202"], ["status", "ORIGINAL_STATUS"], ["status_updated_at", Mon, 13 Jan 2014 13:23:38 UTC +00:00], ["updated_at", Mon, 13 Jan 2014 13:23:38 UTC +00:00]]
|
65987
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
65988
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
65989
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "action_smser_delivery_reports" ("created_at", "log", "msg_id", "status", "status_updated_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 13 Jan 2014 13:23:38 UTC +00:00], ["log", "2014-01-13 15:23:38: ORIGINAL_STATUS\n"], ["msg_id", "99999999999999999"], ["status", "ORIGINAL_STATUS"], ["status_updated_at", Mon, 13 Jan 2014 13:23:38 UTC +00:00], ["updated_at", Mon, 13 Jan 2014 13:23:38 UTC +00:00]]
|
65990
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
65991
|
+
Processing by ActionSmser::DeliveryReportsController#gateway_commit as HTML
|
65992
|
+
Parameters: {"gateway"=>"test_gateway", "DeliveryReport"=>{"message"=>[{"id"=>"102010314204056202", "status"=>"DELIVERED"}, {"id"=>"99999999999999999", "status"=>"DELIVERED"}]}}
|
65993
|
+
ActionSmser: Gateway_commit found parser for gateway: test_gateway
|
65994
|
+
[1m[35mActionSmser::DeliveryReport Load (0.1ms)[0m SELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."msg_id" = '102010314204056202' ORDER BY "action_smser_delivery_reports"."id" ASC LIMIT 1
|
65995
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
65996
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "action_smser_delivery_reports" SET "status" = ?, "status_updated_at" = ?, "log" = ?, "updated_at" = ? WHERE "action_smser_delivery_reports"."id" = 1 [["status", "DELIVERED"], ["status_updated_at", Mon, 13 Jan 2014 13:23:38 UTC +00:00], ["log", "2014-01-13 15:23:38: ORIGINAL_STATUS\n2014-01-13 15:23:38: DELIVERED\n"], ["updated_at", Mon, 13 Jan 2014 13:23:38 UTC +00:00]]
|
65997
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
65998
|
+
ActionSmser: Gateway_commit updated item with id: 102010314204056202, params: {"msg_id"=>"102010314204056202", "status"=>"DELIVERED"}
|
65999
|
+
[1m[35mActionSmser::DeliveryReport Load (0.1ms)[0m SELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."msg_id" = '99999999999999999' ORDER BY "action_smser_delivery_reports"."id" ASC LIMIT 1
|
66000
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
66001
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "action_smser_delivery_reports" SET "status" = ?, "status_updated_at" = ?, "log" = ?, "updated_at" = ? WHERE "action_smser_delivery_reports"."id" = 2 [["status", "DELIVERED"], ["status_updated_at", Mon, 13 Jan 2014 13:23:38 UTC +00:00], ["log", "2014-01-13 15:23:38: ORIGINAL_STATUS\n2014-01-13 15:23:38: DELIVERED\n"], ["updated_at", Mon, 13 Jan 2014 13:23:38 UTC +00:00]]
|
66002
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
66003
|
+
ActionSmser: Gateway_commit updated item with id: 99999999999999999, params: {"msg_id"=>"99999999999999999", "status"=>"DELIVERED"}
|
66004
|
+
Completed 200 OK in 4ms (Views: 0.2ms | ActiveRecord: 0.6ms)
|
66005
|
+
[1m[35mActionSmser::DeliveryReport Load (0.0ms)[0m SELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."id" = ? LIMIT 1 [["id", 1]]
|
66006
|
+
[1m[36mActionSmser::DeliveryReport Load (0.0ms)[0m [1mSELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."id" = ? LIMIT 1[0m [["id", 2]]
|
66007
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
66008
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
66009
|
+
----------------------------------------------------------------------------------
|
66010
|
+
ActionSmser::DeliveryReportsControllerTest: test_gateway_commit_without_any_parser
|
66011
|
+
----------------------------------------------------------------------------------
|
66012
|
+
Processing by ActionSmser::DeliveryReportsController#gateway_commit as HTML
|
66013
|
+
Parameters: {"gateway"=>"gateway_not_found", "DeliveryReport"=>{"message"=>{"id"=>"wrongid", "donedate"=>"2012/01/03 14:20:45", "sentdate"=>"2012/01/03 14:20:40", "status"=>"DELIVERED"}}}
|
66014
|
+
Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms)
|
66015
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
66016
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
66017
|
+
--------------------------------------------------------------------------
|
66018
|
+
ActionSmser::DeliveryReportsControllerTest: test_gateway_commit_without_dr
|
66019
|
+
--------------------------------------------------------------------------
|
66020
|
+
Processing by ActionSmser::DeliveryReportsController#gateway_commit as HTML
|
66021
|
+
Parameters: {"gateway"=>"test_gateway", "DeliveryReport"=>{"message"=>{"id"=>"wrongid", "donedate"=>"2012/01/03 14:20:45", "sentdate"=>"2012/01/03 14:20:40", "status"=>"DELIVERED"}}}
|
66022
|
+
ActionSmser: Gateway_commit found parser for gateway: test_gateway
|
66023
|
+
[1m[35mActionSmser::DeliveryReport Load (0.1ms)[0m SELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."msg_id" = 'wrongid' ORDER BY "action_smser_delivery_reports"."id" ASC LIMIT 1
|
66024
|
+
ActionSmser: Gateway_commit not found item with id: wrongid, params: {"msg_id"=>"wrongid", "status"=>"DELIVERED"}
|
66025
|
+
Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
|
66026
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
66027
|
+
[1m[35m (0.0ms)[0m begin transaction
|
66028
|
+
-----------------------------------------------------------------------------------------------------
|
66029
|
+
ActionSmser::DeliveryReportsControllerTest: test_index_with_admin_access_lambda_with_right_login_info
|
66030
|
+
-----------------------------------------------------------------------------------------------------
|
66031
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
66032
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "action_smser_delivery_reports" ("created_at", "msg_id", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 13 Jan 2014 13:23:38 UTC +00:00], ["msg_id", "idtest_9"], ["updated_at", Mon, 13 Jan 2014 13:23:38 UTC +00:00]]
|
66033
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
66034
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
66035
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "action_smser_delivery_reports" ("created_at", "msg_id", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 13 Jan 2014 13:23:38 UTC +00:00], ["msg_id", "idtest_7"], ["updated_at", Mon, 13 Jan 2014 13:23:38 UTC +00:00]]
|
66036
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
66037
|
+
Processing by ActionSmser::DeliveryReportsController#index as HTML
|
66038
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2014-01-06 13:23:38.931772' AND '2014-01-13 13:13:38.931921')[0m
|
66039
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) AS count_all, gateway AS gateway FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2014-01-06 13:23:38.931772' AND '2014-01-13 13:13:38.931921') GROUP BY gateway
|
66040
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2014-01-06 13:23:38.931772' AND '2014-01-13 13:13:38.931921')[0m
|
66041
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) AS count_all, status AS status FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2014-01-06 13:23:38.931772' AND '2014-01-13 13:13:38.931921') GROUP BY status
|
66042
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2014-01-06 13:23:38.931772' AND '2014-01-13 13:13:38.931921')[0m
|
66043
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) AS count_all, sms_type AS sms_type FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2014-01-06 13:23:38.931772' AND '2014-01-13 13:13:38.931921') GROUP BY sms_type
|
66044
|
+
Completed 200 OK in 11ms (Views: 10.3ms | ActiveRecord: 0.5ms)
|
66045
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
66046
|
+
[1m[35m (0.0ms)[0m begin transaction
|
66047
|
+
--------------------------------------------------------------------------------
|
66048
|
+
ActionSmser::DeliveryReportsControllerTest: test_index_with_always_enabled_admin
|
66049
|
+
--------------------------------------------------------------------------------
|
66050
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
66051
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "action_smser_delivery_reports" ("created_at", "msg_id", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 13 Jan 2014 13:23:38 UTC +00:00], ["msg_id", "idtest_4"], ["updated_at", Mon, 13 Jan 2014 13:23:38 UTC +00:00]]
|
66052
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
66053
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
66054
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "action_smser_delivery_reports" ("created_at", "msg_id", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 13 Jan 2014 13:23:38 UTC +00:00], ["msg_id", "idtest_3"], ["updated_at", Mon, 13 Jan 2014 13:23:38 UTC +00:00]]
|
66055
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
66056
|
+
Processing by ActionSmser::DeliveryReportsController#index as HTML
|
66057
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2014-01-06 13:23:38.946282' AND '2014-01-13 13:13:38.946389')[0m
|
66058
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) AS count_all, gateway AS gateway FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2014-01-06 13:23:38.946282' AND '2014-01-13 13:13:38.946389') GROUP BY gateway
|
66059
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2014-01-06 13:23:38.946282' AND '2014-01-13 13:13:38.946389')[0m
|
66060
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) AS count_all, status AS status FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2014-01-06 13:23:38.946282' AND '2014-01-13 13:13:38.946389') GROUP BY status
|
66061
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2014-01-06 13:23:38.946282' AND '2014-01-13 13:13:38.946389')[0m
|
66062
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) AS count_all, sms_type AS sms_type FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2014-01-06 13:23:38.946282' AND '2014-01-13 13:13:38.946389') GROUP BY sms_type
|
66063
|
+
Completed 200 OK in 6ms (Views: 5.9ms | ActiveRecord: 0.4ms)
|
66064
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
66065
|
+
[1m[35m (0.0ms)[0m begin transaction
|
66066
|
+
--------------------------------------------------------------------------------------------------------
|
66067
|
+
ActionSmser::DeliveryReportsControllerTest: test_index_with_forbidden_admin_access_(default_access_mode)
|
66068
|
+
--------------------------------------------------------------------------------------------------------
|
66069
|
+
Processing by ActionSmser::DeliveryReportsController#index as HTML
|
66070
|
+
Filter chain halted as :admin_access_only rendered or redirected
|
66071
|
+
Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)
|
66072
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
66073
|
+
[1m[35m (0.1ms)[0m begin transaction
|
66074
|
+
-------------------------------------------------------------------------------
|
66075
|
+
ActionSmser::DeliveryReportsControllerTest: test_list_with_always_enabled_admin
|
66076
|
+
-------------------------------------------------------------------------------
|
66077
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
66078
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "action_smser_delivery_reports" ("created_at", "msg_id", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 13 Jan 2014 13:23:38 UTC +00:00], ["msg_id", "idtest_8"], ["updated_at", Mon, 13 Jan 2014 13:23:38 UTC +00:00]]
|
66079
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
66080
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
66081
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "action_smser_delivery_reports" ("created_at", "msg_id", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 13 Jan 2014 13:23:38 UTC +00:00], ["msg_id", "idtest_8"], ["updated_at", Mon, 13 Jan 2014 13:23:38 UTC +00:00]]
|
66082
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
66083
|
+
Processing by ActionSmser::DeliveryReportsController#list as HTML
|
66084
|
+
[1m[36mActionSmser::DeliveryReport Load (0.2ms)[0m [1mSELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" ORDER BY created_at DESC LIMIT 20 OFFSET 0[0m
|
66085
|
+
Completed 200 OK in 4ms (Views: 3.6ms | ActiveRecord: 0.2ms)
|
66086
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
66087
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
66088
|
+
------------------------------------------------------------------------------
|
66089
|
+
ActionSmser::NexmoTest: test_delivery_path_should_have_unicode_set_when_needed
|
66090
|
+
------------------------------------------------------------------------------
|
66091
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
66092
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
66093
|
+
--------------------------------------------------------------------
|
66094
|
+
ActionSmser::NexmoTest: test_gateway_process_delivery_report(params)
|
66095
|
+
--------------------------------------------------------------------
|
66096
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
66097
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
66098
|
+
------------------------------------------------------
|
66099
|
+
ActionSmser::NexmoTest: test_should_be_able_to_deliver
|
66100
|
+
------------------------------------------------------
|
66101
|
+
ActionSmser: Sending sms - Delivery_method: nexmo - Sms: (Sms ActionSmser::NexmoTest::MockSms.basic_sms - From: "555666", To: ["555123555", "123555123"], Body: "Body with ääkköset end", Valid: true)
|
66102
|
+
ActionSmser: Nexmo delivery http ||| /sms/json?username=user&password=pass&ttl=86400000&status-report-req=false&from=555666&to=555123555&text=Body+with+%C3%A4%C3%A4kk%C3%B6set+end ||| #<Mock:0x37a9858>
|
66103
|
+
ActionSmser: {"message-count":"1","messages":[{"message-price":"0.02500000","status":"0","message-id":"0778DE88","remaining-balance":"1.77500000"}]}
|
66104
|
+
ActionSmser: Nexmo delivery http ||| /sms/json?username=user&password=pass&ttl=86400000&status-report-req=false&from=555666&to=123555123&text=Body+with+%C3%A4%C3%A4kk%C3%B6set+end ||| #<Mock:0x37a9858>
|
66105
|
+
ActionSmser: {"message-count":"1","messages":[{"message-price":"0.02500000","status":"0","message-id":"0778DE88","remaining-balance":"1.77500000"}]}
|
66106
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
66107
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
66108
|
+
---------------------------------------------------------
|
66109
|
+
ActionSmser::NexmoTest: test_with_saving_delivery_reports
|
66110
|
+
---------------------------------------------------------
|
66111
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "action_smser_delivery_reports"
|
66112
|
+
ActionSmser: Sending sms - Delivery_method: nexmo - Sms: (Sms ActionSmser::NexmoTest::MockSms.basic_sms - From: "555666", To: ["555123555", "123555123"], Body: "Body with ääkköset end", Valid: true)
|
66113
|
+
ActionSmser: Nexmo delivery http ||| /sms/json?username=user&password=pass&ttl=86400000&status-report-req=true&from=555666&to=555123555&text=Body+with+%C3%A4%C3%A4kk%C3%B6set+end ||| #<Mock:0x6a08510>
|
66114
|
+
ActionSmser: {"message-count":"1","messages":[{"message-price":"0.02500000","status":"0","message-id":"0778DE88","remaining-balance":"1.77500000"}]}
|
66115
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
66116
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Body with ääkköset end"], ["created_at", Mon, 13 Jan 2014 13:23:38 UTC +00:00], ["from", "555666"], ["gateway", "nexmo"], ["log", "2014-01-13 15:23:38: LOCAL_SENT\n"], ["msg_id", "0778DE88"], ["sms_type", "ActionSmser::NexmoTest::MockSms.basic_sms"], ["status", "LOCAL_SENT"], ["status_updated_at", Mon, 13 Jan 2014 13:23:38 UTC +00:00], ["to", "555123555"], ["updated_at", Mon, 13 Jan 2014 13:23:38 UTC +00:00]]
|
66117
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
66118
|
+
ActionSmser: Nexmo delivery http ||| /sms/json?username=user&password=pass&ttl=86400000&status-report-req=true&from=555666&to=123555123&text=Body+with+%C3%A4%C3%A4kk%C3%B6set+end ||| #<Mock:0x6a08510>
|
66119
|
+
ActionSmser: {"message-count":"1","messages":[{"message-price":"0.02500000","status":"0","message-id":"0778DE88","remaining-balance":"1.77500000"}]}
|
66120
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
66121
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Body with ääkköset end"], ["created_at", Mon, 13 Jan 2014 13:23:38 UTC +00:00], ["from", "555666"], ["gateway", "nexmo"], ["log", "2014-01-13 15:23:38: LOCAL_SENT\n"], ["msg_id", "0778DE88"], ["sms_type", "ActionSmser::NexmoTest::MockSms.basic_sms"], ["status", "LOCAL_SENT"], ["status_updated_at", Mon, 13 Jan 2014 13:23:38 UTC +00:00], ["to", "123555123"], ["updated_at", Mon, 13 Jan 2014 13:23:38 UTC +00:00]]
|
66122
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
66123
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "action_smser_delivery_reports"[0m
|
66124
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
66125
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
66126
|
+
-----------------------------------------------------------
|
66127
|
+
ActionSmser::SimpleHttpTest: test_should_be_able_to_deliver
|
66128
|
+
-----------------------------------------------------------
|
66129
|
+
ActionSmser: Sending sms - Delivery_method: simple_http - Sms: (Sms ActionSmser::SimpleHttpTest::MockSms.basic_sms - From: "555666", To: ["555123555", "123555123"], Body: "Body with ääkköset end", Valid: true)
|
66130
|
+
ActionSmser: SimpleHttp delivery ||| /api/sendsms/plain?user=user&password=pass&sender=555666&SMSText=Body+with+%E4%E4kk%F6set+end&GSM=555123555,123555123 ||| #<Mock:0x3786e98>
|
66131
|
+
ActionSmser: id_1234
|
66132
|
+
id_6666
|
66133
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
66134
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
66135
|
+
--------------------------------------------------------------
|
66136
|
+
ActionSmser::SimpleHttpTest: test_with_saving_delivery_reports
|
66137
|
+
--------------------------------------------------------------
|
66138
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "action_smser_delivery_reports"
|
66139
|
+
ActionSmser: Sending sms - Delivery_method: simple_http - Sms: (Sms ActionSmser::SimpleHttpTest::MockSms.basic_sms - From: "555666", To: ["555123555", "123555123"], Body: "Body with ääkköset end", Valid: true)
|
66140
|
+
ActionSmser: SimpleHttp delivery ||| /api/sendsms/plain?user=user&password=pass&sender=555666&SMSText=Body+with+%E4%E4kk%F6set+end&GSM=555123555,123555123 ||| #<Mock:0x730c2d8>
|
66141
|
+
ActionSmser: id_1234
|
66142
|
+
id_6666
|
66143
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
66144
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Body with ääkköset end"], ["created_at", Mon, 13 Jan 2014 13:23:38 UTC +00:00], ["from", "555666"], ["gateway", "simple_http"], ["log", "2014-01-13 15:23:38: LOCAL_SENT\n"], ["msg_id", "id_1234"], ["sms_type", "ActionSmser::SimpleHttpTest::MockSms.basic_sms"], ["status", "LOCAL_SENT"], ["status_updated_at", Mon, 13 Jan 2014 13:23:38 UTC +00:00], ["to", "555123555"], ["updated_at", Mon, 13 Jan 2014 13:23:38 UTC +00:00]]
|
66145
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
66146
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
66147
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Body with ääkköset end"], ["created_at", Mon, 13 Jan 2014 13:23:38 UTC +00:00], ["from", "555666"], ["gateway", "simple_http"], ["log", "2014-01-13 15:23:38: LOCAL_SENT\n"], ["msg_id", "id_6666"], ["sms_type", "ActionSmser::SimpleHttpTest::MockSms.basic_sms"], ["status", "LOCAL_SENT"], ["status_updated_at", Mon, 13 Jan 2014 13:23:38 UTC +00:00], ["to", "123555123"], ["updated_at", Mon, 13 Jan 2014 13:23:38 UTC +00:00]]
|
66148
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
66149
|
+
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "action_smser_delivery_reports"[0m
|
66150
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
66151
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
66152
|
+
---------------------------------------------------------
|
66153
|
+
ActionSmser::SmstradeTest: test_should_be_able_to_deliver
|
66154
|
+
---------------------------------------------------------
|
66155
|
+
ActionSmser: Sending sms - Delivery_method: smstrade - Sms: (Sms ActionSmser::SmstradeTest::MockSms.basic_sms - From: "4917212341234", To: ["4915112341234", "4917812341234"], Body: "Body with ümläüts.", Valid: true)
|
66156
|
+
ActionSmser: Smstrade delivery http ||| /?key=api-key-here&from=4917212341234&to=4915112341234&message=Body+with+%C3%BCml%C3%A4%C3%BCts.&route=gold&debug=1&cost=1&message_id=1&count=1&charset=utf-8 ||| #<Mock:0x7491608>
|
66157
|
+
ActionSmser: 100
|
66158
|
+
123456789
|
66159
|
+
0.064
|
66160
|
+
1
|
66161
|
+
ActionSmser: Smstrade delivery http ||| /?key=api-key-here&from=4917212341234&to=4917812341234&message=Body+with+%C3%BCml%C3%A4%C3%BCts.&route=gold&debug=1&cost=1&message_id=1&count=1&charset=utf-8 ||| #<Mock:0x7491608>
|
66162
|
+
ActionSmser: 100
|
66163
|
+
123456789
|
66164
|
+
0.064
|
66165
|
+
1
|
66166
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
66167
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
66168
|
+
------------------------------------------------------------
|
66169
|
+
ActionSmser::SmstradeTest: test_with_saving_delivery_reports
|
66170
|
+
------------------------------------------------------------
|
66171
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "action_smser_delivery_reports"
|
66172
|
+
ActionSmser: Sending sms - Delivery_method: smstrade - Sms: (Sms ActionSmser::SmstradeTest::MockSms.basic_sms - From: "4917212341234", To: ["4915112341234", "4917812341234"], Body: "Body with ümläüts.", Valid: true)
|
66173
|
+
ActionSmser: Smstrade delivery http ||| /?key=api-key-here&from=4917212341234&to=4915112341234&message=Body+with+%C3%BCml%C3%A4%C3%BCts.&route=gold&debug=1&cost=1&message_id=1&count=1&charset=utf-8 ||| #<Mock:0x48d6e28>
|
66174
|
+
ActionSmser: 100
|
66175
|
+
123456789
|
66176
|
+
0.064
|
66177
|
+
1
|
66178
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
66179
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Body with ümläüts."], ["created_at", Mon, 13 Jan 2014 13:23:38 UTC +00:00], ["from", "4917212341234"], ["gateway", "smstrade"], ["log", "2014-01-13 15:23:38: LOCAL_SENT\n"], ["msg_id", "123456789"], ["sms_type", "ActionSmser::SmstradeTest::MockSms.basic_sms"], ["status", "LOCAL_SENT"], ["status_updated_at", Mon, 13 Jan 2014 13:23:38 UTC +00:00], ["to", "4915112341234"], ["updated_at", Mon, 13 Jan 2014 13:23:38 UTC +00:00]]
|
66180
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
66181
|
+
ActionSmser: Smstrade delivery http ||| /?key=api-key-here&from=4917212341234&to=4917812341234&message=Body+with+%C3%BCml%C3%A4%C3%BCts.&route=gold&debug=1&cost=1&message_id=1&count=1&charset=utf-8 ||| #<Mock:0x48d6e28>
|
66182
|
+
ActionSmser: 100
|
66183
|
+
123456789
|
66184
|
+
0.064
|
66185
|
+
1
|
66186
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
66187
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Body with ümläüts."], ["created_at", Mon, 13 Jan 2014 13:23:38 UTC +00:00], ["from", "4917212341234"], ["gateway", "smstrade"], ["log", "2014-01-13 15:23:38: LOCAL_SENT\n"], ["msg_id", "123456789"], ["sms_type", "ActionSmser::SmstradeTest::MockSms.basic_sms"], ["status", "LOCAL_SENT"], ["status_updated_at", Mon, 13 Jan 2014 13:23:38 UTC +00:00], ["to", "4917812341234"], ["updated_at", Mon, 13 Jan 2014 13:23:38 UTC +00:00]]
|
66188
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
66189
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "action_smser_delivery_reports"[0m
|
66190
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
66191
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
66192
|
+
--------------------------------------------------------
|
66193
|
+
ActionSmser::TestArrayTest: test_should_add_to_TestArray
|
66194
|
+
--------------------------------------------------------
|
66195
|
+
ActionSmser: Sending sms - Delivery_method: test_array - Sms: (Sms ActionSmser::TestArrayTest::MockSms.basic_sms - From: "555666", To: ["555123555", "123555123"], Body: "Body with ääkköset end", Valid: true)
|
66196
|
+
ActionSmser: ActionSmser::DeliveryMethods::TestArray.deliveries added message, no real delivery.
|
66197
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
66198
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
66199
|
+
----------------------------------------------------------
|
66200
|
+
ActionSmser::TestArrayTest: test_should_be_able_to_deliver
|
66201
|
+
----------------------------------------------------------
|
66202
|
+
ActionSmser: Sending sms - Delivery_method: test_array - Sms: (Sms ActionSmser::TestArrayTest::MockSms.basic_sms - From: "555666", To: ["555123555", "123555123"], Body: "Body with ääkköset end", Valid: true)
|
66203
|
+
ActionSmser: ActionSmser::DeliveryMethods::TestArray.deliveries added message, no real delivery.
|
66204
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
66205
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
66206
|
+
-------------------------------------------------------------
|
66207
|
+
ActionSmser::TestArrayTest: test_with_saving_delivery_reports
|
66208
|
+
-------------------------------------------------------------
|
66209
|
+
ActionSmser: Sending sms - Delivery_method: test_array - Sms: (Sms ActionSmser::TestArrayTest::MockSms.basic_sms - From: "555666", To: ["555123555", "123555123"], Body: "Body with ääkköset end", Valid: true)
|
66210
|
+
ActionSmser: ActionSmser::DeliveryMethods::TestArray.deliveries added message, no real delivery.
|
66211
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "action_smser_delivery_reports"
|
66212
|
+
ActionSmser: Sending sms - Delivery_method: test_array - Sms: (Sms ActionSmser::TestArrayTest::MockSms.basic_sms - From: "555666", To: ["555123555", "123555123"], Body: "Body with ääkköset end", Valid: true)
|
66213
|
+
ActionSmser: ActionSmser::DeliveryMethods::TestArray.deliveries added message, no real delivery.
|
66214
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
66215
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Body with ääkköset end"], ["created_at", Mon, 13 Jan 2014 13:23:38 UTC +00:00], ["from", "555666"], ["gateway", "test_array"], ["log", "2014-01-13 15:23:38: LOCAL_SENT\n"], ["msg_id", "test_array_id_96244510"], ["sms_type", "ActionSmser::TestArrayTest::MockSms.basic_sms"], ["status", "LOCAL_SENT"], ["status_updated_at", Mon, 13 Jan 2014 13:23:38 UTC +00:00], ["to", "555123555"], ["updated_at", Mon, 13 Jan 2014 13:23:38 UTC +00:00]]
|
66216
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
66217
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
66218
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Body with ääkköset end"], ["created_at", Mon, 13 Jan 2014 13:23:38 UTC +00:00], ["from", "555666"], ["gateway", "test_array"], ["log", "2014-01-13 15:23:38: LOCAL_SENT\n"], ["msg_id", "test_array_id_61526796"], ["sms_type", "ActionSmser::TestArrayTest::MockSms.basic_sms"], ["status", "LOCAL_SENT"], ["status_updated_at", Mon, 13 Jan 2014 13:23:38 UTC +00:00], ["to", "123555123"], ["updated_at", Mon, 13 Jan 2014 13:23:38 UTC +00:00]]
|
66219
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
66220
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "action_smser_delivery_reports"[0m
|
66221
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
66222
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
66223
|
+
---------------------------
|
66224
|
+
ActionSmserTest: test_truth
|
66225
|
+
---------------------------
|
66226
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
66227
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
66228
|
+
---------------------------------------------------------
|
66229
|
+
NavigationTest: test_basic_gateway_commit_delivery_report
|
66230
|
+
---------------------------------------------------------
|
66231
|
+
Started GET "/action_smser/delivery_reports/gateway_commit/example_gateway" for 127.0.0.1 at 2014-01-13 15:23:38 +0200
|
66232
|
+
Processing by ActionSmser::DeliveryReportsController#gateway_commit as HTML
|
66233
|
+
Parameters: {"gateway"=>"example_gateway"}
|
66234
|
+
Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)
|
66235
|
+
[1m[35m (0.1ms)[0m rollback transaction
|