action_smser 3.1.1 → 3.1.2
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 +460 -0
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6bcc484036637b4f873fd016ccf4b7298e1ccc8f
|
4
|
+
data.tar.gz: 2b5cd7ab84aa703ca79b77c1a3fb69ee76d00246
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9c9e922665e0d00dae7d4e0c5b747e43b3511045306f59273eea05c6eb28185f513d8d9bf54354046ab98abe989bd99ea78c02088a713c0b76d366b4686f916d
|
7
|
+
data.tar.gz: dccc118d147908840f82d46011f629257be64949c845d68203695815e3855c9b2158e85dce0b33a89f373ac3ece2aecc059a9dc7914b1e88bc1ac308da7f51a1
|
data/lib/action_smser/version.rb
CHANGED
data/test/dummy/log/test.log
CHANGED
@@ -33283,3 +33283,463 @@ id_6666
|
|
33283
33283
|
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
33284
33284
|
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "action_smser_delivery_reports"
|
33285
33285
|
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
33286
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
33287
|
+
[1m[35m (0.1ms)[0m begin transaction
|
33288
|
+
---------------------------
|
33289
|
+
ActionSmserTest: test_truth
|
33290
|
+
---------------------------
|
33291
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
33292
|
+
[1m[35m (0.1ms)[0m begin transaction
|
33293
|
+
--------------------------------------------------------------------------------
|
33294
|
+
ActionSmser::SmstradeTest: test_should_append_00_to_phone_numbers_before_sending
|
33295
|
+
--------------------------------------------------------------------------------
|
33296
|
+
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)
|
33297
|
+
ActionSmser: Smstrade delivery http ||| ||| #<Mock:0x405ff60>
|
33298
|
+
ActionSmser: 100
|
33299
|
+
123456789
|
33300
|
+
0.064
|
33301
|
+
1
|
33302
|
+
ActionSmser: Smstrade delivery http ||| ||| #<Mock:0x405ff60>
|
33303
|
+
ActionSmser: 100
|
33304
|
+
123456789
|
33305
|
+
0.064
|
33306
|
+
1
|
33307
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
33308
|
+
[1m[35m (0.0ms)[0m begin transaction
|
33309
|
+
---------------------------------------------------------
|
33310
|
+
ActionSmser::SmstradeTest: test_should_be_able_to_deliver
|
33311
|
+
---------------------------------------------------------
|
33312
|
+
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)
|
33313
|
+
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:0x4039f90>
|
33314
|
+
ActionSmser: 100
|
33315
|
+
123456789
|
33316
|
+
0.064
|
33317
|
+
1
|
33318
|
+
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:0x4039f90>
|
33319
|
+
ActionSmser: 100
|
33320
|
+
123456789
|
33321
|
+
0.064
|
33322
|
+
1
|
33323
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
33324
|
+
[1m[35m (0.0ms)[0m begin transaction
|
33325
|
+
--------------------------------------------------------------------------------------------------
|
33326
|
+
ActionSmser::SmstradeTest: test_should_only_receive_numbers_not_prepended_with_zeros_or_plus_signs
|
33327
|
+
--------------------------------------------------------------------------------------------------
|
33328
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
33329
|
+
[1m[35m (0.0ms)[0m begin transaction
|
33330
|
+
------------------------------------------------------------
|
33331
|
+
ActionSmser::SmstradeTest: test_with_saving_delivery_reports
|
33332
|
+
------------------------------------------------------------
|
33333
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "action_smser_delivery_reports"[0m
|
33334
|
+
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)
|
33335
|
+
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:0x3ffd9f0>
|
33336
|
+
ActionSmser: 100
|
33337
|
+
123456789
|
33338
|
+
0.064
|
33339
|
+
1
|
33340
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
33341
|
+
[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", "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-23 13:45:16.256771"], ["log", "2015-04-23 16:45:16: LOCAL_SENT\n"], ["gateway", "smstrade"], ["created_at", "2015-04-23 13:45:16.258364"], ["updated_at", "2015-04-23 13:45:16.258364"]]
|
33342
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
33343
|
+
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:0x3ffd9f0>
|
33344
|
+
ActionSmser: 100
|
33345
|
+
123456789
|
33346
|
+
0.064
|
33347
|
+
1
|
33348
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
33349
|
+
[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-23 13:45:16.261153"], ["log", "2015-04-23 16:45:16: LOCAL_SENT\n"], ["gateway", "smstrade"], ["created_at", "2015-04-23 13:45:16.261503"], ["updated_at", "2015-04-23 13:45:16.261503"]]
|
33350
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
33351
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "action_smser_delivery_reports"
|
33352
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
33353
|
+
[1m[35m (0.0ms)[0m begin transaction
|
33354
|
+
--------------------------------------------------------
|
33355
|
+
ActionSmser::TestArrayTest: test_should_add_to_TestArray
|
33356
|
+
--------------------------------------------------------
|
33357
|
+
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)
|
33358
|
+
ActionSmser: ActionSmser::DeliveryMethods::TestArray.deliveries added message, no real delivery.
|
33359
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
33360
|
+
[1m[35m (0.0ms)[0m begin transaction
|
33361
|
+
-------------------------------------------------------------
|
33362
|
+
ActionSmser::TestArrayTest: test_with_saving_delivery_reports
|
33363
|
+
-------------------------------------------------------------
|
33364
|
+
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)
|
33365
|
+
ActionSmser: ActionSmser::DeliveryMethods::TestArray.deliveries added message, no real delivery.
|
33366
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "action_smser_delivery_reports"[0m
|
33367
|
+
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)
|
33368
|
+
ActionSmser: ActionSmser::DeliveryMethods::TestArray.deliveries added message, no real delivery.
|
33369
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
33370
|
+
[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::TestArrayTest::MockSms.basic_sms"], ["to", "555123555"], ["msg_id", "test_array_id_89975094"], ["status", "LOCAL_SENT"], ["status_updated_at", "2015-04-23 13:45:16.264886"], ["log", "2015-04-23 16:45:16: LOCAL_SENT\n"], ["gateway", "test_array"], ["created_at", "2015-04-23 13:45:16.265236"], ["updated_at", "2015-04-23 13:45:16.265236"]]
|
33371
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
33372
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
33373
|
+
[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::TestArrayTest::MockSms.basic_sms"], ["to", "123555123"], ["msg_id", "test_array_id_34043686"], ["status", "LOCAL_SENT"], ["status_updated_at", "2015-04-23 13:45:16.267023"], ["log", "2015-04-23 16:45:16: LOCAL_SENT\n"], ["gateway", "test_array"], ["created_at", "2015-04-23 13:45:16.267375"], ["updated_at", "2015-04-23 13:45:16.267375"]]
|
33374
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
33375
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "action_smser_delivery_reports"
|
33376
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
33377
|
+
[1m[35m (0.0ms)[0m begin transaction
|
33378
|
+
----------------------------------------------------------
|
33379
|
+
ActionSmser::TestArrayTest: test_should_be_able_to_deliver
|
33380
|
+
----------------------------------------------------------
|
33381
|
+
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)
|
33382
|
+
ActionSmser: ActionSmser::DeliveryMethods::TestArray.deliveries added message, no real delivery.
|
33383
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
33384
|
+
[1m[35m (0.0ms)[0m begin transaction
|
33385
|
+
---------------------------------------------------------------------
|
33386
|
+
ActionSmser::NexmoTest: test_gateway_process_delivery_report(request)
|
33387
|
+
---------------------------------------------------------------------
|
33388
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
33389
|
+
[1m[35m (0.0ms)[0m begin transaction
|
33390
|
+
------------------------------------------------------------------------------
|
33391
|
+
ActionSmser::NexmoTest: test_delivery_path_should_have_unicode_set_when_needed
|
33392
|
+
------------------------------------------------------------------------------
|
33393
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
33394
|
+
[1m[35m (0.1ms)[0m begin transaction
|
33395
|
+
------------------------------------------------------
|
33396
|
+
ActionSmser::NexmoTest: test_should_be_able_to_deliver
|
33397
|
+
------------------------------------------------------
|
33398
|
+
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)
|
33399
|
+
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:0x3c629f8>
|
33400
|
+
ActionSmser: {"message-count":"1","messages":[{"message-price":"0.02500000","status":"0","message-id":"0778DE88","remaining-balance":"1.77500000"}]}
|
33401
|
+
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:0x3c629f8>
|
33402
|
+
ActionSmser: {"message-count":"1","messages":[{"message-price":"0.02500000","status":"0","message-id":"0778DE88","remaining-balance":"1.77500000"}]}
|
33403
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
33404
|
+
[1m[35m (0.0ms)[0m begin transaction
|
33405
|
+
---------------------------------------------------------
|
33406
|
+
ActionSmser::NexmoTest: test_with_saving_delivery_reports
|
33407
|
+
---------------------------------------------------------
|
33408
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "action_smser_delivery_reports"[0m
|
33409
|
+
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)
|
33410
|
+
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:0x3c41d20>
|
33411
|
+
ActionSmser: {"message-count":"1","messages":[{"message-price":"0.02500000","status":"0","message-id":"0778DE88","remaining-balance":"1.77500000"}]}
|
33412
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
33413
|
+
[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-23 13:45:16.274666"], ["log", "2015-04-23 16:45:16: LOCAL_SENT\n"], ["gateway", "nexmo"], ["created_at", "2015-04-23 13:45:16.275015"], ["updated_at", "2015-04-23 13:45:16.275015"]]
|
33414
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
33415
|
+
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:0x3c41d20>
|
33416
|
+
ActionSmser: {"message-count":"1","messages":[{"message-price":"0.02500000","status":"0","message-id":"0778DE88","remaining-balance":"1.77500000"}]}
|
33417
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
33418
|
+
[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-23 13:45:16.276288"], ["log", "2015-04-23 16:45:16: LOCAL_SENT\n"], ["gateway", "nexmo"], ["created_at", "2015-04-23 13:45:16.276597"], ["updated_at", "2015-04-23 13:45:16.276597"]]
|
33419
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
33420
|
+
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "action_smser_delivery_reports"
|
33421
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
33422
|
+
[1m[35m (0.0ms)[0m begin transaction
|
33423
|
+
----------------------------------------------------------------------------
|
33424
|
+
ActionSmser::BaseTest: test_before_delivery_should_be_called_if_it's_present
|
33425
|
+
----------------------------------------------------------------------------
|
33426
|
+
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)
|
33427
|
+
ActionSmser: ActionSmser::DeliveryMethods::TestArray.deliveries added message, no real delivery.
|
33428
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
33429
|
+
[1m[35m (0.0ms)[0m begin transaction
|
33430
|
+
--------------------------------------------------------------------------------------------------------
|
33431
|
+
ActionSmser::BaseTest: test_message_real_crop_should_return_cropped_message_with_sms_chars_taken_account
|
33432
|
+
--------------------------------------------------------------------------------------------------------
|
33433
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
33434
|
+
[1m[35m (0.0ms)[0m begin transaction
|
33435
|
+
--------------------------------------------------------
|
33436
|
+
ActionSmser::BaseTest: test_should_be_able_to_change_ttl
|
33437
|
+
--------------------------------------------------------
|
33438
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
33439
|
+
[1m[35m (0.0ms)[0m begin transaction
|
33440
|
+
----------------------------------------------------------------
|
33441
|
+
ActionSmser::BaseTest: test_should_not_be_valid_if_no_recipients
|
33442
|
+
----------------------------------------------------------------
|
33443
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
33444
|
+
[1m[35m (0.0ms)[0m begin transaction
|
33445
|
+
--------------------------------------------------------------
|
33446
|
+
ActionSmser::BaseTest: test_should_be_ok_with_single_receivers
|
33447
|
+
--------------------------------------------------------------
|
33448
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
33449
|
+
[1m[35m (0.0ms)[0m begin transaction
|
33450
|
+
-----------------------------------------------
|
33451
|
+
ActionSmser::BaseTest: test_should_be_valid_sms
|
33452
|
+
-----------------------------------------------
|
33453
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
33454
|
+
[1m[35m (0.0ms)[0m begin transaction
|
33455
|
+
---------------------------------------------------------------------
|
33456
|
+
ActionSmser::BaseTest: test_should_have_test_array_as_delivery_method
|
33457
|
+
---------------------------------------------------------------------
|
33458
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
33459
|
+
[1m[35m (0.0ms)[0m begin transaction
|
33460
|
+
---------------------------------------------------------------------------
|
33461
|
+
ActionSmser::BaseTest: test_after_delivery_should_be_called_if_it's_present
|
33462
|
+
---------------------------------------------------------------------------
|
33463
|
+
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)
|
33464
|
+
ActionSmser: ActionSmser::DeliveryMethods::TestArray.deliveries added message, no real delivery.
|
33465
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
33466
|
+
[1m[35m (0.0ms)[0m begin transaction
|
33467
|
+
------------------------------------------------------
|
33468
|
+
ActionSmser::BaseTest: test_should_have_saved_sms_type
|
33469
|
+
------------------------------------------------------
|
33470
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
33471
|
+
[1m[35m (0.0ms)[0m begin transaction
|
33472
|
+
--------------------------------------------------------------------------------------------
|
33473
|
+
ActionSmser::BaseTest: test_body_should_be_cropped_to_500_chars,_limit_extra_looong_messages
|
33474
|
+
--------------------------------------------------------------------------------------------
|
33475
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
33476
|
+
[1m[35m (0.0ms)[0m begin transaction
|
33477
|
+
----------------------------------------------------------------
|
33478
|
+
ActionSmser::BaseTest: test_receivers_should_be_joined_by_commas
|
33479
|
+
----------------------------------------------------------------
|
33480
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
33481
|
+
[1m[35m (0.0ms)[0m begin transaction
|
33482
|
+
-------------------------------------------------------------
|
33483
|
+
ActionSmser::BaseTest: test_body_should_be_possible_to_encode
|
33484
|
+
-------------------------------------------------------------
|
33485
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
33486
|
+
[1m[35m (0.0ms)[0m begin transaction
|
33487
|
+
-----------------------------------------------------------------------------
|
33488
|
+
ActionSmser::BaseTest: test_message_real_length_should_return_real_sms_lenght
|
33489
|
+
-----------------------------------------------------------------------------
|
33490
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
33491
|
+
[1m[35m (0.0ms)[0m begin transaction
|
33492
|
+
----------------------------------------------------------------------
|
33493
|
+
ActionSmser::BaseTest: test_from_encoded_should_remove_leading_+_and_0
|
33494
|
+
----------------------------------------------------------------------
|
33495
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
33496
|
+
[1m[35m (0.0ms)[0m begin transaction
|
33497
|
+
-------------------------------------------------------------------------------------
|
33498
|
+
ActionSmser::BaseTest: test_should_have_copied_the_delivery_options_when_initializing
|
33499
|
+
-------------------------------------------------------------------------------------
|
33500
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
33501
|
+
[1m[35m (0.0ms)[0m begin transaction
|
33502
|
+
-------------------------------------------------------------
|
33503
|
+
ActionSmser::BaseTest: test_ttl_should_be_24_hours_by_default
|
33504
|
+
-------------------------------------------------------------
|
33505
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
33506
|
+
[1m[35m (0.1ms)[0m begin transaction
|
33507
|
+
--------------------------------------------
|
33508
|
+
ActionSmser::DeliveryReportTest: test_to_sms
|
33509
|
+
--------------------------------------------
|
33510
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
33511
|
+
[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-23 13:45:16.286728"], ["log", "2015-04-23 16:45:16: LOCAL_SENT\n"], ["gateway", "test_array"], ["created_at", "2015-04-23 13:45:16.287102"], ["updated_at", "2015-04-23 13:45:16.287102"]]
|
33512
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
33513
|
+
[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]]
|
33514
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
33515
|
+
[1m[35m (0.0ms)[0m begin transaction
|
33516
|
+
-------------------------------------------------------------------
|
33517
|
+
ActionSmser::DeliveryReportTest: test_build_DeliveryReport_from_sms
|
33518
|
+
-------------------------------------------------------------------
|
33519
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
33520
|
+
[1m[35m (0.0ms)[0m begin transaction
|
33521
|
+
------------------------------------------------------
|
33522
|
+
ActionSmser::DeliveryReportTest: test_create_from_save
|
33523
|
+
------------------------------------------------------
|
33524
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "action_smser_delivery_reports"[0m
|
33525
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
33526
|
+
[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-23 13:45:16.293284"], ["log", "2015-04-23 16:45:16: LOCAL_SENT\n"], ["gateway", "test_array"], ["created_at", "2015-04-23 13:45:16.293599"], ["updated_at", "2015-04-23 13:45:16.293599"]]
|
33527
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
33528
|
+
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "action_smser_delivery_reports"[0m
|
33529
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
33530
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
33531
|
+
-----------------------------------------------------------------
|
33532
|
+
ActionSmser::DeliveryReportTest: test_re_deliver_with_simple_http
|
33533
|
+
-----------------------------------------------------------------
|
33534
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
33535
|
+
[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-23 13:45:16.295539"], ["log", "2015-04-23 16:45:16: LOCAL_SENT\n"], ["gateway", "test_array"], ["created_at", "2015-04-23 13:45:16.295854"], ["updated_at", "2015-04-23 13:45:16.295854"]]
|
33536
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
33537
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
33538
|
+
[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-23 13:45:16.296939"], ["id", 1]]
|
33539
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
33540
|
+
[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]]
|
33541
|
+
ActionSmser: Re_delivering: #<ActionSmser::DeliveryReport id: 1, msg_id: "msg_id_a", status: "LOCAL_SENT", status_updated_at: "2015-04-23 13:45:16", sms_type: "ActionSmser::DeliveryReportTest::MockSms.basic_sms", log: "2015-04-23 16:45:16: 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-23 13:45:16", updated_at: "2015-04-23 13:45:16">
|
33542
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
33543
|
+
[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-23 13:45:16.299529"], ["id", 1]]
|
33544
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
33545
|
+
[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]]
|
33546
|
+
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)
|
33547
|
+
ActionSmser: ActionSmser::DeliveryMethods::TestArray.deliveries added message, no real delivery.
|
33548
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
33549
|
+
[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_44216541"], ["status", "LOCAL_SENT"], ["status_updated_at", "2015-04-23 13:45:16.301457"], ["log", "2015-04-23 16:45:16: LOCAL_SENT\n"], ["gateway", "test_array"], ["created_at", "2015-04-23 13:45:16.301834"], ["updated_at", "2015-04-23 13:45:16.301834"]]
|
33550
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
33551
|
+
[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
|
33552
|
+
[1m[36mActionSmser::DeliveryReport Load (0.1ms)[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]]
|
33553
|
+
[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]]
|
33554
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
33555
|
+
[1m[35m (0.0ms)[0m begin transaction
|
33556
|
+
-----------------------------------------------------
|
33557
|
+
ActionSmser::DeliveryReportTest: test_updating_status
|
33558
|
+
-----------------------------------------------------
|
33559
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
33560
|
+
[1m[35mSQL (0.1ms)[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-23 13:45:16.313072"], ["log", "2015-04-23 16:45:16: LOCAL_TEST\n"], ["created_at", "2015-04-23 13:45:16.313451"], ["updated_at", "2015-04-23 13:45:16.313451"]]
|
33561
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
33562
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
33563
|
+
[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-23 13:45:16.314412"], ["log", "2015-04-23 16:45:16: LOCAL_TEST\n2015-04-23 16:45:16: TEST_2\n"], ["updated_at", "2015-04-23 13:45:16.314698"], ["id", 1]]
|
33564
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
33565
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
33566
|
+
[1m[35m (0.0ms)[0m begin transaction
|
33567
|
+
---------------------------------------------------------
|
33568
|
+
NavigationTest: test_basic_gateway_commit_delivery_report
|
33569
|
+
---------------------------------------------------------
|
33570
|
+
Started GET "/action_smser/delivery_reports/gateway_commit/example_gateway" for 127.0.0.1 at 2015-04-23 16:45:16 +0300
|
33571
|
+
Processing by ActionSmser::DeliveryReportsController#gateway_commit as HTML
|
33572
|
+
Parameters: {"gateway"=>"example_gateway"}
|
33573
|
+
Rendered text template (0.0ms)
|
33574
|
+
Completed 200 OK in 3ms (Views: 2.8ms | ActiveRecord: 0.0ms)
|
33575
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
33576
|
+
[1m[35m (0.0ms)[0m begin transaction
|
33577
|
+
----------------------------------------------------------------------------------------------
|
33578
|
+
ActionSmser::DelayedJobTest: test_should_be_able_to_deliver_and_call_enqueue_for_all_receivers
|
33579
|
+
----------------------------------------------------------------------------------------------
|
33580
|
+
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)
|
33581
|
+
ActionSmser: Delivering sms by delayed_job
|
33582
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
33583
|
+
[1m[35m (0.0ms)[0m begin transaction
|
33584
|
+
-------------------------------------------------------------
|
33585
|
+
ActionSmser::DelayedJobTest: test_test_that_serializing_is_ok
|
33586
|
+
-------------------------------------------------------------
|
33587
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
33588
|
+
[1m[35m (0.1ms)[0m begin transaction
|
33589
|
+
-----------------------------------------------------------
|
33590
|
+
ActionSmser::SimpleHttpTest: test_should_be_able_to_deliver
|
33591
|
+
-----------------------------------------------------------
|
33592
|
+
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)
|
33593
|
+
ActionSmser: SimpleHttp delivery ||| /api/sendsms/plain?user=user&password=pass&sender=555666&SMSText=Body+with+%E4%E4kk%F6set+end&GSM=555123555,123555123 ||| #<Mock:0x417ee50>
|
33594
|
+
ActionSmser: id_1234
|
33595
|
+
id_6666
|
33596
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
33597
|
+
[1m[35m (0.0ms)[0m begin transaction
|
33598
|
+
--------------------------------------------------------------
|
33599
|
+
ActionSmser::SimpleHttpTest: test_with_saving_delivery_reports
|
33600
|
+
--------------------------------------------------------------
|
33601
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "action_smser_delivery_reports"[0m
|
33602
|
+
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)
|
33603
|
+
ActionSmser: SimpleHttp delivery ||| /api/sendsms/plain?user=user&password=pass&sender=555666&SMSText=Body+with+%E4%E4kk%F6set+end&GSM=555123555,123555123 ||| #<Mock:0x417a170>
|
33604
|
+
ActionSmser: id_1234
|
33605
|
+
id_6666
|
33606
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
33607
|
+
[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-23 13:45:16.358789"], ["log", "2015-04-23 16:45:16: LOCAL_SENT\n"], ["gateway", "simple_http"], ["created_at", "2015-04-23 13:45:16.359458"], ["updated_at", "2015-04-23 13:45:16.359458"]]
|
33608
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
33609
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
33610
|
+
[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-23 13:45:16.360815"], ["log", "2015-04-23 16:45:16: LOCAL_SENT\n"], ["gateway", "simple_http"], ["created_at", "2015-04-23 13:45:16.361468"], ["updated_at", "2015-04-23 13:45:16.361468"]]
|
33611
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
33612
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "action_smser_delivery_reports"
|
33613
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
33614
|
+
[1m[35m (0.0ms)[0m begin transaction
|
33615
|
+
--------------------------------------------------------------------------------
|
33616
|
+
ActionSmser::DeliveryReportsControllerTest: test_gateway_commit_with_existing_dr
|
33617
|
+
--------------------------------------------------------------------------------
|
33618
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
33619
|
+
[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-23 13:45:16.364394"], ["log", "2015-04-23 16:45:16: ORIGINAL_STATUS\n"], ["created_at", "2015-04-23 13:45:16.364774"], ["updated_at", "2015-04-23 13:45:16.364774"]]
|
33620
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
33621
|
+
Processing by ActionSmser::DeliveryReportsController#gateway_commit as HTML
|
33622
|
+
Parameters: {"DeliveryReport"=>{"message"=>{"id"=>"102010314204056202", "donedate"=>"2012/01/03 14:20:45", "sentdate"=>"2012/01/03 14:20:40", "status"=>"DELIVERED"}}, "gateway"=>"test_gateway"}
|
33623
|
+
ActionSmser: Gateway_commit found parser for gateway: test_gateway
|
33624
|
+
[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"]]
|
33625
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
33626
|
+
[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-23 13:45:16.368972"], ["log", "2015-04-23 16:45:16: ORIGINAL_STATUS\n2015-04-23 16:45:16: DELIVERED\n"], ["updated_at", "2015-04-23 13:45:16.369357"], ["id", 1]]
|
33627
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
33628
|
+
ActionSmser: Gateway_commit updated item with id: 102010314204056202, params: {"msg_id"=>"102010314204056202", "status"=>"DELIVERED"}
|
33629
|
+
Rendered text template (0.0ms)
|
33630
|
+
Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.3ms)
|
33631
|
+
[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]]
|
33632
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
33633
|
+
[1m[35m (0.0ms)[0m begin transaction
|
33634
|
+
--------------------------------------------------------------------------------------------------------
|
33635
|
+
ActionSmser::DeliveryReportsControllerTest: test_index_with_forbidden_admin_access_(default_access_mode)
|
33636
|
+
--------------------------------------------------------------------------------------------------------
|
33637
|
+
Processing by ActionSmser::DeliveryReportsController#index as HTML
|
33638
|
+
Rendered text template (0.0ms)
|
33639
|
+
Filter chain halted as :admin_access_only rendered or redirected
|
33640
|
+
Completed 403 Forbidden in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms)
|
33641
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
33642
|
+
[1m[35m (0.0ms)[0m begin transaction
|
33643
|
+
----------------------------------------------------------------------------------
|
33644
|
+
ActionSmser::DeliveryReportsControllerTest: test_gateway_commit_without_any_parser
|
33645
|
+
----------------------------------------------------------------------------------
|
33646
|
+
Processing by ActionSmser::DeliveryReportsController#gateway_commit as HTML
|
33647
|
+
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"}
|
33648
|
+
Rendered text template (0.0ms)
|
33649
|
+
Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
|
33650
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
33651
|
+
[1m[35m (0.0ms)[0m begin transaction
|
33652
|
+
--------------------------------------------------------------------------
|
33653
|
+
ActionSmser::DeliveryReportsControllerTest: test_gateway_commit_without_dr
|
33654
|
+
--------------------------------------------------------------------------
|
33655
|
+
Processing by ActionSmser::DeliveryReportsController#gateway_commit as HTML
|
33656
|
+
Parameters: {"DeliveryReport"=>{"message"=>{"id"=>"wrongid", "donedate"=>"2012/01/03 14:20:45", "sentdate"=>"2012/01/03 14:20:40", "status"=>"DELIVERED"}}, "gateway"=>"test_gateway"}
|
33657
|
+
ActionSmser: Gateway_commit found parser for gateway: test_gateway
|
33658
|
+
[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"]]
|
33659
|
+
ActionSmser: Gateway_commit not found item with id: wrongid, params: {"msg_id"=>"wrongid", "status"=>"DELIVERED"}
|
33660
|
+
Rendered text template (0.0ms)
|
33661
|
+
Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)
|
33662
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
33663
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
33664
|
+
--------------------------------------------------------------------------------
|
33665
|
+
ActionSmser::DeliveryReportsControllerTest: test_index_with_always_enabled_admin
|
33666
|
+
--------------------------------------------------------------------------------
|
33667
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
33668
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "action_smser_delivery_reports" ("msg_id", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["msg_id", "idtest_9"], ["created_at", "2015-04-23 13:45:16.377569"], ["updated_at", "2015-04-23 13:45:16.377569"]]
|
33669
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
33670
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
33671
|
+
[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-23 13:45:16.378915"], ["updated_at", "2015-04-23 13:45:16.378915"]]
|
33672
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
33673
|
+
Processing by ActionSmser::DeliveryReportsController#index as HTML
|
33674
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2015-04-16 13:45:16.384544' AND '2015-04-23 13:35:16.384672')
|
33675
|
+
[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-16 13:45:16.384544' AND '2015-04-23 13:35:16.384672') GROUP BY "action_smser_delivery_reports"."gateway"[0m
|
33676
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2015-04-16 13:45:16.384544' AND '2015-04-23 13:35:16.384672')
|
33677
|
+
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) AS count_all, status AS status FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2015-04-16 13:45:16.384544' AND '2015-04-23 13:35:16.384672') GROUP BY "action_smser_delivery_reports"."status"[0m
|
33678
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2015-04-16 13:45:16.384544' AND '2015-04-23 13:35:16.384672')
|
33679
|
+
[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-16 13:45:16.384544' AND '2015-04-23 13:35:16.384672') GROUP BY "action_smser_delivery_reports"."sms_type"[0m
|
33680
|
+
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.4ms)
|
33681
|
+
Completed 200 OK in 11ms (Views: 10.3ms | ActiveRecord: 0.6ms)
|
33682
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
33683
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
33684
|
+
-----------------------------------------------------------------------------------------------------
|
33685
|
+
ActionSmser::DeliveryReportsControllerTest: test_index_with_admin_access_lambda_with_right_login_info
|
33686
|
+
-----------------------------------------------------------------------------------------------------
|
33687
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
33688
|
+
[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-23 13:45:16.393678"], ["updated_at", "2015-04-23 13:45:16.393678"]]
|
33689
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
33690
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
33691
|
+
[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-23 13:45:16.395023"], ["updated_at", "2015-04-23 13:45:16.395023"]]
|
33692
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
33693
|
+
Processing by ActionSmser::DeliveryReportsController#index as HTML
|
33694
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2015-04-16 13:45:16.397560' AND '2015-04-23 13:35:16.397637')
|
33695
|
+
[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-16 13:45:16.397560' AND '2015-04-23 13:35:16.397637') GROUP BY "action_smser_delivery_reports"."gateway"[0m
|
33696
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2015-04-16 13:45:16.397560' AND '2015-04-23 13:35:16.397637')
|
33697
|
+
[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-16 13:45:16.397560' AND '2015-04-23 13:35:16.397637') GROUP BY "action_smser_delivery_reports"."status"[0m
|
33698
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2015-04-16 13:45:16.397560' AND '2015-04-23 13:35:16.397637')
|
33699
|
+
[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-16 13:45:16.397560' AND '2015-04-23 13:35:16.397637') GROUP BY "action_smser_delivery_reports"."sms_type"[0m
|
33700
|
+
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.7ms)
|
33701
|
+
Completed 200 OK in 5ms (Views: 4.8ms | ActiveRecord: 0.5ms)
|
33702
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
33703
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
33704
|
+
-------------------------------------------------------------------------------
|
33705
|
+
ActionSmser::DeliveryReportsControllerTest: test_list_with_always_enabled_admin
|
33706
|
+
-------------------------------------------------------------------------------
|
33707
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
33708
|
+
[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-23 13:45:16.403691"], ["updated_at", "2015-04-23 13:45:16.403691"]]
|
33709
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
33710
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
33711
|
+
[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-23 13:45:16.404718"], ["updated_at", "2015-04-23 13:45:16.404718"]]
|
33712
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
33713
|
+
Processing by ActionSmser::DeliveryReportsController#list as HTML
|
33714
|
+
[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
|
33715
|
+
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.0ms)
|
33716
|
+
Completed 200 OK in 3ms (Views: 3.0ms | ActiveRecord: 0.2ms)
|
33717
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
33718
|
+
[1m[35m (0.0ms)[0m begin transaction
|
33719
|
+
-------------------------------------------------------------------------------------
|
33720
|
+
ActionSmser::DeliveryReportsControllerTest: test_gateway_commit_with_multiple_records
|
33721
|
+
-------------------------------------------------------------------------------------
|
33722
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
33723
|
+
[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-23 13:45:16.411035"], ["log", "2015-04-23 16:45:16: ORIGINAL_STATUS\n"], ["created_at", "2015-04-23 13:45:16.411390"], ["updated_at", "2015-04-23 13:45:16.411390"]]
|
33724
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
33725
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
33726
|
+
[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-23 13:45:16.412312"], ["log", "2015-04-23 16:45:16: ORIGINAL_STATUS\n"], ["created_at", "2015-04-23 13:45:16.412612"], ["updated_at", "2015-04-23 13:45:16.412612"]]
|
33727
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
33728
|
+
Processing by ActionSmser::DeliveryReportsController#gateway_commit as HTML
|
33729
|
+
Parameters: {"DeliveryReport"=>{"message"=>[{"id"=>"102010314204056202", "status"=>"DELIVERED"}, {"id"=>"99999999999999999", "status"=>"DELIVERED"}]}, "gateway"=>"test_gateway"}
|
33730
|
+
ActionSmser: Gateway_commit found parser for gateway: test_gateway
|
33731
|
+
[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"]]
|
33732
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
33733
|
+
[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-23 13:45:16.415208"], ["log", "2015-04-23 16:45:16: ORIGINAL_STATUS\n2015-04-23 16:45:16: DELIVERED\n"], ["updated_at", "2015-04-23 13:45:16.415596"], ["id", 1]]
|
33734
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
33735
|
+
ActionSmser: Gateway_commit updated item with id: 102010314204056202, params: {"msg_id"=>"102010314204056202", "status"=>"DELIVERED"}
|
33736
|
+
[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"]]
|
33737
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
33738
|
+
[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-23 13:45:16.416827"], ["log", "2015-04-23 16:45:16: ORIGINAL_STATUS\n2015-04-23 16:45:16: DELIVERED\n"], ["updated_at", "2015-04-23 13:45:16.417139"], ["id", 2]]
|
33739
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
33740
|
+
ActionSmser: Gateway_commit updated item with id: 99999999999999999, params: {"msg_id"=>"99999999999999999", "status"=>"DELIVERED"}
|
33741
|
+
Rendered text template (0.0ms)
|
33742
|
+
Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.3ms)
|
33743
|
+
[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]]
|
33744
|
+
[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]]
|
33745
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: action_smser
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.1.
|
4
|
+
version: 3.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Olli Huotari
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-04-
|
11
|
+
date: 2015-04-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: railties
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '
|
19
|
+
version: '3.2'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: '
|
26
|
+
version: '3.2'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: mocha
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -58,14 +58,14 @@ dependencies:
|
|
58
58
|
requirements:
|
59
59
|
- - ">="
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version: '
|
61
|
+
version: '3.2'
|
62
62
|
type: :development
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
66
|
- - ">="
|
67
67
|
- !ruby/object:Gem::Version
|
68
|
-
version: '
|
68
|
+
version: '3.2'
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: delayed_job
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|