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

Sign up to get free protection for your applications and to get access to all the features.
Files changed (34) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile +1 -1
  3. data/Gemfile.lock +7 -7
  4. data/maestrano-rails.gemspec +7 -7
  5. data/test/dummy_activerecord/log/test.log +1005 -0
  6. data/test/dummy_activerecord/tmp/cache/assets/sprockets/v3.0/0K/0Kl2n4Uk_bMN9p4smyeemwQGasEZIOn0fQO0eJfKaTY.cache +3 -0
  7. data/test/dummy_activerecord/tmp/cache/assets/sprockets/v3.0/1F/1FTJP_uF11AXjtmunFnHKmvNuLGFkJKlZx07cpkVt1E.cache +3 -0
  8. data/test/dummy_activerecord/tmp/cache/assets/sprockets/v3.0/5P/5P5zP6yAr0lenf-iJYYc2OjmzqumtroTKdE04IU80bI.cache +1 -0
  9. data/test/dummy_activerecord/tmp/cache/assets/sprockets/v3.0/5g/5g7dhxVp4YbZmFw_-T3aU2oYq2Z9Jgtps0CKneXYSS0.cache +0 -0
  10. data/test/dummy_activerecord/tmp/cache/assets/sprockets/v3.0/BQ/BQtyJR3ccqed7_s43p3BPj3IL18LWu1Fo1ZnzWC3qcc.cache +0 -0
  11. data/test/dummy_activerecord/tmp/cache/assets/sprockets/v3.0/Kk/KkFt0z0fhE3JMKKLAuhaZLRypV5zxOWEkwqzPvXcga4.cache +1 -0
  12. data/test/dummy_activerecord/tmp/cache/assets/sprockets/v3.0/Tt/Tt7BFxeTDVYhFn2q6Bm8QvO0iZtqhpU3Py0aNUJ5kMI.cache +0 -0
  13. data/test/dummy_activerecord/tmp/cache/assets/sprockets/v3.0/UF/UFtgN0i1Oi7hYxXWi9UeyZeJyu8STn29o1JRQ4_z2Mo.cache +1 -0
  14. data/test/dummy_activerecord/tmp/cache/assets/sprockets/v3.0/Um/Umm0xct07dhJS0LcSl4C7qjuqwe29RPrcArcHmpCH9E.cache +0 -0
  15. data/test/dummy_activerecord/tmp/cache/assets/sprockets/v3.0/VN/VNCapNKJLeponthNeFJhaBYs92UBT3P8PugENHP0474.cache +0 -0
  16. data/test/dummy_activerecord/tmp/cache/assets/sprockets/v3.0/Vz/Vz-TATKC0c3E0YTxgKKvL-6zVhnrKZuTLimk0mFdkhI.cache +0 -0
  17. data/test/dummy_activerecord/tmp/cache/assets/sprockets/v3.0/W1/W1I750hXtFauIXfdF_h8f0H6Eh9fPjn1nb3WDnJGJ_0.cache +0 -0
  18. data/test/dummy_activerecord/tmp/cache/assets/sprockets/v3.0/XJ/XJcXzqn-ILsbVbGUfL1V9-vMJa2RhZQXvIl1KD0qQKo.cache +1 -0
  19. data/test/dummy_activerecord/tmp/cache/assets/sprockets/v3.0/Y0/Y0NzY5PAN_S55uV44yAyi0fmpb55hlY9U-m6zmeaQ94.cache +1 -0
  20. data/test/dummy_activerecord/tmp/cache/assets/sprockets/v3.0/YY/YYhr-BwbA5CTzaT_XI_ORMHpS3ej0MO1lLNgjFngUvM.cache +0 -0
  21. data/test/dummy_activerecord/tmp/cache/assets/sprockets/v3.0/b7/b7lBpkBxQaCxHBBRf-QF0CiQKnRE8kYGLUzgAPTjf_k.cache +0 -0
  22. data/test/dummy_activerecord/tmp/cache/assets/sprockets/v3.0/bE/bEM-nbvZZlvHd-VVEeByhYFYw_PQoPz0Cih2JCzGCi4.cache +0 -0
  23. data/test/dummy_activerecord/tmp/cache/assets/sprockets/v3.0/d6/d6-acrFwj2KUSJ8gCI-lSkjYvxy5h6H-6Tu80yrkQlI.cache +1 -0
  24. data/test/dummy_activerecord/tmp/cache/assets/sprockets/v3.0/h3/h3R0ogDb3_Lv-eriMG2QniXy7gKnqx_JR1m4TuPmifE.cache +0 -0
  25. data/test/dummy_activerecord/tmp/cache/assets/sprockets/v3.0/iO/iOprhQvDwUFWOwTIXAN7nqRSNUxtNegez2gEqgNlpVM.cache +1 -0
  26. data/test/dummy_activerecord/tmp/cache/assets/sprockets/v3.0/jC/jCAdpJEQwSeSSrCluGFOJsHNE6VcAWViGJ0P-G0t6mA.cache +0 -0
  27. data/test/dummy_activerecord/tmp/cache/assets/sprockets/v3.0/l_/l_tJ9WwBL9Q8XjxQN56nGuGtCrP7kGBvE8e76g8tRC0.cache +0 -0
  28. data/test/dummy_activerecord/tmp/cache/assets/sprockets/v3.0/lt/ltHfS3at480sLxxMu-MaiUGV9g2lURx1vhZVOCVLojE.cache +1 -0
  29. data/test/dummy_activerecord/tmp/cache/assets/sprockets/v3.0/oq/oqVkVOrnW7zIQqXe_2p4bZbOShNyg0DnfcM3Ww-Mqig.cache +1 -0
  30. data/test/dummy_activerecord/tmp/cache/assets/sprockets/v3.0/ph/phskQTPSOqrdvCdPHZ_6JRzQL-kFbfkH76uZWJTDRAw.cache +1 -0
  31. data/test/dummy_activerecord/tmp/cache/assets/sprockets/v3.0/ue/ue3v4h_bRvmZHu9OmCth5E6MIP4HymD3ntOmdWMYJyQ.cache +0 -0
  32. data/test/dummy_activerecord/tmp/cache/assets/sprockets/v3.0/wo/woAXOH3NlZuNE-gjwApF3aSKNlbIbWZbAmIZrXwWvL0.cache +1 -0
  33. metadata +48 -6
  34. /data/test/tmp/db/migrate/{20160901050033_add_maestrano_to_monsters.rb → 20160918091730_add_maestrano_to_monsters.rb} +0 -0
@@ -36297,3 +36297,1008 @@ Processing by Maestrano::Account::GroupUsersController#destroy as HTML
36297
36297
  Filter chain halted as :authenticate_maestrano! rendered or redirected
36298
36298
  Completed 401 Unauthorized in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
36299
36299
   (0.0ms) rollback transaction
