maestrano-rails 1.0.0.pre.RC5 → 1.0.0.pre.RC6

Sign up to get free protection for your applications and to get access to all the features.
@@ -37302,3 +37302,3522 @@ MaestranoGroupViaTest: test_: instance methods maestrano? should return true if
37302
37302
   (0.0ms) commit transaction
37303
37303
   (0.0ms) begin transaction
37304
37304
   (0.0ms) rollback transaction
37305
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
37306
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
37307
+ ---------------------------------------------------------------------------------------------------------------------------------------
37308
+ MaestranoGroupViaTest: test_: class methods find_or_create_for_maestrano class method should create a monster using the mapping block.
37309
+ ---------------------------------------------------------------------------------------------------------------------------------------
37310
+  (0.1ms) begin transaction
37311
+  (0.0ms) commit transaction
37312
+  (0.0ms) begin transaction
37313
+ MnoCrew Load (0.1ms) SELECT "mno_crews".* FROM "mno_crews" WHERE "mno_crews"."provider" = ? AND "mno_crews"."uid" = ? AND "mno_crews"."tenant" = ? ORDER BY "mno_crews"."id" ASC LIMIT 1 [["provider", "maestrano"], ["uid", "usr-2"], ["tenant", "default"]]
37314
+  (0.1ms) SAVEPOINT active_record_1
37315
+ SQL (0.2ms) INSERT INTO "mno_crews" ("name", "provider", "uid", "tenant", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["name", "Monster Co"], ["provider", "maestrano"], ["uid", "usr-2"], ["tenant", "default"], ["created_at", "2016-09-20 04:44:31.156541"], ["updated_at", "2016-09-20 04:44:31.156541"]]
37316
+  (0.0ms) RELEASE SAVEPOINT active_record_1
37317
+  (0.1ms) rollback transaction
37318
+ ------------------------------------------------------------------------------------------------------------------------------------------------------
37319
+ MaestranoGroupViaTest: test_: class methods find_or_create_for_maestrano class method should not return a MnoCrew from another provider if it exists.
37320
+ ------------------------------------------------------------------------------------------------------------------------------------------------------
37321
+  (0.0ms) begin transaction
37322
+  (0.0ms) commit transaction
37323
+  (0.0ms) begin transaction
37324
+  (0.0ms) SAVEPOINT active_record_1
37325
+ SQL (0.1ms) INSERT INTO "mno_crews" ("name", "provider", "uid", "tenant", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["name", "SomeOtherCrew"], ["provider", "someoneelse"], ["uid", "usr-1"], ["tenant", "default"], ["created_at", "2016-09-20 04:44:31.158847"], ["updated_at", "2016-09-20 04:44:31.158847"]]
37326
+  (0.0ms) RELEASE SAVEPOINT active_record_1
37327
+ MnoCrew Load (0.0ms) SELECT "mno_crews".* FROM "mno_crews" WHERE "mno_crews"."provider" = ? AND "mno_crews"."uid" = ? AND "mno_crews"."tenant" = ? ORDER BY "mno_crews"."id" ASC LIMIT 1 [["provider", "maestrano"], ["uid", "cld-1"], ["tenant", "default"]]
37328
+  (0.0ms) SAVEPOINT active_record_1
37329
+ SQL (0.1ms) INSERT INTO "mno_crews" ("name", "provider", "uid", "tenant", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["name", "Your Group"], ["provider", "maestrano"], ["uid", "cld-1"], ["tenant", "default"], ["created_at", "2016-09-20 04:44:31.160201"], ["updated_at", "2016-09-20 04:44:31.160201"]]
37330
+  (0.0ms) RELEASE SAVEPOINT active_record_1
37331
+  (0.1ms) rollback transaction
37332
+ ------------------------------------------------------------------------------------------------------------------------------
37333
+ MaestranoGroupViaTest: test_: class methods find_or_create_for_maestrano class method should return the MnoCrew if it exists.
37334
+ ------------------------------------------------------------------------------------------------------------------------------
37335
+  (0.0ms) begin transaction
37336
+  (0.0ms) commit transaction
37337
+  (0.0ms) begin transaction
37338
+  (0.0ms) SAVEPOINT active_record_1
37339
+ SQL (0.1ms) INSERT INTO "mno_crews" ("name", "provider", "uid", "tenant", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["name", "SomeCrew"], ["provider", "maestrano"], ["uid", "cld-1"], ["tenant", "default"], ["created_at", "2016-09-20 04:44:31.161684"], ["updated_at", "2016-09-20 04:44:31.161684"]]
37340
+  (0.0ms) RELEASE SAVEPOINT active_record_1
37341
+ MnoCrew Load (0.0ms) SELECT "mno_crews".* FROM "mno_crews" WHERE "mno_crews"."provider" = ? AND "mno_crews"."uid" = ? AND "mno_crews"."tenant" = ? ORDER BY "mno_crews"."id" ASC LIMIT 1 [["provider", "maestrano"], ["uid", "cld-1"], ["tenant", "default"]]
37342
+  (0.1ms) rollback transaction
37343
+ ----------------------------------------------------------------------------------------------------
37344
+ MaestranoGroupViaTest: test_: class methods maestrano_*_via should have the right field definition.
37345
+ ----------------------------------------------------------------------------------------------------
37346
+  (0.0ms) begin transaction
37347
+  (0.0ms) commit transaction
37348
+  (0.0ms) begin transaction
37349
+  (0.0ms) rollback transaction
37350
+ -------------------------------------------------------------------------------------------------------------
37351
+ MaestranoGroupViaTest: test_: instance methods maestrano? should return false if provider is something else.
37352
+ -------------------------------------------------------------------------------------------------------------
37353
+  (0.0ms) begin transaction
37354
+  (0.0ms) commit transaction
37355
+  (0.0ms) begin transaction
37356
+  (0.0ms) rollback transaction
37357
+ -----------------------------------------------------------------------------------------------
37358
+ MaestranoGroupViaTest: test_: instance methods maestrano? should return false if uid is blank.
37359
+ -----------------------------------------------------------------------------------------------
37360
+  (0.0ms) begin transaction
37361
+  (0.0ms) commit transaction
37362
+  (0.0ms) begin transaction
37363
+  (0.0ms) rollback transaction
37364
+ ------------------------------------------------------------------------------------------------------------------------
37365
+ MaestranoGroupViaTest: test_: instance methods maestrano? should return true if provider is maestrano and uid not null.
37366
+ ------------------------------------------------------------------------------------------------------------------------
37367
+  (0.0ms) begin transaction
37368
+  (0.0ms) commit transaction
37369
+  (0.0ms) begin transaction
37370
+  (0.0ms) rollback transaction
37371
+ --------------------------------------------------------------------------------------------------------------------------------------
37372
+ MaestranoUserViaTest: test_: class methods find_or_create_for_maestrano class method should create a monster using the mapping block.
37373
+ --------------------------------------------------------------------------------------------------------------------------------------
37374
+  (0.0ms) begin transaction
37375
+  (0.0ms) commit transaction
37376
+  (0.0ms) begin transaction
37377
+ MnoMonster Load (0.1ms) SELECT "mno_monsters".* FROM "mno_monsters" WHERE "mno_monsters"."provider" = ? AND "mno_monsters"."uid" = ? AND "mno_monsters"."tenant" = ? ORDER BY "mno_monsters"."id" ASC LIMIT 1 [["provider", "maestrano"], ["uid", "usr-2"], ["tenant", "default"]]
37378
+  (0.1ms) SAVEPOINT active_record_1
37379
+ SQL (0.3ms) INSERT INTO "mno_monsters" ("first_name", "last_name", "email", "provider", "uid", "tenant", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["first_name", "Mon"], ["last_name", "Ster"], ["email", "monster@monst.com"], ["provider", "maestrano"], ["uid", "usr-2"], ["tenant", "default"], ["created_at", "2016-09-20 04:44:31.172368"], ["updated_at", "2016-09-20 04:44:31.172368"]]
37380
+  (0.0ms) RELEASE SAVEPOINT active_record_1
37381
+  (0.1ms) rollback transaction
37382
+ --------------------------------------------------------------------------------------------------------------------------------------------------------
37383
+ MaestranoUserViaTest: test_: class methods find_or_create_for_maestrano class method should not return a MnoMonster from another provider if it exists.
37384
+ --------------------------------------------------------------------------------------------------------------------------------------------------------
37385
+  (0.0ms) begin transaction
37386
+  (0.0ms) commit transaction
37387
+  (0.0ms) begin transaction
37388
+  (0.1ms) SAVEPOINT active_record_1
37389
+ SQL (0.2ms) INSERT INTO "mno_monsters" ("first_name", "last_name", "email", "provider", "uid", "tenant", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["first_name", "John"], ["last_name", "Jack"], ["email", "monster@co.com"], ["provider", "someoneelse"], ["uid", "usr-1"], ["tenant", "default"], ["created_at", "2016-09-20 04:44:31.175498"], ["updated_at", "2016-09-20 04:44:31.175498"]]
37390
+  (0.0ms) RELEASE SAVEPOINT active_record_1
37391
+ MnoMonster Load (0.0ms) SELECT "mno_monsters".* FROM "mno_monsters" WHERE "mno_monsters"."provider" = ? AND "mno_monsters"."uid" = ? AND "mno_monsters"."tenant" = ? ORDER BY "mno_monsters"."id" ASC LIMIT 1 [["provider", "maestrano"], ["uid", "usr-1"], ["tenant", "default"]]
37392
+  (0.0ms) SAVEPOINT active_record_1
37393
+ SQL (0.1ms) INSERT INTO "mno_monsters" ("provider", "uid", "tenant", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["provider", "maestrano"], ["uid", "usr-1"], ["tenant", "default"], ["created_at", "2016-09-20 04:44:31.177942"], ["updated_at", "2016-09-20 04:44:31.177942"]]
37394
+  (0.0ms) RELEASE SAVEPOINT active_record_1
37395
+  (0.1ms) rollback transaction
37396
+ --------------------------------------------------------------------------------------------------------------------------------
37397
+ MaestranoUserViaTest: test_: class methods find_or_create_for_maestrano class method should return the MnoMonster if it exists.
37398
+ --------------------------------------------------------------------------------------------------------------------------------
37399
+  (0.0ms) begin transaction
37400
+  (0.0ms) commit transaction
37401
+  (0.0ms) begin transaction
37402
+  (0.0ms) SAVEPOINT active_record_1
37403
+ SQL (0.1ms) INSERT INTO "mno_monsters" ("first_name", "last_name", "email", "provider", "uid", "tenant", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["first_name", "John"], ["last_name", "Jack"], ["email", "monster@co.com"], ["provider", "maestrano"], ["uid", "usr-1"], ["tenant", "default"], ["created_at", "2016-09-20 04:44:31.179601"], ["updated_at", "2016-09-20 04:44:31.179601"]]
37404
+  (0.0ms) RELEASE SAVEPOINT active_record_1
37405
+ MnoMonster Load (0.0ms) SELECT "mno_monsters".* FROM "mno_monsters" WHERE "mno_monsters"."provider" = ? AND "mno_monsters"."uid" = ? AND "mno_monsters"."tenant" = ? ORDER BY "mno_monsters"."id" ASC LIMIT 1 [["provider", "maestrano"], ["uid", "usr-1"], ["tenant", "default"]]
37406
+  (0.1ms) rollback transaction
37407
+ ---------------------------------------------------------------------------------------------------
37408
+ MaestranoUserViaTest: test_: class methods maestrano_*_via should have the right field definition.
37409
+ ---------------------------------------------------------------------------------------------------
37410
+  (0.0ms) begin transaction
37411
+  (0.0ms) commit transaction
37412
+  (0.0ms) begin transaction
37413
+  (0.0ms) rollback transaction
37414
+ ------------------------------------------------------------------------------------------------------------
37415
+ MaestranoUserViaTest: test_: instance methods maestrano? should return false if provider is something else.
37416
+ ------------------------------------------------------------------------------------------------------------
37417
+  (0.0ms) begin transaction
37418
+  (0.0ms) commit transaction
37419
+  (0.0ms) begin transaction
37420
+  (0.0ms) rollback transaction
37421
+ ----------------------------------------------------------------------------------------------
37422
+ MaestranoUserViaTest: test_: instance methods maestrano? should return false if uid is blank.
37423
+ ----------------------------------------------------------------------------------------------
37424
+  (0.0ms) begin transaction
37425
+  (0.0ms) commit transaction
37426
+  (0.0ms) begin transaction
37427
+  (0.0ms) rollback transaction
37428
+ -----------------------------------------------------------------------------------------------------------------------
37429
+ MaestranoUserViaTest: test_: instance methods maestrano? should return true if provider is maestrano and uid not null.
37430
+ -----------------------------------------------------------------------------------------------------------------------
37431
+  (0.0ms) begin transaction
37432
+  (0.0ms) commit transaction
37433
+  (0.0ms) begin transaction
37434
+  (0.0ms) rollback transaction
37435
+ ----------------------------------------------------------------------------------------------------------
37436
+ GroupGeneratorTest: test_: GroupGenerator should call the active_record migration generator successfully.
37437
+ ----------------------------------------------------------------------------------------------------------
37438
+  (0.0ms) begin transaction
37439
+  (0.0ms) commit transaction
37440
+  (0.0ms) begin transaction
37441
+  (0.0ms) rollback transaction
37442
+ ----------------------------------------------------------------------------------------------------
37443
+ GroupGeneratorTest: test_: GroupGenerator should call the mongoid migration generator successfully.
37444
+ ----------------------------------------------------------------------------------------------------
37445
+  (0.0ms) begin transaction
37446
+  (0.0ms) commit transaction
37447
+  (0.0ms) begin transaction
37448
+  (0.1ms) rollback transaction
37449
+ ----------------------------------------------------------------------------------------------
37450
+ SamlBaseControllerTest: test_: consume phase error should redirect to maestrano on any error.
37451
+ ----------------------------------------------------------------------------------------------
37452
+  (0.1ms) begin transaction
37453
+  (0.0ms) commit transaction
37454
+  (0.0ms) begin transaction
37455
+ Processing by Maestrano::Auth::SamlController#consume as HTML
37456
+ Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"}
37457
+ Cannot validate SAML response: Bla
37458
+ Trace: ["/home/bruno/.rvm/gems/ruby-2.3.1/gems/mocha-1.1.0/lib/mocha/exception_raiser.rb:12:in `evaluate'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/mocha-1.1.0/lib/mocha/return_values.rb:20:in `next'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/mocha-1.1.0/lib/mocha/expectation.rb:569:in `invoke'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/mocha-1.1.0/lib/mocha/mock.rb:296:in `method_missing'", "/home/bruno/Workspace/maestrano-rails/app/controllers/maestrano/rails/saml_base_controller.rb:35:in `process_saml_response'", "/home/bruno/Workspace/maestrano-rails/app/controllers/maestrano/rails/saml_base_controller.rb:18:in `saml_response_transaction'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:432:in `block in make_lambda'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:291:in `block in halting_and_conditional'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:497:in `block in around'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:505:in `call'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:92:in `__run_callbacks__'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:778:in `_run_process_action_callbacks'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:81:in `run_callbacks'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionpack-4.2.7.1/lib/abstract_controller/callbacks.rb:19:in `process_action'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionpack-4.2.7.1/lib/action_controller/metal/rescue.rb:29:in `process_action'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionpack-4.2.7.1/lib/action_controller/metal/instrumentation.rb:32:in `block in process_action'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-4.2.7.1/lib/active_support/notifications.rb:164:in `block in instrument'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-4.2.7.1/lib/active_support/notifications/instrumenter.rb:20:in `instrument'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-4.2.7.1/lib/active_support/notifications.rb:164:in `instrument'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionpack-4.2.7.1/lib/action_controller/metal/instrumentation.rb:30:in `process_action'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionpack-4.2.7.1/lib/action_controller/metal/params_wrapper.rb:250:in `process_action'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activerecord-4.2.7.1/lib/active_record/railties/controller_runtime.rb:18:in `process_action'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionpack-4.2.7.1/lib/abstract_controller/base.rb:137:in `process'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionview-4.2.7.1/lib/action_view/rendering.rb:30:in `process'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionpack-4.2.7.1/lib/action_controller/test_case.rb:639:in `process'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionpack-4.2.7.1/lib/action_controller/test_case.rb:67:in `process'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionpack-4.2.7.1/lib/action_controller/test_case.rb:520:in `post'", "/home/bruno/Workspace/maestrano-rails/test/controllers/saml_controller_test.rb:117:in `block (3 levels) in <class:SamlBaseControllerTest>'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/shoulda-context-1.2.1/lib/shoulda/context/context.rb:413:in `instance_exec'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/shoulda-context-1.2.1/lib/shoulda/context/context.rb:413:in `block in create_test_from_should_hash'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest/test.rb:107:in `block (3 levels) in run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest/test.rb:204:in `capture_exceptions'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest/test.rb:104:in `block (2 levels) in run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest/test.rb:255:in `time_it'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest/test.rb:103:in `block in run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:348:in `on_signal'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest/test.rb:275:in `with_info_handler'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest/test.rb:102:in `run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:799:in `run_one_method'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:322:in `run_one_method'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:310:in `block (2 levels) in run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:309:in `each'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:309:in `block in run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:348:in `on_signal'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:335:in `with_info_handler'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:308:in `run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:158:in `block in __run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:158:in `map'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:158:in `__run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:135:in `run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:62:in `block in autorun'"]
37459
+ Redirected to http://api-sandbox.maestrano.io/app_access_unauthorized?err=internal
37460
+ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
37461
+  (0.1ms) rollback transaction
37462
+ --------------------------------------------------------------------------------------------------------------------
37463
+ SamlBaseControllerTest: test_: consume phase should reset the maestrano session successfully if one already exists.
37464
+ --------------------------------------------------------------------------------------------------------------------
37465
+  (0.0ms) begin transaction
37466
+  (0.0ms) commit transaction
37467
+  (0.0ms) begin transaction
37468
+ Processing by Maestrano::Auth::SamlController#consume as HTML
37469
+ Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"}
37470
+ Redirected to http://test.host/
37471
+ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
37472
+  (0.0ms) rollback transaction
37473
+ ---------------------------------------------------------------------------------
37474
+ SamlBaseControllerTest: test_: consume phase should set a saml_request in scope.
37475
+ ---------------------------------------------------------------------------------
37476
+  (0.0ms) begin transaction
37477
+  (0.1ms) commit transaction
37478
+  (0.0ms) begin transaction
37479
+ Processing by Maestrano::Auth::SamlController#consume as HTML
37480
+ Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"}
37481
+ Redirected to http://test.host/
37482
+ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
37483
+  (0.0ms) rollback transaction
37484
+ --------------------------------------------------------------------------------------
37485
+ SamlBaseControllerTest: test_: consume phase should set the group_auth_hash in scope.
37486
+ --------------------------------------------------------------------------------------
37487
+  (0.0ms) begin transaction
37488
+  (0.0ms) commit transaction
37489
+  (0.0ms) begin transaction
37490
+ Processing by Maestrano::Auth::SamlController#consume as HTML
37491
+ Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"}
37492
+ Redirected to http://test.host/
37493
+ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
37494
+  (0.1ms) rollback transaction
37495
+ -------------------------------------------------------------------------------
37496
+ SamlBaseControllerTest: test_: consume phase should set the maestrano session.
37497
+ -------------------------------------------------------------------------------
37498
+  (0.0ms) begin transaction
37499
+  (0.0ms) commit transaction
37500
+  (0.0ms) begin transaction
37501
+ Processing by Maestrano::Auth::SamlController#consume as HTML
37502
+ Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"}
37503
+ Redirected to http://test.host/
37504
+ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
37505
+  (0.0ms) rollback transaction
37506
+ -------------------------------------------------------------------------------------
37507
+ SamlBaseControllerTest: test_: consume phase should set the user_auth_hash in scope.
37508
+ -------------------------------------------------------------------------------------
37509
+  (0.0ms) begin transaction
37510
+  (0.0ms) commit transaction
37511
+  (0.0ms) begin transaction
37512
+ Processing by Maestrano::Auth::SamlController#consume as HTML
37513
+ Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"}
37514
+ Redirected to http://test.host/
37515
+ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
37516
+  (0.0ms) rollback transaction
37517
+ ------------------------------------------------------------------------------------------
37518
+ SamlBaseControllerTest: test_: consume phase should set the user_group_rel_hash in scope.
37519
+ ------------------------------------------------------------------------------------------
37520
+  (0.0ms) begin transaction
37521
+  (0.0ms) commit transaction
37522
+  (0.0ms) begin transaction
37523
+ Processing by Maestrano::Auth::SamlController#consume as HTML
37524
+ Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"}
37525
+ Redirected to http://test.host/
37526
+ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
37527
+  (0.0ms) rollback transaction
37528
+ ---------------------------------------------------------------------------------------------------------------------------
37529
+ SamlBaseControllerTest: test_: init phase should create a saml request successfully if a maestrano session is already set.
37530
+ ---------------------------------------------------------------------------------------------------------------------------
37531
+  (0.0ms) begin transaction
37532
+  (0.0ms) commit transaction
37533
+  (0.0ms) begin transaction
37534
+ Processing by Maestrano::Auth::SamlController#init as HTML
37535
+ Parameters: {"a_param"=>"value"}
37536
+ Redirected to http://idpprovider.com?r=request
37537
+ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
37538
+  (0.1ms) rollback transaction
37539
+ -----------------------------------------------------------------------------------------------------------------------
37540
+ SamlBaseControllerTest: test_: init phase should create a saml request using params and session and redirect the user.
37541
+ -----------------------------------------------------------------------------------------------------------------------
37542
+  (0.0ms) begin transaction
37543
+  (0.0ms) commit transaction
37544
+  (0.0ms) begin transaction
37545
+ Processing by Maestrano::Auth::SamlController#init as HTML
37546
+ Parameters: {"a_param"=>"value"}
37547
+ Redirected to http://idpprovider.com?r=request
37548
+ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
37549
+  (0.0ms) rollback transaction
37550
+ ------------------------------------------------------------------------------------------
37551
+ ActiveRecordUserGeneratorTest: test_: namespaced model should create the right migration.
37552
+ ------------------------------------------------------------------------------------------
37553
+  (0.0ms) begin transaction
37554
+  (0.0ms) commit transaction
37555
+  (0.0ms) begin transaction
37556
+  (0.1ms) rollback transaction
37557
+ --------------------------------------------------------------------------------------
37558
+ ActiveRecordUserGeneratorTest: test_: namespaced model should edit the model content.
37559
+ --------------------------------------------------------------------------------------
37560
+  (0.0ms) begin transaction
37561
+  (0.0ms) commit transaction
37562
+  (0.0ms) begin transaction
37563
+  (0.0ms) rollback transaction
37564
+ --------------------------------------------------------------------------------------
37565
+ ActiveRecordUserGeneratorTest: test_: normal model should create the right migration.
37566
+ --------------------------------------------------------------------------------------
37567
+  (0.1ms) begin transaction
37568
+  (0.0ms) commit transaction
37569
+  (0.1ms) begin transaction
37570
+  (0.1ms) rollback transaction
37571
+ ----------------------------------------------------------------------------------
37572
+ ActiveRecordUserGeneratorTest: test_: normal model should edit the model content.
37573
+ ----------------------------------------------------------------------------------
37574
+  (0.0ms) begin transaction
37575
+  (0.0ms) commit transaction
37576
+  (0.0ms) begin transaction
37577
+  (0.0ms) rollback transaction
37578
+ --------------------------------------------------------------------------------------------------------------------------
37579
+ ActiveRecordUserGeneratorTest: test_: normal model should include parameters if rails 3 and strong_parameter not present.
37580
+ --------------------------------------------------------------------------------------------------------------------------
37581
+  (0.1ms) begin transaction
37582
+  (0.0ms) commit transaction
37583
+  (0.0ms) begin transaction
37584
+  (0.1ms) rollback transaction
37585
+ --------------------------------------------------------------------------------------------------------------------------
37586
+ ActiveRecordUserGeneratorTest: test_: normal model should not include parameters if rails 3 and strong_parameter present.
37587
+ --------------------------------------------------------------------------------------------------------------------------
37588
+  (0.0ms) begin transaction
37589
+  (0.0ms) commit transaction
37590
+  (0.0ms) begin transaction
37591
+  (0.0ms) rollback transaction
37592
+ ---------------------------------------------------------------------------------------------
37593
+ ActiveRecordUserGeneratorTest: test_: normal model should not include parameters in rails 4.
37594
+ ---------------------------------------------------------------------------------------------
37595
+  (0.0ms) begin transaction
37596
+  (0.0ms) commit transaction
37597
+  (0.0ms) begin transaction
37598
+  (0.0ms) rollback transaction
37599
+ ------------------------------
37600
+ MaestranoRailsTest: test_truth
37601
+ ------------------------------
37602
+  (0.0ms) begin transaction
37603
+  (0.0ms) commit transaction
37604
+  (0.0ms) begin transaction
37605
+  (0.0ms) rollback transaction
37606
+ -----------------------------------------------------------------
37607
+ GroupsControllerTest: test_: authenticated should be successful.
37608
+ -----------------------------------------------------------------
37609
+  (0.0ms) begin transaction
37610
+  (0.0ms) commit transaction
37611
+  (0.0ms) begin transaction
37612
+ Processing by Maestrano::Account::GroupsController#destroy as HTML
37613
+ Parameters: {"id"=>"cld-1"}
37614
+ Rendered text template (0.0ms)
37615
+ Completed 200 OK in 5ms (Views: 4.5ms | ActiveRecord: 0.0ms)
37616
+  (0.0ms) rollback transaction
37617
+ -----------------------------------------------------------------
37618
+ GroupsControllerTest: test_: unauthenticated should deny access.
37619
+ -----------------------------------------------------------------
37620
+  (0.0ms) begin transaction
37621
+  (0.0ms) commit transaction
37622
+  (0.0ms) begin transaction
37623
+ Processing by Maestrano::Account::GroupsController#destroy as HTML
37624
+ Parameters: {"id"=>"cld-1"}
37625
+ Filter chain halted as :authenticate_maestrano! rendered or redirected
37626
+ Completed 401 Unauthorized in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
37627
+  (0.0ms) rollback transaction
37628
+ ---------------------------------------------------------------------------------------------------------------------
37629
+ GenericControllerTest: test_: with a maestrano session should be successful if the maestrano session is still valid.
37630
+ ---------------------------------------------------------------------------------------------------------------------
37631
+  (0.0ms) begin transaction
37632
+  (0.0ms) commit transaction
37633
+  (0.0ms) begin transaction
37634
+ Processing by PagesController#home as HTML
37635
+ Rendered pages/home.html.erb within layouts/application (1.0ms)
37636
+ Completed 200 OK in 104ms (Views: 104.0ms | ActiveRecord: 0.0ms)
37637
+  (0.1ms) rollback transaction
37638
+ --------------------------------------------------------------------------------------------------------------------
37639
+ GenericControllerTest: test_: with a maestrano session should initialize redirect to SSO initialization if invalid.
37640
+ --------------------------------------------------------------------------------------------------------------------
37641
+  (0.0ms) begin transaction
37642
+  (0.0ms) commit transaction
37643
+  (0.0ms) begin transaction
37644
+ Processing by PagesController#home as HTML
37645
+ Redirected to http://localhost::3000/maestrano/auth/saml/init
37646
+ Filter chain halted as :verify_maestrano_session rendered or redirected
37647
+ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
37648
+  (0.0ms) rollback transaction
37649
+ -----------------------------------------------------------------------------------------------------------
37650
+ GenericControllerTest: test_: with a maestrano session should not redirect to SSO init if sso is disabled.
37651
+ -----------------------------------------------------------------------------------------------------------
37652
+  (0.0ms) begin transaction
37653
+  (0.0ms) commit transaction
37654
+  (0.0ms) begin transaction
37655
+ Processing by PagesController#home as HTML
37656
+ Rendered pages/home.html.erb within layouts/application (0.0ms)
37657
+ Completed 200 OK in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)
37658
+  (0.0ms) rollback transaction
37659
+ ------------------------------------------------------------------------------
37660
+ GenericControllerTest: test_: with no maestrano session should be successful.
37661
+ ------------------------------------------------------------------------------
37662
+  (0.0ms) begin transaction
37663
+  (0.0ms) commit transaction
37664
+  (0.0ms) begin transaction
37665
+ Processing by PagesController#home as HTML
37666
+ Rendered pages/home.html.erb within layouts/application (0.0ms)
37667
+ Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms)
37668
+  (0.0ms) rollback transaction
37669
+ -------------------------------------------------------------------------------------------
37670
+ ActiveRecordGroupGeneratorTest: test_: namespaced model should create the right migration.
37671
+ -------------------------------------------------------------------------------------------
37672
+  (0.0ms) begin transaction
37673
+  (0.0ms) commit transaction
37674
+  (0.0ms) begin transaction
37675
+  (0.0ms) rollback transaction
37676
+ ---------------------------------------------------------------------------------------
37677
+ ActiveRecordGroupGeneratorTest: test_: namespaced model should edit the model content.
37678
+ ---------------------------------------------------------------------------------------
37679
+  (0.0ms) begin transaction
37680
+  (0.0ms) commit transaction
37681
+  (0.0ms) begin transaction
37682
+  (0.1ms) rollback transaction
37683
+ ---------------------------------------------------------------------------------------
37684
+ ActiveRecordGroupGeneratorTest: test_: normal model should create the right migration.
37685
+ ---------------------------------------------------------------------------------------
37686
+  (0.0ms) begin transaction
37687
+  (0.0ms) commit transaction
37688
+  (0.0ms) begin transaction
37689
+  (0.1ms) rollback transaction
37690
+ -----------------------------------------------------------------------------------
37691
+ ActiveRecordGroupGeneratorTest: test_: normal model should edit the model content.
37692
+ -----------------------------------------------------------------------------------
37693
+  (0.0ms) begin transaction
37694
+  (0.0ms) commit transaction
37695
+  (0.0ms) begin transaction
37696
+  (0.0ms) rollback transaction
37697
+ ---------------------------------------------------------------------------------------------------------------------------
37698
+ ActiveRecordGroupGeneratorTest: test_: normal model should include parameters if rails 3 and strong_parameter not present.
37699
+ ---------------------------------------------------------------------------------------------------------------------------
37700
+  (0.0ms) begin transaction
37701
+  (0.0ms) commit transaction
37702
+  (0.0ms) begin transaction
37703
+  (0.0ms) rollback transaction
37704
+ ---------------------------------------------------------------------------------------------------------------------------
37705
+ ActiveRecordGroupGeneratorTest: test_: normal model should not include parameters if rails 3 and strong_parameter present.
37706
+ ---------------------------------------------------------------------------------------------------------------------------
37707
+  (0.0ms) begin transaction
37708
+  (0.0ms) commit transaction
37709
+  (0.0ms) begin transaction
37710
+  (0.0ms) rollback transaction
37711
+ ----------------------------------------------------------------------------------------------
37712
+ ActiveRecordGroupGeneratorTest: test_: normal model should not include parameters in rails 4.
37713
+ ----------------------------------------------------------------------------------------------
37714
+  (0.0ms) begin transaction
37715
+  (0.0ms) commit transaction
37716
+  (0.0ms) begin transaction
37717
+  (0.1ms) rollback transaction
37718
+ ---------------------------------------------------------------------
37719
+ GroupUsersControllerTest: test_: authenticated should be successful.
37720
+ ---------------------------------------------------------------------
37721
+  (0.1ms) begin transaction
37722
+  (0.0ms) commit transaction
37723
+  (0.0ms) begin transaction
37724
+ Processing by Maestrano::Account::GroupUsersController#destroy as HTML
37725
+ Parameters: {"group_id"=>"cld-1", "id"=>"usr-1"}
37726
+ Rendered text template (0.0ms)
37727
+ Completed 200 OK in 5ms (Views: 4.2ms | ActiveRecord: 0.0ms)
37728
+  (0.1ms) rollback transaction
37729
+ ---------------------------------------------------------------------
37730
+ GroupUsersControllerTest: test_: unauthenticated should deny access.
37731
+ ---------------------------------------------------------------------
37732
+  (0.1ms) begin transaction
37733
+  (0.0ms) commit transaction
37734
+  (0.0ms) begin transaction
37735
+ Processing by Maestrano::Account::GroupUsersController#destroy as HTML
37736
+ Parameters: {"group_id"=>"cld-1", "id"=>"usr-1"}
37737
+ Filter chain halted as :authenticate_maestrano! rendered or redirected
37738
+ Completed 401 Unauthorized in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
37739
+  (0.0ms) rollback transaction
37740
+ ---------------------------------------------------------------------------------------
37741
+ InstallGeneratorTest: test_: InstallGenerator should create the maestrano initializer.
37742
+ ---------------------------------------------------------------------------------------
37743
+  (0.0ms) begin transaction
37744
+  (0.0ms) commit transaction
37745
+  (0.0ms) begin transaction
37746
+  (0.0ms) rollback transaction
37747
+ ----------------------------------------------------------------------------------
37748
+ InstallGeneratorTest: test_: InstallGenerator should create the maestrano routes.
37749
+ ----------------------------------------------------------------------------------
37750
+  (0.1ms) begin transaction
37751
+  (0.0ms) commit transaction
37752
+  (0.1ms) begin transaction
37753
+  (0.0ms) rollback transaction
37754
+ ----------------------------------------------------------------------------------------------------------
37755
+ InstallGeneratorTest: test_: InstallGenerator should create the maestrano/account/group_users_controller.
37756
+ ----------------------------------------------------------------------------------------------------------
37757
+  (0.0ms) begin transaction
37758
+  (0.0ms) commit transaction
37759
+  (0.1ms) begin transaction
37760
+  (0.0ms) rollback transaction
37761
+ -----------------------------------------------------------------------------------------------------
37762
+ InstallGeneratorTest: test_: InstallGenerator should create the maestrano/account/groups_controller.
37763
+ -----------------------------------------------------------------------------------------------------
37764
+  (0.0ms) begin transaction
37765
+  (0.0ms) commit transaction
37766
+  (0.0ms) begin transaction
37767
+  (0.0ms) rollback transaction
37768
+ ------------------------------------------------------------------------------------------------
37769
+ InstallGeneratorTest: test_: InstallGenerator should create the maestrano/auth/saml_controller.
37770
+ ------------------------------------------------------------------------------------------------
37771
+  (0.0ms) begin transaction
37772
+  (0.0ms) commit transaction
37773
+  (0.0ms) begin transaction
37774
+  (0.0ms) rollback transaction
37775
+ --------------------------------------------------------------------------------------------------------
37776
+ UserGeneratorTest: test_: UserGenerator should call the active_record migration generator successfully.
37777
+ --------------------------------------------------------------------------------------------------------
37778
+  (0.1ms) begin transaction
37779
+  (0.0ms) commit transaction
37780
+  (0.0ms) begin transaction
37781
+  (0.1ms) rollback transaction
37782
+ --------------------------------------------------------------------------------------------------
37783
+ UserGeneratorTest: test_: UserGenerator should call the mongoid migration generator successfully.
37784
+ --------------------------------------------------------------------------------------------------
37785
+  (0.1ms) begin transaction
37786
+  (0.0ms) commit transaction
37787
+  (0.0ms) begin transaction
37788
+  (0.0ms) rollback transaction
37789
+ -------------------------------------------------------------------
37790
+ MetadataControllerTest: test_: authenticated should be successful.
37791
+ -------------------------------------------------------------------
37792
+  (0.0ms) begin transaction
37793
+  (0.0ms) commit transaction
37794
+  (0.0ms) begin transaction
37795
+ Processing by Maestrano::Rails::MetadataController#index as HTML
37796
+ Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)
37797
+  (0.0ms) rollback transaction
37798
+ -------------------------------------------------------------------
37799
+ MetadataControllerTest: test_: unauthenticated should deny access.
37800
+ -------------------------------------------------------------------
37801
+  (0.0ms) begin transaction
37802
+  (0.0ms) commit transaction
37803
+  (0.0ms) begin transaction
37804
+ Processing by Maestrano::Rails::MetadataController#index as HTML
37805
+ Filter chain halted as :authenticate_maestrano! rendered or redirected
37806
+ Completed 401 Unauthorized in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
37807
+  (0.0ms) rollback transaction
37808
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
37809
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
37810
+ ------------------------------------------------------------------------------------------
37811
+ ActiveRecordUserGeneratorTest: test_: namespaced model should create the right migration.
37812
+ ------------------------------------------------------------------------------------------
37813
+  (0.1ms) begin transaction
37814
+  (0.0ms) commit transaction
37815
+  (0.0ms) begin transaction
37816
+  (0.0ms) rollback transaction
37817
+ --------------------------------------------------------------------------------------
37818
+ ActiveRecordUserGeneratorTest: test_: namespaced model should edit the model content.
37819
+ --------------------------------------------------------------------------------------
37820
+  (0.0ms) begin transaction
37821
+  (0.0ms) commit transaction
37822
+  (0.0ms) begin transaction
37823
+  (0.0ms) rollback transaction
37824
+ --------------------------------------------------------------------------------------
37825
+ ActiveRecordUserGeneratorTest: test_: normal model should create the right migration.
37826
+ --------------------------------------------------------------------------------------
37827
+  (0.0ms) begin transaction
37828
+  (0.0ms) commit transaction
37829
+  (0.0ms) begin transaction
37830
+  (0.0ms) rollback transaction
37831
+ ----------------------------------------------------------------------------------
37832
+ ActiveRecordUserGeneratorTest: test_: normal model should edit the model content.
37833
+ ----------------------------------------------------------------------------------
37834
+  (0.0ms) begin transaction
37835
+  (0.0ms) commit transaction
37836
+  (0.0ms) begin transaction
37837
+  (0.0ms) rollback transaction
37838
+ --------------------------------------------------------------------------------------------------------------------------
37839
+ ActiveRecordUserGeneratorTest: test_: normal model should include parameters if rails 3 and strong_parameter not present.
37840
+ --------------------------------------------------------------------------------------------------------------------------
37841
+  (0.0ms) begin transaction
37842
+  (0.0ms) commit transaction
37843
+  (0.0ms) begin transaction
37844
+  (0.0ms) rollback transaction
37845
+ --------------------------------------------------------------------------------------------------------------------------
37846
+ ActiveRecordUserGeneratorTest: test_: normal model should not include parameters if rails 3 and strong_parameter present.
37847
+ --------------------------------------------------------------------------------------------------------------------------
37848
+  (0.0ms) begin transaction
37849
+  (0.0ms) commit transaction
37850
+  (0.0ms) begin transaction
37851
+  (0.0ms) rollback transaction
37852
+ ---------------------------------------------------------------------------------------------
37853
+ ActiveRecordUserGeneratorTest: test_: normal model should not include parameters in rails 4.
37854
+ ---------------------------------------------------------------------------------------------
37855
+  (0.0ms) begin transaction
37856
+  (0.0ms) commit transaction
37857
+  (0.0ms) begin transaction
37858
+  (0.0ms) rollback transaction
37859
+ -------------------------------------------------------------------
37860
+ MetadataControllerTest: test_: authenticated should be successful.
37861
+ -------------------------------------------------------------------
37862
+  (0.0ms) begin transaction
37863
+  (0.0ms) commit transaction
37864
+  (0.0ms) begin transaction
37865
+ Processing by Maestrano::Rails::MetadataController#index as HTML
37866
+ Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)
37867
+  (0.0ms) rollback transaction
37868
+ -------------------------------------------------------------------
37869
+ MetadataControllerTest: test_: unauthenticated should deny access.
37870
+ -------------------------------------------------------------------
37871
+  (0.0ms) begin transaction
37872
+  (0.0ms) commit transaction
37873
+  (0.0ms) begin transaction
37874
+ Processing by Maestrano::Rails::MetadataController#index as HTML
37875
+ Filter chain halted as :authenticate_maestrano! rendered or redirected
37876
+ Completed 401 Unauthorized in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
37877
+  (0.1ms) rollback transaction
37878
+ -------------------------------------------------------------------------------------------
37879
+ ActiveRecordGroupGeneratorTest: test_: namespaced model should create the right migration.
37880
+ -------------------------------------------------------------------------------------------
37881
+  (0.0ms) begin transaction
37882
+  (0.0ms) commit transaction
37883
+  (0.0ms) begin transaction
37884
+  (0.1ms) rollback transaction
37885
+ ---------------------------------------------------------------------------------------
37886
+ ActiveRecordGroupGeneratorTest: test_: namespaced model should edit the model content.
37887
+ ---------------------------------------------------------------------------------------
37888
+  (0.0ms) begin transaction
37889
+  (0.0ms) commit transaction
37890
+  (0.0ms) begin transaction
37891
+  (0.1ms) rollback transaction
37892
+ ---------------------------------------------------------------------------------------
37893
+ ActiveRecordGroupGeneratorTest: test_: normal model should create the right migration.
37894
+ ---------------------------------------------------------------------------------------
37895
+  (0.1ms) begin transaction
37896
+  (0.0ms) commit transaction
37897
+  (0.0ms) begin transaction
37898
+  (0.0ms) rollback transaction
37899
+ -----------------------------------------------------------------------------------
37900
+ ActiveRecordGroupGeneratorTest: test_: normal model should edit the model content.
37901
+ -----------------------------------------------------------------------------------
37902
+  (0.0ms) begin transaction
37903
+  (0.0ms) commit transaction
37904
+  (0.0ms) begin transaction
37905
+  (0.0ms) rollback transaction
37906
+ ---------------------------------------------------------------------------------------------------------------------------
37907
+ ActiveRecordGroupGeneratorTest: test_: normal model should include parameters if rails 3 and strong_parameter not present.
37908
+ ---------------------------------------------------------------------------------------------------------------------------
37909
+  (0.0ms) begin transaction
37910
+  (0.0ms) commit transaction
37911
+  (0.0ms) begin transaction
37912
+  (0.0ms) rollback transaction
37913
+ ---------------------------------------------------------------------------------------------------------------------------
37914
+ ActiveRecordGroupGeneratorTest: test_: normal model should not include parameters if rails 3 and strong_parameter present.
37915
+ ---------------------------------------------------------------------------------------------------------------------------
37916
+  (0.0ms) begin transaction
37917
+  (0.0ms) commit transaction
37918
+  (0.0ms) begin transaction
37919
+  (0.0ms) rollback transaction
37920
+ ----------------------------------------------------------------------------------------------
37921
+ ActiveRecordGroupGeneratorTest: test_: normal model should not include parameters in rails 4.
37922
+ ----------------------------------------------------------------------------------------------
37923
+  (0.0ms) begin transaction
37924
+  (0.0ms) commit transaction
37925
+  (0.0ms) begin transaction
37926
+  (0.0ms) rollback transaction
37927
+ ---------------------------------------------------------------------
37928
+ GroupUsersControllerTest: test_: authenticated should be successful.
37929
+ ---------------------------------------------------------------------
37930
+  (0.0ms) begin transaction
37931
+  (0.0ms) commit transaction
37932
+  (0.1ms) begin transaction
37933
+ Processing by Maestrano::Account::GroupUsersController#destroy as HTML
37934
+ Parameters: {"group_id"=>"cld-1", "id"=>"usr-1"}
37935
+ Rendered text template (0.0ms)
37936
+ Completed 200 OK in 5ms (Views: 4.4ms | ActiveRecord: 0.0ms)
37937
+  (0.0ms) rollback transaction
37938
+ ---------------------------------------------------------------------
37939
+ GroupUsersControllerTest: test_: unauthenticated should deny access.
37940
+ ---------------------------------------------------------------------
37941
+  (0.0ms) begin transaction
37942
+  (0.0ms) commit transaction
37943
+  (0.0ms) begin transaction
37944
+ Processing by Maestrano::Account::GroupUsersController#destroy as HTML
37945
+ Parameters: {"group_id"=>"cld-1", "id"=>"usr-1"}
37946
+ Filter chain halted as :authenticate_maestrano! rendered or redirected
37947
+ Completed 401 Unauthorized in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
37948
+  (0.0ms) rollback transaction
37949
+ ---------------------------------------------------------------------------------------------------------------------------------------
37950
+ MaestranoGroupViaTest: test_: class methods find_or_create_for_maestrano class method should create a monster using the mapping block.
37951
+ ---------------------------------------------------------------------------------------------------------------------------------------
37952
+  (0.0ms) begin transaction
37953
+  (0.0ms) commit transaction
37954
+  (0.0ms) begin transaction
37955
+ MnoCrew Load (0.3ms) SELECT "mno_crews".* FROM "mno_crews" WHERE "mno_crews"."provider" = ? AND "mno_crews"."uid" = ? AND "mno_crews"."tenant" = ? ORDER BY "mno_crews"."id" ASC LIMIT 1 [["provider", "maestrano"], ["uid", "usr-2"], ["tenant", "default"]]
37956
+  (0.0ms) SAVEPOINT active_record_1
37957
+ SQL (0.2ms) INSERT INTO "mno_crews" ("name", "provider", "uid", "tenant", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["name", "Monster Co"], ["provider", "maestrano"], ["uid", "usr-2"], ["tenant", "default"], ["created_at", "2016-09-20 04:45:20.702480"], ["updated_at", "2016-09-20 04:45:20.702480"]]
37958
+  (0.0ms) RELEASE SAVEPOINT active_record_1
37959
+  (0.1ms) rollback transaction
37960
+ ------------------------------------------------------------------------------------------------------------------------------------------------------
37961
+ MaestranoGroupViaTest: test_: class methods find_or_create_for_maestrano class method should not return a MnoCrew from another provider if it exists.
37962
+ ------------------------------------------------------------------------------------------------------------------------------------------------------
37963
+  (0.0ms) begin transaction
37964
+  (0.0ms) commit transaction
37965
+  (0.0ms) begin transaction
37966
+  (0.0ms) SAVEPOINT active_record_1
37967
+ SQL (0.1ms) INSERT INTO "mno_crews" ("name", "provider", "uid", "tenant", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["name", "SomeOtherCrew"], ["provider", "someoneelse"], ["uid", "usr-1"], ["tenant", "default"], ["created_at", "2016-09-20 04:45:20.704552"], ["updated_at", "2016-09-20 04:45:20.704552"]]
37968
+  (0.0ms) RELEASE SAVEPOINT active_record_1
37969
+ MnoCrew Load (0.0ms) SELECT "mno_crews".* FROM "mno_crews" WHERE "mno_crews"."provider" = ? AND "mno_crews"."uid" = ? AND "mno_crews"."tenant" = ? ORDER BY "mno_crews"."id" ASC LIMIT 1 [["provider", "maestrano"], ["uid", "cld-1"], ["tenant", "default"]]
37970
+  (0.0ms) SAVEPOINT active_record_1
37971
+ SQL (0.1ms) INSERT INTO "mno_crews" ("name", "provider", "uid", "tenant", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["name", "Your Group"], ["provider", "maestrano"], ["uid", "cld-1"], ["tenant", "default"], ["created_at", "2016-09-20 04:45:20.705815"], ["updated_at", "2016-09-20 04:45:20.705815"]]
37972
+  (0.0ms) RELEASE SAVEPOINT active_record_1
37973
+  (0.1ms) rollback transaction
37974
+ ------------------------------------------------------------------------------------------------------------------------------
37975
+ MaestranoGroupViaTest: test_: class methods find_or_create_for_maestrano class method should return the MnoCrew if it exists.
37976
+ ------------------------------------------------------------------------------------------------------------------------------
37977
+  (0.0ms) begin transaction
37978
+  (0.0ms) commit transaction
37979
+  (0.0ms) begin transaction
37980
+  (0.0ms) SAVEPOINT active_record_1
37981
+ SQL (0.1ms) INSERT INTO "mno_crews" ("name", "provider", "uid", "tenant", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["name", "SomeCrew"], ["provider", "maestrano"], ["uid", "cld-1"], ["tenant", "default"], ["created_at", "2016-09-20 04:45:20.707173"], ["updated_at", "2016-09-20 04:45:20.707173"]]
37982
+  (0.0ms) RELEASE SAVEPOINT active_record_1
37983
+ MnoCrew Load (0.0ms) SELECT "mno_crews".* FROM "mno_crews" WHERE "mno_crews"."provider" = ? AND "mno_crews"."uid" = ? AND "mno_crews"."tenant" = ? ORDER BY "mno_crews"."id" ASC LIMIT 1 [["provider", "maestrano"], ["uid", "cld-1"], ["tenant", "default"]]
37984
+  (0.1ms) rollback transaction
37985
+ ----------------------------------------------------------------------------------------------------
37986
+ MaestranoGroupViaTest: test_: class methods maestrano_*_via should have the right field definition.
37987
+ ----------------------------------------------------------------------------------------------------
37988
+  (0.0ms) begin transaction
37989
+  (0.0ms) commit transaction
37990
+  (0.0ms) begin transaction
37991
+  (0.0ms) rollback transaction
37992
+ -------------------------------------------------------------------------------------------------------------
37993
+ MaestranoGroupViaTest: test_: instance methods maestrano? should return false if provider is something else.
37994
+ -------------------------------------------------------------------------------------------------------------
37995
+  (0.0ms) begin transaction
37996
+  (0.0ms) commit transaction
37997
+  (0.0ms) begin transaction
37998
+  (0.0ms) rollback transaction
37999
+ -----------------------------------------------------------------------------------------------
38000
+ MaestranoGroupViaTest: test_: instance methods maestrano? should return false if uid is blank.
38001
+ -----------------------------------------------------------------------------------------------
38002
+  (0.0ms) begin transaction
38003
+  (0.0ms) commit transaction
38004
+  (0.0ms) begin transaction
38005
+  (0.0ms) rollback transaction
38006
+ ------------------------------------------------------------------------------------------------------------------------
38007
+ MaestranoGroupViaTest: test_: instance methods maestrano? should return true if provider is maestrano and uid not null.
38008
+ ------------------------------------------------------------------------------------------------------------------------
38009
+  (0.0ms) begin transaction
38010
+  (0.0ms) commit transaction
38011
+  (0.0ms) begin transaction
38012
+  (0.0ms) rollback transaction
38013
+ -----------------------------------------------------------------
38014
+ GroupsControllerTest: test_: authenticated should be successful.
38015
+ -----------------------------------------------------------------
38016
+  (0.0ms) begin transaction
38017
+  (0.0ms) commit transaction
38018
+  (0.0ms) begin transaction
38019
+ Processing by Maestrano::Account::GroupsController#destroy as HTML
38020
+ Parameters: {"id"=>"cld-1"}
38021
+ Rendered text template (0.0ms)
38022
+ Completed 200 OK in 2ms (Views: 1.7ms | ActiveRecord: 0.0ms)
38023
+  (0.0ms) rollback transaction
38024
+ -----------------------------------------------------------------
38025
+ GroupsControllerTest: test_: unauthenticated should deny access.
38026
+ -----------------------------------------------------------------
38027
+  (0.0ms) begin transaction
38028
+  (0.0ms) commit transaction
38029
+  (0.0ms) begin transaction
38030
+ Processing by Maestrano::Account::GroupsController#destroy as HTML
38031
+ Parameters: {"id"=>"cld-1"}
38032
+ Filter chain halted as :authenticate_maestrano! rendered or redirected
38033
+ Completed 401 Unauthorized in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
38034
+  (0.1ms) rollback transaction
38035
+ ---------------------------------------------------------------------------------------
38036
+ InstallGeneratorTest: test_: InstallGenerator should create the maestrano initializer.
38037
+ ---------------------------------------------------------------------------------------
38038
+  (0.0ms) begin transaction
38039
+  (0.0ms) commit transaction
38040
+  (0.0ms) begin transaction
38041
+  (0.1ms) rollback transaction
38042
+ ----------------------------------------------------------------------------------
38043
+ InstallGeneratorTest: test_: InstallGenerator should create the maestrano routes.
38044
+ ----------------------------------------------------------------------------------
38045
+  (0.0ms) begin transaction
38046
+  (0.0ms) commit transaction
38047
+  (0.0ms) begin transaction
38048
+  (0.1ms) rollback transaction
38049
+ ----------------------------------------------------------------------------------------------------------
38050
+ InstallGeneratorTest: test_: InstallGenerator should create the maestrano/account/group_users_controller.
38051
+ ----------------------------------------------------------------------------------------------------------
38052
+  (0.1ms) begin transaction
38053
+  (0.0ms) commit transaction
38054
+  (0.0ms) begin transaction
38055
+  (0.0ms) rollback transaction
38056
+ -----------------------------------------------------------------------------------------------------
38057
+ InstallGeneratorTest: test_: InstallGenerator should create the maestrano/account/groups_controller.
38058
+ -----------------------------------------------------------------------------------------------------
38059
+  (0.0ms) begin transaction
38060
+  (0.0ms) commit transaction
38061
+  (0.0ms) begin transaction
38062
+  (0.0ms) rollback transaction
38063
+ ------------------------------------------------------------------------------------------------
38064
+ InstallGeneratorTest: test_: InstallGenerator should create the maestrano/auth/saml_controller.
38065
+ ------------------------------------------------------------------------------------------------
38066
+  (0.0ms) begin transaction
38067
+  (0.0ms) commit transaction
38068
+  (0.0ms) begin transaction
38069
+  (0.1ms) rollback transaction
38070
+ --------------------------------------------------------------------------------------------------------
38071
+ UserGeneratorTest: test_: UserGenerator should call the active_record migration generator successfully.
38072
+ --------------------------------------------------------------------------------------------------------
38073
+  (0.0ms) begin transaction
38074
+  (0.0ms) commit transaction
38075
+  (0.0ms) begin transaction
38076
+  (0.0ms) rollback transaction
38077
+ --------------------------------------------------------------------------------------------------
38078
+ UserGeneratorTest: test_: UserGenerator should call the mongoid migration generator successfully.
38079
+ --------------------------------------------------------------------------------------------------
38080
+  (0.0ms) begin transaction
38081
+  (0.0ms) commit transaction
38082
+  (0.0ms) begin transaction
38083
+  (0.1ms) rollback transaction
38084
+ --------------------------------------------------------------------------------------------------------------------------------------
38085
+ MaestranoUserViaTest: test_: class methods find_or_create_for_maestrano class method should create a monster using the mapping block.
38086
+ --------------------------------------------------------------------------------------------------------------------------------------
38087
+  (0.0ms) begin transaction
38088
+  (0.0ms) commit transaction
38089
+  (0.0ms) begin transaction
38090
+ MnoMonster Load (0.1ms) SELECT "mno_monsters".* FROM "mno_monsters" WHERE "mno_monsters"."provider" = ? AND "mno_monsters"."uid" = ? AND "mno_monsters"."tenant" = ? ORDER BY "mno_monsters"."id" ASC LIMIT 1 [["provider", "maestrano"], ["uid", "usr-2"], ["tenant", "default"]]
38091
+  (0.0ms) SAVEPOINT active_record_1
38092
+ SQL (0.1ms) INSERT INTO "mno_monsters" ("first_name", "last_name", "email", "provider", "uid", "tenant", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["first_name", "Mon"], ["last_name", "Ster"], ["email", "monster@monst.com"], ["provider", "maestrano"], ["uid", "usr-2"], ["tenant", "default"], ["created_at", "2016-09-20 04:45:20.759549"], ["updated_at", "2016-09-20 04:45:20.759549"]]
38093
+  (0.0ms) RELEASE SAVEPOINT active_record_1
38094
+  (0.1ms) rollback transaction
38095
+ --------------------------------------------------------------------------------------------------------------------------------------------------------
38096
+ MaestranoUserViaTest: test_: class methods find_or_create_for_maestrano class method should not return a MnoMonster from another provider if it exists.
38097
+ --------------------------------------------------------------------------------------------------------------------------------------------------------
38098
+  (0.0ms) begin transaction
38099
+  (0.0ms) commit transaction
38100
+  (0.0ms) begin transaction
38101
+  (0.0ms) SAVEPOINT active_record_1
38102
+ SQL (0.1ms) INSERT INTO "mno_monsters" ("first_name", "last_name", "email", "provider", "uid", "tenant", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["first_name", "John"], ["last_name", "Jack"], ["email", "monster@co.com"], ["provider", "someoneelse"], ["uid", "usr-1"], ["tenant", "default"], ["created_at", "2016-09-20 04:45:20.761328"], ["updated_at", "2016-09-20 04:45:20.761328"]]
38103
+  (0.0ms) RELEASE SAVEPOINT active_record_1
38104
+ MnoMonster Load (0.0ms) SELECT "mno_monsters".* FROM "mno_monsters" WHERE "mno_monsters"."provider" = ? AND "mno_monsters"."uid" = ? AND "mno_monsters"."tenant" = ? ORDER BY "mno_monsters"."id" ASC LIMIT 1 [["provider", "maestrano"], ["uid", "usr-1"], ["tenant", "default"]]
38105
+  (0.0ms) SAVEPOINT active_record_1
38106
+ SQL (0.1ms) INSERT INTO "mno_monsters" ("provider", "uid", "tenant", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["provider", "maestrano"], ["uid", "usr-1"], ["tenant", "default"], ["created_at", "2016-09-20 04:45:20.762599"], ["updated_at", "2016-09-20 04:45:20.762599"]]
38107
+  (0.0ms) RELEASE SAVEPOINT active_record_1
38108
+  (0.1ms) rollback transaction
38109
+ --------------------------------------------------------------------------------------------------------------------------------
38110
+ MaestranoUserViaTest: test_: class methods find_or_create_for_maestrano class method should return the MnoMonster if it exists.
38111
+ --------------------------------------------------------------------------------------------------------------------------------
38112
+  (0.0ms) begin transaction
38113
+  (0.0ms) commit transaction
38114
+  (0.0ms) begin transaction
38115
+  (0.0ms) SAVEPOINT active_record_1
38116
+ SQL (0.1ms) INSERT INTO "mno_monsters" ("first_name", "last_name", "email", "provider", "uid", "tenant", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["first_name", "John"], ["last_name", "Jack"], ["email", "monster@co.com"], ["provider", "maestrano"], ["uid", "usr-1"], ["tenant", "default"], ["created_at", "2016-09-20 04:45:20.764020"], ["updated_at", "2016-09-20 04:45:20.764020"]]
38117
+  (0.0ms) RELEASE SAVEPOINT active_record_1
38118
+ MnoMonster Load (0.0ms) SELECT "mno_monsters".* FROM "mno_monsters" WHERE "mno_monsters"."provider" = ? AND "mno_monsters"."uid" = ? AND "mno_monsters"."tenant" = ? ORDER BY "mno_monsters"."id" ASC LIMIT 1 [["provider", "maestrano"], ["uid", "usr-1"], ["tenant", "default"]]
38119
+  (0.1ms) rollback transaction
38120
+ ---------------------------------------------------------------------------------------------------
38121
+ MaestranoUserViaTest: test_: class methods maestrano_*_via should have the right field definition.
38122
+ ---------------------------------------------------------------------------------------------------
38123
+  (0.0ms) begin transaction
38124
+  (0.0ms) commit transaction
38125
+  (0.0ms) begin transaction
38126
+  (0.0ms) rollback transaction
38127
+ ------------------------------------------------------------------------------------------------------------
38128
+ MaestranoUserViaTest: test_: instance methods maestrano? should return false if provider is something else.
38129
+ ------------------------------------------------------------------------------------------------------------
38130
+  (0.0ms) begin transaction
38131
+  (0.0ms) commit transaction
38132
+  (0.0ms) begin transaction
38133
+  (0.0ms) rollback transaction
38134
+ ----------------------------------------------------------------------------------------------
38135
+ MaestranoUserViaTest: test_: instance methods maestrano? should return false if uid is blank.
38136
+ ----------------------------------------------------------------------------------------------
38137
+  (0.0ms) begin transaction
38138
+  (0.0ms) commit transaction
38139
+  (0.0ms) begin transaction
38140
+  (0.0ms) rollback transaction
38141
+ -----------------------------------------------------------------------------------------------------------------------
38142
+ MaestranoUserViaTest: test_: instance methods maestrano? should return true if provider is maestrano and uid not null.
38143
+ -----------------------------------------------------------------------------------------------------------------------
38144
+  (0.0ms) begin transaction
38145
+  (0.0ms) commit transaction
38146
+  (0.1ms) begin transaction
38147
+  (0.0ms) rollback transaction
38148
+ ----------------------------------------------------------------------------------------------------------
38149
+ GroupGeneratorTest: test_: GroupGenerator should call the active_record migration generator successfully.
38150
+ ----------------------------------------------------------------------------------------------------------
38151
+  (0.0ms) begin transaction
38152
+  (0.0ms) commit transaction
38153
+  (0.0ms) begin transaction
38154
+  (0.0ms) rollback transaction
38155
+ ----------------------------------------------------------------------------------------------------
38156
+ GroupGeneratorTest: test_: GroupGenerator should call the mongoid migration generator successfully.
38157
+ ----------------------------------------------------------------------------------------------------
38158
+  (0.0ms) begin transaction
38159
+  (0.0ms) commit transaction
38160
+  (0.0ms) begin transaction
38161
+  (0.1ms) rollback transaction
38162
+ ---------------------------------------------------------------------------------------------------------------------
38163
+ GenericControllerTest: test_: with a maestrano session should be successful if the maestrano session is still valid.
38164
+ ---------------------------------------------------------------------------------------------------------------------
38165
+  (0.1ms) begin transaction
38166
+  (0.0ms) commit transaction
38167
+  (0.0ms) begin transaction
38168
+ Processing by PagesController#home as HTML
38169
+ Rendered pages/home.html.erb within layouts/application (0.8ms)
38170
+ Completed 200 OK in 102ms (Views: 101.8ms | ActiveRecord: 0.0ms)
38171
+  (0.1ms) rollback transaction
38172
+ --------------------------------------------------------------------------------------------------------------------
38173
+ GenericControllerTest: test_: with a maestrano session should initialize redirect to SSO initialization if invalid.
38174
+ --------------------------------------------------------------------------------------------------------------------
38175
+  (0.0ms) begin transaction
38176
+  (0.0ms) commit transaction
38177
+  (0.0ms) begin transaction
38178
+ Processing by PagesController#home as HTML
38179
+ Redirected to http://localhost::3000/maestrano/auth/saml/init
38180
+ Filter chain halted as :verify_maestrano_session rendered or redirected
38181
+ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
38182
+  (0.0ms) rollback transaction
38183
+ -----------------------------------------------------------------------------------------------------------
38184
+ GenericControllerTest: test_: with a maestrano session should not redirect to SSO init if sso is disabled.
38185
+ -----------------------------------------------------------------------------------------------------------
38186
+  (0.0ms) begin transaction
38187
+  (0.0ms) commit transaction
38188
+  (0.0ms) begin transaction
38189
+ Processing by PagesController#home as HTML
38190
+ Rendered pages/home.html.erb within layouts/application (0.0ms)
38191
+ Completed 200 OK in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)
38192
+  (0.1ms) rollback transaction
38193
+ ------------------------------------------------------------------------------
38194
+ GenericControllerTest: test_: with no maestrano session should be successful.
38195
+ ------------------------------------------------------------------------------
38196
+  (0.0ms) begin transaction
38197
+  (0.0ms) commit transaction
38198
+  (0.0ms) begin transaction
38199
+ Processing by PagesController#home as HTML
38200
+ Rendered pages/home.html.erb within layouts/application (0.0ms)
38201
+ Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)
38202
+  (0.0ms) rollback transaction
38203
+ ----------------------------------------------------------------------------------------------
38204
+ SamlBaseControllerTest: test_: consume phase error should redirect to maestrano on any error.
38205
+ ----------------------------------------------------------------------------------------------
38206
+  (0.0ms) begin transaction
38207
+  (0.0ms) commit transaction
38208
+  (0.0ms) begin transaction
38209
+ Processing by Maestrano::Auth::SamlController#consume as HTML
38210
+ Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"}
38211
+ Cannot validate SAML response: Bla
38212
+ Trace: ["/home/bruno/.rvm/gems/ruby-2.3.1/gems/mocha-1.1.0/lib/mocha/exception_raiser.rb:12:in `evaluate'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/mocha-1.1.0/lib/mocha/return_values.rb:20:in `next'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/mocha-1.1.0/lib/mocha/expectation.rb:569:in `invoke'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/mocha-1.1.0/lib/mocha/mock.rb:296:in `method_missing'", "/home/bruno/Workspace/maestrano-rails/app/controllers/maestrano/rails/saml_base_controller.rb:35:in `process_saml_response'", "/home/bruno/Workspace/maestrano-rails/app/controllers/maestrano/rails/saml_base_controller.rb:18:in `saml_response_transaction'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:432:in `block in make_lambda'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:291:in `block in halting_and_conditional'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:497:in `block in around'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:505:in `call'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:92:in `__run_callbacks__'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:778:in `_run_process_action_callbacks'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:81:in `run_callbacks'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionpack-4.2.7.1/lib/abstract_controller/callbacks.rb:19:in `process_action'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionpack-4.2.7.1/lib/action_controller/metal/rescue.rb:29:in `process_action'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionpack-4.2.7.1/lib/action_controller/metal/instrumentation.rb:32:in `block in process_action'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-4.2.7.1/lib/active_support/notifications.rb:164:in `block in instrument'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-4.2.7.1/lib/active_support/notifications/instrumenter.rb:20:in `instrument'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-4.2.7.1/lib/active_support/notifications.rb:164:in `instrument'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionpack-4.2.7.1/lib/action_controller/metal/instrumentation.rb:30:in `process_action'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionpack-4.2.7.1/lib/action_controller/metal/params_wrapper.rb:250:in `process_action'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activerecord-4.2.7.1/lib/active_record/railties/controller_runtime.rb:18:in `process_action'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionpack-4.2.7.1/lib/abstract_controller/base.rb:137:in `process'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionview-4.2.7.1/lib/action_view/rendering.rb:30:in `process'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionpack-4.2.7.1/lib/action_controller/test_case.rb:639:in `process'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionpack-4.2.7.1/lib/action_controller/test_case.rb:67:in `process'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionpack-4.2.7.1/lib/action_controller/test_case.rb:520:in `post'", "/home/bruno/Workspace/maestrano-rails/test/controllers/saml_controller_test.rb:117:in `block (3 levels) in <class:SamlBaseControllerTest>'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/shoulda-context-1.2.1/lib/shoulda/context/context.rb:413:in `instance_exec'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/shoulda-context-1.2.1/lib/shoulda/context/context.rb:413:in `block in create_test_from_should_hash'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest/test.rb:107:in `block (3 levels) in run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest/test.rb:204:in `capture_exceptions'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest/test.rb:104:in `block (2 levels) in run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest/test.rb:255:in `time_it'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest/test.rb:103:in `block in run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:348:in `on_signal'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest/test.rb:275:in `with_info_handler'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest/test.rb:102:in `run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:799:in `run_one_method'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:322:in `run_one_method'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:310:in `block (2 levels) in run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:309:in `each'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:309:in `block in run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:348:in `on_signal'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:335:in `with_info_handler'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:308:in `run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:158:in `block in __run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:158:in `map'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:158:in `__run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:135:in `run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:62:in `block in autorun'"]
38213
+ Redirected to http://api-sandbox.maestrano.io/app_access_unauthorized?err=internal
38214
+ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
38215
+  (0.0ms) rollback transaction
38216
+ --------------------------------------------------------------------------------------------------------------------
38217
+ SamlBaseControllerTest: test_: consume phase should reset the maestrano session successfully if one already exists.
38218
+ --------------------------------------------------------------------------------------------------------------------
38219
+  (0.0ms) begin transaction
38220
+  (0.0ms) commit transaction
38221
+  (0.1ms) begin transaction
38222
+ Processing by Maestrano::Auth::SamlController#consume as HTML
38223
+ Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"}
38224
+ Redirected to http://test.host/
38225
+ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
38226
+  (0.0ms) rollback transaction
38227
+ ---------------------------------------------------------------------------------
38228
+ SamlBaseControllerTest: test_: consume phase should set a saml_request in scope.
38229
+ ---------------------------------------------------------------------------------
38230
+  (0.0ms) begin transaction
38231
+  (0.0ms) commit transaction
38232
+  (0.0ms) begin transaction
38233
+ Processing by Maestrano::Auth::SamlController#consume as HTML
38234
+ Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"}
38235
+ Redirected to http://test.host/
38236
+ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
38237
+  (0.0ms) rollback transaction
38238
+ --------------------------------------------------------------------------------------
38239
+ SamlBaseControllerTest: test_: consume phase should set the group_auth_hash in scope.
38240
+ --------------------------------------------------------------------------------------
38241
+  (0.0ms) begin transaction
38242
+  (0.0ms) commit transaction
38243
+  (0.0ms) begin transaction
38244
+ Processing by Maestrano::Auth::SamlController#consume as HTML
38245
+ Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"}
38246
+ Redirected to http://test.host/
38247
+ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
38248
+  (0.0ms) rollback transaction
38249
+ -------------------------------------------------------------------------------
38250
+ SamlBaseControllerTest: test_: consume phase should set the maestrano session.
38251
+ -------------------------------------------------------------------------------
38252
+  (0.0ms) begin transaction
38253
+  (0.0ms) commit transaction
38254
+  (0.0ms) begin transaction
38255
+ Processing by Maestrano::Auth::SamlController#consume as HTML
38256
+ Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"}
38257
+ Redirected to http://test.host/
38258
+ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
38259
+  (0.0ms) rollback transaction
38260
+ -------------------------------------------------------------------------------------
38261
+ SamlBaseControllerTest: test_: consume phase should set the user_auth_hash in scope.
38262
+ -------------------------------------------------------------------------------------
38263
+  (0.0ms) begin transaction
38264
+  (0.0ms) commit transaction
38265
+  (0.0ms) begin transaction
38266
+ Processing by Maestrano::Auth::SamlController#consume as HTML
38267
+ Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"}
38268
+ Redirected to http://test.host/
38269
+ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
38270
+  (0.0ms) rollback transaction
38271
+ ------------------------------------------------------------------------------------------
38272
+ SamlBaseControllerTest: test_: consume phase should set the user_group_rel_hash in scope.
38273
+ ------------------------------------------------------------------------------------------
38274
+  (0.1ms) begin transaction
38275
+  (0.0ms) commit transaction
38276
+  (0.0ms) begin transaction
38277
+ Processing by Maestrano::Auth::SamlController#consume as HTML
38278
+ Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"}
38279
+ Redirected to http://test.host/
38280
+ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
38281
+  (0.0ms) rollback transaction
38282
+ ---------------------------------------------------------------------------------------------------------------------------
38283
+ SamlBaseControllerTest: test_: init phase should create a saml request successfully if a maestrano session is already set.
38284
+ ---------------------------------------------------------------------------------------------------------------------------
38285
+  (0.1ms) begin transaction
38286
+  (0.0ms) commit transaction
38287
+  (0.0ms) begin transaction
38288
+ Processing by Maestrano::Auth::SamlController#init as HTML
38289
+ Parameters: {"a_param"=>"value"}
38290
+ Redirected to http://idpprovider.com?r=request
38291
+ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
38292
+  (0.1ms) rollback transaction
38293
+ -----------------------------------------------------------------------------------------------------------------------
38294
+ SamlBaseControllerTest: test_: init phase should create a saml request using params and session and redirect the user.
38295
+ -----------------------------------------------------------------------------------------------------------------------
38296
+  (0.0ms) begin transaction
38297
+  (0.0ms) commit transaction
38298
+  (0.0ms) begin transaction
38299
+ Processing by Maestrano::Auth::SamlController#init as HTML
38300
+ Parameters: {"a_param"=>"value"}
38301
+ Redirected to http://idpprovider.com?r=request
38302
+ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
38303
+  (0.1ms) rollback transaction
38304
+ ------------------------------
38305
+ MaestranoRailsTest: test_truth
38306
+ ------------------------------
38307
+  (0.1ms) begin transaction
38308
+  (0.0ms) commit transaction
38309
+  (0.1ms) begin transaction
38310
+  (0.0ms) rollback transaction
38311
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
38312
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
38313
+ ---------------------------------------------------------------------------------------------------------------------
38314
+ GenericControllerTest: test_: with a maestrano session should be successful if the maestrano session is still valid.
38315
+ ---------------------------------------------------------------------------------------------------------------------
38316
+  (0.1ms) begin transaction
38317
+  (0.0ms) commit transaction
38318
+  (0.0ms) begin transaction
38319
+ Processing by PagesController#home as HTML
38320
+ Rendered pages/home.html.erb within layouts/application (0.7ms)
38321
+ Completed 200 OK in 101ms (Views: 100.9ms | ActiveRecord: 0.0ms)
38322
+  (0.1ms) rollback transaction
38323
+ --------------------------------------------------------------------------------------------------------------------
38324
+ GenericControllerTest: test_: with a maestrano session should initialize redirect to SSO initialization if invalid.
38325
+ --------------------------------------------------------------------------------------------------------------------
38326
+  (0.0ms) begin transaction
38327
+  (0.0ms) commit transaction
38328
+  (0.0ms) begin transaction
38329
+ Processing by PagesController#home as HTML
38330
+ Rendered pages/home.html.erb within layouts/application (0.0ms)
38331
+ Completed 200 OK in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)
38332
+  (0.0ms) rollback transaction
38333
+ -----------------------------------------------------------------------------------------------------------
38334
+ GenericControllerTest: test_: with a maestrano session should not redirect to SSO init if sso is disabled.
38335
+ -----------------------------------------------------------------------------------------------------------
38336
+  (0.0ms) begin transaction
38337
+  (0.0ms) commit transaction
38338
+  (0.0ms) begin transaction
38339
+ Processing by PagesController#home as HTML
38340
+ Rendered pages/home.html.erb within layouts/application (0.0ms)
38341
+ Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)
38342
+  (0.0ms) rollback transaction
38343
+ ------------------------------------------------------------------------------
38344
+ GenericControllerTest: test_: with no maestrano session should be successful.
38345
+ ------------------------------------------------------------------------------
38346
+  (0.0ms) begin transaction
38347
+  (0.0ms) commit transaction
38348
+  (0.0ms) begin transaction
38349
+ Processing by PagesController#home as HTML
38350
+ Rendered pages/home.html.erb within layouts/application (0.0ms)
38351
+ Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms)
38352
+  (0.0ms) rollback transaction
38353
+ -------------------------------------------------------------------------------------------
38354
+ ActiveRecordGroupGeneratorTest: test_: namespaced model should create the right migration.
38355
+ -------------------------------------------------------------------------------------------
38356
+  (0.1ms) begin transaction
38357
+  (0.0ms) commit transaction
38358
+  (0.0ms) begin transaction
38359
+  (0.0ms) rollback transaction
38360
+ ---------------------------------------------------------------------------------------
38361
+ ActiveRecordGroupGeneratorTest: test_: namespaced model should edit the model content.
38362
+ ---------------------------------------------------------------------------------------
38363
+  (0.0ms) begin transaction
38364
+  (0.0ms) commit transaction
38365
+  (0.0ms) begin transaction
38366
+  (0.0ms) rollback transaction
38367
+ ---------------------------------------------------------------------------------------
38368
+ ActiveRecordGroupGeneratorTest: test_: normal model should create the right migration.
38369
+ ---------------------------------------------------------------------------------------
38370
+  (0.0ms) begin transaction
38371
+  (0.0ms) commit transaction
38372
+  (0.0ms) begin transaction
38373
+  (0.0ms) rollback transaction
38374
+ -----------------------------------------------------------------------------------
38375
+ ActiveRecordGroupGeneratorTest: test_: normal model should edit the model content.
38376
+ -----------------------------------------------------------------------------------
38377
+  (0.0ms) begin transaction
38378
+  (0.0ms) commit transaction
38379
+  (0.0ms) begin transaction
38380
+  (0.0ms) rollback transaction
38381
+ ---------------------------------------------------------------------------------------------------------------------------
38382
+ ActiveRecordGroupGeneratorTest: test_: normal model should include parameters if rails 3 and strong_parameter not present.
38383
+ ---------------------------------------------------------------------------------------------------------------------------
38384
+  (0.0ms) begin transaction
38385
+  (0.0ms) commit transaction
38386
+  (0.0ms) begin transaction
38387
+  (0.0ms) rollback transaction
38388
+ ---------------------------------------------------------------------------------------------------------------------------
38389
+ ActiveRecordGroupGeneratorTest: test_: normal model should not include parameters if rails 3 and strong_parameter present.
38390
+ ---------------------------------------------------------------------------------------------------------------------------
38391
+  (0.0ms) begin transaction
38392
+  (0.0ms) commit transaction
38393
+  (0.0ms) begin transaction
38394
+  (0.0ms) rollback transaction
38395
+ ----------------------------------------------------------------------------------------------
38396
+ ActiveRecordGroupGeneratorTest: test_: normal model should not include parameters in rails 4.
38397
+ ----------------------------------------------------------------------------------------------
38398
+  (0.0ms) begin transaction
38399
+  (0.0ms) commit transaction
38400
+  (0.0ms) begin transaction
38401
+  (0.1ms) rollback transaction
38402
+ --------------------------------------------------------------------------------------------------------
38403
+ UserGeneratorTest: test_: UserGenerator should call the active_record migration generator successfully.
38404
+ --------------------------------------------------------------------------------------------------------
38405
+  (0.1ms) begin transaction
38406
+  (0.0ms) commit transaction
38407
+  (0.0ms) begin transaction
38408
+  (0.1ms) rollback transaction
38409
+ --------------------------------------------------------------------------------------------------
38410
+ UserGeneratorTest: test_: UserGenerator should call the mongoid migration generator successfully.
38411
+ --------------------------------------------------------------------------------------------------
38412
+  (0.0ms) begin transaction
38413
+  (0.0ms) commit transaction
38414
+  (0.0ms) begin transaction
38415
+  (0.0ms) rollback transaction
38416
+ -----------------------------------------------------------------
38417
+ GroupsControllerTest: test_: authenticated should be successful.
38418
+ -----------------------------------------------------------------
38419
+  (0.0ms) begin transaction
38420
+  (0.0ms) commit transaction
38421
+  (0.0ms) begin transaction
38422
+ Processing by Maestrano::Account::GroupsController#destroy as HTML
38423
+ Parameters: {"id"=>"cld-1"}
38424
+ Rendered text template (0.0ms)
38425
+ Completed 200 OK in 2ms (Views: 2.1ms | ActiveRecord: 0.0ms)
38426
+  (0.0ms) rollback transaction
38427
+ -----------------------------------------------------------------
38428
+ GroupsControllerTest: test_: unauthenticated should deny access.
38429
+ -----------------------------------------------------------------
38430
+  (0.0ms) begin transaction
38431
+  (0.0ms) commit transaction
38432
+  (0.0ms) begin transaction
38433
+ Processing by Maestrano::Account::GroupsController#destroy as HTML
38434
+ Parameters: {"id"=>"cld-1"}
38435
+ Filter chain halted as :authenticate_maestrano! rendered or redirected
38436
+ Completed 401 Unauthorized in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
38437
+  (0.0ms) rollback transaction
38438
+ --------------------------------------------------------------------------------------------------------------------------------------
38439
+ MaestranoUserViaTest: test_: class methods find_or_create_for_maestrano class method should create a monster using the mapping block.
38440
+ --------------------------------------------------------------------------------------------------------------------------------------
38441
+  (0.0ms) begin transaction
38442
+  (0.0ms) commit transaction
38443
+  (0.0ms) begin transaction
38444
+ MnoMonster Load (0.1ms) SELECT "mno_monsters".* FROM "mno_monsters" WHERE "mno_monsters"."provider" = ? AND "mno_monsters"."uid" = ? AND "mno_monsters"."tenant" = ? ORDER BY "mno_monsters"."id" ASC LIMIT 1 [["provider", "maestrano"], ["uid", "usr-2"], ["tenant", "default"]]
38445
+  (0.1ms) SAVEPOINT active_record_1
38446
+ SQL (0.2ms) INSERT INTO "mno_monsters" ("first_name", "last_name", "email", "provider", "uid", "tenant", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["first_name", "Mon"], ["last_name", "Ster"], ["email", "monster@monst.com"], ["provider", "maestrano"], ["uid", "usr-2"], ["tenant", "default"], ["created_at", "2016-09-20 04:47:22.261747"], ["updated_at", "2016-09-20 04:47:22.261747"]]
38447
+  (0.1ms) RELEASE SAVEPOINT active_record_1
38448
+  (0.1ms) rollback transaction
38449
+ --------------------------------------------------------------------------------------------------------------------------------------------------------
38450
+ MaestranoUserViaTest: test_: class methods find_or_create_for_maestrano class method should not return a MnoMonster from another provider if it exists.
38451
+ --------------------------------------------------------------------------------------------------------------------------------------------------------
38452
+  (0.0ms) begin transaction
38453
+  (0.0ms) commit transaction
38454
+  (0.0ms) begin transaction
38455
+  (0.0ms) SAVEPOINT active_record_1
38456
+ SQL (0.1ms) INSERT INTO "mno_monsters" ("first_name", "last_name", "email", "provider", "uid", "tenant", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["first_name", "John"], ["last_name", "Jack"], ["email", "monster@co.com"], ["provider", "someoneelse"], ["uid", "usr-1"], ["tenant", "default"], ["created_at", "2016-09-20 04:47:22.265474"], ["updated_at", "2016-09-20 04:47:22.265474"]]
38457
+  (0.0ms) RELEASE SAVEPOINT active_record_1
38458
+ MnoMonster Load (0.0ms) SELECT "mno_monsters".* FROM "mno_monsters" WHERE "mno_monsters"."provider" = ? AND "mno_monsters"."uid" = ? AND "mno_monsters"."tenant" = ? ORDER BY "mno_monsters"."id" ASC LIMIT 1 [["provider", "maestrano"], ["uid", "usr-1"], ["tenant", "default"]]
38459
+  (0.0ms) SAVEPOINT active_record_1
38460
+ SQL (0.1ms) INSERT INTO "mno_monsters" ("provider", "uid", "tenant", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["provider", "maestrano"], ["uid", "usr-1"], ["tenant", "default"], ["created_at", "2016-09-20 04:47:22.267121"], ["updated_at", "2016-09-20 04:47:22.267121"]]
38461
+  (0.0ms) RELEASE SAVEPOINT active_record_1
38462
+  (0.1ms) rollback transaction
38463
+ --------------------------------------------------------------------------------------------------------------------------------
38464
+ MaestranoUserViaTest: test_: class methods find_or_create_for_maestrano class method should return the MnoMonster if it exists.
38465
+ --------------------------------------------------------------------------------------------------------------------------------
38466
+  (0.0ms) begin transaction
38467
+  (0.0ms) commit transaction
38468
+  (0.0ms) begin transaction
38469
+  (0.0ms) SAVEPOINT active_record_1
38470
+ SQL (0.1ms) INSERT INTO "mno_monsters" ("first_name", "last_name", "email", "provider", "uid", "tenant", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["first_name", "John"], ["last_name", "Jack"], ["email", "monster@co.com"], ["provider", "maestrano"], ["uid", "usr-1"], ["tenant", "default"], ["created_at", "2016-09-20 04:47:22.268519"], ["updated_at", "2016-09-20 04:47:22.268519"]]
38471
+  (0.0ms) RELEASE SAVEPOINT active_record_1
38472
+ MnoMonster Load (0.0ms) SELECT "mno_monsters".* FROM "mno_monsters" WHERE "mno_monsters"."provider" = ? AND "mno_monsters"."uid" = ? AND "mno_monsters"."tenant" = ? ORDER BY "mno_monsters"."id" ASC LIMIT 1 [["provider", "maestrano"], ["uid", "usr-1"], ["tenant", "default"]]
38473
+  (0.1ms) rollback transaction
38474
+ ---------------------------------------------------------------------------------------------------
38475
+ MaestranoUserViaTest: test_: class methods maestrano_*_via should have the right field definition.
38476
+ ---------------------------------------------------------------------------------------------------
38477
+  (0.0ms) begin transaction
38478
+  (0.0ms) commit transaction
38479
+  (0.0ms) begin transaction
38480
+  (0.0ms) rollback transaction
38481
+ ------------------------------------------------------------------------------------------------------------
38482
+ MaestranoUserViaTest: test_: instance methods maestrano? should return false if provider is something else.
38483
+ ------------------------------------------------------------------------------------------------------------
38484
+  (0.0ms) begin transaction
38485
+  (0.0ms) commit transaction
38486
+  (0.0ms) begin transaction
38487
+  (0.0ms) rollback transaction
38488
+ ----------------------------------------------------------------------------------------------
38489
+ MaestranoUserViaTest: test_: instance methods maestrano? should return false if uid is blank.
38490
+ ----------------------------------------------------------------------------------------------
38491
+  (0.0ms) begin transaction
38492
+  (0.0ms) commit transaction
38493
+  (0.0ms) begin transaction
38494
+  (0.0ms) rollback transaction
38495
+ -----------------------------------------------------------------------------------------------------------------------
38496
+ MaestranoUserViaTest: test_: instance methods maestrano? should return true if provider is maestrano and uid not null.
38497
+ -----------------------------------------------------------------------------------------------------------------------
38498
+  (0.0ms) begin transaction
38499
+  (0.0ms) commit transaction
38500
+  (0.0ms) begin transaction
38501
+  (0.0ms) rollback transaction
38502
+ ------------------------------
38503
+ MaestranoRailsTest: test_truth
38504
+ ------------------------------
38505
+  (0.0ms) begin transaction
38506
+  (0.0ms) commit transaction
38507
+  (0.0ms) begin transaction
38508
+  (0.0ms) rollback transaction
38509
+ ---------------------------------------------------------------------------------------------------------------------------------------
38510
+ MaestranoGroupViaTest: test_: class methods find_or_create_for_maestrano class method should create a monster using the mapping block.
38511
+ ---------------------------------------------------------------------------------------------------------------------------------------
38512
+  (0.0ms) begin transaction
38513
+  (0.0ms) commit transaction
38514
+  (0.0ms) begin transaction
38515
+ MnoCrew Load (0.1ms) SELECT "mno_crews".* FROM "mno_crews" WHERE "mno_crews"."provider" = ? AND "mno_crews"."uid" = ? AND "mno_crews"."tenant" = ? ORDER BY "mno_crews"."id" ASC LIMIT 1 [["provider", "maestrano"], ["uid", "usr-2"], ["tenant", "default"]]
38516
+  (0.0ms) SAVEPOINT active_record_1
38517
+ SQL (0.1ms) INSERT INTO "mno_crews" ("name", "provider", "uid", "tenant", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["name", "Monster Co"], ["provider", "maestrano"], ["uid", "usr-2"], ["tenant", "default"], ["created_at", "2016-09-20 04:47:22.278219"], ["updated_at", "2016-09-20 04:47:22.278219"]]
38518
+  (0.0ms) RELEASE SAVEPOINT active_record_1
38519
+  (0.1ms) rollback transaction
38520
+ ------------------------------------------------------------------------------------------------------------------------------------------------------
38521
+ MaestranoGroupViaTest: test_: class methods find_or_create_for_maestrano class method should not return a MnoCrew from another provider if it exists.
38522
+ ------------------------------------------------------------------------------------------------------------------------------------------------------
38523
+  (0.0ms) begin transaction
38524
+  (0.0ms) commit transaction
38525
+  (0.0ms) begin transaction
38526
+  (0.0ms) SAVEPOINT active_record_1
38527
+ SQL (0.1ms) INSERT INTO "mno_crews" ("name", "provider", "uid", "tenant", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["name", "SomeOtherCrew"], ["provider", "someoneelse"], ["uid", "usr-1"], ["tenant", "default"], ["created_at", "2016-09-20 04:47:22.279946"], ["updated_at", "2016-09-20 04:47:22.279946"]]
38528
+  (0.0ms) RELEASE SAVEPOINT active_record_1
38529
+ MnoCrew Load (0.0ms) SELECT "mno_crews".* FROM "mno_crews" WHERE "mno_crews"."provider" = ? AND "mno_crews"."uid" = ? AND "mno_crews"."tenant" = ? ORDER BY "mno_crews"."id" ASC LIMIT 1 [["provider", "maestrano"], ["uid", "cld-1"], ["tenant", "default"]]
38530
+  (0.0ms) SAVEPOINT active_record_1
38531
+ SQL (0.1ms) INSERT INTO "mno_crews" ("name", "provider", "uid", "tenant", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["name", "Your Group"], ["provider", "maestrano"], ["uid", "cld-1"], ["tenant", "default"], ["created_at", "2016-09-20 04:47:22.281219"], ["updated_at", "2016-09-20 04:47:22.281219"]]
38532
+  (0.0ms) RELEASE SAVEPOINT active_record_1
38533
+  (0.1ms) rollback transaction
38534
+ ------------------------------------------------------------------------------------------------------------------------------
38535
+ MaestranoGroupViaTest: test_: class methods find_or_create_for_maestrano class method should return the MnoCrew if it exists.
38536
+ ------------------------------------------------------------------------------------------------------------------------------
38537
+  (0.0ms) begin transaction
38538
+  (0.0ms) commit transaction
38539
+  (0.0ms) begin transaction
38540
+  (0.0ms) SAVEPOINT active_record_1
38541
+ SQL (0.1ms) INSERT INTO "mno_crews" ("name", "provider", "uid", "tenant", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["name", "SomeCrew"], ["provider", "maestrano"], ["uid", "cld-1"], ["tenant", "default"], ["created_at", "2016-09-20 04:47:22.282578"], ["updated_at", "2016-09-20 04:47:22.282578"]]
38542
+  (0.0ms) RELEASE SAVEPOINT active_record_1
38543
+ MnoCrew Load (0.0ms) SELECT "mno_crews".* FROM "mno_crews" WHERE "mno_crews"."provider" = ? AND "mno_crews"."uid" = ? AND "mno_crews"."tenant" = ? ORDER BY "mno_crews"."id" ASC LIMIT 1 [["provider", "maestrano"], ["uid", "cld-1"], ["tenant", "default"]]
38544
+  (0.1ms) rollback transaction
38545
+ ----------------------------------------------------------------------------------------------------
38546
+ MaestranoGroupViaTest: test_: class methods maestrano_*_via should have the right field definition.
38547
+ ----------------------------------------------------------------------------------------------------
38548
+  (0.0ms) begin transaction
38549
+  (0.0ms) commit transaction
38550
+  (0.0ms) begin transaction
38551
+  (0.0ms) rollback transaction
38552
+ -------------------------------------------------------------------------------------------------------------
38553
+ MaestranoGroupViaTest: test_: instance methods maestrano? should return false if provider is something else.
38554
+ -------------------------------------------------------------------------------------------------------------
38555
+  (0.0ms) begin transaction
38556
+  (0.0ms) commit transaction
38557
+  (0.0ms) begin transaction
38558
+  (0.0ms) rollback transaction
38559
+ -----------------------------------------------------------------------------------------------
38560
+ MaestranoGroupViaTest: test_: instance methods maestrano? should return false if uid is blank.
38561
+ -----------------------------------------------------------------------------------------------
38562
+  (0.0ms) begin transaction
38563
+  (0.0ms) commit transaction
38564
+  (0.0ms) begin transaction
38565
+  (0.0ms) rollback transaction
38566
+ ------------------------------------------------------------------------------------------------------------------------
38567
+ MaestranoGroupViaTest: test_: instance methods maestrano? should return true if provider is maestrano and uid not null.
38568
+ ------------------------------------------------------------------------------------------------------------------------
38569
+  (0.0ms) begin transaction
38570
+  (0.0ms) commit transaction
38571
+  (0.0ms) begin transaction
38572
+  (0.0ms) rollback transaction
38573
+ ------------------------------------------------------------------------------------------
38574
+ ActiveRecordUserGeneratorTest: test_: namespaced model should create the right migration.
38575
+ ------------------------------------------------------------------------------------------
38576
+  (0.0ms) begin transaction
38577
+  (0.0ms) commit transaction
38578
+  (0.0ms) begin transaction
38579
+  (0.0ms) rollback transaction
38580
+ --------------------------------------------------------------------------------------
38581
+ ActiveRecordUserGeneratorTest: test_: namespaced model should edit the model content.
38582
+ --------------------------------------------------------------------------------------
38583
+  (0.0ms) begin transaction
38584
+  (0.0ms) commit transaction
38585
+  (0.0ms) begin transaction
38586
+  (0.0ms) rollback transaction
38587
+ --------------------------------------------------------------------------------------
38588
+ ActiveRecordUserGeneratorTest: test_: normal model should create the right migration.
38589
+ --------------------------------------------------------------------------------------
38590
+  (0.0ms) begin transaction
38591
+  (0.0ms) commit transaction
38592
+  (0.0ms) begin transaction
38593
+  (0.0ms) rollback transaction
38594
+ ----------------------------------------------------------------------------------
38595
+ ActiveRecordUserGeneratorTest: test_: normal model should edit the model content.
38596
+ ----------------------------------------------------------------------------------
38597
+  (0.0ms) begin transaction
38598
+  (0.0ms) commit transaction
38599
+  (0.0ms) begin transaction
38600
+  (0.0ms) rollback transaction
38601
+ --------------------------------------------------------------------------------------------------------------------------
38602
+ ActiveRecordUserGeneratorTest: test_: normal model should include parameters if rails 3 and strong_parameter not present.
38603
+ --------------------------------------------------------------------------------------------------------------------------
38604
+  (0.0ms) begin transaction
38605
+  (0.0ms) commit transaction
38606
+  (0.0ms) begin transaction
38607
+  (0.0ms) rollback transaction
38608
+ --------------------------------------------------------------------------------------------------------------------------
38609
+ ActiveRecordUserGeneratorTest: test_: normal model should not include parameters if rails 3 and strong_parameter present.
38610
+ --------------------------------------------------------------------------------------------------------------------------
38611
+  (0.0ms) begin transaction
38612
+  (0.0ms) commit transaction
38613
+  (0.0ms) begin transaction
38614
+  (0.0ms) rollback transaction
38615
+ ---------------------------------------------------------------------------------------------
38616
+ ActiveRecordUserGeneratorTest: test_: normal model should not include parameters in rails 4.
38617
+ ---------------------------------------------------------------------------------------------
38618
+  (0.0ms) begin transaction
38619
+  (0.0ms) commit transaction
38620
+  (0.0ms) begin transaction
38621
+  (0.0ms) rollback transaction
38622
+ ----------------------------------------------------------------------------------------------
38623
+ SamlBaseControllerTest: test_: consume phase error should redirect to maestrano on any error.
38624
+ ----------------------------------------------------------------------------------------------
38625
+  (0.0ms) begin transaction
38626
+  (0.0ms) commit transaction
38627
+  (0.0ms) begin transaction
38628
+ Processing by Maestrano::Auth::SamlController#consume as HTML
38629
+ Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"}
38630
+ Cannot validate SAML response: Bla
38631
+ Trace: ["/home/bruno/.rvm/gems/ruby-2.3.1/gems/mocha-1.1.0/lib/mocha/exception_raiser.rb:12:in `evaluate'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/mocha-1.1.0/lib/mocha/return_values.rb:20:in `next'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/mocha-1.1.0/lib/mocha/expectation.rb:569:in `invoke'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/mocha-1.1.0/lib/mocha/mock.rb:296:in `method_missing'", "/home/bruno/Workspace/maestrano-rails/app/controllers/maestrano/rails/saml_base_controller.rb:35:in `process_saml_response'", "/home/bruno/Workspace/maestrano-rails/app/controllers/maestrano/rails/saml_base_controller.rb:18:in `saml_response_transaction'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:432:in `block in make_lambda'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:291:in `block in halting_and_conditional'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:497:in `block in around'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:505:in `call'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:92:in `__run_callbacks__'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:778:in `_run_process_action_callbacks'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:81:in `run_callbacks'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionpack-4.2.7.1/lib/abstract_controller/callbacks.rb:19:in `process_action'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionpack-4.2.7.1/lib/action_controller/metal/rescue.rb:29:in `process_action'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionpack-4.2.7.1/lib/action_controller/metal/instrumentation.rb:32:in `block in process_action'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-4.2.7.1/lib/active_support/notifications.rb:164:in `block in instrument'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-4.2.7.1/lib/active_support/notifications/instrumenter.rb:20:in `instrument'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-4.2.7.1/lib/active_support/notifications.rb:164:in `instrument'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionpack-4.2.7.1/lib/action_controller/metal/instrumentation.rb:30:in `process_action'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionpack-4.2.7.1/lib/action_controller/metal/params_wrapper.rb:250:in `process_action'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activerecord-4.2.7.1/lib/active_record/railties/controller_runtime.rb:18:in `process_action'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionpack-4.2.7.1/lib/abstract_controller/base.rb:137:in `process'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionview-4.2.7.1/lib/action_view/rendering.rb:30:in `process'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionpack-4.2.7.1/lib/action_controller/test_case.rb:639:in `process'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionpack-4.2.7.1/lib/action_controller/test_case.rb:67:in `process'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionpack-4.2.7.1/lib/action_controller/test_case.rb:520:in `post'", "/home/bruno/Workspace/maestrano-rails/test/controllers/saml_controller_test.rb:117:in `block (3 levels) in <class:SamlBaseControllerTest>'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/shoulda-context-1.2.1/lib/shoulda/context/context.rb:413:in `instance_exec'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/shoulda-context-1.2.1/lib/shoulda/context/context.rb:413:in `block in create_test_from_should_hash'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest/test.rb:107:in `block (3 levels) in run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest/test.rb:204:in `capture_exceptions'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest/test.rb:104:in `block (2 levels) in run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest/test.rb:255:in `time_it'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest/test.rb:103:in `block in run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:348:in `on_signal'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest/test.rb:275:in `with_info_handler'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest/test.rb:102:in `run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:799:in `run_one_method'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:322:in `run_one_method'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:310:in `block (2 levels) in run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:309:in `each'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:309:in `block in run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:348:in `on_signal'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:335:in `with_info_handler'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:308:in `run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:158:in `block in __run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:158:in `map'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:158:in `__run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:135:in `run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:62:in `block in autorun'"]
38632
+ Redirected to http://api-sandbox.maestrano.io/app_access_unauthorized?err=internal
38633
+ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
38634
+  (0.0ms) rollback transaction
38635
+ --------------------------------------------------------------------------------------------------------------------
38636
+ SamlBaseControllerTest: test_: consume phase should reset the maestrano session successfully if one already exists.
38637
+ --------------------------------------------------------------------------------------------------------------------
38638
+  (0.0ms) begin transaction
38639
+  (0.0ms) commit transaction
38640
+  (0.0ms) begin transaction
38641
+ Processing by Maestrano::Auth::SamlController#consume as HTML
38642
+ Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"}
38643
+ Redirected to http://test.host/
38644
+ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
38645
+  (0.0ms) rollback transaction
38646
+ ---------------------------------------------------------------------------------
38647
+ SamlBaseControllerTest: test_: consume phase should set a saml_request in scope.
38648
+ ---------------------------------------------------------------------------------
38649
+  (0.0ms) begin transaction
38650
+  (0.0ms) commit transaction
38651
+  (0.0ms) begin transaction
38652
+ Processing by Maestrano::Auth::SamlController#consume as HTML
38653
+ Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"}
38654
+ Redirected to http://test.host/
38655
+ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
38656
+  (0.0ms) rollback transaction
38657
+ --------------------------------------------------------------------------------------
38658
+ SamlBaseControllerTest: test_: consume phase should set the group_auth_hash in scope.
38659
+ --------------------------------------------------------------------------------------
38660
+  (0.0ms) begin transaction
38661
+  (0.0ms) commit transaction
38662
+  (0.0ms) begin transaction
38663
+ Processing by Maestrano::Auth::SamlController#consume as HTML
38664
+ Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"}
38665
+ Redirected to http://test.host/
38666
+ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
38667
+  (0.0ms) rollback transaction
38668
+ -------------------------------------------------------------------------------
38669
+ SamlBaseControllerTest: test_: consume phase should set the maestrano session.
38670
+ -------------------------------------------------------------------------------
38671
+  (0.0ms) begin transaction
38672
+  (0.0ms) commit transaction
38673
+  (0.0ms) begin transaction
38674
+ Processing by Maestrano::Auth::SamlController#consume as HTML
38675
+ Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"}
38676
+ Redirected to http://test.host/
38677
+ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
38678
+  (0.0ms) rollback transaction
38679
+ -------------------------------------------------------------------------------------
38680
+ SamlBaseControllerTest: test_: consume phase should set the user_auth_hash in scope.
38681
+ -------------------------------------------------------------------------------------
38682
+  (0.0ms) begin transaction
38683
+  (0.0ms) commit transaction
38684
+  (0.0ms) begin transaction
38685
+ Processing by Maestrano::Auth::SamlController#consume as HTML
38686
+ Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"}
38687
+ Redirected to http://test.host/
38688
+ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
38689
+  (0.1ms) rollback transaction
38690
+ ------------------------------------------------------------------------------------------
38691
+ SamlBaseControllerTest: test_: consume phase should set the user_group_rel_hash in scope.
38692
+ ------------------------------------------------------------------------------------------
38693
+  (0.1ms) begin transaction
38694
+  (0.0ms) commit transaction
38695
+  (0.0ms) begin transaction
38696
+ Processing by Maestrano::Auth::SamlController#consume as HTML
38697
+ Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"}
38698
+ Redirected to http://test.host/
38699
+ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
38700
+  (0.0ms) rollback transaction
38701
+ ---------------------------------------------------------------------------------------------------------------------------
38702
+ SamlBaseControllerTest: test_: init phase should create a saml request successfully if a maestrano session is already set.
38703
+ ---------------------------------------------------------------------------------------------------------------------------
38704
+  (0.0ms) begin transaction
38705
+  (0.0ms) commit transaction
38706
+  (0.0ms) begin transaction
38707
+ Processing by Maestrano::Auth::SamlController#init as HTML
38708
+ Parameters: {"a_param"=>"value"}
38709
+ Redirected to http://idpprovider.com?r=request
38710
+ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
38711
+  (0.0ms) rollback transaction
38712
+ -----------------------------------------------------------------------------------------------------------------------
38713
+ SamlBaseControllerTest: test_: init phase should create a saml request using params and session and redirect the user.
38714
+ -----------------------------------------------------------------------------------------------------------------------
38715
+  (0.0ms) begin transaction
38716
+  (0.0ms) commit transaction
38717
+  (0.0ms) begin transaction
38718
+ Processing by Maestrano::Auth::SamlController#init as HTML
38719
+ Parameters: {"a_param"=>"value"}
38720
+ Redirected to http://idpprovider.com?r=request
38721
+ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
38722
+  (0.0ms) rollback transaction
38723
+ -------------------------------------------------------------------
38724
+ MetadataControllerTest: test_: authenticated should be successful.
38725
+ -------------------------------------------------------------------
38726
+  (0.0ms) begin transaction
38727
+  (0.0ms) commit transaction
38728
+  (0.0ms) begin transaction
38729
+ Processing by Maestrano::Rails::MetadataController#index as HTML
38730
+ Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)
38731
+  (0.0ms) rollback transaction
38732
+ -------------------------------------------------------------------
38733
+ MetadataControllerTest: test_: unauthenticated should deny access.
38734
+ -------------------------------------------------------------------
38735
+  (0.0ms) begin transaction
38736
+  (0.0ms) commit transaction
38737
+  (0.0ms) begin transaction
38738
+ Processing by Maestrano::Rails::MetadataController#index as HTML
38739
+ Filter chain halted as :authenticate_maestrano! rendered or redirected
38740
+ Completed 401 Unauthorized in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
38741
+  (0.0ms) rollback transaction
38742
+ ----------------------------------------------------------------------------------------------------------
38743
+ GroupGeneratorTest: test_: GroupGenerator should call the active_record migration generator successfully.
38744
+ ----------------------------------------------------------------------------------------------------------
38745
+  (0.0ms) begin transaction
38746
+  (0.0ms) commit transaction
38747
+  (0.0ms) begin transaction
38748
+  (0.0ms) rollback transaction
38749
+ ----------------------------------------------------------------------------------------------------
38750
+ GroupGeneratorTest: test_: GroupGenerator should call the mongoid migration generator successfully.
38751
+ ----------------------------------------------------------------------------------------------------
38752
+  (0.0ms) begin transaction
38753
+  (0.0ms) commit transaction
38754
+  (0.0ms) begin transaction
38755
+  (0.1ms) rollback transaction
38756
+ ---------------------------------------------------------------------
38757
+ GroupUsersControllerTest: test_: authenticated should be successful.
38758
+ ---------------------------------------------------------------------
38759
+  (0.1ms) begin transaction
38760
+  (0.0ms) commit transaction
38761
+  (0.0ms) begin transaction
38762
+ Processing by Maestrano::Account::GroupUsersController#destroy as HTML
38763
+ Parameters: {"group_id"=>"cld-1", "id"=>"usr-1"}
38764
+ Rendered text template (0.0ms)
38765
+ Completed 200 OK in 2ms (Views: 1.7ms | ActiveRecord: 0.0ms)
38766
+  (0.0ms) rollback transaction
38767
+ ---------------------------------------------------------------------
38768
+ GroupUsersControllerTest: test_: unauthenticated should deny access.
38769
+ ---------------------------------------------------------------------
38770
+  (0.0ms) begin transaction
38771
+  (0.0ms) commit transaction
38772
+  (0.0ms) begin transaction
38773
+ Processing by Maestrano::Account::GroupUsersController#destroy as HTML
38774
+ Parameters: {"group_id"=>"cld-1", "id"=>"usr-1"}
38775
+ Filter chain halted as :authenticate_maestrano! rendered or redirected
38776
+ Completed 401 Unauthorized in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
38777
+  (0.0ms) rollback transaction
38778
+ ---------------------------------------------------------------------------------------
38779
+ InstallGeneratorTest: test_: InstallGenerator should create the maestrano initializer.
38780
+ ---------------------------------------------------------------------------------------
38781
+  (0.0ms) begin transaction
38782
+  (0.0ms) commit transaction
38783
+  (0.0ms) begin transaction
38784
+  (0.0ms) rollback transaction
38785
+ ----------------------------------------------------------------------------------
38786
+ InstallGeneratorTest: test_: InstallGenerator should create the maestrano routes.
38787
+ ----------------------------------------------------------------------------------
38788
+  (0.0ms) begin transaction
38789
+  (0.0ms) commit transaction
38790
+  (0.0ms) begin transaction
38791
+  (0.0ms) rollback transaction
38792
+ ----------------------------------------------------------------------------------------------------------
38793
+ InstallGeneratorTest: test_: InstallGenerator should create the maestrano/account/group_users_controller.
38794
+ ----------------------------------------------------------------------------------------------------------
38795
+  (0.0ms) begin transaction
38796
+  (0.0ms) commit transaction
38797
+  (0.0ms) begin transaction
38798
+  (0.0ms) rollback transaction
38799
+ -----------------------------------------------------------------------------------------------------
38800
+ InstallGeneratorTest: test_: InstallGenerator should create the maestrano/account/groups_controller.
38801
+ -----------------------------------------------------------------------------------------------------
38802
+  (0.0ms) begin transaction
38803
+  (0.0ms) commit transaction
38804
+  (0.0ms) begin transaction
38805
+  (0.0ms) rollback transaction
38806
+ ------------------------------------------------------------------------------------------------
38807
+ InstallGeneratorTest: test_: InstallGenerator should create the maestrano/auth/saml_controller.
38808
+ ------------------------------------------------------------------------------------------------
38809
+  (0.0ms) begin transaction
38810
+  (0.0ms) commit transaction
38811
+  (0.0ms) begin transaction
38812
+  (0.0ms) rollback transaction
38813
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
38814
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
38815
+ --------------------------------------------------------------------------------------------------------------------------------------
38816
+ MaestranoUserViaTest: test_: class methods find_or_create_for_maestrano class method should create a monster using the mapping block.
38817
+ --------------------------------------------------------------------------------------------------------------------------------------
38818
+  (0.1ms) begin transaction
38819
+  (0.0ms) commit transaction
38820
+  (0.0ms) begin transaction
38821
+ MnoMonster Load (0.2ms) SELECT "mno_monsters".* FROM "mno_monsters" WHERE "mno_monsters"."provider" = ? AND "mno_monsters"."uid" = ? AND "mno_monsters"."tenant" = ? ORDER BY "mno_monsters"."id" ASC LIMIT 1 [["provider", "maestrano"], ["uid", "usr-2"], ["tenant", "default"]]
38822
+  (0.1ms) SAVEPOINT active_record_1
38823
+ SQL (0.2ms) INSERT INTO "mno_monsters" ("first_name", "last_name", "email", "provider", "uid", "tenant", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["first_name", "Mon"], ["last_name", "Ster"], ["email", "monster@monst.com"], ["provider", "maestrano"], ["uid", "usr-2"], ["tenant", "default"], ["created_at", "2016-09-20 04:48:14.857474"], ["updated_at", "2016-09-20 04:48:14.857474"]]
38824
+  (0.0ms) RELEASE SAVEPOINT active_record_1
38825
+  (0.1ms) rollback transaction
38826
+ --------------------------------------------------------------------------------------------------------------------------------------------------------
38827
+ MaestranoUserViaTest: test_: class methods find_or_create_for_maestrano class method should not return a MnoMonster from another provider if it exists.
38828
+ --------------------------------------------------------------------------------------------------------------------------------------------------------
38829
+  (0.0ms) begin transaction
38830
+  (0.0ms) commit transaction
38831
+  (0.0ms) begin transaction
38832
+  (0.0ms) SAVEPOINT active_record_1
38833
+ SQL (0.1ms) INSERT INTO "mno_monsters" ("first_name", "last_name", "email", "provider", "uid", "tenant", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["first_name", "John"], ["last_name", "Jack"], ["email", "monster@co.com"], ["provider", "someoneelse"], ["uid", "usr-1"], ["tenant", "default"], ["created_at", "2016-09-20 04:48:14.859829"], ["updated_at", "2016-09-20 04:48:14.859829"]]
38834
+  (0.0ms) RELEASE SAVEPOINT active_record_1
38835
+ MnoMonster Load (0.0ms) SELECT "mno_monsters".* FROM "mno_monsters" WHERE "mno_monsters"."provider" = ? AND "mno_monsters"."uid" = ? AND "mno_monsters"."tenant" = ? ORDER BY "mno_monsters"."id" ASC LIMIT 1 [["provider", "maestrano"], ["uid", "usr-1"], ["tenant", "default"]]
38836
+  (0.0ms) SAVEPOINT active_record_1
38837
+ SQL (0.1ms) INSERT INTO "mno_monsters" ("provider", "uid", "tenant", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["provider", "maestrano"], ["uid", "usr-1"], ["tenant", "default"], ["created_at", "2016-09-20 04:48:14.861432"], ["updated_at", "2016-09-20 04:48:14.861432"]]
38838
+  (0.0ms) RELEASE SAVEPOINT active_record_1
38839
+  (0.1ms) rollback transaction
38840
+ --------------------------------------------------------------------------------------------------------------------------------
38841
+ MaestranoUserViaTest: test_: class methods find_or_create_for_maestrano class method should return the MnoMonster if it exists.
38842
+ --------------------------------------------------------------------------------------------------------------------------------
38843
+  (0.0ms) begin transaction
38844
+  (0.0ms) commit transaction
38845
+  (0.0ms) begin transaction
38846
+  (0.0ms) SAVEPOINT active_record_1
38847
+ SQL (0.1ms) INSERT INTO "mno_monsters" ("first_name", "last_name", "email", "provider", "uid", "tenant", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["first_name", "John"], ["last_name", "Jack"], ["email", "monster@co.com"], ["provider", "maestrano"], ["uid", "usr-1"], ["tenant", "default"], ["created_at", "2016-09-20 04:48:14.863178"], ["updated_at", "2016-09-20 04:48:14.863178"]]
38848
+  (0.0ms) RELEASE SAVEPOINT active_record_1
38849
+ MnoMonster Load (0.0ms) SELECT "mno_monsters".* FROM "mno_monsters" WHERE "mno_monsters"."provider" = ? AND "mno_monsters"."uid" = ? AND "mno_monsters"."tenant" = ? ORDER BY "mno_monsters"."id" ASC LIMIT 1 [["provider", "maestrano"], ["uid", "usr-1"], ["tenant", "default"]]
38850
+  (0.1ms) rollback transaction
38851
+ ---------------------------------------------------------------------------------------------------
38852
+ MaestranoUserViaTest: test_: class methods maestrano_*_via should have the right field definition.
38853
+ ---------------------------------------------------------------------------------------------------
38854
+  (0.0ms) begin transaction
38855
+  (0.0ms) commit transaction
38856
+  (0.0ms) begin transaction
38857
+  (0.0ms) rollback transaction
38858
+ ------------------------------------------------------------------------------------------------------------
38859
+ MaestranoUserViaTest: test_: instance methods maestrano? should return false if provider is something else.
38860
+ ------------------------------------------------------------------------------------------------------------
38861
+  (0.0ms) begin transaction
38862
+  (0.0ms) commit transaction
38863
+  (0.0ms) begin transaction
38864
+  (0.0ms) rollback transaction
38865
+ ----------------------------------------------------------------------------------------------
38866
+ MaestranoUserViaTest: test_: instance methods maestrano? should return false if uid is blank.
38867
+ ----------------------------------------------------------------------------------------------
38868
+  (0.0ms) begin transaction
38869
+  (0.0ms) commit transaction
38870
+  (0.0ms) begin transaction
38871
+  (0.0ms) rollback transaction
38872
+ -----------------------------------------------------------------------------------------------------------------------
38873
+ MaestranoUserViaTest: test_: instance methods maestrano? should return true if provider is maestrano and uid not null.
38874
+ -----------------------------------------------------------------------------------------------------------------------
38875
+  (0.0ms) begin transaction
38876
+  (0.0ms) commit transaction
38877
+  (0.0ms) begin transaction
38878
+  (0.0ms) rollback transaction
38879
+ ---------------------------------------------------------------------------------------------------------------------------------------
38880
+ MaestranoGroupViaTest: test_: class methods find_or_create_for_maestrano class method should create a monster using the mapping block.
38881
+ ---------------------------------------------------------------------------------------------------------------------------------------
38882
+  (0.0ms) begin transaction
38883
+  (0.0ms) commit transaction
38884
+  (0.0ms) begin transaction
38885
+ MnoCrew Load (0.1ms) SELECT "mno_crews".* FROM "mno_crews" WHERE "mno_crews"."provider" = ? AND "mno_crews"."uid" = ? AND "mno_crews"."tenant" = ? ORDER BY "mno_crews"."id" ASC LIMIT 1 [["provider", "maestrano"], ["uid", "usr-2"], ["tenant", "default"]]
38886
+  (0.1ms) SAVEPOINT active_record_1
38887
+ SQL (0.2ms) INSERT INTO "mno_crews" ("name", "provider", "uid", "tenant", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["name", "Monster Co"], ["provider", "maestrano"], ["uid", "usr-2"], ["tenant", "default"], ["created_at", "2016-09-20 04:48:14.872863"], ["updated_at", "2016-09-20 04:48:14.872863"]]
38888
+  (0.1ms) RELEASE SAVEPOINT active_record_1
38889
+  (0.1ms) rollback transaction
38890
+ ------------------------------------------------------------------------------------------------------------------------------------------------------
38891
+ MaestranoGroupViaTest: test_: class methods find_or_create_for_maestrano class method should not return a MnoCrew from another provider if it exists.
38892
+ ------------------------------------------------------------------------------------------------------------------------------------------------------
38893
+  (0.0ms) begin transaction
38894
+  (0.0ms) commit transaction
38895
+  (0.0ms) begin transaction
38896
+  (0.0ms) SAVEPOINT active_record_1
38897
+ SQL (0.2ms) INSERT INTO "mno_crews" ("name", "provider", "uid", "tenant", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["name", "SomeOtherCrew"], ["provider", "someoneelse"], ["uid", "usr-1"], ["tenant", "default"], ["created_at", "2016-09-20 04:48:14.875587"], ["updated_at", "2016-09-20 04:48:14.875587"]]
38898
+  (0.1ms) RELEASE SAVEPOINT active_record_1
38899
+ MnoCrew Load (0.1ms) SELECT "mno_crews".* FROM "mno_crews" WHERE "mno_crews"."provider" = ? AND "mno_crews"."uid" = ? AND "mno_crews"."tenant" = ? ORDER BY "mno_crews"."id" ASC LIMIT 1 [["provider", "maestrano"], ["uid", "cld-1"], ["tenant", "default"]]
38900
+  (0.0ms) SAVEPOINT active_record_1
38901
+ SQL (0.1ms) INSERT INTO "mno_crews" ("name", "provider", "uid", "tenant", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["name", "Your Group"], ["provider", "maestrano"], ["uid", "cld-1"], ["tenant", "default"], ["created_at", "2016-09-20 04:48:14.878451"], ["updated_at", "2016-09-20 04:48:14.878451"]]
38902
+  (0.0ms) RELEASE SAVEPOINT active_record_1
38903
+  (0.1ms) rollback transaction
38904
+ ------------------------------------------------------------------------------------------------------------------------------
38905
+ MaestranoGroupViaTest: test_: class methods find_or_create_for_maestrano class method should return the MnoCrew if it exists.
38906
+ ------------------------------------------------------------------------------------------------------------------------------
38907
+  (0.0ms) begin transaction
38908
+  (0.0ms) commit transaction
38909
+  (0.0ms) begin transaction
38910
+  (0.0ms) SAVEPOINT active_record_1
38911
+ SQL (0.1ms) INSERT INTO "mno_crews" ("name", "provider", "uid", "tenant", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["name", "SomeCrew"], ["provider", "maestrano"], ["uid", "cld-1"], ["tenant", "default"], ["created_at", "2016-09-20 04:48:14.880319"], ["updated_at", "2016-09-20 04:48:14.880319"]]
38912
+  (0.0ms) RELEASE SAVEPOINT active_record_1
38913
+ MnoCrew Load (0.0ms) SELECT "mno_crews".* FROM "mno_crews" WHERE "mno_crews"."provider" = ? AND "mno_crews"."uid" = ? AND "mno_crews"."tenant" = ? ORDER BY "mno_crews"."id" ASC LIMIT 1 [["provider", "maestrano"], ["uid", "cld-1"], ["tenant", "default"]]
38914
+  (0.1ms) rollback transaction
38915
+ ----------------------------------------------------------------------------------------------------
38916
+ MaestranoGroupViaTest: test_: class methods maestrano_*_via should have the right field definition.
38917
+ ----------------------------------------------------------------------------------------------------
38918
+  (0.0ms) begin transaction
38919
+  (0.0ms) commit transaction
38920
+  (0.0ms) begin transaction
38921
+  (0.0ms) rollback transaction
38922
+ -------------------------------------------------------------------------------------------------------------
38923
+ MaestranoGroupViaTest: test_: instance methods maestrano? should return false if provider is something else.
38924
+ -------------------------------------------------------------------------------------------------------------
38925
+  (0.0ms) begin transaction
38926
+  (0.0ms) commit transaction
38927
+  (0.0ms) begin transaction
38928
+  (0.0ms) rollback transaction
38929
+ -----------------------------------------------------------------------------------------------
38930
+ MaestranoGroupViaTest: test_: instance methods maestrano? should return false if uid is blank.
38931
+ -----------------------------------------------------------------------------------------------
38932
+  (0.0ms) begin transaction
38933
+  (0.0ms) commit transaction
38934
+  (0.0ms) begin transaction
38935
+  (0.0ms) rollback transaction
38936
+ ------------------------------------------------------------------------------------------------------------------------
38937
+ MaestranoGroupViaTest: test_: instance methods maestrano? should return true if provider is maestrano and uid not null.
38938
+ ------------------------------------------------------------------------------------------------------------------------
38939
+  (0.0ms) begin transaction
38940
+  (0.0ms) commit transaction
38941
+  (0.0ms) begin transaction
38942
+  (0.0ms) rollback transaction
38943
+ --------------------------------------------------------------------------------------------------------
38944
+ UserGeneratorTest: test_: UserGenerator should call the active_record migration generator successfully.
38945
+ --------------------------------------------------------------------------------------------------------
38946
+  (0.0ms) begin transaction
38947
+  (0.0ms) commit transaction
38948
+  (0.0ms) begin transaction
38949
+  (0.1ms) rollback transaction
38950
+ --------------------------------------------------------------------------------------------------
38951
+ UserGeneratorTest: test_: UserGenerator should call the mongoid migration generator successfully.
38952
+ --------------------------------------------------------------------------------------------------
38953
+  (0.0ms) begin transaction
38954
+  (0.0ms) commit transaction
38955
+  (0.0ms) begin transaction
38956
+  (0.1ms) rollback transaction
38957
+ ------------------------------
38958
+ MaestranoRailsTest: test_truth
38959
+ ------------------------------
38960
+  (0.1ms) begin transaction
38961
+  (0.0ms) commit transaction
38962
+  (0.0ms) begin transaction
38963
+  (0.0ms) rollback transaction
38964
+ ----------------------------------------------------------------------------------------------
38965
+ SamlBaseControllerTest: test_: consume phase error should redirect to maestrano on any error.
38966
+ ----------------------------------------------------------------------------------------------
38967
+  (0.1ms) begin transaction
38968
+  (0.0ms) commit transaction
38969
+  (0.0ms) begin transaction
38970
+ Processing by Maestrano::Auth::SamlController#consume as HTML
38971
+ Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"}
38972
+ Cannot validate SAML response: Bla
38973
+ Trace: ["/home/bruno/.rvm/gems/ruby-2.3.1/gems/mocha-1.1.0/lib/mocha/exception_raiser.rb:12:in `evaluate'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/mocha-1.1.0/lib/mocha/return_values.rb:20:in `next'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/mocha-1.1.0/lib/mocha/expectation.rb:569:in `invoke'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/mocha-1.1.0/lib/mocha/mock.rb:296:in `method_missing'", "/home/bruno/Workspace/maestrano-rails/app/controllers/maestrano/rails/saml_base_controller.rb:35:in `process_saml_response'", "/home/bruno/Workspace/maestrano-rails/app/controllers/maestrano/rails/saml_base_controller.rb:18:in `saml_response_transaction'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:432:in `block in make_lambda'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:291:in `block in halting_and_conditional'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:497:in `block in around'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:505:in `call'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:92:in `__run_callbacks__'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:778:in `_run_process_action_callbacks'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:81:in `run_callbacks'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionpack-4.2.7.1/lib/abstract_controller/callbacks.rb:19:in `process_action'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionpack-4.2.7.1/lib/action_controller/metal/rescue.rb:29:in `process_action'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionpack-4.2.7.1/lib/action_controller/metal/instrumentation.rb:32:in `block in process_action'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-4.2.7.1/lib/active_support/notifications.rb:164:in `block in instrument'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-4.2.7.1/lib/active_support/notifications/instrumenter.rb:20:in `instrument'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-4.2.7.1/lib/active_support/notifications.rb:164:in `instrument'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionpack-4.2.7.1/lib/action_controller/metal/instrumentation.rb:30:in `process_action'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionpack-4.2.7.1/lib/action_controller/metal/params_wrapper.rb:250:in `process_action'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activerecord-4.2.7.1/lib/active_record/railties/controller_runtime.rb:18:in `process_action'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionpack-4.2.7.1/lib/abstract_controller/base.rb:137:in `process'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionview-4.2.7.1/lib/action_view/rendering.rb:30:in `process'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionpack-4.2.7.1/lib/action_controller/test_case.rb:639:in `process'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionpack-4.2.7.1/lib/action_controller/test_case.rb:67:in `process'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionpack-4.2.7.1/lib/action_controller/test_case.rb:520:in `post'", "/home/bruno/Workspace/maestrano-rails/test/controllers/saml_controller_test.rb:117:in `block (3 levels) in <class:SamlBaseControllerTest>'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/shoulda-context-1.2.1/lib/shoulda/context/context.rb:413:in `instance_exec'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/shoulda-context-1.2.1/lib/shoulda/context/context.rb:413:in `block in create_test_from_should_hash'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest/test.rb:107:in `block (3 levels) in run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest/test.rb:204:in `capture_exceptions'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest/test.rb:104:in `block (2 levels) in run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest/test.rb:255:in `time_it'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest/test.rb:103:in `block in run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:348:in `on_signal'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest/test.rb:275:in `with_info_handler'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest/test.rb:102:in `run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:799:in `run_one_method'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:322:in `run_one_method'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:310:in `block (2 levels) in run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:309:in `each'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:309:in `block in run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:348:in `on_signal'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:335:in `with_info_handler'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:308:in `run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:158:in `block in __run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:158:in `map'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:158:in `__run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:135:in `run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:62:in `block in autorun'"]
38974
+ Redirected to http://api-sandbox.maestrano.io/app_access_unauthorized?err=internal
38975
+ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
38976
+  (0.1ms) rollback transaction
38977
+ --------------------------------------------------------------------------------------------------------------------
38978
+ SamlBaseControllerTest: test_: consume phase should reset the maestrano session successfully if one already exists.
38979
+ --------------------------------------------------------------------------------------------------------------------
38980
+  (0.0ms) begin transaction
38981
+  (0.0ms) commit transaction
38982
+  (0.0ms) begin transaction
38983
+ Processing by Maestrano::Auth::SamlController#consume as HTML
38984
+ Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"}
38985
+ Redirected to http://test.host/
38986
+ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
38987
+  (0.1ms) rollback transaction
38988
+ ---------------------------------------------------------------------------------
38989
+ SamlBaseControllerTest: test_: consume phase should set a saml_request in scope.
38990
+ ---------------------------------------------------------------------------------
38991
+  (0.0ms) begin transaction
38992
+  (0.0ms) commit transaction
38993
+  (0.0ms) begin transaction
38994
+ Processing by Maestrano::Auth::SamlController#consume as HTML
38995
+ Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"}
38996
+ Redirected to http://test.host/
38997
+ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
38998
+  (0.0ms) rollback transaction
38999
+ --------------------------------------------------------------------------------------
39000
+ SamlBaseControllerTest: test_: consume phase should set the group_auth_hash in scope.
39001
+ --------------------------------------------------------------------------------------
39002
+  (0.0ms) begin transaction
39003
+  (0.0ms) commit transaction
39004
+  (0.0ms) begin transaction
39005
+ Processing by Maestrano::Auth::SamlController#consume as HTML
39006
+ Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"}
39007
+ Redirected to http://test.host/
39008
+ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
39009
+  (0.0ms) rollback transaction
39010
+ -------------------------------------------------------------------------------
39011
+ SamlBaseControllerTest: test_: consume phase should set the maestrano session.
39012
+ -------------------------------------------------------------------------------
39013
+  (0.0ms) begin transaction
39014
+  (0.0ms) commit transaction
39015
+  (0.0ms) begin transaction
39016
+ Processing by Maestrano::Auth::SamlController#consume as HTML
39017
+ Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"}
39018
+ Redirected to http://test.host/
39019
+ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
39020
+  (0.0ms) rollback transaction
39021
+ -------------------------------------------------------------------------------------
39022
+ SamlBaseControllerTest: test_: consume phase should set the user_auth_hash in scope.
39023
+ -------------------------------------------------------------------------------------
39024
+  (0.0ms) begin transaction
39025
+  (0.0ms) commit transaction
39026
+  (0.0ms) begin transaction
39027
+ Processing by Maestrano::Auth::SamlController#consume as HTML
39028
+ Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"}
39029
+ Redirected to http://test.host/
39030
+ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
39031
+  (0.0ms) rollback transaction
39032
+ ------------------------------------------------------------------------------------------
39033
+ SamlBaseControllerTest: test_: consume phase should set the user_group_rel_hash in scope.
39034
+ ------------------------------------------------------------------------------------------
39035
+  (0.0ms) begin transaction
39036
+  (0.0ms) commit transaction
39037
+  (0.0ms) begin transaction
39038
+ Processing by Maestrano::Auth::SamlController#consume as HTML
39039
+ Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"}
39040
+ Redirected to http://test.host/
39041
+ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
39042
+  (0.0ms) rollback transaction
39043
+ ---------------------------------------------------------------------------------------------------------------------------
39044
+ SamlBaseControllerTest: test_: init phase should create a saml request successfully if a maestrano session is already set.
39045
+ ---------------------------------------------------------------------------------------------------------------------------
39046
+  (0.0ms) begin transaction
39047
+  (0.0ms) commit transaction
39048
+  (0.0ms) begin transaction
39049
+ Processing by Maestrano::Auth::SamlController#init as HTML
39050
+ Parameters: {"a_param"=>"value"}
39051
+ Redirected to http://idpprovider.com?r=request
39052
+ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
39053
+  (0.0ms) rollback transaction
39054
+ -----------------------------------------------------------------------------------------------------------------------
39055
+ SamlBaseControllerTest: test_: init phase should create a saml request using params and session and redirect the user.
39056
+ -----------------------------------------------------------------------------------------------------------------------
39057
+  (0.0ms) begin transaction
39058
+  (0.0ms) commit transaction
39059
+  (0.0ms) begin transaction
39060
+ Processing by Maestrano::Auth::SamlController#init as HTML
39061
+ Parameters: {"a_param"=>"value"}
39062
+ Redirected to http://idpprovider.com?r=request
39063
+ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
39064
+  (0.0ms) rollback transaction
39065
+ -----------------------------------------------------------------
39066
+ GroupsControllerTest: test_: authenticated should be successful.
39067
+ -----------------------------------------------------------------
39068
+  (0.0ms) begin transaction
39069
+  (0.0ms) commit transaction
39070
+  (0.0ms) begin transaction
39071
+ Processing by Maestrano::Account::GroupsController#destroy as HTML
39072
+ Parameters: {"id"=>"cld-1"}
39073
+ Rendered text template (0.0ms)
39074
+ Completed 200 OK in 7ms (Views: 6.4ms | ActiveRecord: 0.0ms)
39075
+  (0.1ms) rollback transaction
39076
+ -----------------------------------------------------------------
39077
+ GroupsControllerTest: test_: unauthenticated should deny access.
39078
+ -----------------------------------------------------------------
39079
+  (0.1ms) begin transaction
39080
+  (0.0ms) commit transaction
39081
+  (0.0ms) begin transaction
39082
+ Processing by Maestrano::Account::GroupsController#destroy as HTML
39083
+ Parameters: {"id"=>"cld-1"}
39084
+ Filter chain halted as :authenticate_maestrano! rendered or redirected
39085
+ Completed 401 Unauthorized in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
39086
+  (0.1ms) rollback transaction
39087
+ ----------------------------------------------------------------------------------------------------------
39088
+ GroupGeneratorTest: test_: GroupGenerator should call the active_record migration generator successfully.
39089
+ ----------------------------------------------------------------------------------------------------------
39090
+  (0.0ms) begin transaction
39091
+  (0.0ms) commit transaction
39092
+  (0.0ms) begin transaction
39093
+  (0.1ms) rollback transaction
39094
+ ----------------------------------------------------------------------------------------------------
39095
+ GroupGeneratorTest: test_: GroupGenerator should call the mongoid migration generator successfully.
39096
+ ----------------------------------------------------------------------------------------------------
39097
+  (0.0ms) begin transaction
39098
+  (0.0ms) commit transaction
39099
+  (0.0ms) begin transaction
39100
+  (0.1ms) rollback transaction
39101
+ ------------------------------------------------------------------------------------------
39102
+ ActiveRecordUserGeneratorTest: test_: namespaced model should create the right migration.
39103
+ ------------------------------------------------------------------------------------------
39104
+  (0.0ms) begin transaction
39105
+  (0.0ms) commit transaction
39106
+  (0.0ms) begin transaction
39107
+  (0.0ms) rollback transaction
39108
+ --------------------------------------------------------------------------------------
39109
+ ActiveRecordUserGeneratorTest: test_: namespaced model should edit the model content.
39110
+ --------------------------------------------------------------------------------------
39111
+  (0.0ms) begin transaction
39112
+  (0.0ms) commit transaction
39113
+  (0.0ms) begin transaction
39114
+  (0.1ms) rollback transaction
39115
+ --------------------------------------------------------------------------------------
39116
+ ActiveRecordUserGeneratorTest: test_: normal model should create the right migration.
39117
+ --------------------------------------------------------------------------------------
39118
+  (0.0ms) begin transaction
39119
+  (0.0ms) commit transaction
39120
+  (0.0ms) begin transaction
39121
+  (0.1ms) rollback transaction
39122
+ ----------------------------------------------------------------------------------
39123
+ ActiveRecordUserGeneratorTest: test_: normal model should edit the model content.
39124
+ ----------------------------------------------------------------------------------
39125
+  (0.0ms) begin transaction
39126
+  (0.0ms) commit transaction
39127
+  (0.0ms) begin transaction
39128
+  (0.0ms) rollback transaction
39129
+ --------------------------------------------------------------------------------------------------------------------------
39130
+ ActiveRecordUserGeneratorTest: test_: normal model should include parameters if rails 3 and strong_parameter not present.
39131
+ --------------------------------------------------------------------------------------------------------------------------
39132
+  (0.0ms) begin transaction
39133
+  (0.0ms) commit transaction
39134
+  (0.0ms) begin transaction
39135
+  (0.1ms) rollback transaction
39136
+ --------------------------------------------------------------------------------------------------------------------------
39137
+ ActiveRecordUserGeneratorTest: test_: normal model should not include parameters if rails 3 and strong_parameter present.
39138
+ --------------------------------------------------------------------------------------------------------------------------
39139
+  (0.0ms) begin transaction
39140
+  (0.0ms) commit transaction
39141
+  (0.0ms) begin transaction
39142
+  (0.1ms) rollback transaction
39143
+ ---------------------------------------------------------------------------------------------
39144
+ ActiveRecordUserGeneratorTest: test_: normal model should not include parameters in rails 4.
39145
+ ---------------------------------------------------------------------------------------------
39146
+  (0.0ms) begin transaction
39147
+  (0.0ms) commit transaction
39148
+  (0.0ms) begin transaction
39149
+  (0.1ms) rollback transaction
39150
+ ---------------------------------------------------------------------
39151
+ GroupUsersControllerTest: test_: authenticated should be successful.
39152
+ ---------------------------------------------------------------------
39153
+  (0.0ms) begin transaction
39154
+  (0.0ms) commit transaction
39155
+  (0.0ms) begin transaction
39156
+ Processing by Maestrano::Account::GroupUsersController#destroy as HTML
39157
+ Parameters: {"group_id"=>"cld-1", "id"=>"usr-1"}
39158
+ Rendered text template (0.0ms)
39159
+ Completed 200 OK in 2ms (Views: 2.0ms | ActiveRecord: 0.0ms)
39160
+  (0.1ms) rollback transaction
39161
+ ---------------------------------------------------------------------
39162
+ GroupUsersControllerTest: test_: unauthenticated should deny access.
39163
+ ---------------------------------------------------------------------
39164
+  (0.0ms) begin transaction
39165
+  (0.0ms) commit transaction
39166
+  (0.0ms) begin transaction
39167
+ Processing by Maestrano::Account::GroupUsersController#destroy as HTML
39168
+ Parameters: {"group_id"=>"cld-1", "id"=>"usr-1"}
39169
+ Filter chain halted as :authenticate_maestrano! rendered or redirected
39170
+ Completed 401 Unauthorized in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
39171
+  (0.0ms) rollback transaction
39172
+ ---------------------------------------------------------------------------------------------------------------------
39173
+ GenericControllerTest: test_: with a maestrano session should be successful if the maestrano session is still valid.
39174
+ ---------------------------------------------------------------------------------------------------------------------
39175
+  (0.0ms) begin transaction
39176
+  (0.0ms) commit transaction
39177
+  (0.0ms) begin transaction
39178
+ Processing by PagesController#home as HTML
39179
+ Rendered pages/home.html.erb within layouts/application (0.9ms)
39180
+ Completed 200 OK in 106ms (Views: 106.1ms | ActiveRecord: 0.0ms)
39181
+  (0.1ms) rollback transaction
39182
+ --------------------------------------------------------------------------------------------------------------------
39183
+ GenericControllerTest: test_: with a maestrano session should initialize redirect to SSO initialization if invalid.
39184
+ --------------------------------------------------------------------------------------------------------------------
39185
+  (0.0ms) begin transaction
39186
+  (0.0ms) commit transaction
39187
+  (0.0ms) begin transaction
39188
+ Processing by PagesController#home as HTML
39189
+ Redirected to http://localhost::3000/maestrano/auth/saml/init
39190
+ Filter chain halted as :verify_maestrano_session rendered or redirected
39191
+ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
39192
+  (0.0ms) rollback transaction
39193
+ -----------------------------------------------------------------------------------------------------------
39194
+ GenericControllerTest: test_: with a maestrano session should not redirect to SSO init if sso is disabled.
39195
+ -----------------------------------------------------------------------------------------------------------
39196
+  (0.0ms) begin transaction
39197
+  (0.0ms) commit transaction
39198
+  (0.0ms) begin transaction
39199
+ Processing by PagesController#home as HTML
39200
+ Rendered pages/home.html.erb within layouts/application (0.1ms)
39201
+ Completed 200 OK in 1ms (Views: 0.9ms | ActiveRecord: 0.0ms)
39202
+  (0.1ms) rollback transaction
39203
+ ------------------------------------------------------------------------------
39204
+ GenericControllerTest: test_: with no maestrano session should be successful.
39205
+ ------------------------------------------------------------------------------
39206
+  (0.0ms) begin transaction
39207
+  (0.0ms) commit transaction
39208
+  (0.0ms) begin transaction
39209
+ Processing by PagesController#home as HTML
39210
+ Rendered pages/home.html.erb within layouts/application (0.0ms)
39211
+ Completed 200 OK in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)
39212
+  (0.0ms) rollback transaction
39213
+ -------------------------------------------------------------------
39214
+ MetadataControllerTest: test_: authenticated should be successful.
39215
+ -------------------------------------------------------------------
39216
+  (0.0ms) begin transaction
39217
+  (0.0ms) commit transaction
39218
+  (0.0ms) begin transaction
39219
+ Processing by Maestrano::Rails::MetadataController#index as HTML
39220
+ Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)
39221
+  (0.1ms) rollback transaction
39222
+ -------------------------------------------------------------------
39223
+ MetadataControllerTest: test_: unauthenticated should deny access.
39224
+ -------------------------------------------------------------------
39225
+  (0.0ms) begin transaction
39226
+  (0.0ms) commit transaction
39227
+  (0.0ms) begin transaction
39228
+ Processing by Maestrano::Rails::MetadataController#index as HTML
39229
+ Filter chain halted as :authenticate_maestrano! rendered or redirected
39230
+ Completed 401 Unauthorized in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
39231
+  (0.1ms) rollback transaction
39232
+ -------------------------------------------------------------------------------------------
39233
+ ActiveRecordGroupGeneratorTest: test_: namespaced model should create the right migration.
39234
+ -------------------------------------------------------------------------------------------
39235
+  (0.1ms) begin transaction
39236
+  (0.0ms) commit transaction
39237
+  (0.0ms) begin transaction
39238
+  (0.1ms) rollback transaction
39239
+ ---------------------------------------------------------------------------------------
39240
+ ActiveRecordGroupGeneratorTest: test_: namespaced model should edit the model content.
39241
+ ---------------------------------------------------------------------------------------
39242
+  (0.0ms) begin transaction
39243
+  (0.0ms) commit transaction
39244
+  (0.0ms) begin transaction
39245
+  (0.1ms) rollback transaction
39246
+ ---------------------------------------------------------------------------------------
39247
+ ActiveRecordGroupGeneratorTest: test_: normal model should create the right migration.
39248
+ ---------------------------------------------------------------------------------------
39249
+  (0.0ms) begin transaction
39250
+  (0.0ms) commit transaction
39251
+  (0.0ms) begin transaction
39252
+  (0.1ms) rollback transaction
39253
+ -----------------------------------------------------------------------------------
39254
+ ActiveRecordGroupGeneratorTest: test_: normal model should edit the model content.
39255
+ -----------------------------------------------------------------------------------
39256
+  (0.0ms) begin transaction
39257
+  (0.0ms) commit transaction
39258
+  (0.0ms) begin transaction
39259
+  (0.0ms) rollback transaction
39260
+ ---------------------------------------------------------------------------------------------------------------------------
39261
+ ActiveRecordGroupGeneratorTest: test_: normal model should include parameters if rails 3 and strong_parameter not present.
39262
+ ---------------------------------------------------------------------------------------------------------------------------
39263
+  (0.1ms) begin transaction
39264
+  (0.0ms) commit transaction
39265
+  (0.0ms) begin transaction
39266
+  (0.1ms) rollback transaction
39267
+ ---------------------------------------------------------------------------------------------------------------------------
39268
+ ActiveRecordGroupGeneratorTest: test_: normal model should not include parameters if rails 3 and strong_parameter present.
39269
+ ---------------------------------------------------------------------------------------------------------------------------
39270
+  (0.0ms) begin transaction
39271
+  (0.0ms) commit transaction
39272
+  (0.0ms) begin transaction
39273
+  (0.1ms) rollback transaction
39274
+ ----------------------------------------------------------------------------------------------
39275
+ ActiveRecordGroupGeneratorTest: test_: normal model should not include parameters in rails 4.
39276
+ ----------------------------------------------------------------------------------------------
39277
+  (0.0ms) begin transaction
39278
+  (0.0ms) commit transaction
39279
+  (0.0ms) begin transaction
39280
+  (0.0ms) rollback transaction
39281
+ ---------------------------------------------------------------------------------------
39282
+ InstallGeneratorTest: test_: InstallGenerator should create the maestrano initializer.
39283
+ ---------------------------------------------------------------------------------------
39284
+  (0.0ms) begin transaction
39285
+  (0.0ms) commit transaction
39286
+  (0.0ms) begin transaction
39287
+  (0.0ms) rollback transaction
39288
+ ----------------------------------------------------------------------------------
39289
+ InstallGeneratorTest: test_: InstallGenerator should create the maestrano routes.
39290
+ ----------------------------------------------------------------------------------
39291
+  (0.0ms) begin transaction
39292
+  (0.0ms) commit transaction
39293
+  (0.0ms) begin transaction
39294
+  (0.1ms) rollback transaction
39295
+ ----------------------------------------------------------------------------------------------------------
39296
+ InstallGeneratorTest: test_: InstallGenerator should create the maestrano/account/group_users_controller.
39297
+ ----------------------------------------------------------------------------------------------------------
39298
+  (0.0ms) begin transaction
39299
+  (0.0ms) commit transaction
39300
+  (0.1ms) begin transaction
39301
+  (0.1ms) rollback transaction
39302
+ -----------------------------------------------------------------------------------------------------
39303
+ InstallGeneratorTest: test_: InstallGenerator should create the maestrano/account/groups_controller.
39304
+ -----------------------------------------------------------------------------------------------------
39305
+  (0.0ms) begin transaction
39306
+  (0.0ms) commit transaction
39307
+  (0.1ms) begin transaction
39308
+  (0.1ms) rollback transaction
39309
+ ------------------------------------------------------------------------------------------------
39310
+ InstallGeneratorTest: test_: InstallGenerator should create the maestrano/auth/saml_controller.
39311
+ ------------------------------------------------------------------------------------------------
39312
+  (0.1ms) begin transaction
39313
+  (0.0ms) commit transaction
39314
+  (0.0ms) begin transaction
39315
+  (0.1ms) rollback transaction
39316
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
39317
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
39318
+ --------------------------------------------------------------------------------------------------------
39319
+ UserGeneratorTest: test_: UserGenerator should call the active_record migration generator successfully.
39320
+ --------------------------------------------------------------------------------------------------------
39321
+  (0.2ms) begin transaction
39322
+  (0.1ms) commit transaction
39323
+  (0.0ms) begin transaction
39324
+  (0.0ms) rollback transaction
39325
+ --------------------------------------------------------------------------------------------------
39326
+ UserGeneratorTest: test_: UserGenerator should call the mongoid migration generator successfully.
39327
+ --------------------------------------------------------------------------------------------------
39328
+  (0.0ms) begin transaction
39329
+  (0.0ms) commit transaction
39330
+  (0.0ms) begin transaction
39331
+  (0.0ms) rollback transaction
39332
+ -----------------------------------------------------------------
39333
+ GroupsControllerTest: test_: authenticated should be successful.
39334
+ -----------------------------------------------------------------
39335
+  (0.0ms) begin transaction
39336
+  (0.0ms) commit transaction
39337
+  (0.0ms) begin transaction
39338
+ Processing by Maestrano::Account::GroupsController#destroy as HTML
39339
+ Parameters: {"id"=>"cld-1"}
39340
+ Rendered text template (0.0ms)
39341
+ Completed 200 OK in 5ms (Views: 4.4ms | ActiveRecord: 0.0ms)
39342
+  (0.0ms) rollback transaction
39343
+ -----------------------------------------------------------------
39344
+ GroupsControllerTest: test_: unauthenticated should deny access.
39345
+ -----------------------------------------------------------------
39346
+  (0.0ms) begin transaction
39347
+  (0.0ms) commit transaction
39348
+  (0.0ms) begin transaction
39349
+ Processing by Maestrano::Account::GroupsController#destroy as HTML
39350
+ Parameters: {"id"=>"cld-1"}
39351
+ Filter chain halted as :authenticate_maestrano! rendered or redirected
39352
+ Completed 401 Unauthorized in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
39353
+  (0.0ms) rollback transaction
39354
+ ---------------------------------------------------------------------
39355
+ GroupUsersControllerTest: test_: authenticated should be successful.
39356
+ ---------------------------------------------------------------------
39357
+  (0.0ms) begin transaction
39358
+  (0.0ms) commit transaction
39359
+  (0.0ms) begin transaction
39360
+ Processing by Maestrano::Account::GroupUsersController#destroy as HTML
39361
+ Parameters: {"group_id"=>"cld-1", "id"=>"usr-1"}
39362
+ Rendered text template (0.0ms)
39363
+ Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.0ms)
39364
+  (0.1ms) rollback transaction
39365
+ ---------------------------------------------------------------------
39366
+ GroupUsersControllerTest: test_: unauthenticated should deny access.
39367
+ ---------------------------------------------------------------------
39368
+  (0.0ms) begin transaction
39369
+  (0.0ms) commit transaction
39370
+  (0.0ms) begin transaction
39371
+ Processing by Maestrano::Account::GroupUsersController#destroy as HTML
39372
+ Parameters: {"group_id"=>"cld-1", "id"=>"usr-1"}
39373
+ Filter chain halted as :authenticate_maestrano! rendered or redirected
39374
+ Completed 401 Unauthorized in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
39375
+  (0.1ms) rollback transaction
39376
+ ----------------------------------------------------------------------------------------------
39377
+ SamlBaseControllerTest: test_: consume phase error should redirect to maestrano on any error.
39378
+ ----------------------------------------------------------------------------------------------
39379
+  (0.1ms) begin transaction
39380
+  (0.1ms) commit transaction
39381
+  (0.0ms) begin transaction
39382
+ Processing by Maestrano::Auth::SamlController#consume as HTML
39383
+ Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"}
39384
+ Cannot validate SAML response: Bla
39385
+ Trace: ["/home/bruno/.rvm/gems/ruby-2.3.1/gems/mocha-1.1.0/lib/mocha/exception_raiser.rb:12:in `evaluate'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/mocha-1.1.0/lib/mocha/return_values.rb:20:in `next'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/mocha-1.1.0/lib/mocha/expectation.rb:569:in `invoke'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/mocha-1.1.0/lib/mocha/mock.rb:296:in `method_missing'", "/home/bruno/Workspace/maestrano-rails/app/controllers/maestrano/rails/saml_base_controller.rb:35:in `process_saml_response'", "/home/bruno/Workspace/maestrano-rails/app/controllers/maestrano/rails/saml_base_controller.rb:18:in `saml_response_transaction'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:432:in `block in make_lambda'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:291:in `block in halting_and_conditional'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:497:in `block in around'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:505:in `call'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:92:in `__run_callbacks__'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:778:in `_run_process_action_callbacks'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:81:in `run_callbacks'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionpack-4.2.7.1/lib/abstract_controller/callbacks.rb:19:in `process_action'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionpack-4.2.7.1/lib/action_controller/metal/rescue.rb:29:in `process_action'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionpack-4.2.7.1/lib/action_controller/metal/instrumentation.rb:32:in `block in process_action'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-4.2.7.1/lib/active_support/notifications.rb:164:in `block in instrument'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-4.2.7.1/lib/active_support/notifications/instrumenter.rb:20:in `instrument'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-4.2.7.1/lib/active_support/notifications.rb:164:in `instrument'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionpack-4.2.7.1/lib/action_controller/metal/instrumentation.rb:30:in `process_action'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionpack-4.2.7.1/lib/action_controller/metal/params_wrapper.rb:250:in `process_action'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activerecord-4.2.7.1/lib/active_record/railties/controller_runtime.rb:18:in `process_action'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionpack-4.2.7.1/lib/abstract_controller/base.rb:137:in `process'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionview-4.2.7.1/lib/action_view/rendering.rb:30:in `process'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionpack-4.2.7.1/lib/action_controller/test_case.rb:639:in `process'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionpack-4.2.7.1/lib/action_controller/test_case.rb:67:in `process'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionpack-4.2.7.1/lib/action_controller/test_case.rb:520:in `post'", "/home/bruno/Workspace/maestrano-rails/test/controllers/saml_controller_test.rb:117:in `block (3 levels) in <class:SamlBaseControllerTest>'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/shoulda-context-1.2.1/lib/shoulda/context/context.rb:413:in `instance_exec'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/shoulda-context-1.2.1/lib/shoulda/context/context.rb:413:in `block in create_test_from_should_hash'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest/test.rb:107:in `block (3 levels) in run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest/test.rb:204:in `capture_exceptions'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest/test.rb:104:in `block (2 levels) in run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest/test.rb:255:in `time_it'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest/test.rb:103:in `block in run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:348:in `on_signal'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest/test.rb:275:in `with_info_handler'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest/test.rb:102:in `run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:799:in `run_one_method'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:322:in `run_one_method'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:310:in `block (2 levels) in run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:309:in `each'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:309:in `block in run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:348:in `on_signal'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:335:in `with_info_handler'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:308:in `run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:158:in `block in __run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:158:in `map'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:158:in `__run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:135:in `run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:62:in `block in autorun'"]
39386
+ Redirected to http://api-sandbox.maestrano.io/app_access_unauthorized?err=internal
39387
+ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
39388
+  (0.0ms) rollback transaction
39389
+ --------------------------------------------------------------------------------------------------------------------
39390
+ SamlBaseControllerTest: test_: consume phase should reset the maestrano session successfully if one already exists.
39391
+ --------------------------------------------------------------------------------------------------------------------
39392
+  (0.0ms) begin transaction
39393
+  (0.0ms) commit transaction
39394
+  (0.0ms) begin transaction
39395
+ Processing by Maestrano::Auth::SamlController#consume as HTML
39396
+ Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"}
39397
+ Redirected to http://test.host/
39398
+ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
39399
+  (0.1ms) rollback transaction
39400
+ ---------------------------------------------------------------------------------
39401
+ SamlBaseControllerTest: test_: consume phase should set a saml_request in scope.
39402
+ ---------------------------------------------------------------------------------
39403
+  (0.0ms) begin transaction
39404
+  (0.0ms) commit transaction
39405
+  (0.0ms) begin transaction
39406
+ Processing by Maestrano::Auth::SamlController#consume as HTML
39407
+ Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"}
39408
+ Redirected to http://test.host/
39409
+ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
39410
+  (0.0ms) rollback transaction
39411
+ --------------------------------------------------------------------------------------
39412
+ SamlBaseControllerTest: test_: consume phase should set the group_auth_hash in scope.
39413
+ --------------------------------------------------------------------------------------
39414
+  (0.0ms) begin transaction
39415
+  (0.0ms) commit transaction
39416
+  (0.0ms) begin transaction
39417
+ Processing by Maestrano::Auth::SamlController#consume as HTML
39418
+ Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"}
39419
+ Redirected to http://test.host/
39420
+ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
39421
+  (0.0ms) rollback transaction
39422
+ -------------------------------------------------------------------------------
39423
+ SamlBaseControllerTest: test_: consume phase should set the maestrano session.
39424
+ -------------------------------------------------------------------------------
39425
+  (0.0ms) begin transaction
39426
+  (0.0ms) commit transaction
39427
+  (0.0ms) begin transaction
39428
+ Processing by Maestrano::Auth::SamlController#consume as HTML
39429
+ Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"}
39430
+ Redirected to http://test.host/
39431
+ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
39432
+  (0.0ms) rollback transaction
39433
+ -------------------------------------------------------------------------------------
39434
+ SamlBaseControllerTest: test_: consume phase should set the user_auth_hash in scope.
39435
+ -------------------------------------------------------------------------------------
39436
+  (0.0ms) begin transaction
39437
+  (0.0ms) commit transaction
39438
+  (0.0ms) begin transaction
39439
+ Processing by Maestrano::Auth::SamlController#consume as HTML
39440
+ Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"}
39441
+ Redirected to http://test.host/
39442
+ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
39443
+  (0.0ms) rollback transaction
39444
+ ------------------------------------------------------------------------------------------
39445
+ SamlBaseControllerTest: test_: consume phase should set the user_group_rel_hash in scope.
39446
+ ------------------------------------------------------------------------------------------
39447
+  (0.0ms) begin transaction
39448
+  (0.0ms) commit transaction
39449
+  (0.0ms) begin transaction
39450
+ Processing by Maestrano::Auth::SamlController#consume as HTML
39451
+ Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"}
39452
+ Redirected to http://test.host/
39453
+ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
39454
+  (0.0ms) rollback transaction
39455
+ ---------------------------------------------------------------------------------------------------------------------------
39456
+ SamlBaseControllerTest: test_: init phase should create a saml request successfully if a maestrano session is already set.
39457
+ ---------------------------------------------------------------------------------------------------------------------------
39458
+  (0.0ms) begin transaction
39459
+  (0.0ms) commit transaction
39460
+  (0.0ms) begin transaction
39461
+ Processing by Maestrano::Auth::SamlController#init as HTML
39462
+ Parameters: {"a_param"=>"value"}
39463
+ Redirected to http://idpprovider.com?r=request
39464
+ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
39465
+  (0.0ms) rollback transaction
39466
+ -----------------------------------------------------------------------------------------------------------------------
39467
+ SamlBaseControllerTest: test_: init phase should create a saml request using params and session and redirect the user.
39468
+ -----------------------------------------------------------------------------------------------------------------------
39469
+  (0.0ms) begin transaction
39470
+  (0.0ms) commit transaction
39471
+  (0.0ms) begin transaction
39472
+ Processing by Maestrano::Auth::SamlController#init as HTML
39473
+ Parameters: {"a_param"=>"value"}
39474
+ Redirected to http://idpprovider.com?r=request
39475
+ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
39476
+  (0.0ms) rollback transaction
39477
+ ------------------------------
39478
+ MaestranoRailsTest: test_truth
39479
+ ------------------------------
39480
+  (0.0ms) begin transaction
39481
+  (0.0ms) commit transaction
39482
+  (0.0ms) begin transaction
39483
+  (0.0ms) rollback transaction
39484
+ -------------------------------------------------------------------------------------------
39485
+ ActiveRecordGroupGeneratorTest: test_: namespaced model should create the right migration.
39486
+ -------------------------------------------------------------------------------------------
39487
+  (0.0ms) begin transaction
39488
+  (0.0ms) commit transaction
39489
+  (0.0ms) begin transaction
39490
+  (0.0ms) rollback transaction
39491
+ ---------------------------------------------------------------------------------------
39492
+ ActiveRecordGroupGeneratorTest: test_: namespaced model should edit the model content.
39493
+ ---------------------------------------------------------------------------------------
39494
+  (0.0ms) begin transaction
39495
+  (0.0ms) commit transaction
39496
+  (0.0ms) begin transaction
39497
+  (0.0ms) rollback transaction
39498
+ ---------------------------------------------------------------------------------------
39499
+ ActiveRecordGroupGeneratorTest: test_: normal model should create the right migration.
39500
+ ---------------------------------------------------------------------------------------
39501
+  (0.0ms) begin transaction
39502
+  (0.0ms) commit transaction
39503
+  (0.0ms) begin transaction
39504
+  (0.1ms) rollback transaction
39505
+ -----------------------------------------------------------------------------------
39506
+ ActiveRecordGroupGeneratorTest: test_: normal model should edit the model content.
39507
+ -----------------------------------------------------------------------------------
39508
+  (0.0ms) begin transaction
39509
+  (0.0ms) commit transaction
39510
+  (0.0ms) begin transaction
39511
+  (0.1ms) rollback transaction
39512
+ ---------------------------------------------------------------------------------------------------------------------------
39513
+ ActiveRecordGroupGeneratorTest: test_: normal model should include parameters if rails 3 and strong_parameter not present.
39514
+ ---------------------------------------------------------------------------------------------------------------------------
39515
+  (0.1ms) begin transaction
39516
+  (0.0ms) commit transaction
39517
+  (0.0ms) begin transaction
39518
+  (0.0ms) rollback transaction
39519
+ ---------------------------------------------------------------------------------------------------------------------------
39520
+ ActiveRecordGroupGeneratorTest: test_: normal model should not include parameters if rails 3 and strong_parameter present.
39521
+ ---------------------------------------------------------------------------------------------------------------------------
39522
+  (0.0ms) begin transaction
39523
+  (0.0ms) commit transaction
39524
+  (0.0ms) begin transaction
39525
+  (0.0ms) rollback transaction
39526
+ ----------------------------------------------------------------------------------------------
39527
+ ActiveRecordGroupGeneratorTest: test_: normal model should not include parameters in rails 4.
39528
+ ----------------------------------------------------------------------------------------------
39529
+  (0.0ms) begin transaction
39530
+  (0.0ms) commit transaction
39531
+  (0.0ms) begin transaction
39532
+  (0.0ms) rollback transaction
39533
+ ------------------------------------------------------------------------------------------
39534
+ ActiveRecordUserGeneratorTest: test_: namespaced model should create the right migration.
39535
+ ------------------------------------------------------------------------------------------
39536
+  (0.0ms) begin transaction
39537
+  (0.0ms) commit transaction
39538
+  (0.0ms) begin transaction
39539
+  (0.0ms) rollback transaction
39540
+ --------------------------------------------------------------------------------------
39541
+ ActiveRecordUserGeneratorTest: test_: namespaced model should edit the model content.
39542
+ --------------------------------------------------------------------------------------
39543
+  (0.0ms) begin transaction
39544
+  (0.0ms) commit transaction
39545
+  (0.0ms) begin transaction
39546
+  (0.0ms) rollback transaction
39547
+ --------------------------------------------------------------------------------------
39548
+ ActiveRecordUserGeneratorTest: test_: normal model should create the right migration.
39549
+ --------------------------------------------------------------------------------------
39550
+  (0.1ms) begin transaction
39551
+  (0.0ms) commit transaction
39552
+  (0.0ms) begin transaction
39553
+  (0.0ms) rollback transaction
39554
+ ----------------------------------------------------------------------------------
39555
+ ActiveRecordUserGeneratorTest: test_: normal model should edit the model content.
39556
+ ----------------------------------------------------------------------------------
39557
+  (0.0ms) begin transaction
39558
+  (0.0ms) commit transaction
39559
+  (0.0ms) begin transaction
39560
+  (0.0ms) rollback transaction
39561
+ --------------------------------------------------------------------------------------------------------------------------
39562
+ ActiveRecordUserGeneratorTest: test_: normal model should include parameters if rails 3 and strong_parameter not present.
39563
+ --------------------------------------------------------------------------------------------------------------------------
39564
+  (0.0ms) begin transaction
39565
+  (0.0ms) commit transaction
39566
+  (0.0ms) begin transaction
39567
+  (0.0ms) rollback transaction
39568
+ --------------------------------------------------------------------------------------------------------------------------
39569
+ ActiveRecordUserGeneratorTest: test_: normal model should not include parameters if rails 3 and strong_parameter present.
39570
+ --------------------------------------------------------------------------------------------------------------------------
39571
+  (0.0ms) begin transaction
39572
+  (0.1ms) commit transaction
39573
+  (0.1ms) begin transaction
39574
+  (0.1ms) rollback transaction
39575
+ ---------------------------------------------------------------------------------------------
39576
+ ActiveRecordUserGeneratorTest: test_: normal model should not include parameters in rails 4.
39577
+ ---------------------------------------------------------------------------------------------
39578
+  (0.0ms) begin transaction
39579
+  (0.0ms) commit transaction
39580
+  (0.0ms) begin transaction
39581
+  (0.0ms) rollback transaction
39582
+ ----------------------------------------------------------------------------------------------------------
39583
+ GroupGeneratorTest: test_: GroupGenerator should call the active_record migration generator successfully.
39584
+ ----------------------------------------------------------------------------------------------------------
39585
+  (0.0ms) begin transaction
39586
+  (0.0ms) commit transaction
39587
+  (0.0ms) begin transaction
39588
+  (0.0ms) rollback transaction
39589
+ ----------------------------------------------------------------------------------------------------
39590
+ GroupGeneratorTest: test_: GroupGenerator should call the mongoid migration generator successfully.
39591
+ ----------------------------------------------------------------------------------------------------
39592
+  (0.0ms) begin transaction
39593
+  (0.0ms) commit transaction
39594
+  (0.0ms) begin transaction
39595
+  (0.0ms) rollback transaction
39596
+ ---------------------------------------------------------------------------------------
39597
+ InstallGeneratorTest: test_: InstallGenerator should create the maestrano initializer.
39598
+ ---------------------------------------------------------------------------------------
39599
+  (0.0ms) begin transaction
39600
+  (0.0ms) commit transaction
39601
+  (0.0ms) begin transaction
39602
+  (0.0ms) rollback transaction
39603
+ ----------------------------------------------------------------------------------
39604
+ InstallGeneratorTest: test_: InstallGenerator should create the maestrano routes.
39605
+ ----------------------------------------------------------------------------------
39606
+  (0.0ms) begin transaction
39607
+  (0.0ms) commit transaction
39608
+  (0.0ms) begin transaction
39609
+  (0.0ms) rollback transaction
39610
+ ----------------------------------------------------------------------------------------------------------
39611
+ InstallGeneratorTest: test_: InstallGenerator should create the maestrano/account/group_users_controller.
39612
+ ----------------------------------------------------------------------------------------------------------
39613
+  (0.1ms) begin transaction
39614
+  (0.0ms) commit transaction
39615
+  (0.0ms) begin transaction
39616
+  (0.1ms) rollback transaction
39617
+ -----------------------------------------------------------------------------------------------------
39618
+ InstallGeneratorTest: test_: InstallGenerator should create the maestrano/account/groups_controller.
39619
+ -----------------------------------------------------------------------------------------------------
39620
+  (0.0ms) begin transaction
39621
+  (0.0ms) commit transaction
39622
+  (0.0ms) begin transaction
39623
+  (0.0ms) rollback transaction
39624
+ ------------------------------------------------------------------------------------------------
39625
+ InstallGeneratorTest: test_: InstallGenerator should create the maestrano/auth/saml_controller.
39626
+ ------------------------------------------------------------------------------------------------
39627
+  (0.0ms) begin transaction
39628
+  (0.0ms) commit transaction
39629
+  (0.0ms) begin transaction
39630
+  (0.0ms) rollback transaction
39631
+ --------------------------------------------------------------------------------------------------------------------------------------
39632
+ MaestranoUserViaTest: test_: class methods find_or_create_for_maestrano class method should create a monster using the mapping block.
39633
+ --------------------------------------------------------------------------------------------------------------------------------------
39634
+  (0.0ms) begin transaction
39635
+  (0.0ms) commit transaction
39636
+  (0.0ms) begin transaction
39637
+ MnoMonster Load (0.1ms) SELECT "mno_monsters".* FROM "mno_monsters" WHERE "mno_monsters"."provider" = ? AND "mno_monsters"."uid" = ? AND "mno_monsters"."tenant" = ? ORDER BY "mno_monsters"."id" ASC LIMIT 1 [["provider", "maestrano"], ["uid", "usr-2"], ["tenant", "default"]]
39638
+  (0.0ms) SAVEPOINT active_record_1
39639
+ SQL (0.2ms) INSERT INTO "mno_monsters" ("first_name", "last_name", "email", "provider", "uid", "tenant", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["first_name", "Mon"], ["last_name", "Ster"], ["email", "monster@monst.com"], ["provider", "maestrano"], ["uid", "usr-2"], ["tenant", "default"], ["created_at", "2016-09-20 04:48:20.269166"], ["updated_at", "2016-09-20 04:48:20.269166"]]
39640
+  (0.0ms) RELEASE SAVEPOINT active_record_1
39641
+  (0.1ms) rollback transaction
39642
+ --------------------------------------------------------------------------------------------------------------------------------------------------------
39643
+ MaestranoUserViaTest: test_: class methods find_or_create_for_maestrano class method should not return a MnoMonster from another provider if it exists.
39644
+ --------------------------------------------------------------------------------------------------------------------------------------------------------
39645
+  (0.0ms) begin transaction
39646
+  (0.0ms) commit transaction
39647
+  (0.0ms) begin transaction
39648
+  (0.0ms) SAVEPOINT active_record_1
39649
+ SQL (0.1ms) INSERT INTO "mno_monsters" ("first_name", "last_name", "email", "provider", "uid", "tenant", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["first_name", "John"], ["last_name", "Jack"], ["email", "monster@co.com"], ["provider", "someoneelse"], ["uid", "usr-1"], ["tenant", "default"], ["created_at", "2016-09-20 04:48:20.271139"], ["updated_at", "2016-09-20 04:48:20.271139"]]
39650
+  (0.0ms) RELEASE SAVEPOINT active_record_1
39651
+ MnoMonster Load (0.0ms) SELECT "mno_monsters".* FROM "mno_monsters" WHERE "mno_monsters"."provider" = ? AND "mno_monsters"."uid" = ? AND "mno_monsters"."tenant" = ? ORDER BY "mno_monsters"."id" ASC LIMIT 1 [["provider", "maestrano"], ["uid", "usr-1"], ["tenant", "default"]]
39652
+  (0.0ms) SAVEPOINT active_record_1
39653
+ SQL (0.1ms) INSERT INTO "mno_monsters" ("provider", "uid", "tenant", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["provider", "maestrano"], ["uid", "usr-1"], ["tenant", "default"], ["created_at", "2016-09-20 04:48:20.272460"], ["updated_at", "2016-09-20 04:48:20.272460"]]
39654
+  (0.0ms) RELEASE SAVEPOINT active_record_1
39655
+  (0.1ms) rollback transaction
39656
+ --------------------------------------------------------------------------------------------------------------------------------
39657
+ MaestranoUserViaTest: test_: class methods find_or_create_for_maestrano class method should return the MnoMonster if it exists.
39658
+ --------------------------------------------------------------------------------------------------------------------------------
39659
+  (0.0ms) begin transaction
39660
+  (0.0ms) commit transaction
39661
+  (0.0ms) begin transaction
39662
+  (0.0ms) SAVEPOINT active_record_1
39663
+ SQL (0.1ms) INSERT INTO "mno_monsters" ("first_name", "last_name", "email", "provider", "uid", "tenant", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["first_name", "John"], ["last_name", "Jack"], ["email", "monster@co.com"], ["provider", "maestrano"], ["uid", "usr-1"], ["tenant", "default"], ["created_at", "2016-09-20 04:48:20.273852"], ["updated_at", "2016-09-20 04:48:20.273852"]]
39664
+  (0.0ms) RELEASE SAVEPOINT active_record_1
39665
+ MnoMonster Load (0.0ms) SELECT "mno_monsters".* FROM "mno_monsters" WHERE "mno_monsters"."provider" = ? AND "mno_monsters"."uid" = ? AND "mno_monsters"."tenant" = ? ORDER BY "mno_monsters"."id" ASC LIMIT 1 [["provider", "maestrano"], ["uid", "usr-1"], ["tenant", "default"]]
39666
+  (0.1ms) rollback transaction
39667
+ ---------------------------------------------------------------------------------------------------
39668
+ MaestranoUserViaTest: test_: class methods maestrano_*_via should have the right field definition.
39669
+ ---------------------------------------------------------------------------------------------------
39670
+  (0.0ms) begin transaction
39671
+  (0.0ms) commit transaction
39672
+  (0.0ms) begin transaction
39673
+  (0.0ms) rollback transaction
39674
+ ------------------------------------------------------------------------------------------------------------
39675
+ MaestranoUserViaTest: test_: instance methods maestrano? should return false if provider is something else.
39676
+ ------------------------------------------------------------------------------------------------------------
39677
+  (0.0ms) begin transaction
39678
+  (0.0ms) commit transaction
39679
+  (0.0ms) begin transaction
39680
+  (0.0ms) rollback transaction
39681
+ ----------------------------------------------------------------------------------------------
39682
+ MaestranoUserViaTest: test_: instance methods maestrano? should return false if uid is blank.
39683
+ ----------------------------------------------------------------------------------------------
39684
+  (0.1ms) begin transaction
39685
+  (0.0ms) commit transaction
39686
+  (0.0ms) begin transaction
39687
+  (0.0ms) rollback transaction
39688
+ -----------------------------------------------------------------------------------------------------------------------
39689
+ MaestranoUserViaTest: test_: instance methods maestrano? should return true if provider is maestrano and uid not null.
39690
+ -----------------------------------------------------------------------------------------------------------------------
39691
+  (0.1ms) begin transaction
39692
+  (0.1ms) commit transaction
39693
+  (0.0ms) begin transaction
39694
+  (0.0ms) rollback transaction
39695
+ ---------------------------------------------------------------------------------------------------------------------------------------
39696
+ MaestranoGroupViaTest: test_: class methods find_or_create_for_maestrano class method should create a monster using the mapping block.
39697
+ ---------------------------------------------------------------------------------------------------------------------------------------
39698
+  (0.0ms) begin transaction
39699
+  (0.0ms) commit transaction
39700
+  (0.0ms) begin transaction
39701
+ MnoCrew Load (0.1ms) SELECT "mno_crews".* FROM "mno_crews" WHERE "mno_crews"."provider" = ? AND "mno_crews"."uid" = ? AND "mno_crews"."tenant" = ? ORDER BY "mno_crews"."id" ASC LIMIT 1 [["provider", "maestrano"], ["uid", "usr-2"], ["tenant", "default"]]
39702
+  (0.0ms) SAVEPOINT active_record_1
39703
+ SQL (0.1ms) INSERT INTO "mno_crews" ("name", "provider", "uid", "tenant", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["name", "Monster Co"], ["provider", "maestrano"], ["uid", "usr-2"], ["tenant", "default"], ["created_at", "2016-09-20 04:48:20.283576"], ["updated_at", "2016-09-20 04:48:20.283576"]]
39704
+  (0.0ms) RELEASE SAVEPOINT active_record_1
39705
+  (0.1ms) rollback transaction
39706
+ ------------------------------------------------------------------------------------------------------------------------------------------------------
39707
+ MaestranoGroupViaTest: test_: class methods find_or_create_for_maestrano class method should not return a MnoCrew from another provider if it exists.
39708
+ ------------------------------------------------------------------------------------------------------------------------------------------------------
39709
+  (0.0ms) begin transaction
39710
+  (0.0ms) commit transaction
39711
+  (0.0ms) begin transaction
39712
+  (0.0ms) SAVEPOINT active_record_1
39713
+ SQL (0.1ms) INSERT INTO "mno_crews" ("name", "provider", "uid", "tenant", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["name", "SomeOtherCrew"], ["provider", "someoneelse"], ["uid", "usr-1"], ["tenant", "default"], ["created_at", "2016-09-20 04:48:20.285512"], ["updated_at", "2016-09-20 04:48:20.285512"]]
39714
+  (0.0ms) RELEASE SAVEPOINT active_record_1
39715
+ MnoCrew Load (0.0ms) SELECT "mno_crews".* FROM "mno_crews" WHERE "mno_crews"."provider" = ? AND "mno_crews"."uid" = ? AND "mno_crews"."tenant" = ? ORDER BY "mno_crews"."id" ASC LIMIT 1 [["provider", "maestrano"], ["uid", "cld-1"], ["tenant", "default"]]
39716
+  (0.0ms) SAVEPOINT active_record_1
39717
+ SQL (0.1ms) INSERT INTO "mno_crews" ("name", "provider", "uid", "tenant", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["name", "Your Group"], ["provider", "maestrano"], ["uid", "cld-1"], ["tenant", "default"], ["created_at", "2016-09-20 04:48:20.286825"], ["updated_at", "2016-09-20 04:48:20.286825"]]
39718
+  (0.0ms) RELEASE SAVEPOINT active_record_1
39719
+  (0.1ms) rollback transaction
39720
+ ------------------------------------------------------------------------------------------------------------------------------
39721
+ MaestranoGroupViaTest: test_: class methods find_or_create_for_maestrano class method should return the MnoCrew if it exists.
39722
+ ------------------------------------------------------------------------------------------------------------------------------
39723
+  (0.0ms) begin transaction
39724
+  (0.0ms) commit transaction
39725
+  (0.0ms) begin transaction
39726
+  (0.1ms) SAVEPOINT active_record_1
39727
+ SQL (0.1ms) INSERT INTO "mno_crews" ("name", "provider", "uid", "tenant", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["name", "SomeCrew"], ["provider", "maestrano"], ["uid", "cld-1"], ["tenant", "default"], ["created_at", "2016-09-20 04:48:20.288338"], ["updated_at", "2016-09-20 04:48:20.288338"]]
39728
+  (0.0ms) RELEASE SAVEPOINT active_record_1
39729
+ MnoCrew Load (0.0ms) SELECT "mno_crews".* FROM "mno_crews" WHERE "mno_crews"."provider" = ? AND "mno_crews"."uid" = ? AND "mno_crews"."tenant" = ? ORDER BY "mno_crews"."id" ASC LIMIT 1 [["provider", "maestrano"], ["uid", "cld-1"], ["tenant", "default"]]
39730
+  (0.1ms) rollback transaction
39731
+ ----------------------------------------------------------------------------------------------------
39732
+ MaestranoGroupViaTest: test_: class methods maestrano_*_via should have the right field definition.
39733
+ ----------------------------------------------------------------------------------------------------
39734
+  (0.0ms) begin transaction
39735
+  (0.0ms) commit transaction
39736
+  (0.0ms) begin transaction
39737
+  (0.0ms) rollback transaction
39738
+ -------------------------------------------------------------------------------------------------------------
39739
+ MaestranoGroupViaTest: test_: instance methods maestrano? should return false if provider is something else.
39740
+ -------------------------------------------------------------------------------------------------------------
39741
+  (0.0ms) begin transaction
39742
+  (0.0ms) commit transaction
39743
+  (0.0ms) begin transaction
39744
+  (0.0ms) rollback transaction
39745
+ -----------------------------------------------------------------------------------------------
39746
+ MaestranoGroupViaTest: test_: instance methods maestrano? should return false if uid is blank.
39747
+ -----------------------------------------------------------------------------------------------
39748
+  (0.0ms) begin transaction
39749
+  (0.0ms) commit transaction
39750
+  (0.0ms) begin transaction
39751
+  (0.0ms) rollback transaction
39752
+ ------------------------------------------------------------------------------------------------------------------------
39753
+ MaestranoGroupViaTest: test_: instance methods maestrano? should return true if provider is maestrano and uid not null.
39754
+ ------------------------------------------------------------------------------------------------------------------------
39755
+  (0.0ms) begin transaction
39756
+  (0.0ms) commit transaction
39757
+  (0.0ms) begin transaction
39758
+  (0.0ms) rollback transaction
39759
+ ---------------------------------------------------------------------------------------------------------------------
39760
+ GenericControllerTest: test_: with a maestrano session should be successful if the maestrano session is still valid.
39761
+ ---------------------------------------------------------------------------------------------------------------------
39762
+  (0.0ms) begin transaction
39763
+  (0.0ms) commit transaction
39764
+  (0.1ms) begin transaction
39765
+ Processing by PagesController#home as HTML
39766
+ Rendered pages/home.html.erb within layouts/application (0.8ms)
39767
+ Completed 200 OK in 98ms (Views: 97.9ms | ActiveRecord: 0.0ms)
39768
+  (0.1ms) rollback transaction
39769
+ --------------------------------------------------------------------------------------------------------------------
39770
+ GenericControllerTest: test_: with a maestrano session should initialize redirect to SSO initialization if invalid.
39771
+ --------------------------------------------------------------------------------------------------------------------
39772
+  (0.0ms) begin transaction
39773
+  (0.0ms) commit transaction
39774
+  (0.0ms) begin transaction
39775
+ Processing by PagesController#home as HTML
39776
+ Redirected to http://localhost::3000/maestrano/auth/saml/init
39777
+ Filter chain halted as :verify_maestrano_session rendered or redirected
39778
+ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
39779
+  (0.0ms) rollback transaction
39780
+ -----------------------------------------------------------------------------------------------------------
39781
+ GenericControllerTest: test_: with a maestrano session should not redirect to SSO init if sso is disabled.
39782
+ -----------------------------------------------------------------------------------------------------------
39783
+  (0.0ms) begin transaction
39784
+  (0.0ms) commit transaction
39785
+  (0.0ms) begin transaction
39786
+ Processing by PagesController#home as HTML
39787
+ Rendered pages/home.html.erb within layouts/application (0.0ms)
39788
+ Completed 200 OK in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)
39789
+  (0.0ms) rollback transaction
39790
+ ------------------------------------------------------------------------------
39791
+ GenericControllerTest: test_: with no maestrano session should be successful.
39792
+ ------------------------------------------------------------------------------
39793
+  (0.1ms) begin transaction
39794
+  (0.0ms) commit transaction
39795
+  (0.1ms) begin transaction
39796
+ Processing by PagesController#home as HTML
39797
+ Rendered pages/home.html.erb within layouts/application (0.0ms)
39798
+ Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms)
39799
+  (0.0ms) rollback transaction
39800
+ -------------------------------------------------------------------
39801
+ MetadataControllerTest: test_: authenticated should be successful.
39802
+ -------------------------------------------------------------------
39803
+  (0.0ms) begin transaction
39804
+  (0.0ms) commit transaction
39805
+  (0.0ms) begin transaction
39806
+ Processing by Maestrano::Rails::MetadataController#index as HTML
39807
+ Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)
39808
+  (0.0ms) rollback transaction
39809
+ -------------------------------------------------------------------
39810
+ MetadataControllerTest: test_: unauthenticated should deny access.
39811
+ -------------------------------------------------------------------
39812
+  (0.0ms) begin transaction
39813
+  (0.0ms) commit transaction
39814
+  (0.0ms) begin transaction
39815
+ Processing by Maestrano::Rails::MetadataController#index as HTML
39816
+ Filter chain halted as :authenticate_maestrano! rendered or redirected
39817
+ Completed 401 Unauthorized in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
39818
+  (0.0ms) rollback transaction
39819
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
39820
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
39821
+ ---------------------------------------------------------------------
39822
+ GroupUsersControllerTest: test_: authenticated should be successful.
39823
+ ---------------------------------------------------------------------
39824
+  (0.2ms) begin transaction
39825
+  (0.0ms) commit transaction
39826
+  (0.0ms) begin transaction
39827
+ Processing by Maestrano::Account::GroupUsersController#destroy as HTML
39828
+ Parameters: {"group_id"=>"cld-1", "id"=>"usr-1"}
39829
+ Rendered text template (0.0ms)
39830
+ Completed 200 OK in 5ms (Views: 4.3ms | ActiveRecord: 0.0ms)
39831
+  (0.0ms) rollback transaction
39832
+ ---------------------------------------------------------------------
39833
+ GroupUsersControllerTest: test_: unauthenticated should deny access.
39834
+ ---------------------------------------------------------------------
39835
+  (0.0ms) begin transaction
39836
+  (0.0ms) commit transaction
39837
+  (0.0ms) begin transaction
39838
+ Processing by Maestrano::Account::GroupUsersController#destroy as HTML
39839
+ Parameters: {"group_id"=>"cld-1", "id"=>"usr-1"}
39840
+ Filter chain halted as :authenticate_maestrano! rendered or redirected
39841
+ Completed 401 Unauthorized in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
39842
+  (0.0ms) rollback transaction
39843
+ ---------------------------------------------------------------------------------------
39844
+ InstallGeneratorTest: test_: InstallGenerator should create the maestrano initializer.
39845
+ ---------------------------------------------------------------------------------------
39846
+  (0.0ms) begin transaction
39847
+  (0.0ms) commit transaction
39848
+  (0.0ms) begin transaction
39849
+  (0.1ms) rollback transaction
39850
+ ----------------------------------------------------------------------------------
39851
+ InstallGeneratorTest: test_: InstallGenerator should create the maestrano routes.
39852
+ ----------------------------------------------------------------------------------
39853
+  (0.0ms) begin transaction
39854
+  (0.0ms) commit transaction
39855
+  (0.0ms) begin transaction
39856
+  (0.0ms) rollback transaction
39857
+ ----------------------------------------------------------------------------------------------------------
39858
+ InstallGeneratorTest: test_: InstallGenerator should create the maestrano/account/group_users_controller.
39859
+ ----------------------------------------------------------------------------------------------------------
39860
+  (0.0ms) begin transaction
39861
+  (0.0ms) commit transaction
39862
+  (0.0ms) begin transaction
39863
+  (0.0ms) rollback transaction
39864
+ -----------------------------------------------------------------------------------------------------
39865
+ InstallGeneratorTest: test_: InstallGenerator should create the maestrano/account/groups_controller.
39866
+ -----------------------------------------------------------------------------------------------------
39867
+  (0.0ms) begin transaction
39868
+  (0.0ms) commit transaction
39869
+  (0.0ms) begin transaction
39870
+  (0.0ms) rollback transaction
39871
+ ------------------------------------------------------------------------------------------------
39872
+ InstallGeneratorTest: test_: InstallGenerator should create the maestrano/auth/saml_controller.
39873
+ ------------------------------------------------------------------------------------------------
39874
+  (0.1ms) begin transaction
39875
+  (0.0ms) commit transaction
39876
+  (0.0ms) begin transaction
39877
+  (0.0ms) rollback transaction
39878
+ ---------------------------------------------------------------------------------------------------------------------
39879
+ GenericControllerTest: test_: with a maestrano session should be successful if the maestrano session is still valid.
39880
+ ---------------------------------------------------------------------------------------------------------------------
39881
+  (0.0ms) begin transaction
39882
+  (0.0ms) commit transaction
39883
+  (0.1ms) begin transaction
39884
+ Processing by PagesController#home as HTML
39885
+ Rendered pages/home.html.erb within layouts/application (1.5ms)
39886
+ Completed 200 OK in 103ms (Views: 103.0ms | ActiveRecord: 0.0ms)
39887
+  (0.1ms) rollback transaction
39888
+ --------------------------------------------------------------------------------------------------------------------
39889
+ GenericControllerTest: test_: with a maestrano session should initialize redirect to SSO initialization if invalid.
39890
+ --------------------------------------------------------------------------------------------------------------------
39891
+  (0.0ms) begin transaction
39892
+  (0.0ms) commit transaction
39893
+  (0.0ms) begin transaction
39894
+ Processing by PagesController#home as HTML
39895
+ Rendered pages/home.html.erb within layouts/application (0.0ms)
39896
+ Completed 200 OK in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)
39897
+  (0.0ms) rollback transaction
39898
+ -----------------------------------------------------------------------------------------------------------
39899
+ GenericControllerTest: test_: with a maestrano session should not redirect to SSO init if sso is disabled.
39900
+ -----------------------------------------------------------------------------------------------------------
39901
+  (0.0ms) begin transaction
39902
+  (0.0ms) commit transaction
39903
+  (0.0ms) begin transaction
39904
+ Processing by PagesController#home as HTML
39905
+ Rendered pages/home.html.erb within layouts/application (0.0ms)
39906
+ Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms)
39907
+  (0.0ms) rollback transaction
39908
+ ------------------------------------------------------------------------------
39909
+ GenericControllerTest: test_: with no maestrano session should be successful.
39910
+ ------------------------------------------------------------------------------
39911
+  (0.0ms) begin transaction
39912
+  (0.0ms) commit transaction
39913
+  (0.0ms) begin transaction
39914
+ Processing by PagesController#home as HTML
39915
+ Rendered pages/home.html.erb within layouts/application (0.0ms)
39916
+ Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)
39917
+  (0.0ms) rollback transaction
39918
+ ---------------------------------------------------------------------------------------------------------------------------------------
39919
+ MaestranoGroupViaTest: test_: class methods find_or_create_for_maestrano class method should create a monster using the mapping block.
39920
+ ---------------------------------------------------------------------------------------------------------------------------------------
39921
+  (0.0ms) begin transaction
39922
+  (0.0ms) commit transaction
39923
+  (0.0ms) begin transaction
39924
+ MnoCrew Load (0.2ms) SELECT "mno_crews".* FROM "mno_crews" WHERE "mno_crews"."provider" = ? AND "mno_crews"."uid" = ? AND "mno_crews"."tenant" = ? ORDER BY "mno_crews"."id" ASC LIMIT 1 [["provider", "maestrano"], ["uid", "usr-2"], ["tenant", "default"]]
39925
+  (0.0ms) SAVEPOINT active_record_1
39926
+ SQL (0.2ms) INSERT INTO "mno_crews" ("name", "provider", "uid", "tenant", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["name", "Monster Co"], ["provider", "maestrano"], ["uid", "usr-2"], ["tenant", "default"], ["created_at", "2016-09-20 04:48:24.563927"], ["updated_at", "2016-09-20 04:48:24.563927"]]
39927
+  (0.0ms) RELEASE SAVEPOINT active_record_1
39928
+  (0.1ms) rollback transaction
39929
+ ------------------------------------------------------------------------------------------------------------------------------------------------------
39930
+ MaestranoGroupViaTest: test_: class methods find_or_create_for_maestrano class method should not return a MnoCrew from another provider if it exists.
39931
+ ------------------------------------------------------------------------------------------------------------------------------------------------------
39932
+  (0.0ms) begin transaction
39933
+  (0.0ms) commit transaction
39934
+  (0.0ms) begin transaction
39935
+  (0.0ms) SAVEPOINT active_record_1
39936
+ SQL (0.1ms) INSERT INTO "mno_crews" ("name", "provider", "uid", "tenant", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["name", "SomeOtherCrew"], ["provider", "someoneelse"], ["uid", "usr-1"], ["tenant", "default"], ["created_at", "2016-09-20 04:48:24.566029"], ["updated_at", "2016-09-20 04:48:24.566029"]]
39937
+  (0.0ms) RELEASE SAVEPOINT active_record_1
39938
+ MnoCrew Load (0.0ms) SELECT "mno_crews".* FROM "mno_crews" WHERE "mno_crews"."provider" = ? AND "mno_crews"."uid" = ? AND "mno_crews"."tenant" = ? ORDER BY "mno_crews"."id" ASC LIMIT 1 [["provider", "maestrano"], ["uid", "cld-1"], ["tenant", "default"]]
39939
+  (0.0ms) SAVEPOINT active_record_1
39940
+ SQL (0.1ms) INSERT INTO "mno_crews" ("name", "provider", "uid", "tenant", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["name", "Your Group"], ["provider", "maestrano"], ["uid", "cld-1"], ["tenant", "default"], ["created_at", "2016-09-20 04:48:24.567242"], ["updated_at", "2016-09-20 04:48:24.567242"]]
39941
+  (0.0ms) RELEASE SAVEPOINT active_record_1
39942
+  (0.1ms) rollback transaction
39943
+ ------------------------------------------------------------------------------------------------------------------------------
39944
+ MaestranoGroupViaTest: test_: class methods find_or_create_for_maestrano class method should return the MnoCrew if it exists.
39945
+ ------------------------------------------------------------------------------------------------------------------------------
39946
+  (0.0ms) begin transaction
39947
+  (0.0ms) commit transaction
39948
+  (0.1ms) begin transaction
39949
+  (0.0ms) SAVEPOINT active_record_1
39950
+ SQL (0.1ms) INSERT INTO "mno_crews" ("name", "provider", "uid", "tenant", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["name", "SomeCrew"], ["provider", "maestrano"], ["uid", "cld-1"], ["tenant", "default"], ["created_at", "2016-09-20 04:48:24.568677"], ["updated_at", "2016-09-20 04:48:24.568677"]]
39951
+  (0.0ms) RELEASE SAVEPOINT active_record_1
39952
+ MnoCrew Load (0.0ms) SELECT "mno_crews".* FROM "mno_crews" WHERE "mno_crews"."provider" = ? AND "mno_crews"."uid" = ? AND "mno_crews"."tenant" = ? ORDER BY "mno_crews"."id" ASC LIMIT 1 [["provider", "maestrano"], ["uid", "cld-1"], ["tenant", "default"]]
39953
+  (0.1ms) rollback transaction
39954
+ ----------------------------------------------------------------------------------------------------
39955
+ MaestranoGroupViaTest: test_: class methods maestrano_*_via should have the right field definition.
39956
+ ----------------------------------------------------------------------------------------------------
39957
+  (0.0ms) begin transaction
39958
+  (0.0ms) commit transaction
39959
+  (0.0ms) begin transaction
39960
+  (0.0ms) rollback transaction
39961
+ -------------------------------------------------------------------------------------------------------------
39962
+ MaestranoGroupViaTest: test_: instance methods maestrano? should return false if provider is something else.
39963
+ -------------------------------------------------------------------------------------------------------------
39964
+  (0.0ms) begin transaction
39965
+  (0.0ms) commit transaction
39966
+  (0.0ms) begin transaction
39967
+  (0.0ms) rollback transaction
39968
+ -----------------------------------------------------------------------------------------------
39969
+ MaestranoGroupViaTest: test_: instance methods maestrano? should return false if uid is blank.
39970
+ -----------------------------------------------------------------------------------------------
39971
+  (0.0ms) begin transaction
39972
+  (0.0ms) commit transaction
39973
+  (0.0ms) begin transaction
39974
+  (0.0ms) rollback transaction
39975
+ ------------------------------------------------------------------------------------------------------------------------
39976
+ MaestranoGroupViaTest: test_: instance methods maestrano? should return true if provider is maestrano and uid not null.
39977
+ ------------------------------------------------------------------------------------------------------------------------
39978
+  (0.0ms) begin transaction
39979
+  (0.0ms) commit transaction
39980
+  (0.0ms) begin transaction
39981
+  (0.0ms) rollback transaction
39982
+ ------------------------------
39983
+ MaestranoRailsTest: test_truth
39984
+ ------------------------------
39985
+  (0.1ms) begin transaction
39986
+  (0.0ms) commit transaction
39987
+  (0.0ms) begin transaction
39988
+  (0.0ms) rollback transaction
39989
+ --------------------------------------------------------------------------------------------------------------------------------------
39990
+ MaestranoUserViaTest: test_: class methods find_or_create_for_maestrano class method should create a monster using the mapping block.
39991
+ --------------------------------------------------------------------------------------------------------------------------------------
39992
+  (0.0ms) begin transaction
39993
+  (0.0ms) commit transaction
39994
+  (0.0ms) begin transaction
39995
+ MnoMonster Load (0.2ms) SELECT "mno_monsters".* FROM "mno_monsters" WHERE "mno_monsters"."provider" = ? AND "mno_monsters"."uid" = ? AND "mno_monsters"."tenant" = ? ORDER BY "mno_monsters"."id" ASC LIMIT 1 [["provider", "maestrano"], ["uid", "usr-2"], ["tenant", "default"]]
39996
+  (0.0ms) SAVEPOINT active_record_1
39997
+ SQL (0.1ms) INSERT INTO "mno_monsters" ("first_name", "last_name", "email", "provider", "uid", "tenant", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["first_name", "Mon"], ["last_name", "Ster"], ["email", "monster@monst.com"], ["provider", "maestrano"], ["uid", "usr-2"], ["tenant", "default"], ["created_at", "2016-09-20 04:48:24.581904"], ["updated_at", "2016-09-20 04:48:24.581904"]]
39998
+  (0.0ms) RELEASE SAVEPOINT active_record_1
39999
+  (0.1ms) rollback transaction
40000
+ --------------------------------------------------------------------------------------------------------------------------------------------------------
40001
+ MaestranoUserViaTest: test_: class methods find_or_create_for_maestrano class method should not return a MnoMonster from another provider if it exists.
40002
+ --------------------------------------------------------------------------------------------------------------------------------------------------------
40003
+  (0.0ms) begin transaction
40004
+  (0.0ms) commit transaction
40005
+  (0.0ms) begin transaction
40006
+  (0.0ms) SAVEPOINT active_record_1
40007
+ SQL (0.1ms) INSERT INTO "mno_monsters" ("first_name", "last_name", "email", "provider", "uid", "tenant", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["first_name", "John"], ["last_name", "Jack"], ["email", "monster@co.com"], ["provider", "someoneelse"], ["uid", "usr-1"], ["tenant", "default"], ["created_at", "2016-09-20 04:48:24.583921"], ["updated_at", "2016-09-20 04:48:24.583921"]]
40008
+  (0.0ms) RELEASE SAVEPOINT active_record_1
40009
+ MnoMonster Load (0.0ms) SELECT "mno_monsters".* FROM "mno_monsters" WHERE "mno_monsters"."provider" = ? AND "mno_monsters"."uid" = ? AND "mno_monsters"."tenant" = ? ORDER BY "mno_monsters"."id" ASC LIMIT 1 [["provider", "maestrano"], ["uid", "usr-1"], ["tenant", "default"]]
40010
+  (0.0ms) SAVEPOINT active_record_1
40011
+ SQL (0.1ms) INSERT INTO "mno_monsters" ("provider", "uid", "tenant", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["provider", "maestrano"], ["uid", "usr-1"], ["tenant", "default"], ["created_at", "2016-09-20 04:48:24.585396"], ["updated_at", "2016-09-20 04:48:24.585396"]]
40012
+  (0.0ms) RELEASE SAVEPOINT active_record_1
40013
+  (0.1ms) rollback transaction
40014
+ --------------------------------------------------------------------------------------------------------------------------------
40015
+ MaestranoUserViaTest: test_: class methods find_or_create_for_maestrano class method should return the MnoMonster if it exists.
40016
+ --------------------------------------------------------------------------------------------------------------------------------
40017
+  (0.0ms) begin transaction
40018
+  (0.0ms) commit transaction
40019
+  (0.0ms) begin transaction
40020
+  (0.0ms) SAVEPOINT active_record_1
40021
+ SQL (0.1ms) INSERT INTO "mno_monsters" ("first_name", "last_name", "email", "provider", "uid", "tenant", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["first_name", "John"], ["last_name", "Jack"], ["email", "monster@co.com"], ["provider", "maestrano"], ["uid", "usr-1"], ["tenant", "default"], ["created_at", "2016-09-20 04:48:24.586914"], ["updated_at", "2016-09-20 04:48:24.586914"]]
40022
+  (0.0ms) RELEASE SAVEPOINT active_record_1
40023
+ MnoMonster Load (0.0ms) SELECT "mno_monsters".* FROM "mno_monsters" WHERE "mno_monsters"."provider" = ? AND "mno_monsters"."uid" = ? AND "mno_monsters"."tenant" = ? ORDER BY "mno_monsters"."id" ASC LIMIT 1 [["provider", "maestrano"], ["uid", "usr-1"], ["tenant", "default"]]
40024
+  (0.1ms) rollback transaction
40025
+ ---------------------------------------------------------------------------------------------------
40026
+ MaestranoUserViaTest: test_: class methods maestrano_*_via should have the right field definition.
40027
+ ---------------------------------------------------------------------------------------------------
40028
+  (0.0ms) begin transaction
40029
+  (0.0ms) commit transaction
40030
+  (0.0ms) begin transaction
40031
+  (0.0ms) rollback transaction
40032
+ ------------------------------------------------------------------------------------------------------------
40033
+ MaestranoUserViaTest: test_: instance methods maestrano? should return false if provider is something else.
40034
+ ------------------------------------------------------------------------------------------------------------
40035
+  (0.0ms) begin transaction
40036
+  (0.0ms) commit transaction
40037
+  (0.0ms) begin transaction
40038
+  (0.0ms) rollback transaction
40039
+ ----------------------------------------------------------------------------------------------
40040
+ MaestranoUserViaTest: test_: instance methods maestrano? should return false if uid is blank.
40041
+ ----------------------------------------------------------------------------------------------
40042
+  (0.0ms) begin transaction
40043
+  (0.0ms) commit transaction
40044
+  (0.0ms) begin transaction
40045
+  (0.0ms) rollback transaction
40046
+ -----------------------------------------------------------------------------------------------------------------------
40047
+ MaestranoUserViaTest: test_: instance methods maestrano? should return true if provider is maestrano and uid not null.
40048
+ -----------------------------------------------------------------------------------------------------------------------
40049
+  (0.0ms) begin transaction
40050
+  (0.0ms) commit transaction
40051
+  (0.0ms) begin transaction
40052
+  (0.0ms) rollback transaction
40053
+ ----------------------------------------------------------------------------------------------
40054
+ SamlBaseControllerTest: test_: consume phase error should redirect to maestrano on any error.
40055
+ ----------------------------------------------------------------------------------------------
40056
+  (0.0ms) begin transaction
40057
+  (0.0ms) commit transaction
40058
+  (0.0ms) begin transaction
40059
+ Processing by Maestrano::Auth::SamlController#consume as HTML
40060
+ Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"}
40061
+ Cannot validate SAML response: Bla
40062
+ Trace: ["/home/bruno/.rvm/gems/ruby-2.3.1/gems/mocha-1.1.0/lib/mocha/exception_raiser.rb:12:in `evaluate'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/mocha-1.1.0/lib/mocha/return_values.rb:20:in `next'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/mocha-1.1.0/lib/mocha/expectation.rb:569:in `invoke'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/mocha-1.1.0/lib/mocha/mock.rb:296:in `method_missing'", "/home/bruno/Workspace/maestrano-rails/app/controllers/maestrano/rails/saml_base_controller.rb:35:in `process_saml_response'", "/home/bruno/Workspace/maestrano-rails/app/controllers/maestrano/rails/saml_base_controller.rb:18:in `saml_response_transaction'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:432:in `block in make_lambda'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:291:in `block in halting_and_conditional'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:497:in `block in around'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:505:in `call'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:92:in `__run_callbacks__'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:778:in `_run_process_action_callbacks'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:81:in `run_callbacks'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionpack-4.2.7.1/lib/abstract_controller/callbacks.rb:19:in `process_action'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionpack-4.2.7.1/lib/action_controller/metal/rescue.rb:29:in `process_action'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionpack-4.2.7.1/lib/action_controller/metal/instrumentation.rb:32:in `block in process_action'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-4.2.7.1/lib/active_support/notifications.rb:164:in `block in instrument'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-4.2.7.1/lib/active_support/notifications/instrumenter.rb:20:in `instrument'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-4.2.7.1/lib/active_support/notifications.rb:164:in `instrument'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionpack-4.2.7.1/lib/action_controller/metal/instrumentation.rb:30:in `process_action'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionpack-4.2.7.1/lib/action_controller/metal/params_wrapper.rb:250:in `process_action'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activerecord-4.2.7.1/lib/active_record/railties/controller_runtime.rb:18:in `process_action'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionpack-4.2.7.1/lib/abstract_controller/base.rb:137:in `process'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionview-4.2.7.1/lib/action_view/rendering.rb:30:in `process'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionpack-4.2.7.1/lib/action_controller/test_case.rb:639:in `process'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionpack-4.2.7.1/lib/action_controller/test_case.rb:67:in `process'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionpack-4.2.7.1/lib/action_controller/test_case.rb:520:in `post'", "/home/bruno/Workspace/maestrano-rails/test/controllers/saml_controller_test.rb:117:in `block (3 levels) in <class:SamlBaseControllerTest>'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/shoulda-context-1.2.1/lib/shoulda/context/context.rb:413:in `instance_exec'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/shoulda-context-1.2.1/lib/shoulda/context/context.rb:413:in `block in create_test_from_should_hash'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest/test.rb:107:in `block (3 levels) in run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest/test.rb:204:in `capture_exceptions'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest/test.rb:104:in `block (2 levels) in run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest/test.rb:255:in `time_it'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest/test.rb:103:in `block in run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:348:in `on_signal'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest/test.rb:275:in `with_info_handler'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest/test.rb:102:in `run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:799:in `run_one_method'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:322:in `run_one_method'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:310:in `block (2 levels) in run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:309:in `each'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:309:in `block in run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:348:in `on_signal'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:335:in `with_info_handler'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:308:in `run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:158:in `block in __run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:158:in `map'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:158:in `__run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:135:in `run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:62:in `block in autorun'"]
40063
+ Redirected to http://api-sandbox.maestrano.io/app_access_unauthorized?err=internal
40064
+ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
40065
+  (0.0ms) rollback transaction
40066
+ --------------------------------------------------------------------------------------------------------------------
40067
+ SamlBaseControllerTest: test_: consume phase should reset the maestrano session successfully if one already exists.
40068
+ --------------------------------------------------------------------------------------------------------------------
40069
+  (0.0ms) begin transaction
40070
+  (0.0ms) commit transaction
40071
+  (0.0ms) begin transaction
40072
+ Processing by Maestrano::Auth::SamlController#consume as HTML
40073
+ Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"}
40074
+ Redirected to http://test.host/
40075
+ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
40076
+  (0.0ms) rollback transaction
40077
+ ---------------------------------------------------------------------------------
40078
+ SamlBaseControllerTest: test_: consume phase should set a saml_request in scope.
40079
+ ---------------------------------------------------------------------------------
40080
+  (0.0ms) begin transaction
40081
+  (0.0ms) commit transaction
40082
+  (0.0ms) begin transaction
40083
+ Processing by Maestrano::Auth::SamlController#consume as HTML
40084
+ Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"}
40085
+ Redirected to http://test.host/
40086
+ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
40087
+  (0.0ms) rollback transaction
40088
+ --------------------------------------------------------------------------------------
40089
+ SamlBaseControllerTest: test_: consume phase should set the group_auth_hash in scope.
40090
+ --------------------------------------------------------------------------------------
40091
+  (0.0ms) begin transaction
40092
+  (0.0ms) commit transaction
40093
+  (0.0ms) begin transaction
40094
+ Processing by Maestrano::Auth::SamlController#consume as HTML
40095
+ Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"}
40096
+ Redirected to http://test.host/
40097
+ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
40098
+  (0.0ms) rollback transaction
40099
+ -------------------------------------------------------------------------------
40100
+ SamlBaseControllerTest: test_: consume phase should set the maestrano session.
40101
+ -------------------------------------------------------------------------------
40102
+  (0.0ms) begin transaction
40103
+  (0.0ms) commit transaction
40104
+  (0.0ms) begin transaction
40105
+ Processing by Maestrano::Auth::SamlController#consume as HTML
40106
+ Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"}
40107
+ Redirected to http://test.host/
40108
+ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
40109
+  (0.0ms) rollback transaction
40110
+ -------------------------------------------------------------------------------------
40111
+ SamlBaseControllerTest: test_: consume phase should set the user_auth_hash in scope.
40112
+ -------------------------------------------------------------------------------------
40113
+  (0.0ms) begin transaction
40114
+  (0.0ms) commit transaction
40115
+  (0.0ms) begin transaction
40116
+ Processing by Maestrano::Auth::SamlController#consume as HTML
40117
+ Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"}
40118
+ Redirected to http://test.host/
40119
+ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
40120
+  (0.0ms) rollback transaction
40121
+ ------------------------------------------------------------------------------------------
40122
+ SamlBaseControllerTest: test_: consume phase should set the user_group_rel_hash in scope.
40123
+ ------------------------------------------------------------------------------------------
40124
+  (0.0ms) begin transaction
40125
+  (0.0ms) commit transaction
40126
+  (0.0ms) begin transaction
40127
+ Processing by Maestrano::Auth::SamlController#consume as HTML
40128
+ Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"}
40129
+ Redirected to http://test.host/
40130
+ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
40131
+  (0.1ms) rollback transaction
40132
+ ---------------------------------------------------------------------------------------------------------------------------
40133
+ SamlBaseControllerTest: test_: init phase should create a saml request successfully if a maestrano session is already set.
40134
+ ---------------------------------------------------------------------------------------------------------------------------
40135
+  (0.0ms) begin transaction
40136
+  (0.0ms) commit transaction
40137
+  (0.0ms) begin transaction
40138
+ Processing by Maestrano::Auth::SamlController#init as HTML
40139
+ Parameters: {"a_param"=>"value"}
40140
+ Redirected to http://idpprovider.com?r=request
40141
+ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
40142
+  (0.1ms) rollback transaction
40143
+ -----------------------------------------------------------------------------------------------------------------------
40144
+ SamlBaseControllerTest: test_: init phase should create a saml request using params and session and redirect the user.
40145
+ -----------------------------------------------------------------------------------------------------------------------
40146
+  (0.1ms) begin transaction
40147
+  (0.0ms) commit transaction
40148
+  (0.0ms) begin transaction
40149
+ Processing by Maestrano::Auth::SamlController#init as HTML
40150
+ Parameters: {"a_param"=>"value"}
40151
+ Redirected to http://idpprovider.com?r=request
40152
+ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
40153
+  (0.1ms) rollback transaction
40154
+ ----------------------------------------------------------------------------------------------------------
40155
+ GroupGeneratorTest: test_: GroupGenerator should call the active_record migration generator successfully.
40156
+ ----------------------------------------------------------------------------------------------------------
40157
+  (0.0ms) begin transaction
40158
+  (0.0ms) commit transaction
40159
+  (0.1ms) begin transaction
40160
+  (0.1ms) rollback transaction
40161
+ ----------------------------------------------------------------------------------------------------
40162
+ GroupGeneratorTest: test_: GroupGenerator should call the mongoid migration generator successfully.
40163
+ ----------------------------------------------------------------------------------------------------
40164
+  (0.0ms) begin transaction
40165
+  (0.0ms) commit transaction
40166
+  (0.0ms) begin transaction
40167
+  (0.0ms) rollback transaction
40168
+ --------------------------------------------------------------------------------------------------------
40169
+ UserGeneratorTest: test_: UserGenerator should call the active_record migration generator successfully.
40170
+ --------------------------------------------------------------------------------------------------------
40171
+  (0.0ms) begin transaction
40172
+  (0.0ms) commit transaction
40173
+  (0.0ms) begin transaction
40174
+  (0.1ms) rollback transaction
40175
+ --------------------------------------------------------------------------------------------------
40176
+ UserGeneratorTest: test_: UserGenerator should call the mongoid migration generator successfully.
40177
+ --------------------------------------------------------------------------------------------------
40178
+  (0.1ms) begin transaction
40179
+  (0.0ms) commit transaction
40180
+  (0.0ms) begin transaction
40181
+  (0.1ms) rollback transaction
40182
+ -------------------------------------------------------------------------------------------
40183
+ ActiveRecordGroupGeneratorTest: test_: namespaced model should create the right migration.
40184
+ -------------------------------------------------------------------------------------------
40185
+  (0.0ms) begin transaction
40186
+  (0.0ms) commit transaction
40187
+  (0.0ms) begin transaction
40188
+  (0.0ms) rollback transaction
40189
+ ---------------------------------------------------------------------------------------
40190
+ ActiveRecordGroupGeneratorTest: test_: namespaced model should edit the model content.
40191
+ ---------------------------------------------------------------------------------------
40192
+  (0.0ms) begin transaction
40193
+  (0.0ms) commit transaction
40194
+  (0.0ms) begin transaction
40195
+  (0.0ms) rollback transaction
40196
+ ---------------------------------------------------------------------------------------
40197
+ ActiveRecordGroupGeneratorTest: test_: normal model should create the right migration.
40198
+ ---------------------------------------------------------------------------------------
40199
+  (0.0ms) begin transaction
40200
+  (0.0ms) commit transaction
40201
+  (0.0ms) begin transaction
40202
+  (0.0ms) rollback transaction
40203
+ -----------------------------------------------------------------------------------
40204
+ ActiveRecordGroupGeneratorTest: test_: normal model should edit the model content.
40205
+ -----------------------------------------------------------------------------------
40206
+  (0.0ms) begin transaction
40207
+  (0.0ms) commit transaction
40208
+  (0.0ms) begin transaction
40209
+  (0.0ms) rollback transaction
40210
+ ---------------------------------------------------------------------------------------------------------------------------
40211
+ ActiveRecordGroupGeneratorTest: test_: normal model should include parameters if rails 3 and strong_parameter not present.
40212
+ ---------------------------------------------------------------------------------------------------------------------------
40213
+  (0.0ms) begin transaction
40214
+  (0.0ms) commit transaction
40215
+  (0.0ms) begin transaction
40216
+  (0.0ms) rollback transaction
40217
+ ---------------------------------------------------------------------------------------------------------------------------
40218
+ ActiveRecordGroupGeneratorTest: test_: normal model should not include parameters if rails 3 and strong_parameter present.
40219
+ ---------------------------------------------------------------------------------------------------------------------------
40220
+  (0.0ms) begin transaction
40221
+  (0.0ms) commit transaction
40222
+  (0.0ms) begin transaction
40223
+  (0.0ms) rollback transaction
40224
+ ----------------------------------------------------------------------------------------------
40225
+ ActiveRecordGroupGeneratorTest: test_: normal model should not include parameters in rails 4.
40226
+ ----------------------------------------------------------------------------------------------
40227
+  (0.0ms) begin transaction
40228
+  (0.0ms) commit transaction
40229
+  (0.0ms) begin transaction
40230
+  (0.0ms) rollback transaction
40231
+ ------------------------------------------------------------------------------------------
40232
+ ActiveRecordUserGeneratorTest: test_: namespaced model should create the right migration.
40233
+ ------------------------------------------------------------------------------------------
40234
+  (0.1ms) begin transaction
40235
+  (0.0ms) commit transaction
40236
+  (0.0ms) begin transaction
40237
+  (0.1ms) rollback transaction
40238
+ --------------------------------------------------------------------------------------
40239
+ ActiveRecordUserGeneratorTest: test_: namespaced model should edit the model content.
40240
+ --------------------------------------------------------------------------------------
40241
+  (0.0ms) begin transaction
40242
+  (0.0ms) commit transaction
40243
+  (0.0ms) begin transaction
40244
+  (0.0ms) rollback transaction
40245
+ --------------------------------------------------------------------------------------
40246
+ ActiveRecordUserGeneratorTest: test_: normal model should create the right migration.
40247
+ --------------------------------------------------------------------------------------
40248
+  (0.0ms) begin transaction
40249
+  (0.0ms) commit transaction
40250
+  (0.0ms) begin transaction
40251
+  (0.0ms) rollback transaction
40252
+ ----------------------------------------------------------------------------------
40253
+ ActiveRecordUserGeneratorTest: test_: normal model should edit the model content.
40254
+ ----------------------------------------------------------------------------------
40255
+  (0.1ms) begin transaction
40256
+  (0.0ms) commit transaction
40257
+  (0.0ms) begin transaction
40258
+  (0.0ms) rollback transaction
40259
+ --------------------------------------------------------------------------------------------------------------------------
40260
+ ActiveRecordUserGeneratorTest: test_: normal model should include parameters if rails 3 and strong_parameter not present.
40261
+ --------------------------------------------------------------------------------------------------------------------------
40262
+  (0.0ms) begin transaction
40263
+  (0.0ms) commit transaction
40264
+  (0.0ms) begin transaction
40265
+  (0.0ms) rollback transaction
40266
+ --------------------------------------------------------------------------------------------------------------------------
40267
+ ActiveRecordUserGeneratorTest: test_: normal model should not include parameters if rails 3 and strong_parameter present.
40268
+ --------------------------------------------------------------------------------------------------------------------------
40269
+  (0.0ms) begin transaction
40270
+  (0.0ms) commit transaction
40271
+  (0.0ms) begin transaction
40272
+  (0.0ms) rollback transaction
40273
+ ---------------------------------------------------------------------------------------------
40274
+ ActiveRecordUserGeneratorTest: test_: normal model should not include parameters in rails 4.
40275
+ ---------------------------------------------------------------------------------------------
40276
+  (0.0ms) begin transaction
40277
+  (0.0ms) commit transaction
40278
+  (0.0ms) begin transaction
40279
+  (0.0ms) rollback transaction
40280
+ -------------------------------------------------------------------
40281
+ MetadataControllerTest: test_: authenticated should be successful.
40282
+ -------------------------------------------------------------------
40283
+  (0.0ms) begin transaction
40284
+  (0.0ms) commit transaction
40285
+  (0.0ms) begin transaction
40286
+ Processing by Maestrano::Rails::MetadataController#index as HTML
40287
+ Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)
40288
+  (0.0ms) rollback transaction
40289
+ -------------------------------------------------------------------
40290
+ MetadataControllerTest: test_: unauthenticated should deny access.
40291
+ -------------------------------------------------------------------
40292
+  (0.0ms) begin transaction
40293
+  (0.0ms) commit transaction
40294
+  (0.1ms) begin transaction
40295
+ Processing by Maestrano::Rails::MetadataController#index as HTML
40296
+ Filter chain halted as :authenticate_maestrano! rendered or redirected
40297
+ Completed 401 Unauthorized in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
40298
+  (0.0ms) rollback transaction
40299
+ -----------------------------------------------------------------
40300
+ GroupsControllerTest: test_: authenticated should be successful.
40301
+ -----------------------------------------------------------------
40302
+  (0.0ms) begin transaction
40303
+  (0.0ms) commit transaction
40304
+  (0.0ms) begin transaction
40305
+ Processing by Maestrano::Account::GroupsController#destroy as HTML
40306
+ Parameters: {"id"=>"cld-1"}
40307
+ Rendered text template (0.0ms)
40308
+ Completed 200 OK in 3ms (Views: 2.2ms | ActiveRecord: 0.0ms)
40309
+  (0.1ms) rollback transaction
40310
+ -----------------------------------------------------------------
40311
+ GroupsControllerTest: test_: unauthenticated should deny access.
40312
+ -----------------------------------------------------------------
40313
+  (0.0ms) begin transaction
40314
+  (0.0ms) commit transaction
40315
+  (0.0ms) begin transaction
40316
+ Processing by Maestrano::Account::GroupsController#destroy as HTML
40317
+ Parameters: {"id"=>"cld-1"}
40318
+ Filter chain halted as :authenticate_maestrano! rendered or redirected
40319
+ Completed 401 Unauthorized in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
40320
+  (0.1ms) rollback transaction
40321
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
40322
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
40323
+ -------------------------------------------------------------------
40324
+ MetadataControllerTest: test_: authenticated should be successful.
40325
+ -------------------------------------------------------------------
40326
+  (0.1ms) begin transaction
40327
+  (0.0ms) commit transaction
40328
+  (0.0ms) begin transaction
40329
+ Processing by Maestrano::Rails::MetadataController#index as HTML
40330
+ Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)
40331
+  (0.0ms) rollback transaction
40332
+ -------------------------------------------------------------------
40333
+ MetadataControllerTest: test_: unauthenticated should deny access.
40334
+ -------------------------------------------------------------------
40335
+  (0.0ms) begin transaction
40336
+  (0.0ms) commit transaction
40337
+  (0.0ms) begin transaction
40338
+ Processing by Maestrano::Rails::MetadataController#index as HTML
40339
+ Filter chain halted as :authenticate_maestrano! rendered or redirected
40340
+ Completed 401 Unauthorized in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
40341
+  (0.0ms) rollback transaction
40342
+ ---------------------------------------------------------------------------------------
40343
+ InstallGeneratorTest: test_: InstallGenerator should create the maestrano initializer.
40344
+ ---------------------------------------------------------------------------------------
40345
+  (0.0ms) begin transaction
40346
+  (0.0ms) commit transaction
40347
+  (0.0ms) begin transaction
40348
+  (0.0ms) rollback transaction
40349
+ ----------------------------------------------------------------------------------
40350
+ InstallGeneratorTest: test_: InstallGenerator should create the maestrano routes.
40351
+ ----------------------------------------------------------------------------------
40352
+  (0.0ms) begin transaction
40353
+  (0.0ms) commit transaction
40354
+  (0.0ms) begin transaction
40355
+  (0.0ms) rollback transaction
40356
+ ----------------------------------------------------------------------------------------------------------
40357
+ InstallGeneratorTest: test_: InstallGenerator should create the maestrano/account/group_users_controller.
40358
+ ----------------------------------------------------------------------------------------------------------
40359
+  (0.0ms) begin transaction
40360
+  (0.0ms) commit transaction
40361
+  (0.0ms) begin transaction
40362
+  (0.0ms) rollback transaction
40363
+ -----------------------------------------------------------------------------------------------------
40364
+ InstallGeneratorTest: test_: InstallGenerator should create the maestrano/account/groups_controller.
40365
+ -----------------------------------------------------------------------------------------------------
40366
+  (0.0ms) begin transaction
40367
+  (0.0ms) commit transaction
40368
+  (0.0ms) begin transaction
40369
+  (0.1ms) rollback transaction
40370
+ ------------------------------------------------------------------------------------------------
40371
+ InstallGeneratorTest: test_: InstallGenerator should create the maestrano/auth/saml_controller.
40372
+ ------------------------------------------------------------------------------------------------
40373
+  (0.0ms) begin transaction
40374
+  (0.0ms) commit transaction
40375
+  (0.0ms) begin transaction
40376
+  (0.0ms) rollback transaction
40377
+ --------------------------------------------------------------------------------------------------------------------------------------
40378
+ MaestranoUserViaTest: test_: class methods find_or_create_for_maestrano class method should create a monster using the mapping block.
40379
+ --------------------------------------------------------------------------------------------------------------------------------------
40380
+  (0.1ms) begin transaction
40381
+  (0.0ms) commit transaction
40382
+  (0.0ms) begin transaction
40383
+ MnoMonster Load (0.2ms) SELECT "mno_monsters".* FROM "mno_monsters" WHERE "mno_monsters"."provider" = ? AND "mno_monsters"."uid" = ? AND "mno_monsters"."tenant" = ? ORDER BY "mno_monsters"."id" ASC LIMIT 1 [["provider", "maestrano"], ["uid", "usr-2"], ["tenant", "default"]]
40384
+  (0.1ms) SAVEPOINT active_record_1
40385
+ SQL (0.2ms) INSERT INTO "mno_monsters" ("first_name", "last_name", "email", "provider", "uid", "tenant", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["first_name", "Mon"], ["last_name", "Ster"], ["email", "monster@monst.com"], ["provider", "maestrano"], ["uid", "usr-2"], ["tenant", "default"], ["created_at", "2016-09-20 07:02:52.581055"], ["updated_at", "2016-09-20 07:02:52.581055"]]
40386
+  (0.0ms) RELEASE SAVEPOINT active_record_1
40387
+  (0.1ms) rollback transaction
40388
+ --------------------------------------------------------------------------------------------------------------------------------------------------------
40389
+ MaestranoUserViaTest: test_: class methods find_or_create_for_maestrano class method should not return a MnoMonster from another provider if it exists.
40390
+ --------------------------------------------------------------------------------------------------------------------------------------------------------
40391
+  (0.0ms) begin transaction
40392
+  (0.0ms) commit transaction
40393
+  (0.0ms) begin transaction
40394
+  (0.0ms) SAVEPOINT active_record_1
40395
+ SQL (0.1ms) INSERT INTO "mno_monsters" ("first_name", "last_name", "email", "provider", "uid", "tenant", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["first_name", "John"], ["last_name", "Jack"], ["email", "monster@co.com"], ["provider", "someoneelse"], ["uid", "usr-1"], ["tenant", "default"], ["created_at", "2016-09-20 07:02:52.583131"], ["updated_at", "2016-09-20 07:02:52.583131"]]
40396
+  (0.0ms) RELEASE SAVEPOINT active_record_1
40397
+ MnoMonster Load (0.0ms) SELECT "mno_monsters".* FROM "mno_monsters" WHERE "mno_monsters"."provider" = ? AND "mno_monsters"."uid" = ? AND "mno_monsters"."tenant" = ? ORDER BY "mno_monsters"."id" ASC LIMIT 1 [["provider", "maestrano"], ["uid", "usr-1"], ["tenant", "default"]]
40398
+  (0.0ms) SAVEPOINT active_record_1
40399
+ SQL (0.1ms) INSERT INTO "mno_monsters" ("provider", "uid", "tenant", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["provider", "maestrano"], ["uid", "usr-1"], ["tenant", "default"], ["created_at", "2016-09-20 07:02:52.584472"], ["updated_at", "2016-09-20 07:02:52.584472"]]
40400
+  (0.0ms) RELEASE SAVEPOINT active_record_1
40401
+  (0.1ms) rollback transaction
40402
+ --------------------------------------------------------------------------------------------------------------------------------
40403
+ MaestranoUserViaTest: test_: class methods find_or_create_for_maestrano class method should return the MnoMonster if it exists.
40404
+ --------------------------------------------------------------------------------------------------------------------------------
40405
+  (0.0ms) begin transaction
40406
+  (0.0ms) commit transaction
40407
+  (0.0ms) begin transaction
40408
+  (0.0ms) SAVEPOINT active_record_1
40409
+ SQL (0.1ms) INSERT INTO "mno_monsters" ("first_name", "last_name", "email", "provider", "uid", "tenant", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["first_name", "John"], ["last_name", "Jack"], ["email", "monster@co.com"], ["provider", "maestrano"], ["uid", "usr-1"], ["tenant", "default"], ["created_at", "2016-09-20 07:02:52.585872"], ["updated_at", "2016-09-20 07:02:52.585872"]]
40410
+  (0.0ms) RELEASE SAVEPOINT active_record_1
40411
+ MnoMonster Load (0.0ms) SELECT "mno_monsters".* FROM "mno_monsters" WHERE "mno_monsters"."provider" = ? AND "mno_monsters"."uid" = ? AND "mno_monsters"."tenant" = ? ORDER BY "mno_monsters"."id" ASC LIMIT 1 [["provider", "maestrano"], ["uid", "usr-1"], ["tenant", "default"]]
40412
+  (0.1ms) rollback transaction
40413
+ ---------------------------------------------------------------------------------------------------
40414
+ MaestranoUserViaTest: test_: class methods maestrano_*_via should have the right field definition.
40415
+ ---------------------------------------------------------------------------------------------------
40416
+  (0.0ms) begin transaction
40417
+  (0.0ms) commit transaction
40418
+  (0.0ms) begin transaction
40419
+  (0.0ms) rollback transaction
40420
+ ------------------------------------------------------------------------------------------------------------
40421
+ MaestranoUserViaTest: test_: instance methods maestrano? should return false if provider is something else.
40422
+ ------------------------------------------------------------------------------------------------------------
40423
+  (0.0ms) begin transaction
40424
+  (0.0ms) commit transaction
40425
+  (0.0ms) begin transaction
40426
+  (0.0ms) rollback transaction
40427
+ ----------------------------------------------------------------------------------------------
40428
+ MaestranoUserViaTest: test_: instance methods maestrano? should return false if uid is blank.
40429
+ ----------------------------------------------------------------------------------------------
40430
+  (0.0ms) begin transaction
40431
+  (0.0ms) commit transaction
40432
+  (0.0ms) begin transaction
40433
+  (0.0ms) rollback transaction
40434
+ -----------------------------------------------------------------------------------------------------------------------
40435
+ MaestranoUserViaTest: test_: instance methods maestrano? should return true if provider is maestrano and uid not null.
40436
+ -----------------------------------------------------------------------------------------------------------------------
40437
+  (0.0ms) begin transaction
40438
+  (0.0ms) commit transaction
40439
+  (0.0ms) begin transaction
40440
+  (0.0ms) rollback transaction
40441
+ ----------------------------------------------------------------------------------------------------------
40442
+ GroupGeneratorTest: test_: GroupGenerator should call the active_record migration generator successfully.
40443
+ ----------------------------------------------------------------------------------------------------------
40444
+  (0.1ms) begin transaction
40445
+  (0.0ms) commit transaction
40446
+  (0.0ms) begin transaction
40447
+  (0.0ms) rollback transaction
40448
+ ----------------------------------------------------------------------------------------------------
40449
+ GroupGeneratorTest: test_: GroupGenerator should call the mongoid migration generator successfully.
40450
+ ----------------------------------------------------------------------------------------------------
40451
+  (0.1ms) begin transaction
40452
+  (0.0ms) commit transaction
40453
+  (0.0ms) begin transaction
40454
+  (0.1ms) rollback transaction
40455
+ ---------------------------------------------------------------------
40456
+ GroupUsersControllerTest: test_: authenticated should be successful.
40457
+ ---------------------------------------------------------------------
40458
+  (0.1ms) begin transaction
40459
+  (0.0ms) commit transaction
40460
+  (0.0ms) begin transaction
40461
+ Processing by Maestrano::Account::GroupUsersController#destroy as HTML
40462
+ Parameters: {"group_id"=>"cld-1", "id"=>"usr-1"}
40463
+ Rendered text template (0.0ms)
40464
+ Completed 200 OK in 5ms (Views: 4.9ms | ActiveRecord: 0.0ms)
40465
+  (0.1ms) rollback transaction
40466
+ ---------------------------------------------------------------------
40467
+ GroupUsersControllerTest: test_: unauthenticated should deny access.
40468
+ ---------------------------------------------------------------------
40469
+  (0.0ms) begin transaction
40470
+  (0.0ms) commit transaction
40471
+  (0.0ms) begin transaction
40472
+ Processing by Maestrano::Account::GroupUsersController#destroy as HTML
40473
+ Parameters: {"group_id"=>"cld-1", "id"=>"usr-1"}
40474
+ Filter chain halted as :authenticate_maestrano! rendered or redirected
40475
+ Completed 401 Unauthorized in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
40476
+  (0.0ms) rollback transaction
40477
+ ------------------------------------------------------------------------------------------
40478
+ ActiveRecordUserGeneratorTest: test_: namespaced model should create the right migration.
40479
+ ------------------------------------------------------------------------------------------
40480
+  (0.0ms) begin transaction
40481
+  (0.0ms) commit transaction
40482
+  (0.0ms) begin transaction
40483
+  (0.0ms) rollback transaction
40484
+ --------------------------------------------------------------------------------------
40485
+ ActiveRecordUserGeneratorTest: test_: namespaced model should edit the model content.
40486
+ --------------------------------------------------------------------------------------
40487
+  (0.0ms) begin transaction
40488
+  (0.0ms) commit transaction
40489
+  (0.0ms) begin transaction
40490
+  (0.0ms) rollback transaction
40491
+ --------------------------------------------------------------------------------------
40492
+ ActiveRecordUserGeneratorTest: test_: normal model should create the right migration.
40493
+ --------------------------------------------------------------------------------------
40494
+  (0.0ms) begin transaction
40495
+  (0.0ms) commit transaction
40496
+  (0.0ms) begin transaction
40497
+  (0.1ms) rollback transaction
40498
+ ----------------------------------------------------------------------------------
40499
+ ActiveRecordUserGeneratorTest: test_: normal model should edit the model content.
40500
+ ----------------------------------------------------------------------------------
40501
+  (0.0ms) begin transaction
40502
+  (0.0ms) commit transaction
40503
+  (0.0ms) begin transaction
40504
+  (0.0ms) rollback transaction
40505
+ --------------------------------------------------------------------------------------------------------------------------
40506
+ ActiveRecordUserGeneratorTest: test_: normal model should include parameters if rails 3 and strong_parameter not present.
40507
+ --------------------------------------------------------------------------------------------------------------------------
40508
+  (0.0ms) begin transaction
40509
+  (0.0ms) commit transaction
40510
+  (0.0ms) begin transaction
40511
+  (0.1ms) rollback transaction
40512
+ --------------------------------------------------------------------------------------------------------------------------
40513
+ ActiveRecordUserGeneratorTest: test_: normal model should not include parameters if rails 3 and strong_parameter present.
40514
+ --------------------------------------------------------------------------------------------------------------------------
40515
+  (0.0ms) begin transaction
40516
+  (0.0ms) commit transaction
40517
+  (0.0ms) begin transaction
40518
+  (0.0ms) rollback transaction
40519
+ ---------------------------------------------------------------------------------------------
40520
+ ActiveRecordUserGeneratorTest: test_: normal model should not include parameters in rails 4.
40521
+ ---------------------------------------------------------------------------------------------
40522
+  (0.0ms) begin transaction
40523
+  (0.0ms) commit transaction
40524
+  (0.0ms) begin transaction
40525
+  (0.0ms) rollback transaction
40526
+ ------------------------------
40527
+ MaestranoRailsTest: test_truth
40528
+ ------------------------------
40529
+  (0.0ms) begin transaction
40530
+  (0.0ms) commit transaction
40531
+  (0.0ms) begin transaction
40532
+  (0.0ms) rollback transaction
40533
+ -----------------------------------------------------------------
40534
+ GroupsControllerTest: test_: authenticated should be successful.
40535
+ -----------------------------------------------------------------
40536
+  (0.1ms) begin transaction
40537
+  (0.0ms) commit transaction
40538
+  (0.0ms) begin transaction
40539
+ Processing by Maestrano::Account::GroupsController#destroy as HTML
40540
+ Parameters: {"id"=>"cld-1"}
40541
+ Rendered text template (0.0ms)
40542
+ Completed 200 OK in 2ms (Views: 1.8ms | ActiveRecord: 0.0ms)
40543
+  (0.0ms) rollback transaction
40544
+ -----------------------------------------------------------------
40545
+ GroupsControllerTest: test_: unauthenticated should deny access.
40546
+ -----------------------------------------------------------------
40547
+  (0.0ms) begin transaction
40548
+  (0.0ms) commit transaction
40549
+  (0.0ms) begin transaction
40550
+ Processing by Maestrano::Account::GroupsController#destroy as HTML
40551
+ Parameters: {"id"=>"cld-1"}
40552
+ Filter chain halted as :authenticate_maestrano! rendered or redirected
40553
+ Completed 401 Unauthorized in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
40554
+  (0.0ms) rollback transaction
40555
+ ---------------------------------------------------------------------------------------------------------------------
40556
+ GenericControllerTest: test_: with a maestrano session should be successful if the maestrano session is still valid.
40557
+ ---------------------------------------------------------------------------------------------------------------------
40558
+  (0.0ms) begin transaction
40559
+  (0.0ms) commit transaction
40560
+  (0.0ms) begin transaction
40561
+ Processing by PagesController#home as HTML
40562
+ Rendered pages/home.html.erb within layouts/application (0.8ms)
40563
+ Completed 200 OK in 104ms (Views: 103.9ms | ActiveRecord: 0.0ms)
40564
+  (0.1ms) rollback transaction
40565
+ --------------------------------------------------------------------------------------------------------------------
40566
+ GenericControllerTest: test_: with a maestrano session should initialize redirect to SSO initialization if invalid.
40567
+ --------------------------------------------------------------------------------------------------------------------
40568
+  (0.0ms) begin transaction
40569
+  (0.0ms) commit transaction
40570
+  (0.0ms) begin transaction
40571
+ Processing by PagesController#home as HTML
40572
+ Redirected to http://localhost::3000/maestrano/auth/saml/init
40573
+ Filter chain halted as :verify_maestrano_session rendered or redirected
40574
+ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
40575
+  (0.0ms) rollback transaction
40576
+ -----------------------------------------------------------------------------------------------------------
40577
+ GenericControllerTest: test_: with a maestrano session should not redirect to SSO init if sso is disabled.
40578
+ -----------------------------------------------------------------------------------------------------------
40579
+  (0.0ms) begin transaction
40580
+  (0.0ms) commit transaction
40581
+  (0.0ms) begin transaction
40582
+ Processing by PagesController#home as HTML
40583
+ Rendered pages/home.html.erb within layouts/application (0.0ms)
40584
+ Completed 200 OK in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)
40585
+  (0.0ms) rollback transaction
40586
+ ------------------------------------------------------------------------------
40587
+ GenericControllerTest: test_: with no maestrano session should be successful.
40588
+ ------------------------------------------------------------------------------
40589
+  (0.0ms) begin transaction
40590
+  (0.0ms) commit transaction
40591
+  (0.0ms) begin transaction
40592
+ Processing by PagesController#home as HTML
40593
+ Rendered pages/home.html.erb within layouts/application (0.0ms)
40594
+ Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)
40595
+  (0.0ms) rollback transaction
40596
+ -------------------------------------------------------------------------------------------
40597
+ ActiveRecordGroupGeneratorTest: test_: namespaced model should create the right migration.
40598
+ -------------------------------------------------------------------------------------------
40599
+  (0.1ms) begin transaction
40600
+  (0.0ms) commit transaction
40601
+  (0.0ms) begin transaction
40602
+  (0.0ms) rollback transaction
40603
+ ---------------------------------------------------------------------------------------
40604
+ ActiveRecordGroupGeneratorTest: test_: namespaced model should edit the model content.
40605
+ ---------------------------------------------------------------------------------------
40606
+  (0.0ms) begin transaction
40607
+  (0.0ms) commit transaction
40608
+  (0.0ms) begin transaction
40609
+  (0.1ms) rollback transaction
40610
+ ---------------------------------------------------------------------------------------
40611
+ ActiveRecordGroupGeneratorTest: test_: normal model should create the right migration.
40612
+ ---------------------------------------------------------------------------------------
40613
+  (0.0ms) begin transaction
40614
+  (0.1ms) commit transaction
40615
+  (0.0ms) begin transaction
40616
+  (0.0ms) rollback transaction
40617
+ -----------------------------------------------------------------------------------
40618
+ ActiveRecordGroupGeneratorTest: test_: normal model should edit the model content.
40619
+ -----------------------------------------------------------------------------------
40620
+  (0.0ms) begin transaction
40621
+  (0.0ms) commit transaction
40622
+  (0.0ms) begin transaction
40623
+  (0.1ms) rollback transaction
40624
+ ---------------------------------------------------------------------------------------------------------------------------
40625
+ ActiveRecordGroupGeneratorTest: test_: normal model should include parameters if rails 3 and strong_parameter not present.
40626
+ ---------------------------------------------------------------------------------------------------------------------------
40627
+  (0.0ms) begin transaction
40628
+  (0.0ms) commit transaction
40629
+  (0.1ms) begin transaction
40630
+  (0.0ms) rollback transaction
40631
+ ---------------------------------------------------------------------------------------------------------------------------
40632
+ ActiveRecordGroupGeneratorTest: test_: normal model should not include parameters if rails 3 and strong_parameter present.
40633
+ ---------------------------------------------------------------------------------------------------------------------------
40634
+  (0.0ms) begin transaction
40635
+  (0.0ms) commit transaction
40636
+  (0.0ms) begin transaction
40637
+  (0.0ms) rollback transaction
40638
+ ----------------------------------------------------------------------------------------------
40639
+ ActiveRecordGroupGeneratorTest: test_: normal model should not include parameters in rails 4.
40640
+ ----------------------------------------------------------------------------------------------
40641
+  (0.0ms) begin transaction
40642
+  (0.0ms) commit transaction
40643
+  (0.0ms) begin transaction
40644
+  (0.1ms) rollback transaction
40645
+ ----------------------------------------------------------------------------------------------
40646
+ SamlBaseControllerTest: test_: consume phase error should redirect to maestrano on any error.
40647
+ ----------------------------------------------------------------------------------------------
40648
+  (0.1ms) begin transaction
40649
+  (0.0ms) commit transaction
40650
+  (0.0ms) begin transaction
40651
+ Processing by Maestrano::Auth::SamlController#consume as HTML
40652
+ Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"}
40653
+ Cannot validate SAML response: Bla
40654
+ Trace: ["/home/bruno/.rvm/gems/ruby-2.3.1/gems/mocha-1.1.0/lib/mocha/exception_raiser.rb:12:in `evaluate'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/mocha-1.1.0/lib/mocha/return_values.rb:20:in `next'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/mocha-1.1.0/lib/mocha/expectation.rb:569:in `invoke'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/mocha-1.1.0/lib/mocha/mock.rb:296:in `method_missing'", "/home/bruno/Workspace/maestrano-rails/app/controllers/maestrano/rails/saml_base_controller.rb:35:in `process_saml_response'", "/home/bruno/Workspace/maestrano-rails/app/controllers/maestrano/rails/saml_base_controller.rb:18:in `saml_response_transaction'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:432:in `block in make_lambda'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:291:in `block in halting_and_conditional'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:497:in `block in around'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:505:in `call'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:92:in `__run_callbacks__'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:778:in `_run_process_action_callbacks'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:81:in `run_callbacks'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionpack-4.2.7.1/lib/abstract_controller/callbacks.rb:19:in `process_action'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionpack-4.2.7.1/lib/action_controller/metal/rescue.rb:29:in `process_action'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionpack-4.2.7.1/lib/action_controller/metal/instrumentation.rb:32:in `block in process_action'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-4.2.7.1/lib/active_support/notifications.rb:164:in `block in instrument'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-4.2.7.1/lib/active_support/notifications/instrumenter.rb:20:in `instrument'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-4.2.7.1/lib/active_support/notifications.rb:164:in `instrument'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionpack-4.2.7.1/lib/action_controller/metal/instrumentation.rb:30:in `process_action'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionpack-4.2.7.1/lib/action_controller/metal/params_wrapper.rb:250:in `process_action'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activerecord-4.2.7.1/lib/active_record/railties/controller_runtime.rb:18:in `process_action'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionpack-4.2.7.1/lib/abstract_controller/base.rb:137:in `process'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionview-4.2.7.1/lib/action_view/rendering.rb:30:in `process'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionpack-4.2.7.1/lib/action_controller/test_case.rb:639:in `process'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionpack-4.2.7.1/lib/action_controller/test_case.rb:67:in `process'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionpack-4.2.7.1/lib/action_controller/test_case.rb:520:in `post'", "/home/bruno/Workspace/maestrano-rails/test/controllers/saml_controller_test.rb:117:in `block (3 levels) in <class:SamlBaseControllerTest>'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/shoulda-context-1.2.1/lib/shoulda/context/context.rb:413:in `instance_exec'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/shoulda-context-1.2.1/lib/shoulda/context/context.rb:413:in `block in create_test_from_should_hash'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest/test.rb:107:in `block (3 levels) in run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest/test.rb:204:in `capture_exceptions'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest/test.rb:104:in `block (2 levels) in run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest/test.rb:255:in `time_it'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest/test.rb:103:in `block in run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:348:in `on_signal'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest/test.rb:275:in `with_info_handler'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest/test.rb:102:in `run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:799:in `run_one_method'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:322:in `run_one_method'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:310:in `block (2 levels) in run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:309:in `each'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:309:in `block in run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:348:in `on_signal'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:335:in `with_info_handler'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:308:in `run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:158:in `block in __run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:158:in `map'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:158:in `__run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:135:in `run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:62:in `block in autorun'"]
40655
+ Redirected to http://api-sandbox.maestrano.io/app_access_unauthorized?err=internal
40656
+ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
40657
+  (0.1ms) rollback transaction
40658
+ --------------------------------------------------------------------------------------------------------------------
40659
+ SamlBaseControllerTest: test_: consume phase should reset the maestrano session successfully if one already exists.
40660
+ --------------------------------------------------------------------------------------------------------------------
40661
+  (0.1ms) begin transaction
40662
+  (0.0ms) commit transaction
40663
+  (0.0ms) begin transaction
40664
+ Processing by Maestrano::Auth::SamlController#consume as HTML
40665
+ Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"}
40666
+ Redirected to http://test.host/
40667
+ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
40668
+  (0.0ms) rollback transaction
40669
+ ---------------------------------------------------------------------------------
40670
+ SamlBaseControllerTest: test_: consume phase should set a saml_request in scope.
40671
+ ---------------------------------------------------------------------------------
40672
+  (0.0ms) begin transaction
40673
+  (0.0ms) commit transaction
40674
+  (0.0ms) begin transaction
40675
+ Processing by Maestrano::Auth::SamlController#consume as HTML
40676
+ Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"}
40677
+ Redirected to http://test.host/
40678
+ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
40679
+  (0.0ms) rollback transaction
40680
+ --------------------------------------------------------------------------------------
40681
+ SamlBaseControllerTest: test_: consume phase should set the group_auth_hash in scope.
40682
+ --------------------------------------------------------------------------------------
40683
+  (0.0ms) begin transaction
40684
+  (0.0ms) commit transaction
40685
+  (0.0ms) begin transaction
40686
+ Processing by Maestrano::Auth::SamlController#consume as HTML
40687
+ Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"}
40688
+ Redirected to http://test.host/
40689
+ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
40690
+  (0.0ms) rollback transaction
40691
+ -------------------------------------------------------------------------------
40692
+ SamlBaseControllerTest: test_: consume phase should set the maestrano session.
40693
+ -------------------------------------------------------------------------------
40694
+  (0.0ms) begin transaction
40695
+  (0.0ms) commit transaction
40696
+  (0.0ms) begin transaction
40697
+ Processing by Maestrano::Auth::SamlController#consume as HTML
40698
+ Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"}
40699
+ Redirected to http://test.host/
40700
+ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
40701
+  (0.0ms) rollback transaction
40702
+ -------------------------------------------------------------------------------------
40703
+ SamlBaseControllerTest: test_: consume phase should set the user_auth_hash in scope.
40704
+ -------------------------------------------------------------------------------------
40705
+  (0.0ms) begin transaction
40706
+  (0.0ms) commit transaction
40707
+  (0.0ms) begin transaction
40708
+ Processing by Maestrano::Auth::SamlController#consume as HTML
40709
+ Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"}
40710
+ Redirected to http://test.host/
40711
+ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
40712
+  (0.0ms) rollback transaction
40713
+ ------------------------------------------------------------------------------------------
40714
+ SamlBaseControllerTest: test_: consume phase should set the user_group_rel_hash in scope.
40715
+ ------------------------------------------------------------------------------------------
40716
+  (0.0ms) begin transaction
40717
+  (0.0ms) commit transaction
40718
+  (0.0ms) begin transaction
40719
+ Processing by Maestrano::Auth::SamlController#consume as HTML
40720
+ Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"}
40721
+ Redirected to http://test.host/
40722
+ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
40723
+  (0.0ms) rollback transaction
40724
+ ---------------------------------------------------------------------------------------------------------------------------
40725
+ SamlBaseControllerTest: test_: init phase should create a saml request successfully if a maestrano session is already set.
40726
+ ---------------------------------------------------------------------------------------------------------------------------
40727
+  (0.0ms) begin transaction
40728
+  (0.0ms) commit transaction
40729
+  (0.0ms) begin transaction
40730
+ Processing by Maestrano::Auth::SamlController#init as HTML
40731
+ Parameters: {"a_param"=>"value"}
40732
+ Redirected to http://idpprovider.com?r=request
40733
+ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
40734
+  (0.0ms) rollback transaction
40735
+ -----------------------------------------------------------------------------------------------------------------------
40736
+ SamlBaseControllerTest: test_: init phase should create a saml request using params and session and redirect the user.
40737
+ -----------------------------------------------------------------------------------------------------------------------
40738
+  (0.0ms) begin transaction
40739
+  (0.0ms) commit transaction
40740
+  (0.0ms) begin transaction
40741
+ Processing by Maestrano::Auth::SamlController#init as HTML
40742
+ Parameters: {"a_param"=>"value"}
40743
+ Redirected to http://idpprovider.com?r=request
40744
+ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
40745
+  (0.0ms) rollback transaction
40746
+ ---------------------------------------------------------------------------------------------------------------------------------------
40747
+ MaestranoGroupViaTest: test_: class methods find_or_create_for_maestrano class method should create a monster using the mapping block.
40748
+ ---------------------------------------------------------------------------------------------------------------------------------------
40749
+  (0.0ms) begin transaction
40750
+  (0.0ms) commit transaction
40751
+  (0.0ms) begin transaction
40752
+ MnoCrew Load (0.1ms) SELECT "mno_crews".* FROM "mno_crews" WHERE "mno_crews"."provider" = ? AND "mno_crews"."uid" = ? AND "mno_crews"."tenant" = ? ORDER BY "mno_crews"."id" ASC LIMIT 1 [["provider", "maestrano"], ["uid", "usr-2"], ["tenant", "default"]]
40753
+  (0.0ms) SAVEPOINT active_record_1
40754
+ SQL (0.1ms) INSERT INTO "mno_crews" ("name", "provider", "uid", "tenant", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["name", "Monster Co"], ["provider", "maestrano"], ["uid", "usr-2"], ["tenant", "default"], ["created_at", "2016-09-20 07:02:52.811305"], ["updated_at", "2016-09-20 07:02:52.811305"]]
40755
+  (0.0ms) RELEASE SAVEPOINT active_record_1
40756
+  (0.1ms) rollback transaction
40757
+ ------------------------------------------------------------------------------------------------------------------------------------------------------
40758
+ MaestranoGroupViaTest: test_: class methods find_or_create_for_maestrano class method should not return a MnoCrew from another provider if it exists.
40759
+ ------------------------------------------------------------------------------------------------------------------------------------------------------
40760
+  (0.0ms) begin transaction
40761
+  (0.0ms) commit transaction
40762
+  (0.0ms) begin transaction
40763
+  (0.0ms) SAVEPOINT active_record_1
40764
+ SQL (0.1ms) INSERT INTO "mno_crews" ("name", "provider", "uid", "tenant", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["name", "SomeOtherCrew"], ["provider", "someoneelse"], ["uid", "usr-1"], ["tenant", "default"], ["created_at", "2016-09-20 07:02:52.813045"], ["updated_at", "2016-09-20 07:02:52.813045"]]
40765
+  (0.0ms) RELEASE SAVEPOINT active_record_1
40766
+ MnoCrew Load (0.0ms) SELECT "mno_crews".* FROM "mno_crews" WHERE "mno_crews"."provider" = ? AND "mno_crews"."uid" = ? AND "mno_crews"."tenant" = ? ORDER BY "mno_crews"."id" ASC LIMIT 1 [["provider", "maestrano"], ["uid", "cld-1"], ["tenant", "default"]]
40767
+  (0.0ms) SAVEPOINT active_record_1
40768
+ SQL (0.1ms) INSERT INTO "mno_crews" ("name", "provider", "uid", "tenant", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["name", "Your Group"], ["provider", "maestrano"], ["uid", "cld-1"], ["tenant", "default"], ["created_at", "2016-09-20 07:02:52.814554"], ["updated_at", "2016-09-20 07:02:52.814554"]]
40769
+  (0.0ms) RELEASE SAVEPOINT active_record_1
40770
+  (0.1ms) rollback transaction
40771
+ ------------------------------------------------------------------------------------------------------------------------------
40772
+ MaestranoGroupViaTest: test_: class methods find_or_create_for_maestrano class method should return the MnoCrew if it exists.
40773
+ ------------------------------------------------------------------------------------------------------------------------------
40774
+  (0.0ms) begin transaction
40775
+  (0.0ms) commit transaction
40776
+  (0.0ms) begin transaction
40777
+  (0.0ms) SAVEPOINT active_record_1
40778
+ SQL (0.2ms) INSERT INTO "mno_crews" ("name", "provider", "uid", "tenant", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["name", "SomeCrew"], ["provider", "maestrano"], ["uid", "cld-1"], ["tenant", "default"], ["created_at", "2016-09-20 07:02:52.816310"], ["updated_at", "2016-09-20 07:02:52.816310"]]
40779
+  (0.1ms) RELEASE SAVEPOINT active_record_1
40780
+ MnoCrew Load (0.1ms) SELECT "mno_crews".* FROM "mno_crews" WHERE "mno_crews"."provider" = ? AND "mno_crews"."uid" = ? AND "mno_crews"."tenant" = ? ORDER BY "mno_crews"."id" ASC LIMIT 1 [["provider", "maestrano"], ["uid", "cld-1"], ["tenant", "default"]]
40781
+  (0.1ms) rollback transaction
40782
+ ----------------------------------------------------------------------------------------------------
40783
+ MaestranoGroupViaTest: test_: class methods maestrano_*_via should have the right field definition.
40784
+ ----------------------------------------------------------------------------------------------------
40785
+  (0.0ms) begin transaction
40786
+  (0.0ms) commit transaction
40787
+  (0.0ms) begin transaction
40788
+  (0.0ms) rollback transaction
40789
+ -------------------------------------------------------------------------------------------------------------
40790
+ MaestranoGroupViaTest: test_: instance methods maestrano? should return false if provider is something else.
40791
+ -------------------------------------------------------------------------------------------------------------
40792
+  (0.0ms) begin transaction
40793
+  (0.0ms) commit transaction
40794
+  (0.0ms) begin transaction
40795
+  (0.0ms) rollback transaction
40796
+ -----------------------------------------------------------------------------------------------
40797
+ MaestranoGroupViaTest: test_: instance methods maestrano? should return false if uid is blank.
40798
+ -----------------------------------------------------------------------------------------------
40799
+  (0.0ms) begin transaction
40800
+  (0.0ms) commit transaction
40801
+  (0.0ms) begin transaction
40802
+  (0.0ms) rollback transaction
40803
+ ------------------------------------------------------------------------------------------------------------------------
40804
+ MaestranoGroupViaTest: test_: instance methods maestrano? should return true if provider is maestrano and uid not null.
40805
+ ------------------------------------------------------------------------------------------------------------------------
40806
+  (0.0ms) begin transaction
40807
+  (0.0ms) commit transaction
40808
+  (0.0ms) begin transaction
40809
+  (0.0ms) rollback transaction
40810
+ --------------------------------------------------------------------------------------------------------
40811
+ UserGeneratorTest: test_: UserGenerator should call the active_record migration generator successfully.
40812
+ --------------------------------------------------------------------------------------------------------
40813
+  (0.1ms) begin transaction
40814
+  (0.0ms) commit transaction
40815
+  (0.0ms) begin transaction
40816
+  (0.0ms) rollback transaction
40817
+ --------------------------------------------------------------------------------------------------
40818
+ UserGeneratorTest: test_: UserGenerator should call the mongoid migration generator successfully.
40819
+ --------------------------------------------------------------------------------------------------
40820
+  (0.0ms) begin transaction
40821
+  (0.0ms) commit transaction
40822
+  (0.0ms) begin transaction
40823
+  (0.0ms) rollback transaction