action_smser 3.1.0 → 3.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/action_smser/version.rb +1 -1
- data/test/dummy/log/test.log +1380 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fe13db0fb291d54f3800445b9d2ad414b1771893
|
4
|
+
data.tar.gz: e1f31fd38168dac2270601d51a65b1b99f3c536b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f6cec9eb7d9675cbf0e233fa1c7b2c12316f6db5d2071a6e31cc12bff47e9dae61ddd3953235930342d89dadafa30144bc0b5651daa221c772553bf3b706c7d2
|
7
|
+
data.tar.gz: 8b89d9e9b5275465ea83a9643566653df80423eedbb537275756fe96079384ac3f39adca294fa0c4c0f126f8a9b48e2455cc9f29d621e6e2a958689acb6cf33b
|
data/lib/action_smser/version.rb
CHANGED
data/test/dummy/log/test.log
CHANGED
@@ -31903,3 +31903,1383 @@ ActionSmser: Delivering sms by delayed_job
|
|
31903
31903
|
ActionSmser::DelayedJobTest: test_test_that_serializing_is_ok
|
31904
31904
|
-------------------------------------------------------------
|
31905
31905
|
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
31906
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
31907
|
+
[1m[35m (0.1ms)[0m begin transaction
|
31908
|
+
-----------------------------------------------------------------------------
|
31909
|
+
ActionSmser::BaseTest: test_message_real_length_should_return_real_sms_lenght
|
31910
|
+
-----------------------------------------------------------------------------
|
31911
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
31912
|
+
[1m[35m (0.0ms)[0m begin transaction
|
31913
|
+
-----------------------------------------------
|
31914
|
+
ActionSmser::BaseTest: test_should_be_valid_sms
|
31915
|
+
-----------------------------------------------
|
31916
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
31917
|
+
[1m[35m (0.0ms)[0m begin transaction
|
31918
|
+
-------------------------------------------------------------
|
31919
|
+
ActionSmser::BaseTest: test_ttl_should_be_24_hours_by_default
|
31920
|
+
-------------------------------------------------------------
|
31921
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
31922
|
+
[1m[35m (0.0ms)[0m begin transaction
|
31923
|
+
-------------------------------------------------------------
|
31924
|
+
ActionSmser::BaseTest: test_body_should_be_possible_to_encode
|
31925
|
+
-------------------------------------------------------------
|
31926
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
31927
|
+
[1m[35m (0.1ms)[0m begin transaction
|
31928
|
+
---------------------------------------------------------------------
|
31929
|
+
ActionSmser::BaseTest: test_should_have_test_array_as_delivery_method
|
31930
|
+
---------------------------------------------------------------------
|
31931
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
31932
|
+
[1m[35m (0.0ms)[0m begin transaction
|
31933
|
+
----------------------------------------------------------------------------
|
31934
|
+
ActionSmser::BaseTest: test_before_delivery_should_be_called_if_it's_present
|
31935
|
+
----------------------------------------------------------------------------
|
31936
|
+
ActionSmser: Sending sms - Delivery_method: test_array - Sms: (Sms ActionSmser::BaseTest::MockSms.basic_sms - From: "555666", To: ["555123555", "123", "+358123555123", "004915112341234", "04917332341111"], Body: "Body with ääkköset end", Valid: true)
|
31937
|
+
ActionSmser: ActionSmser::DeliveryMethods::TestArray.deliveries added message, no real delivery.
|
31938
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
31939
|
+
[1m[35m (0.0ms)[0m begin transaction
|
31940
|
+
--------------------------------------------------------------
|
31941
|
+
ActionSmser::BaseTest: test_should_be_ok_with_single_receivers
|
31942
|
+
--------------------------------------------------------------
|
31943
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
31944
|
+
[1m[35m (0.0ms)[0m begin transaction
|
31945
|
+
----------------------------------------------------------------------
|
31946
|
+
ActionSmser::BaseTest: test_from_encoded_should_remove_leading_+_and_0
|
31947
|
+
----------------------------------------------------------------------
|
31948
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
31949
|
+
[1m[35m (0.0ms)[0m begin transaction
|
31950
|
+
------------------------------------------------------
|
31951
|
+
ActionSmser::BaseTest: test_should_have_saved_sms_type
|
31952
|
+
------------------------------------------------------
|
31953
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
31954
|
+
[1m[35m (0.0ms)[0m begin transaction
|
31955
|
+
---------------------------------------------------------------------------
|
31956
|
+
ActionSmser::BaseTest: test_after_delivery_should_be_called_if_it's_present
|
31957
|
+
---------------------------------------------------------------------------
|
31958
|
+
ActionSmser: Sending sms - Delivery_method: test_array - Sms: (Sms ActionSmser::BaseTest::MockSms.basic_sms - From: "555666", To: ["555123555", "123", "+358123555123", "004915112341234", "04917332341111"], Body: "Body with ääkköset end", Valid: true)
|
31959
|
+
ActionSmser: ActionSmser::DeliveryMethods::TestArray.deliveries added message, no real delivery.
|
31960
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
31961
|
+
[1m[35m (0.0ms)[0m begin transaction
|
31962
|
+
--------------------------------------------------------------------------------------------------------
|
31963
|
+
ActionSmser::BaseTest: test_message_real_crop_should_return_cropped_message_with_sms_chars_taken_account
|
31964
|
+
--------------------------------------------------------------------------------------------------------
|
31965
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
31966
|
+
[1m[35m (0.0ms)[0m begin transaction
|
31967
|
+
--------------------------------------------------------
|
31968
|
+
ActionSmser::BaseTest: test_should_be_able_to_change_ttl
|
31969
|
+
--------------------------------------------------------
|
31970
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
31971
|
+
[1m[35m (0.0ms)[0m begin transaction
|
31972
|
+
--------------------------------------------------------------------------------------------
|
31973
|
+
ActionSmser::BaseTest: test_body_should_be_cropped_to_500_chars,_limit_extra_looong_messages
|
31974
|
+
--------------------------------------------------------------------------------------------
|
31975
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
31976
|
+
[1m[35m (0.0ms)[0m begin transaction
|
31977
|
+
-------------------------------------------------------------------------------------
|
31978
|
+
ActionSmser::BaseTest: test_should_have_copied_the_delivery_options_when_initializing
|
31979
|
+
-------------------------------------------------------------------------------------
|
31980
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
31981
|
+
[1m[35m (0.0ms)[0m begin transaction
|
31982
|
+
----------------------------------------------------------------
|
31983
|
+
ActionSmser::BaseTest: test_should_not_be_valid_if_no_recipients
|
31984
|
+
----------------------------------------------------------------
|
31985
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
31986
|
+
[1m[35m (0.0ms)[0m begin transaction
|
31987
|
+
----------------------------------------------------------------
|
31988
|
+
ActionSmser::BaseTest: test_receivers_should_be_joined_by_commas
|
31989
|
+
----------------------------------------------------------------
|
31990
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
31991
|
+
[1m[35m (0.0ms)[0m begin transaction
|
31992
|
+
---------------------------------------------------------------------
|
31993
|
+
ActionSmser::NexmoTest: test_gateway_process_delivery_report(request)
|
31994
|
+
---------------------------------------------------------------------
|
31995
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
31996
|
+
[1m[35m (0.0ms)[0m begin transaction
|
31997
|
+
------------------------------------------------------------------------------
|
31998
|
+
ActionSmser::NexmoTest: test_delivery_path_should_have_unicode_set_when_needed
|
31999
|
+
------------------------------------------------------------------------------
|
32000
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
32001
|
+
[1m[35m (0.0ms)[0m begin transaction
|
32002
|
+
------------------------------------------------------
|
32003
|
+
ActionSmser::NexmoTest: test_should_be_able_to_deliver
|
32004
|
+
------------------------------------------------------
|
32005
|
+
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)
|
32006
|
+
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:0x4b110a8>
|
32007
|
+
ActionSmser: {"message-count":"1","messages":[{"message-price":"0.02500000","status":"0","message-id":"0778DE88","remaining-balance":"1.77500000"}]}
|
32008
|
+
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:0x4b110a8>
|
32009
|
+
ActionSmser: {"message-count":"1","messages":[{"message-price":"0.02500000","status":"0","message-id":"0778DE88","remaining-balance":"1.77500000"}]}
|
32010
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
32011
|
+
[1m[35m (0.0ms)[0m begin transaction
|
32012
|
+
---------------------------------------------------------
|
32013
|
+
ActionSmser::NexmoTest: test_with_saving_delivery_reports
|
32014
|
+
---------------------------------------------------------
|
32015
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "action_smser_delivery_reports"[0m
|
32016
|
+
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)
|
32017
|
+
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:0x4af7ae0>
|
32018
|
+
ActionSmser: {"message-count":"1","messages":[{"message-price":"0.02500000","status":"0","message-id":"0778DE88","remaining-balance":"1.77500000"}]}
|
32019
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
32020
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "action_smser_delivery_reports" ("from", "body", "sms_type", "to", "msg_id", "status", "status_updated_at", "log", "gateway", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["from", "555666"], ["body", "Body with ääkköset end"], ["sms_type", "ActionSmser::NexmoTest::MockSms.basic_sms"], ["to", "555123555"], ["msg_id", "0778DE88"], ["status", "LOCAL_SENT"], ["status_updated_at", "2015-04-22 12:45:13.957391"], ["log", "2015-04-22 15:45:13: LOCAL_SENT\n"], ["gateway", "nexmo"], ["created_at", "2015-04-22 12:45:13.959727"], ["updated_at", "2015-04-22 12:45:13.959727"]]
|
32021
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
32022
|
+
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:0x4af7ae0>
|
32023
|
+
ActionSmser: {"message-count":"1","messages":[{"message-price":"0.02500000","status":"0","message-id":"0778DE88","remaining-balance":"1.77500000"}]}
|
32024
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
32025
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "action_smser_delivery_reports" ("from", "body", "sms_type", "to", "msg_id", "status", "status_updated_at", "log", "gateway", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["from", "555666"], ["body", "Body with ääkköset end"], ["sms_type", "ActionSmser::NexmoTest::MockSms.basic_sms"], ["to", "123555123"], ["msg_id", "0778DE88"], ["status", "LOCAL_SENT"], ["status_updated_at", "2015-04-22 12:45:13.963121"], ["log", "2015-04-22 15:45:13: LOCAL_SENT\n"], ["gateway", "nexmo"], ["created_at", "2015-04-22 12:45:13.963545"], ["updated_at", "2015-04-22 12:45:13.963545"]]
|
32026
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
32027
|
+
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "action_smser_delivery_reports"
|
32028
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
32029
|
+
[1m[35m (0.1ms)[0m begin transaction
|
32030
|
+
---------------------------
|
32031
|
+
ActionSmserTest: test_truth
|
32032
|
+
---------------------------
|
32033
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
32034
|
+
[1m[35m (0.0ms)[0m begin transaction
|
32035
|
+
--------------------------------------------------------------------------------------------------
|
32036
|
+
ActionSmser::SmstradeTest: test_should_only_receive_numbers_not_prepended_with_zeros_or_plus_signs
|
32037
|
+
--------------------------------------------------------------------------------------------------
|
32038
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
32039
|
+
[1m[35m (0.0ms)[0m begin transaction
|
32040
|
+
--------------------------------------------------------------------------------
|
32041
|
+
ActionSmser::SmstradeTest: test_should_append_00_to_phone_numbers_before_sending
|
32042
|
+
--------------------------------------------------------------------------------
|
32043
|
+
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)
|
32044
|
+
ActionSmser: Smstrade delivery http ||| ||| #<Mock:0x47899f8>
|
32045
|
+
ActionSmser: 100
|
32046
|
+
123456789
|
32047
|
+
0.064
|
32048
|
+
1
|
32049
|
+
ActionSmser: Smstrade delivery http ||| ||| #<Mock:0x47899f8>
|
32050
|
+
ActionSmser: 100
|
32051
|
+
123456789
|
32052
|
+
0.064
|
32053
|
+
1
|
32054
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
32055
|
+
[1m[35m (0.0ms)[0m begin transaction
|
32056
|
+
---------------------------------------------------------
|
32057
|
+
ActionSmser::SmstradeTest: test_should_be_able_to_deliver
|
32058
|
+
---------------------------------------------------------
|
32059
|
+
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)
|
32060
|
+
ActionSmser: Smstrade delivery http ||| /?key=api-key-here&from=4917212341234&to=004915112341234&message=Body+with+%C3%BCml%C3%A4%C3%BCts.&route=gold&debug=1&cost=1&message_id=1&count=1&charset=utf-8 ||| #<Mock:0x4761e80>
|
32061
|
+
ActionSmser: 100
|
32062
|
+
123456789
|
32063
|
+
0.064
|
32064
|
+
1
|
32065
|
+
ActionSmser: Smstrade delivery http ||| /?key=api-key-here&from=4917212341234&to=004917812341234&message=Body+with+%C3%BCml%C3%A4%C3%BCts.&route=gold&debug=1&cost=1&message_id=1&count=1&charset=utf-8 ||| #<Mock:0x4761e80>
|
32066
|
+
ActionSmser: 100
|
32067
|
+
123456789
|
32068
|
+
0.064
|
32069
|
+
1
|
32070
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
32071
|
+
[1m[35m (0.0ms)[0m begin transaction
|
32072
|
+
------------------------------------------------------------
|
32073
|
+
ActionSmser::SmstradeTest: test_with_saving_delivery_reports
|
32074
|
+
------------------------------------------------------------
|
32075
|
+
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "action_smser_delivery_reports"[0m
|
32076
|
+
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)
|
32077
|
+
ActionSmser: Smstrade delivery http ||| /?key=api-key-here&from=4917212341234&to=004915112341234&message=Body+with+%C3%BCml%C3%A4%C3%BCts.&route=gold&debug=1&cost=1&message_id=1&count=1&charset=utf-8 ||| #<Mock:0x473fdf8>
|
32078
|
+
ActionSmser: 100
|
32079
|
+
123456789
|
32080
|
+
0.064
|
32081
|
+
1
|
32082
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
32083
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "action_smser_delivery_reports" ("from", "body", "sms_type", "to", "msg_id", "status", "status_updated_at", "log", "gateway", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["from", "4917212341234"], ["body", "Body with ümläüts."], ["sms_type", "ActionSmser::SmstradeTest::MockSms.basic_sms"], ["to", "004915112341234"], ["msg_id", "123456789"], ["status", "LOCAL_SENT"], ["status_updated_at", "2015-04-22 12:45:13.972130"], ["log", "2015-04-22 15:45:13: LOCAL_SENT\n"], ["gateway", "smstrade"], ["created_at", "2015-04-22 12:45:13.972573"], ["updated_at", "2015-04-22 12:45:13.972573"]]
|
32084
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
32085
|
+
ActionSmser: Smstrade delivery http ||| /?key=api-key-here&from=4917212341234&to=004917812341234&message=Body+with+%C3%BCml%C3%A4%C3%BCts.&route=gold&debug=1&cost=1&message_id=1&count=1&charset=utf-8 ||| #<Mock:0x473fdf8>
|
32086
|
+
ActionSmser: 100
|
32087
|
+
123456789
|
32088
|
+
0.064
|
32089
|
+
1
|
32090
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
32091
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "action_smser_delivery_reports" ("from", "body", "sms_type", "to", "msg_id", "status", "status_updated_at", "log", "gateway", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["from", "4917212341234"], ["body", "Body with ümläüts."], ["sms_type", "ActionSmser::SmstradeTest::MockSms.basic_sms"], ["to", "004917812341234"], ["msg_id", "123456789"], ["status", "LOCAL_SENT"], ["status_updated_at", "2015-04-22 12:45:13.973852"], ["log", "2015-04-22 15:45:13: LOCAL_SENT\n"], ["gateway", "smstrade"], ["created_at", "2015-04-22 12:45:13.974142"], ["updated_at", "2015-04-22 12:45:13.974142"]]
|
32092
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
32093
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "action_smser_delivery_reports"
|
32094
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
32095
|
+
[1m[35m (0.0ms)[0m begin transaction
|
32096
|
+
-----------------------------------------------------------
|
32097
|
+
ActionSmser::SimpleHttpTest: test_should_be_able_to_deliver
|
32098
|
+
-----------------------------------------------------------
|
32099
|
+
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)
|
32100
|
+
ActionSmser: SimpleHttp delivery ||| /api/sendsms/plain?user=user&password=pass&sender=555666&SMSText=Body+with+%E4%E4kk%F6set+end&GSM=555123555,123555123 ||| #<Mock:0x46b5e50>
|
32101
|
+
ActionSmser: id_1234
|
32102
|
+
id_6666
|
32103
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
32104
|
+
[1m[35m (0.0ms)[0m begin transaction
|
32105
|
+
--------------------------------------------------------------
|
32106
|
+
ActionSmser::SimpleHttpTest: test_with_saving_delivery_reports
|
32107
|
+
--------------------------------------------------------------
|
32108
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "action_smser_delivery_reports"[0m
|
32109
|
+
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)
|
32110
|
+
ActionSmser: SimpleHttp delivery ||| /api/sendsms/plain?user=user&password=pass&sender=555666&SMSText=Body+with+%E4%E4kk%F6set+end&GSM=555123555,123555123 ||| #<Mock:0x4694bb0>
|
32111
|
+
ActionSmser: id_1234
|
32112
|
+
id_6666
|
32113
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
32114
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "action_smser_delivery_reports" ("from", "body", "sms_type", "to", "msg_id", "status", "status_updated_at", "log", "gateway", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["from", "555666"], ["body", "Body with ääkköset end"], ["sms_type", "ActionSmser::SimpleHttpTest::MockSms.basic_sms"], ["to", "555123555"], ["msg_id", "id_1234"], ["status", "LOCAL_SENT"], ["status_updated_at", "2015-04-22 12:45:13.978344"], ["log", "2015-04-22 15:45:13: LOCAL_SENT\n"], ["gateway", "simple_http"], ["created_at", "2015-04-22 12:45:13.978673"], ["updated_at", "2015-04-22 12:45:13.978673"]]
|
32115
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
32116
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
32117
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "action_smser_delivery_reports" ("from", "body", "sms_type", "to", "msg_id", "status", "status_updated_at", "log", "gateway", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["from", "555666"], ["body", "Body with ääkköset end"], ["sms_type", "ActionSmser::SimpleHttpTest::MockSms.basic_sms"], ["to", "123555123"], ["msg_id", "id_6666"], ["status", "LOCAL_SENT"], ["status_updated_at", "2015-04-22 12:45:13.979729"], ["log", "2015-04-22 15:45:13: LOCAL_SENT\n"], ["gateway", "simple_http"], ["created_at", "2015-04-22 12:45:13.980009"], ["updated_at", "2015-04-22 12:45:13.980009"]]
|
32118
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
32119
|
+
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "action_smser_delivery_reports"
|
32120
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
32121
|
+
[1m[35m (0.0ms)[0m begin transaction
|
32122
|
+
----------------------------------------------------------------------------------------------
|
32123
|
+
ActionSmser::DelayedJobTest: test_should_be_able_to_deliver_and_call_enqueue_for_all_receivers
|
32124
|
+
----------------------------------------------------------------------------------------------
|
32125
|
+
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)
|
32126
|
+
ActionSmser: Delivering sms by delayed_job
|
32127
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
32128
|
+
[1m[35m (0.0ms)[0m begin transaction
|
32129
|
+
-------------------------------------------------------------
|
32130
|
+
ActionSmser::DelayedJobTest: test_test_that_serializing_is_ok
|
32131
|
+
-------------------------------------------------------------
|
32132
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
32133
|
+
[1m[35m (0.1ms)[0m begin transaction
|
32134
|
+
---------------------------------------------------------
|
32135
|
+
NavigationTest: test_basic_gateway_commit_delivery_report
|
32136
|
+
---------------------------------------------------------
|
32137
|
+
Started GET "/action_smser/delivery_reports/gateway_commit/example_gateway" for 127.0.0.1 at 2015-04-22 15:45:13 +0300
|
32138
|
+
Processing by ActionSmser::DeliveryReportsController#gateway_commit as HTML
|
32139
|
+
Parameters: {"gateway"=>"example_gateway"}
|
32140
|
+
Rendered text template (0.0ms)
|
32141
|
+
Completed 200 OK in 4ms (Views: 3.7ms | ActiveRecord: 0.0ms)
|
32142
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
32143
|
+
[1m[35m (0.1ms)[0m begin transaction
|
32144
|
+
--------------------------------------------------------
|
32145
|
+
ActionSmser::TestArrayTest: test_should_add_to_TestArray
|
32146
|
+
--------------------------------------------------------
|
32147
|
+
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)
|
32148
|
+
ActionSmser: ActionSmser::DeliveryMethods::TestArray.deliveries added message, no real delivery.
|
32149
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
32150
|
+
[1m[35m (0.0ms)[0m begin transaction
|
32151
|
+
----------------------------------------------------------
|
32152
|
+
ActionSmser::TestArrayTest: test_should_be_able_to_deliver
|
32153
|
+
----------------------------------------------------------
|
32154
|
+
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)
|
32155
|
+
ActionSmser: ActionSmser::DeliveryMethods::TestArray.deliveries added message, no real delivery.
|
32156
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
32157
|
+
[1m[35m (0.0ms)[0m begin transaction
|
32158
|
+
-------------------------------------------------------------
|
32159
|
+
ActionSmser::TestArrayTest: test_with_saving_delivery_reports
|
32160
|
+
-------------------------------------------------------------
|
32161
|
+
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)
|
32162
|
+
ActionSmser: ActionSmser::DeliveryMethods::TestArray.deliveries added message, no real delivery.
|
32163
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "action_smser_delivery_reports"[0m
|
32164
|
+
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)
|
32165
|
+
ActionSmser: ActionSmser::DeliveryMethods::TestArray.deliveries added message, no real delivery.
|
32166
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
32167
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "action_smser_delivery_reports" ("from", "body", "sms_type", "to", "msg_id", "status", "status_updated_at", "log", "gateway", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["from", "555666"], ["body", "Body with ääkköset end"], ["sms_type", "ActionSmser::TestArrayTest::MockSms.basic_sms"], ["to", "555123555"], ["msg_id", "test_array_id_34965443"], ["status", "LOCAL_SENT"], ["status_updated_at", "2015-04-22 12:45:14.027852"], ["log", "2015-04-22 15:45:14: LOCAL_SENT\n"], ["gateway", "test_array"], ["created_at", "2015-04-22 12:45:14.028345"], ["updated_at", "2015-04-22 12:45:14.028345"]]
|
32168
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
32169
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
32170
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "action_smser_delivery_reports" ("from", "body", "sms_type", "to", "msg_id", "status", "status_updated_at", "log", "gateway", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["from", "555666"], ["body", "Body with ääkköset end"], ["sms_type", "ActionSmser::TestArrayTest::MockSms.basic_sms"], ["to", "123555123"], ["msg_id", "test_array_id_47199764"], ["status", "LOCAL_SENT"], ["status_updated_at", "2015-04-22 12:45:14.029574"], ["log", "2015-04-22 15:45:14: LOCAL_SENT\n"], ["gateway", "test_array"], ["created_at", "2015-04-22 12:45:14.029889"], ["updated_at", "2015-04-22 12:45:14.029889"]]
|
32171
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
32172
|
+
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "action_smser_delivery_reports"
|
32173
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
32174
|
+
[1m[35m (0.1ms)[0m begin transaction
|
32175
|
+
-----------------------------------------------------
|
32176
|
+
ActionSmser::DeliveryReportTest: test_updating_status
|
32177
|
+
-----------------------------------------------------
|
32178
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
32179
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "action_smser_delivery_reports" ("status", "status_updated_at", "log", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["status", "LOCAL_TEST"], ["status_updated_at", "2015-04-22 12:45:14.032041"], ["log", "2015-04-22 15:45:14: LOCAL_TEST\n"], ["created_at", "2015-04-22 12:45:14.032363"], ["updated_at", "2015-04-22 12:45:14.032363"]]
|
32180
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
32181
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
32182
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "action_smser_delivery_reports" SET "status" = ?, "status_updated_at" = ?, "log" = ?, "updated_at" = ? WHERE "action_smser_delivery_reports"."id" = ?[0m [["status", "TEST_2"], ["status_updated_at", "2015-04-22 12:45:14.033234"], ["log", "2015-04-22 15:45:14: LOCAL_TEST\n2015-04-22 15:45:14: TEST_2\n"], ["updated_at", "2015-04-22 12:45:14.033511"], ["id", 1]]
|
32183
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
32184
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
32185
|
+
[1m[35m (0.0ms)[0m begin transaction
|
32186
|
+
--------------------------------------------
|
32187
|
+
ActionSmser::DeliveryReportTest: test_to_sms
|
32188
|
+
--------------------------------------------
|
32189
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
32190
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "action_smser_delivery_reports" ("from", "body", "sms_type", "to", "msg_id", "status", "status_updated_at", "log", "gateway", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["from", "555666"], ["body", "Body with ääkköset end"], ["sms_type", "ActionSmser::DeliveryReportTest::MockSms.basic_sms"], ["to", "123"], ["msg_id", "msg_id_a"], ["status", "LOCAL_SENT"], ["status_updated_at", "2015-04-22 12:45:14.037880"], ["log", "2015-04-22 15:45:14: LOCAL_SENT\n"], ["gateway", "test_array"], ["created_at", "2015-04-22 12:45:14.038228"], ["updated_at", "2015-04-22 12:45:14.038228"]]
|
32191
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
32192
|
+
[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]]
|
32193
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
32194
|
+
[1m[35m (0.0ms)[0m begin transaction
|
32195
|
+
-----------------------------------------------------------------
|
32196
|
+
ActionSmser::DeliveryReportTest: test_re_deliver_with_simple_http
|
32197
|
+
-----------------------------------------------------------------
|
32198
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
32199
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "action_smser_delivery_reports" ("from", "body", "sms_type", "to", "msg_id", "status", "status_updated_at", "log", "gateway", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["from", "555666"], ["body", "Body with ääkköset end"], ["sms_type", "ActionSmser::DeliveryReportTest::MockSms.basic_sms"], ["to", "123"], ["msg_id", "msg_id_a"], ["status", "LOCAL_SENT"], ["status_updated_at", "2015-04-22 12:45:14.042115"], ["log", "2015-04-22 15:45:14: LOCAL_SENT\n"], ["gateway", "test_array"], ["created_at", "2015-04-22 12:45:14.042499"], ["updated_at", "2015-04-22 12:45:14.042499"]]
|
32200
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
32201
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
32202
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "action_smser_delivery_reports" SET "gateway" = ?, "updated_at" = ? WHERE "action_smser_delivery_reports"."id" = ?[0m [["gateway", "some_delivery"], ["updated_at", "2015-04-22 12:45:14.044049"], ["id", 1]]
|
32203
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
32204
|
+
[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]]
|
32205
|
+
ActionSmser: Re_delivering: #<ActionSmser::DeliveryReport id: 1, msg_id: "msg_id_a", status: "LOCAL_SENT", status_updated_at: "2015-04-22 12:45:14", sms_type: "ActionSmser::DeliveryReportTest::MockSms.basic_sms", log: "2015-04-22 15:45: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: "2015-04-22 12:45:14", updated_at: "2015-04-22 12:45:14">
|
32206
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
32207
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "action_smser_delivery_reports" SET "re_delivered" = ?, "updated_at" = ? WHERE "action_smser_delivery_reports"."id" = ?[0m [["re_delivered", "t"], ["updated_at", "2015-04-22 12:45:14.045552"], ["id", 1]]
|
32208
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
32209
|
+
[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]]
|
32210
|
+
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)
|
32211
|
+
ActionSmser: ActionSmser::DeliveryMethods::TestArray.deliveries added message, no real delivery.
|
32212
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
32213
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "action_smser_delivery_reports" ("from", "body", "sms_type", "re_delivery_of_delivery_report_id", "to", "msg_id", "status", "status_updated_at", "log", "gateway", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["from", "555666"], ["body", "Body with ääkköset end"], ["sms_type", "ActionSmser::DeliveryReportTest::MockSms.basic_sms.re_delivery"], ["re_delivery_of_delivery_report_id", 1], ["to", "123"], ["msg_id", "test_array_id_90045397"], ["status", "LOCAL_SENT"], ["status_updated_at", "2015-04-22 12:45:14.046673"], ["log", "2015-04-22 15:45:14: LOCAL_SENT\n"], ["gateway", "test_array"], ["created_at", "2015-04-22 12:45:14.046997"], ["updated_at", "2015-04-22 12:45:14.046997"]]
|
32214
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
32215
|
+
[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
|
32216
|
+
[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]]
|
32217
|
+
[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]]
|
32218
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
32219
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
32220
|
+
------------------------------------------------------
|
32221
|
+
ActionSmser::DeliveryReportTest: test_create_from_save
|
32222
|
+
------------------------------------------------------
|
32223
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "action_smser_delivery_reports"
|
32224
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
32225
|
+
[1m[35mSQL (0.8ms)[0m INSERT INTO "action_smser_delivery_reports" ("from", "body", "sms_type", "to", "msg_id", "status", "status_updated_at", "log", "gateway", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["from", "555666"], ["body", "Body with ääkköset end"], ["sms_type", "ActionSmser::DeliveryReportTest::MockSms.basic_sms"], ["to", "123"], ["msg_id", "msg_id_a"], ["status", "LOCAL_SENT"], ["status_updated_at", "2015-04-22 12:45:14.065609"], ["log", "2015-04-22 15:45:14: LOCAL_SENT\n"], ["gateway", "test_array"], ["created_at", "2015-04-22 12:45:14.065994"], ["updated_at", "2015-04-22 12:45:14.065994"]]
|
32226
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
32227
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "action_smser_delivery_reports"
|
32228
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
32229
|
+
[1m[35m (0.0ms)[0m begin transaction
|
32230
|
+
-------------------------------------------------------------------
|
32231
|
+
ActionSmser::DeliveryReportTest: test_build_DeliveryReport_from_sms
|
32232
|
+
-------------------------------------------------------------------
|
32233
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
32234
|
+
[1m[35m (0.0ms)[0m begin transaction
|
32235
|
+
----------------------------------------------------------------------------------
|
32236
|
+
ActionSmser::DeliveryReportsControllerTest: test_gateway_commit_without_any_parser
|
32237
|
+
----------------------------------------------------------------------------------
|
32238
|
+
Processing by ActionSmser::DeliveryReportsController#gateway_commit as HTML
|
32239
|
+
Parameters: {"DeliveryReport"=>{"message"=>{"id"=>"wrongid", "donedate"=>"2012/01/03 14:20:45", "sentdate"=>"2012/01/03 14:20:40", "status"=>"DELIVERED"}}, "gateway"=>"gateway_not_found"}
|
32240
|
+
Rendered text template (0.0ms)
|
32241
|
+
Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
|
32242
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
32243
|
+
[1m[35m (0.0ms)[0m begin transaction
|
32244
|
+
--------------------------------------------------------------------------------
|
32245
|
+
ActionSmser::DeliveryReportsControllerTest: test_index_with_always_enabled_admin
|
32246
|
+
--------------------------------------------------------------------------------
|
32247
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
32248
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "action_smser_delivery_reports" ("msg_id", "created_at", "updated_at") VALUES (?, ?, ?) [["msg_id", "idtest_2"], ["created_at", "2015-04-22 12:45:14.073131"], ["updated_at", "2015-04-22 12:45:14.073131"]]
|
32249
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
32250
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
32251
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "action_smser_delivery_reports" ("msg_id", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["msg_id", "idtest_7"], ["created_at", "2015-04-22 12:45:14.074246"], ["updated_at", "2015-04-22 12:45:14.074246"]]
|
32252
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
32253
|
+
Processing by ActionSmser::DeliveryReportsController#index as HTML
|
32254
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2015-04-15 12:45:14.079800' AND '2015-04-22 12:35:14.079921')[0m
|
32255
|
+
[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 '2015-04-15 12:45:14.079800' AND '2015-04-22 12:35:14.079921') GROUP BY "action_smser_delivery_reports"."gateway"
|
32256
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2015-04-15 12:45:14.079800' AND '2015-04-22 12:35:14.079921')[0m
|
32257
|
+
[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 '2015-04-15 12:45:14.079800' AND '2015-04-22 12:35:14.079921') GROUP BY "action_smser_delivery_reports"."status"
|
32258
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2015-04-15 12:45:14.079800' AND '2015-04-22 12:35:14.079921')[0m
|
32259
|
+
[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 '2015-04-15 12:45:14.079800' AND '2015-04-22 12:35:14.079921') GROUP BY "action_smser_delivery_reports"."sms_type"
|
32260
|
+
Rendered /home/ohu/koodi/own_gems_programs/action_smser/app/views/action_smser/delivery_reports/index.html.erb within layouts/action_smser/delivery_reports (8.5ms)
|
32261
|
+
Completed 200 OK in 11ms (Views: 10.2ms | ActiveRecord: 0.5ms)
|
32262
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
32263
|
+
[1m[35m (0.0ms)[0m begin transaction
|
32264
|
+
--------------------------------------------------------------------------------
|
32265
|
+
ActionSmser::DeliveryReportsControllerTest: test_gateway_commit_with_existing_dr
|
32266
|
+
--------------------------------------------------------------------------------
|
32267
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
32268
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "action_smser_delivery_reports" ("msg_id", "status", "status_updated_at", "log", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["msg_id", "102010314204056202"], ["status", "ORIGINAL_STATUS"], ["status_updated_at", "2015-04-22 12:45:14.088642"], ["log", "2015-04-22 15:45:14: ORIGINAL_STATUS\n"], ["created_at", "2015-04-22 12:45:14.089062"], ["updated_at", "2015-04-22 12:45:14.089062"]]
|
32269
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
32270
|
+
Processing by ActionSmser::DeliveryReportsController#gateway_commit as HTML
|
32271
|
+
Parameters: {"DeliveryReport"=>{"message"=>{"id"=>"102010314204056202", "donedate"=>"2012/01/03 14:20:45", "sentdate"=>"2012/01/03 14:20:40", "status"=>"DELIVERED"}}, "gateway"=>"test_gateway"}
|
32272
|
+
ActionSmser: Gateway_commit found parser for gateway: test_gateway
|
32273
|
+
[1m[35mActionSmser::DeliveryReport Load (0.1ms)[0m SELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."msg_id" = ? ORDER BY "action_smser_delivery_reports"."id" ASC LIMIT 1 [["msg_id", "102010314204056202"]]
|
32274
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
32275
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "action_smser_delivery_reports" SET "status" = ?, "status_updated_at" = ?, "log" = ?, "updated_at" = ? WHERE "action_smser_delivery_reports"."id" = ? [["status", "DELIVERED"], ["status_updated_at", "2015-04-22 12:45:14.092519"], ["log", "2015-04-22 15:45:14: ORIGINAL_STATUS\n2015-04-22 15:45:14: DELIVERED\n"], ["updated_at", "2015-04-22 12:45:14.092902"], ["id", 1]]
|
32276
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
32277
|
+
ActionSmser: Gateway_commit updated item with id: 102010314204056202, params: {"msg_id"=>"102010314204056202", "status"=>"DELIVERED"}
|
32278
|
+
Rendered text template (0.0ms)
|
32279
|
+
Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.3ms)
|
32280
|
+
[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]]
|
32281
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
32282
|
+
[1m[35m (0.0ms)[0m begin transaction
|
32283
|
+
-------------------------------------------------------------------------------
|
32284
|
+
ActionSmser::DeliveryReportsControllerTest: test_list_with_always_enabled_admin
|
32285
|
+
-------------------------------------------------------------------------------
|
32286
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
32287
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "action_smser_delivery_reports" ("msg_id", "created_at", "updated_at") VALUES (?, ?, ?) [["msg_id", "idtest_8"], ["created_at", "2015-04-22 12:45:14.095501"], ["updated_at", "2015-04-22 12:45:14.095501"]]
|
32288
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
32289
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
32290
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "action_smser_delivery_reports" ("msg_id", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["msg_id", "idtest_3"], ["created_at", "2015-04-22 12:45:14.096546"], ["updated_at", "2015-04-22 12:45:14.096546"]]
|
32291
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
32292
|
+
Processing by ActionSmser::DeliveryReportsController#list as HTML
|
32293
|
+
[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
|
32294
|
+
Rendered /home/ohu/koodi/own_gems_programs/action_smser/app/views/action_smser/delivery_reports/list.html.erb within layouts/action_smser/delivery_reports (2.3ms)
|
32295
|
+
Completed 200 OK in 4ms (Views: 3.3ms | ActiveRecord: 0.2ms)
|
32296
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
32297
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
32298
|
+
--------------------------------------------------------------------------
|
32299
|
+
ActionSmser::DeliveryReportsControllerTest: test_gateway_commit_without_dr
|
32300
|
+
--------------------------------------------------------------------------
|
32301
|
+
Processing by ActionSmser::DeliveryReportsController#gateway_commit as HTML
|
32302
|
+
Parameters: {"DeliveryReport"=>{"message"=>{"id"=>"wrongid", "donedate"=>"2012/01/03 14:20:45", "sentdate"=>"2012/01/03 14:20:40", "status"=>"DELIVERED"}}, "gateway"=>"test_gateway"}
|
32303
|
+
ActionSmser: Gateway_commit found parser for gateway: test_gateway
|
32304
|
+
[1m[35mActionSmser::DeliveryReport Load (0.1ms)[0m SELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."msg_id" = ? ORDER BY "action_smser_delivery_reports"."id" ASC LIMIT 1 [["msg_id", "wrongid"]]
|
32305
|
+
ActionSmser: Gateway_commit not found item with id: wrongid, params: {"msg_id"=>"wrongid", "status"=>"DELIVERED"}
|
32306
|
+
Rendered text template (0.0ms)
|
32307
|
+
Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
|
32308
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
32309
|
+
[1m[35m (0.0ms)[0m begin transaction
|
32310
|
+
-------------------------------------------------------------------------------------
|
32311
|
+
ActionSmser::DeliveryReportsControllerTest: test_gateway_commit_with_multiple_records
|
32312
|
+
-------------------------------------------------------------------------------------
|
32313
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
32314
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "action_smser_delivery_reports" ("msg_id", "status", "status_updated_at", "log", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["msg_id", "102010314204056202"], ["status", "ORIGINAL_STATUS"], ["status_updated_at", "2015-04-22 12:45:14.106127"], ["log", "2015-04-22 15:45:14: ORIGINAL_STATUS\n"], ["created_at", "2015-04-22 12:45:14.106534"], ["updated_at", "2015-04-22 12:45:14.106534"]]
|
32315
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
32316
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
32317
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "action_smser_delivery_reports" ("msg_id", "status", "status_updated_at", "log", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["msg_id", "99999999999999999"], ["status", "ORIGINAL_STATUS"], ["status_updated_at", "2015-04-22 12:45:14.107514"], ["log", "2015-04-22 15:45:14: ORIGINAL_STATUS\n"], ["created_at", "2015-04-22 12:45:14.107797"], ["updated_at", "2015-04-22 12:45:14.107797"]]
|
32318
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
32319
|
+
Processing by ActionSmser::DeliveryReportsController#gateway_commit as HTML
|
32320
|
+
Parameters: {"DeliveryReport"=>{"message"=>[{"id"=>"102010314204056202", "status"=>"DELIVERED"}, {"id"=>"99999999999999999", "status"=>"DELIVERED"}]}, "gateway"=>"test_gateway"}
|
32321
|
+
ActionSmser: Gateway_commit found parser for gateway: test_gateway
|
32322
|
+
[1m[36mActionSmser::DeliveryReport Load (0.0ms)[0m [1mSELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."msg_id" = ? ORDER BY "action_smser_delivery_reports"."id" ASC LIMIT 1[0m [["msg_id", "102010314204056202"]]
|
32323
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
32324
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "action_smser_delivery_reports" SET "status" = ?, "status_updated_at" = ?, "log" = ?, "updated_at" = ? WHERE "action_smser_delivery_reports"."id" = ?[0m [["status", "DELIVERED"], ["status_updated_at", "2015-04-22 12:45:14.110309"], ["log", "2015-04-22 15:45:14: ORIGINAL_STATUS\n2015-04-22 15:45:14: DELIVERED\n"], ["updated_at", "2015-04-22 12:45:14.110700"], ["id", 1]]
|
32325
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
32326
|
+
ActionSmser: Gateway_commit updated item with id: 102010314204056202, params: {"msg_id"=>"102010314204056202", "status"=>"DELIVERED"}
|
32327
|
+
[1m[36mActionSmser::DeliveryReport Load (0.0ms)[0m [1mSELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."msg_id" = ? ORDER BY "action_smser_delivery_reports"."id" ASC LIMIT 1[0m [["msg_id", "99999999999999999"]]
|
32328
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
32329
|
+
[1m[36mSQL (0.0ms)[0m [1mUPDATE "action_smser_delivery_reports" SET "status" = ?, "status_updated_at" = ?, "log" = ?, "updated_at" = ? WHERE "action_smser_delivery_reports"."id" = ?[0m [["status", "DELIVERED"], ["status_updated_at", "2015-04-22 12:45:14.112052"], ["log", "2015-04-22 15:45:14: ORIGINAL_STATUS\n2015-04-22 15:45:14: DELIVERED\n"], ["updated_at", "2015-04-22 12:45:14.112370"], ["id", 2]]
|
32330
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
32331
|
+
ActionSmser: Gateway_commit updated item with id: 99999999999999999, params: {"msg_id"=>"99999999999999999", "status"=>"DELIVERED"}
|
32332
|
+
Rendered text template (0.0ms)
|
32333
|
+
Completed 200 OK in 4ms (Views: 0.3ms | ActiveRecord: 0.3ms)
|
32334
|
+
[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]]
|
32335
|
+
[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", 2]]
|
32336
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
32337
|
+
[1m[35m (0.0ms)[0m begin transaction
|
32338
|
+
--------------------------------------------------------------------------------------------------------
|
32339
|
+
ActionSmser::DeliveryReportsControllerTest: test_index_with_forbidden_admin_access_(default_access_mode)
|
32340
|
+
--------------------------------------------------------------------------------------------------------
|
32341
|
+
Processing by ActionSmser::DeliveryReportsController#index as HTML
|
32342
|
+
Rendered text template (0.0ms)
|
32343
|
+
Filter chain halted as :admin_access_only rendered or redirected
|
32344
|
+
Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
|
32345
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
32346
|
+
[1m[35m (0.1ms)[0m begin transaction
|
32347
|
+
-----------------------------------------------------------------------------------------------------
|
32348
|
+
ActionSmser::DeliveryReportsControllerTest: test_index_with_admin_access_lambda_with_right_login_info
|
32349
|
+
-----------------------------------------------------------------------------------------------------
|
32350
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
32351
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "action_smser_delivery_reports" ("msg_id", "created_at", "updated_at") VALUES (?, ?, ?) [["msg_id", "idtest_3"], ["created_at", "2015-04-22 12:45:14.117216"], ["updated_at", "2015-04-22 12:45:14.117216"]]
|
32352
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
32353
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
32354
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "action_smser_delivery_reports" ("msg_id", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["msg_id", "idtest_0"], ["created_at", "2015-04-22 12:45:14.118328"], ["updated_at", "2015-04-22 12:45:14.118328"]]
|
32355
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
32356
|
+
Processing by ActionSmser::DeliveryReportsController#index as HTML
|
32357
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2015-04-15 12:45:14.120232' AND '2015-04-22 12:35:14.120331')[0m
|
32358
|
+
[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 '2015-04-15 12:45:14.120232' AND '2015-04-22 12:35:14.120331') GROUP BY "action_smser_delivery_reports"."gateway"
|
32359
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2015-04-15 12:45:14.120232' AND '2015-04-22 12:35:14.120331')[0m
|
32360
|
+
[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 '2015-04-15 12:45:14.120232' AND '2015-04-22 12:35:14.120331') GROUP BY "action_smser_delivery_reports"."status"
|
32361
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2015-04-15 12:45:14.120232' AND '2015-04-22 12:35:14.120331')[0m
|
32362
|
+
[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 '2015-04-15 12:45:14.120232' AND '2015-04-22 12:35:14.120331') GROUP BY "action_smser_delivery_reports"."sms_type"
|
32363
|
+
Rendered /home/ohu/koodi/own_gems_programs/action_smser/app/views/action_smser/delivery_reports/index.html.erb within layouts/action_smser/delivery_reports (4.4ms)
|
32364
|
+
Completed 200 OK in 5ms (Views: 4.6ms | ActiveRecord: 0.4ms)
|
32365
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
32366
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
32367
|
+
[1m[35m (0.1ms)[0m begin transaction
|
32368
|
+
-------------------------------------------------------------------
|
32369
|
+
ActionSmser::DeliveryReportTest: test_build_DeliveryReport_from_sms
|
32370
|
+
-------------------------------------------------------------------
|
32371
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
32372
|
+
[1m[35m (0.0ms)[0m begin transaction
|
32373
|
+
-----------------------------------------------------
|
32374
|
+
ActionSmser::DeliveryReportTest: test_updating_status
|
32375
|
+
-----------------------------------------------------
|
32376
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
32377
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "action_smser_delivery_reports" ("status", "status_updated_at", "log", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["status", "LOCAL_TEST"], ["status_updated_at", "2015-04-22 12:48:22.363749"], ["log", "2015-04-22 15:48:22: LOCAL_TEST\n"], ["created_at", "2015-04-22 12:48:22.365359"], ["updated_at", "2015-04-22 12:48:22.365359"]]
|
32378
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
32379
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
32380
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "action_smser_delivery_reports" SET "status" = ?, "status_updated_at" = ?, "log" = ?, "updated_at" = ? WHERE "action_smser_delivery_reports"."id" = ?[0m [["status", "TEST_2"], ["status_updated_at", "2015-04-22 12:48:22.368330"], ["log", "2015-04-22 15:48:22: LOCAL_TEST\n2015-04-22 15:48:22: TEST_2\n"], ["updated_at", "2015-04-22 12:48:22.368710"], ["id", 1]]
|
32381
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
32382
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
32383
|
+
[1m[35m (0.0ms)[0m begin transaction
|
32384
|
+
------------------------------------------------------
|
32385
|
+
ActionSmser::DeliveryReportTest: test_create_from_save
|
32386
|
+
------------------------------------------------------
|
32387
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "action_smser_delivery_reports"[0m
|
32388
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
32389
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "action_smser_delivery_reports" ("from", "body", "sms_type", "to", "msg_id", "status", "status_updated_at", "log", "gateway", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["from", "555666"], ["body", "Body with ääkköset end"], ["sms_type", "ActionSmser::DeliveryReportTest::MockSms.basic_sms"], ["to", "123"], ["msg_id", "msg_id_a"], ["status", "LOCAL_SENT"], ["status_updated_at", "2015-04-22 12:48:22.372939"], ["log", "2015-04-22 15:48:22: LOCAL_SENT\n"], ["gateway", "test_array"], ["created_at", "2015-04-22 12:48:22.373345"], ["updated_at", "2015-04-22 12:48:22.373345"]]
|
32390
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
32391
|
+
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "action_smser_delivery_reports"[0m
|
32392
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
32393
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
32394
|
+
-----------------------------------------------------------------
|
32395
|
+
ActionSmser::DeliveryReportTest: test_re_deliver_with_simple_http
|
32396
|
+
-----------------------------------------------------------------
|
32397
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
32398
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "action_smser_delivery_reports" ("from", "body", "sms_type", "to", "msg_id", "status", "status_updated_at", "log", "gateway", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["from", "555666"], ["body", "Body with ääkköset end"], ["sms_type", "ActionSmser::DeliveryReportTest::MockSms.basic_sms"], ["to", "123"], ["msg_id", "msg_id_a"], ["status", "LOCAL_SENT"], ["status_updated_at", "2015-04-22 12:48:22.375488"], ["log", "2015-04-22 15:48:22: LOCAL_SENT\n"], ["gateway", "test_array"], ["created_at", "2015-04-22 12:48:22.375849"], ["updated_at", "2015-04-22 12:48:22.375849"]]
|
32399
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
32400
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
32401
|
+
[1m[35mSQL (0.2ms)[0m UPDATE "action_smser_delivery_reports" SET "gateway" = ?, "updated_at" = ? WHERE "action_smser_delivery_reports"."id" = ? [["gateway", "some_delivery"], ["updated_at", "2015-04-22 12:48:22.377133"], ["id", 1]]
|
32402
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
32403
|
+
[1m[35mActionSmser::DeliveryReport Load (0.2ms)[0m SELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."id" = ? LIMIT 1 [["id", 1]]
|
32404
|
+
ActionSmser: Re_delivering: #<ActionSmser::DeliveryReport id: 1, msg_id: "msg_id_a", status: "LOCAL_SENT", status_updated_at: "2015-04-22 12:48:22", sms_type: "ActionSmser::DeliveryReportTest::MockSms.basic_sms", log: "2015-04-22 15:48:22: 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: "2015-04-22 12:48:22", updated_at: "2015-04-22 12:48:22">
|
32405
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
32406
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "action_smser_delivery_reports" SET "re_delivered" = ?, "updated_at" = ? WHERE "action_smser_delivery_reports"."id" = ? [["re_delivered", "t"], ["updated_at", "2015-04-22 12:48:22.381248"], ["id", 1]]
|
32407
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
32408
|
+
[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]]
|
32409
|
+
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)
|
32410
|
+
ActionSmser: ActionSmser::DeliveryMethods::TestArray.deliveries added message, no real delivery.
|
32411
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
32412
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "action_smser_delivery_reports" ("from", "body", "sms_type", "re_delivery_of_delivery_report_id", "to", "msg_id", "status", "status_updated_at", "log", "gateway", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["from", "555666"], ["body", "Body with ääkköset end"], ["sms_type", "ActionSmser::DeliveryReportTest::MockSms.basic_sms.re_delivery"], ["re_delivery_of_delivery_report_id", 1], ["to", "123"], ["msg_id", "test_array_id_37804369"], ["status", "LOCAL_SENT"], ["status_updated_at", "2015-04-22 12:48:22.383023"], ["log", "2015-04-22 15:48:22: LOCAL_SENT\n"], ["gateway", "test_array"], ["created_at", "2015-04-22 12:48:22.383432"], ["updated_at", "2015-04-22 12:48:22.383432"]]
|
32413
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
32414
|
+
[1m[35mActionSmser::DeliveryReport Load (0.1ms)[0m SELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" ORDER BY "action_smser_delivery_reports"."id" DESC LIMIT 1
|
32415
|
+
[1m[36mActionSmser::DeliveryReport Load (0.2ms)[0m [1mSELECT "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[0m [["re_delivery_of_delivery_report_id", 1]]
|
32416
|
+
[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]]
|
32417
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
32418
|
+
[1m[35m (0.1ms)[0m begin transaction
|
32419
|
+
--------------------------------------------
|
32420
|
+
ActionSmser::DeliveryReportTest: test_to_sms
|
32421
|
+
--------------------------------------------
|
32422
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
32423
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "action_smser_delivery_reports" ("from", "body", "sms_type", "to", "msg_id", "status", "status_updated_at", "log", "gateway", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["from", "555666"], ["body", "Body with ääkköset end"], ["sms_type", "ActionSmser::DeliveryReportTest::MockSms.basic_sms"], ["to", "123"], ["msg_id", "msg_id_a"], ["status", "LOCAL_SENT"], ["status_updated_at", "2015-04-22 12:48:22.395564"], ["log", "2015-04-22 15:48:22: LOCAL_SENT\n"], ["gateway", "test_array"], ["created_at", "2015-04-22 12:48:22.396027"], ["updated_at", "2015-04-22 12:48:22.396027"]]
|
32424
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
32425
|
+
[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]]
|
32426
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
32427
|
+
[1m[35m (0.1ms)[0m begin transaction
|
32428
|
+
-----------------------------------------------------------
|
32429
|
+
ActionSmser::SimpleHttpTest: test_should_be_able_to_deliver
|
32430
|
+
-----------------------------------------------------------
|
32431
|
+
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)
|
32432
|
+
ActionSmser: SimpleHttp delivery ||| /api/sendsms/plain?user=user&password=pass&sender=555666&SMSText=Body+with+%E4%E4kk%F6set+end&GSM=555123555,123555123 ||| #<Mock:0x36dcda8>
|
32433
|
+
ActionSmser: id_1234
|
32434
|
+
id_6666
|
32435
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
32436
|
+
[1m[35m (0.0ms)[0m begin transaction
|
32437
|
+
--------------------------------------------------------------
|
32438
|
+
ActionSmser::SimpleHttpTest: test_with_saving_delivery_reports
|
32439
|
+
--------------------------------------------------------------
|
32440
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "action_smser_delivery_reports"[0m
|
32441
|
+
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)
|
32442
|
+
ActionSmser: SimpleHttp delivery ||| /api/sendsms/plain?user=user&password=pass&sender=555666&SMSText=Body+with+%E4%E4kk%F6set+end&GSM=555123555,123555123 ||| #<Mock:0x36b9448>
|
32443
|
+
ActionSmser: id_1234
|
32444
|
+
id_6666
|
32445
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
32446
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "action_smser_delivery_reports" ("from", "body", "sms_type", "to", "msg_id", "status", "status_updated_at", "log", "gateway", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["from", "555666"], ["body", "Body with ääkköset end"], ["sms_type", "ActionSmser::SimpleHttpTest::MockSms.basic_sms"], ["to", "555123555"], ["msg_id", "id_1234"], ["status", "LOCAL_SENT"], ["status_updated_at", "2015-04-22 12:48:22.402220"], ["log", "2015-04-22 15:48:22: LOCAL_SENT\n"], ["gateway", "simple_http"], ["created_at", "2015-04-22 12:48:22.402606"], ["updated_at", "2015-04-22 12:48:22.402606"]]
|
32447
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
32448
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
32449
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "action_smser_delivery_reports" ("from", "body", "sms_type", "to", "msg_id", "status", "status_updated_at", "log", "gateway", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["from", "555666"], ["body", "Body with ääkköset end"], ["sms_type", "ActionSmser::SimpleHttpTest::MockSms.basic_sms"], ["to", "123555123"], ["msg_id", "id_6666"], ["status", "LOCAL_SENT"], ["status_updated_at", "2015-04-22 12:48:22.403781"], ["log", "2015-04-22 15:48:22: LOCAL_SENT\n"], ["gateway", "simple_http"], ["created_at", "2015-04-22 12:48:22.404085"], ["updated_at", "2015-04-22 12:48:22.404085"]]
|
32450
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
32451
|
+
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "action_smser_delivery_reports"
|
32452
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
32453
|
+
[1m[35m (0.0ms)[0m begin transaction
|
32454
|
+
--------------------------------------------------------------------------------
|
32455
|
+
ActionSmser::SmstradeTest: test_should_append_00_to_phone_numbers_before_sending
|
32456
|
+
--------------------------------------------------------------------------------
|
32457
|
+
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)
|
32458
|
+
ActionSmser: Smstrade delivery http ||| ||| #<Mock:0x3616d88>
|
32459
|
+
ActionSmser: 100
|
32460
|
+
123456789
|
32461
|
+
0.064
|
32462
|
+
1
|
32463
|
+
ActionSmser: Smstrade delivery http ||| ||| #<Mock:0x3616d88>
|
32464
|
+
ActionSmser: 100
|
32465
|
+
123456789
|
32466
|
+
0.064
|
32467
|
+
1
|
32468
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
32469
|
+
[1m[35m (0.0ms)[0m begin transaction
|
32470
|
+
--------------------------------------------------------------------------------------------------
|
32471
|
+
ActionSmser::SmstradeTest: test_should_only_receive_numbers_not_prepended_with_zeros_or_plus_signs
|
32472
|
+
--------------------------------------------------------------------------------------------------
|
32473
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
32474
|
+
[1m[35m (0.0ms)[0m begin transaction
|
32475
|
+
------------------------------------------------------------
|
32476
|
+
ActionSmser::SmstradeTest: test_with_saving_delivery_reports
|
32477
|
+
------------------------------------------------------------
|
32478
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "action_smser_delivery_reports"[0m
|
32479
|
+
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)
|
32480
|
+
ActionSmser: Smstrade delivery http ||| /?key=api-key-here&from=4917212341234&to=004915112341234&message=Body+with+%C3%BCml%C3%A4%C3%BCts.&route=gold&debug=1&cost=1&message_id=1&count=1&charset=utf-8 ||| #<Mock:0x35da608>
|
32481
|
+
ActionSmser: 100
|
32482
|
+
123456789
|
32483
|
+
0.064
|
32484
|
+
1
|
32485
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
32486
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "action_smser_delivery_reports" ("from", "body", "sms_type", "to", "msg_id", "status", "status_updated_at", "log", "gateway", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["from", "4917212341234"], ["body", "Body with ümläüts."], ["sms_type", "ActionSmser::SmstradeTest::MockSms.basic_sms"], ["to", "004915112341234"], ["msg_id", "123456789"], ["status", "LOCAL_SENT"], ["status_updated_at", "2015-04-22 12:48:22.409680"], ["log", "2015-04-22 15:48:22: LOCAL_SENT\n"], ["gateway", "smstrade"], ["created_at", "2015-04-22 12:48:22.410122"], ["updated_at", "2015-04-22 12:48:22.410122"]]
|
32487
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
32488
|
+
ActionSmser: Smstrade delivery http ||| /?key=api-key-here&from=4917212341234&to=004917812341234&message=Body+with+%C3%BCml%C3%A4%C3%BCts.&route=gold&debug=1&cost=1&message_id=1&count=1&charset=utf-8 ||| #<Mock:0x35da608>
|
32489
|
+
ActionSmser: 100
|
32490
|
+
123456789
|
32491
|
+
0.064
|
32492
|
+
1
|
32493
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
32494
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "action_smser_delivery_reports" ("from", "body", "sms_type", "to", "msg_id", "status", "status_updated_at", "log", "gateway", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["from", "4917212341234"], ["body", "Body with ümläüts."], ["sms_type", "ActionSmser::SmstradeTest::MockSms.basic_sms"], ["to", "004917812341234"], ["msg_id", "123456789"], ["status", "LOCAL_SENT"], ["status_updated_at", "2015-04-22 12:48:22.411562"], ["log", "2015-04-22 15:48:22: LOCAL_SENT\n"], ["gateway", "smstrade"], ["created_at", "2015-04-22 12:48:22.411951"], ["updated_at", "2015-04-22 12:48:22.411951"]]
|
32495
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
32496
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "action_smser_delivery_reports"
|
32497
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
32498
|
+
[1m[35m (0.0ms)[0m begin transaction
|
32499
|
+
---------------------------------------------------------
|
32500
|
+
ActionSmser::SmstradeTest: test_should_be_able_to_deliver
|
32501
|
+
---------------------------------------------------------
|
32502
|
+
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)
|
32503
|
+
ActionSmser: Smstrade delivery http ||| /?key=api-key-here&from=4917212341234&to=004915112341234&message=Body+with+%C3%BCml%C3%A4%C3%BCts.&route=gold&debug=1&cost=1&message_id=1&count=1&charset=utf-8 ||| #<Mock:0x355dc98>
|
32504
|
+
ActionSmser: 100
|
32505
|
+
123456789
|
32506
|
+
0.064
|
32507
|
+
1
|
32508
|
+
ActionSmser: Smstrade delivery http ||| /?key=api-key-here&from=4917212341234&to=004917812341234&message=Body+with+%C3%BCml%C3%A4%C3%BCts.&route=gold&debug=1&cost=1&message_id=1&count=1&charset=utf-8 ||| #<Mock:0x355dc98>
|
32509
|
+
ActionSmser: 100
|
32510
|
+
123456789
|
32511
|
+
0.064
|
32512
|
+
1
|
32513
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
32514
|
+
[1m[35m (0.1ms)[0m begin transaction
|
32515
|
+
----------------------------------------------------------
|
32516
|
+
ActionSmser::TestArrayTest: test_should_be_able_to_deliver
|
32517
|
+
----------------------------------------------------------
|
32518
|
+
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)
|
32519
|
+
ActionSmser: ActionSmser::DeliveryMethods::TestArray.deliveries added message, no real delivery.
|
32520
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
32521
|
+
[1m[35m (0.0ms)[0m begin transaction
|
32522
|
+
-------------------------------------------------------------
|
32523
|
+
ActionSmser::TestArrayTest: test_with_saving_delivery_reports
|
32524
|
+
-------------------------------------------------------------
|
32525
|
+
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)
|
32526
|
+
ActionSmser: ActionSmser::DeliveryMethods::TestArray.deliveries added message, no real delivery.
|
32527
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "action_smser_delivery_reports"[0m
|
32528
|
+
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)
|
32529
|
+
ActionSmser: ActionSmser::DeliveryMethods::TestArray.deliveries added message, no real delivery.
|
32530
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
32531
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "action_smser_delivery_reports" ("from", "body", "sms_type", "to", "msg_id", "status", "status_updated_at", "log", "gateway", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["from", "555666"], ["body", "Body with ääkköset end"], ["sms_type", "ActionSmser::TestArrayTest::MockSms.basic_sms"], ["to", "555123555"], ["msg_id", "test_array_id_67374145"], ["status", "LOCAL_SENT"], ["status_updated_at", "2015-04-22 12:48:22.417570"], ["log", "2015-04-22 15:48:22: LOCAL_SENT\n"], ["gateway", "test_array"], ["created_at", "2015-04-22 12:48:22.417997"], ["updated_at", "2015-04-22 12:48:22.417997"]]
|
32532
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
32533
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
32534
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "action_smser_delivery_reports" ("from", "body", "sms_type", "to", "msg_id", "status", "status_updated_at", "log", "gateway", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["from", "555666"], ["body", "Body with ääkköset end"], ["sms_type", "ActionSmser::TestArrayTest::MockSms.basic_sms"], ["to", "123555123"], ["msg_id", "test_array_id_61844339"], ["status", "LOCAL_SENT"], ["status_updated_at", "2015-04-22 12:48:22.419243"], ["log", "2015-04-22 15:48:22: LOCAL_SENT\n"], ["gateway", "test_array"], ["created_at", "2015-04-22 12:48:22.419597"], ["updated_at", "2015-04-22 12:48:22.419597"]]
|
32535
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
32536
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "action_smser_delivery_reports"
|
32537
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
32538
|
+
[1m[35m (0.0ms)[0m begin transaction
|
32539
|
+
--------------------------------------------------------
|
32540
|
+
ActionSmser::TestArrayTest: test_should_add_to_TestArray
|
32541
|
+
--------------------------------------------------------
|
32542
|
+
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)
|
32543
|
+
ActionSmser: ActionSmser::DeliveryMethods::TestArray.deliveries added message, no real delivery.
|
32544
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
32545
|
+
[1m[35m (0.0ms)[0m begin transaction
|
32546
|
+
-------------------------------------------------------------
|
32547
|
+
ActionSmser::DelayedJobTest: test_test_that_serializing_is_ok
|
32548
|
+
-------------------------------------------------------------
|
32549
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
32550
|
+
[1m[35m (0.0ms)[0m begin transaction
|
32551
|
+
----------------------------------------------------------------------------------------------
|
32552
|
+
ActionSmser::DelayedJobTest: test_should_be_able_to_deliver_and_call_enqueue_for_all_receivers
|
32553
|
+
----------------------------------------------------------------------------------------------
|
32554
|
+
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)
|
32555
|
+
ActionSmser: Delivering sms by delayed_job
|
32556
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
32557
|
+
[1m[35m (0.0ms)[0m begin transaction
|
32558
|
+
------------------------------------------------------------------------------
|
32559
|
+
ActionSmser::NexmoTest: test_delivery_path_should_have_unicode_set_when_needed
|
32560
|
+
------------------------------------------------------------------------------
|
32561
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
32562
|
+
[1m[35m (0.0ms)[0m begin transaction
|
32563
|
+
---------------------------------------------------------
|
32564
|
+
ActionSmser::NexmoTest: test_with_saving_delivery_reports
|
32565
|
+
---------------------------------------------------------
|
32566
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "action_smser_delivery_reports"[0m
|
32567
|
+
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)
|
32568
|
+
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:0x34429d0>
|
32569
|
+
ActionSmser: {"message-count":"1","messages":[{"message-price":"0.02500000","status":"0","message-id":"0778DE88","remaining-balance":"1.77500000"}]}
|
32570
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
32571
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "action_smser_delivery_reports" ("from", "body", "sms_type", "to", "msg_id", "status", "status_updated_at", "log", "gateway", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["from", "555666"], ["body", "Body with ääkköset end"], ["sms_type", "ActionSmser::NexmoTest::MockSms.basic_sms"], ["to", "555123555"], ["msg_id", "0778DE88"], ["status", "LOCAL_SENT"], ["status_updated_at", "2015-04-22 12:48:22.425946"], ["log", "2015-04-22 15:48:22: LOCAL_SENT\n"], ["gateway", "nexmo"], ["created_at", "2015-04-22 12:48:22.426333"], ["updated_at", "2015-04-22 12:48:22.426333"]]
|
32572
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
32573
|
+
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:0x34429d0>
|
32574
|
+
ActionSmser: {"message-count":"1","messages":[{"message-price":"0.02500000","status":"0","message-id":"0778DE88","remaining-balance":"1.77500000"}]}
|
32575
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
32576
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "action_smser_delivery_reports" ("from", "body", "sms_type", "to", "msg_id", "status", "status_updated_at", "log", "gateway", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["from", "555666"], ["body", "Body with ääkköset end"], ["sms_type", "ActionSmser::NexmoTest::MockSms.basic_sms"], ["to", "123555123"], ["msg_id", "0778DE88"], ["status", "LOCAL_SENT"], ["status_updated_at", "2015-04-22 12:48:22.427706"], ["log", "2015-04-22 15:48:22: LOCAL_SENT\n"], ["gateway", "nexmo"], ["created_at", "2015-04-22 12:48:22.428054"], ["updated_at", "2015-04-22 12:48:22.428054"]]
|
32577
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
32578
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "action_smser_delivery_reports"
|
32579
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
32580
|
+
[1m[35m (0.0ms)[0m begin transaction
|
32581
|
+
---------------------------------------------------------------------
|
32582
|
+
ActionSmser::NexmoTest: test_gateway_process_delivery_report(request)
|
32583
|
+
---------------------------------------------------------------------
|
32584
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
32585
|
+
[1m[35m (0.0ms)[0m begin transaction
|
32586
|
+
------------------------------------------------------
|
32587
|
+
ActionSmser::NexmoTest: test_should_be_able_to_deliver
|
32588
|
+
------------------------------------------------------
|
32589
|
+
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)
|
32590
|
+
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:0x33a5900>
|
32591
|
+
ActionSmser: {"message-count":"1","messages":[{"message-price":"0.02500000","status":"0","message-id":"0778DE88","remaining-balance":"1.77500000"}]}
|
32592
|
+
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:0x33a5900>
|
32593
|
+
ActionSmser: {"message-count":"1","messages":[{"message-price":"0.02500000","status":"0","message-id":"0778DE88","remaining-balance":"1.77500000"}]}
|
32594
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
32595
|
+
[1m[35m (0.1ms)[0m begin transaction
|
32596
|
+
---------------------------------------------------------
|
32597
|
+
NavigationTest: test_basic_gateway_commit_delivery_report
|
32598
|
+
---------------------------------------------------------
|
32599
|
+
Started GET "/action_smser/delivery_reports/gateway_commit/example_gateway" for 127.0.0.1 at 2015-04-22 15:48:22 +0300
|
32600
|
+
Processing by ActionSmser::DeliveryReportsController#gateway_commit as HTML
|
32601
|
+
Parameters: {"gateway"=>"example_gateway"}
|
32602
|
+
Rendered text template (0.0ms)
|
32603
|
+
Completed 200 OK in 3ms (Views: 3.0ms | ActiveRecord: 0.0ms)
|
32604
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
32605
|
+
[1m[35m (0.0ms)[0m begin transaction
|
32606
|
+
---------------------------
|
32607
|
+
ActionSmserTest: test_truth
|
32608
|
+
---------------------------
|
32609
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
32610
|
+
[1m[35m (0.0ms)[0m begin transaction
|
32611
|
+
--------------------------------------------------------------------------
|
32612
|
+
ActionSmser::DeliveryReportsControllerTest: test_gateway_commit_without_dr
|
32613
|
+
--------------------------------------------------------------------------
|
32614
|
+
Processing by ActionSmser::DeliveryReportsController#gateway_commit as HTML
|
32615
|
+
Parameters: {"DeliveryReport"=>{"message"=>{"id"=>"wrongid", "donedate"=>"2012/01/03 14:20:45", "sentdate"=>"2012/01/03 14:20:40", "status"=>"DELIVERED"}}, "gateway"=>"test_gateway"}
|
32616
|
+
ActionSmser: Gateway_commit found parser for gateway: test_gateway
|
32617
|
+
[1m[36mActionSmser::DeliveryReport Load (0.2ms)[0m [1mSELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."msg_id" = ? ORDER BY "action_smser_delivery_reports"."id" ASC LIMIT 1[0m [["msg_id", "wrongid"]]
|
32618
|
+
ActionSmser: Gateway_commit not found item with id: wrongid, params: {"msg_id"=>"wrongid", "status"=>"DELIVERED"}
|
32619
|
+
Rendered text template (0.0ms)
|
32620
|
+
Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.2ms)
|
32621
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
32622
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
32623
|
+
--------------------------------------------------------------------------------
|
32624
|
+
ActionSmser::DeliveryReportsControllerTest: test_gateway_commit_with_existing_dr
|
32625
|
+
--------------------------------------------------------------------------------
|
32626
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
32627
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "action_smser_delivery_reports" ("msg_id", "status", "status_updated_at", "log", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["msg_id", "102010314204056202"], ["status", "ORIGINAL_STATUS"], ["status_updated_at", "2015-04-22 12:48:22.480580"], ["log", "2015-04-22 15:48:22: ORIGINAL_STATUS\n"], ["created_at", "2015-04-22 12:48:22.480994"], ["updated_at", "2015-04-22 12:48:22.480994"]]
|
32628
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
32629
|
+
Processing by ActionSmser::DeliveryReportsController#gateway_commit as HTML
|
32630
|
+
Parameters: {"DeliveryReport"=>{"message"=>{"id"=>"102010314204056202", "donedate"=>"2012/01/03 14:20:45", "sentdate"=>"2012/01/03 14:20:40", "status"=>"DELIVERED"}}, "gateway"=>"test_gateway"}
|
32631
|
+
ActionSmser: Gateway_commit found parser for gateway: test_gateway
|
32632
|
+
[1m[36mActionSmser::DeliveryReport Load (0.0ms)[0m [1mSELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."msg_id" = ? ORDER BY "action_smser_delivery_reports"."id" ASC LIMIT 1[0m [["msg_id", "102010314204056202"]]
|
32633
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
32634
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "action_smser_delivery_reports" SET "status" = ?, "status_updated_at" = ?, "log" = ?, "updated_at" = ? WHERE "action_smser_delivery_reports"."id" = ?[0m [["status", "DELIVERED"], ["status_updated_at", "2015-04-22 12:48:22.484119"], ["log", "2015-04-22 15:48:22: ORIGINAL_STATUS\n2015-04-22 15:48:22: DELIVERED\n"], ["updated_at", "2015-04-22 12:48:22.484540"], ["id", 1]]
|
32635
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
32636
|
+
ActionSmser: Gateway_commit updated item with id: 102010314204056202, params: {"msg_id"=>"102010314204056202", "status"=>"DELIVERED"}
|
32637
|
+
Rendered text template (0.0ms)
|
32638
|
+
Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.2ms)
|
32639
|
+
[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]]
|
32640
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
32641
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
32642
|
+
-------------------------------------------------------------------------------------
|
32643
|
+
ActionSmser::DeliveryReportsControllerTest: test_gateway_commit_with_multiple_records
|
32644
|
+
-------------------------------------------------------------------------------------
|
32645
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
32646
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "action_smser_delivery_reports" ("msg_id", "status", "status_updated_at", "log", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["msg_id", "102010314204056202"], ["status", "ORIGINAL_STATUS"], ["status_updated_at", "2015-04-22 12:48:22.487396"], ["log", "2015-04-22 15:48:22: ORIGINAL_STATUS\n"], ["created_at", "2015-04-22 12:48:22.487756"], ["updated_at", "2015-04-22 12:48:22.487756"]]
|
32647
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
32648
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
32649
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "action_smser_delivery_reports" ("msg_id", "status", "status_updated_at", "log", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["msg_id", "99999999999999999"], ["status", "ORIGINAL_STATUS"], ["status_updated_at", "2015-04-22 12:48:22.488800"], ["log", "2015-04-22 15:48:22: ORIGINAL_STATUS\n"], ["created_at", "2015-04-22 12:48:22.489219"], ["updated_at", "2015-04-22 12:48:22.489219"]]
|
32650
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
32651
|
+
Processing by ActionSmser::DeliveryReportsController#gateway_commit as HTML
|
32652
|
+
Parameters: {"DeliveryReport"=>{"message"=>[{"id"=>"102010314204056202", "status"=>"DELIVERED"}, {"id"=>"99999999999999999", "status"=>"DELIVERED"}]}, "gateway"=>"test_gateway"}
|
32653
|
+
ActionSmser: Gateway_commit found parser for gateway: test_gateway
|
32654
|
+
[1m[35mActionSmser::DeliveryReport Load (0.1ms)[0m SELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."msg_id" = ? ORDER BY "action_smser_delivery_reports"."id" ASC LIMIT 1 [["msg_id", "102010314204056202"]]
|
32655
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
32656
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "action_smser_delivery_reports" SET "status" = ?, "status_updated_at" = ?, "log" = ?, "updated_at" = ? WHERE "action_smser_delivery_reports"."id" = ? [["status", "DELIVERED"], ["status_updated_at", "2015-04-22 12:48:22.491999"], ["log", "2015-04-22 15:48:22: ORIGINAL_STATUS\n2015-04-22 15:48:22: DELIVERED\n"], ["updated_at", "2015-04-22 12:48:22.492525"], ["id", 1]]
|
32657
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
32658
|
+
ActionSmser: Gateway_commit updated item with id: 102010314204056202, params: {"msg_id"=>"102010314204056202", "status"=>"DELIVERED"}
|
32659
|
+
[1m[35mActionSmser::DeliveryReport Load (0.0ms)[0m SELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."msg_id" = ? ORDER BY "action_smser_delivery_reports"."id" ASC LIMIT 1 [["msg_id", "99999999999999999"]]
|
32660
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
32661
|
+
[1m[35mSQL (0.0ms)[0m UPDATE "action_smser_delivery_reports" SET "status" = ?, "status_updated_at" = ?, "log" = ?, "updated_at" = ? WHERE "action_smser_delivery_reports"."id" = ? [["status", "DELIVERED"], ["status_updated_at", "2015-04-22 12:48:22.494025"], ["log", "2015-04-22 15:48:22: ORIGINAL_STATUS\n2015-04-22 15:48:22: DELIVERED\n"], ["updated_at", "2015-04-22 12:48:22.494430"], ["id", 2]]
|
32662
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
32663
|
+
ActionSmser: Gateway_commit updated item with id: 99999999999999999, params: {"msg_id"=>"99999999999999999", "status"=>"DELIVERED"}
|
32664
|
+
Rendered text template (0.0ms)
|
32665
|
+
Completed 200 OK in 4ms (Views: 0.3ms | ActiveRecord: 0.4ms)
|
32666
|
+
[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]]
|
32667
|
+
[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", 2]]
|
32668
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
32669
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
32670
|
+
--------------------------------------------------------------------------------------------------------
|
32671
|
+
ActionSmser::DeliveryReportsControllerTest: test_index_with_forbidden_admin_access_(default_access_mode)
|
32672
|
+
--------------------------------------------------------------------------------------------------------
|
32673
|
+
Processing by ActionSmser::DeliveryReportsController#index as HTML
|
32674
|
+
Rendered text template (0.0ms)
|
32675
|
+
Filter chain halted as :admin_access_only rendered or redirected
|
32676
|
+
Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
|
32677
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
32678
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
32679
|
+
----------------------------------------------------------------------------------
|
32680
|
+
ActionSmser::DeliveryReportsControllerTest: test_gateway_commit_without_any_parser
|
32681
|
+
----------------------------------------------------------------------------------
|
32682
|
+
Processing by ActionSmser::DeliveryReportsController#gateway_commit as HTML
|
32683
|
+
Parameters: {"DeliveryReport"=>{"message"=>{"id"=>"wrongid", "donedate"=>"2012/01/03 14:20:45", "sentdate"=>"2012/01/03 14:20:40", "status"=>"DELIVERED"}}, "gateway"=>"gateway_not_found"}
|
32684
|
+
Rendered text template (0.0ms)
|
32685
|
+
Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
|
32686
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
32687
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
32688
|
+
--------------------------------------------------------------------------------
|
32689
|
+
ActionSmser::DeliveryReportsControllerTest: test_index_with_always_enabled_admin
|
32690
|
+
--------------------------------------------------------------------------------
|
32691
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
32692
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "action_smser_delivery_reports" ("msg_id", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["msg_id", "idtest_7"], ["created_at", "2015-04-22 12:48:22.501853"], ["updated_at", "2015-04-22 12:48:22.501853"]]
|
32693
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
32694
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
32695
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "action_smser_delivery_reports" ("msg_id", "created_at", "updated_at") VALUES (?, ?, ?) [["msg_id", "idtest_7"], ["created_at", "2015-04-22 12:48:22.503296"], ["updated_at", "2015-04-22 12:48:22.503296"]]
|
32696
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
32697
|
+
Processing by ActionSmser::DeliveryReportsController#index as HTML
|
32698
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2015-04-15 12:48:22.509936' AND '2015-04-22 12:38:22.510085')
|
32699
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) AS count_all, gateway AS gateway FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2015-04-15 12:48:22.509936' AND '2015-04-22 12:38:22.510085') GROUP BY "action_smser_delivery_reports"."gateway"[0m
|
32700
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2015-04-15 12:48:22.509936' AND '2015-04-22 12:38:22.510085')
|
32701
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) AS count_all, status AS status FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2015-04-15 12:48:22.509936' AND '2015-04-22 12:38:22.510085') GROUP BY "action_smser_delivery_reports"."status"[0m
|
32702
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2015-04-15 12:48:22.509936' AND '2015-04-22 12:38:22.510085')
|
32703
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) AS count_all, sms_type AS sms_type FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2015-04-15 12:48:22.509936' AND '2015-04-22 12:38:22.510085') GROUP BY "action_smser_delivery_reports"."sms_type"[0m
|
32704
|
+
Rendered /home/ohu/koodi/own_gems_programs/action_smser/app/views/action_smser/delivery_reports/index.html.erb within layouts/action_smser/delivery_reports (9.2ms)
|
32705
|
+
Completed 200 OK in 12ms (Views: 10.8ms | ActiveRecord: 0.5ms)
|
32706
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
32707
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
32708
|
+
-------------------------------------------------------------------------------
|
32709
|
+
ActionSmser::DeliveryReportsControllerTest: test_list_with_always_enabled_admin
|
32710
|
+
-------------------------------------------------------------------------------
|
32711
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
32712
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "action_smser_delivery_reports" ("msg_id", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["msg_id", "idtest_1"], ["created_at", "2015-04-22 12:48:22.519180"], ["updated_at", "2015-04-22 12:48:22.519180"]]
|
32713
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
32714
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
32715
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "action_smser_delivery_reports" ("msg_id", "created_at", "updated_at") VALUES (?, ?, ?) [["msg_id", "idtest_1"], ["created_at", "2015-04-22 12:48:22.520470"], ["updated_at", "2015-04-22 12:48:22.520470"]]
|
32716
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
32717
|
+
Processing by ActionSmser::DeliveryReportsController#list as HTML
|
32718
|
+
[1m[35mActionSmser::DeliveryReport Load (0.2ms)[0m SELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" ORDER BY created_at DESC LIMIT 20 OFFSET 0
|
32719
|
+
Rendered /home/ohu/koodi/own_gems_programs/action_smser/app/views/action_smser/delivery_reports/list.html.erb within layouts/action_smser/delivery_reports (2.6ms)
|
32720
|
+
Completed 200 OK in 4ms (Views: 3.5ms | ActiveRecord: 0.2ms)
|
32721
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
32722
|
+
[1m[35m (0.0ms)[0m begin transaction
|
32723
|
+
-----------------------------------------------------------------------------------------------------
|
32724
|
+
ActionSmser::DeliveryReportsControllerTest: test_index_with_admin_access_lambda_with_right_login_info
|
32725
|
+
-----------------------------------------------------------------------------------------------------
|
32726
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
32727
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "action_smser_delivery_reports" ("msg_id", "created_at", "updated_at") VALUES (?, ?, ?) [["msg_id", "idtest_2"], ["created_at", "2015-04-22 12:48:22.528027"], ["updated_at", "2015-04-22 12:48:22.528027"]]
|
32728
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
32729
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
32730
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "action_smser_delivery_reports" ("msg_id", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["msg_id", "idtest_4"], ["created_at", "2015-04-22 12:48:22.529182"], ["updated_at", "2015-04-22 12:48:22.529182"]]
|
32731
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
32732
|
+
Processing by ActionSmser::DeliveryReportsController#index as HTML
|
32733
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2015-04-15 12:48:22.531395' AND '2015-04-22 12:38:22.531463')[0m
|
32734
|
+
[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 '2015-04-15 12:48:22.531395' AND '2015-04-22 12:38:22.531463') GROUP BY "action_smser_delivery_reports"."gateway"
|
32735
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2015-04-15 12:48:22.531395' AND '2015-04-22 12:38:22.531463')[0m
|
32736
|
+
[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 '2015-04-15 12:48:22.531395' AND '2015-04-22 12:38:22.531463') GROUP BY "action_smser_delivery_reports"."status"
|
32737
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2015-04-15 12:48:22.531395' AND '2015-04-22 12:38:22.531463')[0m
|
32738
|
+
[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 '2015-04-15 12:48:22.531395' AND '2015-04-22 12:38:22.531463') GROUP BY "action_smser_delivery_reports"."sms_type"
|
32739
|
+
Rendered /home/ohu/koodi/own_gems_programs/action_smser/app/views/action_smser/delivery_reports/index.html.erb within layouts/action_smser/delivery_reports (5.0ms)
|
32740
|
+
Completed 200 OK in 6ms (Views: 5.2ms | ActiveRecord: 0.4ms)
|
32741
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
32742
|
+
[1m[35m (0.0ms)[0m begin transaction
|
32743
|
+
----------------------------------------------------------------
|
32744
|
+
ActionSmser::BaseTest: test_receivers_should_be_joined_by_commas
|
32745
|
+
----------------------------------------------------------------
|
32746
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
32747
|
+
[1m[35m (0.0ms)[0m begin transaction
|
32748
|
+
-----------------------------------------------
|
32749
|
+
ActionSmser::BaseTest: test_should_be_valid_sms
|
32750
|
+
-----------------------------------------------
|
32751
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
32752
|
+
[1m[35m (0.0ms)[0m begin transaction
|
32753
|
+
--------------------------------------------------------------------------------------------
|
32754
|
+
ActionSmser::BaseTest: test_body_should_be_cropped_to_500_chars,_limit_extra_looong_messages
|
32755
|
+
--------------------------------------------------------------------------------------------
|
32756
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
32757
|
+
[1m[35m (0.0ms)[0m begin transaction
|
32758
|
+
---------------------------------------------------------------------------
|
32759
|
+
ActionSmser::BaseTest: test_after_delivery_should_be_called_if_it's_present
|
32760
|
+
---------------------------------------------------------------------------
|
32761
|
+
ActionSmser: Sending sms - Delivery_method: test_array - Sms: (Sms ActionSmser::BaseTest::MockSms.basic_sms - From: "555666", To: ["555123555", "123", "+358123555123", "004915112341234", "04917332341111"], Body: "Body with ääkköset end", Valid: true)
|
32762
|
+
ActionSmser: ActionSmser::DeliveryMethods::TestArray.deliveries added message, no real delivery.
|
32763
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
32764
|
+
[1m[35m (0.0ms)[0m begin transaction
|
32765
|
+
----------------------------------------------------------------
|
32766
|
+
ActionSmser::BaseTest: test_should_not_be_valid_if_no_recipients
|
32767
|
+
----------------------------------------------------------------
|
32768
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
32769
|
+
[1m[35m (0.0ms)[0m begin transaction
|
32770
|
+
-------------------------------------------------------------------------------------
|
32771
|
+
ActionSmser::BaseTest: test_should_have_copied_the_delivery_options_when_initializing
|
32772
|
+
-------------------------------------------------------------------------------------
|
32773
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
32774
|
+
[1m[35m (0.0ms)[0m begin transaction
|
32775
|
+
-------------------------------------------------------------
|
32776
|
+
ActionSmser::BaseTest: test_ttl_should_be_24_hours_by_default
|
32777
|
+
-------------------------------------------------------------
|
32778
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
32779
|
+
[1m[35m (0.0ms)[0m begin transaction
|
32780
|
+
----------------------------------------------------------------------------
|
32781
|
+
ActionSmser::BaseTest: test_before_delivery_should_be_called_if_it's_present
|
32782
|
+
----------------------------------------------------------------------------
|
32783
|
+
ActionSmser: Sending sms - Delivery_method: test_array - Sms: (Sms ActionSmser::BaseTest::MockSms.basic_sms - From: "555666", To: ["555123555", "123", "+358123555123", "004915112341234", "04917332341111"], Body: "Body with ääkköset end", Valid: true)
|
32784
|
+
ActionSmser: ActionSmser::DeliveryMethods::TestArray.deliveries added message, no real delivery.
|
32785
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
32786
|
+
[1m[35m (0.0ms)[0m begin transaction
|
32787
|
+
---------------------------------------------------------------------
|
32788
|
+
ActionSmser::BaseTest: test_should_have_test_array_as_delivery_method
|
32789
|
+
---------------------------------------------------------------------
|
32790
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
32791
|
+
[1m[35m (0.0ms)[0m begin transaction
|
32792
|
+
--------------------------------------------------------
|
32793
|
+
ActionSmser::BaseTest: test_should_be_able_to_change_ttl
|
32794
|
+
--------------------------------------------------------
|
32795
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
32796
|
+
[1m[35m (0.0ms)[0m begin transaction
|
32797
|
+
--------------------------------------------------------------------------------------------------------
|
32798
|
+
ActionSmser::BaseTest: test_message_real_crop_should_return_cropped_message_with_sms_chars_taken_account
|
32799
|
+
--------------------------------------------------------------------------------------------------------
|
32800
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
32801
|
+
[1m[35m (0.0ms)[0m begin transaction
|
32802
|
+
--------------------------------------------------------------
|
32803
|
+
ActionSmser::BaseTest: test_should_be_ok_with_single_receivers
|
32804
|
+
--------------------------------------------------------------
|
32805
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
32806
|
+
[1m[35m (0.1ms)[0m begin transaction
|
32807
|
+
------------------------------------------------------
|
32808
|
+
ActionSmser::BaseTest: test_should_have_saved_sms_type
|
32809
|
+
------------------------------------------------------
|
32810
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
32811
|
+
[1m[35m (0.0ms)[0m begin transaction
|
32812
|
+
-------------------------------------------------------------
|
32813
|
+
ActionSmser::BaseTest: test_body_should_be_possible_to_encode
|
32814
|
+
-------------------------------------------------------------
|
32815
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
32816
|
+
[1m[35m (0.1ms)[0m begin transaction
|
32817
|
+
-----------------------------------------------------------------------------
|
32818
|
+
ActionSmser::BaseTest: test_message_real_length_should_return_real_sms_lenght
|
32819
|
+
-----------------------------------------------------------------------------
|
32820
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
32821
|
+
[1m[35m (0.0ms)[0m begin transaction
|
32822
|
+
----------------------------------------------------------------------
|
32823
|
+
ActionSmser::BaseTest: test_from_encoded_should_remove_leading_+_and_0
|
32824
|
+
----------------------------------------------------------------------
|
32825
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
32826
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
32827
|
+
[1m[35m (0.1ms)[0m begin transaction
|
32828
|
+
--------------------------------------------------------------------------------
|
32829
|
+
ActionSmser::DeliveryReportsControllerTest: test_gateway_commit_with_existing_dr
|
32830
|
+
--------------------------------------------------------------------------------
|
32831
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
32832
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "action_smser_delivery_reports" ("msg_id", "status", "status_updated_at", "log", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["msg_id", "102010314204056202"], ["status", "ORIGINAL_STATUS"], ["status_updated_at", "2015-04-22 13:15:36.280405"], ["log", "2015-04-22 16:15:36: ORIGINAL_STATUS\n"], ["created_at", "2015-04-22 13:15:36.282007"], ["updated_at", "2015-04-22 13:15:36.282007"]]
|
32833
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
32834
|
+
Processing by ActionSmser::DeliveryReportsController#gateway_commit as HTML
|
32835
|
+
Parameters: {"DeliveryReport"=>{"message"=>{"id"=>"102010314204056202", "donedate"=>"2012/01/03 14:20:45", "sentdate"=>"2012/01/03 14:20:40", "status"=>"DELIVERED"}}, "gateway"=>"test_gateway"}
|
32836
|
+
ActionSmser: Gateway_commit found parser for gateway: test_gateway
|
32837
|
+
[1m[35mActionSmser::DeliveryReport Load (0.2ms)[0m SELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."msg_id" = ? ORDER BY "action_smser_delivery_reports"."id" ASC LIMIT 1 [["msg_id", "102010314204056202"]]
|
32838
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
32839
|
+
[1m[35mSQL (0.2ms)[0m UPDATE "action_smser_delivery_reports" SET "status" = ?, "status_updated_at" = ?, "log" = ?, "updated_at" = ? WHERE "action_smser_delivery_reports"."id" = ? [["status", "DELIVERED"], ["status_updated_at", "2015-04-22 13:15:36.292045"], ["log", "2015-04-22 16:15:36: ORIGINAL_STATUS\n2015-04-22 16:15:36: DELIVERED\n"], ["updated_at", "2015-04-22 13:15:36.292606"], ["id", 1]]
|
32840
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
32841
|
+
ActionSmser: Gateway_commit updated item with id: 102010314204056202, params: {"msg_id"=>"102010314204056202", "status"=>"DELIVERED"}
|
32842
|
+
Rendered text template (0.0ms)
|
32843
|
+
Completed 200 OK in 9ms (Views: 2.8ms | ActiveRecord: 0.5ms)
|
32844
|
+
[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]]
|
32845
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
32846
|
+
[1m[35m (0.0ms)[0m begin transaction
|
32847
|
+
--------------------------------------------------------------------------
|
32848
|
+
ActionSmser::DeliveryReportsControllerTest: test_gateway_commit_without_dr
|
32849
|
+
--------------------------------------------------------------------------
|
32850
|
+
Processing by ActionSmser::DeliveryReportsController#gateway_commit as HTML
|
32851
|
+
Parameters: {"DeliveryReport"=>{"message"=>{"id"=>"wrongid", "donedate"=>"2012/01/03 14:20:45", "sentdate"=>"2012/01/03 14:20:40", "status"=>"DELIVERED"}}, "gateway"=>"test_gateway"}
|
32852
|
+
ActionSmser: Gateway_commit found parser for gateway: test_gateway
|
32853
|
+
[1m[36mActionSmser::DeliveryReport Load (0.0ms)[0m [1mSELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."msg_id" = ? ORDER BY "action_smser_delivery_reports"."id" ASC LIMIT 1[0m [["msg_id", "wrongid"]]
|
32854
|
+
ActionSmser: Gateway_commit not found item with id: wrongid, params: {"msg_id"=>"wrongid", "status"=>"DELIVERED"}
|
32855
|
+
Rendered text template (0.0ms)
|
32856
|
+
Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)
|
32857
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
32858
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
32859
|
+
-----------------------------------------------------------------------------------------------------
|
32860
|
+
ActionSmser::DeliveryReportsControllerTest: test_index_with_admin_access_lambda_with_right_login_info
|
32861
|
+
-----------------------------------------------------------------------------------------------------
|
32862
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
32863
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "action_smser_delivery_reports" ("msg_id", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["msg_id", "idtest_8"], ["created_at", "2015-04-22 13:15:36.301586"], ["updated_at", "2015-04-22 13:15:36.301586"]]
|
32864
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
32865
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
32866
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "action_smser_delivery_reports" ("msg_id", "created_at", "updated_at") VALUES (?, ?, ?) [["msg_id", "idtest_6"], ["created_at", "2015-04-22 13:15:36.302701"], ["updated_at", "2015-04-22 13:15:36.302701"]]
|
32867
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
32868
|
+
Processing by ActionSmser::DeliveryReportsController#index as HTML
|
32869
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2015-04-15 13:15:36.307917' AND '2015-04-22 13:05:36.308273')
|
32870
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) AS count_all, gateway AS gateway FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2015-04-15 13:15:36.307917' AND '2015-04-22 13:05:36.308273') GROUP BY "action_smser_delivery_reports"."gateway"[0m
|
32871
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2015-04-15 13:15:36.307917' AND '2015-04-22 13:05:36.308273')
|
32872
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) AS count_all, status AS status FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2015-04-15 13:15:36.307917' AND '2015-04-22 13:05:36.308273') GROUP BY "action_smser_delivery_reports"."status"[0m
|
32873
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2015-04-15 13:15:36.307917' AND '2015-04-22 13:05:36.308273')
|
32874
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) AS count_all, sms_type AS sms_type FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2015-04-15 13:15:36.307917' AND '2015-04-22 13:05:36.308273') GROUP BY "action_smser_delivery_reports"."sms_type"[0m
|
32875
|
+
Rendered /home/ohu/koodi/own_gems_programs/action_smser/app/views/action_smser/delivery_reports/index.html.erb within layouts/action_smser/delivery_reports (11.3ms)
|
32876
|
+
Completed 200 OK in 13ms (Views: 12.6ms | ActiveRecord: 0.4ms)
|
32877
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
32878
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
32879
|
+
-------------------------------------------------------------------------------------
|
32880
|
+
ActionSmser::DeliveryReportsControllerTest: test_gateway_commit_with_multiple_records
|
32881
|
+
-------------------------------------------------------------------------------------
|
32882
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
32883
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "action_smser_delivery_reports" ("msg_id", "status", "status_updated_at", "log", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["msg_id", "102010314204056202"], ["status", "ORIGINAL_STATUS"], ["status_updated_at", "2015-04-22 13:15:36.318268"], ["log", "2015-04-22 16:15:36: ORIGINAL_STATUS\n"], ["created_at", "2015-04-22 13:15:36.318676"], ["updated_at", "2015-04-22 13:15:36.318676"]]
|
32884
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
32885
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
32886
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "action_smser_delivery_reports" ("msg_id", "status", "status_updated_at", "log", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["msg_id", "99999999999999999"], ["status", "ORIGINAL_STATUS"], ["status_updated_at", "2015-04-22 13:15:36.319756"], ["log", "2015-04-22 16:15:36: ORIGINAL_STATUS\n"], ["created_at", "2015-04-22 13:15:36.320034"], ["updated_at", "2015-04-22 13:15:36.320034"]]
|
32887
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
32888
|
+
Processing by ActionSmser::DeliveryReportsController#gateway_commit as HTML
|
32889
|
+
Parameters: {"DeliveryReport"=>{"message"=>[{"id"=>"102010314204056202", "status"=>"DELIVERED"}, {"id"=>"99999999999999999", "status"=>"DELIVERED"}]}, "gateway"=>"test_gateway"}
|
32890
|
+
ActionSmser: Gateway_commit found parser for gateway: test_gateway
|
32891
|
+
[1m[35mActionSmser::DeliveryReport Load (0.1ms)[0m SELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."msg_id" = ? ORDER BY "action_smser_delivery_reports"."id" ASC LIMIT 1 [["msg_id", "102010314204056202"]]
|
32892
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
32893
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "action_smser_delivery_reports" SET "status" = ?, "status_updated_at" = ?, "log" = ?, "updated_at" = ? WHERE "action_smser_delivery_reports"."id" = ? [["status", "DELIVERED"], ["status_updated_at", "2015-04-22 13:15:36.322900"], ["log", "2015-04-22 16:15:36: ORIGINAL_STATUS\n2015-04-22 16:15:36: DELIVERED\n"], ["updated_at", "2015-04-22 13:15:36.324332"], ["id", 1]]
|
32894
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
32895
|
+
ActionSmser: Gateway_commit updated item with id: 102010314204056202, params: {"msg_id"=>"102010314204056202", "status"=>"DELIVERED"}
|
32896
|
+
[1m[35mActionSmser::DeliveryReport Load (0.0ms)[0m SELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."msg_id" = ? ORDER BY "action_smser_delivery_reports"."id" ASC LIMIT 1 [["msg_id", "99999999999999999"]]
|
32897
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
32898
|
+
[1m[35mSQL (0.0ms)[0m UPDATE "action_smser_delivery_reports" SET "status" = ?, "status_updated_at" = ?, "log" = ?, "updated_at" = ? WHERE "action_smser_delivery_reports"."id" = ? [["status", "DELIVERED"], ["status_updated_at", "2015-04-22 13:15:36.325897"], ["log", "2015-04-22 16:15:36: ORIGINAL_STATUS\n2015-04-22 16:15:36: DELIVERED\n"], ["updated_at", "2015-04-22 13:15:36.326231"], ["id", 2]]
|
32899
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
32900
|
+
ActionSmser: Gateway_commit updated item with id: 99999999999999999, params: {"msg_id"=>"99999999999999999", "status"=>"DELIVERED"}
|
32901
|
+
Rendered text template (0.0ms)
|
32902
|
+
Completed 200 OK in 6ms (Views: 0.3ms | ActiveRecord: 0.6ms)
|
32903
|
+
[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]]
|
32904
|
+
[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]]
|
32905
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
32906
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
32907
|
+
----------------------------------------------------------------------------------
|
32908
|
+
ActionSmser::DeliveryReportsControllerTest: test_gateway_commit_without_any_parser
|
32909
|
+
----------------------------------------------------------------------------------
|
32910
|
+
Processing by ActionSmser::DeliveryReportsController#gateway_commit as HTML
|
32911
|
+
Parameters: {"DeliveryReport"=>{"message"=>{"id"=>"wrongid", "donedate"=>"2012/01/03 14:20:45", "sentdate"=>"2012/01/03 14:20:40", "status"=>"DELIVERED"}}, "gateway"=>"gateway_not_found"}
|
32912
|
+
Rendered text template (0.0ms)
|
32913
|
+
Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
|
32914
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
32915
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
32916
|
+
--------------------------------------------------------------------------------
|
32917
|
+
ActionSmser::DeliveryReportsControllerTest: test_index_with_always_enabled_admin
|
32918
|
+
--------------------------------------------------------------------------------
|
32919
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
32920
|
+
[1m[36mSQL (3.5ms)[0m [1mINSERT INTO "action_smser_delivery_reports" ("msg_id", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["msg_id", "idtest_1"], ["created_at", "2015-04-22 13:15:36.330913"], ["updated_at", "2015-04-22 13:15:36.330913"]]
|
32921
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
32922
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
32923
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "action_smser_delivery_reports" ("msg_id", "created_at", "updated_at") VALUES (?, ?, ?) [["msg_id", "idtest_1"], ["created_at", "2015-04-22 13:15:36.335694"], ["updated_at", "2015-04-22 13:15:36.335694"]]
|
32924
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
32925
|
+
Processing by ActionSmser::DeliveryReportsController#index as HTML
|
32926
|
+
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2015-04-15 13:15:36.338934' AND '2015-04-22 13:05:36.339027')
|
32927
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) AS count_all, gateway AS gateway FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2015-04-15 13:15:36.338934' AND '2015-04-22 13:05:36.339027') GROUP BY "action_smser_delivery_reports"."gateway"[0m
|
32928
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2015-04-15 13:15:36.338934' AND '2015-04-22 13:05:36.339027')
|
32929
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) AS count_all, status AS status FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2015-04-15 13:15:36.338934' AND '2015-04-22 13:05:36.339027') GROUP BY "action_smser_delivery_reports"."status"[0m
|
32930
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2015-04-15 13:15:36.338934' AND '2015-04-22 13:05:36.339027')
|
32931
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) AS count_all, sms_type AS sms_type FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2015-04-15 13:15:36.338934' AND '2015-04-22 13:05:36.339027') GROUP BY "action_smser_delivery_reports"."sms_type"[0m
|
32932
|
+
Rendered /home/ohu/koodi/own_gems_programs/action_smser/app/views/action_smser/delivery_reports/index.html.erb within layouts/action_smser/delivery_reports (6.9ms)
|
32933
|
+
Completed 200 OK in 8ms (Views: 7.0ms | ActiveRecord: 0.6ms)
|
32934
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
32935
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
32936
|
+
--------------------------------------------------------------------------------------------------------
|
32937
|
+
ActionSmser::DeliveryReportsControllerTest: test_index_with_forbidden_admin_access_(default_access_mode)
|
32938
|
+
--------------------------------------------------------------------------------------------------------
|
32939
|
+
Processing by ActionSmser::DeliveryReportsController#index as HTML
|
32940
|
+
Rendered text template (0.0ms)
|
32941
|
+
Filter chain halted as :admin_access_only rendered or redirected
|
32942
|
+
Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
|
32943
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
32944
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
32945
|
+
-------------------------------------------------------------------------------
|
32946
|
+
ActionSmser::DeliveryReportsControllerTest: test_list_with_always_enabled_admin
|
32947
|
+
-------------------------------------------------------------------------------
|
32948
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
32949
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "action_smser_delivery_reports" ("msg_id", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["msg_id", "idtest_8"], ["created_at", "2015-04-22 13:15:36.349555"], ["updated_at", "2015-04-22 13:15:36.349555"]]
|
32950
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
32951
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
32952
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "action_smser_delivery_reports" ("msg_id", "created_at", "updated_at") VALUES (?, ?, ?) [["msg_id", "idtest_4"], ["created_at", "2015-04-22 13:15:36.350841"], ["updated_at", "2015-04-22 13:15:36.350841"]]
|
32953
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
32954
|
+
Processing by ActionSmser::DeliveryReportsController#list as HTML
|
32955
|
+
[1m[35mActionSmser::DeliveryReport Load (0.2ms)[0m SELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" ORDER BY created_at DESC LIMIT 20 OFFSET 0
|
32956
|
+
Rendered /home/ohu/koodi/own_gems_programs/action_smser/app/views/action_smser/delivery_reports/list.html.erb within layouts/action_smser/delivery_reports (6.0ms)
|
32957
|
+
Completed 200 OK in 7ms (Views: 6.9ms | ActiveRecord: 0.2ms)
|
32958
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
32959
|
+
[1m[35m (0.1ms)[0m begin transaction
|
32960
|
+
---------------------------
|
32961
|
+
ActionSmserTest: test_truth
|
32962
|
+
---------------------------
|
32963
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
32964
|
+
[1m[35m (0.0ms)[0m begin transaction
|
32965
|
+
-----------------------------------------------------
|
32966
|
+
ActionSmser::DeliveryReportTest: test_updating_status
|
32967
|
+
-----------------------------------------------------
|
32968
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
32969
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "action_smser_delivery_reports" ("status", "status_updated_at", "log", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["status", "LOCAL_TEST"], ["status_updated_at", "2015-04-22 13:15:36.362383"], ["log", "2015-04-22 16:15:36: LOCAL_TEST\n"], ["created_at", "2015-04-22 13:15:36.362785"], ["updated_at", "2015-04-22 13:15:36.362785"]]
|
32970
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
32971
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
32972
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "action_smser_delivery_reports" SET "status" = ?, "status_updated_at" = ?, "log" = ?, "updated_at" = ? WHERE "action_smser_delivery_reports"."id" = ?[0m [["status", "TEST_2"], ["status_updated_at", "2015-04-22 13:15:36.368607"], ["log", "2015-04-22 16:15:36: LOCAL_TEST\n2015-04-22 16:15:36: TEST_2\n"], ["updated_at", "2015-04-22 13:15:36.369001"], ["id", 1]]
|
32973
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
32974
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
32975
|
+
[1m[35m (0.0ms)[0m begin transaction
|
32976
|
+
-----------------------------------------------------------------
|
32977
|
+
ActionSmser::DeliveryReportTest: test_re_deliver_with_simple_http
|
32978
|
+
-----------------------------------------------------------------
|
32979
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
32980
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "action_smser_delivery_reports" ("from", "body", "sms_type", "to", "msg_id", "status", "status_updated_at", "log", "gateway", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["from", "555666"], ["body", "Body with ääkköset end"], ["sms_type", "ActionSmser::DeliveryReportTest::MockSms.basic_sms"], ["to", "123"], ["msg_id", "msg_id_a"], ["status", "LOCAL_SENT"], ["status_updated_at", "2015-04-22 13:15:36.370677"], ["log", "2015-04-22 16:15:36: LOCAL_SENT\n"], ["gateway", "test_array"], ["created_at", "2015-04-22 13:15:36.371016"], ["updated_at", "2015-04-22 13:15:36.371016"]]
|
32981
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
32982
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
32983
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "action_smser_delivery_reports" SET "gateway" = ?, "updated_at" = ? WHERE "action_smser_delivery_reports"."id" = ?[0m [["gateway", "some_delivery"], ["updated_at", "2015-04-22 13:15:36.372730"], ["id", 1]]
|
32984
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
32985
|
+
[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]]
|
32986
|
+
ActionSmser: Re_delivering: #<ActionSmser::DeliveryReport id: 1, msg_id: "msg_id_a", status: "LOCAL_SENT", status_updated_at: "2015-04-22 13:15:36", sms_type: "ActionSmser::DeliveryReportTest::MockSms.basic_sms", log: "2015-04-22 16:15:36: 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: "2015-04-22 13:15:36", updated_at: "2015-04-22 13:15:36">
|
32987
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
32988
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "action_smser_delivery_reports" SET "re_delivered" = ?, "updated_at" = ? WHERE "action_smser_delivery_reports"."id" = ?[0m [["re_delivered", "t"], ["updated_at", "2015-04-22 13:15:36.375529"], ["id", 1]]
|
32989
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
32990
|
+
[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]]
|
32991
|
+
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)
|
32992
|
+
ActionSmser: ActionSmser::DeliveryMethods::TestArray.deliveries added message, no real delivery.
|
32993
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
32994
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "action_smser_delivery_reports" ("from", "body", "sms_type", "re_delivery_of_delivery_report_id", "to", "msg_id", "status", "status_updated_at", "log", "gateway", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["from", "555666"], ["body", "Body with ääkköset end"], ["sms_type", "ActionSmser::DeliveryReportTest::MockSms.basic_sms.re_delivery"], ["re_delivery_of_delivery_report_id", 1], ["to", "123"], ["msg_id", "test_array_id_3107476"], ["status", "LOCAL_SENT"], ["status_updated_at", "2015-04-22 13:15:36.376878"], ["log", "2015-04-22 16:15:36: LOCAL_SENT\n"], ["gateway", "test_array"], ["created_at", "2015-04-22 13:15:36.377208"], ["updated_at", "2015-04-22 13:15:36.377208"]]
|
32995
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
32996
|
+
[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
|
32997
|
+
[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]]
|
32998
|
+
[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]]
|
32999
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
33000
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
33001
|
+
-------------------------------------------------------------------
|
33002
|
+
ActionSmser::DeliveryReportTest: test_build_DeliveryReport_from_sms
|
33003
|
+
-------------------------------------------------------------------
|
33004
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
33005
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
33006
|
+
------------------------------------------------------
|
33007
|
+
ActionSmser::DeliveryReportTest: test_create_from_save
|
33008
|
+
------------------------------------------------------
|
33009
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "action_smser_delivery_reports"
|
33010
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
33011
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "action_smser_delivery_reports" ("from", "body", "sms_type", "to", "msg_id", "status", "status_updated_at", "log", "gateway", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["from", "555666"], ["body", "Body with ääkköset end"], ["sms_type", "ActionSmser::DeliveryReportTest::MockSms.basic_sms"], ["to", "123"], ["msg_id", "msg_id_a"], ["status", "LOCAL_SENT"], ["status_updated_at", "2015-04-22 13:15:36.386770"], ["log", "2015-04-22 16:15:36: LOCAL_SENT\n"], ["gateway", "test_array"], ["created_at", "2015-04-22 13:15:36.387125"], ["updated_at", "2015-04-22 13:15:36.387125"]]
|
33012
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
33013
|
+
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "action_smser_delivery_reports"
|
33014
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
33015
|
+
[1m[35m (0.0ms)[0m begin transaction
|
33016
|
+
--------------------------------------------
|
33017
|
+
ActionSmser::DeliveryReportTest: test_to_sms
|
33018
|
+
--------------------------------------------
|
33019
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
33020
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "action_smser_delivery_reports" ("from", "body", "sms_type", "to", "msg_id", "status", "status_updated_at", "log", "gateway", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["from", "555666"], ["body", "Body with ääkköset end"], ["sms_type", "ActionSmser::DeliveryReportTest::MockSms.basic_sms"], ["to", "123"], ["msg_id", "msg_id_a"], ["status", "LOCAL_SENT"], ["status_updated_at", "2015-04-22 13:15:36.389048"], ["log", "2015-04-22 16:15:36: LOCAL_SENT\n"], ["gateway", "test_array"], ["created_at", "2015-04-22 13:15:36.389810"], ["updated_at", "2015-04-22 13:15:36.389810"]]
|
33021
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
33022
|
+
[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]]
|
33023
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
33024
|
+
[1m[35m (0.0ms)[0m begin transaction
|
33025
|
+
------------------------------------------------------------
|
33026
|
+
ActionSmser::SmstradeTest: test_with_saving_delivery_reports
|
33027
|
+
------------------------------------------------------------
|
33028
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "action_smser_delivery_reports"[0m
|
33029
|
+
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)
|
33030
|
+
ActionSmser: Smstrade delivery http ||| /?key=api-key-here&from=4917212341234&to=004915112341234&message=Body+with+%C3%BCml%C3%A4%C3%BCts.&route=gold&debug=1&cost=1&message_id=1&count=1&charset=utf-8 ||| #<Mock:0x4520b08>
|
33031
|
+
ActionSmser: 100
|
33032
|
+
123456789
|
33033
|
+
0.064
|
33034
|
+
1
|
33035
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
33036
|
+
[1m[36mSQL (17.3ms)[0m [1mINSERT INTO "action_smser_delivery_reports" ("from", "body", "sms_type", "to", "msg_id", "status", "status_updated_at", "log", "gateway", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["from", "4917212341234"], ["body", "Body with ümläüts."], ["sms_type", "ActionSmser::SmstradeTest::MockSms.basic_sms"], ["to", "004915112341234"], ["msg_id", "123456789"], ["status", "LOCAL_SENT"], ["status_updated_at", "2015-04-22 13:15:36.394557"], ["log", "2015-04-22 16:15:36: LOCAL_SENT\n"], ["gateway", "smstrade"], ["created_at", "2015-04-22 13:15:36.394895"], ["updated_at", "2015-04-22 13:15:36.394895"]]
|
33037
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
33038
|
+
ActionSmser: Smstrade delivery http ||| /?key=api-key-here&from=4917212341234&to=004917812341234&message=Body+with+%C3%BCml%C3%A4%C3%BCts.&route=gold&debug=1&cost=1&message_id=1&count=1&charset=utf-8 ||| #<Mock:0x4520b08>
|
33039
|
+
ActionSmser: 100
|
33040
|
+
123456789
|
33041
|
+
0.064
|
33042
|
+
1
|
33043
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
33044
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "action_smser_delivery_reports" ("from", "body", "sms_type", "to", "msg_id", "status", "status_updated_at", "log", "gateway", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["from", "4917212341234"], ["body", "Body with ümläüts."], ["sms_type", "ActionSmser::SmstradeTest::MockSms.basic_sms"], ["to", "004917812341234"], ["msg_id", "123456789"], ["status", "LOCAL_SENT"], ["status_updated_at", "2015-04-22 13:15:36.413931"], ["log", "2015-04-22 16:15:36: LOCAL_SENT\n"], ["gateway", "smstrade"], ["created_at", "2015-04-22 13:15:36.414268"], ["updated_at", "2015-04-22 13:15:36.414268"]]
|
33045
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
33046
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "action_smser_delivery_reports"
|
33047
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
33048
|
+
[1m[35m (0.0ms)[0m begin transaction
|
33049
|
+
--------------------------------------------------------------------------------
|
33050
|
+
ActionSmser::SmstradeTest: test_should_append_00_to_phone_numbers_before_sending
|
33051
|
+
--------------------------------------------------------------------------------
|
33052
|
+
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)
|
33053
|
+
ActionSmser: Smstrade delivery http ||| ||| #<Mock:0x44c24e0>
|
33054
|
+
ActionSmser: 100
|
33055
|
+
123456789
|
33056
|
+
0.064
|
33057
|
+
1
|
33058
|
+
ActionSmser: Smstrade delivery http ||| ||| #<Mock:0x44c24e0>
|
33059
|
+
ActionSmser: 100
|
33060
|
+
123456789
|
33061
|
+
0.064
|
33062
|
+
1
|
33063
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
33064
|
+
[1m[35m (0.0ms)[0m begin transaction
|
33065
|
+
---------------------------------------------------------
|
33066
|
+
ActionSmser::SmstradeTest: test_should_be_able_to_deliver
|
33067
|
+
---------------------------------------------------------
|
33068
|
+
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)
|
33069
|
+
ActionSmser: Smstrade delivery http ||| /?key=api-key-here&from=4917212341234&to=004915112341234&message=Body+with+%C3%BCml%C3%A4%C3%BCts.&route=gold&debug=1&cost=1&message_id=1&count=1&charset=utf-8 ||| #<Mock:0x448c688>
|
33070
|
+
ActionSmser: 100
|
33071
|
+
123456789
|
33072
|
+
0.064
|
33073
|
+
1
|
33074
|
+
ActionSmser: Smstrade delivery http ||| /?key=api-key-here&from=4917212341234&to=004917812341234&message=Body+with+%C3%BCml%C3%A4%C3%BCts.&route=gold&debug=1&cost=1&message_id=1&count=1&charset=utf-8 ||| #<Mock:0x448c688>
|
33075
|
+
ActionSmser: 100
|
33076
|
+
123456789
|
33077
|
+
0.064
|
33078
|
+
1
|
33079
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
33080
|
+
[1m[35m (0.0ms)[0m begin transaction
|
33081
|
+
--------------------------------------------------------------------------------------------------
|
33082
|
+
ActionSmser::SmstradeTest: test_should_only_receive_numbers_not_prepended_with_zeros_or_plus_signs
|
33083
|
+
--------------------------------------------------------------------------------------------------
|
33084
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
33085
|
+
[1m[35m (0.0ms)[0m begin transaction
|
33086
|
+
----------------------------------------------------------------------------------------------
|
33087
|
+
ActionSmser::DelayedJobTest: test_should_be_able_to_deliver_and_call_enqueue_for_all_receivers
|
33088
|
+
----------------------------------------------------------------------------------------------
|
33089
|
+
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)
|
33090
|
+
ActionSmser: Delivering sms by delayed_job
|
33091
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
33092
|
+
[1m[35m (0.0ms)[0m begin transaction
|
33093
|
+
-------------------------------------------------------------
|
33094
|
+
ActionSmser::DelayedJobTest: test_test_that_serializing_is_ok
|
33095
|
+
-------------------------------------------------------------
|
33096
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
33097
|
+
[1m[35m (0.0ms)[0m begin transaction
|
33098
|
+
---------------------------------------------------------
|
33099
|
+
NavigationTest: test_basic_gateway_commit_delivery_report
|
33100
|
+
---------------------------------------------------------
|
33101
|
+
Started GET "/action_smser/delivery_reports/gateway_commit/example_gateway" for 127.0.0.1 at 2015-04-22 16:15:36 +0300
|
33102
|
+
Processing by ActionSmser::DeliveryReportsController#gateway_commit as HTML
|
33103
|
+
Parameters: {"gateway"=>"example_gateway"}
|
33104
|
+
Rendered text template (0.0ms)
|
33105
|
+
Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms)
|
33106
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
33107
|
+
[1m[35m (0.1ms)[0m begin transaction
|
33108
|
+
-------------------------------------------------------------
|
33109
|
+
ActionSmser::TestArrayTest: test_with_saving_delivery_reports
|
33110
|
+
-------------------------------------------------------------
|
33111
|
+
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)
|
33112
|
+
ActionSmser: ActionSmser::DeliveryMethods::TestArray.deliveries added message, no real delivery.
|
33113
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "action_smser_delivery_reports"[0m
|
33114
|
+
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)
|
33115
|
+
ActionSmser: ActionSmser::DeliveryMethods::TestArray.deliveries added message, no real delivery.
|
33116
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
33117
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "action_smser_delivery_reports" ("from", "body", "sms_type", "to", "msg_id", "status", "status_updated_at", "log", "gateway", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["from", "555666"], ["body", "Body with ääkköset end"], ["sms_type", "ActionSmser::TestArrayTest::MockSms.basic_sms"], ["to", "555123555"], ["msg_id", "test_array_id_13804019"], ["status", "LOCAL_SENT"], ["status_updated_at", "2015-04-22 13:15:36.429251"], ["log", "2015-04-22 16:15:36: LOCAL_SENT\n"], ["gateway", "test_array"], ["created_at", "2015-04-22 13:15:36.429647"], ["updated_at", "2015-04-22 13:15:36.429647"]]
|
33118
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
33119
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
33120
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "action_smser_delivery_reports" ("from", "body", "sms_type", "to", "msg_id", "status", "status_updated_at", "log", "gateway", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["from", "555666"], ["body", "Body with ääkköset end"], ["sms_type", "ActionSmser::TestArrayTest::MockSms.basic_sms"], ["to", "123555123"], ["msg_id", "test_array_id_31859348"], ["status", "LOCAL_SENT"], ["status_updated_at", "2015-04-22 13:15:36.430876"], ["log", "2015-04-22 16:15:36: LOCAL_SENT\n"], ["gateway", "test_array"], ["created_at", "2015-04-22 13:15:36.431244"], ["updated_at", "2015-04-22 13:15:36.431244"]]
|
33121
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
33122
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "action_smser_delivery_reports"
|
33123
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
33124
|
+
[1m[35m (0.0ms)[0m begin transaction
|
33125
|
+
--------------------------------------------------------
|
33126
|
+
ActionSmser::TestArrayTest: test_should_add_to_TestArray
|
33127
|
+
--------------------------------------------------------
|
33128
|
+
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)
|
33129
|
+
ActionSmser: ActionSmser::DeliveryMethods::TestArray.deliveries added message, no real delivery.
|
33130
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
33131
|
+
[1m[35m (0.0ms)[0m begin transaction
|
33132
|
+
----------------------------------------------------------
|
33133
|
+
ActionSmser::TestArrayTest: test_should_be_able_to_deliver
|
33134
|
+
----------------------------------------------------------
|
33135
|
+
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)
|
33136
|
+
ActionSmser: ActionSmser::DeliveryMethods::TestArray.deliveries added message, no real delivery.
|
33137
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
33138
|
+
[1m[35m (0.1ms)[0m begin transaction
|
33139
|
+
----------------------------------------------------------------------------
|
33140
|
+
ActionSmser::BaseTest: test_before_delivery_should_be_called_if_it's_present
|
33141
|
+
----------------------------------------------------------------------------
|
33142
|
+
ActionSmser: Sending sms - Delivery_method: test_array - Sms: (Sms ActionSmser::BaseTest::MockSms.basic_sms - From: "555666", To: ["555123555", "123", "+358123555123", "004915112341234", "04917332341111"], Body: "Body with ääkköset end", Valid: true)
|
33143
|
+
ActionSmser: ActionSmser::DeliveryMethods::TestArray.deliveries added message, no real delivery.
|
33144
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
33145
|
+
[1m[35m (0.0ms)[0m begin transaction
|
33146
|
+
---------------------------------------------------------------------
|
33147
|
+
ActionSmser::BaseTest: test_should_have_test_array_as_delivery_method
|
33148
|
+
---------------------------------------------------------------------
|
33149
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
33150
|
+
[1m[35m (0.1ms)[0m begin transaction
|
33151
|
+
----------------------------------------------------------------
|
33152
|
+
ActionSmser::BaseTest: test_should_not_be_valid_if_no_recipients
|
33153
|
+
----------------------------------------------------------------
|
33154
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
33155
|
+
[1m[35m (0.0ms)[0m begin transaction
|
33156
|
+
--------------------------------------------------------------------------------------------
|
33157
|
+
ActionSmser::BaseTest: test_body_should_be_cropped_to_500_chars,_limit_extra_looong_messages
|
33158
|
+
--------------------------------------------------------------------------------------------
|
33159
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
33160
|
+
[1m[35m (0.0ms)[0m begin transaction
|
33161
|
+
--------------------------------------------------------------------------------------------------------
|
33162
|
+
ActionSmser::BaseTest: test_message_real_crop_should_return_cropped_message_with_sms_chars_taken_account
|
33163
|
+
--------------------------------------------------------------------------------------------------------
|
33164
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
33165
|
+
[1m[35m (0.0ms)[0m begin transaction
|
33166
|
+
-------------------------------------------------------------
|
33167
|
+
ActionSmser::BaseTest: test_body_should_be_possible_to_encode
|
33168
|
+
-------------------------------------------------------------
|
33169
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
33170
|
+
[1m[35m (0.0ms)[0m begin transaction
|
33171
|
+
--------------------------------------------------------------
|
33172
|
+
ActionSmser::BaseTest: test_should_be_ok_with_single_receivers
|
33173
|
+
--------------------------------------------------------------
|
33174
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
33175
|
+
[1m[35m (0.0ms)[0m begin transaction
|
33176
|
+
-------------------------------------------------------------
|
33177
|
+
ActionSmser::BaseTest: test_ttl_should_be_24_hours_by_default
|
33178
|
+
-------------------------------------------------------------
|
33179
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
33180
|
+
[1m[35m (0.1ms)[0m begin transaction
|
33181
|
+
----------------------------------------------------------------
|
33182
|
+
ActionSmser::BaseTest: test_receivers_should_be_joined_by_commas
|
33183
|
+
----------------------------------------------------------------
|
33184
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
33185
|
+
[1m[35m (0.1ms)[0m begin transaction
|
33186
|
+
--------------------------------------------------------
|
33187
|
+
ActionSmser::BaseTest: test_should_be_able_to_change_ttl
|
33188
|
+
--------------------------------------------------------
|
33189
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
33190
|
+
[1m[35m (0.0ms)[0m begin transaction
|
33191
|
+
-----------------------------------------------------------------------------
|
33192
|
+
ActionSmser::BaseTest: test_message_real_length_should_return_real_sms_lenght
|
33193
|
+
-----------------------------------------------------------------------------
|
33194
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
33195
|
+
[1m[35m (0.0ms)[0m begin transaction
|
33196
|
+
-------------------------------------------------------------------------------------
|
33197
|
+
ActionSmser::BaseTest: test_should_have_copied_the_delivery_options_when_initializing
|
33198
|
+
-------------------------------------------------------------------------------------
|
33199
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
33200
|
+
[1m[35m (0.0ms)[0m begin transaction
|
33201
|
+
---------------------------------------------------------------------------
|
33202
|
+
ActionSmser::BaseTest: test_after_delivery_should_be_called_if_it's_present
|
33203
|
+
---------------------------------------------------------------------------
|
33204
|
+
ActionSmser: Sending sms - Delivery_method: test_array - Sms: (Sms ActionSmser::BaseTest::MockSms.basic_sms - From: "555666", To: ["555123555", "123", "+358123555123", "004915112341234", "04917332341111"], Body: "Body with ääkköset end", Valid: true)
|
33205
|
+
ActionSmser: ActionSmser::DeliveryMethods::TestArray.deliveries added message, no real delivery.
|
33206
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
33207
|
+
[1m[35m (0.1ms)[0m begin transaction
|
33208
|
+
-----------------------------------------------
|
33209
|
+
ActionSmser::BaseTest: test_should_be_valid_sms
|
33210
|
+
-----------------------------------------------
|
33211
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
33212
|
+
[1m[35m (0.1ms)[0m begin transaction
|
33213
|
+
----------------------------------------------------------------------
|
33214
|
+
ActionSmser::BaseTest: test_from_encoded_should_remove_leading_+_and_0
|
33215
|
+
----------------------------------------------------------------------
|
33216
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
33217
|
+
[1m[35m (0.1ms)[0m begin transaction
|
33218
|
+
------------------------------------------------------
|
33219
|
+
ActionSmser::BaseTest: test_should_have_saved_sms_type
|
33220
|
+
------------------------------------------------------
|
33221
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
33222
|
+
[1m[35m (0.1ms)[0m begin transaction
|
33223
|
+
---------------------------------------------------------------------
|
33224
|
+
ActionSmser::NexmoTest: test_gateway_process_delivery_report(request)
|
33225
|
+
---------------------------------------------------------------------
|
33226
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
33227
|
+
[1m[35m (0.1ms)[0m begin transaction
|
33228
|
+
------------------------------------------------------------------------------
|
33229
|
+
ActionSmser::NexmoTest: test_delivery_path_should_have_unicode_set_when_needed
|
33230
|
+
------------------------------------------------------------------------------
|
33231
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
33232
|
+
[1m[35m (0.0ms)[0m begin transaction
|
33233
|
+
------------------------------------------------------
|
33234
|
+
ActionSmser::NexmoTest: test_should_be_able_to_deliver
|
33235
|
+
------------------------------------------------------
|
33236
|
+
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)
|
33237
|
+
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:0x40ebb78>
|
33238
|
+
ActionSmser: {"message-count":"1","messages":[{"message-price":"0.02500000","status":"0","message-id":"0778DE88","remaining-balance":"1.77500000"}]}
|
33239
|
+
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:0x40ebb78>
|
33240
|
+
ActionSmser: {"message-count":"1","messages":[{"message-price":"0.02500000","status":"0","message-id":"0778DE88","remaining-balance":"1.77500000"}]}
|
33241
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
33242
|
+
[1m[35m (0.0ms)[0m begin transaction
|
33243
|
+
---------------------------------------------------------
|
33244
|
+
ActionSmser::NexmoTest: test_with_saving_delivery_reports
|
33245
|
+
---------------------------------------------------------
|
33246
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "action_smser_delivery_reports"[0m
|
33247
|
+
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)
|
33248
|
+
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:0x40c74d0>
|
33249
|
+
ActionSmser: {"message-count":"1","messages":[{"message-price":"0.02500000","status":"0","message-id":"0778DE88","remaining-balance":"1.77500000"}]}
|
33250
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
33251
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "action_smser_delivery_reports" ("from", "body", "sms_type", "to", "msg_id", "status", "status_updated_at", "log", "gateway", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["from", "555666"], ["body", "Body with ääkköset end"], ["sms_type", "ActionSmser::NexmoTest::MockSms.basic_sms"], ["to", "555123555"], ["msg_id", "0778DE88"], ["status", "LOCAL_SENT"], ["status_updated_at", "2015-04-22 13:15:36.451780"], ["log", "2015-04-22 16:15:36: LOCAL_SENT\n"], ["gateway", "nexmo"], ["created_at", "2015-04-22 13:15:36.452199"], ["updated_at", "2015-04-22 13:15:36.452199"]]
|
33252
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
33253
|
+
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:0x40c74d0>
|
33254
|
+
ActionSmser: {"message-count":"1","messages":[{"message-price":"0.02500000","status":"0","message-id":"0778DE88","remaining-balance":"1.77500000"}]}
|
33255
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
33256
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "action_smser_delivery_reports" ("from", "body", "sms_type", "to", "msg_id", "status", "status_updated_at", "log", "gateway", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["from", "555666"], ["body", "Body with ääkköset end"], ["sms_type", "ActionSmser::NexmoTest::MockSms.basic_sms"], ["to", "123555123"], ["msg_id", "0778DE88"], ["status", "LOCAL_SENT"], ["status_updated_at", "2015-04-22 13:15:36.453526"], ["log", "2015-04-22 16:15:36: LOCAL_SENT\n"], ["gateway", "nexmo"], ["created_at", "2015-04-22 13:15:36.453874"], ["updated_at", "2015-04-22 13:15:36.453874"]]
|
33257
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
33258
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "action_smser_delivery_reports"
|
33259
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
33260
|
+
[1m[35m (0.1ms)[0m begin transaction
|
33261
|
+
-----------------------------------------------------------
|
33262
|
+
ActionSmser::SimpleHttpTest: test_should_be_able_to_deliver
|
33263
|
+
-----------------------------------------------------------
|
33264
|
+
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)
|
33265
|
+
ActionSmser: SimpleHttp delivery ||| /api/sendsms/plain?user=user&password=pass&sender=555666&SMSText=Body+with+%E4%E4kk%F6set+end&GSM=555123555,123555123 ||| #<Mock:0x401bea0>
|
33266
|
+
ActionSmser: id_1234
|
33267
|
+
id_6666
|
33268
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
33269
|
+
[1m[35m (0.0ms)[0m begin transaction
|
33270
|
+
--------------------------------------------------------------
|
33271
|
+
ActionSmser::SimpleHttpTest: test_with_saving_delivery_reports
|
33272
|
+
--------------------------------------------------------------
|
33273
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "action_smser_delivery_reports"[0m
|
33274
|
+
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)
|
33275
|
+
ActionSmser: SimpleHttp delivery ||| /api/sendsms/plain?user=user&password=pass&sender=555666&SMSText=Body+with+%E4%E4kk%F6set+end&GSM=555123555,123555123 ||| #<Mock:0x3ffe710>
|
33276
|
+
ActionSmser: id_1234
|
33277
|
+
id_6666
|
33278
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
33279
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "action_smser_delivery_reports" ("from", "body", "sms_type", "to", "msg_id", "status", "status_updated_at", "log", "gateway", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["from", "555666"], ["body", "Body with ääkköset end"], ["sms_type", "ActionSmser::SimpleHttpTest::MockSms.basic_sms"], ["to", "555123555"], ["msg_id", "id_1234"], ["status", "LOCAL_SENT"], ["status_updated_at", "2015-04-22 13:15:36.459145"], ["log", "2015-04-22 16:15:36: LOCAL_SENT\n"], ["gateway", "simple_http"], ["created_at", "2015-04-22 13:15:36.459591"], ["updated_at", "2015-04-22 13:15:36.459591"]]
|
33280
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
33281
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
33282
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "action_smser_delivery_reports" ("from", "body", "sms_type", "to", "msg_id", "status", "status_updated_at", "log", "gateway", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["from", "555666"], ["body", "Body with ääkköset end"], ["sms_type", "ActionSmser::SimpleHttpTest::MockSms.basic_sms"], ["to", "123555123"], ["msg_id", "id_6666"], ["status", "LOCAL_SENT"], ["status_updated_at", "2015-04-22 13:15:36.460824"], ["log", "2015-04-22 16:15:36: LOCAL_SENT\n"], ["gateway", "simple_http"], ["created_at", "2015-04-22 13:15:36.461164"], ["updated_at", "2015-04-22 13:15:36.461164"]]
|
33283
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
33284
|
+
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "action_smser_delivery_reports"
|
33285
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|