36300
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
36301
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
36302
+ ---------------------------------------------------------------------------------------
36303
+ InstallGeneratorTest: test_: InstallGenerator should create the maestrano initializer.
36304
+ ---------------------------------------------------------------------------------------
36305
+  (0.1ms) begin transaction
36306
+  (0.1ms) commit transaction
36307
+  (0.0ms) begin transaction
36308
+  (0.0ms) rollback transaction
36309
+ ----------------------------------------------------------------------------------
36310
+ InstallGeneratorTest: test_: InstallGenerator should create the maestrano routes.
36311
+ ----------------------------------------------------------------------------------
36312
+  (0.0ms) begin transaction
36313
+  (0.0ms) commit transaction
36314
+  (0.0ms) begin transaction
36315
+  (0.0ms) rollback transaction
36316
+ ----------------------------------------------------------------------------------------------------------
36317
+ InstallGeneratorTest: test_: InstallGenerator should create the maestrano/account/group_users_controller.
36318
+ ----------------------------------------------------------------------------------------------------------
36319
+  (0.0ms) begin transaction
36320
+  (0.0ms) commit transaction
36321
+  (0.0ms) begin transaction
36322
+  (0.0ms) rollback transaction
36323
+ -----------------------------------------------------------------------------------------------------
36324
+ InstallGeneratorTest: test_: InstallGenerator should create the maestrano/account/groups_controller.
36325
+ -----------------------------------------------------------------------------------------------------
36326
+  (0.0ms) begin transaction
36327
+  (0.0ms) commit transaction
36328
+  (0.0ms) begin transaction
36329
+  (0.1ms) rollback transaction
36330
+ ------------------------------------------------------------------------------------------------
36331
+ InstallGeneratorTest: test_: InstallGenerator should create the maestrano/auth/saml_controller.
36332
+ ------------------------------------------------------------------------------------------------
36333
+  (0.0ms) begin transaction
36334
+  (0.0ms) commit transaction
36335
+  (0.0ms) begin transaction
36336
+  (0.0ms) rollback transaction
36337
+ --------------------------------------------------------------------------------------------------------
36338
+ UserGeneratorTest: test_: UserGenerator should call the active_record migration generator successfully.
36339
+ --------------------------------------------------------------------------------------------------------
36340
+  (0.0ms) begin transaction
36341
+  (0.0ms) commit transaction
36342
+  (0.0ms) begin transaction
36343
+  (0.1ms) rollback transaction
36344
+ --------------------------------------------------------------------------------------------------
36345
+ UserGeneratorTest: test_: UserGenerator should call the mongoid migration generator successfully.
36346
+ --------------------------------------------------------------------------------------------------
36347
+  (0.1ms) begin transaction
36348
+  (0.0ms) commit transaction
36349
+  (0.0ms) begin transaction
36350
+  (0.0ms) rollback transaction
36351
+ ---------------------------------------------------------------------------------------------------------------------------------------
36352
+ MaestranoGroupViaTest: test_: class methods find_or_create_for_maestrano class method should create a monster using the mapping block.
36353
+ ---------------------------------------------------------------------------------------------------------------------------------------
36354
+  (0.1ms) begin transaction
36355
+  (0.0ms) commit transaction
36356
+  (0.0ms) begin transaction
36357
+ 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"]]
36358
+  (0.0ms) SAVEPOINT active_record_1
36359
+ 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-18 09:17:05.294869"], ["updated_at", "2016-09-18 09:17:05.294869"]]
36360
+  (0.0ms) RELEASE SAVEPOINT active_record_1
36361
+  (0.1ms) rollback transaction
36362
+ ------------------------------------------------------------------------------------------------------------------------------------------------------
36363
+ MaestranoGroupViaTest: test_: class methods find_or_create_for_maestrano class method should not return a MnoCrew from another provider if it exists.
36364
+ ------------------------------------------------------------------------------------------------------------------------------------------------------
36365
+  (0.0ms) begin transaction
36366
+  (0.0ms) commit transaction
36367
+  (0.0ms) begin transaction
36368
+  (0.0ms) SAVEPOINT active_record_1
36369
+ 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-18 09:17:05.298260"], ["updated_at", "2016-09-18 09:17:05.298260"]]
36370
+  (0.0ms) RELEASE SAVEPOINT active_record_1
36371
+ 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"]]
36372
+  (0.0ms) SAVEPOINT active_record_1
36373
+ 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-18 09:17:05.299900"], ["updated_at", "2016-09-18 09:17:05.299900"]]
36374
+  (0.0ms) RELEASE SAVEPOINT active_record_1
36375
+  (0.1ms) rollback transaction
36376
+ ------------------------------------------------------------------------------------------------------------------------------
36377
+ MaestranoGroupViaTest: test_: class methods find_or_create_for_maestrano class method should return the MnoCrew if it exists.
36378
+ ------------------------------------------------------------------------------------------------------------------------------
36379
+  (0.0ms) begin transaction
36380
+  (0.0ms) commit transaction
36381
+  (0.0ms) begin transaction
36382
+  (0.0ms) SAVEPOINT active_record_1
36383
+ 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-18 09:17:05.301487"], ["updated_at", "2016-09-18 09:17:05.301487"]]
36384
+  (0.0ms) RELEASE SAVEPOINT active_record_1
36385
+ 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"]]
36386
+  (0.1ms) rollback transaction
36387
+ ----------------------------------------------------------------------------------------------------
36388
+ MaestranoGroupViaTest: test_: class methods maestrano_*_via should have the right field definition.
36389
+ ----------------------------------------------------------------------------------------------------
36390
+  (0.0ms) begin transaction
36391
+  (0.0ms) commit transaction
36392
+  (0.0ms) begin transaction
36393
+  (0.0ms) rollback transaction
36394
+ -------------------------------------------------------------------------------------------------------------
36395
+ MaestranoGroupViaTest: test_: instance methods maestrano? should return false if provider is something else.
36396
+ -------------------------------------------------------------------------------------------------------------
36397
+  (0.0ms) begin transaction
36398
+  (0.0ms) commit transaction
36399
+  (0.0ms) begin transaction
36400
+  (0.0ms) rollback transaction
36401
+ -----------------------------------------------------------------------------------------------
36402
+ MaestranoGroupViaTest: test_: instance methods maestrano? should return false if uid is blank.
36403
+ -----------------------------------------------------------------------------------------------
36404
+  (0.0ms) begin transaction
36405
+  (0.0ms) commit transaction
36406
+  (0.0ms) begin transaction
36407
+  (0.0ms) rollback transaction
36408
+ ------------------------------------------------------------------------------------------------------------------------
36409
+ MaestranoGroupViaTest: test_: instance methods maestrano? should return true if provider is maestrano and uid not null.
36410
+ ------------------------------------------------------------------------------------------------------------------------
36411
+  (0.0ms) begin transaction
36412
+  (0.0ms) commit transaction
36413
+  (0.0ms) begin transaction
36414
+  (0.0ms) rollback transaction
36415
+ ----------------------------------------------------------------------------------------------------------
36416
+ GroupGeneratorTest: test_: GroupGenerator should call the active_record migration generator successfully.
36417
+ ----------------------------------------------------------------------------------------------------------
36418
+  (0.0ms) begin transaction
36419
+  (0.0ms) commit transaction
36420
+  (0.0ms) begin transaction
36421
+  (0.0ms) rollback transaction
36422
+ ----------------------------------------------------------------------------------------------------
36423
+ GroupGeneratorTest: test_: GroupGenerator should call the mongoid migration generator successfully.
36424
+ ----------------------------------------------------------------------------------------------------
36425
+  (0.0ms) begin transaction
36426
+  (0.0ms) commit transaction
36427
+  (0.0ms) begin transaction
36428
+  (0.1ms) rollback transaction
36429
+ -------------------------------------------------------------------------------------------
36430
+ ActiveRecordGroupGeneratorTest: test_: namespaced model should create the right migration.
36431
+ -------------------------------------------------------------------------------------------
36432
+  (0.1ms) begin transaction
36433
+  (0.0ms) commit transaction
36434
+  (0.1ms) begin transaction
36435
+  (0.0ms) rollback transaction
36436
+ ---------------------------------------------------------------------------------------
36437
+ ActiveRecordGroupGeneratorTest: test_: namespaced model should edit the model content.
36438
+ ---------------------------------------------------------------------------------------
36439
+  (0.0ms) begin transaction
36440
+  (0.0ms) commit transaction
36441
+  (0.0ms) begin transaction
36442
+  (0.0ms) rollback transaction
36443
+ ---------------------------------------------------------------------------------------
36444
+ ActiveRecordGroupGeneratorTest: test_: normal model should create the right migration.
36445
+ ---------------------------------------------------------------------------------------
36446
+  (0.0ms) begin transaction
36447
+  (0.0ms) commit transaction
36448
+  (0.0ms) begin transaction
36449
+  (0.0ms) rollback transaction
36450
+ -----------------------------------------------------------------------------------
36451
+ ActiveRecordGroupGeneratorTest: test_: normal model should edit the model content.
36452
+ -----------------------------------------------------------------------------------
36453
+  (0.0ms) begin transaction
36454
+  (0.0ms) commit transaction
36455
+  (0.0ms) begin transaction
36456
+  (0.0ms) rollback transaction
36457
+ ---------------------------------------------------------------------------------------------------------------------------
36458
+ ActiveRecordGroupGeneratorTest: test_: normal model should include parameters if rails 3 and strong_parameter not present.
36459
+ ---------------------------------------------------------------------------------------------------------------------------
36460
+  (0.0ms) begin transaction
36461
+  (0.0ms) commit transaction
36462
+  (0.0ms) begin transaction
36463
+  (0.0ms) rollback transaction
36464
+ ---------------------------------------------------------------------------------------------------------------------------
36465
+ ActiveRecordGroupGeneratorTest: test_: normal model should not include parameters if rails 3 and strong_parameter present.
36466
+ ---------------------------------------------------------------------------------------------------------------------------
36467
+  (0.0ms) begin transaction
36468
+  (0.0ms) commit transaction
36469
+  (0.0ms) begin transaction
36470
+  (0.0ms) rollback transaction
36471
+ ----------------------------------------------------------------------------------------------
36472
+ ActiveRecordGroupGeneratorTest: test_: normal model should not include parameters in rails 4.
36473
+ ----------------------------------------------------------------------------------------------
36474
+  (0.0ms) begin transaction
36475
+  (0.0ms) commit transaction
36476
+  (0.0ms) begin transaction
36477
+  (0.0ms) rollback transaction
36478
+ -----------------------------------------------------------------
36479
+ GroupsControllerTest: test_: authenticated should be successful.
36480
+ -----------------------------------------------------------------
36481
+  (0.0ms) begin transaction
36482
+  (0.0ms) commit transaction
36483
+  (0.0ms) begin transaction
36484
+ Processing by Maestrano::Account::GroupsController#destroy as HTML
36485
+ Parameters: {"id"=>"cld-1"}
36486
+ Rendered text template (0.0ms)
36487
+ Completed 200 OK in 9ms (Views: 8.5ms | ActiveRecord: 0.0ms)
36488
+  (0.2ms) rollback transaction
36489
+ -----------------------------------------------------------------
36490
+ GroupsControllerTest: test_: unauthenticated should deny access.
36491
+ -----------------------------------------------------------------
36492
+  (0.1ms) begin transaction
36493
+  (0.1ms) commit transaction
36494
+  (0.1ms) begin transaction
36495
+ Processing by Maestrano::Account::GroupsController#destroy as HTML
36496
+ Parameters: {"id"=>"cld-1"}
36497
+ Filter chain halted as :authenticate_maestrano! rendered or redirected
36498
+ Completed 401 Unauthorized in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
36499
+  (0.0ms) rollback transaction
36500
+ -------------------------------------------------------------------
36501
+ MetadataControllerTest: test_: authenticated should be successful.
36502
+ -------------------------------------------------------------------
36503
+  (0.1ms) begin transaction
36504
+  (0.0ms) commit transaction
36505
+  (0.0ms) begin transaction
36506
+ Processing by Maestrano::Rails::MetadataController#index as HTML
36507
+ Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)
36508
+  (0.0ms) rollback transaction
36509
+ -------------------------------------------------------------------
36510
+ MetadataControllerTest: test_: unauthenticated should deny access.
36511
+ -------------------------------------------------------------------
36512
+  (0.0ms) begin transaction
36513
+  (0.0ms) commit transaction
36514
+  (0.0ms) begin transaction
36515
+ Processing by Maestrano::Rails::MetadataController#index as HTML
36516
+ Filter chain halted as :authenticate_maestrano! rendered or redirected
36517
+ Completed 401 Unauthorized in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
36518
+  (0.0ms) rollback transaction
36519
+ ------------------------------
36520
+ MaestranoRailsTest: test_truth
36521
+ ------------------------------
36522
+  (0.1ms) begin transaction
36523
+  (0.0ms) commit transaction
36524
+  (0.0ms) begin transaction
36525
+  (0.0ms) rollback transaction
36526
+ ---------------------------------------------------------------------
36527
+ GroupUsersControllerTest: test_: authenticated should be successful.
36528
+ ---------------------------------------------------------------------
36529
+  (0.0ms) begin transaction
36530
+  (0.0ms) commit transaction
36531
+  (0.0ms) begin transaction
36532
+ Processing by Maestrano::Account::GroupUsersController#destroy as HTML
36533
+ Parameters: {"group_id"=>"cld-1", "id"=>"usr-1"}
36534
+ Rendered text template (0.0ms)
36535
+ Completed 200 OK in 2ms (Views: 2.2ms | ActiveRecord: 0.0ms)
36536
+  (0.0ms) rollback transaction
36537
+ ---------------------------------------------------------------------
36538
+ GroupUsersControllerTest: test_: unauthenticated should deny access.
36539
+ ---------------------------------------------------------------------
36540
+  (0.0ms) begin transaction
36541
+  (0.0ms) commit transaction
36542
+  (0.0ms) begin transaction
36543
+ Processing by Maestrano::Account::GroupUsersController#destroy as HTML
36544
+ Parameters: {"group_id"=>"cld-1", "id"=>"usr-1"}
36545
+ Filter chain halted as :authenticate_maestrano! rendered or redirected
36546
+ Completed 401 Unauthorized in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
36547
+  (0.0ms) rollback transaction
36548
+ ------------------------------------------------------------------------------------------
36549
+ ActiveRecordUserGeneratorTest: test_: namespaced model should create the right migration.
36550
+ ------------------------------------------------------------------------------------------
36551
+  (8.0ms) begin transaction
36552
+  (0.1ms) commit transaction
36553
+  (0.1ms) begin transaction
36554
+  (0.1ms) rollback transaction
36555
+ --------------------------------------------------------------------------------------
36556
+ ActiveRecordUserGeneratorTest: test_: namespaced model should edit the model content.
36557
+ --------------------------------------------------------------------------------------
36558
+  (0.0ms) begin transaction
36559
+  (0.0ms) commit transaction
36560
+  (0.0ms) begin transaction
36561
+  (0.0ms) rollback transaction
36562
+ --------------------------------------------------------------------------------------
36563
+ ActiveRecordUserGeneratorTest: test_: normal model should create the right migration.
36564
+ --------------------------------------------------------------------------------------
36565
+  (0.0ms) begin transaction
36566
+  (0.0ms) commit transaction
36567
+  (0.0ms) begin transaction
36568
+  (0.0ms) rollback transaction
36569
+ ----------------------------------------------------------------------------------
36570
+ ActiveRecordUserGeneratorTest: test_: normal model should edit the model content.
36571
+ ----------------------------------------------------------------------------------
36572
+  (0.0ms) begin transaction
36573
+  (0.0ms) commit transaction
36574
+  (0.0ms) begin transaction
36575
+  (0.1ms) rollback transaction
36576
+ --------------------------------------------------------------------------------------------------------------------------
36577
+ ActiveRecordUserGeneratorTest: test_: normal model should include parameters if rails 3 and strong_parameter not present.
36578
+ --------------------------------------------------------------------------------------------------------------------------
36579
+  (0.0ms) begin transaction
36580
+  (0.0ms) commit transaction
36581
+  (0.0ms) begin transaction
36582
+  (0.0ms) rollback transaction
36583
+ --------------------------------------------------------------------------------------------------------------------------
36584
+ ActiveRecordUserGeneratorTest: test_: normal model should not include parameters if rails 3 and strong_parameter present.
36585
+ --------------------------------------------------------------------------------------------------------------------------
36586
+  (0.0ms) begin transaction
36587
+  (0.0ms) commit transaction
36588
+  (0.0ms) begin transaction
36589
+  (0.0ms) rollback transaction
36590
+ ---------------------------------------------------------------------------------------------
36591
+ ActiveRecordUserGeneratorTest: test_: normal model should not include parameters in rails 4.
36592
+ ---------------------------------------------------------------------------------------------
36593
+  (0.0ms) begin transaction
36594
+  (0.0ms) commit transaction
36595
+  (0.0ms) begin transaction
36596
+  (0.0ms) rollback transaction
36597
+ ---------------------------------------------------------------------------------------------------------------------
36598
+ GenericControllerTest: test_: with a maestrano session should be successful if the maestrano session is still valid.
36599
+ ---------------------------------------------------------------------------------------------------------------------
36600
+  (0.0ms) begin transaction
36601
+  (0.0ms) commit transaction
36602
+  (0.0ms) begin transaction
36603
+ Processing by PagesController#home as HTML
36604
+ Rendered pages/home.html.erb within layouts/application (1.0ms)
36605
+ Completed 200 OK in 233ms (Views: 233.3ms | ActiveRecord: 0.0ms)
36606
+  (0.1ms) rollback transaction
36607
+ --------------------------------------------------------------------------------------------------------------------
36608
+ GenericControllerTest: test_: with a maestrano session should initialize redirect to SSO initialization if invalid.
36609
+ --------------------------------------------------------------------------------------------------------------------
36610
+  (0.0ms) begin transaction
36611
+  (0.0ms) commit transaction
36612
+  (0.0ms) begin transaction
36613
+ Processing by PagesController#home as HTML
36614
+ Rendered pages/home.html.erb within layouts/application (0.0ms)
36615
+ Completed 200 OK in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)
36616
+  (0.0ms) rollback transaction
36617
+ -----------------------------------------------------------------------------------------------------------
36618
+ GenericControllerTest: test_: with a maestrano session should not redirect to SSO init if sso is disabled.
36619
+ -----------------------------------------------------------------------------------------------------------
36620
+  (0.0ms) begin transaction
36621
+  (0.0ms) commit transaction
36622
+  (0.0ms) begin transaction
36623
+ Processing by PagesController#home as HTML
36624
+ Rendered pages/home.html.erb within layouts/application (0.0ms)
36625
+ Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms)
36626
+  (0.0ms) rollback transaction
36627
+ ------------------------------------------------------------------------------
36628
+ GenericControllerTest: test_: with no maestrano session should be successful.
36629
+ ------------------------------------------------------------------------------
36630
+  (0.0ms) begin transaction
36631
+  (0.0ms) commit transaction
36632
+  (0.0ms) begin transaction
36633
+ Processing by PagesController#home as HTML
36634
+ Rendered pages/home.html.erb within layouts/application (0.0ms)
36635
+ Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms)
36636
+  (0.0ms) rollback transaction
36637
+ ----------------------------------------------------------------------------------------------
36638
+ SamlBaseControllerTest: test_: consume phase error should redirect to maestrano on any error.
36639
+ ----------------------------------------------------------------------------------------------
36640
+  (0.0ms) begin transaction
36641
+  (0.0ms) commit transaction
36642
+  (0.0ms) begin transaction
36643
+ Processing by Maestrano::Auth::SamlController#consume as HTML
36644
+ Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"}
36645
+ Cannot validate SAML response: Bla
36646
+ Trace: ["/home/bruno/.rvm/gems/ruby-2.1.10/gems/mocha-1.1.0/lib/mocha/exception_raiser.rb:12:in `evaluate'", "/home/bruno/.rvm/gems/ruby-2.1.10/gems/mocha-1.1.0/lib/mocha/return_values.rb:20:in `next'", "/home/bruno/.rvm/gems/ruby-2.1.10/gems/mocha-1.1.0/lib/mocha/expectation.rb:569:in `invoke'", "/home/bruno/.rvm/gems/ruby-2.1.10/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.1.10/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:432:in `block in make_lambda'", "/home/bruno/.rvm/gems/ruby-2.1.10/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:291:in `call'", "/home/bruno/.rvm/gems/ruby-2.1.10/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:291:in `block in halting_and_conditional'", "/home/bruno/.rvm/gems/ruby-2.1.10/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:497:in `call'", "/home/bruno/.rvm/gems/ruby-2.1.10/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:497:in `block in around'", "/home/bruno/.rvm/gems/ruby-2.1.10/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:505:in `call'", "/home/bruno/.rvm/gems/ruby-2.1.10/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:505:in `call'", "/home/bruno/.rvm/gems/ruby-2.1.10/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:92:in `__run_callbacks__'", "/home/bruno/.rvm/gems/ruby-2.1.10/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:778:in `_run_process_action_callbacks'", "/home/bruno/.rvm/gems/ruby-2.1.10/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:81:in `run_callbacks'", "/home/bruno/.rvm/gems/ruby-2.1.10/gems/actionpack-4.2.7.1/lib/abstract_controller/callbacks.rb:19:in `process_action'", "/home/bruno/.rvm/gems/ruby-2.1.10/gems/actionpack-4.2.7.1/lib/action_controller/metal/rescue.rb:29:in `process_action'", "/home/bruno/.rvm/gems/ruby-2.1.10/gems/actionpack-4.2.7.1/lib/action_controller/metal/instrumentation.rb:32:in `block in process_action'", "/home/bruno/.rvm/gems/ruby-2.1.10/gems/activesupport-4.2.7.1/lib/active_support/notifications.rb:164:in `block in instrument'", "/home/bruno/.rvm/gems/ruby-2.1.10/gems/activesupport-4.2.7.1/lib/active_support/notifications/instrumenter.rb:20:in `instrument'", "/home/bruno/.rvm/gems/ruby-2.1.10/gems/activesupport-4.2.7.1/lib/active_support/notifications.rb:164:in `instrument'", "/home/bruno/.rvm/gems/ruby-2.1.10/gems/actionpack-4.2.7.1/lib/action_controller/metal/instrumentation.rb:30:in `process_action'", "/home/bruno/.rvm/gems/ruby-2.1.10/gems/actionpack-4.2.7.1/lib/action_controller/metal/params_wrapper.rb:250:in `process_action'", "/home/bruno/.rvm/gems/ruby-2.1.10/gems/activerecord-4.2.7.1/lib/active_record/railties/controller_runtime.rb:18:in `process_action'", "/home/bruno/.rvm/gems/ruby-2.1.10/gems/actionpack-4.2.7.1/lib/abstract_controller/base.rb:137:in `process'", "/home/bruno/.rvm/gems/ruby-2.1.10/gems/actionview-4.2.7.1/lib/action_view/rendering.rb:30:in `process'", "/home/bruno/.rvm/gems/ruby-2.1.10/gems/actionpack-4.2.7.1/lib/action_controller/test_case.rb:639:in `process'", "/home/bruno/.rvm/gems/ruby-2.1.10/gems/actionpack-4.2.7.1/lib/action_controller/test_case.rb:67:in `process'", "/home/bruno/.rvm/gems/ruby-2.1.10/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.1.10/gems/shoulda-context-1.2.1/lib/shoulda/context/context.rb:413:in `instance_exec'", "/home/bruno/.rvm/gems/ruby-2.1.10/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.1.10/gems/minitest-5.9.0/lib/minitest/test.rb:107:in `block (3 levels) in run'", "/home/bruno/.rvm/gems/ruby-2.1.10/gems/minitest-5.9.0/lib/minitest/test.rb:204:in `capture_exceptions'", "/home/bruno/.rvm/gems/ruby-2.1.10/gems/minitest-5.9.0/lib/minitest/test.rb:104:in `block (2 levels) in run'", "/home/bruno/.rvm/gems/ruby-2.1.10/gems/minitest-5.9.0/lib/minitest/test.rb:255:in `time_it'", "/home/bruno/.rvm/gems/ruby-2.1.10/gems/minitest-5.9.0/lib/minitest/test.rb:103:in `block in run'", "/home/bruno/.rvm/gems/ruby-2.1.10/gems/minitest-5.9.0/lib/minitest.rb:348:in `on_signal'", "/home/bruno/.rvm/gems/ruby-2.1.10/gems/minitest-5.9.0/lib/minitest/test.rb:275:in `with_info_handler'", "/home/bruno/.rvm/gems/ruby-2.1.10/gems/minitest-5.9.0/lib/minitest/test.rb:102:in `run'", "/home/bruno/.rvm/gems/ruby-2.1.10/gems/minitest-5.9.0/lib/minitest.rb:799:in `run_one_method'", "/home/bruno/.rvm/gems/ruby-2.1.10/gems/minitest-5.9.0/lib/minitest.rb:322:in `run_one_method'", "/home/bruno/.rvm/gems/ruby-2.1.10/gems/minitest-5.9.0/lib/minitest.rb:310:in `block (2 levels) in run'", "/home/bruno/.rvm/gems/ruby-2.1.10/gems/minitest-5.9.0/lib/minitest.rb:309:in `each'", "/home/bruno/.rvm/gems/ruby-2.1.10/gems/minitest-5.9.0/lib/minitest.rb:309:in `block in run'", "/home/bruno/.rvm/gems/ruby-2.1.10/gems/minitest-5.9.0/lib/minitest.rb:348:in `on_signal'", "/home/bruno/.rvm/gems/ruby-2.1.10/gems/minitest-5.9.0/lib/minitest.rb:335:in `with_info_handler'", "/home/bruno/.rvm/gems/ruby-2.1.10/gems/minitest-5.9.0/lib/minitest.rb:308:in `run'", "/home/bruno/.rvm/gems/ruby-2.1.10/gems/minitest-5.9.0/lib/minitest.rb:158:in `block in __run'", "/home/bruno/.rvm/gems/ruby-2.1.10/gems/minitest-5.9.0/lib/minitest.rb:158:in `map'", "/home/bruno/.rvm/gems/ruby-2.1.10/gems/minitest-5.9.0/lib/minitest.rb:158:in `__run'", "/home/bruno/.rvm/gems/ruby-2.1.10/gems/minitest-5.9.0/lib/minitest.rb:135:in `run'", "/home/bruno/.rvm/gems/ruby-2.1.10/gems/minitest-5.9.0/lib/minitest.rb:62:in `block in autorun'"]
36647
+ Redirected to http://api-sandbox.maestrano.io/app_access_unauthorized?err=internal
36648
+ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
36649
+  (0.0ms) rollback transaction
36650
+ --------------------------------------------------------------------------------------------------------------------
36651
+ SamlBaseControllerTest: test_: consume phase should reset the maestrano session successfully if one already exists.
36652
+ --------------------------------------------------------------------------------------------------------------------
36653
+  (0.0ms) begin transaction
36654
+  (0.0ms) commit transaction
36655
+  (0.0ms) begin transaction
36656
+ Processing by Maestrano::Auth::SamlController#consume as HTML
36657
+ Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"}
36658
+ Redirected to http://test.host/
36659
+ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
36660
+  (0.1ms) rollback transaction
36661
+ ---------------------------------------------------------------------------------
36662
+ SamlBaseControllerTest: test_: consume phase should set a saml_request in scope.
36663
+ ---------------------------------------------------------------------------------
36664
+  (0.1ms) begin transaction
36665
+  (0.1ms) commit transaction
36666
+  (0.0ms) begin transaction
36667
+ Processing by Maestrano::Auth::SamlController#consume as HTML
36668
+ Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"}
36669
+ Redirected to http://test.host/
36670
+ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
36671
+  (0.1ms) rollback transaction
36672
+ --------------------------------------------------------------------------------------
36673
+ SamlBaseControllerTest: test_: consume phase should set the group_auth_hash in scope.
36674
+ --------------------------------------------------------------------------------------
36675
+  (0.1ms) begin transaction
36676
+  (0.0ms) commit transaction
36677
+  (0.0ms) begin transaction
36678
+ Processing by Maestrano::Auth::SamlController#consume as HTML
36679
+ Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"}
36680
+ Redirected to http://test.host/
36681
+ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
36682
+  (0.0ms) rollback transaction
36683
+ -------------------------------------------------------------------------------
36684
+ SamlBaseControllerTest: test_: consume phase should set the maestrano session.
36685
+ -------------------------------------------------------------------------------
36686
+  (0.0ms) begin transaction
36687
+  (0.0ms) commit transaction
36688
+  (0.0ms) begin transaction
36689
+ Processing by Maestrano::Auth::SamlController#consume as HTML
36690
+ Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"}
36691
+ Redirected to http://test.host/
36692
+ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
36693
+  (0.0ms) rollback transaction
36694
+ -------------------------------------------------------------------------------------
36695
+ SamlBaseControllerTest: test_: consume phase should set the user_auth_hash in scope.
36696
+ -------------------------------------------------------------------------------------
36697
+  (0.0ms) begin transaction
36698
+  (0.0ms) commit transaction
36699
+  (0.0ms) begin transaction
36700
+ Processing by Maestrano::Auth::SamlController#consume as HTML
36701
+ Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"}
36702
+ Redirected to http://test.host/
36703
+ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
36704
+  (0.0ms) rollback transaction
36705
+ ------------------------------------------------------------------------------------------
36706
+ SamlBaseControllerTest: test_: consume phase should set the user_group_rel_hash in scope.
36707
+ ------------------------------------------------------------------------------------------
36708
+  (0.0ms) begin transaction
36709
+  (0.0ms) commit transaction
36710
+  (0.0ms) begin transaction
36711
+ Processing by Maestrano::Auth::SamlController#consume as HTML
36712
+ Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"}
36713
+ Redirected to http://test.host/
36714
+ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
36715
+  (0.0ms) rollback transaction
36716
+ ---------------------------------------------------------------------------------------------------------------------------
36717
+ SamlBaseControllerTest: test_: init phase should create a saml request successfully if a maestrano session is already set.
36718
+ ---------------------------------------------------------------------------------------------------------------------------
36719
+  (0.0ms) begin transaction
36720
+  (0.0ms) commit transaction
36721
+  (0.0ms) begin transaction
36722
+ Processing by Maestrano::Auth::SamlController#init as HTML
36723
+ Parameters: {"a_param"=>"value"}
36724
+ Redirected to http://idpprovider.com?r=request
36725
+ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
36726
+  (0.1ms) rollback transaction
36727
+ -----------------------------------------------------------------------------------------------------------------------
36728
+ SamlBaseControllerTest: test_: init phase should create a saml request using params and session and redirect the user.
36729
+ -----------------------------------------------------------------------------------------------------------------------
36730
+  (0.1ms) begin transaction
36731
+  (0.1ms) commit transaction
36732
+  (0.0ms) begin transaction
36733
+ Processing by Maestrano::Auth::SamlController#init as HTML
36734
+ Parameters: {"a_param"=>"value"}
36735
+ Redirected to http://idpprovider.com?r=request
36736
+ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
36737
+  (0.0ms) rollback transaction
36738
+ --------------------------------------------------------------------------------------------------------------------------------------
36739
+ MaestranoUserViaTest: test_: class methods find_or_create_for_maestrano class method should create a monster using the mapping block.
36740
+ --------------------------------------------------------------------------------------------------------------------------------------
36741
+  (0.0ms) begin transaction
36742
+  (0.0ms) commit transaction
36743
+  (0.0ms) begin transaction
36744
+ 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"]]
36745
+  (0.0ms) SAVEPOINT active_record_1
36746
+ 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-18 09:17:05.693649"], ["updated_at", "2016-09-18 09:17:05.693649"]]
36747
+  (0.0ms) RELEASE SAVEPOINT active_record_1
36748
+  (0.1ms) rollback transaction
36749
+ --------------------------------------------------------------------------------------------------------------------------------------------------------
36750
+ MaestranoUserViaTest: test_: class methods find_or_create_for_maestrano class method should not return a MnoMonster from another provider if it exists.
36751
+ --------------------------------------------------------------------------------------------------------------------------------------------------------
36752
+  (0.0ms) begin transaction
36753
+  (0.0ms) commit transaction
36754
+  (0.0ms) begin transaction
36755
+  (0.0ms) SAVEPOINT active_record_1
36756
+ 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-18 09:17:05.695625"], ["updated_at", "2016-09-18 09:17:05.695625"]]
36757
+  (0.0ms) RELEASE SAVEPOINT active_record_1
36758
+ 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"]]
36759
+  (0.0ms) SAVEPOINT active_record_1
36760
+ 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-18 09:17:05.697063"], ["updated_at", "2016-09-18 09:17:05.697063"]]
36761
+  (0.0ms) RELEASE SAVEPOINT active_record_1
36762
+  (0.1ms) rollback transaction
36763
+ --------------------------------------------------------------------------------------------------------------------------------
36764
+ MaestranoUserViaTest: test_: class methods find_or_create_for_maestrano class method should return the MnoMonster if it exists.
36765
+ --------------------------------------------------------------------------------------------------------------------------------
36766
+  (0.0ms) begin transaction
36767
+  (0.0ms) commit transaction
36768
+  (0.0ms) begin transaction
36769
+  (0.0ms) SAVEPOINT active_record_1
36770
+ 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-18 09:17:05.698567"], ["updated_at", "2016-09-18 09:17:05.698567"]]
36771
+  (0.0ms) RELEASE SAVEPOINT active_record_1
36772
+ 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"]]
36773
+  (0.1ms) rollback transaction
36774
+ ---------------------------------------------------------------------------------------------------
36775
+ MaestranoUserViaTest: test_: class methods maestrano_*_via should have the right field definition.
36776
+ ---------------------------------------------------------------------------------------------------
36777
+  (0.0ms) begin transaction
36778
+  (0.0ms) commit transaction
36779
+  (0.0ms) begin transaction
36780
+  (0.0ms) rollback transaction
36781
+ ------------------------------------------------------------------------------------------------------------
36782
+ MaestranoUserViaTest: test_: instance methods maestrano? should return false if provider is something else.
36783
+ ------------------------------------------------------------------------------------------------------------
36784
+  (0.0ms) begin transaction
36785
+  (0.0ms) commit transaction
36786
+  (0.0ms) begin transaction
36787
+  (0.0ms) rollback transaction
36788
+ ----------------------------------------------------------------------------------------------
36789
+ MaestranoUserViaTest: test_: instance methods maestrano? should return false if uid is blank.
36790
+ ----------------------------------------------------------------------------------------------
36791
+  (0.0ms) begin transaction
36792
+  (0.0ms) commit transaction
36793
+  (0.0ms) begin transaction
36794
+  (0.0ms) rollback transaction
36795
+ -----------------------------------------------------------------------------------------------------------------------
36796
+ MaestranoUserViaTest: test_: instance methods maestrano? should return true if provider is maestrano and uid not null.
36797
+ -----------------------------------------------------------------------------------------------------------------------
36798
+  (0.0ms) begin transaction
36799
+  (0.0ms) commit transaction
36800
+  (0.0ms) begin transaction
36801
+  (0.0ms) rollback transaction
36802
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
36803
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
36804
+ ------------------------------
36805
+ MaestranoRailsTest: test_truth
36806
+ ------------------------------
36807
+  (0.2ms) begin transaction
36808
+  (0.0ms) commit transaction
36809
+  (0.0ms) begin transaction
36810
+  (0.0ms) rollback transaction
36811
+ ----------------------------------------------------------------------------------------------------------
36812
+ GroupGeneratorTest: test_: GroupGenerator should call the active_record migration generator successfully.
36813
+ ----------------------------------------------------------------------------------------------------------
36814
+  (0.0ms) begin transaction
36815
+  (0.0ms) commit transaction
36816
+  (0.0ms) begin transaction
36817
+  (0.0ms) rollback transaction
36818
+ ----------------------------------------------------------------------------------------------------
36819
+ GroupGeneratorTest: test_: GroupGenerator should call the mongoid migration generator successfully.
36820
+ ----------------------------------------------------------------------------------------------------
36821
+  (0.0ms) begin transaction
36822
+  (0.0ms) commit transaction
36823
+  (0.0ms) begin transaction
36824
+  (0.0ms) rollback transaction
36825
+ ---------------------------------------------------------------------------------------
36826
+ InstallGeneratorTest: test_: InstallGenerator should create the maestrano initializer.
36827
+ ---------------------------------------------------------------------------------------
36828
+  (0.0ms) begin transaction
36829
+  (0.0ms) commit transaction
36830
+  (0.0ms) begin transaction
36831
+  (0.0ms) rollback transaction
36832
+ ----------------------------------------------------------------------------------
36833
+ InstallGeneratorTest: test_: InstallGenerator should create the maestrano routes.
36834
+ ----------------------------------------------------------------------------------
36835
+  (0.0ms) begin transaction
36836
+  (0.0ms) commit transaction
36837
+  (0.0ms) begin transaction
36838
+  (0.1ms) rollback transaction
36839
+ ----------------------------------------------------------------------------------------------------------
36840
+ InstallGeneratorTest: test_: InstallGenerator should create the maestrano/account/group_users_controller.
36841
+ ----------------------------------------------------------------------------------------------------------
36842
+  (0.0ms) begin transaction
36843
+  (0.0ms) commit transaction
36844
+  (0.0ms) begin transaction
36845
+  (0.1ms) rollback transaction
36846
+ -----------------------------------------------------------------------------------------------------
36847
+ InstallGeneratorTest: test_: InstallGenerator should create the maestrano/account/groups_controller.
36848
+ -----------------------------------------------------------------------------------------------------
36849
+  (0.0ms) begin transaction
36850
+  (0.0ms) commit transaction
36851
+  (0.0ms) begin transaction
36852
+  (0.1ms) rollback transaction
36853
+ ------------------------------------------------------------------------------------------------
36854
+ InstallGeneratorTest: test_: InstallGenerator should create the maestrano/auth/saml_controller.
36855
+ ------------------------------------------------------------------------------------------------
36856
+  (0.1ms) begin transaction
36857
+  (0.1ms) commit transaction
36858
+  (0.0ms) begin transaction
36859
+  (0.1ms) rollback transaction
36860
+ ----------------------------------------------------------------------------------------------
36861
+ SamlBaseControllerTest: test_: consume phase error should redirect to maestrano on any error.
36862
+ ----------------------------------------------------------------------------------------------
36863
+  (0.0ms) begin transaction
36864
+  (0.0ms) commit transaction
36865
+  (0.0ms) begin transaction
36866
+ Processing by Maestrano::Auth::SamlController#consume as HTML
36867
+ Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"}
36868
+ Cannot validate SAML response: Bla
36869
+ Trace: ["/home/bruno/.rvm/gems/ruby-2.1.10/gems/mocha-1.1.0/lib/mocha/exception_raiser.rb:12:in `evaluate'", "/home/bruno/.rvm/gems/ruby-2.1.10/gems/mocha-1.1.0/lib/mocha/return_values.rb:20:in `next'", "/home/bruno/.rvm/gems/ruby-2.1.10/gems/mocha-1.1.0/lib/mocha/expectation.rb:569:in `invoke'", "/home/bruno/.rvm/gems/ruby-2.1.10/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.1.10/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:432:in `block in make_lambda'", "/home/bruno/.rvm/gems/ruby-2.1.10/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:291:in `call'", "/home/bruno/.rvm/gems/ruby-2.1.10/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:291:in `block in halting_and_conditional'", "/home/bruno/.rvm/gems/ruby-2.1.10/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:497:in `call'", "/home/bruno/.rvm/gems/ruby-2.1.10/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:497:in `block in around'", "/home/bruno/.rvm/gems/ruby-2.1.10/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:505:in `call'", "/home/bruno/.rvm/gems/ruby-2.1.10/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:505:in `call'", "/home/bruno/.rvm/gems/ruby-2.1.10/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:92:in `__run_callbacks__'", "/home/bruno/.rvm/gems/ruby-2.1.10/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:778:in `_run_process_action_callbacks'", "/home/bruno/.rvm/gems/ruby-2.1.10/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:81:in `run_callbacks'", "/home/bruno/.rvm/gems/ruby-2.1.10/gems/actionpack-4.2.7.1/lib/abstract_controller/callbacks.rb:19:in `process_action'", "/home/bruno/.rvm/gems/ruby-2.1.10/gems/actionpack-4.2.7.1/lib/action_controller/metal/rescue.rb:29:in `process_action'", "/home/bruno/.rvm/gems/ruby-2.1.10/gems/actionpack-4.2.7.1/lib/action_controller/metal/instrumentation.rb:32:in `block in process_action'", "/home/bruno/.rvm/gems/ruby-2.1.10/gems/activesupport-4.2.7.1/lib/active_support/notifications.rb:164:in `block in instrument'", "/home/bruno/.rvm/gems/ruby-2.1.10/gems/activesupport-4.2.7.1/lib/active_support/notifications/instrumenter.rb:20:in `instrument'", "/home/bruno/.rvm/gems/ruby-2.1.10/gems/activesupport-4.2.7.1/lib/active_support/notifications.rb:164:in `instrument'", "/home/bruno/.rvm/gems/ruby-2.1.10/gems/actionpack-4.2.7.1/lib/action_controller/metal/instrumentation.rb:30:in `process_action'", "/home/bruno/.rvm/gems/ruby-2.1.10/gems/actionpack-4.2.7.1/lib/action_controller/metal/params_wrapper.rb:250:in `process_action'", "/home/bruno/.rvm/gems/ruby-2.1.10/gems/activerecord-4.2.7.1/lib/active_record/railties/controller_runtime.rb:18:in `process_action'", "/home/bruno/.rvm/gems/ruby-2.1.10/gems/actionpack-4.2.7.1/lib/abstract_controller/base.rb:137:in `process'", "/home/bruno/.rvm/gems/ruby-2.1.10/gems/actionview-4.2.7.1/lib/action_view/rendering.rb:30:in `process'", "/home/bruno/.rvm/gems/ruby-2.1.10/gems/actionpack-4.2.7.1/lib/action_controller/test_case.rb:639:in `process'", "/home/bruno/.rvm/gems/ruby-2.1.10/gems/actionpack-4.2.7.1/lib/action_controller/test_case.rb:67:in `process'", "/home/bruno/.rvm/gems/ruby-2.1.10/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.1.10/gems/shoulda-context-1.2.1/lib/shoulda/context/context.rb:413:in `instance_exec'", "/home/bruno/.rvm/gems/ruby-2.1.10/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.1.10/gems/minitest-5.9.0/lib/minitest/test.rb:107:in `block (3 levels) in run'", "/home/bruno/.rvm/gems/ruby-2.1.10/gems/minitest-5.9.0/lib/minitest/test.rb:204:in `capture_exceptions'", "/home/bruno/.rvm/gems/ruby-2.1.10/gems/minitest-5.9.0/lib/minitest/test.rb:104:in `block (2 levels) in run'", "/home/bruno/.rvm/gems/ruby-2.1.10/gems/minitest-5.9.0/lib/minitest/test.rb:255:in `time_it'", "/home/bruno/.rvm/gems/ruby-2.1.10/gems/minitest-5.9.0/lib/minitest/test.rb:103:in `block in run'", "/home/bruno/.rvm/gems/ruby-2.1.10/gems/minitest-5.9.0/lib/minitest.rb:348:in `on_signal'", "/home/bruno/.rvm/gems/ruby-2.1.10/gems/minitest-5.9.0/lib/minitest/test.rb:275:in `with_info_handler'", "/home/bruno/.rvm/gems/ruby-2.1.10/gems/minitest-5.9.0/lib/minitest/test.rb:102:in `run'", "/home/bruno/.rvm/gems/ruby-2.1.10/gems/minitest-5.9.0/lib/minitest.rb:799:in `run_one_method'", "/home/bruno/.rvm/gems/ruby-2.1.10/gems/minitest-5.9.0/lib/minitest.rb:322:in `run_one_method'", "/home/bruno/.rvm/gems/ruby-2.1.10/gems/minitest-5.9.0/lib/minitest.rb:310:in `block (2 levels) in run'", "/home/bruno/.rvm/gems/ruby-2.1.10/gems/minitest-5.9.0/lib/minitest.rb:309:in `each'", "/home/bruno/.rvm/gems/ruby-2.1.10/gems/minitest-5.9.0/lib/minitest.rb:309:in `block in run'", "/home/bruno/.rvm/gems/ruby-2.1.10/gems/minitest-5.9.0/lib/minitest.rb:348:in `on_signal'", "/home/bruno/.rvm/gems/ruby-2.1.10/gems/minitest-5.9.0/lib/minitest.rb:335:in `with_info_handler'", "/home/bruno/.rvm/gems/ruby-2.1.10/gems/minitest-5.9.0/lib/minitest.rb:308:in `run'", "/home/bruno/.rvm/gems/ruby-2.1.10/gems/minitest-5.9.0/lib/minitest.rb:158:in `block in __run'", "/home/bruno/.rvm/gems/ruby-2.1.10/gems/minitest-5.9.0/lib/minitest.rb:158:in `map'", "/home/bruno/.rvm/gems/ruby-2.1.10/gems/minitest-5.9.0/lib/minitest.rb:158:in `__run'", "/home/bruno/.rvm/gems/ruby-2.1.10/gems/minitest-5.9.0/lib/minitest.rb:135:in `run'", "/home/bruno/.rvm/gems/ruby-2.1.10/gems/minitest-5.9.0/lib/minitest.rb:62:in `block in autorun'"]
36870
+ Redirected to http://api-sandbox.maestrano.io/app_access_unauthorized?err=internal
36871
+ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
36872
+  (0.0ms) rollback transaction
36873
+ --------------------------------------------------------------------------------------------------------------------
36874
+ SamlBaseControllerTest: test_: consume phase should reset the maestrano session successfully if one already exists.
36875
+ --------------------------------------------------------------------------------------------------------------------
36876
+  (0.0ms) begin transaction
36877
+  (0.0ms) commit transaction
36878
+  (0.0ms) begin transaction
36879
+ Processing by Maestrano::Auth::SamlController#consume as HTML
36880
+ Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"}
36881
+ Redirected to http://test.host/
36882
+ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
36883
+  (0.0ms) rollback transaction
36884
+ ---------------------------------------------------------------------------------
36885
+ SamlBaseControllerTest: test_: consume phase should set a saml_request in scope.
36886
+ ---------------------------------------------------------------------------------
36887
+  (0.0ms) begin transaction
36888
+  (0.0ms) commit transaction
36889
+  (0.0ms) begin transaction
36890
+ Processing by Maestrano::Auth::SamlController#consume as HTML
36891
+ Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"}
36892
+ Redirected to http://test.host/
36893
+ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
36894
+  (0.0ms) rollback transaction
36895
+ --------------------------------------------------------------------------------------
36896
+ SamlBaseControllerTest: test_: consume phase should set the group_auth_hash in scope.
36897
+ --------------------------------------------------------------------------------------
36898
+  (0.0ms) begin transaction
36899
+  (0.0ms) commit transaction
36900
+  (0.0ms) begin transaction
36901
+ Processing by Maestrano::Auth::SamlController#consume as HTML
36902
+ Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"}
36903
+ Redirected to http://test.host/
36904
+ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
36905
+  (0.0ms) rollback transaction
36906
+ -------------------------------------------------------------------------------
36907
+ SamlBaseControllerTest: test_: consume phase should set the maestrano session.
36908
+ -------------------------------------------------------------------------------
36909
+  (0.0ms) begin transaction
36910
+  (0.0ms) commit transaction
36911
+  (0.0ms) begin transaction
36912
+ Processing by Maestrano::Auth::SamlController#consume as HTML
36913
+ Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"}
36914
+ Redirected to http://test.host/
36915
+ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
36916
+  (0.0ms) rollback transaction
36917
+ -------------------------------------------------------------------------------------
36918
+ SamlBaseControllerTest: test_: consume phase should set the user_auth_hash in scope.
36919
+ -------------------------------------------------------------------------------------
36920
+  (0.0ms) begin transaction
36921
+  (0.0ms) commit transaction
36922
+  (0.0ms) begin transaction
36923
+ Processing by Maestrano::Auth::SamlController#consume as HTML
36924
+ Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"}
36925
+ Redirected to http://test.host/
36926
+ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
36927
+  (0.0ms) rollback transaction
36928
+ ------------------------------------------------------------------------------------------
36929
+ SamlBaseControllerTest: test_: consume phase should set the user_group_rel_hash in scope.
36930
+ ------------------------------------------------------------------------------------------
36931
+  (0.0ms) begin transaction
36932
+  (0.0ms) commit transaction
36933
+  (0.0ms) begin transaction
36934
+ Processing by Maestrano::Auth::SamlController#consume as HTML
36935
+ Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"}
36936
+ Redirected to http://test.host/
36937
+ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
36938
+  (0.0ms) rollback transaction
36939
+ ---------------------------------------------------------------------------------------------------------------------------
36940
+ SamlBaseControllerTest: test_: init phase should create a saml request successfully if a maestrano session is already set.
36941
+ ---------------------------------------------------------------------------------------------------------------------------
36942
+  (0.0ms) begin transaction
36943
+  (0.0ms) commit transaction
36944
+  (0.0ms) begin transaction
36945
+ Processing by Maestrano::Auth::SamlController#init as HTML
36946
+ Parameters: {"a_param"=>"value"}
36947
+ Redirected to http://idpprovider.com?r=request
36948
+ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
36949
+  (0.0ms) rollback transaction
36950
+ -----------------------------------------------------------------------------------------------------------------------
36951
+ SamlBaseControllerTest: test_: init phase should create a saml request using params and session and redirect the user.
36952
+ -----------------------------------------------------------------------------------------------------------------------
36953
+  (0.1ms) begin transaction
36954
+  (0.0ms) commit transaction
36955
+  (0.0ms) begin transaction
36956
+ Processing by Maestrano::Auth::SamlController#init as HTML
36957
+ Parameters: {"a_param"=>"value"}
36958
+ Redirected to http://idpprovider.com?r=request
36959
+ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
36960
+  (0.1ms) rollback transaction
36961
+ -------------------------------------------------------------------
36962
+ MetadataControllerTest: test_: authenticated should be successful.
36963
+ -------------------------------------------------------------------
36964
+  (0.0ms) begin transaction
36965
+  (0.0ms) commit transaction
36966
+  (0.1ms) begin transaction
36967
+ Processing by Maestrano::Rails::MetadataController#index as HTML
36968
+ Completed 200 OK in 2ms (Views: 0.5ms | ActiveRecord: 0.0ms)
36969
+  (0.0ms) rollback transaction
36970
+ -------------------------------------------------------------------
36971
+ MetadataControllerTest: test_: unauthenticated should deny access.
36972
+ -------------------------------------------------------------------
36973
+  (0.0ms) begin transaction
36974
+  (0.0ms) commit transaction
36975
+  (0.0ms) begin transaction
36976
+ Processing by Maestrano::Rails::MetadataController#index as HTML
36977
+ Filter chain halted as :authenticate_maestrano! rendered or redirected
36978
+ Completed 401 Unauthorized in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
36979
+  (0.0ms) rollback transaction
36980
+ ---------------------------------------------------------------------
36981
+ GroupUsersControllerTest: test_: authenticated should be successful.
36982
+ ---------------------------------------------------------------------
36983
+  (0.0ms) begin transaction
36984
+  (0.0ms) commit transaction
36985
+  (0.0ms) begin transaction
36986
+ Processing by Maestrano::Account::GroupUsersController#destroy as HTML
36987
+ Parameters: {"group_id"=>"cld-1", "id"=>"usr-1"}
36988
+ Rendered text template (0.0ms)
36989
+ Completed 200 OK in 5ms (Views: 4.6ms | ActiveRecord: 0.0ms)
36990
+  (0.1ms) rollback transaction
36991
+ ---------------------------------------------------------------------
36992
+ GroupUsersControllerTest: test_: unauthenticated should deny access.
36993
+ ---------------------------------------------------------------------
36994
+  (0.0ms) begin transaction
36995
+  (0.0ms) commit transaction
36996
+  (0.0ms) begin transaction
36997
+ Processing by Maestrano::Account::GroupUsersController#destroy as HTML
36998
+ Parameters: {"group_id"=>"cld-1", "id"=>"usr-1"}
36999
+ Filter chain halted as :authenticate_maestrano! rendered or redirected
37000
+ Completed 401 Unauthorized in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
37001
+  (0.0ms) rollback transaction
37002
+ --------------------------------------------------------------------------------------------------------
37003
+ UserGeneratorTest: test_: UserGenerator should call the active_record migration generator successfully.
37004
+ --------------------------------------------------------------------------------------------------------
37005
+  (0.0ms) begin transaction
37006
+  (0.0ms) commit transaction
37007
+  (0.0ms) begin transaction
37008
+  (0.0ms) rollback transaction
37009
+ --------------------------------------------------------------------------------------------------
37010
+ UserGeneratorTest: test_: UserGenerator should call the mongoid migration generator successfully.
37011
+ --------------------------------------------------------------------------------------------------
37012
+  (0.0ms) begin transaction
37013
+  (0.0ms) commit transaction
37014
+  (0.0ms) begin transaction
37015
+  (0.1ms) rollback transaction
37016
+ --------------------------------------------------------------------------------------------------------------------------------------
37017
+ MaestranoUserViaTest: test_: class methods find_or_create_for_maestrano class method should create a monster using the mapping block.
37018
+ --------------------------------------------------------------------------------------------------------------------------------------
37019
+  (0.1ms) begin transaction
37020
+  (0.1ms) commit transaction
37021
+  (0.0ms) begin transaction
37022
+ 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"]]
37023
+  (0.1ms) SAVEPOINT active_record_1
37024
+ 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-18 09:17:30.435053"], ["updated_at", "2016-09-18 09:17:30.435053"]]
37025
+  (0.0ms) RELEASE SAVEPOINT active_record_1
37026
+  (0.1ms) rollback transaction
37027
+ --------------------------------------------------------------------------------------------------------------------------------------------------------
37028
+ MaestranoUserViaTest: test_: class methods find_or_create_for_maestrano class method should not return a MnoMonster from another provider if it exists.
37029
+ --------------------------------------------------------------------------------------------------------------------------------------------------------
37030
+  (0.0ms) begin transaction
37031
+  (0.0ms) commit transaction
37032
+  (0.0ms) begin transaction
37033
+  (0.0ms) SAVEPOINT active_record_1
37034
+ 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-18 09:17:30.437328"], ["updated_at", "2016-09-18 09:17:30.437328"]]
37035
+  (0.0ms) RELEASE SAVEPOINT active_record_1
37036
+ 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"]]
37037
+  (0.0ms) SAVEPOINT active_record_1
37038
+ 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-18 09:17:30.438873"], ["updated_at", "2016-09-18 09:17:30.438873"]]
37039
+  (0.1ms) RELEASE SAVEPOINT active_record_1
37040
+  (0.1ms) rollback transaction
37041
+ --------------------------------------------------------------------------------------------------------------------------------
37042
+ MaestranoUserViaTest: test_: class methods find_or_create_for_maestrano class method should return the MnoMonster if it exists.
37043
+ --------------------------------------------------------------------------------------------------------------------------------
37044
+  (0.0ms) begin transaction
37045
+  (0.0ms) commit transaction
37046
+  (0.0ms) begin transaction
37047
+  (0.0ms) SAVEPOINT active_record_1
37048
+ 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-18 09:17:30.467749"], ["updated_at", "2016-09-18 09:17:30.467749"]]
37049
+  (0.0ms) RELEASE SAVEPOINT active_record_1
37050
+ 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"]]
37051
+  (0.1ms) rollback transaction
37052
+ ---------------------------------------------------------------------------------------------------
37053
+ MaestranoUserViaTest: test_: class methods maestrano_*_via should have the right field definition.
37054
+ ---------------------------------------------------------------------------------------------------
37055
+  (0.0ms) begin transaction
37056
+  (0.0ms) commit transaction
37057
+  (0.0ms) begin transaction
37058
+  (0.0ms) rollback transaction
37059
+ ------------------------------------------------------------------------------------------------------------
37060
+ MaestranoUserViaTest: test_: instance methods maestrano? should return false if provider is something else.
37061
+ ------------------------------------------------------------------------------------------------------------
37062
+  (0.0ms) begin transaction
37063
+  (0.0ms) commit transaction
37064
+  (0.0ms) begin transaction
37065
+  (0.0ms) rollback transaction
37066
+ ----------------------------------------------------------------------------------------------
37067
+ MaestranoUserViaTest: test_: instance methods maestrano? should return false if uid is blank.
37068
+ ----------------------------------------------------------------------------------------------
37069
+  (0.0ms) begin transaction
37070
+  (0.0ms) commit transaction
37071
+  (0.0ms) begin transaction
37072
+  (0.0ms) rollback transaction
37073
+ -----------------------------------------------------------------------------------------------------------------------
37074
+ MaestranoUserViaTest: test_: instance methods maestrano? should return true if provider is maestrano and uid not null.
37075
+ -----------------------------------------------------------------------------------------------------------------------
37076
+  (0.0ms) begin transaction
37077
+  (0.0ms) commit transaction
37078
+  (0.0ms) begin transaction
37079
+  (0.0ms) rollback transaction
37080
+ ------------------------------------------------------------------------------------------
37081
+ ActiveRecordUserGeneratorTest: test_: namespaced model should create the right migration.
37082
+ ------------------------------------------------------------------------------------------
37083
+  (0.0ms) begin transaction
37084
+  (0.0ms) commit transaction
37085
+  (0.0ms) begin transaction
37086
+  (0.1ms) rollback transaction
37087
+ --------------------------------------------------------------------------------------
37088
+ ActiveRecordUserGeneratorTest: test_: namespaced model should edit the model content.
37089
+ --------------------------------------------------------------------------------------
37090
+  (0.0ms) begin transaction
37091
+  (0.0ms) commit transaction
37092
+  (0.0ms) begin transaction
37093
+  (0.1ms) rollback transaction
37094
+ --------------------------------------------------------------------------------------
37095
+ ActiveRecordUserGeneratorTest: test_: normal model should create the right migration.
37096
+ --------------------------------------------------------------------------------------
37097
+  (0.0ms) begin transaction
37098
+  (0.0ms) commit transaction
37099
+  (0.0ms) begin transaction
37100
+  (0.0ms) rollback transaction
37101
+ ----------------------------------------------------------------------------------
37102
+ ActiveRecordUserGeneratorTest: test_: normal model should edit the model content.
37103
+ ----------------------------------------------------------------------------------
37104
+  (0.0ms) begin transaction
37105
+  (0.0ms) commit transaction
37106
+  (0.0ms) begin transaction
37107
+  (0.0ms) rollback transaction
37108
+ --------------------------------------------------------------------------------------------------------------------------
37109
+ ActiveRecordUserGeneratorTest: test_: normal model should include parameters if rails 3 and strong_parameter not present.
37110
+ --------------------------------------------------------------------------------------------------------------------------
37111
+  (0.0ms) begin transaction
37112
+  (0.0ms) commit transaction
37113
+  (0.0ms) begin transaction
37114
+  (0.0ms) rollback transaction
37115
+ --------------------------------------------------------------------------------------------------------------------------
37116
+ ActiveRecordUserGeneratorTest: test_: normal model should not include parameters if rails 3 and strong_parameter present.
37117
+ --------------------------------------------------------------------------------------------------------------------------
37118
+  (0.0ms) begin transaction
37119
+  (0.0ms) commit transaction
37120
+  (0.0ms) begin transaction
37121
+  (0.0ms) rollback transaction
37122
+ ---------------------------------------------------------------------------------------------
37123
+ ActiveRecordUserGeneratorTest: test_: normal model should not include parameters in rails 4.
37124
+ ---------------------------------------------------------------------------------------------
37125
+  (0.0ms) begin transaction
37126
+  (0.0ms) commit transaction
37127
+  (0.0ms) begin transaction
37128
+  (0.0ms) rollback transaction
37129
+ -----------------------------------------------------------------
37130
+ GroupsControllerTest: test_: authenticated should be successful.
37131
+ -----------------------------------------------------------------
37132
+  (0.0ms) begin transaction
37133
+  (0.0ms) commit transaction
37134
+  (0.0ms) begin transaction
37135
+ Processing by Maestrano::Account::GroupsController#destroy as HTML
37136
+ Parameters: {"id"=>"cld-1"}
37137
+ Rendered text template (0.0ms)
37138
+ Completed 200 OK in 2ms (Views: 1.8ms | ActiveRecord: 0.0ms)
37139
+  (0.0ms) rollback transaction
37140
+ -----------------------------------------------------------------
37141
+ GroupsControllerTest: test_: unauthenticated should deny access.
37142
+ -----------------------------------------------------------------
37143
+  (0.0ms) begin transaction
37144
+  (0.0ms) commit transaction
37145
+  (0.0ms) begin transaction
37146
+ Processing by Maestrano::Account::GroupsController#destroy as HTML
37147
+ Parameters: {"id"=>"cld-1"}
37148
+ Filter chain halted as :authenticate_maestrano! rendered or redirected
37149
+ Completed 401 Unauthorized in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
37150
+  (0.0ms) rollback transaction
37151
+ ---------------------------------------------------------------------------------------------------------------------
37152
+ GenericControllerTest: test_: with a maestrano session should be successful if the maestrano session is still valid.
37153
+ ---------------------------------------------------------------------------------------------------------------------
37154
+  (0.0ms) begin transaction
37155
+  (0.0ms) commit transaction
37156
+  (0.0ms) begin transaction
37157
+ Processing by PagesController#home as HTML
37158
+ Rendered pages/home.html.erb within layouts/application (0.9ms)
37159
+ Completed 200 OK in 149ms (Views: 148.8ms | ActiveRecord: 0.0ms)
37160
+  (0.1ms) rollback transaction
37161
+ --------------------------------------------------------------------------------------------------------------------
37162
+ GenericControllerTest: test_: with a maestrano session should initialize redirect to SSO initialization if invalid.
37163
+ --------------------------------------------------------------------------------------------------------------------
37164
+  (0.0ms) begin transaction
37165
+  (0.0ms) commit transaction
37166
+  (0.0ms) begin transaction
37167
+ Processing by PagesController#home as HTML
37168
+ Redirected to http://localhost::3000/maestrano/auth/saml/init
37169
+ Filter chain halted as :verify_maestrano_session rendered or redirected
37170
+ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
37171
+  (0.0ms) rollback transaction
37172
+ -----------------------------------------------------------------------------------------------------------
37173
+ GenericControllerTest: test_: with a maestrano session should not redirect to SSO init if sso is disabled.
37174
+ -----------------------------------------------------------------------------------------------------------
37175
+  (0.0ms) begin transaction
37176
+  (0.0ms) commit transaction
37177
+  (0.0ms) begin transaction
37178
+ Processing by PagesController#home as HTML
37179
+ Rendered pages/home.html.erb within layouts/application (0.1ms)
37180
+ Completed 200 OK in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)
37181
+  (0.0ms) rollback transaction
37182
+ ------------------------------------------------------------------------------
37183
+ GenericControllerTest: test_: with no maestrano session should be successful.
37184
+ ------------------------------------------------------------------------------
37185
+  (0.0ms) begin transaction
37186
+  (0.0ms) commit transaction
37187
+  (0.0ms) begin transaction
37188
+ Processing by PagesController#home as HTML
37189
+ Rendered pages/home.html.erb within layouts/application (0.0ms)
37190
+ Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms)
37191
+  (0.0ms) rollback transaction
37192
+ -------------------------------------------------------------------------------------------
37193
+ ActiveRecordGroupGeneratorTest: test_: namespaced model should create the right migration.
37194
+ -------------------------------------------------------------------------------------------
37195
+  (0.0ms) begin transaction
37196
+  (0.0ms) commit transaction
37197
+  (0.0ms) begin transaction
37198
+  (0.0ms) rollback transaction
37199
+ ---------------------------------------------------------------------------------------
37200
+ ActiveRecordGroupGeneratorTest: test_: namespaced model should edit the model content.
37201
+ ---------------------------------------------------------------------------------------
37202
+  (0.0ms) begin transaction
37203
+  (0.0ms) commit transaction
37204
+  (0.0ms) begin transaction
37205
+  (0.0ms) rollback transaction
37206
+ ---------------------------------------------------------------------------------------
37207
+ ActiveRecordGroupGeneratorTest: test_: normal model should create the right migration.
37208
+ ---------------------------------------------------------------------------------------
37209
+  (0.0ms) begin transaction
37210
+  (0.0ms) commit transaction
37211
+  (0.0ms) begin transaction
37212
+  (0.1ms) rollback transaction
37213
+ -----------------------------------------------------------------------------------
37214
+ ActiveRecordGroupGeneratorTest: test_: normal model should edit the model content.
37215
+ -----------------------------------------------------------------------------------
37216
+  (0.0ms) begin transaction
37217
+  (0.0ms) commit transaction
37218
+  (0.0ms) begin transaction
37219
+  (0.0ms) rollback transaction
37220
+ ---------------------------------------------------------------------------------------------------------------------------
37221
+ ActiveRecordGroupGeneratorTest: test_: normal model should include parameters if rails 3 and strong_parameter not present.
37222
+ ---------------------------------------------------------------------------------------------------------------------------
37223
+  (0.0ms) begin transaction
37224
+  (0.0ms) commit transaction
37225
+  (0.0ms) begin transaction
37226
+  (0.0ms) rollback transaction
37227
+ ---------------------------------------------------------------------------------------------------------------------------
37228
+ ActiveRecordGroupGeneratorTest: test_: normal model should not include parameters if rails 3 and strong_parameter present.
37229
+ ---------------------------------------------------------------------------------------------------------------------------
37230
+  (0.0ms) begin transaction
37231
+  (0.0ms) commit transaction
37232
+  (0.0ms) begin transaction
37233
+  (0.0ms) rollback transaction
37234
+ ----------------------------------------------------------------------------------------------
37235
+ ActiveRecordGroupGeneratorTest: test_: normal model should not include parameters in rails 4.
37236
+ ----------------------------------------------------------------------------------------------
37237
+  (0.0ms) begin transaction
37238
+  (0.0ms) commit transaction
37239
+  (0.0ms) begin transaction
37240
+  (0.1ms) rollback transaction
37241
+ ---------------------------------------------------------------------------------------------------------------------------------------
37242
+ MaestranoGroupViaTest: test_: class methods find_or_create_for_maestrano class method should create a monster using the mapping block.
37243
+ ---------------------------------------------------------------------------------------------------------------------------------------
37244
+  (0.0ms) begin transaction
37245
+  (0.0ms) commit transaction
37246
+  (0.0ms) begin transaction
37247
+ 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"]]
37248
+  (0.0ms) SAVEPOINT active_record_1
37249
+ 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-18 09:17:30.688456"], ["updated_at", "2016-09-18 09:17:30.688456"]]
37250
+  (0.0ms) RELEASE SAVEPOINT active_record_1
37251
+  (0.1ms) rollback transaction
37252
+ ------------------------------------------------------------------------------------------------------------------------------------------------------
37253
+ MaestranoGroupViaTest: test_: class methods find_or_create_for_maestrano class method should not return a MnoCrew from another provider if it exists.
37254
+ ------------------------------------------------------------------------------------------------------------------------------------------------------
37255
+  (0.0ms) begin transaction
37256
+  (0.0ms) commit transaction
37257
+  (0.0ms) begin transaction
37258
+  (0.0ms) SAVEPOINT active_record_1
37259
+ 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-18 09:17:30.690437"], ["updated_at", "2016-09-18 09:17:30.690437"]]
37260
+  (0.0ms) RELEASE SAVEPOINT active_record_1
37261
+ 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"]]
37262
+  (0.0ms) SAVEPOINT active_record_1
37263
+ 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-18 09:17:30.691789"], ["updated_at", "2016-09-18 09:17:30.691789"]]
37264
+  (0.0ms) RELEASE SAVEPOINT active_record_1
37265
+  (0.1ms) rollback transaction
37266
+ ------------------------------------------------------------------------------------------------------------------------------
37267
+ MaestranoGroupViaTest: test_: class methods find_or_create_for_maestrano class method should return the MnoCrew if it exists.
37268
+ ------------------------------------------------------------------------------------------------------------------------------
37269
+  (0.0ms) begin transaction
37270
+  (0.0ms) commit transaction
37271
+  (0.0ms) begin transaction
37272
+  (0.0ms) SAVEPOINT active_record_1
37273
+ 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-18 09:17:30.693124"], ["updated_at", "2016-09-18 09:17:30.693124"]]
37274
+  (0.0ms) RELEASE SAVEPOINT active_record_1
37275
+ 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"]]
37276
+  (0.1ms) rollback transaction
37277
+ ----------------------------------------------------------------------------------------------------
37278
+ MaestranoGroupViaTest: test_: class methods maestrano_*_via should have the right field definition.
37279
+ ----------------------------------------------------------------------------------------------------
37280
+  (0.0ms) begin transaction
37281
+  (0.0ms) commit transaction
37282
+  (0.0ms) begin transaction
37283
+  (0.0ms) rollback transaction
37284
+ -------------------------------------------------------------------------------------------------------------
37285
+ MaestranoGroupViaTest: test_: instance methods maestrano? should return false if provider is something else.
37286
+ -------------------------------------------------------------------------------------------------------------
37287
+  (0.0ms) begin transaction
37288
+  (0.0ms) commit transaction
37289
+  (0.0ms) begin transaction
37290
+  (0.0ms) rollback transaction
37291
+ -----------------------------------------------------------------------------------------------
37292
+ MaestranoGroupViaTest: test_: instance methods maestrano? should return false if uid is blank.
37293
+ -----------------------------------------------------------------------------------------------
37294
+  (0.0ms) begin transaction
37295
+  (0.0ms) commit transaction
37296
+  (0.0ms) begin transaction
37297
+  (0.0ms) rollback transaction
37298
+ ------------------------------------------------------------------------------------------------------------------------
37299
+ MaestranoGroupViaTest: test_: instance methods maestrano? should return true if provider is maestrano and uid not null.
37300
+ ------------------------------------------------------------------------------------------------------------------------
37301
+  (0.0ms) begin transaction
37302
+  (0.0ms) commit transaction
37303
+  (0.0ms) begin transaction
37304
+  (0.0ms) rollback transaction