maestrano-rails 1.0.0.pre.RC7 → 1.0.0.pre.RC8

Sign up to get free protection for your applications and to get access to all the features.
@@ -40821,3 +40821,2511 @@ UserGeneratorTest: test_: UserGenerator should call the mongoid migration genera
40821
40821
   (0.0ms) commit transaction
40822
40822
   (0.0ms) begin transaction
40823
40823
   (0.0ms) rollback transaction
40824
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
40825
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
40826
+ -------------------------------------------------------------------
40827
+ MetadataControllerTest: test_: authenticated should be successful.
40828
+ -------------------------------------------------------------------
40829
+  (0.1ms) begin transaction
40830
+  (0.0ms) commit transaction
40831
+  (0.0ms) begin transaction
40832
+ Processing by Maestrano::Rails::MetadataController#index as HTML
40833
+ Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)
40834
+  (0.0ms) rollback transaction
40835
+ -------------------------------------------------------------------
40836
+ MetadataControllerTest: test_: unauthenticated should deny access.
40837
+ -------------------------------------------------------------------
40838
+  (0.0ms) begin transaction
40839
+  (0.0ms) commit transaction
40840
+  (0.0ms) begin transaction
40841
+ Processing by Maestrano::Rails::MetadataController#index as HTML
40842
+ Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)
40843
+  (0.1ms) rollback transaction
40844
+ ------------------------------
40845
+ MaestranoRailsTest: test_truth
40846
+ ------------------------------
40847
+  (0.0ms) begin transaction
40848
+  (0.0ms) commit transaction
40849
+  (0.1ms) begin transaction
40850
+  (0.0ms) rollback transaction
40851
+ ----------------------------------------------------------------------------------------------
40852
+ SamlBaseControllerTest: test_: consume phase error should redirect to maestrano on any error.
40853
+ ----------------------------------------------------------------------------------------------
40854
+  (0.0ms) begin transaction
40855
+  (0.0ms) commit transaction
40856
+  (0.0ms) begin transaction
40857
+ Processing by Maestrano::Auth::SamlController#consume as HTML
40858
+ Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"}
40859
+ Cannot validate SAML response: Bla
40860
+ Trace: ["/home/bruno/.rvm/gems/ruby-2.3.1/gems/mocha-1.2.1/lib/mocha/exception_raiser.rb:12:in `evaluate'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/mocha-1.2.1/lib/mocha/return_values.rb:20:in `next'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/mocha-1.2.1/lib/mocha/expectation.rb:569:in `invoke'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/mocha-1.2.1/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.1/lib/minitest/test.rb:107:in `block (3 levels) in run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.1/lib/minitest/test.rb:204:in `capture_exceptions'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.1/lib/minitest/test.rb:104:in `block (2 levels) in run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.1/lib/minitest/test.rb:255:in `time_it'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.1/lib/minitest/test.rb:103:in `block in run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.1/lib/minitest.rb:348:in `on_signal'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.1/lib/minitest/test.rb:275:in `with_info_handler'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.1/lib/minitest/test.rb:102:in `run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.1/lib/minitest.rb:799:in `run_one_method'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.1/lib/minitest.rb:322:in `run_one_method'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.1/lib/minitest.rb:310:in `block (2 levels) in run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.1/lib/minitest.rb:309:in `each'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.1/lib/minitest.rb:309:in `block in run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.1/lib/minitest.rb:348:in `on_signal'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.1/lib/minitest.rb:335:in `with_info_handler'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.1/lib/minitest.rb:308:in `run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.1/lib/minitest.rb:158:in `block in __run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.1/lib/minitest.rb:158:in `map'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.1/lib/minitest.rb:158:in `__run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.1/lib/minitest.rb:135:in `run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.1/lib/minitest.rb:62:in `block in autorun'"]
40861
+ Redirected to http://api-sandbox.maestrano.io/app_access_unauthorized?err=internal
40862
+ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
40863
+  (0.0ms) rollback transaction
40864
+ --------------------------------------------------------------------------------------------------------------------
40865
+ SamlBaseControllerTest: test_: consume phase should reset the maestrano session successfully if one already exists.
40866
+ --------------------------------------------------------------------------------------------------------------------
40867
+  (0.0ms) begin transaction
40868
+  (0.0ms) commit transaction
40869
+  (0.0ms) begin transaction
40870
+ Processing by Maestrano::Auth::SamlController#consume as HTML
40871
+ Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"}
40872
+ Redirected to http://test.host/
40873
+ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
40874
+  (0.0ms) rollback transaction
40875
+ ---------------------------------------------------------------------------------
40876
+ SamlBaseControllerTest: test_: consume phase should set a saml_request in scope.
40877
+ ---------------------------------------------------------------------------------
40878
+  (0.0ms) begin transaction
40879
+  (0.0ms) commit transaction
40880
+  (0.0ms) begin transaction
40881
+ Processing by Maestrano::Auth::SamlController#consume as HTML
40882
+ Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"}
40883
+ Redirected to http://test.host/
40884
+ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
40885
+  (0.0ms) rollback transaction
40886
+ --------------------------------------------------------------------------------------
40887
+ SamlBaseControllerTest: test_: consume phase should set the group_auth_hash in scope.
40888
+ --------------------------------------------------------------------------------------
40889
+  (0.0ms) begin transaction
40890
+  (0.0ms) commit transaction
40891
+  (0.0ms) begin transaction
40892
+ Processing by Maestrano::Auth::SamlController#consume as HTML
40893
+ Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"}
40894
+ Redirected to http://test.host/
40895
+ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
40896
+  (0.0ms) rollback transaction
40897
+ -------------------------------------------------------------------------------
40898
+ SamlBaseControllerTest: test_: consume phase should set the maestrano session.
40899
+ -------------------------------------------------------------------------------
40900
+  (0.0ms) begin transaction
40901
+  (0.0ms) commit transaction
40902
+  (0.0ms) begin transaction
40903
+ Processing by Maestrano::Auth::SamlController#consume as HTML
40904
+ Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"}
40905
+ Redirected to http://test.host/
40906
+ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
40907
+  (0.0ms) rollback transaction
40908
+ -------------------------------------------------------------------------------------
40909
+ SamlBaseControllerTest: test_: consume phase should set the user_auth_hash in scope.
40910
+ -------------------------------------------------------------------------------------
40911
+  (0.0ms) begin transaction
40912
+  (0.0ms) commit transaction
40913
+  (0.0ms) begin transaction
40914
+ Processing by Maestrano::Auth::SamlController#consume as HTML
40915
+ Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"}
40916
+ Redirected to http://test.host/
40917
+ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
40918
+  (0.0ms) rollback transaction
40919
+ ------------------------------------------------------------------------------------------
40920
+ SamlBaseControllerTest: test_: consume phase should set the user_group_rel_hash in scope.
40921
+ ------------------------------------------------------------------------------------------
40922
+  (0.0ms) begin transaction
40923
+  (0.0ms) commit transaction
40924
+  (0.0ms) begin transaction
40925
+ Processing by Maestrano::Auth::SamlController#consume as HTML
40926
+ Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"}
40927
+ Redirected to http://test.host/
40928
+ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
40929
+  (0.1ms) rollback transaction
40930
+ ---------------------------------------------------------------------------------------------------------------------------
40931
+ SamlBaseControllerTest: test_: init phase should create a saml request successfully if a maestrano session is already set.
40932
+ ---------------------------------------------------------------------------------------------------------------------------
40933
+  (0.0ms) begin transaction
40934
+  (0.1ms) commit transaction
40935
+  (0.0ms) begin transaction
40936
+ Processing by Maestrano::Auth::SamlController#init as HTML
40937
+ Parameters: {"a_param"=>"value"}
40938
+ Redirected to http://idpprovider.com?r=request
40939
+ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
40940
+  (0.0ms) rollback transaction
40941
+ -----------------------------------------------------------------------------------------------------------------------
40942
+ SamlBaseControllerTest: test_: init phase should create a saml request using params and session and redirect the user.
40943
+ -----------------------------------------------------------------------------------------------------------------------
40944
+  (0.0ms) begin transaction
40945
+  (0.0ms) commit transaction
40946
+  (0.0ms) begin transaction
40947
+ Processing by Maestrano::Auth::SamlController#init as HTML
40948
+ Parameters: {"a_param"=>"value"}
40949
+ Redirected to http://idpprovider.com?r=request
40950
+ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
40951
+  (0.0ms) rollback transaction
40952
+ ---------------------------------------------------------------------------------------------------------------------
40953
+ GenericControllerTest: test_: with a maestrano session should be successful if the maestrano session is still valid.
40954
+ ---------------------------------------------------------------------------------------------------------------------
40955
+  (0.1ms) begin transaction
40956
+  (0.0ms) commit transaction
40957
+  (0.0ms) begin transaction
40958
+ Processing by PagesController#home as HTML
40959
+ Rendered pages/home.html.erb within layouts/application (1.0ms)
40960
+ Completed 200 OK in 112ms (Views: 111.9ms | ActiveRecord: 0.0ms)
40961
+  (0.1ms) rollback transaction
40962
+ --------------------------------------------------------------------------------------------------------------------
40963
+ GenericControllerTest: test_: with a maestrano session should initialize redirect to SSO initialization if invalid.
40964
+ --------------------------------------------------------------------------------------------------------------------
40965
+  (0.0ms) begin transaction
40966
+  (0.0ms) commit transaction
40967
+  (0.1ms) begin transaction
40968
+ Processing by PagesController#home as HTML
40969
+ Rendered pages/home.html.erb within layouts/application (0.0ms)
40970
+ Completed 200 OK in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)
40971
+  (0.0ms) rollback transaction
40972
+ -----------------------------------------------------------------------------------------------------------
40973
+ GenericControllerTest: test_: with a maestrano session should not redirect to SSO init if sso is disabled.
40974
+ -----------------------------------------------------------------------------------------------------------
40975
+  (0.0ms) begin transaction
40976
+  (0.0ms) commit transaction
40977
+  (0.0ms) begin transaction
40978
+ Processing by PagesController#home as HTML
40979
+ Rendered pages/home.html.erb within layouts/application (0.0ms)
40980
+ Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms)
40981
+  (0.0ms) rollback transaction
40982
+ ------------------------------------------------------------------------------
40983
+ GenericControllerTest: test_: with no maestrano session should be successful.
40984
+ ------------------------------------------------------------------------------
40985
+  (0.0ms) begin transaction
40986
+  (0.0ms) commit transaction
40987
+  (0.0ms) begin transaction
40988
+ Processing by PagesController#home as HTML
40989
+ Rendered pages/home.html.erb within layouts/application (0.0ms)
40990
+ Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms)
40991
+  (0.0ms) rollback transaction
40992
+ --------------------------------------------------------------------------------------------------------------------------------------
40993
+ MaestranoUserViaTest: test_: class methods find_or_create_for_maestrano class method should create a monster using the mapping block.
40994
+ --------------------------------------------------------------------------------------------------------------------------------------
40995
+  (0.0ms) begin transaction
40996
+  (0.0ms) commit transaction
40997
+  (0.0ms) begin transaction
40998
+ 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"]]
40999
+  (0.0ms) SAVEPOINT active_record_1
41000
+ 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-10-18 20:48:03.739591"], ["updated_at", "2016-10-18 20:48:03.739591"]]
41001
+  (0.0ms) RELEASE SAVEPOINT active_record_1
41002
+  (0.1ms) rollback transaction
41003
+ --------------------------------------------------------------------------------------------------------------------------------------------------------
41004
+ MaestranoUserViaTest: test_: class methods find_or_create_for_maestrano class method should not return a MnoMonster from another provider if it exists.
41005
+ --------------------------------------------------------------------------------------------------------------------------------------------------------
41006
+  (0.0ms) begin transaction
41007
+  (0.0ms) commit transaction
41008
+  (0.0ms) begin transaction
41009
+  (0.0ms) SAVEPOINT active_record_1
41010
+ 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-10-18 20:48:03.742279"], ["updated_at", "2016-10-18 20:48:03.742279"]]
41011
+  (0.0ms) RELEASE SAVEPOINT active_record_1
41012
+ 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"]]
41013
+  (0.0ms) SAVEPOINT active_record_1
41014
+ 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-10-18 20:48:03.744272"], ["updated_at", "2016-10-18 20:48:03.744272"]]
41015
+  (0.0ms) RELEASE SAVEPOINT active_record_1
41016
+  (0.1ms) rollback transaction
41017
+ --------------------------------------------------------------------------------------------------------------------------------
41018
+ MaestranoUserViaTest: test_: class methods find_or_create_for_maestrano class method should return the MnoMonster if it exists.
41019
+ --------------------------------------------------------------------------------------------------------------------------------
41020
+  (0.0ms) begin transaction
41021
+  (0.0ms) commit transaction
41022
+  (0.0ms) begin transaction
41023
+  (0.0ms) SAVEPOINT active_record_1
41024
+ 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-10-18 20:48:03.746423"], ["updated_at", "2016-10-18 20:48:03.746423"]]
41025
+  (0.0ms) RELEASE SAVEPOINT active_record_1
41026
+ 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-1"], ["tenant", "default"]]
41027
+  (0.2ms) rollback transaction
41028
+ ---------------------------------------------------------------------------------------------------
41029
+ MaestranoUserViaTest: test_: class methods maestrano_*_via should have the right field definition.
41030
+ ---------------------------------------------------------------------------------------------------
41031
+  (0.0ms) begin transaction
41032
+  (0.0ms) commit transaction
41033
+  (0.0ms) begin transaction
41034
+  (0.0ms) rollback transaction
41035
+ ------------------------------------------------------------------------------------------------------------
41036
+ MaestranoUserViaTest: test_: instance methods maestrano? should return false if provider is something else.
41037
+ ------------------------------------------------------------------------------------------------------------
41038
+  (0.0ms) begin transaction
41039
+  (0.0ms) commit transaction
41040
+  (0.0ms) begin transaction
41041
+  (0.0ms) rollback transaction
41042
+ ----------------------------------------------------------------------------------------------
41043
+ MaestranoUserViaTest: test_: instance methods maestrano? should return false if uid is blank.
41044
+ ----------------------------------------------------------------------------------------------
41045
+  (0.0ms) begin transaction
41046
+  (0.0ms) commit transaction
41047
+  (0.0ms) begin transaction
41048
+  (0.0ms) rollback transaction
41049
+ -----------------------------------------------------------------------------------------------------------------------
41050
+ MaestranoUserViaTest: test_: instance methods maestrano? should return true if provider is maestrano and uid not null.
41051
+ -----------------------------------------------------------------------------------------------------------------------
41052
+  (0.0ms) begin transaction
41053
+  (0.0ms) commit transaction
41054
+  (0.0ms) begin transaction
41055
+  (0.0ms) rollback transaction
41056
+ ------------------------------------------------------------------------------------------
41057
+ ActiveRecordUserGeneratorTest: test_: namespaced model should create the right migration.
41058
+ ------------------------------------------------------------------------------------------
41059
+  (0.0ms) begin transaction
41060
+  (0.0ms) commit transaction
41061
+  (0.0ms) begin transaction
41062
+  (0.0ms) rollback transaction
41063
+ --------------------------------------------------------------------------------------
41064
+ ActiveRecordUserGeneratorTest: test_: namespaced model should edit the model content.
41065
+ --------------------------------------------------------------------------------------
41066
+  (0.0ms) begin transaction
41067
+  (0.0ms) commit transaction
41068
+  (0.0ms) begin transaction
41069
+  (0.0ms) rollback transaction
41070
+ --------------------------------------------------------------------------------------
41071
+ ActiveRecordUserGeneratorTest: test_: normal model should create the right migration.
41072
+ --------------------------------------------------------------------------------------
41073
+  (0.0ms) begin transaction
41074
+  (0.0ms) commit transaction
41075
+  (0.0ms) begin transaction
41076
+  (0.0ms) rollback transaction
41077
+ ----------------------------------------------------------------------------------
41078
+ ActiveRecordUserGeneratorTest: test_: normal model should edit the model content.
41079
+ ----------------------------------------------------------------------------------
41080
+  (0.0ms) begin transaction
41081
+  (0.0ms) commit transaction
41082
+  (0.0ms) begin transaction
41083
+  (0.0ms) rollback transaction
41084
+ --------------------------------------------------------------------------------------------------------------------------
41085
+ ActiveRecordUserGeneratorTest: test_: normal model should include parameters if rails 3 and strong_parameter not present.
41086
+ --------------------------------------------------------------------------------------------------------------------------
41087
+  (0.0ms) begin transaction
41088
+  (0.0ms) commit transaction
41089
+  (0.0ms) begin transaction
41090
+  (0.0ms) rollback transaction
41091
+ --------------------------------------------------------------------------------------------------------------------------
41092
+ ActiveRecordUserGeneratorTest: test_: normal model should not include parameters if rails 3 and strong_parameter present.
41093
+ --------------------------------------------------------------------------------------------------------------------------
41094
+  (0.0ms) begin transaction
41095
+  (0.0ms) commit transaction
41096
+  (0.0ms) begin transaction
41097
+  (0.0ms) rollback transaction
41098
+ ---------------------------------------------------------------------------------------------
41099
+ ActiveRecordUserGeneratorTest: test_: normal model should not include parameters in rails 4.
41100
+ ---------------------------------------------------------------------------------------------
41101
+  (0.0ms) begin transaction
41102
+  (0.0ms) commit transaction
41103
+  (0.0ms) begin transaction
41104
+  (0.0ms) rollback transaction
41105
+ ---------------------------------------------------------------------------------------
41106
+ InstallGeneratorTest: test_: InstallGenerator should create the maestrano initializer.
41107
+ ---------------------------------------------------------------------------------------
41108
+  (0.1ms) begin transaction
41109
+  (0.0ms) commit transaction
41110
+  (0.0ms) begin transaction
41111
+  (0.0ms) rollback transaction
41112
+ ----------------------------------------------------------------------------------
41113
+ InstallGeneratorTest: test_: InstallGenerator should create the maestrano routes.
41114
+ ----------------------------------------------------------------------------------
41115
+  (0.0ms) begin transaction
41116
+  (0.0ms) commit transaction
41117
+  (0.0ms) begin transaction
41118
+  (0.1ms) rollback transaction
41119
+ ----------------------------------------------------------------------------------------------------------
41120
+ InstallGeneratorTest: test_: InstallGenerator should create the maestrano/account/group_users_controller.
41121
+ ----------------------------------------------------------------------------------------------------------
41122
+  (0.0ms) begin transaction
41123
+  (0.0ms) commit transaction
41124
+  (0.1ms) begin transaction
41125
+  (0.0ms) rollback transaction
41126
+ -----------------------------------------------------------------------------------------------------
41127
+ InstallGeneratorTest: test_: InstallGenerator should create the maestrano/account/groups_controller.
41128
+ -----------------------------------------------------------------------------------------------------
41129
+  (0.0ms) begin transaction
41130
+  (0.0ms) commit transaction
41131
+  (0.0ms) begin transaction
41132
+  (0.0ms) rollback transaction
41133
+ ------------------------------------------------------------------------------------------------
41134
+ InstallGeneratorTest: test_: InstallGenerator should create the maestrano/auth/saml_controller.
41135
+ ------------------------------------------------------------------------------------------------
41136
+  (0.0ms) begin transaction
41137
+  (0.0ms) commit transaction
41138
+  (0.0ms) begin transaction
41139
+  (0.0ms) rollback transaction
41140
+ ---------------------------------------------------------------------------------------------------------------------------------------
41141
+ MaestranoGroupViaTest: test_: class methods find_or_create_for_maestrano class method should create a monster using the mapping block.
41142
+ ---------------------------------------------------------------------------------------------------------------------------------------
41143
+  (0.0ms) begin transaction
41144
+  (0.0ms) commit transaction
41145
+  (0.0ms) begin transaction
41146
+ 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"]]
41147
+  (0.0ms) SAVEPOINT active_record_1
41148
+ 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-10-18 20:48:03.798426"], ["updated_at", "2016-10-18 20:48:03.798426"]]
41149
+  (0.0ms) RELEASE SAVEPOINT active_record_1
41150
+  (0.1ms) rollback transaction
41151
+ ------------------------------------------------------------------------------------------------------------------------------------------------------
41152
+ MaestranoGroupViaTest: test_: class methods find_or_create_for_maestrano class method should not return a MnoCrew from another provider if it exists.
41153
+ ------------------------------------------------------------------------------------------------------------------------------------------------------
41154
+  (0.1ms) begin transaction
41155
+  (0.0ms) commit transaction
41156
+  (0.0ms) begin transaction
41157
+  (0.0ms) SAVEPOINT active_record_1
41158
+ 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-10-18 20:48:03.800353"], ["updated_at", "2016-10-18 20:48:03.800353"]]
41159
+  (0.0ms) RELEASE SAVEPOINT active_record_1
41160
+ 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"]]
41161
+  (0.0ms) SAVEPOINT active_record_1
41162
+ 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-10-18 20:48:03.801645"], ["updated_at", "2016-10-18 20:48:03.801645"]]
41163
+  (0.0ms) RELEASE SAVEPOINT active_record_1
41164
+  (0.1ms) rollback transaction
41165
+ ------------------------------------------------------------------------------------------------------------------------------
41166
+ MaestranoGroupViaTest: test_: class methods find_or_create_for_maestrano class method should return the MnoCrew if it exists.
41167
+ ------------------------------------------------------------------------------------------------------------------------------
41168
+  (0.1ms) begin transaction
41169
+  (0.0ms) commit transaction
41170
+  (0.0ms) begin transaction
41171
+  (0.0ms) SAVEPOINT active_record_1
41172
+ 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-10-18 20:48:03.803307"], ["updated_at", "2016-10-18 20:48:03.803307"]]
41173
+  (0.0ms) RELEASE SAVEPOINT active_record_1
41174
+ 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"]]
41175
+  (0.1ms) rollback transaction
41176
+ ----------------------------------------------------------------------------------------------------
41177
+ MaestranoGroupViaTest: test_: class methods maestrano_*_via should have the right field definition.
41178
+ ----------------------------------------------------------------------------------------------------
41179
+  (0.0ms) begin transaction
41180
+  (0.0ms) commit transaction
41181
+  (0.0ms) begin transaction
41182
+  (0.0ms) rollback transaction
41183
+ -------------------------------------------------------------------------------------------------------------
41184
+ MaestranoGroupViaTest: test_: instance methods maestrano? should return false if provider is something else.
41185
+ -------------------------------------------------------------------------------------------------------------
41186
+  (0.0ms) begin transaction
41187
+  (0.0ms) commit transaction
41188
+  (0.0ms) begin transaction
41189
+  (0.0ms) rollback transaction
41190
+ -----------------------------------------------------------------------------------------------
41191
+ MaestranoGroupViaTest: test_: instance methods maestrano? should return false if uid is blank.
41192
+ -----------------------------------------------------------------------------------------------
41193
+  (0.0ms) begin transaction
41194
+  (0.0ms) commit transaction
41195
+  (0.0ms) begin transaction
41196
+  (0.0ms) rollback transaction
41197
+ ------------------------------------------------------------------------------------------------------------------------
41198
+ MaestranoGroupViaTest: test_: instance methods maestrano? should return true if provider is maestrano and uid not null.
41199
+ ------------------------------------------------------------------------------------------------------------------------
41200
+  (0.0ms) begin transaction
41201
+  (0.0ms) commit transaction
41202
+  (0.0ms) begin transaction
41203
+  (0.0ms) rollback transaction
41204
+ ---------------------------------------------------------------------
41205
+ GroupUsersControllerTest: test_: authenticated should be successful.
41206
+ ---------------------------------------------------------------------
41207
+  (0.0ms) begin transaction
41208
+  (0.0ms) commit transaction
41209
+  (0.0ms) begin transaction
41210
+ Processing by Maestrano::Account::GroupUsersController#destroy as HTML
41211
+ Parameters: {"group_id"=>"cld-1", "id"=>"usr-1"}
41212
+ Rendered text template (0.0ms)
41213
+ Completed 200 OK in 4ms (Views: 3.1ms | ActiveRecord: 0.0ms)
41214
+  (0.1ms) rollback transaction
41215
+ ---------------------------------------------------------------------
41216
+ GroupUsersControllerTest: test_: unauthenticated should deny access.
41217
+ ---------------------------------------------------------------------
41218
+  (0.1ms) begin transaction
41219
+  (0.1ms) commit transaction
41220
+  (0.0ms) begin transaction
41221
+ Processing by Maestrano::Account::GroupUsersController#destroy as HTML
41222
+ Parameters: {"group_id"=>"cld-1", "id"=>"usr-1"}
41223
+ Rendered text template (0.0ms)
41224
+ Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)
41225
+  (0.2ms) rollback transaction
41226
+ --------------------------------------------------------------------------------------------------------
41227
+ UserGeneratorTest: test_: UserGenerator should call the active_record migration generator successfully.
41228
+ --------------------------------------------------------------------------------------------------------
41229
+  (0.1ms) begin transaction
41230
+  (0.0ms) commit transaction
41231
+  (0.1ms) begin transaction
41232
+  (0.1ms) rollback transaction
41233
+ --------------------------------------------------------------------------------------------------
41234
+ UserGeneratorTest: test_: UserGenerator should call the mongoid migration generator successfully.
41235
+ --------------------------------------------------------------------------------------------------
41236
+  (0.0ms) begin transaction
41237
+  (0.0ms) commit transaction
41238
+  (0.0ms) begin transaction
41239
+  (0.0ms) rollback transaction
41240
+ -------------------------------------------------------------------------------------------
41241
+ ActiveRecordGroupGeneratorTest: test_: namespaced model should create the right migration.
41242
+ -------------------------------------------------------------------------------------------
41243
+  (0.0ms) begin transaction
41244
+  (0.0ms) commit transaction
41245
+  (0.0ms) begin transaction
41246
+  (0.0ms) rollback transaction
41247
+ ---------------------------------------------------------------------------------------
41248
+ ActiveRecordGroupGeneratorTest: test_: namespaced model should edit the model content.
41249
+ ---------------------------------------------------------------------------------------
41250
+  (0.0ms) begin transaction
41251
+  (0.0ms) commit transaction
41252
+  (0.0ms) begin transaction
41253
+  (0.1ms) rollback transaction
41254
+ ---------------------------------------------------------------------------------------
41255
+ ActiveRecordGroupGeneratorTest: test_: normal model should create the right migration.
41256
+ ---------------------------------------------------------------------------------------
41257
+  (0.1ms) begin transaction
41258
+  (0.0ms) commit transaction
41259
+  (0.0ms) begin transaction
41260
+  (0.1ms) rollback transaction
41261
+ -----------------------------------------------------------------------------------
41262
+ ActiveRecordGroupGeneratorTest: test_: normal model should edit the model content.
41263
+ -----------------------------------------------------------------------------------
41264
+  (0.0ms) begin transaction
41265
+  (0.0ms) commit transaction
41266
+  (0.0ms) begin transaction
41267
+  (0.0ms) rollback transaction
41268
+ ---------------------------------------------------------------------------------------------------------------------------
41269
+ ActiveRecordGroupGeneratorTest: test_: normal model should include parameters if rails 3 and strong_parameter not present.
41270
+ ---------------------------------------------------------------------------------------------------------------------------
41271
+  (0.0ms) begin transaction
41272
+  (0.0ms) commit transaction
41273
+  (0.0ms) begin transaction
41274
+  (0.0ms) rollback transaction
41275
+ ---------------------------------------------------------------------------------------------------------------------------
41276
+ ActiveRecordGroupGeneratorTest: test_: normal model should not include parameters if rails 3 and strong_parameter present.
41277
+ ---------------------------------------------------------------------------------------------------------------------------
41278
+  (0.0ms) begin transaction
41279
+  (0.0ms) commit transaction
41280
+  (0.0ms) begin transaction
41281
+  (0.0ms) rollback transaction
41282
+ ----------------------------------------------------------------------------------------------
41283
+ ActiveRecordGroupGeneratorTest: test_: normal model should not include parameters in rails 4.
41284
+ ----------------------------------------------------------------------------------------------
41285
+  (0.0ms) begin transaction
41286
+  (0.0ms) commit transaction
41287
+  (0.0ms) begin transaction
41288
+  (0.0ms) rollback transaction
41289
+ -----------------------------------------------------------------
41290
+ GroupsControllerTest: test_: authenticated should be successful.
41291
+ -----------------------------------------------------------------
41292
+  (0.0ms) begin transaction
41293
+  (0.0ms) commit transaction
41294
+  (0.0ms) begin transaction
41295
+ Processing by Maestrano::Account::GroupsController#destroy as HTML
41296
+ Parameters: {"id"=>"cld-1"}
41297
+ Rendered text template (0.0ms)
41298
+ Completed 200 OK in 3ms (Views: 2.3ms | ActiveRecord: 0.0ms)
41299
+  (0.0ms) rollback transaction
41300
+ -----------------------------------------------------------------
41301
+ GroupsControllerTest: test_: unauthenticated should deny access.
41302
+ -----------------------------------------------------------------
41303
+  (0.0ms) begin transaction
41304
+  (0.0ms) commit transaction
41305
+  (0.0ms) begin transaction
41306
+ Processing by Maestrano::Account::GroupsController#destroy as HTML
41307
+ Parameters: {"id"=>"cld-1"}
41308
+ Rendered text template (0.0ms)
41309
+ Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
41310
+  (0.1ms) rollback transaction
41311
+ ----------------------------------------------------------------------------------------------------------
41312
+ GroupGeneratorTest: test_: GroupGenerator should call the active_record migration generator successfully.
41313
+ ----------------------------------------------------------------------------------------------------------
41314
+  (0.1ms) begin transaction
41315
+  (0.0ms) commit transaction
41316
+  (0.0ms) begin transaction
41317
+  (0.1ms) rollback transaction
41318
+ ----------------------------------------------------------------------------------------------------
41319
+ GroupGeneratorTest: test_: GroupGenerator should call the mongoid migration generator successfully.
41320
+ ----------------------------------------------------------------------------------------------------
41321
+  (0.0ms) begin transaction
41322
+  (0.0ms) commit transaction
41323
+  (0.0ms) begin transaction
41324
+  (0.0ms) rollback transaction
41325
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
41326
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
41327
+ --------------------------------------------------------------------------------------------------------------------------------------
41328
+ MaestranoUserViaTest: test_: class methods find_or_create_for_maestrano class method should create a monster using the mapping block.
41329
+ --------------------------------------------------------------------------------------------------------------------------------------
41330
+  (0.1ms) begin transaction
41331
+  (0.0ms) commit transaction
41332
+  (0.0ms) begin transaction
41333
+ 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"]]
41334
+  (0.0ms) SAVEPOINT active_record_1
41335
+ 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-10-18 20:48:52.594024"], ["updated_at", "2016-10-18 20:48:52.594024"]]
41336
+  (0.0ms) RELEASE SAVEPOINT active_record_1
41337
+  (0.1ms) rollback transaction
41338
+ --------------------------------------------------------------------------------------------------------------------------------------------------------
41339
+ MaestranoUserViaTest: test_: class methods find_or_create_for_maestrano class method should not return a MnoMonster from another provider if it exists.
41340
+ --------------------------------------------------------------------------------------------------------------------------------------------------------
41341
+  (0.0ms) begin transaction
41342
+  (0.0ms) commit transaction
41343
+  (0.0ms) begin transaction
41344
+  (0.0ms) SAVEPOINT active_record_1
41345
+ 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-10-18 20:48:52.596244"], ["updated_at", "2016-10-18 20:48:52.596244"]]
41346
+  (0.0ms) RELEASE SAVEPOINT active_record_1
41347
+ 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"]]
41348
+  (0.0ms) SAVEPOINT active_record_1
41349
+ 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-10-18 20:48:52.597575"], ["updated_at", "2016-10-18 20:48:52.597575"]]
41350
+  (0.0ms) RELEASE SAVEPOINT active_record_1
41351
+  (0.1ms) rollback transaction
41352
+ --------------------------------------------------------------------------------------------------------------------------------
41353
+ MaestranoUserViaTest: test_: class methods find_or_create_for_maestrano class method should return the MnoMonster if it exists.
41354
+ --------------------------------------------------------------------------------------------------------------------------------
41355
+  (0.0ms) begin transaction
41356
+  (0.0ms) commit transaction
41357
+  (0.0ms) begin transaction
41358
+  (0.0ms) SAVEPOINT active_record_1
41359
+ 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-10-18 20:48:52.599116"], ["updated_at", "2016-10-18 20:48:52.599116"]]
41360
+  (0.0ms) RELEASE SAVEPOINT active_record_1
41361
+ 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"]]
41362
+  (0.1ms) rollback transaction
41363
+ ---------------------------------------------------------------------------------------------------
41364
+ MaestranoUserViaTest: test_: class methods maestrano_*_via should have the right field definition.
41365
+ ---------------------------------------------------------------------------------------------------
41366
+  (0.0ms) begin transaction
41367
+  (0.0ms) commit transaction
41368
+  (0.0ms) begin transaction
41369
+  (0.0ms) rollback transaction
41370
+ ------------------------------------------------------------------------------------------------------------
41371
+ MaestranoUserViaTest: test_: instance methods maestrano? should return false if provider is something else.
41372
+ ------------------------------------------------------------------------------------------------------------
41373
+  (0.0ms) begin transaction
41374
+  (0.0ms) commit transaction
41375
+  (0.0ms) begin transaction
41376
+  (0.0ms) rollback transaction
41377
+ ----------------------------------------------------------------------------------------------
41378
+ MaestranoUserViaTest: test_: instance methods maestrano? should return false if uid is blank.
41379
+ ----------------------------------------------------------------------------------------------
41380
+  (0.0ms) begin transaction
41381
+  (0.0ms) commit transaction
41382
+  (0.0ms) begin transaction
41383
+  (0.0ms) rollback transaction
41384
+ -----------------------------------------------------------------------------------------------------------------------
41385
+ MaestranoUserViaTest: test_: instance methods maestrano? should return true if provider is maestrano and uid not null.
41386
+ -----------------------------------------------------------------------------------------------------------------------
41387
+  (0.0ms) begin transaction
41388
+  (0.0ms) commit transaction
41389
+  (0.0ms) begin transaction
41390
+  (0.0ms) rollback transaction
41391
+ -------------------------------------------------------------------------------------------
41392
+ ActiveRecordGroupGeneratorTest: test_: namespaced model should create the right migration.
41393
+ -------------------------------------------------------------------------------------------
41394
+  (0.0ms) begin transaction
41395
+  (0.0ms) commit transaction
41396
+  (0.0ms) begin transaction
41397
+  (0.0ms) rollback transaction
41398
+ ---------------------------------------------------------------------------------------
41399
+ ActiveRecordGroupGeneratorTest: test_: namespaced model should edit the model content.
41400
+ ---------------------------------------------------------------------------------------
41401
+  (0.0ms) begin transaction
41402
+  (0.0ms) commit transaction
41403
+  (0.0ms) begin transaction
41404
+  (0.1ms) rollback transaction
41405
+ ---------------------------------------------------------------------------------------
41406
+ ActiveRecordGroupGeneratorTest: test_: normal model should create the right migration.
41407
+ ---------------------------------------------------------------------------------------
41408
+  (0.0ms) begin transaction
41409
+  (0.0ms) commit transaction
41410
+  (0.0ms) begin transaction
41411
+  (0.2ms) rollback transaction
41412
+ -----------------------------------------------------------------------------------
41413
+ ActiveRecordGroupGeneratorTest: test_: normal model should edit the model content.
41414
+ -----------------------------------------------------------------------------------
41415
+  (0.0ms) begin transaction
41416
+  (0.0ms) commit transaction
41417
+  (0.0ms) begin transaction
41418
+  (0.1ms) rollback transaction
41419
+ ---------------------------------------------------------------------------------------------------------------------------
41420
+ ActiveRecordGroupGeneratorTest: test_: normal model should include parameters if rails 3 and strong_parameter not present.
41421
+ ---------------------------------------------------------------------------------------------------------------------------
41422
+  (0.1ms) begin transaction
41423
+  (0.0ms) commit transaction
41424
+  (0.0ms) begin transaction
41425
+  (0.0ms) rollback transaction
41426
+ ---------------------------------------------------------------------------------------------------------------------------
41427
+ ActiveRecordGroupGeneratorTest: test_: normal model should not include parameters if rails 3 and strong_parameter present.
41428
+ ---------------------------------------------------------------------------------------------------------------------------
41429
+  (0.0ms) begin transaction
41430
+  (0.0ms) commit transaction
41431
+  (0.0ms) begin transaction
41432
+  (0.0ms) rollback transaction
41433
+ ----------------------------------------------------------------------------------------------
41434
+ ActiveRecordGroupGeneratorTest: test_: normal model should not include parameters in rails 4.
41435
+ ----------------------------------------------------------------------------------------------
41436
+  (0.0ms) begin transaction
41437
+  (0.0ms) commit transaction
41438
+  (0.0ms) begin transaction
41439
+  (0.0ms) rollback transaction
41440
+ ---------------------------------------------------------------------------------------------------------------------------------------
41441
+ MaestranoGroupViaTest: test_: class methods find_or_create_for_maestrano class method should create a monster using the mapping block.
41442
+ ---------------------------------------------------------------------------------------------------------------------------------------
41443
+  (0.0ms) begin transaction
41444
+  (0.0ms) commit transaction
41445
+  (0.0ms) begin transaction
41446
+ 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"]]
41447
+  (0.0ms) SAVEPOINT active_record_1
41448
+ 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-10-18 20:48:52.630321"], ["updated_at", "2016-10-18 20:48:52.630321"]]
41449
+  (0.0ms) RELEASE SAVEPOINT active_record_1
41450
+  (0.1ms) rollback transaction
41451
+ ------------------------------------------------------------------------------------------------------------------------------------------------------
41452
+ MaestranoGroupViaTest: test_: class methods find_or_create_for_maestrano class method should not return a MnoCrew from another provider if it exists.
41453
+ ------------------------------------------------------------------------------------------------------------------------------------------------------
41454
+  (0.0ms) begin transaction
41455
+  (0.0ms) commit transaction
41456
+  (0.0ms) begin transaction
41457
+  (0.0ms) SAVEPOINT active_record_1
41458
+ 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-10-18 20:48:52.632187"], ["updated_at", "2016-10-18 20:48:52.632187"]]
41459
+  (0.0ms) RELEASE SAVEPOINT active_record_1
41460
+ 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"]]
41461
+  (0.0ms) SAVEPOINT active_record_1
41462
+ 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-10-18 20:48:52.633464"], ["updated_at", "2016-10-18 20:48:52.633464"]]
41463
+  (0.0ms) RELEASE SAVEPOINT active_record_1
41464
+  (0.1ms) rollback transaction
41465
+ ------------------------------------------------------------------------------------------------------------------------------
41466
+ MaestranoGroupViaTest: test_: class methods find_or_create_for_maestrano class method should return the MnoCrew if it exists.
41467
+ ------------------------------------------------------------------------------------------------------------------------------
41468
+  (0.0ms) begin transaction
41469
+  (0.0ms) commit transaction
41470
+  (0.0ms) begin transaction
41471
+  (0.0ms) SAVEPOINT active_record_1
41472
+ 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-10-18 20:48:52.634977"], ["updated_at", "2016-10-18 20:48:52.634977"]]
41473
+  (0.0ms) RELEASE SAVEPOINT active_record_1
41474
+ 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"]]
41475
+  (0.1ms) rollback transaction
41476
+ ----------------------------------------------------------------------------------------------------
41477
+ MaestranoGroupViaTest: test_: class methods maestrano_*_via should have the right field definition.
41478
+ ----------------------------------------------------------------------------------------------------
41479
+  (0.0ms) begin transaction
41480
+  (0.0ms) commit transaction
41481
+  (0.0ms) begin transaction
41482
+  (0.0ms) rollback transaction
41483
+ -------------------------------------------------------------------------------------------------------------
41484
+ MaestranoGroupViaTest: test_: instance methods maestrano? should return false if provider is something else.
41485
+ -------------------------------------------------------------------------------------------------------------
41486
+  (0.0ms) begin transaction
41487
+  (0.0ms) commit transaction
41488
+  (0.0ms) begin transaction
41489
+  (0.0ms) rollback transaction
41490
+ -----------------------------------------------------------------------------------------------
41491
+ MaestranoGroupViaTest: test_: instance methods maestrano? should return false if uid is blank.
41492
+ -----------------------------------------------------------------------------------------------
41493
+  (0.0ms) begin transaction
41494
+  (0.0ms) commit transaction
41495
+  (0.0ms) begin transaction
41496
+  (0.0ms) rollback transaction
41497
+ ------------------------------------------------------------------------------------------------------------------------
41498
+ MaestranoGroupViaTest: test_: instance methods maestrano? should return true if provider is maestrano and uid not null.
41499
+ ------------------------------------------------------------------------------------------------------------------------
41500
+  (0.0ms) begin transaction
41501
+  (0.0ms) commit transaction
41502
+  (0.0ms) begin transaction
41503
+  (0.0ms) rollback transaction
41504
+ -----------------------------------------------------------------
41505
+ GroupsControllerTest: test_: authenticated should be successful.
41506
+ -----------------------------------------------------------------
41507
+  (0.0ms) begin transaction
41508
+  (0.0ms) commit transaction
41509
+  (0.0ms) begin transaction
41510
+ Processing by Maestrano::Account::GroupsController#destroy as HTML
41511
+ Parameters: {"id"=>"cld-1"}
41512
+ Rendered text template (0.0ms)
41513
+ Completed 200 OK in 8ms (Views: 8.1ms | ActiveRecord: 0.0ms)
41514
+  (0.1ms) rollback transaction
41515
+ -----------------------------------------------------------------
41516
+ GroupsControllerTest: test_: unauthenticated should deny access.
41517
+ -----------------------------------------------------------------
41518
+  (0.0ms) begin transaction
41519
+  (0.0ms) commit transaction
41520
+  (0.0ms) begin transaction
41521
+ Processing by Maestrano::Account::GroupsController#destroy as HTML
41522
+ Parameters: {"id"=>"cld-1"}
41523
+ Rendered text template (0.0ms)
41524
+ Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
41525
+  (0.0ms) rollback transaction
41526
+ ---------------------------------------------------------------------------------------
41527
+ InstallGeneratorTest: test_: InstallGenerator should create the maestrano initializer.
41528
+ ---------------------------------------------------------------------------------------
41529
+  (0.0ms) begin transaction
41530
+  (0.0ms) commit transaction
41531
+  (0.0ms) begin transaction
41532
+  (0.0ms) rollback transaction
41533
+ ----------------------------------------------------------------------------------
41534
+ InstallGeneratorTest: test_: InstallGenerator should create the maestrano routes.
41535
+ ----------------------------------------------------------------------------------
41536
+  (0.0ms) begin transaction
41537
+  (0.0ms) commit transaction
41538
+  (0.0ms) begin transaction
41539
+  (0.0ms) rollback transaction
41540
+ ----------------------------------------------------------------------------------------------------------
41541
+ InstallGeneratorTest: test_: InstallGenerator should create the maestrano/account/group_users_controller.
41542
+ ----------------------------------------------------------------------------------------------------------
41543
+  (0.0ms) begin transaction
41544
+  (0.0ms) commit transaction
41545
+  (0.0ms) begin transaction
41546
+  (0.0ms) rollback transaction
41547
+ -----------------------------------------------------------------------------------------------------
41548
+ InstallGeneratorTest: test_: InstallGenerator should create the maestrano/account/groups_controller.
41549
+ -----------------------------------------------------------------------------------------------------
41550
+  (0.0ms) begin transaction
41551
+  (0.0ms) commit transaction
41552
+  (0.0ms) begin transaction
41553
+  (0.0ms) rollback transaction
41554
+ ------------------------------------------------------------------------------------------------
41555
+ InstallGeneratorTest: test_: InstallGenerator should create the maestrano/auth/saml_controller.
41556
+ ------------------------------------------------------------------------------------------------
41557
+  (0.0ms) begin transaction
41558
+  (0.0ms) commit transaction
41559
+  (0.0ms) begin transaction
41560
+  (0.0ms) rollback transaction
41561
+ ---------------------------------------------------------------------------------------------------------------------
41562
+ GenericControllerTest: test_: with a maestrano session should be successful if the maestrano session is still valid.
41563
+ ---------------------------------------------------------------------------------------------------------------------
41564
+  (0.1ms) begin transaction
41565
+  (0.0ms) commit transaction
41566
+  (0.0ms) begin transaction
41567
+ Processing by PagesController#home as HTML
41568
+ Rendered pages/home.html.erb within layouts/application (1.3ms)
41569
+ Completed 200 OK in 105ms (Views: 104.2ms | ActiveRecord: 0.0ms)
41570
+  (0.1ms) rollback transaction
41571
+ --------------------------------------------------------------------------------------------------------------------
41572
+ GenericControllerTest: test_: with a maestrano session should initialize redirect to SSO initialization if invalid.
41573
+ --------------------------------------------------------------------------------------------------------------------
41574
+  (0.0ms) begin transaction
41575
+  (0.0ms) commit transaction
41576
+  (0.0ms) begin transaction
41577
+ Processing by PagesController#home as HTML
41578
+ Redirected to http://localhost::3000/maestrano/auth/saml/init
41579
+ Filter chain halted as :verify_maestrano_session rendered or redirected
41580
+ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
41581
+  (0.0ms) rollback transaction
41582
+ -----------------------------------------------------------------------------------------------------------
41583
+ GenericControllerTest: test_: with a maestrano session should not redirect to SSO init if sso is disabled.
41584
+ -----------------------------------------------------------------------------------------------------------
41585
+  (0.0ms) begin transaction
41586
+  (0.0ms) commit transaction
41587
+  (0.0ms) begin transaction
41588
+ Processing by PagesController#home as HTML
41589
+ Rendered pages/home.html.erb within layouts/application (0.0ms)
41590
+ Completed 200 OK in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)
41591
+  (0.0ms) rollback transaction
41592
+ ------------------------------------------------------------------------------
41593
+ GenericControllerTest: test_: with no maestrano session should be successful.
41594
+ ------------------------------------------------------------------------------
41595
+  (0.0ms) begin transaction
41596
+  (0.0ms) commit transaction
41597
+  (0.0ms) begin transaction
41598
+ Processing by PagesController#home as HTML
41599
+ Rendered pages/home.html.erb within layouts/application (0.0ms)
41600
+ Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)
41601
+  (0.0ms) rollback transaction
41602
+ ----------------------------------------------------------------------------------------------
41603
+ SamlBaseControllerTest: test_: consume phase error should redirect to maestrano on any error.
41604
+ ----------------------------------------------------------------------------------------------
41605
+  (0.0ms) begin transaction
41606
+  (0.0ms) commit transaction
41607
+  (0.0ms) begin transaction
41608
+ Processing by Maestrano::Auth::SamlController#consume as HTML
41609
+ Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"}
41610
+ Cannot validate SAML response: Bla
41611
+ Trace: ["/home/bruno/.rvm/gems/ruby-2.3.1/gems/mocha-1.2.1/lib/mocha/exception_raiser.rb:12:in `evaluate'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/mocha-1.2.1/lib/mocha/return_values.rb:20:in `next'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/mocha-1.2.1/lib/mocha/expectation.rb:569:in `invoke'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/mocha-1.2.1/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.1/lib/minitest/test.rb:107:in `block (3 levels) in run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.1/lib/minitest/test.rb:204:in `capture_exceptions'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.1/lib/minitest/test.rb:104:in `block (2 levels) in run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.1/lib/minitest/test.rb:255:in `time_it'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.1/lib/minitest/test.rb:103:in `block in run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.1/lib/minitest.rb:348:in `on_signal'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.1/lib/minitest/test.rb:275:in `with_info_handler'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.1/lib/minitest/test.rb:102:in `run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.1/lib/minitest.rb:799:in `run_one_method'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.1/lib/minitest.rb:322:in `run_one_method'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.1/lib/minitest.rb:310:in `block (2 levels) in run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.1/lib/minitest.rb:309:in `each'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.1/lib/minitest.rb:309:in `block in run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.1/lib/minitest.rb:348:in `on_signal'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.1/lib/minitest.rb:335:in `with_info_handler'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.1/lib/minitest.rb:308:in `run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.1/lib/minitest.rb:158:in `block in __run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.1/lib/minitest.rb:158:in `map'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.1/lib/minitest.rb:158:in `__run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.1/lib/minitest.rb:135:in `run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.1/lib/minitest.rb:62:in `block in autorun'"]
41612
+ Redirected to http://api-sandbox.maestrano.io/app_access_unauthorized?err=internal
41613
+ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
41614
+  (0.0ms) rollback transaction
41615
+ --------------------------------------------------------------------------------------------------------------------
41616
+ SamlBaseControllerTest: test_: consume phase should reset the maestrano session successfully if one already exists.
41617
+ --------------------------------------------------------------------------------------------------------------------
41618
+  (0.0ms) begin transaction
41619
+  (0.0ms) commit transaction
41620
+  (0.0ms) begin transaction
41621
+ Processing by Maestrano::Auth::SamlController#consume as HTML
41622
+ Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"}
41623
+ Redirected to http://test.host/
41624
+ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
41625
+  (0.1ms) rollback transaction
41626
+ ---------------------------------------------------------------------------------
41627
+ SamlBaseControllerTest: test_: consume phase should set a saml_request in scope.
41628
+ ---------------------------------------------------------------------------------
41629
+  (0.0ms) begin transaction
41630
+  (0.0ms) commit transaction
41631
+  (0.0ms) begin transaction
41632
+ Processing by Maestrano::Auth::SamlController#consume as HTML
41633
+ Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"}
41634
+ Redirected to http://test.host/
41635
+ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
41636
+  (0.0ms) rollback transaction
41637
+ --------------------------------------------------------------------------------------
41638
+ SamlBaseControllerTest: test_: consume phase should set the group_auth_hash in scope.
41639
+ --------------------------------------------------------------------------------------
41640
+  (0.1ms) begin transaction
41641
+  (0.0ms) commit transaction
41642
+  (0.0ms) begin transaction
41643
+ Processing by Maestrano::Auth::SamlController#consume as HTML
41644
+ Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"}
41645
+ Redirected to http://test.host/
41646
+ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
41647
+  (0.0ms) rollback transaction
41648
+ -------------------------------------------------------------------------------
41649
+ SamlBaseControllerTest: test_: consume phase should set the maestrano session.
41650
+ -------------------------------------------------------------------------------
41651
+  (0.0ms) begin transaction
41652
+  (0.1ms) commit transaction
41653
+  (0.0ms) begin transaction
41654
+ Processing by Maestrano::Auth::SamlController#consume as HTML
41655
+ Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"}
41656
+ Redirected to http://test.host/
41657
+ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
41658
+  (0.0ms) rollback transaction
41659
+ -------------------------------------------------------------------------------------
41660
+ SamlBaseControllerTest: test_: consume phase should set the user_auth_hash in scope.
41661
+ -------------------------------------------------------------------------------------
41662
+  (0.0ms) begin transaction
41663
+  (0.0ms) commit transaction
41664
+  (0.0ms) begin transaction
41665
+ Processing by Maestrano::Auth::SamlController#consume as HTML
41666
+ Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"}
41667
+ Redirected to http://test.host/
41668
+ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
41669
+  (0.0ms) rollback transaction
41670
+ ------------------------------------------------------------------------------------------
41671
+ SamlBaseControllerTest: test_: consume phase should set the user_group_rel_hash in scope.
41672
+ ------------------------------------------------------------------------------------------
41673
+  (0.0ms) begin transaction
41674
+  (0.0ms) commit transaction
41675
+  (0.0ms) begin transaction
41676
+ Processing by Maestrano::Auth::SamlController#consume as HTML
41677
+ Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"}
41678
+ Redirected to http://test.host/
41679
+ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
41680
+  (0.0ms) rollback transaction
41681
+ ---------------------------------------------------------------------------------------------------------------------------
41682
+ SamlBaseControllerTest: test_: init phase should create a saml request successfully if a maestrano session is already set.
41683
+ ---------------------------------------------------------------------------------------------------------------------------
41684
+  (0.0ms) begin transaction
41685
+  (0.0ms) commit transaction
41686
+  (0.0ms) begin transaction
41687
+ Processing by Maestrano::Auth::SamlController#init as HTML
41688
+ Parameters: {"a_param"=>"value"}
41689
+ Redirected to http://idpprovider.com?r=request
41690
+ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
41691
+  (0.0ms) rollback transaction
41692
+ -----------------------------------------------------------------------------------------------------------------------
41693
+ SamlBaseControllerTest: test_: init phase should create a saml request using params and session and redirect the user.
41694
+ -----------------------------------------------------------------------------------------------------------------------
41695
+  (0.0ms) begin transaction
41696
+  (0.0ms) commit transaction
41697
+  (0.0ms) begin transaction
41698
+ Processing by Maestrano::Auth::SamlController#init as HTML
41699
+ Parameters: {"a_param"=>"value"}
41700
+ Redirected to http://idpprovider.com?r=request
41701
+ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
41702
+  (0.0ms) rollback transaction
41703
+ ---------------------------------------------------------------------
41704
+ GroupUsersControllerTest: test_: authenticated should be successful.
41705
+ ---------------------------------------------------------------------
41706
+  (0.0ms) begin transaction
41707
+  (0.0ms) commit transaction
41708
+  (0.0ms) begin transaction
41709
+ Processing by Maestrano::Account::GroupUsersController#destroy as HTML
41710
+ Parameters: {"group_id"=>"cld-1", "id"=>"usr-1"}
41711
+ Rendered text template (0.0ms)
41712
+ Completed 200 OK in 3ms (Views: 3.0ms | ActiveRecord: 0.0ms)
41713
+  (0.2ms) rollback transaction
41714
+ ---------------------------------------------------------------------
41715
+ GroupUsersControllerTest: test_: unauthenticated should deny access.
41716
+ ---------------------------------------------------------------------
41717
+  (0.1ms) begin transaction
41718
+  (0.0ms) commit transaction
41719
+  (0.0ms) begin transaction
41720
+ Processing by Maestrano::Account::GroupUsersController#destroy as HTML
41721
+ Parameters: {"group_id"=>"cld-1", "id"=>"usr-1"}
41722
+ Rendered text template (0.0ms)
41723
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)
41724
+  (0.0ms) rollback transaction
41725
+ ------------------------------------------------------------------------------------------
41726
+ ActiveRecordUserGeneratorTest: test_: namespaced model should create the right migration.
41727
+ ------------------------------------------------------------------------------------------
41728
+  (0.0ms) begin transaction
41729
+  (0.0ms) commit transaction
41730
+  (0.0ms) begin transaction
41731
+  (0.0ms) rollback transaction
41732
+ --------------------------------------------------------------------------------------
41733
+ ActiveRecordUserGeneratorTest: test_: namespaced model should edit the model content.
41734
+ --------------------------------------------------------------------------------------
41735
+  (0.0ms) begin transaction
41736
+  (0.0ms) commit transaction
41737
+  (0.0ms) begin transaction
41738
+  (0.0ms) rollback transaction
41739
+ --------------------------------------------------------------------------------------
41740
+ ActiveRecordUserGeneratorTest: test_: normal model should create the right migration.
41741
+ --------------------------------------------------------------------------------------
41742
+  (0.0ms) begin transaction
41743
+  (0.0ms) commit transaction
41744
+  (0.0ms) begin transaction
41745
+  (0.0ms) rollback transaction
41746
+ ----------------------------------------------------------------------------------
41747
+ ActiveRecordUserGeneratorTest: test_: normal model should edit the model content.
41748
+ ----------------------------------------------------------------------------------
41749
+  (0.0ms) begin transaction
41750
+  (0.0ms) commit transaction
41751
+  (0.0ms) begin transaction
41752
+  (0.0ms) rollback transaction
41753
+ --------------------------------------------------------------------------------------------------------------------------
41754
+ ActiveRecordUserGeneratorTest: test_: normal model should include parameters if rails 3 and strong_parameter not present.
41755
+ --------------------------------------------------------------------------------------------------------------------------
41756
+  (0.0ms) begin transaction
41757
+  (0.0ms) commit transaction
41758
+  (0.0ms) begin transaction
41759
+  (0.0ms) rollback transaction
41760
+ --------------------------------------------------------------------------------------------------------------------------
41761
+ ActiveRecordUserGeneratorTest: test_: normal model should not include parameters if rails 3 and strong_parameter present.
41762
+ --------------------------------------------------------------------------------------------------------------------------
41763
+  (0.0ms) begin transaction
41764
+  (0.0ms) commit transaction
41765
+  (0.0ms) begin transaction
41766
+  (0.0ms) rollback transaction
41767
+ ---------------------------------------------------------------------------------------------
41768
+ ActiveRecordUserGeneratorTest: test_: normal model should not include parameters in rails 4.
41769
+ ---------------------------------------------------------------------------------------------
41770
+  (0.0ms) begin transaction
41771
+  (0.0ms) commit transaction
41772
+  (0.0ms) begin transaction
41773
+  (0.0ms) rollback transaction
41774
+ -------------------------------------------------------------------
41775
+ MetadataControllerTest: test_: authenticated should be successful.
41776
+ -------------------------------------------------------------------
41777
+  (0.0ms) begin transaction
41778
+  (0.0ms) commit transaction
41779
+  (0.0ms) begin transaction
41780
+ Processing by Maestrano::Rails::MetadataController#index as HTML
41781
+ Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)
41782
+  (0.0ms) rollback transaction
41783
+ -------------------------------------------------------------------
41784
+ MetadataControllerTest: test_: unauthenticated should deny access.
41785
+ -------------------------------------------------------------------
41786
+  (0.0ms) begin transaction
41787
+  (0.0ms) commit transaction
41788
+  (0.0ms) begin transaction
41789
+ Processing by Maestrano::Rails::MetadataController#index as HTML
41790
+ Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)
41791
+  (0.1ms) rollback transaction
41792
+ --------------------------------------------------------------------------------------------------------
41793
+ UserGeneratorTest: test_: UserGenerator should call the active_record migration generator successfully.
41794
+ --------------------------------------------------------------------------------------------------------
41795
+  (0.0ms) begin transaction
41796
+  (0.0ms) commit transaction
41797
+  (0.0ms) begin transaction
41798
+  (0.1ms) rollback transaction
41799
+ --------------------------------------------------------------------------------------------------
41800
+ UserGeneratorTest: test_: UserGenerator should call the mongoid migration generator successfully.
41801
+ --------------------------------------------------------------------------------------------------
41802
+  (0.0ms) begin transaction
41803
+  (0.0ms) commit transaction
41804
+  (0.0ms) begin transaction
41805
+  (0.0ms) rollback transaction
41806
+ ----------------------------------------------------------------------------------------------------------
41807
+ GroupGeneratorTest: test_: GroupGenerator should call the active_record migration generator successfully.
41808
+ ----------------------------------------------------------------------------------------------------------
41809
+  (0.0ms) begin transaction
41810
+  (0.0ms) commit transaction
41811
+  (0.0ms) begin transaction
41812
+  (0.0ms) rollback transaction
41813
+ ----------------------------------------------------------------------------------------------------
41814
+ GroupGeneratorTest: test_: GroupGenerator should call the mongoid migration generator successfully.
41815
+ ----------------------------------------------------------------------------------------------------
41816
+  (0.0ms) begin transaction
41817
+  (0.0ms) commit transaction
41818
+  (0.0ms) begin transaction
41819
+  (0.1ms) rollback transaction
41820
+ ------------------------------
41821
+ MaestranoRailsTest: test_truth
41822
+ ------------------------------
41823
+  (0.1ms) begin transaction
41824
+  (0.0ms) commit transaction
41825
+  (0.0ms) begin transaction
41826
+  (0.0ms) rollback transaction
41827
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
41828
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
41829
+ -------------------------------------------------------------------------------------------
41830
+ ActiveRecordGroupGeneratorTest: test_: namespaced model should create the right migration.
41831
+ -------------------------------------------------------------------------------------------
41832
+  (0.1ms) begin transaction
41833
+  (0.0ms) commit transaction
41834
+  (0.1ms) begin transaction
41835
+  (0.0ms) rollback transaction
41836
+ ---------------------------------------------------------------------------------------
41837
+ ActiveRecordGroupGeneratorTest: test_: namespaced model should edit the model content.
41838
+ ---------------------------------------------------------------------------------------
41839
+  (0.0ms) begin transaction
41840
+  (0.0ms) commit transaction
41841
+  (0.0ms) begin transaction
41842
+  (0.0ms) rollback transaction
41843
+ ---------------------------------------------------------------------------------------
41844
+ ActiveRecordGroupGeneratorTest: test_: normal model should create the right migration.
41845
+ ---------------------------------------------------------------------------------------
41846
+  (0.0ms) begin transaction
41847
+  (0.0ms) commit transaction
41848
+  (0.0ms) begin transaction
41849
+  (0.0ms) rollback transaction
41850
+ -----------------------------------------------------------------------------------
41851
+ ActiveRecordGroupGeneratorTest: test_: normal model should edit the model content.
41852
+ -----------------------------------------------------------------------------------
41853
+  (0.0ms) begin transaction
41854
+  (0.0ms) commit transaction
41855
+  (0.0ms) begin transaction
41856
+  (0.0ms) rollback transaction
41857
+ ---------------------------------------------------------------------------------------------------------------------------
41858
+ ActiveRecordGroupGeneratorTest: test_: normal model should include parameters if rails 3 and strong_parameter not present.
41859
+ ---------------------------------------------------------------------------------------------------------------------------
41860
+  (0.0ms) begin transaction
41861
+  (0.0ms) commit transaction
41862
+  (0.1ms) begin transaction
41863
+  (0.0ms) rollback transaction
41864
+ ---------------------------------------------------------------------------------------------------------------------------
41865
+ ActiveRecordGroupGeneratorTest: test_: normal model should not include parameters if rails 3 and strong_parameter present.
41866
+ ---------------------------------------------------------------------------------------------------------------------------
41867
+  (0.0ms) begin transaction
41868
+  (0.0ms) commit transaction
41869
+  (0.0ms) begin transaction
41870
+  (0.0ms) rollback transaction
41871
+ ----------------------------------------------------------------------------------------------
41872
+ ActiveRecordGroupGeneratorTest: test_: normal model should not include parameters in rails 4.
41873
+ ----------------------------------------------------------------------------------------------
41874
+  (0.0ms) begin transaction
41875
+  (0.0ms) commit transaction
41876
+  (0.0ms) begin transaction
41877
+  (0.0ms) rollback transaction
41878
+ -------------------------------------------------------------------
41879
+ MetadataControllerTest: test_: authenticated should be successful.
41880
+ -------------------------------------------------------------------
41881
+  (0.0ms) begin transaction
41882
+  (0.0ms) commit transaction
41883
+  (0.0ms) begin transaction
41884
+ Processing by Maestrano::Rails::MetadataController#index as HTML
41885
+ Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)
41886
+  (0.0ms) rollback transaction
41887
+ -------------------------------------------------------------------
41888
+ MetadataControllerTest: test_: unauthenticated should deny access.
41889
+ -------------------------------------------------------------------
41890
+  (0.0ms) begin transaction
41891
+  (0.0ms) commit transaction
41892
+  (0.0ms) begin transaction
41893
+ Processing by Maestrano::Rails::MetadataController#index as HTML
41894
+ Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)
41895
+  (0.1ms) rollback transaction
41896
+ ---------------------------------------------------------------------------------------------------------------------------------------
41897
+ MaestranoGroupViaTest: test_: class methods find_or_create_for_maestrano class method should create a monster using the mapping block.
41898
+ ---------------------------------------------------------------------------------------------------------------------------------------
41899
+  (0.0ms) begin transaction
41900
+  (0.0ms) commit transaction
41901
+  (0.0ms) begin transaction
41902
+ 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"]]
41903
+  (0.0ms) SAVEPOINT active_record_1
41904
+ 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-10-18 20:50:53.551527"], ["updated_at", "2016-10-18 20:50:53.551527"]]
41905
+  (0.0ms) RELEASE SAVEPOINT active_record_1
41906
+  (0.1ms) rollback transaction
41907
+ ------------------------------------------------------------------------------------------------------------------------------------------------------
41908
+ MaestranoGroupViaTest: test_: class methods find_or_create_for_maestrano class method should not return a MnoCrew from another provider if it exists.
41909
+ ------------------------------------------------------------------------------------------------------------------------------------------------------
41910
+  (0.0ms) begin transaction
41911
+  (0.0ms) commit transaction
41912
+  (0.0ms) begin transaction
41913
+  (0.0ms) SAVEPOINT active_record_1
41914
+ 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-10-18 20:50:53.553685"], ["updated_at", "2016-10-18 20:50:53.553685"]]
41915
+  (0.0ms) RELEASE SAVEPOINT active_record_1
41916
+ 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"]]
41917
+  (0.0ms) SAVEPOINT active_record_1
41918
+ 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-10-18 20:50:53.555132"], ["updated_at", "2016-10-18 20:50:53.555132"]]
41919
+  (0.0ms) RELEASE SAVEPOINT active_record_1
41920
+  (0.1ms) rollback transaction
41921
+ ------------------------------------------------------------------------------------------------------------------------------
41922
+ MaestranoGroupViaTest: test_: class methods find_or_create_for_maestrano class method should return the MnoCrew if it exists.
41923
+ ------------------------------------------------------------------------------------------------------------------------------
41924
+  (0.0ms) begin transaction
41925
+  (0.0ms) commit transaction
41926
+  (0.0ms) begin transaction
41927
+  (0.0ms) SAVEPOINT active_record_1
41928
+ 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-10-18 20:50:53.556689"], ["updated_at", "2016-10-18 20:50:53.556689"]]
41929
+  (0.0ms) RELEASE SAVEPOINT active_record_1
41930
+ 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"]]
41931
+  (0.1ms) rollback transaction
41932
+ ----------------------------------------------------------------------------------------------------
41933
+ MaestranoGroupViaTest: test_: class methods maestrano_*_via should have the right field definition.
41934
+ ----------------------------------------------------------------------------------------------------
41935
+  (0.0ms) begin transaction
41936
+  (0.0ms) commit transaction
41937
+  (0.0ms) begin transaction
41938
+  (0.0ms) rollback transaction
41939
+ -------------------------------------------------------------------------------------------------------------
41940
+ MaestranoGroupViaTest: test_: instance methods maestrano? should return false if provider is something else.
41941
+ -------------------------------------------------------------------------------------------------------------
41942
+  (0.0ms) begin transaction
41943
+  (0.0ms) commit transaction
41944
+  (0.0ms) begin transaction
41945
+  (0.0ms) rollback transaction
41946
+ -----------------------------------------------------------------------------------------------
41947
+ MaestranoGroupViaTest: test_: instance methods maestrano? should return false if uid is blank.
41948
+ -----------------------------------------------------------------------------------------------
41949
+  (0.0ms) begin transaction
41950
+  (0.0ms) commit transaction
41951
+  (0.0ms) begin transaction
41952
+  (0.0ms) rollback transaction
41953
+ ------------------------------------------------------------------------------------------------------------------------
41954
+ MaestranoGroupViaTest: test_: instance methods maestrano? should return true if provider is maestrano and uid not null.
41955
+ ------------------------------------------------------------------------------------------------------------------------
41956
+  (0.0ms) begin transaction
41957
+  (0.0ms) commit transaction
41958
+  (0.0ms) begin transaction
41959
+  (0.1ms) rollback transaction
41960
+ ---------------------------------------------------------------------------------------
41961
+ InstallGeneratorTest: test_: InstallGenerator should create the maestrano initializer.
41962
+ ---------------------------------------------------------------------------------------
41963
+  (0.0ms) begin transaction
41964
+  (0.0ms) commit transaction
41965
+  (0.0ms) begin transaction
41966
+  (0.1ms) rollback transaction
41967
+ ----------------------------------------------------------------------------------
41968
+ InstallGeneratorTest: test_: InstallGenerator should create the maestrano routes.
41969
+ ----------------------------------------------------------------------------------
41970
+  (0.0ms) begin transaction
41971
+  (0.0ms) commit transaction
41972
+  (0.0ms) begin transaction
41973
+  (0.1ms) rollback transaction
41974
+ ----------------------------------------------------------------------------------------------------------
41975
+ InstallGeneratorTest: test_: InstallGenerator should create the maestrano/account/group_users_controller.
41976
+ ----------------------------------------------------------------------------------------------------------
41977
+  (0.0ms) begin transaction
41978
+  (0.0ms) commit transaction
41979
+  (0.0ms) begin transaction
41980
+  (0.0ms) rollback transaction
41981
+ -----------------------------------------------------------------------------------------------------
41982
+ InstallGeneratorTest: test_: InstallGenerator should create the maestrano/account/groups_controller.
41983
+ -----------------------------------------------------------------------------------------------------
41984
+  (0.0ms) begin transaction
41985
+  (0.0ms) commit transaction
41986
+  (0.0ms) begin transaction
41987
+  (0.0ms) rollback transaction
41988
+ ------------------------------------------------------------------------------------------------
41989
+ InstallGeneratorTest: test_: InstallGenerator should create the maestrano/auth/saml_controller.
41990
+ ------------------------------------------------------------------------------------------------
41991
+  (0.0ms) begin transaction
41992
+  (0.0ms) commit transaction
41993
+  (0.0ms) begin transaction
41994
+  (0.1ms) rollback transaction
41995
+ --------------------------------------------------------------------------------------------------------
41996
+ UserGeneratorTest: test_: UserGenerator should call the active_record migration generator successfully.
41997
+ --------------------------------------------------------------------------------------------------------
41998
+  (0.0ms) begin transaction
41999
+  (0.0ms) commit transaction
42000
+  (0.0ms) begin transaction
42001
+  (0.0ms) rollback transaction
42002
+ --------------------------------------------------------------------------------------------------
42003
+ UserGeneratorTest: test_: UserGenerator should call the mongoid migration generator successfully.
42004
+ --------------------------------------------------------------------------------------------------
42005
+  (0.0ms) begin transaction
42006
+  (0.0ms) commit transaction
42007
+  (0.0ms) begin transaction
42008
+  (0.0ms) rollback transaction
42009
+ ----------------------------------------------------------------------------------------------------------
42010
+ GroupGeneratorTest: test_: GroupGenerator should call the active_record migration generator successfully.
42011
+ ----------------------------------------------------------------------------------------------------------
42012
+  (0.0ms) begin transaction
42013
+  (0.0ms) commit transaction
42014
+  (0.0ms) begin transaction
42015
+  (0.1ms) rollback transaction
42016
+ ----------------------------------------------------------------------------------------------------
42017
+ GroupGeneratorTest: test_: GroupGenerator should call the mongoid migration generator successfully.
42018
+ ----------------------------------------------------------------------------------------------------
42019
+  (0.0ms) begin transaction
42020
+  (0.0ms) commit transaction
42021
+  (0.0ms) begin transaction
42022
+  (0.0ms) rollback transaction
42023
+ ---------------------------------------------------------------------
42024
+ GroupUsersControllerTest: test_: authenticated should be successful.
42025
+ ---------------------------------------------------------------------
42026
+  (0.1ms) begin transaction
42027
+  (0.0ms) commit transaction
42028
+  (0.0ms) begin transaction
42029
+ Processing by Maestrano::Account::GroupUsersController#destroy as HTML
42030
+ Parameters: {"group_id"=>"cld-1", "id"=>"usr-1"}
42031
+ Rendered text template (0.0ms)
42032
+ Completed 200 OK in 5ms (Views: 4.5ms | ActiveRecord: 0.0ms)
42033
+  (0.1ms) rollback transaction
42034
+ ---------------------------------------------------------------------
42035
+ GroupUsersControllerTest: test_: unauthenticated should deny access.
42036
+ ---------------------------------------------------------------------
42037
+  (0.0ms) begin transaction
42038
+  (0.0ms) commit transaction
42039
+  (0.0ms) begin transaction
42040
+ Processing by Maestrano::Account::GroupUsersController#destroy as HTML
42041
+ Parameters: {"group_id"=>"cld-1", "id"=>"usr-1"}
42042
+ Rendered text template (0.0ms)
42043
+ Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
42044
+  (0.0ms) rollback transaction
42045
+ -----------------------------------------------------------------
42046
+ GroupsControllerTest: test_: authenticated should be successful.
42047
+ -----------------------------------------------------------------
42048
+  (0.0ms) begin transaction
42049
+  (0.0ms) commit transaction
42050
+  (0.0ms) begin transaction
42051
+ Processing by Maestrano::Account::GroupsController#destroy as HTML
42052
+ Parameters: {"id"=>"cld-1"}
42053
+ Rendered text template (0.0ms)
42054
+ Completed 200 OK in 2ms (Views: 1.7ms | ActiveRecord: 0.0ms)
42055
+  (0.0ms) rollback transaction
42056
+ -----------------------------------------------------------------
42057
+ GroupsControllerTest: test_: unauthenticated should deny access.
42058
+ -----------------------------------------------------------------
42059
+  (0.0ms) begin transaction
42060
+  (0.0ms) commit transaction
42061
+  (0.0ms) begin transaction
42062
+ Processing by Maestrano::Account::GroupsController#destroy as HTML
42063
+ Parameters: {"id"=>"cld-1"}
42064
+ Rendered text template (0.0ms)
42065
+ Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
42066
+  (0.1ms) rollback transaction
42067
+ ------------------------------------------------------------------------------------------
42068
+ ActiveRecordUserGeneratorTest: test_: namespaced model should create the right migration.
42069
+ ------------------------------------------------------------------------------------------
42070
+  (0.0ms) begin transaction
42071
+  (0.0ms) commit transaction
42072
+  (0.0ms) begin transaction
42073
+  (0.1ms) rollback transaction
42074
+ --------------------------------------------------------------------------------------
42075
+ ActiveRecordUserGeneratorTest: test_: namespaced model should edit the model content.
42076
+ --------------------------------------------------------------------------------------
42077
+  (0.0ms) begin transaction
42078
+  (0.0ms) commit transaction
42079
+  (0.0ms) begin transaction
42080
+  (0.0ms) rollback transaction
42081
+ --------------------------------------------------------------------------------------
42082
+ ActiveRecordUserGeneratorTest: test_: normal model should create the right migration.
42083
+ --------------------------------------------------------------------------------------
42084
+  (0.0ms) begin transaction
42085
+  (0.0ms) commit transaction
42086
+  (0.0ms) begin transaction
42087
+  (0.0ms) rollback transaction
42088
+ ----------------------------------------------------------------------------------
42089
+ ActiveRecordUserGeneratorTest: test_: normal model should edit the model content.
42090
+ ----------------------------------------------------------------------------------
42091
+  (0.0ms) begin transaction
42092
+  (0.0ms) commit transaction
42093
+  (0.0ms) begin transaction
42094
+  (0.0ms) rollback transaction
42095
+ --------------------------------------------------------------------------------------------------------------------------
42096
+ ActiveRecordUserGeneratorTest: test_: normal model should include parameters if rails 3 and strong_parameter not present.
42097
+ --------------------------------------------------------------------------------------------------------------------------
42098
+  (0.0ms) begin transaction
42099
+  (0.0ms) commit transaction
42100
+  (0.0ms) begin transaction
42101
+  (0.0ms) rollback transaction
42102
+ --------------------------------------------------------------------------------------------------------------------------
42103
+ ActiveRecordUserGeneratorTest: test_: normal model should not include parameters if rails 3 and strong_parameter present.
42104
+ --------------------------------------------------------------------------------------------------------------------------
42105
+  (0.0ms) begin transaction
42106
+  (0.0ms) commit transaction
42107
+  (0.0ms) begin transaction
42108
+  (0.0ms) rollback transaction
42109
+ ---------------------------------------------------------------------------------------------
42110
+ ActiveRecordUserGeneratorTest: test_: normal model should not include parameters in rails 4.
42111
+ ---------------------------------------------------------------------------------------------
42112
+  (0.0ms) begin transaction
42113
+  (0.0ms) commit transaction
42114
+  (0.0ms) begin transaction
42115
+  (0.0ms) rollback transaction
42116
+ ---------------------------------------------------------------------------------------------------------------------
42117
+ GenericControllerTest: test_: with a maestrano session should be successful if the maestrano session is still valid.
42118
+ ---------------------------------------------------------------------------------------------------------------------
42119
+  (0.0ms) begin transaction
42120
+  (0.0ms) commit transaction
42121
+  (0.0ms) begin transaction
42122
+ Processing by PagesController#home as HTML
42123
+ Rendered pages/home.html.erb within layouts/application (0.8ms)
42124
+ Completed 200 OK in 98ms (Views: 98.2ms | ActiveRecord: 0.0ms)
42125
+  (0.1ms) rollback transaction
42126
+ --------------------------------------------------------------------------------------------------------------------
42127
+ GenericControllerTest: test_: with a maestrano session should initialize redirect to SSO initialization if invalid.
42128
+ --------------------------------------------------------------------------------------------------------------------
42129
+  (0.0ms) begin transaction
42130
+  (0.0ms) commit transaction
42131
+  (0.0ms) begin transaction
42132
+ Processing by PagesController#home as HTML
42133
+ Rendered pages/home.html.erb within layouts/application (0.0ms)
42134
+ Completed 200 OK in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)
42135
+  (0.1ms) rollback transaction
42136
+ -----------------------------------------------------------------------------------------------------------
42137
+ GenericControllerTest: test_: with a maestrano session should not redirect to SSO init if sso is disabled.
42138
+ -----------------------------------------------------------------------------------------------------------
42139
+  (0.0ms) begin transaction
42140
+  (0.0ms) commit transaction
42141
+  (0.0ms) begin transaction
42142
+ Processing by PagesController#home as HTML
42143
+ Rendered pages/home.html.erb within layouts/application (0.0ms)
42144
+ Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms)
42145
+  (0.0ms) rollback transaction
42146
+ ------------------------------------------------------------------------------
42147
+ GenericControllerTest: test_: with no maestrano session should be successful.
42148
+ ------------------------------------------------------------------------------
42149
+  (0.0ms) begin transaction
42150
+  (0.0ms) commit transaction
42151
+  (0.0ms) begin transaction
42152
+ Processing by PagesController#home as HTML
42153
+ Rendered pages/home.html.erb within layouts/application (0.0ms)
42154
+ Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)
42155
+  (0.0ms) rollback transaction
42156
+ --------------------------------------------------------------------------------------------------------------------------------------
42157
+ MaestranoUserViaTest: test_: class methods find_or_create_for_maestrano class method should create a monster using the mapping block.
42158
+ --------------------------------------------------------------------------------------------------------------------------------------
42159
+  (0.0ms) begin transaction
42160
+  (0.0ms) commit transaction
42161
+  (0.0ms) begin transaction
42162
+ 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"]]
42163
+  (0.1ms) SAVEPOINT active_record_1
42164
+ 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-10-18 20:50:53.762731"], ["updated_at", "2016-10-18 20:50:53.762731"]]
42165
+  (0.0ms) RELEASE SAVEPOINT active_record_1
42166
+  (0.1ms) rollback transaction
42167
+ --------------------------------------------------------------------------------------------------------------------------------------------------------
42168
+ MaestranoUserViaTest: test_: class methods find_or_create_for_maestrano class method should not return a MnoMonster from another provider if it exists.
42169
+ --------------------------------------------------------------------------------------------------------------------------------------------------------
42170
+  (0.0ms) begin transaction
42171
+  (0.0ms) commit transaction
42172
+  (0.0ms) begin transaction
42173
+  (0.0ms) SAVEPOINT active_record_1
42174
+ 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-10-18 20:50:53.765571"], ["updated_at", "2016-10-18 20:50:53.765571"]]
42175
+  (0.0ms) RELEASE SAVEPOINT active_record_1
42176
+ 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"]]
42177
+  (0.0ms) SAVEPOINT active_record_1
42178
+ 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-10-18 20:50:53.766970"], ["updated_at", "2016-10-18 20:50:53.766970"]]
42179
+  (0.0ms) RELEASE SAVEPOINT active_record_1
42180
+  (0.1ms) rollback transaction
42181
+ --------------------------------------------------------------------------------------------------------------------------------
42182
+ MaestranoUserViaTest: test_: class methods find_or_create_for_maestrano class method should return the MnoMonster if it exists.
42183
+ --------------------------------------------------------------------------------------------------------------------------------
42184
+  (0.0ms) begin transaction
42185
+  (0.0ms) commit transaction
42186
+  (0.0ms) begin transaction
42187
+  (0.0ms) SAVEPOINT active_record_1
42188
+ 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-10-18 20:50:53.768549"], ["updated_at", "2016-10-18 20:50:53.768549"]]
42189
+  (0.0ms) RELEASE SAVEPOINT active_record_1
42190
+ 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"]]
42191
+  (0.1ms) rollback transaction
42192
+ ---------------------------------------------------------------------------------------------------
42193
+ MaestranoUserViaTest: test_: class methods maestrano_*_via should have the right field definition.
42194
+ ---------------------------------------------------------------------------------------------------
42195
+  (0.0ms) begin transaction
42196
+  (0.0ms) commit transaction
42197
+  (0.0ms) begin transaction
42198
+  (0.0ms) rollback transaction
42199
+ ------------------------------------------------------------------------------------------------------------
42200
+ MaestranoUserViaTest: test_: instance methods maestrano? should return false if provider is something else.
42201
+ ------------------------------------------------------------------------------------------------------------
42202
+  (0.0ms) begin transaction
42203
+  (0.0ms) commit transaction
42204
+  (0.0ms) begin transaction
42205
+  (0.0ms) rollback transaction
42206
+ ----------------------------------------------------------------------------------------------
42207
+ MaestranoUserViaTest: test_: instance methods maestrano? should return false if uid is blank.
42208
+ ----------------------------------------------------------------------------------------------
42209
+  (0.0ms) begin transaction
42210
+  (0.0ms) commit transaction
42211
+  (0.0ms) begin transaction
42212
+  (0.0ms) rollback transaction
42213
+ -----------------------------------------------------------------------------------------------------------------------
42214
+ MaestranoUserViaTest: test_: instance methods maestrano? should return true if provider is maestrano and uid not null.
42215
+ -----------------------------------------------------------------------------------------------------------------------
42216
+  (0.0ms) begin transaction
42217
+  (0.0ms) commit transaction
42218
+  (0.0ms) begin transaction
42219
+  (0.0ms) rollback transaction
42220
+ ----------------------------------------------------------------------------------------------
42221
+ SamlBaseControllerTest: test_: consume phase error should redirect to maestrano on any error.
42222
+ ----------------------------------------------------------------------------------------------
42223
+  (0.0ms) begin transaction
42224
+  (0.0ms) commit transaction
42225
+  (0.0ms) begin transaction
42226
+ Processing by Maestrano::Auth::SamlController#consume as HTML
42227
+ Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"}
42228
+ Cannot validate SAML response: Bla
42229
+ Trace: ["/home/bruno/.rvm/gems/ruby-2.3.1/gems/mocha-1.2.1/lib/mocha/exception_raiser.rb:12:in `evaluate'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/mocha-1.2.1/lib/mocha/return_values.rb:20:in `next'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/mocha-1.2.1/lib/mocha/expectation.rb:569:in `invoke'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/mocha-1.2.1/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.1/lib/minitest/test.rb:107:in `block (3 levels) in run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.1/lib/minitest/test.rb:204:in `capture_exceptions'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.1/lib/minitest/test.rb:104:in `block (2 levels) in run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.1/lib/minitest/test.rb:255:in `time_it'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.1/lib/minitest/test.rb:103:in `block in run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.1/lib/minitest.rb:348:in `on_signal'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.1/lib/minitest/test.rb:275:in `with_info_handler'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.1/lib/minitest/test.rb:102:in `run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.1/lib/minitest.rb:799:in `run_one_method'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.1/lib/minitest.rb:322:in `run_one_method'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.1/lib/minitest.rb:310:in `block (2 levels) in run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.1/lib/minitest.rb:309:in `each'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.1/lib/minitest.rb:309:in `block in run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.1/lib/minitest.rb:348:in `on_signal'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.1/lib/minitest.rb:335:in `with_info_handler'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.1/lib/minitest.rb:308:in `run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.1/lib/minitest.rb:158:in `block in __run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.1/lib/minitest.rb:158:in `map'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.1/lib/minitest.rb:158:in `__run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.1/lib/minitest.rb:135:in `run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.1/lib/minitest.rb:62:in `block in autorun'"]
42230
+ Redirected to http://api-sandbox.maestrano.io/app_access_unauthorized?err=internal
42231
+ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
42232
+  (0.0ms) rollback transaction
42233
+ --------------------------------------------------------------------------------------------------------------------
42234
+ SamlBaseControllerTest: test_: consume phase should reset the maestrano session successfully if one already exists.
42235
+ --------------------------------------------------------------------------------------------------------------------
42236
+  (0.0ms) begin transaction
42237
+  (0.0ms) commit transaction
42238
+  (0.0ms) begin transaction
42239
+ Processing by Maestrano::Auth::SamlController#consume as HTML
42240
+ Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"}
42241
+ Redirected to http://test.host/
42242
+ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
42243
+  (0.0ms) rollback transaction
42244
+ ---------------------------------------------------------------------------------
42245
+ SamlBaseControllerTest: test_: consume phase should set a saml_request in scope.
42246
+ ---------------------------------------------------------------------------------
42247
+  (0.1ms) begin transaction
42248
+  (0.0ms) commit transaction
42249
+  (0.0ms) begin transaction
42250
+ Processing by Maestrano::Auth::SamlController#consume as HTML
42251
+ Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"}
42252
+ Redirected to http://test.host/
42253
+ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
42254
+  (0.1ms) rollback transaction
42255
+ --------------------------------------------------------------------------------------
42256
+ SamlBaseControllerTest: test_: consume phase should set the group_auth_hash in scope.
42257
+ --------------------------------------------------------------------------------------
42258
+  (0.0ms) begin transaction
42259
+  (0.0ms) commit transaction
42260
+  (0.0ms) begin transaction
42261
+ Processing by Maestrano::Auth::SamlController#consume as HTML
42262
+ Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"}
42263
+ Redirected to http://test.host/
42264
+ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
42265
+  (0.0ms) rollback transaction
42266
+ -------------------------------------------------------------------------------
42267
+ SamlBaseControllerTest: test_: consume phase should set the maestrano session.
42268
+ -------------------------------------------------------------------------------
42269
+  (0.0ms) begin transaction
42270
+  (0.1ms) commit transaction
42271
+  (0.0ms) begin transaction
42272
+ Processing by Maestrano::Auth::SamlController#consume as HTML
42273
+ Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"}
42274
+ Redirected to http://test.host/
42275
+ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
42276
+  (0.0ms) rollback transaction
42277
+ -------------------------------------------------------------------------------------
42278
+ SamlBaseControllerTest: test_: consume phase should set the user_auth_hash in scope.
42279
+ -------------------------------------------------------------------------------------
42280
+  (0.0ms) begin transaction
42281
+  (0.0ms) commit transaction
42282
+  (0.0ms) begin transaction
42283
+ Processing by Maestrano::Auth::SamlController#consume as HTML
42284
+ Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"}
42285
+ Redirected to http://test.host/
42286
+ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
42287
+  (0.0ms) rollback transaction
42288
+ ------------------------------------------------------------------------------------------
42289
+ SamlBaseControllerTest: test_: consume phase should set the user_group_rel_hash in scope.
42290
+ ------------------------------------------------------------------------------------------
42291
+  (0.0ms) begin transaction
42292
+  (0.0ms) commit transaction
42293
+  (0.0ms) begin transaction
42294
+ Processing by Maestrano::Auth::SamlController#consume as HTML
42295
+ Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"}
42296
+ Redirected to http://test.host/
42297
+ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
42298
+  (0.0ms) rollback transaction
42299
+ ---------------------------------------------------------------------------------------------------------------------------
42300
+ SamlBaseControllerTest: test_: init phase should create a saml request successfully if a maestrano session is already set.
42301
+ ---------------------------------------------------------------------------------------------------------------------------
42302
+  (0.0ms) begin transaction
42303
+  (0.0ms) commit transaction
42304
+  (0.0ms) begin transaction
42305
+ Processing by Maestrano::Auth::SamlController#init as HTML
42306
+ Parameters: {"a_param"=>"value"}
42307
+ Redirected to http://idpprovider.com?r=request
42308
+ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
42309
+  (0.0ms) rollback transaction
42310
+ -----------------------------------------------------------------------------------------------------------------------
42311
+ SamlBaseControllerTest: test_: init phase should create a saml request using params and session and redirect the user.
42312
+ -----------------------------------------------------------------------------------------------------------------------
42313
+  (0.0ms) begin transaction
42314
+  (0.0ms) commit transaction
42315
+  (0.0ms) begin transaction
42316
+ Processing by Maestrano::Auth::SamlController#init as HTML
42317
+ Parameters: {"a_param"=>"value"}
42318
+ Redirected to http://idpprovider.com?r=request
42319
+ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
42320
+  (0.1ms) rollback transaction
42321
+ ------------------------------
42322
+ MaestranoRailsTest: test_truth
42323
+ ------------------------------
42324
+  (0.0ms) begin transaction
42325
+  (0.0ms) commit transaction
42326
+  (0.0ms) begin transaction
42327
+  (0.0ms) rollback transaction
42328
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
42329
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
42330
+ ---------------------------------------------------------------------------------------------------------------------
42331
+ GenericControllerTest: test_: with a maestrano session should be successful if the maestrano session is still valid.
42332
+ ---------------------------------------------------------------------------------------------------------------------
42333
+  (0.1ms) begin transaction
42334
+  (0.0ms) commit transaction
42335
+  (0.0ms) begin transaction
42336
+ Processing by PagesController#home as HTML
42337
+ Rendered pages/home.html.erb within layouts/application (0.7ms)
42338
+ Completed 200 OK in 102ms (Views: 101.9ms | ActiveRecord: 0.0ms)
42339
+  (0.1ms) rollback transaction
42340
+ --------------------------------------------------------------------------------------------------------------------
42341
+ GenericControllerTest: test_: with a maestrano session should initialize redirect to SSO initialization if invalid.
42342
+ --------------------------------------------------------------------------------------------------------------------
42343
+  (0.1ms) begin transaction
42344
+  (0.0ms) commit transaction
42345
+  (0.0ms) begin transaction
42346
+ Processing by PagesController#home as HTML
42347
+ Rendered pages/home.html.erb within layouts/application (0.0ms)
42348
+ Completed 200 OK in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)
42349
+  (0.0ms) rollback transaction
42350
+ -----------------------------------------------------------------------------------------------------------
42351
+ GenericControllerTest: test_: with a maestrano session should not redirect to SSO init if sso is disabled.
42352
+ -----------------------------------------------------------------------------------------------------------
42353
+  (0.0ms) begin transaction
42354
+  (0.0ms) commit transaction
42355
+  (0.0ms) begin transaction
42356
+ Processing by PagesController#home as HTML
42357
+ Rendered pages/home.html.erb within layouts/application (0.0ms)
42358
+ Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms)
42359
+  (0.0ms) rollback transaction
42360
+ ------------------------------------------------------------------------------
42361
+ GenericControllerTest: test_: with no maestrano session should be successful.
42362
+ ------------------------------------------------------------------------------
42363
+  (0.0ms) begin transaction
42364
+  (0.0ms) commit transaction
42365
+  (0.0ms) begin transaction
42366
+ Processing by PagesController#home as HTML
42367
+ Rendered pages/home.html.erb within layouts/application (0.0ms)
42368
+ Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms)
42369
+  (0.0ms) rollback transaction
42370
+ -------------------------------------------------------------------------------------------
42371
+ ActiveRecordGroupGeneratorTest: test_: namespaced model should create the right migration.
42372
+ -------------------------------------------------------------------------------------------
42373
+  (0.0ms) begin transaction
42374
+  (0.0ms) commit transaction
42375
+  (0.0ms) begin transaction
42376
+  (0.0ms) rollback transaction
42377
+ ---------------------------------------------------------------------------------------
42378
+ ActiveRecordGroupGeneratorTest: test_: namespaced model should edit the model content.
42379
+ ---------------------------------------------------------------------------------------
42380
+  (0.0ms) begin transaction
42381
+  (0.0ms) commit transaction
42382
+  (0.0ms) begin transaction
42383
+  (0.1ms) rollback transaction
42384
+ ---------------------------------------------------------------------------------------
42385
+ ActiveRecordGroupGeneratorTest: test_: normal model should create the right migration.
42386
+ ---------------------------------------------------------------------------------------
42387
+  (0.0ms) begin transaction
42388
+  (0.1ms) commit transaction
42389
+  (0.0ms) begin transaction
42390
+  (0.0ms) rollback transaction
42391
+ -----------------------------------------------------------------------------------
42392
+ ActiveRecordGroupGeneratorTest: test_: normal model should edit the model content.
42393
+ -----------------------------------------------------------------------------------
42394
+  (0.0ms) begin transaction
42395
+  (0.0ms) commit transaction
42396
+  (0.0ms) begin transaction
42397
+  (0.0ms) rollback transaction
42398
+ ---------------------------------------------------------------------------------------------------------------------------
42399
+ ActiveRecordGroupGeneratorTest: test_: normal model should include parameters if rails 3 and strong_parameter not present.
42400
+ ---------------------------------------------------------------------------------------------------------------------------
42401
+  (0.0ms) begin transaction
42402
+  (0.0ms) commit transaction
42403
+  (0.0ms) begin transaction
42404
+  (0.0ms) rollback transaction
42405
+ ---------------------------------------------------------------------------------------------------------------------------
42406
+ ActiveRecordGroupGeneratorTest: test_: normal model should not include parameters if rails 3 and strong_parameter present.
42407
+ ---------------------------------------------------------------------------------------------------------------------------
42408
+  (0.0ms) begin transaction
42409
+  (0.0ms) commit transaction
42410
+  (0.0ms) begin transaction
42411
+  (0.0ms) rollback transaction
42412
+ ----------------------------------------------------------------------------------------------
42413
+ ActiveRecordGroupGeneratorTest: test_: normal model should not include parameters in rails 4.
42414
+ ----------------------------------------------------------------------------------------------
42415
+  (0.0ms) begin transaction
42416
+  (0.0ms) commit transaction
42417
+  (0.0ms) begin transaction
42418
+  (0.0ms) rollback transaction
42419
+ ---------------------------------------------------------------------
42420
+ GroupUsersControllerTest: test_: authenticated should be successful.
42421
+ ---------------------------------------------------------------------
42422
+  (0.1ms) begin transaction
42423
+  (0.0ms) commit transaction
42424
+  (0.0ms) begin transaction
42425
+ Processing by Maestrano::Account::GroupUsersController#destroy as HTML
42426
+ Parameters: {"group_id"=>"cld-1", "id"=>"usr-1"}
42427
+ Rendered text template (0.0ms)
42428
+ Completed 200 OK in 5ms (Views: 5.2ms | ActiveRecord: 0.0ms)
42429
+  (0.0ms) rollback transaction
42430
+ ---------------------------------------------------------------------
42431
+ GroupUsersControllerTest: test_: unauthenticated should deny access.
42432
+ ---------------------------------------------------------------------
42433
+  (0.0ms) begin transaction
42434
+  (0.0ms) commit transaction
42435
+  (0.0ms) begin transaction
42436
+ Processing by Maestrano::Account::GroupUsersController#destroy as HTML
42437
+ Parameters: {"group_id"=>"cld-1", "id"=>"usr-1"}
42438
+ Rendered text template (0.0ms)
42439
+ Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
42440
+  (0.0ms) rollback transaction
42441
+ --------------------------------------------------------------------------------------------------------------------------------------
42442
+ MaestranoUserViaTest: test_: class methods find_or_create_for_maestrano class method should create a monster using the mapping block.
42443
+ --------------------------------------------------------------------------------------------------------------------------------------
42444
+  (0.0ms) begin transaction
42445
+  (0.0ms) commit transaction
42446
+  (0.0ms) begin transaction
42447
+ 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"]]
42448
+  (0.0ms) SAVEPOINT active_record_1
42449
+ 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-10-18 20:52:11.866716"], ["updated_at", "2016-10-18 20:52:11.866716"]]
42450
+  (0.0ms) RELEASE SAVEPOINT active_record_1
42451
+  (0.1ms) rollback transaction
42452
+ --------------------------------------------------------------------------------------------------------------------------------------------------------
42453
+ MaestranoUserViaTest: test_: class methods find_or_create_for_maestrano class method should not return a MnoMonster from another provider if it exists.
42454
+ --------------------------------------------------------------------------------------------------------------------------------------------------------
42455
+  (0.0ms) begin transaction
42456
+  (0.0ms) commit transaction
42457
+  (0.0ms) begin transaction
42458
+  (0.0ms) SAVEPOINT active_record_1
42459
+ 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-10-18 20:52:11.868809"], ["updated_at", "2016-10-18 20:52:11.868809"]]
42460
+  (0.0ms) RELEASE SAVEPOINT active_record_1
42461
+ 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"]]
42462
+  (0.0ms) SAVEPOINT active_record_1
42463
+ 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-10-18 20:52:11.870114"], ["updated_at", "2016-10-18 20:52:11.870114"]]
42464
+  (0.0ms) RELEASE SAVEPOINT active_record_1
42465
+  (0.1ms) rollback transaction
42466
+ --------------------------------------------------------------------------------------------------------------------------------
42467
+ MaestranoUserViaTest: test_: class methods find_or_create_for_maestrano class method should return the MnoMonster if it exists.
42468
+ --------------------------------------------------------------------------------------------------------------------------------
42469
+  (0.0ms) begin transaction
42470
+  (0.0ms) commit transaction
42471
+  (0.0ms) begin transaction
42472
+  (0.0ms) SAVEPOINT active_record_1
42473
+ 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-10-18 20:52:11.871654"], ["updated_at", "2016-10-18 20:52:11.871654"]]
42474
+  (0.0ms) RELEASE SAVEPOINT active_record_1
42475
+ 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"]]
42476
+  (0.1ms) rollback transaction
42477
+ ---------------------------------------------------------------------------------------------------
42478
+ MaestranoUserViaTest: test_: class methods maestrano_*_via should have the right field definition.
42479
+ ---------------------------------------------------------------------------------------------------
42480
+  (0.0ms) begin transaction
42481
+  (0.0ms) commit transaction
42482
+  (0.0ms) begin transaction
42483
+  (0.0ms) rollback transaction
42484
+ ------------------------------------------------------------------------------------------------------------
42485
+ MaestranoUserViaTest: test_: instance methods maestrano? should return false if provider is something else.
42486
+ ------------------------------------------------------------------------------------------------------------
42487
+  (0.0ms) begin transaction
42488
+  (0.0ms) commit transaction
42489
+  (0.0ms) begin transaction
42490
+  (0.0ms) rollback transaction
42491
+ ----------------------------------------------------------------------------------------------
42492
+ MaestranoUserViaTest: test_: instance methods maestrano? should return false if uid is blank.
42493
+ ----------------------------------------------------------------------------------------------
42494
+  (0.0ms) begin transaction
42495
+  (0.0ms) commit transaction
42496
+  (0.0ms) begin transaction
42497
+  (0.0ms) rollback transaction
42498
+ -----------------------------------------------------------------------------------------------------------------------
42499
+ MaestranoUserViaTest: test_: instance methods maestrano? should return true if provider is maestrano and uid not null.
42500
+ -----------------------------------------------------------------------------------------------------------------------
42501
+  (0.0ms) begin transaction
42502
+  (0.0ms) commit transaction
42503
+  (0.0ms) begin transaction
42504
+  (0.0ms) rollback transaction
42505
+ ----------------------------------------------------------------------------------------------------------
42506
+ GroupGeneratorTest: test_: GroupGenerator should call the active_record migration generator successfully.
42507
+ ----------------------------------------------------------------------------------------------------------
42508
+  (0.0ms) begin transaction
42509
+  (0.0ms) commit transaction
42510
+  (0.0ms) begin transaction
42511
+  (0.0ms) rollback transaction
42512
+ ----------------------------------------------------------------------------------------------------
42513
+ GroupGeneratorTest: test_: GroupGenerator should call the mongoid migration generator successfully.
42514
+ ----------------------------------------------------------------------------------------------------
42515
+  (0.0ms) begin transaction
42516
+  (0.0ms) commit transaction
42517
+  (0.0ms) begin transaction
42518
+  (0.0ms) rollback transaction
42519
+ ----------------------------------------------------------------------------------------------
42520
+ SamlBaseControllerTest: test_: consume phase error should redirect to maestrano on any error.
42521
+ ----------------------------------------------------------------------------------------------
42522
+  (0.0ms) begin transaction
42523
+  (0.0ms) commit transaction
42524
+  (0.0ms) begin transaction
42525
+ Processing by Maestrano::Auth::SamlController#consume as HTML
42526
+ Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"}
42527
+ Cannot validate SAML response: Bla
42528
+ Trace: ["/home/bruno/.rvm/gems/ruby-2.3.1/gems/mocha-1.2.1/lib/mocha/exception_raiser.rb:12:in `evaluate'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/mocha-1.2.1/lib/mocha/return_values.rb:20:in `next'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/mocha-1.2.1/lib/mocha/expectation.rb:569:in `invoke'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/mocha-1.2.1/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.1/lib/minitest/test.rb:107:in `block (3 levels) in run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.1/lib/minitest/test.rb:204:in `capture_exceptions'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.1/lib/minitest/test.rb:104:in `block (2 levels) in run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.1/lib/minitest/test.rb:255:in `time_it'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.1/lib/minitest/test.rb:103:in `block in run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.1/lib/minitest.rb:348:in `on_signal'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.1/lib/minitest/test.rb:275:in `with_info_handler'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.1/lib/minitest/test.rb:102:in `run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.1/lib/minitest.rb:799:in `run_one_method'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.1/lib/minitest.rb:322:in `run_one_method'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.1/lib/minitest.rb:310:in `block (2 levels) in run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.1/lib/minitest.rb:309:in `each'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.1/lib/minitest.rb:309:in `block in run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.1/lib/minitest.rb:348:in `on_signal'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.1/lib/minitest.rb:335:in `with_info_handler'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.1/lib/minitest.rb:308:in `run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.1/lib/minitest.rb:158:in `block in __run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.1/lib/minitest.rb:158:in `map'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.1/lib/minitest.rb:158:in `__run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.1/lib/minitest.rb:135:in `run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.1/lib/minitest.rb:62:in `block in autorun'"]
42529
+ Redirected to http://api-sandbox.maestrano.io/app_access_unauthorized?err=internal
42530
+ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
42531
+  (0.0ms) rollback transaction
42532
+ --------------------------------------------------------------------------------------------------------------------
42533
+ SamlBaseControllerTest: test_: consume phase should reset the maestrano session successfully if one already exists.
42534
+ --------------------------------------------------------------------------------------------------------------------
42535
+  (0.0ms) begin transaction
42536
+  (0.0ms) commit transaction
42537
+  (0.0ms) begin transaction
42538
+ Processing by Maestrano::Auth::SamlController#consume as HTML
42539
+ Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"}
42540
+ Redirected to http://test.host/
42541
+ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
42542
+  (0.0ms) rollback transaction
42543
+ ---------------------------------------------------------------------------------
42544
+ SamlBaseControllerTest: test_: consume phase should set a saml_request in scope.
42545
+ ---------------------------------------------------------------------------------
42546
+  (0.0ms) begin transaction
42547
+  (0.0ms) commit transaction
42548
+  (0.0ms) begin transaction
42549
+ Processing by Maestrano::Auth::SamlController#consume as HTML
42550
+ Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"}
42551
+ Redirected to http://test.host/
42552
+ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
42553
+  (0.0ms) rollback transaction
42554
+ --------------------------------------------------------------------------------------
42555
+ SamlBaseControllerTest: test_: consume phase should set the group_auth_hash in scope.
42556
+ --------------------------------------------------------------------------------------
42557
+  (0.0ms) begin transaction
42558
+  (0.0ms) commit transaction
42559
+  (0.0ms) begin transaction
42560
+ Processing by Maestrano::Auth::SamlController#consume as HTML
42561
+ Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"}
42562
+ Redirected to http://test.host/
42563
+ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
42564
+  (0.0ms) rollback transaction
42565
+ -------------------------------------------------------------------------------
42566
+ SamlBaseControllerTest: test_: consume phase should set the maestrano session.
42567
+ -------------------------------------------------------------------------------
42568
+  (0.0ms) begin transaction
42569
+  (0.1ms) commit transaction
42570
+  (0.0ms) begin transaction
42571
+ Processing by Maestrano::Auth::SamlController#consume as HTML
42572
+ Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"}
42573
+ Redirected to http://test.host/
42574
+ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
42575
+  (0.0ms) rollback transaction
42576
+ -------------------------------------------------------------------------------------
42577
+ SamlBaseControllerTest: test_: consume phase should set the user_auth_hash in scope.
42578
+ -------------------------------------------------------------------------------------
42579
+  (0.0ms) begin transaction
42580
+  (0.0ms) commit transaction
42581
+  (0.0ms) begin transaction
42582
+ Processing by Maestrano::Auth::SamlController#consume as HTML
42583
+ Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"}
42584
+ Redirected to http://test.host/
42585
+ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
42586
+  (0.0ms) rollback transaction
42587
+ ------------------------------------------------------------------------------------------
42588
+ SamlBaseControllerTest: test_: consume phase should set the user_group_rel_hash in scope.
42589
+ ------------------------------------------------------------------------------------------
42590
+  (0.0ms) begin transaction
42591
+  (0.0ms) commit transaction
42592
+  (0.0ms) begin transaction
42593
+ Processing by Maestrano::Auth::SamlController#consume as HTML
42594
+ Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"}
42595
+ Redirected to http://test.host/
42596
+ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
42597
+  (0.0ms) rollback transaction
42598
+ ---------------------------------------------------------------------------------------------------------------------------
42599
+ SamlBaseControllerTest: test_: init phase should create a saml request successfully if a maestrano session is already set.
42600
+ ---------------------------------------------------------------------------------------------------------------------------
42601
+  (0.0ms) begin transaction
42602
+  (0.0ms) commit transaction
42603
+  (0.0ms) begin transaction
42604
+ Processing by Maestrano::Auth::SamlController#init as HTML
42605
+ Parameters: {"a_param"=>"value"}
42606
+ Redirected to http://idpprovider.com?r=request
42607
+ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
42608
+  (0.0ms) rollback transaction
42609
+ -----------------------------------------------------------------------------------------------------------------------
42610
+ SamlBaseControllerTest: test_: init phase should create a saml request using params and session and redirect the user.
42611
+ -----------------------------------------------------------------------------------------------------------------------
42612
+  (0.0ms) begin transaction
42613
+  (0.0ms) commit transaction
42614
+  (0.0ms) begin transaction
42615
+ Processing by Maestrano::Auth::SamlController#init as HTML
42616
+ Parameters: {"a_param"=>"value"}
42617
+ Redirected to http://idpprovider.com?r=request
42618
+ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
42619
+  (0.1ms) rollback transaction
42620
+ ------------------------------
42621
+ MaestranoRailsTest: test_truth
42622
+ ------------------------------
42623
+  (0.1ms) begin transaction
42624
+  (0.0ms) commit transaction
42625
+  (0.0ms) begin transaction
42626
+  (0.0ms) rollback transaction
42627
+ --------------------------------------------------------------------------------------------------------
42628
+ UserGeneratorTest: test_: UserGenerator should call the active_record migration generator successfully.
42629
+ --------------------------------------------------------------------------------------------------------
42630
+  (0.1ms) begin transaction
42631
+  (0.0ms) commit transaction
42632
+  (0.0ms) begin transaction
42633
+  (0.0ms) rollback transaction
42634
+ --------------------------------------------------------------------------------------------------
42635
+ UserGeneratorTest: test_: UserGenerator should call the mongoid migration generator successfully.
42636
+ --------------------------------------------------------------------------------------------------
42637
+  (0.0ms) begin transaction
42638
+  (0.0ms) commit transaction
42639
+  (0.0ms) begin transaction
42640
+  (0.0ms) rollback transaction
42641
+ ---------------------------------------------------------------------------------------
42642
+ InstallGeneratorTest: test_: InstallGenerator should create the maestrano initializer.
42643
+ ---------------------------------------------------------------------------------------
42644
+  (0.0ms) begin transaction
42645
+  (0.0ms) commit transaction
42646
+  (0.0ms) begin transaction
42647
+  (0.0ms) rollback transaction
42648
+ ----------------------------------------------------------------------------------
42649
+ InstallGeneratorTest: test_: InstallGenerator should create the maestrano routes.
42650
+ ----------------------------------------------------------------------------------
42651
+  (0.0ms) begin transaction
42652
+  (0.0ms) commit transaction
42653
+  (0.0ms) begin transaction
42654
+  (0.0ms) rollback transaction
42655
+ ----------------------------------------------------------------------------------------------------------
42656
+ InstallGeneratorTest: test_: InstallGenerator should create the maestrano/account/group_users_controller.
42657
+ ----------------------------------------------------------------------------------------------------------
42658
+  (0.0ms) begin transaction
42659
+  (0.0ms) commit transaction
42660
+  (0.0ms) begin transaction
42661
+  (0.1ms) rollback transaction
42662
+ -----------------------------------------------------------------------------------------------------
42663
+ InstallGeneratorTest: test_: InstallGenerator should create the maestrano/account/groups_controller.
42664
+ -----------------------------------------------------------------------------------------------------
42665
+  (0.1ms) begin transaction
42666
+  (0.0ms) commit transaction
42667
+  (0.0ms) begin transaction
42668
+  (0.1ms) rollback transaction
42669
+ ------------------------------------------------------------------------------------------------
42670
+ InstallGeneratorTest: test_: InstallGenerator should create the maestrano/auth/saml_controller.
42671
+ ------------------------------------------------------------------------------------------------
42672
+  (0.0ms) begin transaction
42673
+  (0.0ms) commit transaction
42674
+  (0.0ms) begin transaction
42675
+  (0.0ms) rollback transaction
42676
+ -------------------------------------------------------------------
42677
+ MetadataControllerTest: test_: authenticated should be successful.
42678
+ -------------------------------------------------------------------
42679
+  (0.0ms) begin transaction
42680
+  (0.0ms) commit transaction
42681
+  (0.1ms) begin transaction
42682
+ Processing by Maestrano::Rails::MetadataController#index as HTML
42683
+ Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)
42684
+  (0.0ms) rollback transaction
42685
+ -------------------------------------------------------------------
42686
+ MetadataControllerTest: test_: unauthenticated should deny access.
42687
+ -------------------------------------------------------------------
42688
+  (0.0ms) begin transaction
42689
+  (0.0ms) commit transaction
42690
+  (0.0ms) begin transaction
42691
+ Processing by Maestrano::Rails::MetadataController#index as HTML
42692
+ Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)
42693
+  (0.0ms) rollback transaction
42694
+ ------------------------------------------------------------------------------------------
42695
+ ActiveRecordUserGeneratorTest: test_: namespaced model should create the right migration.
42696
+ ------------------------------------------------------------------------------------------
42697
+  (0.0ms) begin transaction
42698
+  (0.0ms) commit transaction
42699
+  (0.0ms) begin transaction
42700
+  (0.0ms) rollback transaction
42701
+ --------------------------------------------------------------------------------------
42702
+ ActiveRecordUserGeneratorTest: test_: namespaced model should edit the model content.
42703
+ --------------------------------------------------------------------------------------
42704
+  (0.0ms) begin transaction
42705
+  (0.0ms) commit transaction
42706
+  (0.0ms) begin transaction
42707
+  (0.1ms) rollback transaction
42708
+ --------------------------------------------------------------------------------------
42709
+ ActiveRecordUserGeneratorTest: test_: normal model should create the right migration.
42710
+ --------------------------------------------------------------------------------------
42711
+  (0.0ms) begin transaction
42712
+  (0.0ms) commit transaction
42713
+  (0.0ms) begin transaction
42714
+  (0.1ms) rollback transaction
42715
+ ----------------------------------------------------------------------------------
42716
+ ActiveRecordUserGeneratorTest: test_: normal model should edit the model content.
42717
+ ----------------------------------------------------------------------------------
42718
+  (0.0ms) begin transaction
42719
+  (0.0ms) commit transaction
42720
+  (0.0ms) begin transaction
42721
+  (0.1ms) rollback transaction
42722
+ --------------------------------------------------------------------------------------------------------------------------
42723
+ ActiveRecordUserGeneratorTest: test_: normal model should include parameters if rails 3 and strong_parameter not present.
42724
+ --------------------------------------------------------------------------------------------------------------------------
42725
+  (0.1ms) begin transaction
42726
+  (0.0ms) commit transaction
42727
+  (0.0ms) begin transaction
42728
+  (0.1ms) rollback transaction
42729
+ --------------------------------------------------------------------------------------------------------------------------
42730
+ ActiveRecordUserGeneratorTest: test_: normal model should not include parameters if rails 3 and strong_parameter present.
42731
+ --------------------------------------------------------------------------------------------------------------------------
42732
+  (0.0ms) begin transaction
42733
+  (0.0ms) commit transaction
42734
+  (0.0ms) begin transaction
42735
+  (0.0ms) rollback transaction
42736
+ ---------------------------------------------------------------------------------------------
42737
+ ActiveRecordUserGeneratorTest: test_: normal model should not include parameters in rails 4.
42738
+ ---------------------------------------------------------------------------------------------
42739
+  (0.0ms) begin transaction
42740
+  (0.0ms) commit transaction
42741
+  (0.0ms) begin transaction
42742
+  (0.0ms) rollback transaction
42743
+ ---------------------------------------------------------------------------------------------------------------------------------------
42744
+ MaestranoGroupViaTest: test_: class methods find_or_create_for_maestrano class method should create a monster using the mapping block.
42745
+ ---------------------------------------------------------------------------------------------------------------------------------------
42746
+  (0.0ms) begin transaction
42747
+  (0.0ms) commit transaction
42748
+  (0.0ms) begin transaction
42749
+ 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"]]
42750
+  (0.0ms) SAVEPOINT active_record_1
42751
+ 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-10-18 20:52:11.989839"], ["updated_at", "2016-10-18 20:52:11.989839"]]
42752
+  (0.0ms) RELEASE SAVEPOINT active_record_1
42753
+  (0.1ms) rollback transaction
42754
+ ------------------------------------------------------------------------------------------------------------------------------------------------------
42755
+ MaestranoGroupViaTest: test_: class methods find_or_create_for_maestrano class method should not return a MnoCrew from another provider if it exists.
42756
+ ------------------------------------------------------------------------------------------------------------------------------------------------------
42757
+  (0.0ms) begin transaction
42758
+  (0.0ms) commit transaction
42759
+  (0.0ms) begin transaction
42760
+  (0.0ms) SAVEPOINT active_record_1
42761
+ 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-10-18 20:52:11.991744"], ["updated_at", "2016-10-18 20:52:11.991744"]]
42762
+  (0.0ms) RELEASE SAVEPOINT active_record_1
42763
+ 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"]]
42764
+  (0.0ms) SAVEPOINT active_record_1
42765
+ 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-10-18 20:52:11.992992"], ["updated_at", "2016-10-18 20:52:11.992992"]]
42766
+  (0.0ms) RELEASE SAVEPOINT active_record_1
42767
+  (0.1ms) rollback transaction
42768
+ ------------------------------------------------------------------------------------------------------------------------------
42769
+ MaestranoGroupViaTest: test_: class methods find_or_create_for_maestrano class method should return the MnoCrew if it exists.
42770
+ ------------------------------------------------------------------------------------------------------------------------------
42771
+  (0.0ms) begin transaction
42772
+  (0.0ms) commit transaction
42773
+  (0.0ms) begin transaction
42774
+  (0.0ms) SAVEPOINT active_record_1
42775
+ 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-10-18 20:52:11.994325"], ["updated_at", "2016-10-18 20:52:11.994325"]]
42776
+  (0.0ms) RELEASE SAVEPOINT active_record_1
42777
+ 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"]]
42778
+  (0.1ms) rollback transaction
42779
+ ----------------------------------------------------------------------------------------------------
42780
+ MaestranoGroupViaTest: test_: class methods maestrano_*_via should have the right field definition.
42781
+ ----------------------------------------------------------------------------------------------------
42782
+  (0.0ms) begin transaction
42783
+  (0.0ms) commit transaction
42784
+  (0.0ms) begin transaction
42785
+  (0.0ms) rollback transaction
42786
+ -------------------------------------------------------------------------------------------------------------
42787
+ MaestranoGroupViaTest: test_: instance methods maestrano? should return false if provider is something else.
42788
+ -------------------------------------------------------------------------------------------------------------
42789
+  (0.0ms) begin transaction
42790
+  (0.0ms) commit transaction
42791
+  (0.0ms) begin transaction
42792
+  (0.0ms) rollback transaction
42793
+ -----------------------------------------------------------------------------------------------
42794
+ MaestranoGroupViaTest: test_: instance methods maestrano? should return false if uid is blank.
42795
+ -----------------------------------------------------------------------------------------------
42796
+  (0.0ms) begin transaction
42797
+  (0.0ms) commit transaction
42798
+  (0.0ms) begin transaction
42799
+  (0.0ms) rollback transaction
42800
+ ------------------------------------------------------------------------------------------------------------------------
42801
+ MaestranoGroupViaTest: test_: instance methods maestrano? should return true if provider is maestrano and uid not null.
42802
+ ------------------------------------------------------------------------------------------------------------------------
42803
+  (0.0ms) begin transaction
42804
+  (0.0ms) commit transaction
42805
+  (0.0ms) begin transaction
42806
+  (0.0ms) rollback transaction
42807
+ -----------------------------------------------------------------
42808
+ GroupsControllerTest: test_: authenticated should be successful.
42809
+ -----------------------------------------------------------------
42810
+  (0.0ms) begin transaction
42811
+  (0.0ms) commit transaction
42812
+  (0.0ms) begin transaction
42813
+ Processing by Maestrano::Account::GroupsController#destroy as HTML
42814
+ Parameters: {"id"=>"cld-1"}
42815
+ Rendered text template (0.0ms)
42816
+ Completed 200 OK in 3ms (Views: 2.3ms | ActiveRecord: 0.0ms)
42817
+  (0.0ms) rollback transaction
42818
+ -----------------------------------------------------------------
42819
+ GroupsControllerTest: test_: unauthenticated should deny access.
42820
+ -----------------------------------------------------------------
42821
+  (0.0ms) begin transaction
42822
+  (0.0ms) commit transaction
42823
+  (0.0ms) begin transaction
42824
+ Processing by Maestrano::Account::GroupsController#destroy as HTML
42825
+ Parameters: {"id"=>"cld-1"}
42826
+ Rendered text template (0.0ms)
42827
+ Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
42828
+  (0.0ms) rollback transaction
42829
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
42830
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
42831
+ ---------------------------------------------------------------------
42832
+ GroupUsersControllerTest: test_: authenticated should be successful.
42833
+ ---------------------------------------------------------------------
42834
+  (0.1ms) begin transaction
42835
+  (0.1ms) commit transaction
42836
+  (0.0ms) begin transaction
42837
+ Processing by Maestrano::Account::GroupUsersController#destroy as HTML
42838
+ Parameters: {"group_id"=>"cld-1", "id"=>"usr-1"}
42839
+ Rendered text template (0.0ms)
42840
+ Completed 200 OK in 5ms (Views: 4.4ms | ActiveRecord: 0.0ms)
42841
+  (0.0ms) rollback transaction
42842
+ ---------------------------------------------------------------------
42843
+ GroupUsersControllerTest: test_: unauthenticated should deny access.
42844
+ ---------------------------------------------------------------------
42845
+  (0.0ms) begin transaction
42846
+  (0.0ms) commit transaction
42847
+  (0.0ms) begin transaction
42848
+ Processing by Maestrano::Account::GroupUsersController#destroy as HTML
42849
+ Parameters: {"group_id"=>"cld-1", "id"=>"usr-1"}
42850
+ Filter chain halted as :authenticate_maestrano! rendered or redirected
42851
+ Completed 401 Unauthorized in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
42852
+  (0.0ms) rollback transaction
42853
+ ----------------------------------------------------------------------------------------------------------
42854
+ GroupGeneratorTest: test_: GroupGenerator should call the active_record migration generator successfully.
42855
+ ----------------------------------------------------------------------------------------------------------
42856
+  (0.0ms) begin transaction
42857
+  (0.0ms) commit transaction
42858
+  (0.0ms) begin transaction
42859
+  (0.0ms) rollback transaction
42860
+ ----------------------------------------------------------------------------------------------------
42861
+ GroupGeneratorTest: test_: GroupGenerator should call the mongoid migration generator successfully.
42862
+ ----------------------------------------------------------------------------------------------------
42863
+  (0.0ms) begin transaction
42864
+  (0.0ms) commit transaction
42865
+  (0.0ms) begin transaction
42866
+  (0.0ms) rollback transaction
42867
+ ------------------------------------------------------------------------------------------
42868
+ ActiveRecordUserGeneratorTest: test_: namespaced model should create the right migration.
42869
+ ------------------------------------------------------------------------------------------
42870
+  (0.0ms) begin transaction
42871
+  (0.0ms) commit transaction
42872
+  (0.0ms) begin transaction
42873
+  (0.0ms) rollback transaction
42874
+ --------------------------------------------------------------------------------------
42875
+ ActiveRecordUserGeneratorTest: test_: namespaced model should edit the model content.
42876
+ --------------------------------------------------------------------------------------
42877
+  (0.0ms) begin transaction
42878
+  (0.0ms) commit transaction
42879
+  (0.0ms) begin transaction
42880
+  (0.1ms) rollback transaction
42881
+ --------------------------------------------------------------------------------------
42882
+ ActiveRecordUserGeneratorTest: test_: normal model should create the right migration.
42883
+ --------------------------------------------------------------------------------------
42884
+  (0.0ms) begin transaction
42885
+  (0.0ms) commit transaction
42886
+  (0.0ms) begin transaction
42887
+  (0.1ms) rollback transaction
42888
+ ----------------------------------------------------------------------------------
42889
+ ActiveRecordUserGeneratorTest: test_: normal model should edit the model content.
42890
+ ----------------------------------------------------------------------------------
42891
+  (0.0ms) begin transaction
42892
+  (0.0ms) commit transaction
42893
+  (0.0ms) begin transaction
42894
+  (0.1ms) rollback transaction
42895
+ --------------------------------------------------------------------------------------------------------------------------
42896
+ ActiveRecordUserGeneratorTest: test_: normal model should include parameters if rails 3 and strong_parameter not present.
42897
+ --------------------------------------------------------------------------------------------------------------------------
42898
+  (0.1ms) begin transaction
42899
+  (0.0ms) commit transaction
42900
+  (0.0ms) begin transaction
42901
+  (0.0ms) rollback transaction
42902
+ --------------------------------------------------------------------------------------------------------------------------
42903
+ ActiveRecordUserGeneratorTest: test_: normal model should not include parameters if rails 3 and strong_parameter present.
42904
+ --------------------------------------------------------------------------------------------------------------------------
42905
+  (0.0ms) begin transaction
42906
+  (0.0ms) commit transaction
42907
+  (0.0ms) begin transaction
42908
+  (0.0ms) rollback transaction
42909
+ ---------------------------------------------------------------------------------------------
42910
+ ActiveRecordUserGeneratorTest: test_: normal model should not include parameters in rails 4.
42911
+ ---------------------------------------------------------------------------------------------
42912
+  (0.0ms) begin transaction
42913
+  (0.0ms) commit transaction
42914
+  (0.0ms) begin transaction
42915
+  (0.0ms) rollback transaction
42916
+ ---------------------------------------------------------------------------------------------------------------------------------------
42917
+ MaestranoGroupViaTest: test_: class methods find_or_create_for_maestrano class method should create a monster using the mapping block.
42918
+ ---------------------------------------------------------------------------------------------------------------------------------------
42919
+  (0.1ms) begin transaction
42920
+  (0.0ms) commit transaction
42921
+  (0.0ms) begin transaction
42922
+ 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"]]
42923
+  (0.0ms) SAVEPOINT active_record_1
42924
+ 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-10-18 20:55:52.473594"], ["updated_at", "2016-10-18 20:55:52.473594"]]
42925
+  (0.0ms) RELEASE SAVEPOINT active_record_1
42926
+  (0.1ms) rollback transaction
42927
+ ------------------------------------------------------------------------------------------------------------------------------------------------------
42928
+ MaestranoGroupViaTest: test_: class methods find_or_create_for_maestrano class method should not return a MnoCrew from another provider if it exists.
42929
+ ------------------------------------------------------------------------------------------------------------------------------------------------------
42930
+  (0.0ms) begin transaction
42931
+  (0.0ms) commit transaction
42932
+  (0.0ms) begin transaction
42933
+  (0.0ms) SAVEPOINT active_record_1
42934
+ 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-10-18 20:55:52.475694"], ["updated_at", "2016-10-18 20:55:52.475694"]]
42935
+  (0.0ms) RELEASE SAVEPOINT active_record_1
42936
+ 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"]]
42937
+  (0.0ms) SAVEPOINT active_record_1
42938
+ 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-10-18 20:55:52.477117"], ["updated_at", "2016-10-18 20:55:52.477117"]]
42939
+  (0.0ms) RELEASE SAVEPOINT active_record_1
42940
+  (0.1ms) rollback transaction
42941
+ ------------------------------------------------------------------------------------------------------------------------------
42942
+ MaestranoGroupViaTest: test_: class methods find_or_create_for_maestrano class method should return the MnoCrew if it exists.
42943
+ ------------------------------------------------------------------------------------------------------------------------------
42944
+  (0.0ms) begin transaction
42945
+  (0.0ms) commit transaction
42946
+  (0.0ms) begin transaction
42947
+  (0.0ms) SAVEPOINT active_record_1
42948
+ 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-10-18 20:55:52.478858"], ["updated_at", "2016-10-18 20:55:52.478858"]]
42949
+  (0.0ms) RELEASE SAVEPOINT active_record_1
42950
+ 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"]]
42951
+  (0.1ms) rollback transaction
42952
+ ----------------------------------------------------------------------------------------------------
42953
+ MaestranoGroupViaTest: test_: class methods maestrano_*_via should have the right field definition.
42954
+ ----------------------------------------------------------------------------------------------------
42955
+  (0.0ms) begin transaction
42956
+  (0.0ms) commit transaction
42957
+  (0.0ms) begin transaction
42958
+  (0.0ms) rollback transaction
42959
+ -------------------------------------------------------------------------------------------------------------
42960
+ MaestranoGroupViaTest: test_: instance methods maestrano? should return false if provider is something else.
42961
+ -------------------------------------------------------------------------------------------------------------
42962
+  (0.0ms) begin transaction
42963
+  (0.0ms) commit transaction
42964
+  (0.0ms) begin transaction
42965
+  (0.0ms) rollback transaction
42966
+ -----------------------------------------------------------------------------------------------
42967
+ MaestranoGroupViaTest: test_: instance methods maestrano? should return false if uid is blank.
42968
+ -----------------------------------------------------------------------------------------------
42969
+  (0.0ms) begin transaction
42970
+  (0.0ms) commit transaction
42971
+  (0.0ms) begin transaction
42972
+  (0.0ms) rollback transaction
42973
+ ------------------------------------------------------------------------------------------------------------------------
42974
+ MaestranoGroupViaTest: test_: instance methods maestrano? should return true if provider is maestrano and uid not null.
42975
+ ------------------------------------------------------------------------------------------------------------------------
42976
+  (0.0ms) begin transaction
42977
+  (0.0ms) commit transaction
42978
+  (0.0ms) begin transaction
42979
+  (0.0ms) rollback transaction
42980
+ -------------------------------------------------------------------
42981
+ MetadataControllerTest: test_: authenticated should be successful.
42982
+ -------------------------------------------------------------------
42983
+  (0.0ms) begin transaction
42984
+  (0.0ms) commit transaction
42985
+  (0.0ms) begin transaction
42986
+ Processing by Maestrano::Rails::MetadataController#index as HTML
42987
+ Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)
42988
+  (0.0ms) rollback transaction
42989
+ -------------------------------------------------------------------
42990
+ MetadataControllerTest: test_: unauthenticated should deny access.
42991
+ -------------------------------------------------------------------
42992
+  (0.0ms) begin transaction
42993
+  (0.0ms) commit transaction
42994
+  (0.0ms) begin transaction
42995
+ Processing by Maestrano::Rails::MetadataController#index as HTML
42996
+ Filter chain halted as :authenticate_maestrano! rendered or redirected
42997
+ Completed 401 Unauthorized in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
42998
+  (0.0ms) rollback transaction
42999
+ ------------------------------
43000
+ MaestranoRailsTest: test_truth
43001
+ ------------------------------
43002
+  (0.0ms) begin transaction
43003
+  (0.0ms) commit transaction
43004
+  (0.0ms) begin transaction
43005
+  (0.0ms) rollback transaction
43006
+ --------------------------------------------------------------------------------------------------------------------------------------
43007
+ MaestranoUserViaTest: test_: class methods find_or_create_for_maestrano class method should create a monster using the mapping block.
43008
+ --------------------------------------------------------------------------------------------------------------------------------------
43009
+  (0.0ms) begin transaction
43010
+  (0.0ms) commit transaction
43011
+  (0.0ms) begin transaction
43012
+ 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"]]
43013
+  (0.0ms) SAVEPOINT active_record_1
43014
+ 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-10-18 20:55:52.494504"], ["updated_at", "2016-10-18 20:55:52.494504"]]
43015
+  (0.0ms) RELEASE SAVEPOINT active_record_1
43016
+  (0.1ms) rollback transaction
43017
+ --------------------------------------------------------------------------------------------------------------------------------------------------------
43018
+ MaestranoUserViaTest: test_: class methods find_or_create_for_maestrano class method should not return a MnoMonster from another provider if it exists.
43019
+ --------------------------------------------------------------------------------------------------------------------------------------------------------
43020
+  (0.0ms) begin transaction
43021
+  (0.0ms) commit transaction
43022
+  (0.0ms) begin transaction
43023
+  (0.0ms) SAVEPOINT active_record_1
43024
+ 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-10-18 20:55:52.496410"], ["updated_at", "2016-10-18 20:55:52.496410"]]
43025
+  (0.0ms) RELEASE SAVEPOINT active_record_1
43026
+ 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"]]
43027
+  (0.0ms) SAVEPOINT active_record_1
43028
+ 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-10-18 20:55:52.497748"], ["updated_at", "2016-10-18 20:55:52.497748"]]
43029
+  (0.0ms) RELEASE SAVEPOINT active_record_1
43030
+  (0.1ms) rollback transaction
43031
+ --------------------------------------------------------------------------------------------------------------------------------
43032
+ MaestranoUserViaTest: test_: class methods find_or_create_for_maestrano class method should return the MnoMonster if it exists.
43033
+ --------------------------------------------------------------------------------------------------------------------------------
43034
+  (0.0ms) begin transaction
43035
+  (0.0ms) commit transaction
43036
+  (0.0ms) begin transaction
43037
+  (0.0ms) SAVEPOINT active_record_1
43038
+ 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-10-18 20:55:52.499254"], ["updated_at", "2016-10-18 20:55:52.499254"]]
43039
+  (0.0ms) RELEASE SAVEPOINT active_record_1
43040
+ 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"]]
43041
+  (0.1ms) rollback transaction
43042
+ ---------------------------------------------------------------------------------------------------
43043
+ MaestranoUserViaTest: test_: class methods maestrano_*_via should have the right field definition.
43044
+ ---------------------------------------------------------------------------------------------------
43045
+  (0.0ms) begin transaction
43046
+  (0.0ms) commit transaction
43047
+  (0.0ms) begin transaction
43048
+  (0.0ms) rollback transaction
43049
+ ------------------------------------------------------------------------------------------------------------
43050
+ MaestranoUserViaTest: test_: instance methods maestrano? should return false if provider is something else.
43051
+ ------------------------------------------------------------------------------------------------------------
43052
+  (0.0ms) begin transaction
43053
+  (0.0ms) commit transaction
43054
+  (0.0ms) begin transaction
43055
+  (0.0ms) rollback transaction
43056
+ ----------------------------------------------------------------------------------------------
43057
+ MaestranoUserViaTest: test_: instance methods maestrano? should return false if uid is blank.
43058
+ ----------------------------------------------------------------------------------------------
43059
+  (0.0ms) begin transaction
43060
+  (0.0ms) commit transaction
43061
+  (0.0ms) begin transaction
43062
+  (0.0ms) rollback transaction
43063
+ -----------------------------------------------------------------------------------------------------------------------
43064
+ MaestranoUserViaTest: test_: instance methods maestrano? should return true if provider is maestrano and uid not null.
43065
+ -----------------------------------------------------------------------------------------------------------------------
43066
+  (0.0ms) begin transaction
43067
+  (0.0ms) commit transaction
43068
+  (0.0ms) begin transaction
43069
+  (0.0ms) rollback transaction
43070
+ ---------------------------------------------------------------------------------------
43071
+ InstallGeneratorTest: test_: InstallGenerator should create the maestrano initializer.
43072
+ ---------------------------------------------------------------------------------------
43073
+  (0.0ms) begin transaction
43074
+  (0.0ms) commit transaction
43075
+  (0.0ms) begin transaction
43076
+  (0.0ms) rollback transaction
43077
+ ----------------------------------------------------------------------------------
43078
+ InstallGeneratorTest: test_: InstallGenerator should create the maestrano routes.
43079
+ ----------------------------------------------------------------------------------
43080
+  (0.0ms) begin transaction
43081
+  (0.0ms) commit transaction
43082
+  (0.0ms) begin transaction
43083
+  (0.0ms) rollback transaction
43084
+ ----------------------------------------------------------------------------------------------------------
43085
+ InstallGeneratorTest: test_: InstallGenerator should create the maestrano/account/group_users_controller.
43086
+ ----------------------------------------------------------------------------------------------------------
43087
+  (0.1ms) begin transaction
43088
+  (0.0ms) commit transaction
43089
+  (0.1ms) begin transaction
43090
+  (0.1ms) rollback transaction
43091
+ -----------------------------------------------------------------------------------------------------
43092
+ InstallGeneratorTest: test_: InstallGenerator should create the maestrano/account/groups_controller.
43093
+ -----------------------------------------------------------------------------------------------------
43094
+  (0.1ms) begin transaction
43095
+  (0.0ms) commit transaction
43096
+  (0.0ms) begin transaction
43097
+  (0.0ms) rollback transaction
43098
+ ------------------------------------------------------------------------------------------------
43099
+ InstallGeneratorTest: test_: InstallGenerator should create the maestrano/auth/saml_controller.
43100
+ ------------------------------------------------------------------------------------------------
43101
+  (0.0ms) begin transaction
43102
+  (0.0ms) commit transaction
43103
+  (0.0ms) begin transaction
43104
+  (0.0ms) rollback transaction
43105
+ --------------------------------------------------------------------------------------------------------
43106
+ UserGeneratorTest: test_: UserGenerator should call the active_record migration generator successfully.
43107
+ --------------------------------------------------------------------------------------------------------
43108
+  (0.0ms) begin transaction
43109
+  (0.0ms) commit transaction
43110
+  (0.0ms) begin transaction
43111
+  (0.0ms) rollback transaction
43112
+ --------------------------------------------------------------------------------------------------
43113
+ UserGeneratorTest: test_: UserGenerator should call the mongoid migration generator successfully.
43114
+ --------------------------------------------------------------------------------------------------
43115
+  (0.0ms) begin transaction
43116
+  (0.0ms) commit transaction
43117
+  (0.0ms) begin transaction
43118
+  (0.1ms) rollback transaction
43119
+ ---------------------------------------------------------------------------------------------------------------------
43120
+ GenericControllerTest: test_: with a maestrano session should be successful if the maestrano session is still valid.
43121
+ ---------------------------------------------------------------------------------------------------------------------
43122
+  (0.1ms) begin transaction
43123
+  (0.0ms) commit transaction
43124
+  (0.0ms) begin transaction
43125
+ Processing by PagesController#home as HTML
43126
+ Rendered pages/home.html.erb within layouts/application (0.8ms)
43127
+ Completed 200 OK in 105ms (Views: 103.9ms | ActiveRecord: 0.0ms)
43128
+  (0.1ms) rollback transaction
43129
+ --------------------------------------------------------------------------------------------------------------------
43130
+ GenericControllerTest: test_: with a maestrano session should initialize redirect to SSO initialization if invalid.
43131
+ --------------------------------------------------------------------------------------------------------------------
43132
+  (0.0ms) begin transaction
43133
+  (0.0ms) commit transaction
43134
+  (0.0ms) begin transaction
43135
+ Processing by PagesController#home as HTML
43136
+ Redirected to http://localhost::3000/maestrano/auth/saml/init
43137
+ Filter chain halted as :verify_maestrano_session rendered or redirected
43138
+ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
43139
+  (0.0ms) rollback transaction
43140
+ -----------------------------------------------------------------------------------------------------------
43141
+ GenericControllerTest: test_: with a maestrano session should not redirect to SSO init if sso is disabled.
43142
+ -----------------------------------------------------------------------------------------------------------
43143
+  (0.0ms) begin transaction
43144
+  (0.0ms) commit transaction
43145
+  (0.0ms) begin transaction
43146
+ Processing by PagesController#home as HTML
43147
+ Rendered pages/home.html.erb within layouts/application (0.0ms)
43148
+ Completed 200 OK in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)
43149
+  (0.0ms) rollback transaction
43150
+ ------------------------------------------------------------------------------
43151
+ GenericControllerTest: test_: with no maestrano session should be successful.
43152
+ ------------------------------------------------------------------------------
43153
+  (0.0ms) begin transaction
43154
+  (0.0ms) commit transaction
43155
+  (0.0ms) begin transaction
43156
+ Processing by PagesController#home as HTML
43157
+ Rendered pages/home.html.erb within layouts/application (0.0ms)
43158
+ Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms)
43159
+  (0.0ms) rollback transaction
43160
+ -----------------------------------------------------------------
43161
+ GroupsControllerTest: test_: authenticated should be successful.
43162
+ -----------------------------------------------------------------
43163
+  (0.0ms) begin transaction
43164
+  (0.0ms) commit transaction
43165
+  (0.0ms) begin transaction
43166
+ Processing by Maestrano::Account::GroupsController#destroy as HTML
43167
+ Parameters: {"id"=>"cld-1"}
43168
+ Rendered text template (0.0ms)
43169
+ Completed 200 OK in 2ms (Views: 1.8ms | ActiveRecord: 0.0ms)
43170
+  (0.0ms) rollback transaction
43171
+ -----------------------------------------------------------------
43172
+ GroupsControllerTest: test_: unauthenticated should deny access.
43173
+ -----------------------------------------------------------------
43174
+  (0.0ms) begin transaction
43175
+  (0.0ms) commit transaction
43176
+  (0.0ms) begin transaction
43177
+ Processing by Maestrano::Account::GroupsController#destroy as HTML
43178
+ Parameters: {"id"=>"cld-1"}
43179
+ Filter chain halted as :authenticate_maestrano! rendered or redirected
43180
+ Completed 401 Unauthorized in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
43181
+  (0.0ms) rollback transaction
43182
+ -------------------------------------------------------------------------------------------
43183
+ ActiveRecordGroupGeneratorTest: test_: namespaced model should create the right migration.
43184
+ -------------------------------------------------------------------------------------------
43185
+  (0.1ms) begin transaction
43186
+  (0.0ms) commit transaction
43187
+  (0.0ms) begin transaction
43188
+  (0.0ms) rollback transaction
43189
+ ---------------------------------------------------------------------------------------
43190
+ ActiveRecordGroupGeneratorTest: test_: namespaced model should edit the model content.
43191
+ ---------------------------------------------------------------------------------------
43192
+  (0.0ms) begin transaction
43193
+  (0.0ms) commit transaction
43194
+  (0.0ms) begin transaction
43195
+  (0.0ms) rollback transaction
43196
+ ---------------------------------------------------------------------------------------
43197
+ ActiveRecordGroupGeneratorTest: test_: normal model should create the right migration.
43198
+ ---------------------------------------------------------------------------------------
43199
+  (0.0ms) begin transaction
43200
+  (0.0ms) commit transaction
43201
+  (0.0ms) begin transaction
43202
+  (0.0ms) rollback transaction
43203
+ -----------------------------------------------------------------------------------
43204
+ ActiveRecordGroupGeneratorTest: test_: normal model should edit the model content.
43205
+ -----------------------------------------------------------------------------------
43206
+  (0.0ms) begin transaction
43207
+  (0.0ms) commit transaction
43208
+  (0.0ms) begin transaction
43209
+  (0.1ms) rollback transaction
43210
+ ---------------------------------------------------------------------------------------------------------------------------
43211
+ ActiveRecordGroupGeneratorTest: test_: normal model should include parameters if rails 3 and strong_parameter not present.
43212
+ ---------------------------------------------------------------------------------------------------------------------------
43213
+  (0.0ms) begin transaction
43214
+  (0.0ms) commit transaction
43215
+  (0.0ms) begin transaction
43216
+  (0.1ms) rollback transaction
43217
+ ---------------------------------------------------------------------------------------------------------------------------
43218
+ ActiveRecordGroupGeneratorTest: test_: normal model should not include parameters if rails 3 and strong_parameter present.
43219
+ ---------------------------------------------------------------------------------------------------------------------------
43220
+  (0.1ms) begin transaction
43221
+  (0.0ms) commit transaction
43222
+  (0.0ms) begin transaction
43223
+  (0.1ms) rollback transaction
43224
+ ----------------------------------------------------------------------------------------------
43225
+ ActiveRecordGroupGeneratorTest: test_: normal model should not include parameters in rails 4.
43226
+ ----------------------------------------------------------------------------------------------
43227
+  (0.0ms) begin transaction
43228
+  (0.1ms) commit transaction
43229
+  (0.0ms) begin transaction
43230
+  (0.0ms) rollback transaction
43231
+ ----------------------------------------------------------------------------------------------
43232
+ SamlBaseControllerTest: test_: consume phase error should redirect to maestrano on any error.
43233
+ ----------------------------------------------------------------------------------------------
43234
+  (0.0ms) begin transaction
43235
+  (0.0ms) commit transaction
43236
+  (0.0ms) begin transaction
43237
+ Processing by Maestrano::Auth::SamlController#consume as HTML
43238
+ Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"}
43239
+ Cannot validate SAML response: Bla
43240
+ Trace: ["/home/bruno/.rvm/gems/ruby-2.3.1/gems/mocha-1.2.1/lib/mocha/exception_raiser.rb:12:in `evaluate'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/mocha-1.2.1/lib/mocha/return_values.rb:20:in `next'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/mocha-1.2.1/lib/mocha/expectation.rb:569:in `invoke'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/mocha-1.2.1/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.1/lib/minitest/test.rb:107:in `block (3 levels) in run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.1/lib/minitest/test.rb:204:in `capture_exceptions'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.1/lib/minitest/test.rb:104:in `block (2 levels) in run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.1/lib/minitest/test.rb:255:in `time_it'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.1/lib/minitest/test.rb:103:in `block in run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.1/lib/minitest.rb:348:in `on_signal'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.1/lib/minitest/test.rb:275:in `with_info_handler'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.1/lib/minitest/test.rb:102:in `run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.1/lib/minitest.rb:799:in `run_one_method'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.1/lib/minitest.rb:322:in `run_one_method'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.1/lib/minitest.rb:310:in `block (2 levels) in run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.1/lib/minitest.rb:309:in `each'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.1/lib/minitest.rb:309:in `block in run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.1/lib/minitest.rb:348:in `on_signal'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.1/lib/minitest.rb:335:in `with_info_handler'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.1/lib/minitest.rb:308:in `run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.1/lib/minitest.rb:158:in `block in __run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.1/lib/minitest.rb:158:in `map'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.1/lib/minitest.rb:158:in `__run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.1/lib/minitest.rb:135:in `run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.1/lib/minitest.rb:62:in `block in autorun'"]
43241
+ Redirected to http://api-sandbox.maestrano.io/app_access_unauthorized?err=internal
43242
+ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
43243
+  (0.0ms) rollback transaction
43244
+ --------------------------------------------------------------------------------------------------------------------
43245
+ SamlBaseControllerTest: test_: consume phase should reset the maestrano session successfully if one already exists.
43246
+ --------------------------------------------------------------------------------------------------------------------
43247
+  (0.0ms) begin transaction
43248
+  (0.0ms) commit transaction
43249
+  (0.0ms) begin transaction
43250
+ Processing by Maestrano::Auth::SamlController#consume as HTML
43251
+ Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"}
43252
+ Redirected to http://test.host/
43253
+ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
43254
+  (0.0ms) rollback transaction
43255
+ ---------------------------------------------------------------------------------
43256
+ SamlBaseControllerTest: test_: consume phase should set a saml_request in scope.
43257
+ ---------------------------------------------------------------------------------
43258
+  (0.0ms) begin transaction
43259
+  (0.0ms) commit transaction
43260
+  (0.0ms) begin transaction
43261
+ Processing by Maestrano::Auth::SamlController#consume as HTML
43262
+ Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"}
43263
+ Redirected to http://test.host/
43264
+ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
43265
+  (0.0ms) rollback transaction
43266
+ --------------------------------------------------------------------------------------
43267
+ SamlBaseControllerTest: test_: consume phase should set the group_auth_hash in scope.
43268
+ --------------------------------------------------------------------------------------
43269
+  (0.1ms) begin transaction
43270
+  (0.0ms) commit transaction
43271
+  (0.0ms) begin transaction
43272
+ Processing by Maestrano::Auth::SamlController#consume as HTML
43273
+ Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"}
43274
+ Redirected to http://test.host/
43275
+ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
43276
+  (0.0ms) rollback transaction
43277
+ -------------------------------------------------------------------------------
43278
+ SamlBaseControllerTest: test_: consume phase should set the maestrano session.
43279
+ -------------------------------------------------------------------------------
43280
+  (0.0ms) begin transaction
43281
+  (0.0ms) commit transaction
43282
+  (0.1ms) begin transaction
43283
+ Processing by Maestrano::Auth::SamlController#consume as HTML
43284
+ Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"}
43285
+ Redirected to http://test.host/
43286
+ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
43287
+  (0.0ms) rollback transaction
43288
+ -------------------------------------------------------------------------------------
43289
+ SamlBaseControllerTest: test_: consume phase should set the user_auth_hash in scope.
43290
+ -------------------------------------------------------------------------------------
43291
+  (0.0ms) begin transaction
43292
+  (0.0ms) commit transaction
43293
+  (0.0ms) begin transaction
43294
+ Processing by Maestrano::Auth::SamlController#consume as HTML
43295
+ Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"}
43296
+ Redirected to http://test.host/
43297
+ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
43298
+  (0.0ms) rollback transaction
43299
+ ------------------------------------------------------------------------------------------
43300
+ SamlBaseControllerTest: test_: consume phase should set the user_group_rel_hash in scope.
43301
+ ------------------------------------------------------------------------------------------
43302
+  (0.0ms) begin transaction
43303
+  (0.0ms) commit transaction
43304
+  (0.0ms) begin transaction
43305
+ Processing by Maestrano::Auth::SamlController#consume as HTML
43306
+ Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"}
43307
+ Redirected to http://test.host/
43308
+ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
43309
+  (0.0ms) rollback transaction
43310
+ ---------------------------------------------------------------------------------------------------------------------------
43311
+ SamlBaseControllerTest: test_: init phase should create a saml request successfully if a maestrano session is already set.
43312
+ ---------------------------------------------------------------------------------------------------------------------------
43313
+  (0.0ms) begin transaction
43314
+  (0.0ms) commit transaction
43315
+  (0.1ms) begin transaction
43316
+ Processing by Maestrano::Auth::SamlController#init as HTML
43317
+ Parameters: {"a_param"=>"value"}
43318
+ Redirected to http://idpprovider.com?r=request
43319
+ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
43320
+  (0.0ms) rollback transaction
43321
+ -----------------------------------------------------------------------------------------------------------------------
43322
+ SamlBaseControllerTest: test_: init phase should create a saml request using params and session and redirect the user.
43323
+ -----------------------------------------------------------------------------------------------------------------------
43324
+  (0.0ms) begin transaction
43325
+  (0.0ms) commit transaction
43326
+  (0.0ms) begin transaction
43327
+ Processing by Maestrano::Auth::SamlController#init as HTML
43328
+ Parameters: {"a_param"=>"value"}
43329
+ Redirected to http://idpprovider.com?r=request
43330
+ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
43331
+  (0.0ms) rollback transaction