ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ------------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: namespaced model should create the right migration. -------------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction --------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: namespaced model should edit the model content. ---------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should create the right migration. ---------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction ----------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should edit the model content. -----------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should include parameters if rails 3 and strong_parameter not present. ---------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should not include parameters if rails 3 and strong_parameter present. ---------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should not include parameters in rails 4. ----------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction --------------------------------------------------------------------- GroupUsersControllerTest: test_: authenticated should be successful. ---------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction Processing by Maestrano::Account::GroupUsersController#destroy as HTML Parameters: {"group_id"=>"cld-1", "id"=>"usr-1"} Filter chain halted as :authenticate_maestrano! rendered or redirected Completed 401 Unauthorized in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction --------------------------------------------------------------------- GroupUsersControllerTest: test_: unauthenticated should deny access. ---------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Account::GroupUsersController#destroy as HTML Parameters: {"group_id"=>"cld-1", "id"=>"usr-1"} Filter chain halted as :authenticate_maestrano! rendered or redirected Completed 401 Unauthorized in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------------- UserGeneratorTest: test_: UserGenerator should call the active_record migration generator successfully. --------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------- UserGeneratorTest: test_: UserGenerator should call the mongoid migration generator successfully. --------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------ ActiveRecordUserGeneratorTest: test_: namespaced model should create the right migration. ------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: namespaced model should edit the model content. --------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should create the right migration. --------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should edit the model content. ----------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should include parameters if rails 3 and strong_parameter not present. --------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should not include parameters if rails 3 and strong_parameter present. --------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should not include parameters in rails 4. ---------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------- MetadataControllerTest: test_: authenticated should be successful. -------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------- MetadataControllerTest: test_: unauthenticated should deny access. -------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------- InstallGeneratorTest: test_: InstallGenerator should create the maestrano initializer. ---------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction ---------------------------------------------------------------------------------- InstallGeneratorTest: test_: InstallGenerator should create the maestrano routes. ----------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction ---------------------------------------------------------------------------------------------------------- InstallGeneratorTest: test_: InstallGenerator should create the maestrano/account/group_users_controller. ----------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction ----------------------------------------------------------------------------------------------------- InstallGeneratorTest: test_: InstallGenerator should create the maestrano/account/groups_controller. -----------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction ------------------------------------------------------------------------------------------------ InstallGeneratorTest: test_: InstallGenerator should create the maestrano/auth/saml_controller. ------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction --------------------------------------------------------------------------------------------------------------------------------------- MaestranoGroupViaTest: test_: class methods find_or_create_for_maestrano class method should create a monster using the mapping block. ---------------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction MnoCrew Load (0.1ms) SELECT "mno_crews".* FROM "mno_crews" WHERE "mno_crews"."provider" = 'maestrano' AND "mno_crews"."uid" = 'usr-2' AND "mno_crews"."tenant" = 'default' ORDER BY "mno_crews"."id" ASC LIMIT 1 SQLite3::SQLException: no such column: mno_crews.tenant: SELECT "mno_crews".* FROM "mno_crews" WHERE "mno_crews"."provider" = 'maestrano' AND "mno_crews"."uid" = 'usr-2' AND "mno_crews"."tenant" = 'default' ORDER BY "mno_crews"."id" ASC LIMIT 1  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------------------------------------------------------------------ MaestranoGroupViaTest: test_: class methods find_or_create_for_maestrano class method should not return a MnoCrew from another provider if it exists. ------------------------------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "mno_crews" ("created_at", "name", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2016-01-20 03:09:36.658641"], ["name", "SomeOtherCrew"], ["provider", "someoneelse"], ["uid", "usr-1"], ["updated_at", "2016-01-20 03:09:36.658641"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 MnoCrew Load (0.1ms) SELECT "mno_crews".* FROM "mno_crews" WHERE "mno_crews"."provider" = 'maestrano' AND "mno_crews"."uid" = 'cld-1' AND "mno_crews"."tenant" = 'default' ORDER BY "mno_crews"."id" ASC LIMIT 1 SQLite3::SQLException: no such column: mno_crews.tenant: SELECT "mno_crews".* FROM "mno_crews" WHERE "mno_crews"."provider" = 'maestrano' AND "mno_crews"."uid" = 'cld-1' AND "mno_crews"."tenant" = 'default' ORDER BY "mno_crews"."id" ASC LIMIT 1  (0.1ms) rollback transaction ------------------------------------------------------------------------------------------------------------------------------ MaestranoGroupViaTest: test_: class methods find_or_create_for_maestrano class method should return the MnoCrew if it exists. ------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "mno_crews" ("created_at", "name", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2016-01-20 03:09:36.662069"], ["name", "SomeCrew"], ["provider", "maestrano"], ["uid", "cld-1"], ["updated_at", "2016-01-20 03:09:36.662069"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 MnoCrew Load (0.1ms) SELECT "mno_crews".* FROM "mno_crews" WHERE "mno_crews"."provider" = 'maestrano' AND "mno_crews"."uid" = 'cld-1' AND "mno_crews"."tenant" = 'default' ORDER BY "mno_crews"."id" ASC LIMIT 1 SQLite3::SQLException: no such column: mno_crews.tenant: SELECT "mno_crews".* FROM "mno_crews" WHERE "mno_crews"."provider" = 'maestrano' AND "mno_crews"."uid" = 'cld-1' AND "mno_crews"."tenant" = 'default' ORDER BY "mno_crews"."id" ASC LIMIT 1  (0.1ms) rollback transaction ---------------------------------------------------------------------------------------------------- MaestranoGroupViaTest: test_: class methods maestrano_*_via should have the right field definition. ----------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------------------------- MaestranoGroupViaTest: test_: instance methods maestrano? should return false if provider is something else. -------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ----------------------------------------------------------------------------------------------- MaestranoGroupViaTest: test_: instance methods maestrano? should return false if uid is blank. -----------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------------------------------------ MaestranoGroupViaTest: test_: instance methods maestrano? should return true if provider is maestrano and uid not null. ------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase error should redirect to maestrano on any error. ----------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Bla Redirected to http://api-sandbox.maestrano.io/app_access_unauthorized?err=internal Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should reset the maestrano session successfully if one already exists. --------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction --------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should set a saml_request in scope. ---------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.1ms) rollback transaction -------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should set the group_auth_hash in scope. --------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.1ms) rollback transaction ------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should set the maestrano session. -------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should set the user_auth_hash in scope. -------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------ SamlBaseControllerTest: test_: consume phase should set the user_group_rel_hash in scope. ------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: init phase should create a saml request successfully if a maestrano session is already set. ---------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#init as HTML Parameters: {"a_param"=>"value"} Redirected to http://idpprovider.com?r=request Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ----------------------------------------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: init phase should create a saml request using params and session and redirect the user. -----------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#init as HTML Parameters: {"a_param"=>"value"} Redirected to http://idpprovider.com?r=request Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------ MaestranoRailsTest: test_truth ------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------------------- GroupGeneratorTest: test_: GroupGenerator should call the active_record migration generator successfully. ----------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------------- GroupGeneratorTest: test_: GroupGenerator should call the mongoid migration generator successfully. ----------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: class methods find_or_create_for_maestrano class method should create a monster using the mapping block. --------------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction MnoMonster Load (0.1ms) SELECT "mno_monsters".* FROM "mno_monsters" WHERE "mno_monsters"."provider" = 'maestrano' AND "mno_monsters"."uid" = 'usr-2' AND "mno_monsters"."tenant" = 'default' ORDER BY "mno_monsters"."id" ASC LIMIT 1 SQLite3::SQLException: no such column: mno_monsters.tenant: SELECT "mno_monsters".* FROM "mno_monsters" WHERE "mno_monsters"."provider" = 'maestrano' AND "mno_monsters"."uid" = 'usr-2' AND "mno_monsters"."tenant" = 'default' ORDER BY "mno_monsters"."id" ASC LIMIT 1  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: class methods find_or_create_for_maestrano class method should not return a MnoMonster from another provider if it exists. --------------------------------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "mno_monsters" ("created_at", "email", "first_name", "last_name", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", "2016-01-20 03:09:36.712377"], ["email", "monster@co.com"], ["first_name", "John"], ["last_name", "Jack"], ["provider", "someoneelse"], ["uid", "usr-1"], ["updated_at", "2016-01-20 03:09:36.712377"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 MnoMonster Load (0.1ms) SELECT "mno_monsters".* FROM "mno_monsters" WHERE "mno_monsters"."provider" = 'maestrano' AND "mno_monsters"."uid" = 'usr-1' AND "mno_monsters"."tenant" = 'default' ORDER BY "mno_monsters"."id" ASC LIMIT 1 SQLite3::SQLException: no such column: mno_monsters.tenant: SELECT "mno_monsters".* FROM "mno_monsters" WHERE "mno_monsters"."provider" = 'maestrano' AND "mno_monsters"."uid" = 'usr-1' AND "mno_monsters"."tenant" = 'default' ORDER BY "mno_monsters"."id" ASC LIMIT 1  (0.1ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: class methods find_or_create_for_maestrano class method should return the MnoMonster if it exists. --------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "mno_monsters" ("created_at", "email", "first_name", "last_name", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", "2016-01-20 03:09:36.714315"], ["email", "monster@co.com"], ["first_name", "John"], ["last_name", "Jack"], ["provider", "maestrano"], ["uid", "usr-1"], ["updated_at", "2016-01-20 03:09:36.714315"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 MnoMonster Load (0.1ms) SELECT "mno_monsters".* FROM "mno_monsters" WHERE "mno_monsters"."provider" = 'maestrano' AND "mno_monsters"."uid" = 'usr-1' AND "mno_monsters"."tenant" = 'default' ORDER BY "mno_monsters"."id" ASC LIMIT 1 SQLite3::SQLException: no such column: mno_monsters.tenant: SELECT "mno_monsters".* FROM "mno_monsters" WHERE "mno_monsters"."provider" = 'maestrano' AND "mno_monsters"."uid" = 'usr-1' AND "mno_monsters"."tenant" = 'default' ORDER BY "mno_monsters"."id" ASC LIMIT 1  (0.1ms) rollback transaction --------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: class methods maestrano_*_via should have the right field definition. ---------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------------------------ MaestranoUserViaTest: test_: instance methods maestrano? should return false if provider is something else. ------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: instance methods maestrano? should return false if uid is blank. ----------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ----------------------------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: instance methods maestrano? should return true if provider is maestrano and uid not null. -----------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ----------------------------------------------------------------- GroupsControllerTest: test_: authenticated should be successful. -----------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Account::GroupsController#destroy as HTML Parameters: {"id"=>"cld-1"} Filter chain halted as :authenticate_maestrano! rendered or redirected Completed 401 Unauthorized in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ----------------------------------------------------------------- GroupsControllerTest: test_: unauthenticated should deny access. -----------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Account::GroupsController#destroy as HTML Parameters: {"id"=>"cld-1"} Filter chain halted as :authenticate_maestrano! rendered or redirected Completed 401 Unauthorized in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------------------------------- GenericControllerTest: test_: with a maestrano session should be successful if the maestrano session is still valid. ---------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by PagesController#home as HTML Completed 200 OK in 16ms (Views: 16.3ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction -------------------------------------------------------------------------------------------------------------------- GenericControllerTest: test_: with a maestrano session should initialize redirect to SSO initialization if invalid. --------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction Processing by PagesController#home as HTML Redirected to http://localhost::3000/maestrano/auth/saml/init Filter chain halted as :verify_maestrano_session rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ----------------------------------------------------------------------------------------------------------- GenericControllerTest: test_: with a maestrano session should not redirect to SSO init if sso is disabled. -----------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by PagesController#home as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------------------ GenericControllerTest: test_: with no maestrano session should be successful. ------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by PagesController#home as HTML Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ----------------------------------------------------------------- GroupsControllerTest: test_: authenticated should be successful. -----------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Account::GroupsController#destroy as HTML Parameters: {"id"=>"cld-1"} Filter chain halted as :authenticate_maestrano! rendered or redirected Completed 401 Unauthorized in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction ----------------------------------------------------------------- GroupsControllerTest: test_: unauthenticated should deny access. -----------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Account::GroupsController#destroy as HTML Parameters: {"id"=>"cld-1"} Filter chain halted as :authenticate_maestrano! rendered or redirected Completed 401 Unauthorized in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------------------------------- GenericControllerTest: test_: with a maestrano session should be successful if the maestrano session is still valid. ---------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by PagesController#home as HTML Completed 200 OK in 7ms (Views: 6.9ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction -------------------------------------------------------------------------------------------------------------------- GenericControllerTest: test_: with a maestrano session should initialize redirect to SSO initialization if invalid. --------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by PagesController#home as HTML Redirected to http://localhost::3000/maestrano/auth/saml/init Filter chain halted as :verify_maestrano_session rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) rollback transaction ----------------------------------------------------------------------------------------------------------- GenericControllerTest: test_: with a maestrano session should not redirect to SSO init if sso is disabled. -----------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by PagesController#home as HTML Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction ------------------------------------------------------------------------------ GenericControllerTest: test_: with no maestrano session should be successful. ------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by PagesController#home as HTML Completed 200 OK in 1ms (Views: 1.0ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: class methods find_or_create_for_maestrano class method should create a monster using the mapping block. --------------------------------------------------------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction MnoMonster Load (0.1ms) SELECT "mno_monsters".* FROM "mno_monsters" WHERE "mno_monsters"."provider" = 'maestrano' AND "mno_monsters"."uid" = 'usr-2' AND "mno_monsters"."tenant" = 'default' ORDER BY "mno_monsters"."id" ASC LIMIT 1 SQLite3::SQLException: no such column: mno_monsters.tenant: SELECT "mno_monsters".* FROM "mno_monsters" WHERE "mno_monsters"."provider" = 'maestrano' AND "mno_monsters"."uid" = 'usr-2' AND "mno_monsters"."tenant" = 'default' ORDER BY "mno_monsters"."id" ASC LIMIT 1  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: class methods find_or_create_for_maestrano class method should not return a MnoMonster from another provider if it exists. --------------------------------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "mno_monsters" ("created_at", "email", "first_name", "last_name", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", "2016-01-20 04:44:46.865385"], ["email", "monster@co.com"], ["first_name", "John"], ["last_name", "Jack"], ["provider", "someoneelse"], ["uid", "usr-1"], ["updated_at", "2016-01-20 04:44:46.865385"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 MnoMonster Load (0.1ms) SELECT "mno_monsters".* FROM "mno_monsters" WHERE "mno_monsters"."provider" = 'maestrano' AND "mno_monsters"."uid" = 'usr-1' AND "mno_monsters"."tenant" = 'default' ORDER BY "mno_monsters"."id" ASC LIMIT 1 SQLite3::SQLException: no such column: mno_monsters.tenant: SELECT "mno_monsters".* FROM "mno_monsters" WHERE "mno_monsters"."provider" = 'maestrano' AND "mno_monsters"."uid" = 'usr-1' AND "mno_monsters"."tenant" = 'default' ORDER BY "mno_monsters"."id" ASC LIMIT 1  (0.1ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: class methods find_or_create_for_maestrano class method should return the MnoMonster if it exists. --------------------------------------------------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "mno_monsters" ("created_at", "email", "first_name", "last_name", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", "2016-01-20 04:44:46.868887"], ["email", "monster@co.com"], ["first_name", "John"], ["last_name", "Jack"], ["provider", "maestrano"], ["uid", "usr-1"], ["updated_at", "2016-01-20 04:44:46.868887"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 MnoMonster Load (0.1ms) SELECT "mno_monsters".* FROM "mno_monsters" WHERE "mno_monsters"."provider" = 'maestrano' AND "mno_monsters"."uid" = 'usr-1' AND "mno_monsters"."tenant" = 'default' ORDER BY "mno_monsters"."id" ASC LIMIT 1 SQLite3::SQLException: no such column: mno_monsters.tenant: SELECT "mno_monsters".* FROM "mno_monsters" WHERE "mno_monsters"."provider" = 'maestrano' AND "mno_monsters"."uid" = 'usr-1' AND "mno_monsters"."tenant" = 'default' ORDER BY "mno_monsters"."id" ASC LIMIT 1  (0.1ms) rollback transaction --------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: class methods maestrano_*_via should have the right field definition. ---------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------------------------ MaestranoUserViaTest: test_: instance methods maestrano? should return false if provider is something else. ------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: instance methods maestrano? should return false if uid is blank. ----------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ----------------------------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: instance methods maestrano? should return true if provider is maestrano and uid not null. -----------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------ MaestranoRailsTest: test_truth ------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------------- UserGeneratorTest: test_: UserGenerator should call the active_record migration generator successfully. --------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------- UserGeneratorTest: test_: UserGenerator should call the mongoid migration generator successfully. --------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction ---------------------------------------------------------------------------------------------------------- GroupGeneratorTest: test_: GroupGenerator should call the active_record migration generator successfully. ----------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------------- GroupGeneratorTest: test_: GroupGenerator should call the mongoid migration generator successfully. ----------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------ ActiveRecordUserGeneratorTest: test_: namespaced model should create the right migration. ------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction -------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: namespaced model should edit the model content. --------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should create the right migration. --------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should edit the model content. ----------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should include parameters if rails 3 and strong_parameter not present. --------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should not include parameters if rails 3 and strong_parameter present. --------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should not include parameters in rails 4. ---------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------- InstallGeneratorTest: test_: InstallGenerator should create the maestrano initializer. ---------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction ---------------------------------------------------------------------------------- InstallGeneratorTest: test_: InstallGenerator should create the maestrano routes. ----------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction ---------------------------------------------------------------------------------------------------------- InstallGeneratorTest: test_: InstallGenerator should create the maestrano/account/group_users_controller. ----------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction ----------------------------------------------------------------------------------------------------- InstallGeneratorTest: test_: InstallGenerator should create the maestrano/account/groups_controller. -----------------------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction ------------------------------------------------------------------------------------------------ InstallGeneratorTest: test_: InstallGenerator should create the maestrano/auth/saml_controller. ------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction ---------------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase error should redirect to maestrano on any error. ----------------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Bla Redirected to http://api-sandbox.maestrano.io/app_access_unauthorized?err=internal Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) rollback transaction -------------------------------------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should reset the maestrano session successfully if one already exists. --------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.0ms)  (0.1ms) rollback transaction --------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should set a saml_request in scope. ---------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction -------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should set the group_auth_hash in scope. --------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should set the maestrano session. -------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) rollback transaction ------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should set the user_auth_hash in scope. -------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------ SamlBaseControllerTest: test_: consume phase should set the user_group_rel_hash in scope. ------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) rollback transaction --------------------------------------------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: init phase should create a saml request successfully if a maestrano session is already set. ---------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#init as HTML Parameters: {"a_param"=>"value"} Redirected to http://idpprovider.com?r=request Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ----------------------------------------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: init phase should create a saml request using params and session and redirect the user. -----------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#init as HTML Parameters: {"a_param"=>"value"} Redirected to http://idpprovider.com?r=request Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: namespaced model should create the right migration. -------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: namespaced model should edit the model content. ---------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should create the right migration. ---------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction ----------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should edit the model content. -----------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should include parameters if rails 3 and strong_parameter not present. ---------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should not include parameters if rails 3 and strong_parameter present. ---------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should not include parameters in rails 4. ----------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------- GroupUsersControllerTest: test_: authenticated should be successful. ---------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Account::GroupUsersController#destroy as HTML Parameters: {"group_id"=>"cld-1", "id"=>"usr-1"} Filter chain halted as :authenticate_maestrano! rendered or redirected Completed 401 Unauthorized in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction --------------------------------------------------------------------- GroupUsersControllerTest: test_: unauthenticated should deny access. ---------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Account::GroupUsersController#destroy as HTML Parameters: {"group_id"=>"cld-1", "id"=>"usr-1"} Filter chain halted as :authenticate_maestrano! rendered or redirected Completed 401 Unauthorized in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------------------------------------------------- MaestranoGroupViaTest: test_: class methods find_or_create_for_maestrano class method should create a monster using the mapping block. ---------------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction MnoCrew Load (0.1ms) SELECT "mno_crews".* FROM "mno_crews" WHERE "mno_crews"."provider" = 'maestrano' AND "mno_crews"."uid" = 'usr-2' AND "mno_crews"."tenant" = 'default' ORDER BY "mno_crews"."id" ASC LIMIT 1 SQLite3::SQLException: no such column: mno_crews.tenant: SELECT "mno_crews".* FROM "mno_crews" WHERE "mno_crews"."provider" = 'maestrano' AND "mno_crews"."uid" = 'usr-2' AND "mno_crews"."tenant" = 'default' ORDER BY "mno_crews"."id" ASC LIMIT 1  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------------------------------------------------------------------ MaestranoGroupViaTest: test_: class methods find_or_create_for_maestrano class method should not return a MnoCrew from another provider if it exists. ------------------------------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "mno_crews" ("created_at", "name", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2016-01-20 04:44:47.154433"], ["name", "SomeOtherCrew"], ["provider", "someoneelse"], ["uid", "usr-1"], ["updated_at", "2016-01-20 04:44:47.154433"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 MnoCrew Load (0.1ms) SELECT "mno_crews".* FROM "mno_crews" WHERE "mno_crews"."provider" = 'maestrano' AND "mno_crews"."uid" = 'cld-1' AND "mno_crews"."tenant" = 'default' ORDER BY "mno_crews"."id" ASC LIMIT 1 SQLite3::SQLException: no such column: mno_crews.tenant: SELECT "mno_crews".* FROM "mno_crews" WHERE "mno_crews"."provider" = 'maestrano' AND "mno_crews"."uid" = 'cld-1' AND "mno_crews"."tenant" = 'default' ORDER BY "mno_crews"."id" ASC LIMIT 1  (0.1ms) rollback transaction ------------------------------------------------------------------------------------------------------------------------------ MaestranoGroupViaTest: test_: class methods find_or_create_for_maestrano class method should return the MnoCrew if it exists. ------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "mno_crews" ("created_at", "name", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2016-01-20 04:44:47.156707"], ["name", "SomeCrew"], ["provider", "maestrano"], ["uid", "cld-1"], ["updated_at", "2016-01-20 04:44:47.156707"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 MnoCrew Load (0.1ms) SELECT "mno_crews".* FROM "mno_crews" WHERE "mno_crews"."provider" = 'maestrano' AND "mno_crews"."uid" = 'cld-1' AND "mno_crews"."tenant" = 'default' ORDER BY "mno_crews"."id" ASC LIMIT 1 SQLite3::SQLException: no such column: mno_crews.tenant: SELECT "mno_crews".* FROM "mno_crews" WHERE "mno_crews"."provider" = 'maestrano' AND "mno_crews"."uid" = 'cld-1' AND "mno_crews"."tenant" = 'default' ORDER BY "mno_crews"."id" ASC LIMIT 1  (0.1ms) rollback transaction ---------------------------------------------------------------------------------------------------- MaestranoGroupViaTest: test_: class methods maestrano_*_via should have the right field definition. ----------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------------------------- MaestranoGroupViaTest: test_: instance methods maestrano? should return false if provider is something else. -------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ----------------------------------------------------------------------------------------------- MaestranoGroupViaTest: test_: instance methods maestrano? should return false if uid is blank. -----------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------------------------------------ MaestranoGroupViaTest: test_: instance methods maestrano? should return true if provider is maestrano and uid not null. ------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------- MetadataControllerTest: test_: authenticated should be successful. -------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------- MetadataControllerTest: test_: unauthenticated should deny access. -------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" -------------------------------------------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: class methods find_or_create_for_maestrano class method should create a monster using the mapping block. --------------------------------------------------------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction MnoMonster Load (4.8ms) SELECT "mno_monsters".* FROM "mno_monsters" WHERE "mno_monsters"."provider" = 'maestrano' AND "mno_monsters"."uid" = 'usr-2' AND "mno_monsters"."tenant" = 'default' ORDER BY "mno_monsters"."id" ASC LIMIT 1 SQLite3::SQLException: no such column: mno_monsters.tenant: SELECT "mno_monsters".* FROM "mno_monsters" WHERE "mno_monsters"."provider" = 'maestrano' AND "mno_monsters"."uid" = 'usr-2' AND "mno_monsters"."tenant" = 'default' ORDER BY "mno_monsters"."id" ASC LIMIT 1  (0.1ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: class methods find_or_create_for_maestrano class method should not return a MnoMonster from another provider if it exists. --------------------------------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "mno_monsters" ("created_at", "email", "first_name", "last_name", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", "2016-01-20 04:49:04.181083"], ["email", "monster@co.com"], ["first_name", "John"], ["last_name", "Jack"], ["provider", "someoneelse"], ["uid", "usr-1"], ["updated_at", "2016-01-20 04:49:04.181083"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 MnoMonster Load (0.1ms) SELECT "mno_monsters".* FROM "mno_monsters" WHERE "mno_monsters"."provider" = 'maestrano' AND "mno_monsters"."uid" = 'usr-1' AND "mno_monsters"."tenant" = 'default' ORDER BY "mno_monsters"."id" ASC LIMIT 1 SQLite3::SQLException: no such column: mno_monsters.tenant: SELECT "mno_monsters".* FROM "mno_monsters" WHERE "mno_monsters"."provider" = 'maestrano' AND "mno_monsters"."uid" = 'usr-1' AND "mno_monsters"."tenant" = 'default' ORDER BY "mno_monsters"."id" ASC LIMIT 1  (0.1ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: class methods find_or_create_for_maestrano class method should return the MnoMonster if it exists. --------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "mno_monsters" ("created_at", "email", "first_name", "last_name", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", "2016-01-20 04:49:04.186064"], ["email", "monster@co.com"], ["first_name", "John"], ["last_name", "Jack"], ["provider", "maestrano"], ["uid", "usr-1"], ["updated_at", "2016-01-20 04:49:04.186064"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 MnoMonster Load (0.1ms) SELECT "mno_monsters".* FROM "mno_monsters" WHERE "mno_monsters"."provider" = 'maestrano' AND "mno_monsters"."uid" = 'usr-1' AND "mno_monsters"."tenant" = 'default' ORDER BY "mno_monsters"."id" ASC LIMIT 1 SQLite3::SQLException: no such column: mno_monsters.tenant: SELECT "mno_monsters".* FROM "mno_monsters" WHERE "mno_monsters"."provider" = 'maestrano' AND "mno_monsters"."uid" = 'usr-1' AND "mno_monsters"."tenant" = 'default' ORDER BY "mno_monsters"."id" ASC LIMIT 1  (0.1ms) rollback transaction --------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: class methods maestrano_*_via should have the right field definition. ---------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------------------------ MaestranoUserViaTest: test_: instance methods maestrano? should return false if provider is something else. ------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: instance methods maestrano? should return false if uid is blank. ----------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ----------------------------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: instance methods maestrano? should return true if provider is maestrano and uid not null. -----------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------------------- GroupGeneratorTest: test_: GroupGenerator should call the active_record migration generator successfully. ----------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction ---------------------------------------------------------------------------------------------------- GroupGeneratorTest: test_: GroupGenerator should call the mongoid migration generator successfully. ----------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction ------------------------------------------------------------------- MetadataControllerTest: test_: authenticated should be successful. -------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------- MetadataControllerTest: test_: unauthenticated should deny access. -------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction ------------------------------------------------------------------------------------------ ActiveRecordUserGeneratorTest: test_: namespaced model should create the right migration. ------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: namespaced model should edit the model content. --------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should create the right migration. --------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should edit the model content. ----------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should include parameters if rails 3 and strong_parameter not present. --------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should not include parameters if rails 3 and strong_parameter present. --------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should not include parameters in rails 4. ---------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: namespaced model should create the right migration. -------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: namespaced model should edit the model content. ---------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should create the right migration. ---------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ----------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should edit the model content. -----------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should include parameters if rails 3 and strong_parameter not present. ---------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should not include parameters if rails 3 and strong_parameter present. ---------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should not include parameters in rails 4. ----------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------- InstallGeneratorTest: test_: InstallGenerator should create the maestrano initializer. ---------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction ---------------------------------------------------------------------------------- InstallGeneratorTest: test_: InstallGenerator should create the maestrano routes. ----------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction ---------------------------------------------------------------------------------------------------------- InstallGeneratorTest: test_: InstallGenerator should create the maestrano/account/group_users_controller. ----------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction ----------------------------------------------------------------------------------------------------- InstallGeneratorTest: test_: InstallGenerator should create the maestrano/account/groups_controller. -----------------------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction ------------------------------------------------------------------------------------------------ InstallGeneratorTest: test_: InstallGenerator should create the maestrano/auth/saml_controller. ------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction -------------------------------------------------------------------------------------------------------- UserGeneratorTest: test_: UserGenerator should call the active_record migration generator successfully. --------------------------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------- UserGeneratorTest: test_: UserGenerator should call the mongoid migration generator successfully. --------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.2ms) rollback transaction --------------------------------------------------------------------- GroupUsersControllerTest: test_: authenticated should be successful. ---------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction Processing by Maestrano::Account::GroupUsersController#destroy as HTML Parameters: {"group_id"=>"cld-1", "id"=>"usr-1"} Filter chain halted as :authenticate_maestrano! rendered or redirected Completed 401 Unauthorized in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction --------------------------------------------------------------------- GroupUsersControllerTest: test_: unauthenticated should deny access. ---------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Account::GroupUsersController#destroy as HTML Parameters: {"group_id"=>"cld-1", "id"=>"usr-1"} Filter chain halted as :authenticate_maestrano! rendered or redirected Completed 401 Unauthorized in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------------------------------- GenericControllerTest: test_: with a maestrano session should be successful if the maestrano session is still valid. ---------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by PagesController#home as HTML Completed 200 OK in 8ms (Views: 7.3ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction -------------------------------------------------------------------------------------------------------------------- GenericControllerTest: test_: with a maestrano session should initialize redirect to SSO initialization if invalid. --------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by PagesController#home as HTML Redirected to http://localhost::3000/maestrano/auth/saml/init Filter chain halted as :verify_maestrano_session rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ----------------------------------------------------------------------------------------------------------- GenericControllerTest: test_: with a maestrano session should not redirect to SSO init if sso is disabled. -----------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by PagesController#home as HTML Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction ------------------------------------------------------------------------------ GenericControllerTest: test_: with no maestrano session should be successful. ------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction Processing by PagesController#home as HTML Completed 200 OK in 1ms (Views: 0.9ms | ActiveRecord: 0.0ms)  (0.2ms) rollback transaction ------------------------------ MaestranoRailsTest: test_truth ------------------------------  (0.2ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction ----------------------------------------------------------------- GroupsControllerTest: test_: authenticated should be successful. -----------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Account::GroupsController#destroy as HTML Parameters: {"id"=>"cld-1"} Filter chain halted as :authenticate_maestrano! rendered or redirected Completed 401 Unauthorized in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ----------------------------------------------------------------- GroupsControllerTest: test_: unauthenticated should deny access. -----------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Account::GroupsController#destroy as HTML Parameters: {"id"=>"cld-1"} Filter chain halted as :authenticate_maestrano! rendered or redirected Completed 401 Unauthorized in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------------------------------------------------- MaestranoGroupViaTest: test_: class methods find_or_create_for_maestrano class method should create a monster using the mapping block. ---------------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction MnoCrew Load (0.1ms) SELECT "mno_crews".* FROM "mno_crews" WHERE "mno_crews"."provider" = 'maestrano' AND "mno_crews"."uid" = 'usr-2' AND "mno_crews"."tenant" = 'default' ORDER BY "mno_crews"."id" ASC LIMIT 1 SQLite3::SQLException: no such column: mno_crews.tenant: SELECT "mno_crews".* FROM "mno_crews" WHERE "mno_crews"."provider" = 'maestrano' AND "mno_crews"."uid" = 'usr-2' AND "mno_crews"."tenant" = 'default' ORDER BY "mno_crews"."id" ASC LIMIT 1  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------------------------------------------------------------------ MaestranoGroupViaTest: test_: class methods find_or_create_for_maestrano class method should not return a MnoCrew from another provider if it exists. ------------------------------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "mno_crews" ("created_at", "name", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2016-01-20 04:49:04.460750"], ["name", "SomeOtherCrew"], ["provider", "someoneelse"], ["uid", "usr-1"], ["updated_at", "2016-01-20 04:49:04.460750"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 MnoCrew Load (0.1ms) SELECT "mno_crews".* FROM "mno_crews" WHERE "mno_crews"."provider" = 'maestrano' AND "mno_crews"."uid" = 'cld-1' AND "mno_crews"."tenant" = 'default' ORDER BY "mno_crews"."id" ASC LIMIT 1 SQLite3::SQLException: no such column: mno_crews.tenant: SELECT "mno_crews".* FROM "mno_crews" WHERE "mno_crews"."provider" = 'maestrano' AND "mno_crews"."uid" = 'cld-1' AND "mno_crews"."tenant" = 'default' ORDER BY "mno_crews"."id" ASC LIMIT 1  (0.1ms) rollback transaction ------------------------------------------------------------------------------------------------------------------------------ MaestranoGroupViaTest: test_: class methods find_or_create_for_maestrano class method should return the MnoCrew if it exists. ------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "mno_crews" ("created_at", "name", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2016-01-20 04:49:04.462973"], ["name", "SomeCrew"], ["provider", "maestrano"], ["uid", "cld-1"], ["updated_at", "2016-01-20 04:49:04.462973"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 MnoCrew Load (0.1ms) SELECT "mno_crews".* FROM "mno_crews" WHERE "mno_crews"."provider" = 'maestrano' AND "mno_crews"."uid" = 'cld-1' AND "mno_crews"."tenant" = 'default' ORDER BY "mno_crews"."id" ASC LIMIT 1 SQLite3::SQLException: no such column: mno_crews.tenant: SELECT "mno_crews".* FROM "mno_crews" WHERE "mno_crews"."provider" = 'maestrano' AND "mno_crews"."uid" = 'cld-1' AND "mno_crews"."tenant" = 'default' ORDER BY "mno_crews"."id" ASC LIMIT 1  (0.1ms) rollback transaction ---------------------------------------------------------------------------------------------------- MaestranoGroupViaTest: test_: class methods maestrano_*_via should have the right field definition. ----------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------------------------- MaestranoGroupViaTest: test_: instance methods maestrano? should return false if provider is something else. -------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ----------------------------------------------------------------------------------------------- MaestranoGroupViaTest: test_: instance methods maestrano? should return false if uid is blank. -----------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------------------------------------ MaestranoGroupViaTest: test_: instance methods maestrano? should return true if provider is maestrano and uid not null. ------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase error should redirect to maestrano on any error. ----------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Bla Redirected to http://api-sandbox.maestrano.io/app_access_unauthorized?err=internal Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should reset the maestrano session successfully if one already exists. --------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.1ms) rollback transaction --------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should set a saml_request in scope. ---------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.1ms) rollback transaction -------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should set the group_auth_hash in scope. --------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.1ms) rollback transaction ------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should set the maestrano session. -------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should set the user_auth_hash in scope. -------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------ SamlBaseControllerTest: test_: consume phase should set the user_group_rel_hash in scope. ------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: init phase should create a saml request successfully if a maestrano session is already set. ---------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#init as HTML Parameters: {"a_param"=>"value"} Redirected to http://idpprovider.com?r=request Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ----------------------------------------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: init phase should create a saml request using params and session and redirect the user. -----------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#init as HTML Parameters: {"a_param"=>"value"} Redirected to http://idpprovider.com?r=request Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------------- UserGeneratorTest: test_: UserGenerator should call the active_record migration generator successfully. --------------------------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.4ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction -------------------------------------------------------------------------------------------------- UserGeneratorTest: test_: UserGenerator should call the mongoid migration generator successfully. --------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction ------------------------------------------------------------------- MetadataControllerTest: test_: authenticated should be successful. -------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.3ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------- MetadataControllerTest: test_: unauthenticated should deny access. -------------------------------------------------------------------  (0.3ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------------------------------------------------- MaestranoGroupViaTest: test_: class methods find_or_create_for_maestrano class method should create a monster using the mapping block. ---------------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------------------------------------------------------------------ MaestranoGroupViaTest: test_: class methods find_or_create_for_maestrano class method should not return a MnoCrew from another provider if it exists. ------------------------------------------------------------------------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------------------------------------------ MaestranoGroupViaTest: test_: class methods find_or_create_for_maestrano class method should return the MnoCrew if it exists. ------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.4ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction ---------------------------------------------------------------------------------------------------- MaestranoGroupViaTest: test_: class methods maestrano_*_via should have the right field definition. ----------------------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------------------------- MaestranoGroupViaTest: test_: instance methods maestrano? should return false if provider is something else. -------------------------------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ----------------------------------------------------------------------------------------------- MaestranoGroupViaTest: test_: instance methods maestrano? should return false if uid is blank. -----------------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------------------------------------ MaestranoGroupViaTest: test_: instance methods maestrano? should return true if provider is maestrano and uid not null. ------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: namespaced model should create the right migration. -------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: namespaced model should edit the model content. ---------------------------------------------------------------------------------------  (0.3ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should create the right migration. ---------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ----------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should edit the model content. -----------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should include parameters if rails 3 and strong_parameter not present. ---------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should not include parameters if rails 3 and strong_parameter present. ---------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should not include parameters in rails 4. ----------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: class methods find_or_create_for_maestrano class method should create a monster using the mapping block. --------------------------------------------------------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: class methods find_or_create_for_maestrano class method should not return a MnoMonster from another provider if it exists. --------------------------------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.3ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: class methods find_or_create_for_maestrano class method should return the MnoMonster if it exists. --------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: class methods maestrano_*_via should have the right field definition. ---------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------------------------ MaestranoUserViaTest: test_: instance methods maestrano? should return false if provider is something else. ------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: instance methods maestrano? should return false if uid is blank. ----------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ----------------------------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: instance methods maestrano? should return true if provider is maestrano and uid not null. -----------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------------------------------- GenericControllerTest: test_: with a maestrano session should be successful if the maestrano session is still valid. ---------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by PagesController#home as HTML Rendered pages/home.html.erb within layouts/application (0.5ms) Completed 200 OK in 181ms (Views: 180.6ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction -------------------------------------------------------------------------------------------------------------------- GenericControllerTest: test_: with a maestrano session should initialize redirect to SSO initialization if invalid. --------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by PagesController#home as HTML Redirected to http://localhost::3000/maestrano/auth/saml/init Filter chain halted as :verify_maestrano_session rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ----------------------------------------------------------------------------------------------------------- GenericControllerTest: test_: with a maestrano session should not redirect to SSO init if sso is disabled. -----------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by PagesController#home as HTML Rendered pages/home.html.erb within layouts/application (0.0ms) Completed 200 OK in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------------------ GenericControllerTest: test_: with no maestrano session should be successful. ------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by PagesController#home as HTML Rendered pages/home.html.erb within layouts/application (0.0ms) Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------ ActiveRecordUserGeneratorTest: test_: namespaced model should create the right migration. ------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: namespaced model should edit the model content. --------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should create the right migration. --------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should edit the model content. ----------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should include parameters if rails 3 and strong_parameter not present. --------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should not include parameters if rails 3 and strong_parameter present. --------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should not include parameters in rails 4. ---------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction ------------------------------ MaestranoRailsTest: test_truth ------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------- InstallGeneratorTest: test_: InstallGenerator should create the maestrano initializer. ---------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction ---------------------------------------------------------------------------------- InstallGeneratorTest: test_: InstallGenerator should create the maestrano routes. ----------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction ---------------------------------------------------------------------------------------------------------- InstallGeneratorTest: test_: InstallGenerator should create the maestrano/account/group_users_controller. ----------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction ----------------------------------------------------------------------------------------------------- InstallGeneratorTest: test_: InstallGenerator should create the maestrano/account/groups_controller. -----------------------------------------------------------------------------------------------------  (0.2ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction ------------------------------------------------------------------------------------------------ InstallGeneratorTest: test_: InstallGenerator should create the maestrano/auth/saml_controller. ------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction ---------------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase error should redirect to maestrano on any error. ----------------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Bla Redirected to http://api-sandbox.maestrano.io/app_access_unauthorized?err=internal Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should reset the maestrano session successfully if one already exists. --------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction --------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should set a saml_request in scope. ---------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction -------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should set the group_auth_hash in scope. --------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should set the maestrano session. -------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should set the user_auth_hash in scope. -------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.1ms) rollback transaction ------------------------------------------------------------------------------------------ SamlBaseControllerTest: test_: consume phase should set the user_group_rel_hash in scope. ------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.1ms) rollback transaction --------------------------------------------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: init phase should create a saml request successfully if a maestrano session is already set. ---------------------------------------------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#init as HTML Parameters: {"a_param"=>"value"} Redirected to http://idpprovider.com?r=request Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ----------------------------------------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: init phase should create a saml request using params and session and redirect the user. -----------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#init as HTML Parameters: {"a_param"=>"value"} Redirected to http://idpprovider.com?r=request Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction --------------------------------------------------------------------- GroupUsersControllerTest: test_: authenticated should be successful. ---------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Account::GroupUsersController#destroy as HTML Parameters: {"group_id"=>"cld-1", "id"=>"usr-1"} Filter chain halted as :authenticate_maestrano! rendered or redirected Completed 401 Unauthorized in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction --------------------------------------------------------------------- GroupUsersControllerTest: test_: unauthenticated should deny access. ---------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Account::GroupUsersController#destroy as HTML Parameters: {"group_id"=>"cld-1", "id"=>"usr-1"} Filter chain halted as :authenticate_maestrano! rendered or redirected Completed 401 Unauthorized in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------------------- GroupGeneratorTest: test_: GroupGenerator should call the active_record migration generator successfully. ----------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------------- GroupGeneratorTest: test_: GroupGenerator should call the mongoid migration generator successfully. ----------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction ----------------------------------------------------------------- GroupsControllerTest: test_: authenticated should be successful. -----------------------------------------------------------------  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction Processing by Maestrano::Account::GroupsController#destroy as HTML Parameters: {"id"=>"cld-1"} Filter chain halted as :authenticate_maestrano! rendered or redirected Completed 401 Unauthorized in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction ----------------------------------------------------------------- GroupsControllerTest: test_: unauthenticated should deny access. -----------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Account::GroupsController#destroy as HTML Parameters: {"id"=>"cld-1"} Filter chain halted as :authenticate_maestrano! rendered or redirected Completed 401 Unauthorized in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------- MetadataControllerTest: test_: authenticated should be successful. -------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction ------------------------------------------------------------------- MetadataControllerTest: test_: unauthenticated should deny access. -------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------------------- GroupGeneratorTest: test_: GroupGenerator should call the active_record migration generator successfully. ----------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction ---------------------------------------------------------------------------------------------------- GroupGeneratorTest: test_: GroupGenerator should call the mongoid migration generator successfully. ----------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: class methods find_or_create_for_maestrano class method should create a monster using the mapping block. --------------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction MnoMonster Load (0.2ms) SELECT "mno_monsters".* FROM "mno_monsters" WHERE "mno_monsters"."provider" = 'maestrano' AND "mno_monsters"."uid" = 'usr-2' AND "mno_monsters"."tenant" = 'default' ORDER BY "mno_monsters"."id" ASC LIMIT 1 SQLite3::SQLException: no such table: mno_monsters: SELECT "mno_monsters".* FROM "mno_monsters" WHERE "mno_monsters"."provider" = 'maestrano' AND "mno_monsters"."uid" = 'usr-2' AND "mno_monsters"."tenant" = 'default' ORDER BY "mno_monsters"."id" ASC LIMIT 1  (0.1ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: class methods find_or_create_for_maestrano class method should not return a MnoMonster from another provider if it exists. --------------------------------------------------------------------------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: class methods find_or_create_for_maestrano class method should return the MnoMonster if it exists. --------------------------------------------------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: class methods maestrano_*_via should have the right field definition. ---------------------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction ------------------------------------------------------------------------------------------------------------ MaestranoUserViaTest: test_: instance methods maestrano? should return false if provider is something else. ------------------------------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: instance methods maestrano? should return false if uid is blank. ----------------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ----------------------------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: instance methods maestrano? should return true if provider is maestrano and uid not null. -----------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction ------------------------------ MaestranoRailsTest: test_truth ------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase error should redirect to maestrano on any error. ----------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Bla Redirected to http://api-sandbox.maestrano.io/app_access_unauthorized?err=internal Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should reset the maestrano session successfully if one already exists. --------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction --------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should set a saml_request in scope. ---------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction -------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should set the group_auth_hash in scope. --------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should set the maestrano session. -------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should set the user_auth_hash in scope. -------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------ SamlBaseControllerTest: test_: consume phase should set the user_group_rel_hash in scope. ------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: init phase should create a saml request successfully if a maestrano session is already set. ---------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#init as HTML Parameters: {"a_param"=>"value"} Redirected to http://idpprovider.com?r=request Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ----------------------------------------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: init phase should create a saml request using params and session and redirect the user. -----------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#init as HTML Parameters: {"a_param"=>"value"} Redirected to http://idpprovider.com?r=request Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: namespaced model should create the right migration. -------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: namespaced model should edit the model content. ---------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction --------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should create the right migration. ---------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ----------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should edit the model content. -----------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should include parameters if rails 3 and strong_parameter not present. ---------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should not include parameters if rails 3 and strong_parameter present. ---------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should not include parameters in rails 4. ----------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------------------------------- GenericControllerTest: test_: with a maestrano session should be successful if the maestrano session is still valid. ---------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by PagesController#home as HTML Completed 200 OK in 7ms (Views: 6.8ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction -------------------------------------------------------------------------------------------------------------------- GenericControllerTest: test_: with a maestrano session should initialize redirect to SSO initialization if invalid. --------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by PagesController#home as HTML Redirected to http://localhost::3000/maestrano/auth/saml/init Filter chain halted as :verify_maestrano_session rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) rollback transaction ----------------------------------------------------------------------------------------------------------- GenericControllerTest: test_: with a maestrano session should not redirect to SSO init if sso is disabled. -----------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by PagesController#home as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction ------------------------------------------------------------------------------ GenericControllerTest: test_: with no maestrano session should be successful. ------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by PagesController#home as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------ ActiveRecordUserGeneratorTest: test_: namespaced model should create the right migration. ------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: namespaced model should edit the model content. --------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should create the right migration. --------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should edit the model content. ----------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should include parameters if rails 3 and strong_parameter not present. --------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should not include parameters if rails 3 and strong_parameter present. --------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should not include parameters in rails 4. ---------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------------- UserGeneratorTest: test_: UserGenerator should call the active_record migration generator successfully. --------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------- UserGeneratorTest: test_: UserGenerator should call the mongoid migration generator successfully. --------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction --------------------------------------------------------------------- GroupUsersControllerTest: test_: authenticated should be successful. ---------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Account::GroupUsersController#destroy as HTML Parameters: {"group_id"=>"cld-1", "id"=>"usr-1"} Filter chain halted as :authenticate_maestrano! rendered or redirected Completed 401 Unauthorized in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction --------------------------------------------------------------------- GroupUsersControllerTest: test_: unauthenticated should deny access. ---------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Account::GroupUsersController#destroy as HTML Parameters: {"group_id"=>"cld-1", "id"=>"usr-1"} Filter chain halted as :authenticate_maestrano! rendered or redirected Completed 401 Unauthorized in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ----------------------------------------------------------------- GroupsControllerTest: test_: authenticated should be successful. -----------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Account::GroupsController#destroy as HTML Parameters: {"id"=>"cld-1"} Filter chain halted as :authenticate_maestrano! rendered or redirected Completed 401 Unauthorized in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ----------------------------------------------------------------- GroupsControllerTest: test_: unauthenticated should deny access. -----------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Account::GroupsController#destroy as HTML Parameters: {"id"=>"cld-1"} Filter chain halted as :authenticate_maestrano! rendered or redirected Completed 401 Unauthorized in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction --------------------------------------------------------------------------------------- InstallGeneratorTest: test_: InstallGenerator should create the maestrano initializer. ---------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction ---------------------------------------------------------------------------------- InstallGeneratorTest: test_: InstallGenerator should create the maestrano routes. ----------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction ---------------------------------------------------------------------------------------------------------- InstallGeneratorTest: test_: InstallGenerator should create the maestrano/account/group_users_controller. ----------------------------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction ----------------------------------------------------------------------------------------------------- InstallGeneratorTest: test_: InstallGenerator should create the maestrano/account/groups_controller. -----------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction ------------------------------------------------------------------------------------------------ InstallGeneratorTest: test_: InstallGenerator should create the maestrano/auth/saml_controller. ------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction --------------------------------------------------------------------------------------------------------------------------------------- MaestranoGroupViaTest: test_: class methods find_or_create_for_maestrano class method should create a monster using the mapping block. ---------------------------------------------------------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction MnoCrew Load (0.1ms) SELECT "mno_crews".* FROM "mno_crews" WHERE "mno_crews"."provider" = 'maestrano' AND "mno_crews"."uid" = 'usr-2' AND "mno_crews"."tenant" = 'default' ORDER BY "mno_crews"."id" ASC LIMIT 1 SQLite3::SQLException: no such table: mno_crews: SELECT "mno_crews".* FROM "mno_crews" WHERE "mno_crews"."provider" = 'maestrano' AND "mno_crews"."uid" = 'usr-2' AND "mno_crews"."tenant" = 'default' ORDER BY "mno_crews"."id" ASC LIMIT 1  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------------------------------------------------------------------ MaestranoGroupViaTest: test_: class methods find_or_create_for_maestrano class method should not return a MnoCrew from another provider if it exists. ------------------------------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------------------------------------------ MaestranoGroupViaTest: test_: class methods find_or_create_for_maestrano class method should return the MnoCrew if it exists. ------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------------- MaestranoGroupViaTest: test_: class methods maestrano_*_via should have the right field definition. ----------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------------------------- MaestranoGroupViaTest: test_: instance methods maestrano? should return false if provider is something else. -------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ----------------------------------------------------------------------------------------------- MaestranoGroupViaTest: test_: instance methods maestrano? should return false if uid is blank. -----------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------------------------------------ MaestranoGroupViaTest: test_: instance methods maestrano? should return true if provider is maestrano and uid not null. ------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------- MetadataControllerTest: test_: authenticated should be successful. -------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------- MetadataControllerTest: test_: unauthenticated should deny access. -------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: namespaced model should create the right migration. -------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: namespaced model should edit the model content. ---------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should create the right migration. ---------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ----------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should edit the model content. -----------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should include parameters if rails 3 and strong_parameter not present. ---------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should not include parameters if rails 3 and strong_parameter present. ---------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction ---------------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should not include parameters in rails 4. ----------------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction --------------------------------------------------------------------------------------------------------------------------------------- MaestranoGroupViaTest: test_: class methods find_or_create_for_maestrano class method should create a monster using the mapping block. ---------------------------------------------------------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction MnoCrew Load (0.1ms) SELECT "mno_crews".* FROM "mno_crews" WHERE "mno_crews"."provider" = 'maestrano' AND "mno_crews"."uid" = 'usr-2' AND "mno_crews"."tenant" = 'default' ORDER BY "mno_crews"."id" ASC LIMIT 1 SQLite3::SQLException: no such table: mno_crews: SELECT "mno_crews".* FROM "mno_crews" WHERE "mno_crews"."provider" = 'maestrano' AND "mno_crews"."uid" = 'usr-2' AND "mno_crews"."tenant" = 'default' ORDER BY "mno_crews"."id" ASC LIMIT 1  (0.1ms) rollback transaction ------------------------------------------------------------------------------------------------------------------------------------------------------ MaestranoGroupViaTest: test_: class methods find_or_create_for_maestrano class method should not return a MnoCrew from another provider if it exists. ------------------------------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------------------------------------------ MaestranoGroupViaTest: test_: class methods find_or_create_for_maestrano class method should return the MnoCrew if it exists. ------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------------- MaestranoGroupViaTest: test_: class methods maestrano_*_via should have the right field definition. ----------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------------------------- MaestranoGroupViaTest: test_: instance methods maestrano? should return false if provider is something else. -------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ----------------------------------------------------------------------------------------------- MaestranoGroupViaTest: test_: instance methods maestrano? should return false if uid is blank. -----------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------------------------------------ MaestranoGroupViaTest: test_: instance methods maestrano? should return true if provider is maestrano and uid not null. ------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------------------------------- GenericControllerTest: test_: with a maestrano session should be successful if the maestrano session is still valid. ---------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by PagesController#home as HTML Completed 200 OK in 9ms (Views: 8.6ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction -------------------------------------------------------------------------------------------------------------------- GenericControllerTest: test_: with a maestrano session should initialize redirect to SSO initialization if invalid. --------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by PagesController#home as HTML Redirected to http://localhost::3000/maestrano/auth/saml/init Filter chain halted as :verify_maestrano_session rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ----------------------------------------------------------------------------------------------------------- GenericControllerTest: test_: with a maestrano session should not redirect to SSO init if sso is disabled. -----------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by PagesController#home as HTML Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------------------ GenericControllerTest: test_: with no maestrano session should be successful. ------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by PagesController#home as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------------------- GroupGeneratorTest: test_: GroupGenerator should call the active_record migration generator successfully. ----------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction ---------------------------------------------------------------------------------------------------- GroupGeneratorTest: test_: GroupGenerator should call the mongoid migration generator successfully. ----------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------ ActiveRecordUserGeneratorTest: test_: namespaced model should create the right migration. ------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: namespaced model should edit the model content. --------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction -------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should create the right migration. --------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction ---------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should edit the model content. ----------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should include parameters if rails 3 and strong_parameter not present. --------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should not include parameters if rails 3 and strong_parameter present. --------------------------------------------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should not include parameters in rails 4. ---------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction ------------------------------ MaestranoRailsTest: test_truth ------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------- InstallGeneratorTest: test_: InstallGenerator should create the maestrano initializer. ---------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction ---------------------------------------------------------------------------------- InstallGeneratorTest: test_: InstallGenerator should create the maestrano routes. ----------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction ---------------------------------------------------------------------------------------------------------- InstallGeneratorTest: test_: InstallGenerator should create the maestrano/account/group_users_controller. ----------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction ----------------------------------------------------------------------------------------------------- InstallGeneratorTest: test_: InstallGenerator should create the maestrano/account/groups_controller. -----------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction ------------------------------------------------------------------------------------------------ InstallGeneratorTest: test_: InstallGenerator should create the maestrano/auth/saml_controller. ------------------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction ----------------------------------------------------------------- GroupsControllerTest: test_: authenticated should be successful. -----------------------------------------------------------------  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Account::GroupsController#destroy as HTML Parameters: {"id"=>"cld-1"} Filter chain halted as :authenticate_maestrano! rendered or redirected Completed 401 Unauthorized in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction ----------------------------------------------------------------- GroupsControllerTest: test_: unauthenticated should deny access. -----------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Account::GroupsController#destroy as HTML Parameters: {"id"=>"cld-1"} Filter chain halted as :authenticate_maestrano! rendered or redirected Completed 401 Unauthorized in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------------- UserGeneratorTest: test_: UserGenerator should call the active_record migration generator successfully. --------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction -------------------------------------------------------------------------------------------------- UserGeneratorTest: test_: UserGenerator should call the mongoid migration generator successfully. --------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------- GroupUsersControllerTest: test_: authenticated should be successful. ---------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Account::GroupUsersController#destroy as HTML Parameters: {"group_id"=>"cld-1", "id"=>"usr-1"} Filter chain halted as :authenticate_maestrano! rendered or redirected Completed 401 Unauthorized in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction --------------------------------------------------------------------- GroupUsersControllerTest: test_: unauthenticated should deny access. ---------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Account::GroupUsersController#destroy as HTML Parameters: {"group_id"=>"cld-1", "id"=>"usr-1"} Filter chain halted as :authenticate_maestrano! rendered or redirected Completed 401 Unauthorized in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: class methods find_or_create_for_maestrano class method should create a monster using the mapping block. --------------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction MnoMonster Load (0.1ms) SELECT "mno_monsters".* FROM "mno_monsters" WHERE "mno_monsters"."provider" = 'maestrano' AND "mno_monsters"."uid" = 'usr-2' AND "mno_monsters"."tenant" = 'default' ORDER BY "mno_monsters"."id" ASC LIMIT 1 SQLite3::SQLException: no such table: mno_monsters: SELECT "mno_monsters".* FROM "mno_monsters" WHERE "mno_monsters"."provider" = 'maestrano' AND "mno_monsters"."uid" = 'usr-2' AND "mno_monsters"."tenant" = 'default' ORDER BY "mno_monsters"."id" ASC LIMIT 1  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: class methods find_or_create_for_maestrano class method should not return a MnoMonster from another provider if it exists. --------------------------------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: class methods find_or_create_for_maestrano class method should return the MnoMonster if it exists. --------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: class methods maestrano_*_via should have the right field definition. ---------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------------------------ MaestranoUserViaTest: test_: instance methods maestrano? should return false if provider is something else. ------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: instance methods maestrano? should return false if uid is blank. ----------------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ----------------------------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: instance methods maestrano? should return true if provider is maestrano and uid not null. -----------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase error should redirect to maestrano on any error. ----------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Bla Redirected to http://api-sandbox.maestrano.io/app_access_unauthorized?err=internal Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.1ms) rollback transaction -------------------------------------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should reset the maestrano session successfully if one already exists. --------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction --------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should set a saml_request in scope. ---------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) rollback transaction -------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should set the group_auth_hash in scope. --------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should set the maestrano session. -------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should set the user_auth_hash in scope. -------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------ SamlBaseControllerTest: test_: consume phase should set the user_group_rel_hash in scope. ------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: init phase should create a saml request successfully if a maestrano session is already set. ---------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#init as HTML Parameters: {"a_param"=>"value"} Redirected to http://idpprovider.com?r=request Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ----------------------------------------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: init phase should create a saml request using params and session and redirect the user. -----------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#init as HTML Parameters: {"a_param"=>"value"} Redirected to http://idpprovider.com?r=request Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction --------------------------------------------------------------------- GroupUsersControllerTest: test_: authenticated should be successful. ---------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Account::GroupUsersController#destroy as HTML Parameters: {"group_id"=>"cld-1", "id"=>"usr-1"} Filter chain halted as :authenticate_maestrano! rendered or redirected Completed 401 Unauthorized in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction --------------------------------------------------------------------- GroupUsersControllerTest: test_: unauthenticated should deny access. ---------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Account::GroupUsersController#destroy as HTML Parameters: {"group_id"=>"cld-1", "id"=>"usr-1"} Filter chain halted as :authenticate_maestrano! rendered or redirected Completed 401 Unauthorized in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------------------------------------------------- MaestranoGroupViaTest: test_: class methods find_or_create_for_maestrano class method should create a monster using the mapping block. ---------------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction MnoCrew Load (0.1ms) SELECT "mno_crews".* FROM "mno_crews" WHERE "mno_crews"."provider" = 'maestrano' AND "mno_crews"."uid" = 'usr-2' AND "mno_crews"."tenant" = 'default' ORDER BY "mno_crews"."id" ASC LIMIT 1 SQLite3::SQLException: no such table: mno_crews: SELECT "mno_crews".* FROM "mno_crews" WHERE "mno_crews"."provider" = 'maestrano' AND "mno_crews"."uid" = 'usr-2' AND "mno_crews"."tenant" = 'default' ORDER BY "mno_crews"."id" ASC LIMIT 1  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------------------------------------------------------------------ MaestranoGroupViaTest: test_: class methods find_or_create_for_maestrano class method should not return a MnoCrew from another provider if it exists. ------------------------------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------------------------------------------ MaestranoGroupViaTest: test_: class methods find_or_create_for_maestrano class method should return the MnoCrew if it exists. ------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------------- MaestranoGroupViaTest: test_: class methods maestrano_*_via should have the right field definition. ----------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------------------------- MaestranoGroupViaTest: test_: instance methods maestrano? should return false if provider is something else. -------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction ----------------------------------------------------------------------------------------------- MaestranoGroupViaTest: test_: instance methods maestrano? should return false if uid is blank. -----------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------------------------------------ MaestranoGroupViaTest: test_: instance methods maestrano? should return true if provider is maestrano and uid not null. ------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------ ActiveRecordUserGeneratorTest: test_: namespaced model should create the right migration. ------------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: namespaced model should edit the model content. --------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should create the right migration. --------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should edit the model content. ----------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should include parameters if rails 3 and strong_parameter not present. --------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should not include parameters if rails 3 and strong_parameter present. --------------------------------------------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should not include parameters in rails 4. ---------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ----------------------------------------------------------------- GroupsControllerTest: test_: authenticated should be successful. -----------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Account::GroupsController#destroy as HTML Parameters: {"id"=>"cld-1"} Filter chain halted as :authenticate_maestrano! rendered or redirected Completed 401 Unauthorized in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ----------------------------------------------------------------- GroupsControllerTest: test_: unauthenticated should deny access. -----------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Account::GroupsController#destroy as HTML Parameters: {"id"=>"cld-1"} Filter chain halted as :authenticate_maestrano! rendered or redirected Completed 401 Unauthorized in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------------------- GroupGeneratorTest: test_: GroupGenerator should call the active_record migration generator successfully. ----------------------------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------------- GroupGeneratorTest: test_: GroupGenerator should call the mongoid migration generator successfully. ----------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------------------------------- GenericControllerTest: test_: with a maestrano session should be successful if the maestrano session is still valid. ---------------------------------------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by PagesController#home as HTML Completed 200 OK in 10ms (Views: 9.5ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction -------------------------------------------------------------------------------------------------------------------- GenericControllerTest: test_: with a maestrano session should initialize redirect to SSO initialization if invalid. --------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by PagesController#home as HTML Redirected to http://localhost::3000/maestrano/auth/saml/init Filter chain halted as :verify_maestrano_session rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ----------------------------------------------------------------------------------------------------------- GenericControllerTest: test_: with a maestrano session should not redirect to SSO init if sso is disabled. -----------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by PagesController#home as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------------------ GenericControllerTest: test_: with no maestrano session should be successful. ------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by PagesController#home as HTML Completed 200 OK in 0ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: class methods find_or_create_for_maestrano class method should create a monster using the mapping block. --------------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction MnoMonster Load (0.1ms) SELECT "mno_monsters".* FROM "mno_monsters" WHERE "mno_monsters"."provider" = 'maestrano' AND "mno_monsters"."uid" = 'usr-2' AND "mno_monsters"."tenant" = 'default' ORDER BY "mno_monsters"."id" ASC LIMIT 1 SQLite3::SQLException: no such table: mno_monsters: SELECT "mno_monsters".* FROM "mno_monsters" WHERE "mno_monsters"."provider" = 'maestrano' AND "mno_monsters"."uid" = 'usr-2' AND "mno_monsters"."tenant" = 'default' ORDER BY "mno_monsters"."id" ASC LIMIT 1  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: class methods find_or_create_for_maestrano class method should not return a MnoMonster from another provider if it exists. --------------------------------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: class methods find_or_create_for_maestrano class method should return the MnoMonster if it exists. --------------------------------------------------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: class methods maestrano_*_via should have the right field definition. ---------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------------------------ MaestranoUserViaTest: test_: instance methods maestrano? should return false if provider is something else. ------------------------------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: instance methods maestrano? should return false if uid is blank. ----------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ----------------------------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: instance methods maestrano? should return true if provider is maestrano and uid not null. -----------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------ MaestranoRailsTest: test_truth ------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------- InstallGeneratorTest: test_: InstallGenerator should create the maestrano initializer. ---------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction ---------------------------------------------------------------------------------- InstallGeneratorTest: test_: InstallGenerator should create the maestrano routes. ----------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction ---------------------------------------------------------------------------------------------------------- InstallGeneratorTest: test_: InstallGenerator should create the maestrano/account/group_users_controller. ----------------------------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction ----------------------------------------------------------------------------------------------------- InstallGeneratorTest: test_: InstallGenerator should create the maestrano/account/groups_controller. -----------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction ------------------------------------------------------------------------------------------------ InstallGeneratorTest: test_: InstallGenerator should create the maestrano/auth/saml_controller. ------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction ------------------------------------------------------------------- MetadataControllerTest: test_: authenticated should be successful. -------------------------------------------------------------------  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------- MetadataControllerTest: test_: unauthenticated should deny access. -------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase error should redirect to maestrano on any error. ----------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Bla Redirected to http://api-sandbox.maestrano.io/app_access_unauthorized?err=internal Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should reset the maestrano session successfully if one already exists. --------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.1ms) rollback transaction --------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should set a saml_request in scope. ---------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.1ms) rollback transaction -------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should set the group_auth_hash in scope. --------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should set the maestrano session. -------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should set the user_auth_hash in scope. -------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------ SamlBaseControllerTest: test_: consume phase should set the user_group_rel_hash in scope. ------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: init phase should create a saml request successfully if a maestrano session is already set. ---------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#init as HTML Parameters: {"a_param"=>"value"} Redirected to http://idpprovider.com?r=request Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ----------------------------------------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: init phase should create a saml request using params and session and redirect the user. -----------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#init as HTML Parameters: {"a_param"=>"value"} Redirected to http://idpprovider.com?r=request Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: namespaced model should create the right migration. -------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: namespaced model should edit the model content. ---------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should create the right migration. ---------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ----------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should edit the model content. -----------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction --------------------------------------------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should include parameters if rails 3 and strong_parameter not present. ---------------------------------------------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should not include parameters if rails 3 and strong_parameter present. ---------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should not include parameters in rails 4. ----------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------------- UserGeneratorTest: test_: UserGenerator should call the active_record migration generator successfully. --------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------- UserGeneratorTest: test_: UserGenerator should call the mongoid migration generator successfully. --------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (15.1ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)   (0.1ms) select sqlite_version(*)  (15.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" Migrating to CreateMonsters (20140526125222)  (0.0ms) begin transaction  (0.2ms) CREATE TABLE "monsters" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime) SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140526125222"]]  (14.8ms) commit transaction Migrating to CreateAdminMonsters (20140526125242)  (0.1ms) begin transaction  (0.2ms) CREATE TABLE "admin_monsters" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime) SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140526125242"]]  (15.0ms) commit transaction Migrating to CreateMnoMonsters (20140526144828)  (0.1ms) begin transaction  (0.3ms) CREATE TABLE "mno_monsters" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "first_name" varchar(255), "last_name" varchar(255), "email" varchar(255), "provider" varchar(255), "uid" varchar(255), "tenant" varchar(255), "created_at" datetime, "updated_at" datetime) SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140526144828"]]  (15.0ms) commit transaction Migrating to CreateMnoCrews (20140526151139)  (0.1ms) begin transaction  (0.2ms) CREATE TABLE "mno_crews" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "provider" varchar(255), "uid" varchar(255), "tenant" varchar(255), "created_at" datetime, "updated_at" datetime) SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140526151139"]]  (6.7ms) commit transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ---------------------------------------------------------------------------------------------------------- GroupGeneratorTest: test_: GroupGenerator should call the active_record migration generator successfully. ----------------------------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction ---------------------------------------------------------------------------------------------------- GroupGeneratorTest: test_: GroupGenerator should call the mongoid migration generator successfully. ----------------------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------ MaestranoRailsTest: test_truth ------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------------------------------- GenericControllerTest: test_: with a maestrano session should be successful if the maestrano session is still valid. ---------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by PagesController#home as HTML Rendered pages/home.html.erb within layouts/application (0.4ms) Completed 200 OK in 10ms (Views: 10.0ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction -------------------------------------------------------------------------------------------------------------------- GenericControllerTest: test_: with a maestrano session should initialize redirect to SSO initialization if invalid. --------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by PagesController#home as HTML Redirected to http://localhost::3000/maestrano/auth/saml/init Filter chain halted as :verify_maestrano_session rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ----------------------------------------------------------------------------------------------------------- GenericControllerTest: test_: with a maestrano session should not redirect to SSO init if sso is disabled. -----------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by PagesController#home as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------------------ GenericControllerTest: test_: with no maestrano session should be successful. ------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by PagesController#home as HTML Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: class methods find_or_create_for_maestrano class method should create a monster using the mapping block. --------------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction MnoMonster Load (0.1ms) SELECT "mno_monsters".* FROM "mno_monsters" WHERE "mno_monsters"."provider" = 'maestrano' AND "mno_monsters"."uid" = 'usr-2' AND "mno_monsters"."tenant" = 'default' ORDER BY "mno_monsters"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "mno_monsters" ("created_at", "email", "first_name", "last_name", "provider", "tenant", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2016-01-20 04:54:51.050374"], ["email", "monster@monst.com"], ["first_name", "Mon"], ["last_name", "Ster"], ["provider", "maestrano"], ["tenant", "default"], ["uid", "usr-2"], ["updated_at", "2016-01-20 04:54:51.050374"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: class methods find_or_create_for_maestrano class method should not return a MnoMonster from another provider if it exists. --------------------------------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "mno_monsters" ("created_at", "email", "first_name", "last_name", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", "2016-01-20 04:54:51.053435"], ["email", "monster@co.com"], ["first_name", "John"], ["last_name", "Jack"], ["provider", "someoneelse"], ["uid", "usr-1"], ["updated_at", "2016-01-20 04:54:51.053435"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 MnoMonster Load (0.1ms) SELECT "mno_monsters".* FROM "mno_monsters" WHERE "mno_monsters"."provider" = 'maestrano' AND "mno_monsters"."uid" = 'usr-1' AND "mno_monsters"."tenant" = 'default' ORDER BY "mno_monsters"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "mno_monsters" ("created_at", "provider", "tenant", "uid", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2016-01-20 04:54:51.054646"], ["provider", "maestrano"], ["tenant", "default"], ["uid", "usr-1"], ["updated_at", "2016-01-20 04:54:51.054646"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: class methods find_or_create_for_maestrano class method should return the MnoMonster if it exists. --------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "mno_monsters" ("created_at", "email", "first_name", "last_name", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", "2016-01-20 04:54:51.056119"], ["email", "monster@co.com"], ["first_name", "John"], ["last_name", "Jack"], ["provider", "maestrano"], ["uid", "usr-1"], ["updated_at", "2016-01-20 04:54:51.056119"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 MnoMonster Load (0.1ms) SELECT "mno_monsters".* FROM "mno_monsters" WHERE "mno_monsters"."provider" = 'maestrano' AND "mno_monsters"."uid" = 'usr-1' AND "mno_monsters"."tenant" = 'default' ORDER BY "mno_monsters"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "mno_monsters" ("created_at", "provider", "tenant", "uid", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2016-01-20 04:54:51.057156"], ["provider", "maestrano"], ["tenant", "default"], ["uid", "usr-1"], ["updated_at", "2016-01-20 04:54:51.057156"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction --------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: class methods maestrano_*_via should have the right field definition. ---------------------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------------------------ MaestranoUserViaTest: test_: instance methods maestrano? should return false if provider is something else. ------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: instance methods maestrano? should return false if uid is blank. ----------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ----------------------------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: instance methods maestrano? should return true if provider is maestrano and uid not null. -----------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------- GroupUsersControllerTest: test_: authenticated should be successful. ---------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Account::GroupUsersController#destroy as HTML Parameters: {"group_id"=>"cld-1", "id"=>"usr-1"} Filter chain halted as :authenticate_maestrano! rendered or redirected Completed 401 Unauthorized in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction --------------------------------------------------------------------- GroupUsersControllerTest: test_: unauthenticated should deny access. ---------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Account::GroupUsersController#destroy as HTML Parameters: {"group_id"=>"cld-1", "id"=>"usr-1"} Filter chain halted as :authenticate_maestrano! rendered or redirected Completed 401 Unauthorized in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction --------------------------------------------------------------------------------------- InstallGeneratorTest: test_: InstallGenerator should create the maestrano initializer. ---------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction ---------------------------------------------------------------------------------- InstallGeneratorTest: test_: InstallGenerator should create the maestrano routes. ----------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction ---------------------------------------------------------------------------------------------------------- InstallGeneratorTest: test_: InstallGenerator should create the maestrano/account/group_users_controller. ----------------------------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction ----------------------------------------------------------------------------------------------------- InstallGeneratorTest: test_: InstallGenerator should create the maestrano/account/groups_controller. -----------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction ------------------------------------------------------------------------------------------------ InstallGeneratorTest: test_: InstallGenerator should create the maestrano/auth/saml_controller. ------------------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction ----------------------------------------------------------------- GroupsControllerTest: test_: authenticated should be successful. -----------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Account::GroupsController#destroy as HTML Parameters: {"id"=>"cld-1"} Filter chain halted as :authenticate_maestrano! rendered or redirected Completed 401 Unauthorized in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ----------------------------------------------------------------- GroupsControllerTest: test_: unauthenticated should deny access. -----------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Account::GroupsController#destroy as HTML Parameters: {"id"=>"cld-1"} Filter chain halted as :authenticate_maestrano! rendered or redirected Completed 401 Unauthorized in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: namespaced model should create the right migration. -------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: namespaced model should edit the model content. ---------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should create the right migration. ---------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction ----------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should edit the model content. -----------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction --------------------------------------------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should include parameters if rails 3 and strong_parameter not present. ---------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should not include parameters if rails 3 and strong_parameter present. ---------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction ---------------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should not include parameters in rails 4. ----------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction -------------------------------------------------------------------------------------------------------- UserGeneratorTest: test_: UserGenerator should call the active_record migration generator successfully. --------------------------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------- UserGeneratorTest: test_: UserGenerator should call the mongoid migration generator successfully. --------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase error should redirect to maestrano on any error. ----------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Bla Redirected to http://api-sandbox.maestrano.io/app_access_unauthorized?err=internal Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should reset the maestrano session successfully if one already exists. --------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction --------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should set a saml_request in scope. ---------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction -------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should set the group_auth_hash in scope. --------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should set the maestrano session. -------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should set the user_auth_hash in scope. -------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------ SamlBaseControllerTest: test_: consume phase should set the user_group_rel_hash in scope. ------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: init phase should create a saml request successfully if a maestrano session is already set. ---------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#init as HTML Parameters: {"a_param"=>"value"} Redirected to http://idpprovider.com?r=request Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ----------------------------------------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: init phase should create a saml request using params and session and redirect the user. -----------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#init as HTML Parameters: {"a_param"=>"value"} Redirected to http://idpprovider.com?r=request Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------------------------------------------------- MaestranoGroupViaTest: test_: class methods find_or_create_for_maestrano class method should create a monster using the mapping block. ---------------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction MnoCrew Load (0.1ms) SELECT "mno_crews".* FROM "mno_crews" WHERE "mno_crews"."provider" = 'maestrano' AND "mno_crews"."uid" = 'usr-2' AND "mno_crews"."tenant" = 'default' ORDER BY "mno_crews"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "mno_crews" ("created_at", "name", "provider", "tenant", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2016-01-20 04:54:51.296293"], ["name", "Monster Co"], ["provider", "maestrano"], ["tenant", "default"], ["uid", "usr-2"], ["updated_at", "2016-01-20 04:54:51.296293"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction ------------------------------------------------------------------------------------------------------------------------------------------------------ MaestranoGroupViaTest: test_: class methods find_or_create_for_maestrano class method should not return a MnoCrew from another provider if it exists. ------------------------------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "mno_crews" ("created_at", "name", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2016-01-20 04:54:51.297873"], ["name", "SomeOtherCrew"], ["provider", "someoneelse"], ["uid", "usr-1"], ["updated_at", "2016-01-20 04:54:51.297873"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 MnoCrew Load (0.1ms) SELECT "mno_crews".* FROM "mno_crews" WHERE "mno_crews"."provider" = 'maestrano' AND "mno_crews"."uid" = 'cld-1' AND "mno_crews"."tenant" = 'default' ORDER BY "mno_crews"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "mno_crews" ("created_at", "name", "provider", "tenant", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2016-01-20 04:54:51.298947"], ["name", "Your Group"], ["provider", "maestrano"], ["tenant", "default"], ["uid", "cld-1"], ["updated_at", "2016-01-20 04:54:51.298947"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction ------------------------------------------------------------------------------------------------------------------------------ MaestranoGroupViaTest: test_: class methods find_or_create_for_maestrano class method should return the MnoCrew if it exists. ------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "mno_crews" ("created_at", "name", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2016-01-20 04:54:51.300173"], ["name", "SomeCrew"], ["provider", "maestrano"], ["uid", "cld-1"], ["updated_at", "2016-01-20 04:54:51.300173"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 MnoCrew Load (0.1ms) SELECT "mno_crews".* FROM "mno_crews" WHERE "mno_crews"."provider" = 'maestrano' AND "mno_crews"."uid" = 'cld-1' AND "mno_crews"."tenant" = 'default' ORDER BY "mno_crews"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "mno_crews" ("created_at", "name", "provider", "tenant", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2016-01-20 04:54:51.301171"], ["name", "Your Group"], ["provider", "maestrano"], ["tenant", "default"], ["uid", "cld-1"], ["updated_at", "2016-01-20 04:54:51.301171"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction ---------------------------------------------------------------------------------------------------- MaestranoGroupViaTest: test_: class methods maestrano_*_via should have the right field definition. ----------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------------------------- MaestranoGroupViaTest: test_: instance methods maestrano? should return false if provider is something else. -------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ----------------------------------------------------------------------------------------------- MaestranoGroupViaTest: test_: instance methods maestrano? should return false if uid is blank. -----------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------------------------------------ MaestranoGroupViaTest: test_: instance methods maestrano? should return true if provider is maestrano and uid not null. ------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------ ActiveRecordUserGeneratorTest: test_: namespaced model should create the right migration. ------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction -------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: namespaced model should edit the model content. --------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should create the right migration. --------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should edit the model content. ----------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should include parameters if rails 3 and strong_parameter not present. --------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should not include parameters if rails 3 and strong_parameter present. --------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should not include parameters in rails 4. ---------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------- MetadataControllerTest: test_: authenticated should be successful. -------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------- MetadataControllerTest: test_: unauthenticated should deny access. -------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ------------------------------------------------------------------------------------------ ActiveRecordUserGeneratorTest: test_: namespaced model should create the right migration. ------------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction -------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: namespaced model should edit the model content. --------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction -------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should create the right migration. --------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should edit the model content. ----------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should include parameters if rails 3 and strong_parameter not present. --------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should not include parameters if rails 3 and strong_parameter present. --------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should not include parameters in rails 4. ---------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction --------------------------------------------------------------------------------------------------------------------------------------- MaestranoGroupViaTest: test_: class methods find_or_create_for_maestrano class method should create a monster using the mapping block. ---------------------------------------------------------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction MnoCrew Load (0.1ms) SELECT "mno_crews".* FROM "mno_crews" WHERE "mno_crews"."provider" = 'maestrano' AND "mno_crews"."uid" = 'usr-2' AND "mno_crews"."tenant" = 'default' ORDER BY "mno_crews"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "mno_crews" ("created_at", "name", "provider", "tenant", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2016-01-20 04:56:22.241405"], ["name", "Monster Co"], ["provider", "maestrano"], ["tenant", "default"], ["uid", "usr-2"], ["updated_at", "2016-01-20 04:56:22.241405"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction ------------------------------------------------------------------------------------------------------------------------------------------------------ MaestranoGroupViaTest: test_: class methods find_or_create_for_maestrano class method should not return a MnoCrew from another provider if it exists. ------------------------------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "mno_crews" ("created_at", "name", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2016-01-20 04:56:22.244324"], ["name", "SomeOtherCrew"], ["provider", "someoneelse"], ["uid", "usr-1"], ["updated_at", "2016-01-20 04:56:22.244324"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 MnoCrew Load (0.1ms) SELECT "mno_crews".* FROM "mno_crews" WHERE "mno_crews"."provider" = 'maestrano' AND "mno_crews"."uid" = 'cld-1' AND "mno_crews"."tenant" = 'default' ORDER BY "mno_crews"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "mno_crews" ("created_at", "name", "provider", "tenant", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2016-01-20 04:56:22.245463"], ["name", "Your Group"], ["provider", "maestrano"], ["tenant", "default"], ["uid", "cld-1"], ["updated_at", "2016-01-20 04:56:22.245463"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction ------------------------------------------------------------------------------------------------------------------------------ MaestranoGroupViaTest: test_: class methods find_or_create_for_maestrano class method should return the MnoCrew if it exists. ------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "mno_crews" ("created_at", "name", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2016-01-20 04:56:22.246657"], ["name", "SomeCrew"], ["provider", "maestrano"], ["uid", "cld-1"], ["updated_at", "2016-01-20 04:56:22.246657"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 MnoCrew Load (0.1ms) SELECT "mno_crews".* FROM "mno_crews" WHERE "mno_crews"."provider" = 'maestrano' AND "mno_crews"."uid" = 'cld-1' AND "mno_crews"."tenant" = 'default' ORDER BY "mno_crews"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "mno_crews" ("created_at", "name", "provider", "tenant", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2016-01-20 04:56:22.247678"], ["name", "Your Group"], ["provider", "maestrano"], ["tenant", "default"], ["uid", "cld-1"], ["updated_at", "2016-01-20 04:56:22.247678"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction ---------------------------------------------------------------------------------------------------- MaestranoGroupViaTest: test_: class methods maestrano_*_via should have the right field definition. ----------------------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------------------------- MaestranoGroupViaTest: test_: instance methods maestrano? should return false if provider is something else. -------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ----------------------------------------------------------------------------------------------- MaestranoGroupViaTest: test_: instance methods maestrano? should return false if uid is blank. -----------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------------------------------------ MaestranoGroupViaTest: test_: instance methods maestrano? should return true if provider is maestrano and uid not null. ------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------------- UserGeneratorTest: test_: UserGenerator should call the active_record migration generator successfully. --------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction -------------------------------------------------------------------------------------------------- UserGeneratorTest: test_: UserGenerator should call the mongoid migration generator successfully. --------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction ---------------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase error should redirect to maestrano on any error. ----------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Bla Redirected to http://api-sandbox.maestrano.io/app_access_unauthorized?err=internal Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should reset the maestrano session successfully if one already exists. --------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction --------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should set a saml_request in scope. ---------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction -------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should set the group_auth_hash in scope. --------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should set the maestrano session. -------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should set the user_auth_hash in scope. -------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------ SamlBaseControllerTest: test_: consume phase should set the user_group_rel_hash in scope. ------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: init phase should create a saml request successfully if a maestrano session is already set. ---------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#init as HTML Parameters: {"a_param"=>"value"} Redirected to http://idpprovider.com?r=request Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) rollback transaction ----------------------------------------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: init phase should create a saml request using params and session and redirect the user. -----------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#init as HTML Parameters: {"a_param"=>"value"} Redirected to http://idpprovider.com?r=request Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction --------------------------------------------------------------------------------------- InstallGeneratorTest: test_: InstallGenerator should create the maestrano initializer. ---------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction ---------------------------------------------------------------------------------- InstallGeneratorTest: test_: InstallGenerator should create the maestrano routes. ----------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction ---------------------------------------------------------------------------------------------------------- InstallGeneratorTest: test_: InstallGenerator should create the maestrano/account/group_users_controller. ----------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction ----------------------------------------------------------------------------------------------------- InstallGeneratorTest: test_: InstallGenerator should create the maestrano/account/groups_controller. -----------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction ------------------------------------------------------------------------------------------------ InstallGeneratorTest: test_: InstallGenerator should create the maestrano/auth/saml_controller. ------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction --------------------------------------------------------------------------------------------------------------------- GenericControllerTest: test_: with a maestrano session should be successful if the maestrano session is still valid. ---------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by PagesController#home as HTML Completed 200 OK in 10ms (Views: 9.3ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction -------------------------------------------------------------------------------------------------------------------- GenericControllerTest: test_: with a maestrano session should initialize redirect to SSO initialization if invalid. --------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction Processing by PagesController#home as HTML Redirected to http://localhost::3000/maestrano/auth/saml/init Filter chain halted as :verify_maestrano_session rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ----------------------------------------------------------------------------------------------------------- GenericControllerTest: test_: with a maestrano session should not redirect to SSO init if sso is disabled. -----------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction Processing by PagesController#home as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------------------ GenericControllerTest: test_: with no maestrano session should be successful. ------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by PagesController#home as HTML Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: class methods find_or_create_for_maestrano class method should create a monster using the mapping block. --------------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction MnoMonster Load (0.1ms) SELECT "mno_monsters".* FROM "mno_monsters" WHERE "mno_monsters"."provider" = 'maestrano' AND "mno_monsters"."uid" = 'usr-2' AND "mno_monsters"."tenant" = 'default' ORDER BY "mno_monsters"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "mno_monsters" ("created_at", "email", "first_name", "last_name", "provider", "tenant", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2016-01-20 04:56:22.465485"], ["email", "monster@monst.com"], ["first_name", "Mon"], ["last_name", "Ster"], ["provider", "maestrano"], ["tenant", "default"], ["uid", "usr-2"], ["updated_at", "2016-01-20 04:56:22.465485"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: class methods find_or_create_for_maestrano class method should not return a MnoMonster from another provider if it exists. --------------------------------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "mno_monsters" ("created_at", "email", "first_name", "last_name", "provider", "tenant", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2016-01-20 04:56:22.467324"], ["email", "monster@co.com"], ["first_name", "John"], ["last_name", "Jack"], ["provider", "someoneelse"], ["tenant", "default"], ["uid", "usr-1"], ["updated_at", "2016-01-20 04:56:22.467324"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 MnoMonster Load (0.1ms) SELECT "mno_monsters".* FROM "mno_monsters" WHERE "mno_monsters"."provider" = 'maestrano' AND "mno_monsters"."uid" = 'usr-1' AND "mno_monsters"."tenant" = 'default' ORDER BY "mno_monsters"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "mno_monsters" ("created_at", "provider", "tenant", "uid", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2016-01-20 04:56:22.468457"], ["provider", "maestrano"], ["tenant", "default"], ["uid", "usr-1"], ["updated_at", "2016-01-20 04:56:22.468457"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: class methods find_or_create_for_maestrano class method should return the MnoMonster if it exists. --------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "mno_monsters" ("created_at", "email", "first_name", "last_name", "provider", "tenant", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2016-01-20 04:56:22.469874"], ["email", "monster@co.com"], ["first_name", "John"], ["last_name", "Jack"], ["provider", "maestrano"], ["tenant", "default"], ["uid", "usr-1"], ["updated_at", "2016-01-20 04:56:22.469874"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 MnoMonster Load (0.1ms) SELECT "mno_monsters".* FROM "mno_monsters" WHERE "mno_monsters"."provider" = 'maestrano' AND "mno_monsters"."uid" = 'usr-1' AND "mno_monsters"."tenant" = 'default' ORDER BY "mno_monsters"."id" ASC LIMIT 1  (0.1ms) rollback transaction --------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: class methods maestrano_*_via should have the right field definition. ---------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------------------------ MaestranoUserViaTest: test_: instance methods maestrano? should return false if provider is something else. ------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: instance methods maestrano? should return false if uid is blank. ----------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ----------------------------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: instance methods maestrano? should return true if provider is maestrano and uid not null. -----------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------- GroupUsersControllerTest: test_: authenticated should be successful. ---------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Account::GroupUsersController#destroy as HTML Parameters: {"group_id"=>"cld-1", "id"=>"usr-1"} Filter chain halted as :authenticate_maestrano! rendered or redirected Completed 401 Unauthorized in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction --------------------------------------------------------------------- GroupUsersControllerTest: test_: unauthenticated should deny access. ---------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Account::GroupUsersController#destroy as HTML Parameters: {"group_id"=>"cld-1", "id"=>"usr-1"} Filter chain halted as :authenticate_maestrano! rendered or redirected Completed 401 Unauthorized in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ----------------------------------------------------------------- GroupsControllerTest: test_: authenticated should be successful. -----------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Account::GroupsController#destroy as HTML Parameters: {"id"=>"cld-1"} Filter chain halted as :authenticate_maestrano! rendered or redirected Completed 401 Unauthorized in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ----------------------------------------------------------------- GroupsControllerTest: test_: unauthenticated should deny access. -----------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Account::GroupsController#destroy as HTML Parameters: {"id"=>"cld-1"} Filter chain halted as :authenticate_maestrano! rendered or redirected Completed 401 Unauthorized in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------ MaestranoRailsTest: test_truth ------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------- MetadataControllerTest: test_: authenticated should be successful. -------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------- MetadataControllerTest: test_: unauthenticated should deny access. -------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: namespaced model should create the right migration. -------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: namespaced model should edit the model content. ---------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should create the right migration. ---------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ----------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should edit the model content. -----------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should include parameters if rails 3 and strong_parameter not present. ---------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should not include parameters if rails 3 and strong_parameter present. ---------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should not include parameters in rails 4. ----------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------------------- GroupGeneratorTest: test_: GroupGenerator should call the active_record migration generator successfully. ----------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------------- GroupGeneratorTest: test_: GroupGenerator should call the mongoid migration generator successfully. ----------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" -------------------------------------------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: class methods find_or_create_for_maestrano class method should create a monster using the mapping block. --------------------------------------------------------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction MnoMonster Load (0.1ms) SELECT "mno_monsters".* FROM "mno_monsters" WHERE "mno_monsters"."provider" = 'maestrano' AND "mno_monsters"."uid" = 'usr-2' AND "mno_monsters"."tenant" = 'default' ORDER BY "mno_monsters"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "mno_monsters" ("created_at", "email", "first_name", "last_name", "provider", "tenant", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2016-01-20 04:56:55.990037"], ["email", "monster@monst.com"], ["first_name", "Mon"], ["last_name", "Ster"], ["provider", "maestrano"], ["tenant", "default"], ["uid", "usr-2"], ["updated_at", "2016-01-20 04:56:55.990037"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: class methods find_or_create_for_maestrano class method should not return a MnoMonster from another provider if it exists. --------------------------------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "mno_monsters" ("created_at", "email", "first_name", "last_name", "provider", "tenant", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2016-01-20 04:56:55.994478"], ["email", "monster@co.com"], ["first_name", "John"], ["last_name", "Jack"], ["provider", "someoneelse"], ["tenant", "default"], ["uid", "usr-1"], ["updated_at", "2016-01-20 04:56:55.994478"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 MnoMonster Load (0.1ms) SELECT "mno_monsters".* FROM "mno_monsters" WHERE "mno_monsters"."provider" = 'maestrano' AND "mno_monsters"."uid" = 'usr-1' AND "mno_monsters"."tenant" = 'default' ORDER BY "mno_monsters"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "mno_monsters" ("created_at", "provider", "tenant", "uid", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2016-01-20 04:56:55.995865"], ["provider", "maestrano"], ["tenant", "default"], ["uid", "usr-1"], ["updated_at", "2016-01-20 04:56:55.995865"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: class methods find_or_create_for_maestrano class method should return the MnoMonster if it exists. --------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "mno_monsters" ("created_at", "email", "first_name", "last_name", "provider", "tenant", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2016-01-20 04:56:55.997180"], ["email", "monster@co.com"], ["first_name", "John"], ["last_name", "Jack"], ["provider", "maestrano"], ["tenant", "default"], ["uid", "usr-1"], ["updated_at", "2016-01-20 04:56:55.997180"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 MnoMonster Load (0.1ms) SELECT "mno_monsters".* FROM "mno_monsters" WHERE "mno_monsters"."provider" = 'maestrano' AND "mno_monsters"."uid" = 'usr-1' AND "mno_monsters"."tenant" = 'default' ORDER BY "mno_monsters"."id" ASC LIMIT 1  (0.1ms) rollback transaction --------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: class methods maestrano_*_via should have the right field definition. ---------------------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------------------------ MaestranoUserViaTest: test_: instance methods maestrano? should return false if provider is something else. ------------------------------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: instance methods maestrano? should return false if uid is blank. ----------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ----------------------------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: instance methods maestrano? should return true if provider is maestrano and uid not null. -----------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------------- UserGeneratorTest: test_: UserGenerator should call the active_record migration generator successfully. --------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction -------------------------------------------------------------------------------------------------- UserGeneratorTest: test_: UserGenerator should call the mongoid migration generator successfully. --------------------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction --------------------------------------------------------------------------------------------------------------------------------------- MaestranoGroupViaTest: test_: class methods find_or_create_for_maestrano class method should create a monster using the mapping block. ---------------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction MnoCrew Load (0.1ms) SELECT "mno_crews".* FROM "mno_crews" WHERE "mno_crews"."provider" = 'maestrano' AND "mno_crews"."uid" = 'usr-2' AND "mno_crews"."tenant" = 'default' ORDER BY "mno_crews"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "mno_crews" ("created_at", "name", "provider", "tenant", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2016-01-20 04:56:56.023488"], ["name", "Monster Co"], ["provider", "maestrano"], ["tenant", "default"], ["uid", "usr-2"], ["updated_at", "2016-01-20 04:56:56.023488"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction ------------------------------------------------------------------------------------------------------------------------------------------------------ MaestranoGroupViaTest: test_: class methods find_or_create_for_maestrano class method should not return a MnoCrew from another provider if it exists. ------------------------------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "mno_crews" ("created_at", "name", "provider", "tenant", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2016-01-20 04:56:56.025117"], ["name", "SomeOtherCrew"], ["provider", "someoneelse"], ["tenant", "default"], ["uid", "usr-1"], ["updated_at", "2016-01-20 04:56:56.025117"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 MnoCrew Load (0.1ms) SELECT "mno_crews".* FROM "mno_crews" WHERE "mno_crews"."provider" = 'maestrano' AND "mno_crews"."uid" = 'cld-1' AND "mno_crews"."tenant" = 'default' ORDER BY "mno_crews"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "mno_crews" ("created_at", "name", "provider", "tenant", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2016-01-20 04:56:56.026185"], ["name", "Your Group"], ["provider", "maestrano"], ["tenant", "default"], ["uid", "cld-1"], ["updated_at", "2016-01-20 04:56:56.026185"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction ------------------------------------------------------------------------------------------------------------------------------ MaestranoGroupViaTest: test_: class methods find_or_create_for_maestrano class method should return the MnoCrew if it exists. ------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "mno_crews" ("created_at", "name", "provider", "tenant", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2016-01-20 04:56:56.027630"], ["name", "SomeCrew"], ["provider", "maestrano"], ["tenant", "default"], ["uid", "cld-1"], ["updated_at", "2016-01-20 04:56:56.027630"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 MnoCrew Load (0.1ms) SELECT "mno_crews".* FROM "mno_crews" WHERE "mno_crews"."provider" = 'maestrano' AND "mno_crews"."uid" = 'cld-1' AND "mno_crews"."tenant" = 'default' ORDER BY "mno_crews"."id" ASC LIMIT 1  (0.1ms) rollback transaction ---------------------------------------------------------------------------------------------------- MaestranoGroupViaTest: test_: class methods maestrano_*_via should have the right field definition. ----------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------------------------- MaestranoGroupViaTest: test_: instance methods maestrano? should return false if provider is something else. -------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ----------------------------------------------------------------------------------------------- MaestranoGroupViaTest: test_: instance methods maestrano? should return false if uid is blank. -----------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------------------------------------ MaestranoGroupViaTest: test_: instance methods maestrano? should return true if provider is maestrano and uid not null. ------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------- GroupUsersControllerTest: test_: authenticated should be successful. ---------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Account::GroupUsersController#destroy as HTML Parameters: {"group_id"=>"cld-1", "id"=>"usr-1"} Filter chain halted as :authenticate_maestrano! rendered or redirected Completed 401 Unauthorized in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction --------------------------------------------------------------------- GroupUsersControllerTest: test_: unauthenticated should deny access. ---------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Account::GroupUsersController#destroy as HTML Parameters: {"group_id"=>"cld-1", "id"=>"usr-1"} Filter chain halted as :authenticate_maestrano! rendered or redirected Completed 401 Unauthorized in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------------------- GroupGeneratorTest: test_: GroupGenerator should call the active_record migration generator successfully. ----------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------------- GroupGeneratorTest: test_: GroupGenerator should call the mongoid migration generator successfully. ----------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ----------------------------------------------------------------- GroupsControllerTest: test_: authenticated should be successful. -----------------------------------------------------------------  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Account::GroupsController#destroy as HTML Parameters: {"id"=>"cld-1"} Filter chain halted as :authenticate_maestrano! rendered or redirected Completed 401 Unauthorized in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction ----------------------------------------------------------------- GroupsControllerTest: test_: unauthenticated should deny access. -----------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Account::GroupsController#destroy as HTML Parameters: {"id"=>"cld-1"} Filter chain halted as :authenticate_maestrano! rendered or redirected Completed 401 Unauthorized in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------------------------------- GenericControllerTest: test_: with a maestrano session should be successful if the maestrano session is still valid. ---------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by PagesController#home as HTML Completed 200 OK in 7ms (Views: 7.2ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction -------------------------------------------------------------------------------------------------------------------- GenericControllerTest: test_: with a maestrano session should initialize redirect to SSO initialization if invalid. --------------------------------------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by PagesController#home as HTML Redirected to http://localhost::3000/maestrano/auth/saml/init Filter chain halted as :verify_maestrano_session rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) rollback transaction ----------------------------------------------------------------------------------------------------------- GenericControllerTest: test_: with a maestrano session should not redirect to SSO init if sso is disabled. -----------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by PagesController#home as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction ------------------------------------------------------------------------------ GenericControllerTest: test_: with no maestrano session should be successful. ------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by PagesController#home as HTML Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------ ActiveRecordUserGeneratorTest: test_: namespaced model should create the right migration. ------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: namespaced model should edit the model content. --------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should create the right migration. --------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should edit the model content. ----------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should include parameters if rails 3 and strong_parameter not present. --------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should not include parameters if rails 3 and strong_parameter present. --------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should not include parameters in rails 4. ---------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: namespaced model should create the right migration. -------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: namespaced model should edit the model content. ---------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction --------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should create the right migration. ---------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ----------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should edit the model content. -----------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should include parameters if rails 3 and strong_parameter not present. ---------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should not include parameters if rails 3 and strong_parameter present. ---------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should not include parameters in rails 4. ----------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase error should redirect to maestrano on any error. ----------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Bla Redirected to http://api-sandbox.maestrano.io/app_access_unauthorized?err=internal Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) rollback transaction -------------------------------------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should reset the maestrano session successfully if one already exists. --------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction --------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should set a saml_request in scope. ---------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction -------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should set the group_auth_hash in scope. --------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should set the maestrano session. -------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should set the user_auth_hash in scope. -------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------ SamlBaseControllerTest: test_: consume phase should set the user_group_rel_hash in scope. ------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: init phase should create a saml request successfully if a maestrano session is already set. ---------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#init as HTML Parameters: {"a_param"=>"value"} Redirected to http://idpprovider.com?r=request Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ----------------------------------------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: init phase should create a saml request using params and session and redirect the user. -----------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#init as HTML Parameters: {"a_param"=>"value"} Redirected to http://idpprovider.com?r=request Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction --------------------------------------------------------------------------------------- InstallGeneratorTest: test_: InstallGenerator should create the maestrano initializer. ---------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction ---------------------------------------------------------------------------------- InstallGeneratorTest: test_: InstallGenerator should create the maestrano routes. ----------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction ---------------------------------------------------------------------------------------------------------- InstallGeneratorTest: test_: InstallGenerator should create the maestrano/account/group_users_controller. ----------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction ----------------------------------------------------------------------------------------------------- InstallGeneratorTest: test_: InstallGenerator should create the maestrano/account/groups_controller. -----------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction ------------------------------------------------------------------------------------------------ InstallGeneratorTest: test_: InstallGenerator should create the maestrano/auth/saml_controller. ------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction ------------------------------ MaestranoRailsTest: test_truth ------------------------------  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------- MetadataControllerTest: test_: authenticated should be successful. -------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------- MetadataControllerTest: test_: unauthenticated should deny access. -------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ----------------------------------------------------------------- GroupsControllerTest: test_: authenticated should be successful. -----------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Account::GroupsController#destroy as HTML Parameters: {"id"=>"cld-1"} Filter chain halted as :authenticate_maestrano! rendered or redirected Completed 401 Unauthorized in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction ----------------------------------------------------------------- GroupsControllerTest: test_: unauthenticated should deny access. -----------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Account::GroupsController#destroy as HTML Parameters: {"id"=>"cld-1"} Filter chain halted as :authenticate_maestrano! rendered or redirected Completed 401 Unauthorized in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------------------------------- GenericControllerTest: test_: with a maestrano session should be successful if the maestrano session is still valid. ---------------------------------------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by PagesController#home as HTML Completed 200 OK in 7ms (Views: 6.9ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction -------------------------------------------------------------------------------------------------------------------- GenericControllerTest: test_: with a maestrano session should initialize redirect to SSO initialization if invalid. --------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by PagesController#home as HTML Redirected to http://localhost::3000/maestrano/auth/saml/init Filter chain halted as :verify_maestrano_session rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ----------------------------------------------------------------------------------------------------------- GenericControllerTest: test_: with a maestrano session should not redirect to SSO init if sso is disabled. -----------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by PagesController#home as HTML Completed 200 OK in 1ms (Views: 1.0ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction ------------------------------------------------------------------------------ GenericControllerTest: test_: with no maestrano session should be successful. ------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction Processing by PagesController#home as HTML Completed 200 OK in 1ms (Views: 0.9ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction --------------------------------------------------------------------- GroupUsersControllerTest: test_: authenticated should be successful. ---------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Account::GroupUsersController#destroy as HTML Parameters: {"group_id"=>"cld-1", "id"=>"usr-1"} Filter chain halted as :authenticate_maestrano! rendered or redirected Completed 401 Unauthorized in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction --------------------------------------------------------------------- GroupUsersControllerTest: test_: unauthenticated should deny access. ---------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Account::GroupUsersController#destroy as HTML Parameters: {"group_id"=>"cld-1", "id"=>"usr-1"} Filter chain halted as :authenticate_maestrano! rendered or redirected Completed 401 Unauthorized in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: class methods find_or_create_for_maestrano class method should create a monster using the mapping block. --------------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction MnoMonster Load (0.1ms) SELECT "mno_monsters".* FROM "mno_monsters" WHERE "mno_monsters"."provider" = 'maestrano' AND "mno_monsters"."uid" = 'usr-2' AND "mno_monsters"."tenant" = 'default' ORDER BY "mno_monsters"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "mno_monsters" ("created_at", "email", "first_name", "last_name", "provider", "tenant", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2016-01-20 04:59:09.938418"], ["email", "monster@monst.com"], ["first_name", "Mon"], ["last_name", "Ster"], ["provider", "maestrano"], ["tenant", "default"], ["uid", "usr-2"], ["updated_at", "2016-01-20 04:59:09.938418"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: class methods find_or_create_for_maestrano class method should not return a MnoMonster from another provider if it exists. --------------------------------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "mno_monsters" ("created_at", "email", "first_name", "last_name", "provider", "tenant", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2016-01-20 04:59:09.941424"], ["email", "monster@co.com"], ["first_name", "John"], ["last_name", "Jack"], ["provider", "someoneelse"], ["tenant", "default"], ["uid", "usr-1"], ["updated_at", "2016-01-20 04:59:09.941424"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 MnoMonster Load (0.1ms) SELECT "mno_monsters".* FROM "mno_monsters" WHERE "mno_monsters"."provider" = 'maestrano' AND "mno_monsters"."uid" = 'usr-1' AND "mno_monsters"."tenant" = 'default' ORDER BY "mno_monsters"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "mno_monsters" ("created_at", "provider", "tenant", "uid", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2016-01-20 04:59:09.942638"], ["provider", "maestrano"], ["tenant", "default"], ["uid", "usr-1"], ["updated_at", "2016-01-20 04:59:09.942638"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: class methods find_or_create_for_maestrano class method should return the MnoMonster if it exists. --------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "mno_monsters" ("created_at", "email", "first_name", "last_name", "provider", "tenant", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2016-01-20 04:59:09.944084"], ["email", "monster@co.com"], ["first_name", "John"], ["last_name", "Jack"], ["provider", "maestrano"], ["tenant", "default"], ["uid", "usr-1"], ["updated_at", "2016-01-20 04:59:09.944084"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 MnoMonster Load (0.1ms) SELECT "mno_monsters".* FROM "mno_monsters" WHERE "mno_monsters"."provider" = 'maestrano' AND "mno_monsters"."uid" = 'usr-1' AND "mno_monsters"."tenant" = 'default' ORDER BY "mno_monsters"."id" ASC LIMIT 1  (0.1ms) rollback transaction --------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: class methods maestrano_*_via should have the right field definition. ---------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------------------------ MaestranoUserViaTest: test_: instance methods maestrano? should return false if provider is something else. ------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: instance methods maestrano? should return false if uid is blank. ----------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ----------------------------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: instance methods maestrano? should return true if provider is maestrano and uid not null. -----------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------------------- GroupGeneratorTest: test_: GroupGenerator should call the active_record migration generator successfully. ----------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction ---------------------------------------------------------------------------------------------------- GroupGeneratorTest: test_: GroupGenerator should call the mongoid migration generator successfully. ----------------------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction ------------------------------ MaestranoRailsTest: test_truth ------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase error should redirect to maestrano on any error. ----------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Bla Redirected to http://api-sandbox.maestrano.io/app_access_unauthorized?err=internal Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should reset the maestrano session successfully if one already exists. --------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction --------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should set a saml_request in scope. ---------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction -------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should set the group_auth_hash in scope. --------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) rollback transaction ------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should set the maestrano session. -------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should set the user_auth_hash in scope. -------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------ SamlBaseControllerTest: test_: consume phase should set the user_group_rel_hash in scope. ------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: init phase should create a saml request successfully if a maestrano session is already set. ---------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#init as HTML Parameters: {"a_param"=>"value"} Redirected to http://idpprovider.com?r=request Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ----------------------------------------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: init phase should create a saml request using params and session and redirect the user. -----------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction Processing by Maestrano::Auth::SamlController#init as HTML Parameters: {"a_param"=>"value"} Redirected to http://idpprovider.com?r=request Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------- MetadataControllerTest: test_: authenticated should be successful. -------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction ------------------------------------------------------------------- MetadataControllerTest: test_: unauthenticated should deny access. -------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction --------------------------------------------------------------------------------------------------------------------------------------- MaestranoGroupViaTest: test_: class methods find_or_create_for_maestrano class method should create a monster using the mapping block. ---------------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction MnoCrew Load (0.1ms) SELECT "mno_crews".* FROM "mno_crews" WHERE "mno_crews"."provider" = 'maestrano' AND "mno_crews"."uid" = 'usr-2' AND "mno_crews"."tenant" = 'default' ORDER BY "mno_crews"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "mno_crews" ("created_at", "name", "provider", "tenant", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2016-01-20 04:59:09.993700"], ["name", "Monster Co"], ["provider", "maestrano"], ["tenant", "default"], ["uid", "usr-2"], ["updated_at", "2016-01-20 04:59:09.993700"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction ------------------------------------------------------------------------------------------------------------------------------------------------------ MaestranoGroupViaTest: test_: class methods find_or_create_for_maestrano class method should not return a MnoCrew from another provider if it exists. ------------------------------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "mno_crews" ("created_at", "name", "provider", "tenant", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2016-01-20 04:59:09.995262"], ["name", "SomeOtherCrew"], ["provider", "someoneelse"], ["tenant", "default"], ["uid", "usr-1"], ["updated_at", "2016-01-20 04:59:09.995262"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 MnoCrew Load (0.1ms) SELECT "mno_crews".* FROM "mno_crews" WHERE "mno_crews"."provider" = 'maestrano' AND "mno_crews"."uid" = 'cld-1' AND "mno_crews"."tenant" = 'default' ORDER BY "mno_crews"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "mno_crews" ("created_at", "name", "provider", "tenant", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2016-01-20 04:59:09.996333"], ["name", "Your Group"], ["provider", "maestrano"], ["tenant", "default"], ["uid", "cld-1"], ["updated_at", "2016-01-20 04:59:09.996333"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction ------------------------------------------------------------------------------------------------------------------------------ MaestranoGroupViaTest: test_: class methods find_or_create_for_maestrano class method should return the MnoCrew if it exists. ------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "mno_crews" ("created_at", "name", "provider", "tenant", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2016-01-20 04:59:09.997502"], ["name", "SomeCrew"], ["provider", "maestrano"], ["tenant", "default"], ["uid", "cld-1"], ["updated_at", "2016-01-20 04:59:09.997502"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 MnoCrew Load (0.1ms) SELECT "mno_crews".* FROM "mno_crews" WHERE "mno_crews"."provider" = 'maestrano' AND "mno_crews"."uid" = 'cld-1' AND "mno_crews"."tenant" = 'default' ORDER BY "mno_crews"."id" ASC LIMIT 1  (0.1ms) rollback transaction ---------------------------------------------------------------------------------------------------- MaestranoGroupViaTest: test_: class methods maestrano_*_via should have the right field definition. ----------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------------------------- MaestranoGroupViaTest: test_: instance methods maestrano? should return false if provider is something else. -------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ----------------------------------------------------------------------------------------------- MaestranoGroupViaTest: test_: instance methods maestrano? should return false if uid is blank. -----------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------------------------------------ MaestranoGroupViaTest: test_: instance methods maestrano? should return true if provider is maestrano and uid not null. ------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: namespaced model should create the right migration. -------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: namespaced model should edit the model content. ---------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should create the right migration. ---------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ----------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should edit the model content. -----------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should include parameters if rails 3 and strong_parameter not present. ---------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction --------------------------------------------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should not include parameters if rails 3 and strong_parameter present. ---------------------------------------------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should not include parameters in rails 4. ----------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------- InstallGeneratorTest: test_: InstallGenerator should create the maestrano initializer. ---------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction ---------------------------------------------------------------------------------- InstallGeneratorTest: test_: InstallGenerator should create the maestrano routes. ----------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction ---------------------------------------------------------------------------------------------------------- InstallGeneratorTest: test_: InstallGenerator should create the maestrano/account/group_users_controller. ----------------------------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction ----------------------------------------------------------------------------------------------------- InstallGeneratorTest: test_: InstallGenerator should create the maestrano/account/groups_controller. -----------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction ------------------------------------------------------------------------------------------------ InstallGeneratorTest: test_: InstallGenerator should create the maestrano/auth/saml_controller. ------------------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction ------------------------------------------------------------------------------------------ ActiveRecordUserGeneratorTest: test_: namespaced model should create the right migration. ------------------------------------------------------------------------------------------  (0.2ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: namespaced model should edit the model content. --------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should create the right migration. --------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should edit the model content. ----------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should include parameters if rails 3 and strong_parameter not present. --------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should not include parameters if rails 3 and strong_parameter present. --------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should not include parameters in rails 4. ---------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------------- UserGeneratorTest: test_: UserGenerator should call the active_record migration generator successfully. --------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction -------------------------------------------------------------------------------------------------- UserGeneratorTest: test_: UserGenerator should call the mongoid migration generator successfully. --------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ------------------------------------------------------------------- MetadataControllerTest: test_: authenticated should be successful. -------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------- MetadataControllerTest: test_: unauthenticated should deny access. -------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------------- UserGeneratorTest: test_: UserGenerator should call the active_record migration generator successfully. --------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction -------------------------------------------------------------------------------------------------- UserGeneratorTest: test_: UserGenerator should call the mongoid migration generator successfully. --------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction ---------------------------------------------------------------------------------------------------------- GroupGeneratorTest: test_: GroupGenerator should call the active_record migration generator successfully. ----------------------------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------------- GroupGeneratorTest: test_: GroupGenerator should call the mongoid migration generator successfully. ----------------------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction ---------------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase error should redirect to maestrano on any error. ----------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Bla Redirected to http://api-sandbox.maestrano.io/app_access_unauthorized?err=internal Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) rollback transaction -------------------------------------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should reset the maestrano session successfully if one already exists. --------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction --------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should set a saml_request in scope. ---------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) rollback transaction -------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should set the group_auth_hash in scope. --------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should set the maestrano session. -------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should set the user_auth_hash in scope. -------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------ SamlBaseControllerTest: test_: consume phase should set the user_group_rel_hash in scope. ------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: init phase should create a saml request successfully if a maestrano session is already set. ---------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#init as HTML Parameters: {"a_param"=>"value"} Redirected to http://idpprovider.com?r=request Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ----------------------------------------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: init phase should create a saml request using params and session and redirect the user. -----------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#init as HTML Parameters: {"a_param"=>"value"} Redirected to http://idpprovider.com?r=request Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------------------------------- GenericControllerTest: test_: with a maestrano session should be successful if the maestrano session is still valid. ---------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by PagesController#home as HTML Completed 200 OK in 8ms (Views: 7.9ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction -------------------------------------------------------------------------------------------------------------------- GenericControllerTest: test_: with a maestrano session should initialize redirect to SSO initialization if invalid. --------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by PagesController#home as HTML Redirected to http://localhost::3000/maestrano/auth/saml/init Filter chain halted as :verify_maestrano_session rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) rollback transaction ----------------------------------------------------------------------------------------------------------- GenericControllerTest: test_: with a maestrano session should not redirect to SSO init if sso is disabled. -----------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by PagesController#home as HTML Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------------------ GenericControllerTest: test_: with no maestrano session should be successful. ------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by PagesController#home as HTML Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: namespaced model should create the right migration. -------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: namespaced model should edit the model content. ---------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should create the right migration. ---------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ----------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should edit the model content. -----------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should include parameters if rails 3 and strong_parameter not present. ---------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction --------------------------------------------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should not include parameters if rails 3 and strong_parameter present. ---------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction ---------------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should not include parameters in rails 4. ----------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------ MaestranoRailsTest: test_truth ------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------------------------------------------------- MaestranoGroupViaTest: test_: class methods find_or_create_for_maestrano class method should create a monster using the mapping block. ---------------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction MnoCrew Load (0.1ms) SELECT "mno_crews".* FROM "mno_crews" WHERE "mno_crews"."provider" = 'maestrano' AND "mno_crews"."uid" = 'usr-2' AND "mno_crews"."tenant" = 'default' ORDER BY "mno_crews"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "mno_crews" ("created_at", "name", "provider", "tenant", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2016-01-20 05:00:18.889796"], ["name", "Monster Co"], ["provider", "maestrano"], ["tenant", "default"], ["uid", "usr-2"], ["updated_at", "2016-01-20 05:00:18.889796"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction ------------------------------------------------------------------------------------------------------------------------------------------------------ MaestranoGroupViaTest: test_: class methods find_or_create_for_maestrano class method should not return a MnoCrew from another provider if it exists. ------------------------------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "mno_crews" ("created_at", "name", "provider", "tenant", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2016-01-20 05:00:18.892692"], ["name", "SomeOtherCrew"], ["provider", "someoneelse"], ["tenant", "default"], ["uid", "usr-1"], ["updated_at", "2016-01-20 05:00:18.892692"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 MnoCrew Load (0.1ms) SELECT "mno_crews".* FROM "mno_crews" WHERE "mno_crews"."provider" = 'maestrano' AND "mno_crews"."uid" = 'cld-1' AND "mno_crews"."tenant" = 'default' ORDER BY "mno_crews"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "mno_crews" ("created_at", "name", "provider", "tenant", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2016-01-20 05:00:18.893838"], ["name", "Your Group"], ["provider", "maestrano"], ["tenant", "default"], ["uid", "cld-1"], ["updated_at", "2016-01-20 05:00:18.893838"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction ------------------------------------------------------------------------------------------------------------------------------ MaestranoGroupViaTest: test_: class methods find_or_create_for_maestrano class method should return the MnoCrew if it exists. ------------------------------------------------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "mno_crews" ("created_at", "name", "provider", "tenant", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2016-01-20 05:00:18.895273"], ["name", "SomeCrew"], ["provider", "maestrano"], ["tenant", "default"], ["uid", "cld-1"], ["updated_at", "2016-01-20 05:00:18.895273"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 MnoCrew Load (0.1ms) SELECT "mno_crews".* FROM "mno_crews" WHERE "mno_crews"."provider" = 'maestrano' AND "mno_crews"."uid" = 'cld-1' AND "mno_crews"."tenant" = 'default' ORDER BY "mno_crews"."id" ASC LIMIT 1  (0.1ms) rollback transaction ---------------------------------------------------------------------------------------------------- MaestranoGroupViaTest: test_: class methods maestrano_*_via should have the right field definition. ----------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------------------------- MaestranoGroupViaTest: test_: instance methods maestrano? should return false if provider is something else. -------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ----------------------------------------------------------------------------------------------- MaestranoGroupViaTest: test_: instance methods maestrano? should return false if uid is blank. -----------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------------------------------------ MaestranoGroupViaTest: test_: instance methods maestrano? should return true if provider is maestrano and uid not null. ------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------ ActiveRecordUserGeneratorTest: test_: namespaced model should create the right migration. ------------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: namespaced model should edit the model content. --------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should create the right migration. --------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should edit the model content. ----------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should include parameters if rails 3 and strong_parameter not present. --------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should not include parameters if rails 3 and strong_parameter present. --------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should not include parameters in rails 4. ---------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ----------------------------------------------------------------- GroupsControllerTest: test_: authenticated should be successful. -----------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Account::GroupsController#destroy as HTML Parameters: {"id"=>"cld-1"} Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ----------------------------------------------------------------- GroupsControllerTest: test_: unauthenticated should deny access. -----------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Account::GroupsController#destroy as HTML Parameters: {"id"=>"cld-1"} Filter chain halted as :authenticate_maestrano! rendered or redirected Completed 401 Unauthorized in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: class methods find_or_create_for_maestrano class method should create a monster using the mapping block. --------------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction MnoMonster Load (0.1ms) SELECT "mno_monsters".* FROM "mno_monsters" WHERE "mno_monsters"."provider" = 'maestrano' AND "mno_monsters"."uid" = 'usr-2' AND "mno_monsters"."tenant" = 'default' ORDER BY "mno_monsters"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "mno_monsters" ("created_at", "email", "first_name", "last_name", "provider", "tenant", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2016-01-20 05:00:18.930042"], ["email", "monster@monst.com"], ["first_name", "Mon"], ["last_name", "Ster"], ["provider", "maestrano"], ["tenant", "default"], ["uid", "usr-2"], ["updated_at", "2016-01-20 05:00:18.930042"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: class methods find_or_create_for_maestrano class method should not return a MnoMonster from another provider if it exists. --------------------------------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "mno_monsters" ("created_at", "email", "first_name", "last_name", "provider", "tenant", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2016-01-20 05:00:18.931846"], ["email", "monster@co.com"], ["first_name", "John"], ["last_name", "Jack"], ["provider", "someoneelse"], ["tenant", "default"], ["uid", "usr-1"], ["updated_at", "2016-01-20 05:00:18.931846"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 MnoMonster Load (0.1ms) SELECT "mno_monsters".* FROM "mno_monsters" WHERE "mno_monsters"."provider" = 'maestrano' AND "mno_monsters"."uid" = 'usr-1' AND "mno_monsters"."tenant" = 'default' ORDER BY "mno_monsters"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "mno_monsters" ("created_at", "provider", "tenant", "uid", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2016-01-20 05:00:18.933078"], ["provider", "maestrano"], ["tenant", "default"], ["uid", "usr-1"], ["updated_at", "2016-01-20 05:00:18.933078"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: class methods find_or_create_for_maestrano class method should return the MnoMonster if it exists. --------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "mno_monsters" ("created_at", "email", "first_name", "last_name", "provider", "tenant", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2016-01-20 05:00:18.934464"], ["email", "monster@co.com"], ["first_name", "John"], ["last_name", "Jack"], ["provider", "maestrano"], ["tenant", "default"], ["uid", "usr-1"], ["updated_at", "2016-01-20 05:00:18.934464"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 MnoMonster Load (0.1ms) SELECT "mno_monsters".* FROM "mno_monsters" WHERE "mno_monsters"."provider" = 'maestrano' AND "mno_monsters"."uid" = 'usr-1' AND "mno_monsters"."tenant" = 'default' ORDER BY "mno_monsters"."id" ASC LIMIT 1  (0.1ms) rollback transaction --------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: class methods maestrano_*_via should have the right field definition. ---------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------------------------ MaestranoUserViaTest: test_: instance methods maestrano? should return false if provider is something else. ------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: instance methods maestrano? should return false if uid is blank. ----------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ----------------------------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: instance methods maestrano? should return true if provider is maestrano and uid not null. -----------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------- InstallGeneratorTest: test_: InstallGenerator should create the maestrano initializer. ---------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction ---------------------------------------------------------------------------------- InstallGeneratorTest: test_: InstallGenerator should create the maestrano routes. ----------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction ---------------------------------------------------------------------------------------------------------- InstallGeneratorTest: test_: InstallGenerator should create the maestrano/account/group_users_controller. ----------------------------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction ----------------------------------------------------------------------------------------------------- InstallGeneratorTest: test_: InstallGenerator should create the maestrano/account/groups_controller. -----------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction ------------------------------------------------------------------------------------------------ InstallGeneratorTest: test_: InstallGenerator should create the maestrano/auth/saml_controller. ------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction --------------------------------------------------------------------- GroupUsersControllerTest: test_: authenticated should be successful. ---------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Account::GroupUsersController#destroy as HTML Parameters: {"group_id"=>"cld-1", "id"=>"usr-1"} Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction --------------------------------------------------------------------- GroupUsersControllerTest: test_: unauthenticated should deny access. ---------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Account::GroupUsersController#destroy as HTML Parameters: {"group_id"=>"cld-1", "id"=>"usr-1"} Filter chain halted as :authenticate_maestrano! rendered or redirected Completed 401 Unauthorized in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" -------------------------------------------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: class methods find_or_create_for_maestrano class method should create a monster using the mapping block. --------------------------------------------------------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction MnoMonster Load (0.1ms) SELECT "mno_monsters".* FROM "mno_monsters" WHERE "mno_monsters"."provider" = 'maestrano' AND "mno_monsters"."uid" = 'usr-2' AND "mno_monsters"."tenant" = 'default' ORDER BY "mno_monsters"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "mno_monsters" ("created_at", "email", "first_name", "last_name", "provider", "tenant", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2016-01-20 05:02:09.376124"], ["email", "monster@monst.com"], ["first_name", "Mon"], ["last_name", "Ster"], ["provider", "maestrano"], ["tenant", "default"], ["uid", "usr-2"], ["updated_at", "2016-01-20 05:02:09.376124"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: class methods find_or_create_for_maestrano class method should not return a MnoMonster from another provider if it exists. --------------------------------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "mno_monsters" ("created_at", "email", "first_name", "last_name", "provider", "tenant", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2016-01-20 05:02:09.379173"], ["email", "monster@co.com"], ["first_name", "John"], ["last_name", "Jack"], ["provider", "someoneelse"], ["tenant", "default"], ["uid", "usr-1"], ["updated_at", "2016-01-20 05:02:09.379173"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 MnoMonster Load (0.1ms) SELECT "mno_monsters".* FROM "mno_monsters" WHERE "mno_monsters"."provider" = 'maestrano' AND "mno_monsters"."uid" = 'usr-1' AND "mno_monsters"."tenant" = 'default' ORDER BY "mno_monsters"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "mno_monsters" ("created_at", "provider", "tenant", "uid", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2016-01-20 05:02:09.380449"], ["provider", "maestrano"], ["tenant", "default"], ["uid", "usr-1"], ["updated_at", "2016-01-20 05:02:09.380449"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: class methods find_or_create_for_maestrano class method should return the MnoMonster if it exists. --------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "mno_monsters" ("created_at", "email", "first_name", "last_name", "provider", "tenant", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2016-01-20 05:02:09.381983"], ["email", "monster@co.com"], ["first_name", "John"], ["last_name", "Jack"], ["provider", "maestrano"], ["tenant", "default"], ["uid", "usr-1"], ["updated_at", "2016-01-20 05:02:09.381983"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 MnoMonster Load (0.2ms) SELECT "mno_monsters".* FROM "mno_monsters" WHERE "mno_monsters"."provider" = 'maestrano' AND "mno_monsters"."uid" = 'usr-1' AND "mno_monsters"."tenant" = 'default' ORDER BY "mno_monsters"."id" ASC LIMIT 1  (0.1ms) rollback transaction --------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: class methods maestrano_*_via should have the right field definition. ---------------------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------------------------ MaestranoUserViaTest: test_: instance methods maestrano? should return false if provider is something else. ------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: instance methods maestrano? should return false if uid is blank. ----------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ----------------------------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: instance methods maestrano? should return true if provider is maestrano and uid not null. -----------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------------------------------- GenericControllerTest: test_: with a maestrano session should be successful if the maestrano session is still valid. ---------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by PagesController#home as HTML Rendered pages/home.html.erb within layouts/application (0.3ms) Completed 200 OK in 8ms (Views: 7.4ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction -------------------------------------------------------------------------------------------------------------------- GenericControllerTest: test_: with a maestrano session should initialize redirect to SSO initialization if invalid. --------------------------------------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction Processing by PagesController#home as HTML Redirected to http://localhost::3000/maestrano/auth/saml/init Filter chain halted as :verify_maestrano_session rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.1ms) rollback transaction ----------------------------------------------------------------------------------------------------------- GenericControllerTest: test_: with a maestrano session should not redirect to SSO init if sso is disabled. -----------------------------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by PagesController#home as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------------------ GenericControllerTest: test_: with no maestrano session should be successful. ------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by PagesController#home as HTML Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------ MaestranoRailsTest: test_truth ------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase error should redirect to maestrano on any error. ----------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Bla Redirected to http://api-sandbox.maestrano.io/app_access_unauthorized?err=internal Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should reset the maestrano session successfully if one already exists. --------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction --------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should set a saml_request in scope. ---------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction -------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should set the group_auth_hash in scope. --------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should set the maestrano session. -------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should set the user_auth_hash in scope. -------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------ SamlBaseControllerTest: test_: consume phase should set the user_group_rel_hash in scope. ------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: init phase should create a saml request successfully if a maestrano session is already set. ---------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#init as HTML Parameters: {"a_param"=>"value"} Redirected to http://idpprovider.com?r=request Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ----------------------------------------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: init phase should create a saml request using params and session and redirect the user. -----------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#init as HTML Parameters: {"a_param"=>"value"} Redirected to http://idpprovider.com?r=request Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------------------- GroupGeneratorTest: test_: GroupGenerator should call the active_record migration generator successfully. ----------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------------- GroupGeneratorTest: test_: GroupGenerator should call the mongoid migration generator successfully. ----------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------------- UserGeneratorTest: test_: UserGenerator should call the active_record migration generator successfully. --------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction -------------------------------------------------------------------------------------------------- UserGeneratorTest: test_: UserGenerator should call the mongoid migration generator successfully. --------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction --------------------------------------------------------------------- GroupUsersControllerTest: test_: authenticated should be successful. ---------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Account::GroupUsersController#destroy as HTML Parameters: {"group_id"=>"cld-1", "id"=>"usr-1"} Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction --------------------------------------------------------------------- GroupUsersControllerTest: test_: unauthenticated should deny access. ---------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Account::GroupUsersController#destroy as HTML Parameters: {"group_id"=>"cld-1", "id"=>"usr-1"} Filter chain halted as :authenticate_maestrano! rendered or redirected Completed 401 Unauthorized in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------- MetadataControllerTest: test_: authenticated should be successful. -------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------- MetadataControllerTest: test_: unauthenticated should deny access. -------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: namespaced model should create the right migration. -------------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: namespaced model should edit the model content. ---------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should create the right migration. ---------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ----------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should edit the model content. -----------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should include parameters if rails 3 and strong_parameter not present. ---------------------------------------------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should not include parameters if rails 3 and strong_parameter present. ---------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should not include parameters in rails 4. ----------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------ ActiveRecordUserGeneratorTest: test_: namespaced model should create the right migration. ------------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction -------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: namespaced model should edit the model content. --------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should create the right migration. --------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should edit the model content. ----------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should include parameters if rails 3 and strong_parameter not present. --------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should not include parameters if rails 3 and strong_parameter present. --------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should not include parameters in rails 4. ---------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ----------------------------------------------------------------- GroupsControllerTest: test_: authenticated should be successful. -----------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Account::GroupsController#destroy as HTML Parameters: {"id"=>"cld-1"} Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ----------------------------------------------------------------- GroupsControllerTest: test_: unauthenticated should deny access. -----------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Account::GroupsController#destroy as HTML Parameters: {"id"=>"cld-1"} Filter chain halted as :authenticate_maestrano! rendered or redirected Completed 401 Unauthorized in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction --------------------------------------------------------------------------------------------------------------------------------------- MaestranoGroupViaTest: test_: class methods find_or_create_for_maestrano class method should create a monster using the mapping block. ---------------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction MnoCrew Load (0.1ms) SELECT "mno_crews".* FROM "mno_crews" WHERE "mno_crews"."provider" = 'maestrano' AND "mno_crews"."uid" = 'usr-2' AND "mno_crews"."tenant" = 'default' ORDER BY "mno_crews"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "mno_crews" ("created_at", "name", "provider", "tenant", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2016-01-20 05:02:09.524316"], ["name", "Monster Co"], ["provider", "maestrano"], ["tenant", "default"], ["uid", "usr-2"], ["updated_at", "2016-01-20 05:02:09.524316"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction ------------------------------------------------------------------------------------------------------------------------------------------------------ MaestranoGroupViaTest: test_: class methods find_or_create_for_maestrano class method should not return a MnoCrew from another provider if it exists. ------------------------------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "mno_crews" ("created_at", "name", "provider", "tenant", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2016-01-20 05:02:09.525979"], ["name", "SomeOtherCrew"], ["provider", "someoneelse"], ["tenant", "default"], ["uid", "usr-1"], ["updated_at", "2016-01-20 05:02:09.525979"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 MnoCrew Load (0.1ms) SELECT "mno_crews".* FROM "mno_crews" WHERE "mno_crews"."provider" = 'maestrano' AND "mno_crews"."uid" = 'cld-1' AND "mno_crews"."tenant" = 'default' ORDER BY "mno_crews"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "mno_crews" ("created_at", "name", "provider", "tenant", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2016-01-20 05:02:09.527078"], ["name", "Your Group"], ["provider", "maestrano"], ["tenant", "default"], ["uid", "cld-1"], ["updated_at", "2016-01-20 05:02:09.527078"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction ------------------------------------------------------------------------------------------------------------------------------ MaestranoGroupViaTest: test_: class methods find_or_create_for_maestrano class method should return the MnoCrew if it exists. ------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "mno_crews" ("created_at", "name", "provider", "tenant", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2016-01-20 05:02:09.528382"], ["name", "SomeCrew"], ["provider", "maestrano"], ["tenant", "default"], ["uid", "cld-1"], ["updated_at", "2016-01-20 05:02:09.528382"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 MnoCrew Load (0.1ms) SELECT "mno_crews".* FROM "mno_crews" WHERE "mno_crews"."provider" = 'maestrano' AND "mno_crews"."uid" = 'cld-1' AND "mno_crews"."tenant" = 'default' ORDER BY "mno_crews"."id" ASC LIMIT 1  (0.1ms) rollback transaction ---------------------------------------------------------------------------------------------------- MaestranoGroupViaTest: test_: class methods maestrano_*_via should have the right field definition. ----------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------------------------- MaestranoGroupViaTest: test_: instance methods maestrano? should return false if provider is something else. -------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ----------------------------------------------------------------------------------------------- MaestranoGroupViaTest: test_: instance methods maestrano? should return false if uid is blank. -----------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------------------------------------ MaestranoGroupViaTest: test_: instance methods maestrano? should return true if provider is maestrano and uid not null. ------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------- InstallGeneratorTest: test_: InstallGenerator should create the maestrano initializer. ---------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction ---------------------------------------------------------------------------------- InstallGeneratorTest: test_: InstallGenerator should create the maestrano routes. ----------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction ---------------------------------------------------------------------------------------------------------- InstallGeneratorTest: test_: InstallGenerator should create the maestrano/account/group_users_controller. ----------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction ----------------------------------------------------------------------------------------------------- InstallGeneratorTest: test_: InstallGenerator should create the maestrano/account/groups_controller. -----------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction ------------------------------------------------------------------------------------------------ InstallGeneratorTest: test_: InstallGenerator should create the maestrano/auth/saml_controller. ------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ---------------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase error should redirect to maestrano on any error. ----------------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Bla Redirected to http://api-sandbox.maestrano.io/app_access_unauthorized?err=internal Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should reset the maestrano session successfully if one already exists. --------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction --------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should set a saml_request in scope. ---------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction -------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should set the group_auth_hash in scope. --------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should set the maestrano session. -------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should set the user_auth_hash in scope. -------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------ SamlBaseControllerTest: test_: consume phase should set the user_group_rel_hash in scope. ------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: init phase should create a saml request successfully if a maestrano session is already set. ---------------------------------------------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#init as HTML Parameters: {"a_param"=>"value"} Redirected to http://idpprovider.com?r=request Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ----------------------------------------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: init phase should create a saml request using params and session and redirect the user. -----------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#init as HTML Parameters: {"a_param"=>"value"} Redirected to http://idpprovider.com?r=request Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction --------------------------------------------------------------------- GroupUsersControllerTest: test_: authenticated should be successful. ---------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Account::GroupUsersController#destroy as HTML Parameters: {"group_id"=>"cld-1", "id"=>"usr-1"} Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction --------------------------------------------------------------------- GroupUsersControllerTest: test_: unauthenticated should deny access. ---------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction Processing by Maestrano::Account::GroupUsersController#destroy as HTML Parameters: {"group_id"=>"cld-1", "id"=>"usr-1"} Filter chain halted as :authenticate_maestrano! rendered or redirected Completed 401 Unauthorized in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction ------------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: namespaced model should create the right migration. -------------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: namespaced model should edit the model content. ---------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should create the right migration. ---------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction ----------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should edit the model content. -----------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should include parameters if rails 3 and strong_parameter not present. ---------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should not include parameters if rails 3 and strong_parameter present. ---------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should not include parameters in rails 4. ----------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------------------------------------------------- MaestranoGroupViaTest: test_: class methods find_or_create_for_maestrano class method should create a monster using the mapping block. ---------------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction MnoCrew Load (0.1ms) SELECT "mno_crews".* FROM "mno_crews" WHERE "mno_crews"."provider" = 'maestrano' AND "mno_crews"."uid" = 'usr-2' AND "mno_crews"."tenant" = 'default' ORDER BY "mno_crews"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "mno_crews" ("created_at", "name", "provider", "tenant", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2016-01-20 05:04:35.527585"], ["name", "Monster Co"], ["provider", "maestrano"], ["tenant", "default"], ["uid", "usr-2"], ["updated_at", "2016-01-20 05:04:35.527585"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction ------------------------------------------------------------------------------------------------------------------------------------------------------ MaestranoGroupViaTest: test_: class methods find_or_create_for_maestrano class method should not return a MnoCrew from another provider if it exists. ------------------------------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "mno_crews" ("created_at", "name", "provider", "tenant", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2016-01-20 05:04:35.531079"], ["name", "SomeOtherCrew"], ["provider", "someoneelse"], ["tenant", "default"], ["uid", "usr-1"], ["updated_at", "2016-01-20 05:04:35.531079"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 MnoCrew Load (0.1ms) SELECT "mno_crews".* FROM "mno_crews" WHERE "mno_crews"."provider" = 'maestrano' AND "mno_crews"."uid" = 'cld-1' AND "mno_crews"."tenant" = 'default' ORDER BY "mno_crews"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "mno_crews" ("created_at", "name", "provider", "tenant", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2016-01-20 05:04:35.533431"], ["name", "Your Group"], ["provider", "maestrano"], ["tenant", "default"], ["uid", "cld-1"], ["updated_at", "2016-01-20 05:04:35.533431"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction ------------------------------------------------------------------------------------------------------------------------------ MaestranoGroupViaTest: test_: class methods find_or_create_for_maestrano class method should return the MnoCrew if it exists. ------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "mno_crews" ("created_at", "name", "provider", "tenant", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2016-01-20 05:04:35.534991"], ["name", "SomeCrew"], ["provider", "maestrano"], ["tenant", "default"], ["uid", "cld-1"], ["updated_at", "2016-01-20 05:04:35.534991"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 MnoCrew Load (0.1ms) SELECT "mno_crews".* FROM "mno_crews" WHERE "mno_crews"."provider" = 'maestrano' AND "mno_crews"."uid" = 'cld-1' AND "mno_crews"."tenant" = 'default' ORDER BY "mno_crews"."id" ASC LIMIT 1  (0.1ms) rollback transaction ---------------------------------------------------------------------------------------------------- MaestranoGroupViaTest: test_: class methods maestrano_*_via should have the right field definition. ----------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------------------------- MaestranoGroupViaTest: test_: instance methods maestrano? should return false if provider is something else. -------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ----------------------------------------------------------------------------------------------- MaestranoGroupViaTest: test_: instance methods maestrano? should return false if uid is blank. -----------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------------------------------------ MaestranoGroupViaTest: test_: instance methods maestrano? should return true if provider is maestrano and uid not null. ------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------ MaestranoRailsTest: test_truth ------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------ ActiveRecordUserGeneratorTest: test_: namespaced model should create the right migration. ------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: namespaced model should edit the model content. --------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should create the right migration. --------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should edit the model content. ----------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should include parameters if rails 3 and strong_parameter not present. --------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should not include parameters if rails 3 and strong_parameter present. --------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should not include parameters in rails 4. ---------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------------------------------- GenericControllerTest: test_: with a maestrano session should be successful if the maestrano session is still valid. ---------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by PagesController#home as HTML Completed 200 OK in 8ms (Views: 7.5ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction -------------------------------------------------------------------------------------------------------------------- GenericControllerTest: test_: with a maestrano session should initialize redirect to SSO initialization if invalid. --------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by PagesController#home as HTML Redirected to http://localhost::3000/maestrano/auth/saml/init Filter chain halted as :verify_maestrano_session rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ----------------------------------------------------------------------------------------------------------- GenericControllerTest: test_: with a maestrano session should not redirect to SSO init if sso is disabled. -----------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by PagesController#home as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction ------------------------------------------------------------------------------ GenericControllerTest: test_: with no maestrano session should be successful. ------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by PagesController#home as HTML Completed 200 OK in 0ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ----------------------------------------------------------------- GroupsControllerTest: test_: authenticated should be successful. -----------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Account::GroupsController#destroy as HTML Parameters: {"id"=>"cld-1"} Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ----------------------------------------------------------------- GroupsControllerTest: test_: unauthenticated should deny access. -----------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Account::GroupsController#destroy as HTML Parameters: {"id"=>"cld-1"} Filter chain halted as :authenticate_maestrano! rendered or redirected Completed 401 Unauthorized in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction --------------------------------------------------------------------------------------- InstallGeneratorTest: test_: InstallGenerator should create the maestrano initializer. ---------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction ---------------------------------------------------------------------------------- InstallGeneratorTest: test_: InstallGenerator should create the maestrano routes. ----------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction ---------------------------------------------------------------------------------------------------------- InstallGeneratorTest: test_: InstallGenerator should create the maestrano/account/group_users_controller. ----------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction ----------------------------------------------------------------------------------------------------- InstallGeneratorTest: test_: InstallGenerator should create the maestrano/account/groups_controller. -----------------------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction ------------------------------------------------------------------------------------------------ InstallGeneratorTest: test_: InstallGenerator should create the maestrano/auth/saml_controller. ------------------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction ---------------------------------------------------------------------------------------------------------- GroupGeneratorTest: test_: GroupGenerator should call the active_record migration generator successfully. ----------------------------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------------- GroupGeneratorTest: test_: GroupGenerator should call the mongoid migration generator successfully. ----------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: class methods find_or_create_for_maestrano class method should create a monster using the mapping block. --------------------------------------------------------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction MnoMonster Load (0.1ms) SELECT "mno_monsters".* FROM "mno_monsters" WHERE "mno_monsters"."provider" = 'maestrano' AND "mno_monsters"."uid" = 'usr-2' AND "mno_monsters"."tenant" = 'default' ORDER BY "mno_monsters"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "mno_monsters" ("created_at", "email", "first_name", "last_name", "provider", "tenant", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2016-01-20 05:04:35.755335"], ["email", "monster@monst.com"], ["first_name", "Mon"], ["last_name", "Ster"], ["provider", "maestrano"], ["tenant", "default"], ["uid", "usr-2"], ["updated_at", "2016-01-20 05:04:35.755335"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: class methods find_or_create_for_maestrano class method should not return a MnoMonster from another provider if it exists. --------------------------------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "mno_monsters" ("created_at", "email", "first_name", "last_name", "provider", "tenant", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2016-01-20 05:04:35.757115"], ["email", "monster@co.com"], ["first_name", "John"], ["last_name", "Jack"], ["provider", "someoneelse"], ["tenant", "default"], ["uid", "usr-1"], ["updated_at", "2016-01-20 05:04:35.757115"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 MnoMonster Load (0.1ms) SELECT "mno_monsters".* FROM "mno_monsters" WHERE "mno_monsters"."provider" = 'maestrano' AND "mno_monsters"."uid" = 'usr-1' AND "mno_monsters"."tenant" = 'default' ORDER BY "mno_monsters"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "mno_monsters" ("created_at", "provider", "tenant", "uid", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2016-01-20 05:04:35.758360"], ["provider", "maestrano"], ["tenant", "default"], ["uid", "usr-1"], ["updated_at", "2016-01-20 05:04:35.758360"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: class methods find_or_create_for_maestrano class method should return the MnoMonster if it exists. --------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "mno_monsters" ("created_at", "email", "first_name", "last_name", "provider", "tenant", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2016-01-20 05:04:35.759665"], ["email", "monster@co.com"], ["first_name", "John"], ["last_name", "Jack"], ["provider", "maestrano"], ["tenant", "default"], ["uid", "usr-1"], ["updated_at", "2016-01-20 05:04:35.759665"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 MnoMonster Load (0.1ms) SELECT "mno_monsters".* FROM "mno_monsters" WHERE "mno_monsters"."provider" = 'maestrano' AND "mno_monsters"."uid" = 'usr-1' AND "mno_monsters"."tenant" = 'default' ORDER BY "mno_monsters"."id" ASC LIMIT 1  (0.1ms) rollback transaction --------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: class methods maestrano_*_via should have the right field definition. ---------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------------------------ MaestranoUserViaTest: test_: instance methods maestrano? should return false if provider is something else. ------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: instance methods maestrano? should return false if uid is blank. ----------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ----------------------------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: instance methods maestrano? should return true if provider is maestrano and uid not null. -----------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------------- UserGeneratorTest: test_: UserGenerator should call the active_record migration generator successfully. --------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------- UserGeneratorTest: test_: UserGenerator should call the mongoid migration generator successfully. --------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction ------------------------------------------------------------------- MetadataControllerTest: test_: authenticated should be successful. -------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Rails::MetadataController#index as HTML Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------- MetadataControllerTest: test_: unauthenticated should deny access. -------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Rails::MetadataController#index as HTML Filter chain halted as :authenticate_maestrano! rendered or redirected Completed 401 Unauthorized in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" --------------------------------------------------------------------------------------- InstallGeneratorTest: test_: InstallGenerator should create the maestrano initializer. ---------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction ---------------------------------------------------------------------------------- InstallGeneratorTest: test_: InstallGenerator should create the maestrano routes. ----------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction ---------------------------------------------------------------------------------------------------------- InstallGeneratorTest: test_: InstallGenerator should create the maestrano/account/group_users_controller. ----------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction ----------------------------------------------------------------------------------------------------- InstallGeneratorTest: test_: InstallGenerator should create the maestrano/account/groups_controller. -----------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction ------------------------------------------------------------------------------------------------ InstallGeneratorTest: test_: InstallGenerator should create the maestrano/auth/saml_controller. ------------------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction ----------------------------------------------------------------- GroupsControllerTest: test_: authenticated should be successful. -----------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Account::GroupsController#destroy as HTML Parameters: {"id"=>"cld-1"} Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.0ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction ----------------------------------------------------------------- GroupsControllerTest: test_: unauthenticated should deny access. -----------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Account::GroupsController#destroy as HTML Parameters: {"id"=>"cld-1"} Filter chain halted as :authenticate_maestrano! rendered or redirected Completed 401 Unauthorized in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------------------------------- GenericControllerTest: test_: with a maestrano session should be successful if the maestrano session is still valid. ---------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by PagesController#home as HTML Completed 200 OK in 7ms (Views: 6.8ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction -------------------------------------------------------------------------------------------------------------------- GenericControllerTest: test_: with a maestrano session should initialize redirect to SSO initialization if invalid. --------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by PagesController#home as HTML Redirected to http://localhost::3000/maestrano/auth/saml/init Filter chain halted as :verify_maestrano_session rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ----------------------------------------------------------------------------------------------------------- GenericControllerTest: test_: with a maestrano session should not redirect to SSO init if sso is disabled. -----------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by PagesController#home as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------------------ GenericControllerTest: test_: with no maestrano session should be successful. ------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by PagesController#home as HTML Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase error should redirect to maestrano on any error. ----------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Bla Redirected to http://api-sandbox.maestrano.io/app_access_unauthorized?err=internal Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should reset the maestrano session successfully if one already exists. --------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.1ms) rollback transaction --------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should set a saml_request in scope. ---------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction -------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should set the group_auth_hash in scope. --------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should set the maestrano session. -------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should set the user_auth_hash in scope. -------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------ SamlBaseControllerTest: test_: consume phase should set the user_group_rel_hash in scope. ------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: init phase should create a saml request successfully if a maestrano session is already set. ---------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#init as HTML Parameters: {"a_param"=>"value"} Redirected to http://idpprovider.com?r=request Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ----------------------------------------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: init phase should create a saml request using params and session and redirect the user. -----------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#init as HTML Parameters: {"a_param"=>"value"} Redirected to http://idpprovider.com?r=request Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------ MaestranoRailsTest: test_truth ------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------ ActiveRecordUserGeneratorTest: test_: namespaced model should create the right migration. ------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: namespaced model should edit the model content. --------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should create the right migration. --------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should edit the model content. ----------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should include parameters if rails 3 and strong_parameter not present. --------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should not include parameters if rails 3 and strong_parameter present. --------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should not include parameters in rails 4. ---------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: namespaced model should create the right migration. -------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: namespaced model should edit the model content. ---------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should create the right migration. ---------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ----------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should edit the model content. -----------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should include parameters if rails 3 and strong_parameter not present. ---------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should not include parameters if rails 3 and strong_parameter present. ---------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should not include parameters in rails 4. ----------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: class methods find_or_create_for_maestrano class method should create a monster using the mapping block. --------------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction MnoMonster Load (0.1ms) SELECT "mno_monsters".* FROM "mno_monsters" WHERE "mno_monsters"."provider" = 'maestrano' AND "mno_monsters"."uid" = 'usr-2' AND "mno_monsters"."tenant" = 'default' ORDER BY "mno_monsters"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "mno_monsters" ("created_at", "email", "first_name", "last_name", "provider", "tenant", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2016-01-20 05:04:43.398633"], ["email", "monster@monst.com"], ["first_name", "Mon"], ["last_name", "Ster"], ["provider", "maestrano"], ["tenant", "default"], ["uid", "usr-2"], ["updated_at", "2016-01-20 05:04:43.398633"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: class methods find_or_create_for_maestrano class method should not return a MnoMonster from another provider if it exists. --------------------------------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "mno_monsters" ("created_at", "email", "first_name", "last_name", "provider", "tenant", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2016-01-20 05:04:43.401647"], ["email", "monster@co.com"], ["first_name", "John"], ["last_name", "Jack"], ["provider", "someoneelse"], ["tenant", "default"], ["uid", "usr-1"], ["updated_at", "2016-01-20 05:04:43.401647"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 MnoMonster Load (0.1ms) SELECT "mno_monsters".* FROM "mno_monsters" WHERE "mno_monsters"."provider" = 'maestrano' AND "mno_monsters"."uid" = 'usr-1' AND "mno_monsters"."tenant" = 'default' ORDER BY "mno_monsters"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "mno_monsters" ("created_at", "provider", "tenant", "uid", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2016-01-20 05:04:43.402863"], ["provider", "maestrano"], ["tenant", "default"], ["uid", "usr-1"], ["updated_at", "2016-01-20 05:04:43.402863"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: class methods find_or_create_for_maestrano class method should return the MnoMonster if it exists. --------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "mno_monsters" ("created_at", "email", "first_name", "last_name", "provider", "tenant", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2016-01-20 05:04:43.404190"], ["email", "monster@co.com"], ["first_name", "John"], ["last_name", "Jack"], ["provider", "maestrano"], ["tenant", "default"], ["uid", "usr-1"], ["updated_at", "2016-01-20 05:04:43.404190"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 MnoMonster Load (0.1ms) SELECT "mno_monsters".* FROM "mno_monsters" WHERE "mno_monsters"."provider" = 'maestrano' AND "mno_monsters"."uid" = 'usr-1' AND "mno_monsters"."tenant" = 'default' ORDER BY "mno_monsters"."id" ASC LIMIT 1  (0.1ms) rollback transaction --------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: class methods maestrano_*_via should have the right field definition. ---------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------------------------ MaestranoUserViaTest: test_: instance methods maestrano? should return false if provider is something else. ------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: instance methods maestrano? should return false if uid is blank. ----------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ----------------------------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: instance methods maestrano? should return true if provider is maestrano and uid not null. -----------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------------- UserGeneratorTest: test_: UserGenerator should call the active_record migration generator successfully. --------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------- UserGeneratorTest: test_: UserGenerator should call the mongoid migration generator successfully. --------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction ------------------------------------------------------------------- MetadataControllerTest: test_: authenticated should be successful. -------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Rails::MetadataController#index as HTML Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------- MetadataControllerTest: test_: unauthenticated should deny access. -------------------------------------------------------------------  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Rails::MetadataController#index as HTML Filter chain halted as :authenticate_maestrano! rendered or redirected Completed 401 Unauthorized in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction --------------------------------------------------------------------- GroupUsersControllerTest: test_: authenticated should be successful. ---------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Account::GroupUsersController#destroy as HTML Parameters: {"group_id"=>"cld-1", "id"=>"usr-1"} Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction --------------------------------------------------------------------- GroupUsersControllerTest: test_: unauthenticated should deny access. ---------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Account::GroupUsersController#destroy as HTML Parameters: {"group_id"=>"cld-1", "id"=>"usr-1"} Filter chain halted as :authenticate_maestrano! rendered or redirected Completed 401 Unauthorized in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------------------------------------------------- MaestranoGroupViaTest: test_: class methods find_or_create_for_maestrano class method should create a monster using the mapping block. ---------------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction MnoCrew Load (0.1ms) SELECT "mno_crews".* FROM "mno_crews" WHERE "mno_crews"."provider" = 'maestrano' AND "mno_crews"."uid" = 'usr-2' AND "mno_crews"."tenant" = 'default' ORDER BY "mno_crews"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "mno_crews" ("created_at", "name", "provider", "tenant", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2016-01-20 05:04:43.439611"], ["name", "Monster Co"], ["provider", "maestrano"], ["tenant", "default"], ["uid", "usr-2"], ["updated_at", "2016-01-20 05:04:43.439611"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction ------------------------------------------------------------------------------------------------------------------------------------------------------ MaestranoGroupViaTest: test_: class methods find_or_create_for_maestrano class method should not return a MnoCrew from another provider if it exists. ------------------------------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "mno_crews" ("created_at", "name", "provider", "tenant", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2016-01-20 05:04:43.441293"], ["name", "SomeOtherCrew"], ["provider", "someoneelse"], ["tenant", "default"], ["uid", "usr-1"], ["updated_at", "2016-01-20 05:04:43.441293"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 MnoCrew Load (0.1ms) SELECT "mno_crews".* FROM "mno_crews" WHERE "mno_crews"."provider" = 'maestrano' AND "mno_crews"."uid" = 'cld-1' AND "mno_crews"."tenant" = 'default' ORDER BY "mno_crews"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "mno_crews" ("created_at", "name", "provider", "tenant", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2016-01-20 05:04:43.442364"], ["name", "Your Group"], ["provider", "maestrano"], ["tenant", "default"], ["uid", "cld-1"], ["updated_at", "2016-01-20 05:04:43.442364"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction ------------------------------------------------------------------------------------------------------------------------------ MaestranoGroupViaTest: test_: class methods find_or_create_for_maestrano class method should return the MnoCrew if it exists. ------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "mno_crews" ("created_at", "name", "provider", "tenant", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2016-01-20 05:04:43.443718"], ["name", "SomeCrew"], ["provider", "maestrano"], ["tenant", "default"], ["uid", "cld-1"], ["updated_at", "2016-01-20 05:04:43.443718"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 MnoCrew Load (0.1ms) SELECT "mno_crews".* FROM "mno_crews" WHERE "mno_crews"."provider" = 'maestrano' AND "mno_crews"."uid" = 'cld-1' AND "mno_crews"."tenant" = 'default' ORDER BY "mno_crews"."id" ASC LIMIT 1  (0.1ms) rollback transaction ---------------------------------------------------------------------------------------------------- MaestranoGroupViaTest: test_: class methods maestrano_*_via should have the right field definition. ----------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------------------------- MaestranoGroupViaTest: test_: instance methods maestrano? should return false if provider is something else. -------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ----------------------------------------------------------------------------------------------- MaestranoGroupViaTest: test_: instance methods maestrano? should return false if uid is blank. -----------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------------------------------------ MaestranoGroupViaTest: test_: instance methods maestrano? should return true if provider is maestrano and uid not null. ------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------------------- GroupGeneratorTest: test_: GroupGenerator should call the active_record migration generator successfully. ----------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction ---------------------------------------------------------------------------------------------------- GroupGeneratorTest: test_: GroupGenerator should call the mongoid migration generator successfully. ----------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ------------------------------------------------------------------------------------------ ActiveRecordUserGeneratorTest: test_: namespaced model should create the right migration. ------------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: namespaced model should edit the model content. --------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should create the right migration. --------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction ---------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should edit the model content. ----------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should include parameters if rails 3 and strong_parameter not present. --------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should not include parameters if rails 3 and strong_parameter present. --------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should not include parameters in rails 4. ---------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------ MaestranoRailsTest: test_truth ------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------------- UserGeneratorTest: test_: UserGenerator should call the active_record migration generator successfully. --------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction -------------------------------------------------------------------------------------------------- UserGeneratorTest: test_: UserGenerator should call the mongoid migration generator successfully. --------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: class methods find_or_create_for_maestrano class method should create a monster using the mapping block. --------------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction MnoMonster Load (0.1ms) SELECT "mno_monsters".* FROM "mno_monsters" WHERE "mno_monsters"."provider" = 'maestrano' AND "mno_monsters"."uid" = 'usr-2' AND "mno_monsters"."tenant" = 'default' ORDER BY "mno_monsters"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "mno_monsters" ("created_at", "email", "first_name", "last_name", "provider", "tenant", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2016-01-20 05:06:07.041750"], ["email", "monster@monst.com"], ["first_name", "Mon"], ["last_name", "Ster"], ["provider", "maestrano"], ["tenant", "default"], ["uid", "usr-2"], ["updated_at", "2016-01-20 05:06:07.041750"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: class methods find_or_create_for_maestrano class method should not return a MnoMonster from another provider if it exists. --------------------------------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "mno_monsters" ("created_at", "email", "first_name", "last_name", "provider", "tenant", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2016-01-20 05:06:07.044789"], ["email", "monster@co.com"], ["first_name", "John"], ["last_name", "Jack"], ["provider", "someoneelse"], ["tenant", "default"], ["uid", "usr-1"], ["updated_at", "2016-01-20 05:06:07.044789"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 MnoMonster Load (0.1ms) SELECT "mno_monsters".* FROM "mno_monsters" WHERE "mno_monsters"."provider" = 'maestrano' AND "mno_monsters"."uid" = 'usr-1' AND "mno_monsters"."tenant" = 'default' ORDER BY "mno_monsters"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "mno_monsters" ("created_at", "provider", "tenant", "uid", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2016-01-20 05:06:07.046074"], ["provider", "maestrano"], ["tenant", "default"], ["uid", "usr-1"], ["updated_at", "2016-01-20 05:06:07.046074"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: class methods find_or_create_for_maestrano class method should return the MnoMonster if it exists. --------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "mno_monsters" ("created_at", "email", "first_name", "last_name", "provider", "tenant", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2016-01-20 05:06:07.047565"], ["email", "monster@co.com"], ["first_name", "John"], ["last_name", "Jack"], ["provider", "maestrano"], ["tenant", "default"], ["uid", "usr-1"], ["updated_at", "2016-01-20 05:06:07.047565"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 MnoMonster Load (0.1ms) SELECT "mno_monsters".* FROM "mno_monsters" WHERE "mno_monsters"."provider" = 'maestrano' AND "mno_monsters"."uid" = 'usr-1' AND "mno_monsters"."tenant" = 'default' ORDER BY "mno_monsters"."id" ASC LIMIT 1  (0.1ms) rollback transaction --------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: class methods maestrano_*_via should have the right field definition. ---------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------------------------ MaestranoUserViaTest: test_: instance methods maestrano? should return false if provider is something else. ------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: instance methods maestrano? should return false if uid is blank. ----------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ----------------------------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: instance methods maestrano? should return true if provider is maestrano and uid not null. -----------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: namespaced model should create the right migration. -------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: namespaced model should edit the model content. ---------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should create the right migration. ---------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ----------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should edit the model content. -----------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should include parameters if rails 3 and strong_parameter not present. ---------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction --------------------------------------------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should not include parameters if rails 3 and strong_parameter present. ---------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should not include parameters in rails 4. ----------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------------------------------- GenericControllerTest: test_: with a maestrano session should be successful if the maestrano session is still valid. ---------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by PagesController#home as HTML Rendered pages/home.html.erb within layouts/application (0.3ms) Completed 200 OK in 8ms (Views: 7.4ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction -------------------------------------------------------------------------------------------------------------------- GenericControllerTest: test_: with a maestrano session should initialize redirect to SSO initialization if invalid. --------------------------------------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by PagesController#home as HTML Redirected to http://localhost::3000/maestrano/auth/saml/init Filter chain halted as :verify_maestrano_session rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ----------------------------------------------------------------------------------------------------------- GenericControllerTest: test_: with a maestrano session should not redirect to SSO init if sso is disabled. -----------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by PagesController#home as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------------------ GenericControllerTest: test_: with no maestrano session should be successful. ------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by PagesController#home as HTML Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------- MetadataControllerTest: test_: authenticated should be successful. -------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Rails::MetadataController#index as HTML Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------- MetadataControllerTest: test_: unauthenticated should deny access. -------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Rails::MetadataController#index as HTML Filter chain halted as :authenticate_maestrano! rendered or redirected Completed 401 Unauthorized in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction --------------------------------------------------------------------------------------- InstallGeneratorTest: test_: InstallGenerator should create the maestrano initializer. ---------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction ---------------------------------------------------------------------------------- InstallGeneratorTest: test_: InstallGenerator should create the maestrano routes. ----------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction ---------------------------------------------------------------------------------------------------------- InstallGeneratorTest: test_: InstallGenerator should create the maestrano/account/group_users_controller. ----------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction ----------------------------------------------------------------------------------------------------- InstallGeneratorTest: test_: InstallGenerator should create the maestrano/account/groups_controller. -----------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction ------------------------------------------------------------------------------------------------ InstallGeneratorTest: test_: InstallGenerator should create the maestrano/auth/saml_controller. ------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction ---------------------------------------------------------------------------------------------------------- GroupGeneratorTest: test_: GroupGenerator should call the active_record migration generator successfully. ----------------------------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------------- GroupGeneratorTest: test_: GroupGenerator should call the mongoid migration generator successfully. ----------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------------------------------------------------- MaestranoGroupViaTest: test_: class methods find_or_create_for_maestrano class method should create a monster using the mapping block. ---------------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction MnoCrew Load (0.1ms) SELECT "mno_crews".* FROM "mno_crews" WHERE "mno_crews"."provider" = 'maestrano' AND "mno_crews"."uid" = 'usr-2' AND "mno_crews"."tenant" = 'default' ORDER BY "mno_crews"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "mno_crews" ("created_at", "name", "provider", "tenant", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2016-01-20 05:06:07.264968"], ["name", "Monster Co"], ["provider", "maestrano"], ["tenant", "default"], ["uid", "usr-2"], ["updated_at", "2016-01-20 05:06:07.264968"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction ------------------------------------------------------------------------------------------------------------------------------------------------------ MaestranoGroupViaTest: test_: class methods find_or_create_for_maestrano class method should not return a MnoCrew from another provider if it exists. ------------------------------------------------------------------------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "mno_crews" ("created_at", "name", "provider", "tenant", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2016-01-20 05:06:07.268374"], ["name", "SomeOtherCrew"], ["provider", "someoneelse"], ["tenant", "default"], ["uid", "usr-1"], ["updated_at", "2016-01-20 05:06:07.268374"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 MnoCrew Load (0.2ms) SELECT "mno_crews".* FROM "mno_crews" WHERE "mno_crews"."provider" = 'maestrano' AND "mno_crews"."uid" = 'cld-1' AND "mno_crews"."tenant" = 'default' ORDER BY "mno_crews"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "mno_crews" ("created_at", "name", "provider", "tenant", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2016-01-20 05:06:07.271042"], ["name", "Your Group"], ["provider", "maestrano"], ["tenant", "default"], ["uid", "cld-1"], ["updated_at", "2016-01-20 05:06:07.271042"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction ------------------------------------------------------------------------------------------------------------------------------ MaestranoGroupViaTest: test_: class methods find_or_create_for_maestrano class method should return the MnoCrew if it exists. ------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "mno_crews" ("created_at", "name", "provider", "tenant", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2016-01-20 05:06:07.273045"], ["name", "SomeCrew"], ["provider", "maestrano"], ["tenant", "default"], ["uid", "cld-1"], ["updated_at", "2016-01-20 05:06:07.273045"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 MnoCrew Load (0.1ms) SELECT "mno_crews".* FROM "mno_crews" WHERE "mno_crews"."provider" = 'maestrano' AND "mno_crews"."uid" = 'cld-1' AND "mno_crews"."tenant" = 'default' ORDER BY "mno_crews"."id" ASC LIMIT 1  (0.1ms) rollback transaction ---------------------------------------------------------------------------------------------------- MaestranoGroupViaTest: test_: class methods maestrano_*_via should have the right field definition. ----------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------------------------- MaestranoGroupViaTest: test_: instance methods maestrano? should return false if provider is something else. -------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ----------------------------------------------------------------------------------------------- MaestranoGroupViaTest: test_: instance methods maestrano? should return false if uid is blank. -----------------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------------------------------------ MaestranoGroupViaTest: test_: instance methods maestrano? should return true if provider is maestrano and uid not null. ------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------- GroupUsersControllerTest: test_: authenticated should be successful. ---------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Account::GroupUsersController#destroy as HTML Parameters: {"group_id"=>"cld-1", "id"=>"usr-1"} Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction --------------------------------------------------------------------- GroupUsersControllerTest: test_: unauthenticated should deny access. ---------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Account::GroupUsersController#destroy as HTML Parameters: {"group_id"=>"cld-1", "id"=>"usr-1"} Filter chain halted as :authenticate_maestrano! rendered or redirected Completed 401 Unauthorized in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ----------------------------------------------------------------- GroupsControllerTest: test_: authenticated should be successful. -----------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Account::GroupsController#destroy as HTML Parameters: {"id"=>"cld-1"} Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ----------------------------------------------------------------- GroupsControllerTest: test_: unauthenticated should deny access. -----------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction Processing by Maestrano::Account::GroupsController#destroy as HTML Parameters: {"id"=>"cld-1"} Filter chain halted as :authenticate_maestrano! rendered or redirected Completed 401 Unauthorized in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase error should redirect to maestrano on any error. ----------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Bla Redirected to http://api-sandbox.maestrano.io/app_access_unauthorized?err=internal Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should reset the maestrano session successfully if one already exists. --------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction --------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should set a saml_request in scope. ---------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction -------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should set the group_auth_hash in scope. --------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) rollback transaction ------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should set the maestrano session. -------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.1ms) rollback transaction ------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should set the user_auth_hash in scope. -------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------ SamlBaseControllerTest: test_: consume phase should set the user_group_rel_hash in scope. ------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: init phase should create a saml request successfully if a maestrano session is already set. ---------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#init as HTML Parameters: {"a_param"=>"value"} Redirected to http://idpprovider.com?r=request Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ----------------------------------------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: init phase should create a saml request using params and session and redirect the user. -----------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#init as HTML Parameters: {"a_param"=>"value"} Redirected to http://idpprovider.com?r=request Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ------------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: namespaced model should create the right migration. -------------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: namespaced model should edit the model content. ---------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should create the right migration. ---------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ----------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should edit the model content. -----------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction --------------------------------------------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should include parameters if rails 3 and strong_parameter not present. ---------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction --------------------------------------------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should not include parameters if rails 3 and strong_parameter present. ---------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should not include parameters in rails 4. ----------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------ MaestranoRailsTest: test_truth ------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------ ActiveRecordUserGeneratorTest: test_: namespaced model should create the right migration. ------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: namespaced model should edit the model content. --------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction -------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should create the right migration. --------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should edit the model content. ----------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should include parameters if rails 3 and strong_parameter not present. --------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should not include parameters if rails 3 and strong_parameter present. --------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should not include parameters in rails 4. ---------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------------------- GroupGeneratorTest: test_: GroupGenerator should call the active_record migration generator successfully. ----------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------------- GroupGeneratorTest: test_: GroupGenerator should call the mongoid migration generator successfully. ----------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction --------------------------------------------------------------------------------------- InstallGeneratorTest: test_: InstallGenerator should create the maestrano initializer. ---------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction ---------------------------------------------------------------------------------- InstallGeneratorTest: test_: InstallGenerator should create the maestrano routes. ----------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction ---------------------------------------------------------------------------------------------------------- InstallGeneratorTest: test_: InstallGenerator should create the maestrano/account/group_users_controller. ----------------------------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction ----------------------------------------------------------------------------------------------------- InstallGeneratorTest: test_: InstallGenerator should create the maestrano/account/groups_controller. -----------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction ------------------------------------------------------------------------------------------------ InstallGeneratorTest: test_: InstallGenerator should create the maestrano/auth/saml_controller. ------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction --------------------------------------------------------------------- GroupUsersControllerTest: test_: authenticated should be successful. ---------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Account::GroupUsersController#destroy as HTML Parameters: {"group_id"=>"cld-1", "id"=>"usr-1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction --------------------------------------------------------------------- GroupUsersControllerTest: test_: unauthenticated should deny access. ---------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Account::GroupUsersController#destroy as HTML Parameters: {"group_id"=>"cld-1", "id"=>"usr-1"} Filter chain halted as :authenticate_maestrano! rendered or redirected Completed 401 Unauthorized in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------------------------------- GenericControllerTest: test_: with a maestrano session should be successful if the maestrano session is still valid. ---------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by PagesController#home as HTML Completed 200 OK in 9ms (Views: 8.7ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction -------------------------------------------------------------------------------------------------------------------- GenericControllerTest: test_: with a maestrano session should initialize redirect to SSO initialization if invalid. --------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by PagesController#home as HTML Redirected to http://localhost::3000/maestrano/auth/saml/init Filter chain halted as :verify_maestrano_session rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ----------------------------------------------------------------------------------------------------------- GenericControllerTest: test_: with a maestrano session should not redirect to SSO init if sso is disabled. -----------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by PagesController#home as HTML Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------------------ GenericControllerTest: test_: with no maestrano session should be successful. ------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by PagesController#home as HTML Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction --------------------------------------------------------------------------------------------------------------------------------------- MaestranoGroupViaTest: test_: class methods find_or_create_for_maestrano class method should create a monster using the mapping block. ---------------------------------------------------------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction MnoCrew Load (0.2ms) SELECT "mno_crews".* FROM "mno_crews" WHERE "mno_crews"."provider" = 'maestrano' AND "mno_crews"."uid" = 'usr-2' AND "mno_crews"."tenant" = 'default' ORDER BY "mno_crews"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "mno_crews" ("created_at", "name", "provider", "tenant", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2016-01-20 05:20:34.428607"], ["name", "Monster Co"], ["provider", "maestrano"], ["tenant", "default"], ["uid", "usr-2"], ["updated_at", "2016-01-20 05:20:34.428607"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction ------------------------------------------------------------------------------------------------------------------------------------------------------ MaestranoGroupViaTest: test_: class methods find_or_create_for_maestrano class method should not return a MnoCrew from another provider if it exists. ------------------------------------------------------------------------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "mno_crews" ("created_at", "name", "provider", "tenant", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2016-01-20 05:20:34.431799"], ["name", "SomeOtherCrew"], ["provider", "someoneelse"], ["tenant", "default"], ["uid", "usr-1"], ["updated_at", "2016-01-20 05:20:34.431799"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 MnoCrew Load (0.1ms) SELECT "mno_crews".* FROM "mno_crews" WHERE "mno_crews"."provider" = 'maestrano' AND "mno_crews"."uid" = 'cld-1' AND "mno_crews"."tenant" = 'default' ORDER BY "mno_crews"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "mno_crews" ("created_at", "name", "provider", "tenant", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2016-01-20 05:20:34.433117"], ["name", "Your Group"], ["provider", "maestrano"], ["tenant", "default"], ["uid", "cld-1"], ["updated_at", "2016-01-20 05:20:34.433117"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction ------------------------------------------------------------------------------------------------------------------------------ MaestranoGroupViaTest: test_: class methods find_or_create_for_maestrano class method should return the MnoCrew if it exists. ------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "mno_crews" ("created_at", "name", "provider", "tenant", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2016-01-20 05:20:34.434611"], ["name", "SomeCrew"], ["provider", "maestrano"], ["tenant", "default"], ["uid", "cld-1"], ["updated_at", "2016-01-20 05:20:34.434611"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 MnoCrew Load (0.1ms) SELECT "mno_crews".* FROM "mno_crews" WHERE "mno_crews"."provider" = 'maestrano' AND "mno_crews"."uid" = 'cld-1' AND "mno_crews"."tenant" = 'default' ORDER BY "mno_crews"."id" ASC LIMIT 1  (0.1ms) rollback transaction ---------------------------------------------------------------------------------------------------- MaestranoGroupViaTest: test_: class methods maestrano_*_via should have the right field definition. ----------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------------------------- MaestranoGroupViaTest: test_: instance methods maestrano? should return false if provider is something else. -------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ----------------------------------------------------------------------------------------------- MaestranoGroupViaTest: test_: instance methods maestrano? should return false if uid is blank. -----------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------------------------------------ MaestranoGroupViaTest: test_: instance methods maestrano? should return true if provider is maestrano and uid not null. ------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: class methods find_or_create_for_maestrano class method should create a monster using the mapping block. --------------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction MnoMonster Load (0.1ms) SELECT "mno_monsters".* FROM "mno_monsters" WHERE "mno_monsters"."provider" = 'maestrano' AND "mno_monsters"."uid" = 'usr-2' AND "mno_monsters"."tenant" = 'default' ORDER BY "mno_monsters"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "mno_monsters" ("created_at", "email", "first_name", "last_name", "provider", "tenant", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2016-01-20 05:20:34.443794"], ["email", "monster@monst.com"], ["first_name", "Mon"], ["last_name", "Ster"], ["provider", "maestrano"], ["tenant", "default"], ["uid", "usr-2"], ["updated_at", "2016-01-20 05:20:34.443794"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: class methods find_or_create_for_maestrano class method should not return a MnoMonster from another provider if it exists. --------------------------------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "mno_monsters" ("created_at", "email", "first_name", "last_name", "provider", "tenant", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2016-01-20 05:20:34.445419"], ["email", "monster@co.com"], ["first_name", "John"], ["last_name", "Jack"], ["provider", "someoneelse"], ["tenant", "default"], ["uid", "usr-1"], ["updated_at", "2016-01-20 05:20:34.445419"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 MnoMonster Load (0.1ms) SELECT "mno_monsters".* FROM "mno_monsters" WHERE "mno_monsters"."provider" = 'maestrano' AND "mno_monsters"."uid" = 'usr-1' AND "mno_monsters"."tenant" = 'default' ORDER BY "mno_monsters"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "mno_monsters" ("created_at", "provider", "tenant", "uid", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2016-01-20 05:20:34.446551"], ["provider", "maestrano"], ["tenant", "default"], ["uid", "usr-1"], ["updated_at", "2016-01-20 05:20:34.446551"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: class methods find_or_create_for_maestrano class method should return the MnoMonster if it exists. --------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "mno_monsters" ("created_at", "email", "first_name", "last_name", "provider", "tenant", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2016-01-20 05:20:34.447924"], ["email", "monster@co.com"], ["first_name", "John"], ["last_name", "Jack"], ["provider", "maestrano"], ["tenant", "default"], ["uid", "usr-1"], ["updated_at", "2016-01-20 05:20:34.447924"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 MnoMonster Load (0.1ms) SELECT "mno_monsters".* FROM "mno_monsters" WHERE "mno_monsters"."provider" = 'maestrano' AND "mno_monsters"."uid" = 'usr-1' AND "mno_monsters"."tenant" = 'default' ORDER BY "mno_monsters"."id" ASC LIMIT 1  (0.1ms) rollback transaction --------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: class methods maestrano_*_via should have the right field definition. ---------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------------------------ MaestranoUserViaTest: test_: instance methods maestrano? should return false if provider is something else. ------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: instance methods maestrano? should return false if uid is blank. ----------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ----------------------------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: instance methods maestrano? should return true if provider is maestrano and uid not null. -----------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ----------------------------------------------------------------- GroupsControllerTest: test_: authenticated should be successful. -----------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Account::GroupsController#destroy as HTML Parameters: {"id"=>"cld-1"} Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction ----------------------------------------------------------------- GroupsControllerTest: test_: unauthenticated should deny access. -----------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Account::GroupsController#destroy as HTML Parameters: {"id"=>"cld-1"} Filter chain halted as :authenticate_maestrano! rendered or redirected Completed 401 Unauthorized in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------------- UserGeneratorTest: test_: UserGenerator should call the active_record migration generator successfully. --------------------------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------- UserGeneratorTest: test_: UserGenerator should call the mongoid migration generator successfully. --------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------- MetadataControllerTest: test_: authenticated should be successful. -------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Rails::MetadataController#index as HTML Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------- MetadataControllerTest: test_: unauthenticated should deny access. -------------------------------------------------------------------  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Rails::MetadataController#index as HTML Filter chain halted as :authenticate_maestrano! rendered or redirected Completed 401 Unauthorized in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase error should redirect to maestrano on any error. ----------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Bla Redirected to http://api-sandbox.maestrano.io/app_access_unauthorized?err=internal Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should reset the maestrano session successfully if one already exists. --------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction --------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should set a saml_request in scope. ---------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction -------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should set the group_auth_hash in scope. --------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should set the maestrano session. -------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should set the user_auth_hash in scope. -------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------ SamlBaseControllerTest: test_: consume phase should set the user_group_rel_hash in scope. ------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: init phase should create a saml request successfully if a maestrano session is already set. ---------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#init as HTML Parameters: {"a_param"=>"value"} Redirected to http://idpprovider.com?r=request Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ----------------------------------------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: init phase should create a saml request using params and session and redirect the user. -----------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#init as HTML Parameters: {"a_param"=>"value"} Redirected to http://idpprovider.com?r=request Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" -------------------------------------------------------------------------------------------------------- UserGeneratorTest: test_: UserGenerator should call the active_record migration generator successfully. --------------------------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------- UserGeneratorTest: test_: UserGenerator should call the mongoid migration generator successfully. --------------------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction ---------------------------------------------------------------------------------------------------------- GroupGeneratorTest: test_: GroupGenerator should call the active_record migration generator successfully. ----------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------------- GroupGeneratorTest: test_: GroupGenerator should call the mongoid migration generator successfully. ----------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction --------------------------------------------------------------------------------------- InstallGeneratorTest: test_: InstallGenerator should create the maestrano initializer. ---------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction ---------------------------------------------------------------------------------- InstallGeneratorTest: test_: InstallGenerator should create the maestrano routes. ----------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction ---------------------------------------------------------------------------------------------------------- InstallGeneratorTest: test_: InstallGenerator should create the maestrano/account/group_users_controller. ----------------------------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction ----------------------------------------------------------------------------------------------------- InstallGeneratorTest: test_: InstallGenerator should create the maestrano/account/groups_controller. -----------------------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction ------------------------------------------------------------------------------------------------ InstallGeneratorTest: test_: InstallGenerator should create the maestrano/auth/saml_controller. ------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction --------------------------------------------------------------------------------------------------------------------- GenericControllerTest: test_: with a maestrano session should be successful if the maestrano session is still valid. ---------------------------------------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by PagesController#home as HTML Rendered pages/home.html.erb within layouts/application (0.4ms) Completed 200 OK in 9ms (Views: 8.6ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction -------------------------------------------------------------------------------------------------------------------- GenericControllerTest: test_: with a maestrano session should initialize redirect to SSO initialization if invalid. --------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by PagesController#home as HTML Redirected to http://localhost::3000/maestrano/auth/saml/init Filter chain halted as :verify_maestrano_session rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ----------------------------------------------------------------------------------------------------------- GenericControllerTest: test_: with a maestrano session should not redirect to SSO init if sso is disabled. -----------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by PagesController#home as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------------------ GenericControllerTest: test_: with no maestrano session should be successful. ------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by PagesController#home as HTML Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase error should redirect to maestrano on any error. ----------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Bla Redirected to http://api-sandbox.maestrano.io/app_access_unauthorized?err=internal Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should reset the maestrano session successfully if one already exists. --------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction --------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should set a saml_request in scope. ---------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) rollback transaction -------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should set the group_auth_hash in scope. --------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.1ms) rollback transaction ------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should set the maestrano session. -------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should set the user_auth_hash in scope. -------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------ SamlBaseControllerTest: test_: consume phase should set the user_group_rel_hash in scope. ------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: init phase should create a saml request successfully if a maestrano session is already set. ---------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#init as HTML Parameters: {"a_param"=>"value"} Redirected to http://idpprovider.com?r=request Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ----------------------------------------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: init phase should create a saml request using params and session and redirect the user. -----------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#init as HTML Parameters: {"a_param"=>"value"} Redirected to http://idpprovider.com?r=request Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction --------------------------------------------------------------------- GroupUsersControllerTest: test_: authenticated should be successful. ---------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Account::GroupUsersController#destroy as HTML Parameters: {"group_id"=>"cld-1", "id"=>"usr-1"} Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction --------------------------------------------------------------------- GroupUsersControllerTest: test_: unauthenticated should deny access. ---------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Account::GroupUsersController#destroy as HTML Parameters: {"group_id"=>"cld-1", "id"=>"usr-1"} Filter chain halted as :authenticate_maestrano! rendered or redirected Completed 401 Unauthorized in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: class methods find_or_create_for_maestrano class method should create a monster using the mapping block. --------------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction MnoMonster Load (0.1ms) SELECT "mno_monsters".* FROM "mno_monsters" WHERE "mno_monsters"."provider" = 'maestrano' AND "mno_monsters"."uid" = 'usr-2' AND "mno_monsters"."tenant" = 'default' ORDER BY "mno_monsters"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "mno_monsters" ("created_at", "email", "first_name", "last_name", "provider", "tenant", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2016-01-20 05:22:54.770947"], ["email", "monster@monst.com"], ["first_name", "Mon"], ["last_name", "Ster"], ["provider", "maestrano"], ["tenant", "default"], ["uid", "usr-2"], ["updated_at", "2016-01-20 05:22:54.770947"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: class methods find_or_create_for_maestrano class method should not return a MnoMonster from another provider if it exists. --------------------------------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "mno_monsters" ("created_at", "email", "first_name", "last_name", "provider", "tenant", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2016-01-20 05:22:54.774172"], ["email", "monster@co.com"], ["first_name", "John"], ["last_name", "Jack"], ["provider", "someoneelse"], ["tenant", "default"], ["uid", "usr-1"], ["updated_at", "2016-01-20 05:22:54.774172"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 MnoMonster Load (0.1ms) SELECT "mno_monsters".* FROM "mno_monsters" WHERE "mno_monsters"."provider" = 'maestrano' AND "mno_monsters"."uid" = 'usr-1' AND "mno_monsters"."tenant" = 'default' ORDER BY "mno_monsters"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "mno_monsters" ("created_at", "provider", "tenant", "uid", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2016-01-20 05:22:54.775552"], ["provider", "maestrano"], ["tenant", "default"], ["uid", "usr-1"], ["updated_at", "2016-01-20 05:22:54.775552"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: class methods find_or_create_for_maestrano class method should return the MnoMonster if it exists. --------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "mno_monsters" ("created_at", "email", "first_name", "last_name", "provider", "tenant", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2016-01-20 05:22:54.777365"], ["email", "monster@co.com"], ["first_name", "John"], ["last_name", "Jack"], ["provider", "maestrano"], ["tenant", "default"], ["uid", "usr-1"], ["updated_at", "2016-01-20 05:22:54.777365"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 MnoMonster Load (0.1ms) SELECT "mno_monsters".* FROM "mno_monsters" WHERE "mno_monsters"."provider" = 'maestrano' AND "mno_monsters"."uid" = 'usr-1' AND "mno_monsters"."tenant" = 'default' ORDER BY "mno_monsters"."id" ASC LIMIT 1  (0.1ms) rollback transaction --------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: class methods maestrano_*_via should have the right field definition. ---------------------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------------------------ MaestranoUserViaTest: test_: instance methods maestrano? should return false if provider is something else. ------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: instance methods maestrano? should return false if uid is blank. ----------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction ----------------------------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: instance methods maestrano? should return true if provider is maestrano and uid not null. -----------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------ MaestranoRailsTest: test_truth ------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: namespaced model should create the right migration. -------------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: namespaced model should edit the model content. ---------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction --------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should create the right migration. ---------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ----------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should edit the model content. -----------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should include parameters if rails 3 and strong_parameter not present. ---------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should not include parameters if rails 3 and strong_parameter present. ---------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should not include parameters in rails 4. ----------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------- MetadataControllerTest: test_: authenticated should be successful. -------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Rails::MetadataController#index as HTML Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction ------------------------------------------------------------------- MetadataControllerTest: test_: unauthenticated should deny access. -------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Rails::MetadataController#index as HTML Filter chain halted as :authenticate_maestrano! rendered or redirected Completed 401 Unauthorized in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ----------------------------------------------------------------- GroupsControllerTest: test_: authenticated should be successful. -----------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Account::GroupsController#destroy as HTML Parameters: {"id"=>"cld-1"} Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ----------------------------------------------------------------- GroupsControllerTest: test_: unauthenticated should deny access. -----------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Account::GroupsController#destroy as HTML Parameters: {"id"=>"cld-1"} Filter chain halted as :authenticate_maestrano! rendered or redirected Completed 401 Unauthorized in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------ ActiveRecordUserGeneratorTest: test_: namespaced model should create the right migration. ------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: namespaced model should edit the model content. --------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction -------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should create the right migration. --------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should edit the model content. ----------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should include parameters if rails 3 and strong_parameter not present. --------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should not include parameters if rails 3 and strong_parameter present. --------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should not include parameters in rails 4. ---------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------------------------------------------------- MaestranoGroupViaTest: test_: class methods find_or_create_for_maestrano class method should create a monster using the mapping block. ---------------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction MnoCrew Load (0.1ms) SELECT "mno_crews".* FROM "mno_crews" WHERE "mno_crews"."provider" = 'maestrano' AND "mno_crews"."uid" = 'usr-2' AND "mno_crews"."tenant" = 'default' ORDER BY "mno_crews"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "mno_crews" ("created_at", "name", "provider", "tenant", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2016-01-20 05:22:54.842479"], ["name", "Monster Co"], ["provider", "maestrano"], ["tenant", "default"], ["uid", "usr-2"], ["updated_at", "2016-01-20 05:22:54.842479"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction ------------------------------------------------------------------------------------------------------------------------------------------------------ MaestranoGroupViaTest: test_: class methods find_or_create_for_maestrano class method should not return a MnoCrew from another provider if it exists. ------------------------------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "mno_crews" ("created_at", "name", "provider", "tenant", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2016-01-20 05:22:54.844213"], ["name", "SomeOtherCrew"], ["provider", "someoneelse"], ["tenant", "default"], ["uid", "usr-1"], ["updated_at", "2016-01-20 05:22:54.844213"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 MnoCrew Load (0.1ms) SELECT "mno_crews".* FROM "mno_crews" WHERE "mno_crews"."provider" = 'maestrano' AND "mno_crews"."uid" = 'cld-1' AND "mno_crews"."tenant" = 'default' ORDER BY "mno_crews"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "mno_crews" ("created_at", "name", "provider", "tenant", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2016-01-20 05:22:54.845371"], ["name", "Your Group"], ["provider", "maestrano"], ["tenant", "default"], ["uid", "cld-1"], ["updated_at", "2016-01-20 05:22:54.845371"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction ------------------------------------------------------------------------------------------------------------------------------ MaestranoGroupViaTest: test_: class methods find_or_create_for_maestrano class method should return the MnoCrew if it exists. ------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "mno_crews" ("created_at", "name", "provider", "tenant", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2016-01-20 05:22:54.846555"], ["name", "SomeCrew"], ["provider", "maestrano"], ["tenant", "default"], ["uid", "cld-1"], ["updated_at", "2016-01-20 05:22:54.846555"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 MnoCrew Load (0.1ms) SELECT "mno_crews".* FROM "mno_crews" WHERE "mno_crews"."provider" = 'maestrano' AND "mno_crews"."uid" = 'cld-1' AND "mno_crews"."tenant" = 'default' ORDER BY "mno_crews"."id" ASC LIMIT 1  (0.1ms) rollback transaction ---------------------------------------------------------------------------------------------------- MaestranoGroupViaTest: test_: class methods maestrano_*_via should have the right field definition. ----------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------------------------- MaestranoGroupViaTest: test_: instance methods maestrano? should return false if provider is something else. -------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ----------------------------------------------------------------------------------------------- MaestranoGroupViaTest: test_: instance methods maestrano? should return false if uid is blank. -----------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------------------------------------ MaestranoGroupViaTest: test_: instance methods maestrano? should return true if provider is maestrano and uid not null. ------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ------------------------------ MaestranoRailsTest: test_truth ------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase error should redirect to maestrano on any error. ----------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Bla Redirected to http://api-sandbox.maestrano.io/app_access_unauthorized?err=internal Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should reset the maestrano session successfully if one already exists. --------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction --------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should set a saml_request in scope. ---------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction -------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should set the group_auth_hash in scope. --------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should set the maestrano session. -------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should set the user_auth_hash in scope. -------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------ SamlBaseControllerTest: test_: consume phase should set the user_group_rel_hash in scope. ------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: init phase should create a saml request successfully if a maestrano session is already set. ---------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#init as HTML Parameters: {"a_param"=>"value"} Redirected to http://idpprovider.com?r=request Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ----------------------------------------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: init phase should create a saml request using params and session and redirect the user. -----------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#init as HTML Parameters: {"a_param"=>"value"} Redirected to http://idpprovider.com?r=request Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------------------- GroupGeneratorTest: test_: GroupGenerator should call the active_record migration generator successfully. ----------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction ---------------------------------------------------------------------------------------------------- GroupGeneratorTest: test_: GroupGenerator should call the mongoid migration generator successfully. ----------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------------------------------- GenericControllerTest: test_: with a maestrano session should be successful if the maestrano session is still valid. ---------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by PagesController#home as HTML Completed 200 OK in 7ms (Views: 6.8ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction -------------------------------------------------------------------------------------------------------------------- GenericControllerTest: test_: with a maestrano session should initialize redirect to SSO initialization if invalid. --------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by PagesController#home as HTML Redirected to http://localhost::3000/maestrano/auth/saml/init Filter chain halted as :verify_maestrano_session rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ----------------------------------------------------------------------------------------------------------- GenericControllerTest: test_: with a maestrano session should not redirect to SSO init if sso is disabled. -----------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by PagesController#home as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------------------ GenericControllerTest: test_: with no maestrano session should be successful. ------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by PagesController#home as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction --------------------------------------------------------------------------------------- InstallGeneratorTest: test_: InstallGenerator should create the maestrano initializer. ---------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction ---------------------------------------------------------------------------------- InstallGeneratorTest: test_: InstallGenerator should create the maestrano routes. ----------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction ---------------------------------------------------------------------------------------------------------- InstallGeneratorTest: test_: InstallGenerator should create the maestrano/account/group_users_controller. ----------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction ----------------------------------------------------------------------------------------------------- InstallGeneratorTest: test_: InstallGenerator should create the maestrano/account/groups_controller. -----------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction ------------------------------------------------------------------------------------------------ InstallGeneratorTest: test_: InstallGenerator should create the maestrano/auth/saml_controller. ------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: class methods find_or_create_for_maestrano class method should create a monster using the mapping block. --------------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction MnoMonster Load (0.1ms) SELECT "mno_monsters".* FROM "mno_monsters" WHERE "mno_monsters"."provider" = 'maestrano' AND "mno_monsters"."uid" = 'usr-2' AND "mno_monsters"."tenant" = 'default' ORDER BY "mno_monsters"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "mno_monsters" ("created_at", "email", "first_name", "last_name", "provider", "tenant", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2016-01-20 05:24:11.509207"], ["email", "monster@monst.com"], ["first_name", "Mon"], ["last_name", "Ster"], ["provider", "maestrano"], ["tenant", "default"], ["uid", "usr-2"], ["updated_at", "2016-01-20 05:24:11.509207"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: class methods find_or_create_for_maestrano class method should not return a MnoMonster from another provider if it exists. --------------------------------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "mno_monsters" ("created_at", "email", "first_name", "last_name", "provider", "tenant", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2016-01-20 05:24:11.513915"], ["email", "monster@co.com"], ["first_name", "John"], ["last_name", "Jack"], ["provider", "someoneelse"], ["tenant", "default"], ["uid", "usr-1"], ["updated_at", "2016-01-20 05:24:11.513915"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 MnoMonster Load (0.2ms) SELECT "mno_monsters".* FROM "mno_monsters" WHERE "mno_monsters"."provider" = 'maestrano' AND "mno_monsters"."uid" = 'usr-1' AND "mno_monsters"."tenant" = 'default' ORDER BY "mno_monsters"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "mno_monsters" ("created_at", "provider", "tenant", "uid", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2016-01-20 05:24:11.516445"], ["provider", "maestrano"], ["tenant", "default"], ["uid", "usr-1"], ["updated_at", "2016-01-20 05:24:11.516445"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: class methods find_or_create_for_maestrano class method should return the MnoMonster if it exists. --------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "mno_monsters" ("created_at", "email", "first_name", "last_name", "provider", "tenant", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2016-01-20 05:24:11.518081"], ["email", "monster@co.com"], ["first_name", "John"], ["last_name", "Jack"], ["provider", "maestrano"], ["tenant", "default"], ["uid", "usr-1"], ["updated_at", "2016-01-20 05:24:11.518081"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 MnoMonster Load (0.1ms) SELECT "mno_monsters".* FROM "mno_monsters" WHERE "mno_monsters"."provider" = 'maestrano' AND "mno_monsters"."uid" = 'usr-1' AND "mno_monsters"."tenant" = 'default' ORDER BY "mno_monsters"."id" ASC LIMIT 1  (0.1ms) rollback transaction --------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: class methods maestrano_*_via should have the right field definition. ---------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------------------------ MaestranoUserViaTest: test_: instance methods maestrano? should return false if provider is something else. ------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: instance methods maestrano? should return false if uid is blank. ----------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ----------------------------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: instance methods maestrano? should return true if provider is maestrano and uid not null. -----------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------- GroupUsersControllerTest: test_: authenticated should be successful. ---------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Account::GroupUsersController#destroy as HTML Parameters: {"group_id"=>"cld-1", "id"=>"usr-1"} Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction --------------------------------------------------------------------- GroupUsersControllerTest: test_: unauthenticated should deny access. ---------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Account::GroupUsersController#destroy as HTML Parameters: {"group_id"=>"cld-1", "id"=>"usr-1"} Filter chain halted as :authenticate_maestrano! rendered or redirected Completed 401 Unauthorized in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------ ActiveRecordUserGeneratorTest: test_: namespaced model should create the right migration. ------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: namespaced model should edit the model content. --------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should create the right migration. --------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should edit the model content. ----------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should include parameters if rails 3 and strong_parameter not present. --------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should not include parameters if rails 3 and strong_parameter present. --------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction --------------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should not include parameters in rails 4. ---------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------------------------------------------------- MaestranoGroupViaTest: test_: class methods find_or_create_for_maestrano class method should create a monster using the mapping block. ---------------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction MnoCrew Load (0.1ms) SELECT "mno_crews".* FROM "mno_crews" WHERE "mno_crews"."provider" = 'maestrano' AND "mno_crews"."uid" = 'usr-2' AND "mno_crews"."tenant" = 'default' ORDER BY "mno_crews"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "mno_crews" ("created_at", "name", "provider", "tenant", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2016-01-20 05:24:11.552394"], ["name", "Monster Co"], ["provider", "maestrano"], ["tenant", "default"], ["uid", "usr-2"], ["updated_at", "2016-01-20 05:24:11.552394"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction ------------------------------------------------------------------------------------------------------------------------------------------------------ MaestranoGroupViaTest: test_: class methods find_or_create_for_maestrano class method should not return a MnoCrew from another provider if it exists. ------------------------------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "mno_crews" ("created_at", "name", "provider", "tenant", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2016-01-20 05:24:11.553904"], ["name", "SomeOtherCrew"], ["provider", "someoneelse"], ["tenant", "default"], ["uid", "usr-1"], ["updated_at", "2016-01-20 05:24:11.553904"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 MnoCrew Load (0.1ms) SELECT "mno_crews".* FROM "mno_crews" WHERE "mno_crews"."provider" = 'maestrano' AND "mno_crews"."uid" = 'cld-1' AND "mno_crews"."tenant" = 'default' ORDER BY "mno_crews"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "mno_crews" ("created_at", "name", "provider", "tenant", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2016-01-20 05:24:11.554981"], ["name", "Your Group"], ["provider", "maestrano"], ["tenant", "default"], ["uid", "cld-1"], ["updated_at", "2016-01-20 05:24:11.554981"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction ------------------------------------------------------------------------------------------------------------------------------ MaestranoGroupViaTest: test_: class methods find_or_create_for_maestrano class method should return the MnoCrew if it exists. ------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "mno_crews" ("created_at", "name", "provider", "tenant", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2016-01-20 05:24:11.556224"], ["name", "SomeCrew"], ["provider", "maestrano"], ["tenant", "default"], ["uid", "cld-1"], ["updated_at", "2016-01-20 05:24:11.556224"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 MnoCrew Load (0.1ms) SELECT "mno_crews".* FROM "mno_crews" WHERE "mno_crews"."provider" = 'maestrano' AND "mno_crews"."uid" = 'cld-1' AND "mno_crews"."tenant" = 'default' ORDER BY "mno_crews"."id" ASC LIMIT 1  (0.1ms) rollback transaction ---------------------------------------------------------------------------------------------------- MaestranoGroupViaTest: test_: class methods maestrano_*_via should have the right field definition. ----------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------------------------- MaestranoGroupViaTest: test_: instance methods maestrano? should return false if provider is something else. -------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ----------------------------------------------------------------------------------------------- MaestranoGroupViaTest: test_: instance methods maestrano? should return false if uid is blank. -----------------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------------------------------------ MaestranoGroupViaTest: test_: instance methods maestrano? should return true if provider is maestrano and uid not null. ------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: namespaced model should create the right migration. -------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: namespaced model should edit the model content. ---------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should create the right migration. ---------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ----------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should edit the model content. -----------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should include parameters if rails 3 and strong_parameter not present. ---------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should not include parameters if rails 3 and strong_parameter present. ---------------------------------------------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should not include parameters in rails 4. ----------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------- MetadataControllerTest: test_: authenticated should be successful. -------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Rails::MetadataController#index as HTML Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------- MetadataControllerTest: test_: unauthenticated should deny access. -------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Rails::MetadataController#index as HTML Filter chain halted as :authenticate_maestrano! rendered or redirected Completed 401 Unauthorized in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ----------------------------------------------------------------- GroupsControllerTest: test_: authenticated should be successful. -----------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Account::GroupsController#destroy as HTML Parameters: {"id"=>"cld-1"} Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ----------------------------------------------------------------- GroupsControllerTest: test_: unauthenticated should deny access. -----------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Account::GroupsController#destroy as HTML Parameters: {"id"=>"cld-1"} Filter chain halted as :authenticate_maestrano! rendered or redirected Completed 401 Unauthorized in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------------- UserGeneratorTest: test_: UserGenerator should call the active_record migration generator successfully. --------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------- UserGeneratorTest: test_: UserGenerator should call the mongoid migration generator successfully. --------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ------------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: namespaced model should create the right migration. -------------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: namespaced model should edit the model content. ---------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should create the right migration. ---------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ----------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should edit the model content. -----------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction --------------------------------------------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should include parameters if rails 3 and strong_parameter not present. ---------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should not include parameters if rails 3 and strong_parameter present. ---------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should not include parameters in rails 4. ----------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------- GroupUsersControllerTest: test_: authenticated should be successful. ---------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Account::GroupUsersController#destroy as HTML Parameters: {"group_id"=>"cld-1", "id"=>"usr-1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction --------------------------------------------------------------------- GroupUsersControllerTest: test_: unauthenticated should deny access. ---------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Account::GroupUsersController#destroy as HTML Parameters: {"group_id"=>"cld-1", "id"=>"usr-1"} Filter chain halted as :authenticate_maestrano! rendered or redirected Completed 401 Unauthorized in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction -------------------------------------------------------------------------------------------------------- UserGeneratorTest: test_: UserGenerator should call the active_record migration generator successfully. --------------------------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------- UserGeneratorTest: test_: UserGenerator should call the mongoid migration generator successfully. --------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: class methods find_or_create_for_maestrano class method should create a monster using the mapping block. --------------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction MnoMonster Load (0.1ms) SELECT "mno_monsters".* FROM "mno_monsters" WHERE "mno_monsters"."provider" = 'maestrano' AND "mno_monsters"."uid" = 'usr-2' AND "mno_monsters"."tenant" = 'default' ORDER BY "mno_monsters"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "mno_monsters" ("created_at", "email", "first_name", "last_name", "provider", "tenant", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2016-01-20 05:24:21.625453"], ["email", "monster@monst.com"], ["first_name", "Mon"], ["last_name", "Ster"], ["provider", "maestrano"], ["tenant", "default"], ["uid", "usr-2"], ["updated_at", "2016-01-20 05:24:21.625453"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: class methods find_or_create_for_maestrano class method should not return a MnoMonster from another provider if it exists. --------------------------------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "mno_monsters" ("created_at", "email", "first_name", "last_name", "provider", "tenant", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2016-01-20 05:24:21.628474"], ["email", "monster@co.com"], ["first_name", "John"], ["last_name", "Jack"], ["provider", "someoneelse"], ["tenant", "default"], ["uid", "usr-1"], ["updated_at", "2016-01-20 05:24:21.628474"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 MnoMonster Load (0.1ms) SELECT "mno_monsters".* FROM "mno_monsters" WHERE "mno_monsters"."provider" = 'maestrano' AND "mno_monsters"."uid" = 'usr-1' AND "mno_monsters"."tenant" = 'default' ORDER BY "mno_monsters"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "mno_monsters" ("created_at", "provider", "tenant", "uid", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2016-01-20 05:24:21.629804"], ["provider", "maestrano"], ["tenant", "default"], ["uid", "usr-1"], ["updated_at", "2016-01-20 05:24:21.629804"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: class methods find_or_create_for_maestrano class method should return the MnoMonster if it exists. --------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "mno_monsters" ("created_at", "email", "first_name", "last_name", "provider", "tenant", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2016-01-20 05:24:21.631270"], ["email", "monster@co.com"], ["first_name", "John"], ["last_name", "Jack"], ["provider", "maestrano"], ["tenant", "default"], ["uid", "usr-1"], ["updated_at", "2016-01-20 05:24:21.631270"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 MnoMonster Load (0.1ms) SELECT "mno_monsters".* FROM "mno_monsters" WHERE "mno_monsters"."provider" = 'maestrano' AND "mno_monsters"."uid" = 'usr-1' AND "mno_monsters"."tenant" = 'default' ORDER BY "mno_monsters"."id" ASC LIMIT 1  (0.1ms) rollback transaction --------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: class methods maestrano_*_via should have the right field definition. ---------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------------------------ MaestranoUserViaTest: test_: instance methods maestrano? should return false if provider is something else. ------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction ---------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: instance methods maestrano? should return false if uid is blank. ----------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ----------------------------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: instance methods maestrano? should return true if provider is maestrano and uid not null. -----------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------ ActiveRecordUserGeneratorTest: test_: namespaced model should create the right migration. ------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: namespaced model should edit the model content. --------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should create the right migration. --------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should edit the model content. ----------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should include parameters if rails 3 and strong_parameter not present. --------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should not include parameters if rails 3 and strong_parameter present. --------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should not include parameters in rails 4. ---------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------- MetadataControllerTest: test_: authenticated should be successful. -------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Rails::MetadataController#index as HTML Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------- MetadataControllerTest: test_: unauthenticated should deny access. -------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Rails::MetadataController#index as HTML Filter chain halted as :authenticate_maestrano! rendered or redirected Completed 401 Unauthorized in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------ MaestranoRailsTest: test_truth ------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ----------------------------------------------------------------- GroupsControllerTest: test_: authenticated should be successful. -----------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Account::GroupsController#destroy as HTML Parameters: {"id"=>"cld-1"} Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ----------------------------------------------------------------- GroupsControllerTest: test_: unauthenticated should deny access. -----------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Account::GroupsController#destroy as HTML Parameters: {"id"=>"cld-1"} Filter chain halted as :authenticate_maestrano! rendered or redirected Completed 401 Unauthorized in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------------------------------- GenericControllerTest: test_: with a maestrano session should be successful if the maestrano session is still valid. ---------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by PagesController#home as HTML Completed 200 OK in 7ms (Views: 6.8ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction -------------------------------------------------------------------------------------------------------------------- GenericControllerTest: test_: with a maestrano session should initialize redirect to SSO initialization if invalid. --------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by PagesController#home as HTML Redirected to http://localhost::3000/maestrano/auth/saml/init Filter chain halted as :verify_maestrano_session rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) rollback transaction ----------------------------------------------------------------------------------------------------------- GenericControllerTest: test_: with a maestrano session should not redirect to SSO init if sso is disabled. -----------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by PagesController#home as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------------------ GenericControllerTest: test_: with no maestrano session should be successful. ------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by PagesController#home as HTML Completed 200 OK in 0ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------------------------------------------------- MaestranoGroupViaTest: test_: class methods find_or_create_for_maestrano class method should create a monster using the mapping block. ---------------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction MnoCrew Load (0.1ms) SELECT "mno_crews".* FROM "mno_crews" WHERE "mno_crews"."provider" = 'maestrano' AND "mno_crews"."uid" = 'usr-2' AND "mno_crews"."tenant" = 'default' ORDER BY "mno_crews"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "mno_crews" ("created_at", "name", "provider", "tenant", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2016-01-20 05:24:21.689890"], ["name", "Monster Co"], ["provider", "maestrano"], ["tenant", "default"], ["uid", "usr-2"], ["updated_at", "2016-01-20 05:24:21.689890"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction ------------------------------------------------------------------------------------------------------------------------------------------------------ MaestranoGroupViaTest: test_: class methods find_or_create_for_maestrano class method should not return a MnoCrew from another provider if it exists. ------------------------------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "mno_crews" ("created_at", "name", "provider", "tenant", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2016-01-20 05:24:21.691695"], ["name", "SomeOtherCrew"], ["provider", "someoneelse"], ["tenant", "default"], ["uid", "usr-1"], ["updated_at", "2016-01-20 05:24:21.691695"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 MnoCrew Load (0.1ms) SELECT "mno_crews".* FROM "mno_crews" WHERE "mno_crews"."provider" = 'maestrano' AND "mno_crews"."uid" = 'cld-1' AND "mno_crews"."tenant" = 'default' ORDER BY "mno_crews"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "mno_crews" ("created_at", "name", "provider", "tenant", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2016-01-20 05:24:21.693250"], ["name", "Your Group"], ["provider", "maestrano"], ["tenant", "default"], ["uid", "cld-1"], ["updated_at", "2016-01-20 05:24:21.693250"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction ------------------------------------------------------------------------------------------------------------------------------ MaestranoGroupViaTest: test_: class methods find_or_create_for_maestrano class method should return the MnoCrew if it exists. ------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "mno_crews" ("created_at", "name", "provider", "tenant", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2016-01-20 05:24:21.695211"], ["name", "SomeCrew"], ["provider", "maestrano"], ["tenant", "default"], ["uid", "cld-1"], ["updated_at", "2016-01-20 05:24:21.695211"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 MnoCrew Load (0.1ms) SELECT "mno_crews".* FROM "mno_crews" WHERE "mno_crews"."provider" = 'maestrano' AND "mno_crews"."uid" = 'cld-1' AND "mno_crews"."tenant" = 'default' ORDER BY "mno_crews"."id" ASC LIMIT 1  (0.1ms) rollback transaction ---------------------------------------------------------------------------------------------------- MaestranoGroupViaTest: test_: class methods maestrano_*_via should have the right field definition. ----------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------------------------- MaestranoGroupViaTest: test_: instance methods maestrano? should return false if provider is something else. -------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ----------------------------------------------------------------------------------------------- MaestranoGroupViaTest: test_: instance methods maestrano? should return false if uid is blank. -----------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------------------------------------ MaestranoGroupViaTest: test_: instance methods maestrano? should return true if provider is maestrano and uid not null. ------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------------------- GroupGeneratorTest: test_: GroupGenerator should call the active_record migration generator successfully. ----------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------------- GroupGeneratorTest: test_: GroupGenerator should call the mongoid migration generator successfully. ----------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase error should redirect to maestrano on any error. ----------------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Bla Redirected to http://api-sandbox.maestrano.io/app_access_unauthorized?err=internal Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should reset the maestrano session successfully if one already exists. --------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction --------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should set a saml_request in scope. ---------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction -------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should set the group_auth_hash in scope. --------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should set the maestrano session. -------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should set the user_auth_hash in scope. -------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------ SamlBaseControllerTest: test_: consume phase should set the user_group_rel_hash in scope. ------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: init phase should create a saml request successfully if a maestrano session is already set. ---------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#init as HTML Parameters: {"a_param"=>"value"} Redirected to http://idpprovider.com?r=request Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ----------------------------------------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: init phase should create a saml request using params and session and redirect the user. -----------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#init as HTML Parameters: {"a_param"=>"value"} Redirected to http://idpprovider.com?r=request Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction --------------------------------------------------------------------------------------- InstallGeneratorTest: test_: InstallGenerator should create the maestrano initializer. ---------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction ---------------------------------------------------------------------------------- InstallGeneratorTest: test_: InstallGenerator should create the maestrano routes. ----------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction ---------------------------------------------------------------------------------------------------------- InstallGeneratorTest: test_: InstallGenerator should create the maestrano/account/group_users_controller. ----------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction ----------------------------------------------------------------------------------------------------- InstallGeneratorTest: test_: InstallGenerator should create the maestrano/account/groups_controller. -----------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction ------------------------------------------------------------------------------------------------ InstallGeneratorTest: test_: InstallGenerator should create the maestrano/auth/saml_controller. ------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ------------------------------ MaestranoRailsTest: test_truth ------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------------------- GroupGeneratorTest: test_: GroupGenerator should call the active_record migration generator successfully. ----------------------------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------------- GroupGeneratorTest: test_: GroupGenerator should call the mongoid migration generator successfully. ----------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction --------------------------------------------------------------------------------------------------------------------- GenericControllerTest: test_: with a maestrano session should be successful if the maestrano session is still valid. ---------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by PagesController#home as HTML Rendered pages/home.html.erb within layouts/application (0.3ms) Completed 200 OK in 8ms (Views: 7.8ms | ActiveRecord: 0.0ms)  (0.2ms) rollback transaction -------------------------------------------------------------------------------------------------------------------- GenericControllerTest: test_: with a maestrano session should initialize redirect to SSO initialization if invalid. --------------------------------------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by PagesController#home as HTML Redirected to http://localhost::3000/maestrano/auth/saml/init Filter chain halted as :verify_maestrano_session rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.1ms) rollback transaction ----------------------------------------------------------------------------------------------------------- GenericControllerTest: test_: with a maestrano session should not redirect to SSO init if sso is disabled. -----------------------------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by PagesController#home as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------------------ GenericControllerTest: test_: with no maestrano session should be successful. ------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by PagesController#home as HTML Completed 200 OK in 0ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ----------------------------------------------------------------- GroupsControllerTest: test_: authenticated should be successful. -----------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Account::GroupsController#destroy as HTML Parameters: {"id"=>"cld-1"} Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction ----------------------------------------------------------------- GroupsControllerTest: test_: unauthenticated should deny access. -----------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Account::GroupsController#destroy as HTML Parameters: {"id"=>"cld-1"} Filter chain halted as :authenticate_maestrano! rendered or redirected Completed 401 Unauthorized in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------ ActiveRecordUserGeneratorTest: test_: namespaced model should create the right migration. ------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: namespaced model should edit the model content. --------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should create the right migration. --------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should edit the model content. ----------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should include parameters if rails 3 and strong_parameter not present. --------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should not include parameters if rails 3 and strong_parameter present. --------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should not include parameters in rails 4. ---------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction --------------------------------------------------------------------------------------- InstallGeneratorTest: test_: InstallGenerator should create the maestrano initializer. ---------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------- InstallGeneratorTest: test_: InstallGenerator should create the maestrano routes. ----------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------------------- InstallGeneratorTest: test_: InstallGenerator should create the maestrano/account/group_users_controller. ----------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ----------------------------------------------------------------------------------------------------- InstallGeneratorTest: test_: InstallGenerator should create the maestrano/account/groups_controller. -----------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------------ InstallGeneratorTest: test_: InstallGenerator should create the maestrano/auth/saml_controller. ------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------------------------------------------------- MaestranoGroupViaTest: test_: class methods find_or_create_for_maestrano class method should create a monster using the mapping block. ---------------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction MnoCrew Load (0.1ms) SELECT "mno_crews".* FROM "mno_crews" WHERE "mno_crews"."provider" = 'maestrano' AND "mno_crews"."uid" = 'usr-2' AND "mno_crews"."tenant" = 'default' ORDER BY "mno_crews"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "mno_crews" ("created_at", "name", "provider", "tenant", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2016-01-20 05:25:10.801500"], ["name", "Monster Co"], ["provider", "maestrano"], ["tenant", "default"], ["uid", "usr-2"], ["updated_at", "2016-01-20 05:25:10.801500"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction ------------------------------------------------------------------------------------------------------------------------------------------------------ MaestranoGroupViaTest: test_: class methods find_or_create_for_maestrano class method should not return a MnoCrew from another provider if it exists. ------------------------------------------------------------------------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "mno_crews" ("created_at", "name", "provider", "tenant", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2016-01-20 05:25:10.805553"], ["name", "SomeOtherCrew"], ["provider", "someoneelse"], ["tenant", "default"], ["uid", "usr-1"], ["updated_at", "2016-01-20 05:25:10.805553"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 MnoCrew Load (0.1ms) SELECT "mno_crews".* FROM "mno_crews" WHERE "mno_crews"."provider" = 'maestrano' AND "mno_crews"."uid" = 'cld-1' AND "mno_crews"."tenant" = 'default' ORDER BY "mno_crews"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "mno_crews" ("created_at", "name", "provider", "tenant", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2016-01-20 05:25:10.807365"], ["name", "Your Group"], ["provider", "maestrano"], ["tenant", "default"], ["uid", "cld-1"], ["updated_at", "2016-01-20 05:25:10.807365"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction ------------------------------------------------------------------------------------------------------------------------------ MaestranoGroupViaTest: test_: class methods find_or_create_for_maestrano class method should return the MnoCrew if it exists. ------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "mno_crews" ("created_at", "name", "provider", "tenant", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2016-01-20 05:25:10.808835"], ["name", "SomeCrew"], ["provider", "maestrano"], ["tenant", "default"], ["uid", "cld-1"], ["updated_at", "2016-01-20 05:25:10.808835"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 MnoCrew Load (0.1ms) SELECT "mno_crews".* FROM "mno_crews" WHERE "mno_crews"."provider" = 'maestrano' AND "mno_crews"."uid" = 'cld-1' AND "mno_crews"."tenant" = 'default' ORDER BY "mno_crews"."id" ASC LIMIT 1  (0.1ms) rollback transaction ---------------------------------------------------------------------------------------------------- MaestranoGroupViaTest: test_: class methods maestrano_*_via should have the right field definition. ----------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------------------------- MaestranoGroupViaTest: test_: instance methods maestrano? should return false if provider is something else. -------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ----------------------------------------------------------------------------------------------- MaestranoGroupViaTest: test_: instance methods maestrano? should return false if uid is blank. -----------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------------------------------------ MaestranoGroupViaTest: test_: instance methods maestrano? should return true if provider is maestrano and uid not null. ------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase error should redirect to maestrano on any error. ----------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Bla Redirected to http://api-sandbox.maestrano.io/app_access_unauthorized?err=internal Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should reset the maestrano session successfully if one already exists. --------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction --------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should set a saml_request in scope. ---------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction -------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should set the group_auth_hash in scope. --------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should set the maestrano session. -------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should set the user_auth_hash in scope. -------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------ SamlBaseControllerTest: test_: consume phase should set the user_group_rel_hash in scope. ------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: init phase should create a saml request successfully if a maestrano session is already set. ---------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#init as HTML Parameters: {"a_param"=>"value"} Redirected to http://idpprovider.com?r=request Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ----------------------------------------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: init phase should create a saml request using params and session and redirect the user. -----------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#init as HTML Parameters: {"a_param"=>"value"} Redirected to http://idpprovider.com?r=request Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------- MetadataControllerTest: test_: authenticated should be successful. -------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Rails::MetadataController#index as HTML Completed 200 OK in 2ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction ------------------------------------------------------------------- MetadataControllerTest: test_: unauthenticated should deny access. -------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Rails::MetadataController#index as HTML Filter chain halted as :authenticate_maestrano! rendered or redirected Completed 401 Unauthorized in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: class methods find_or_create_for_maestrano class method should create a monster using the mapping block. --------------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction MnoMonster Load (0.1ms) SELECT "mno_monsters".* FROM "mno_monsters" WHERE "mno_monsters"."provider" = 'maestrano' AND "mno_monsters"."uid" = 'usr-2' AND "mno_monsters"."tenant" = 'default' ORDER BY "mno_monsters"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "mno_monsters" ("created_at", "email", "first_name", "last_name", "provider", "tenant", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2016-01-20 05:25:10.844476"], ["email", "monster@monst.com"], ["first_name", "Mon"], ["last_name", "Ster"], ["provider", "maestrano"], ["tenant", "default"], ["uid", "usr-2"], ["updated_at", "2016-01-20 05:25:10.844476"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: class methods find_or_create_for_maestrano class method should not return a MnoMonster from another provider if it exists. --------------------------------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "mno_monsters" ("created_at", "email", "first_name", "last_name", "provider", "tenant", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2016-01-20 05:25:10.846063"], ["email", "monster@co.com"], ["first_name", "John"], ["last_name", "Jack"], ["provider", "someoneelse"], ["tenant", "default"], ["uid", "usr-1"], ["updated_at", "2016-01-20 05:25:10.846063"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 MnoMonster Load (0.1ms) SELECT "mno_monsters".* FROM "mno_monsters" WHERE "mno_monsters"."provider" = 'maestrano' AND "mno_monsters"."uid" = 'usr-1' AND "mno_monsters"."tenant" = 'default' ORDER BY "mno_monsters"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "mno_monsters" ("created_at", "provider", "tenant", "uid", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2016-01-20 05:25:10.847219"], ["provider", "maestrano"], ["tenant", "default"], ["uid", "usr-1"], ["updated_at", "2016-01-20 05:25:10.847219"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: class methods find_or_create_for_maestrano class method should return the MnoMonster if it exists. --------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "mno_monsters" ("created_at", "email", "first_name", "last_name", "provider", "tenant", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2016-01-20 05:25:10.848408"], ["email", "monster@co.com"], ["first_name", "John"], ["last_name", "Jack"], ["provider", "maestrano"], ["tenant", "default"], ["uid", "usr-1"], ["updated_at", "2016-01-20 05:25:10.848408"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 MnoMonster Load (0.1ms) SELECT "mno_monsters".* FROM "mno_monsters" WHERE "mno_monsters"."provider" = 'maestrano' AND "mno_monsters"."uid" = 'usr-1' AND "mno_monsters"."tenant" = 'default' ORDER BY "mno_monsters"."id" ASC LIMIT 1  (0.1ms) rollback transaction --------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: class methods maestrano_*_via should have the right field definition. ---------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------------------------ MaestranoUserViaTest: test_: instance methods maestrano? should return false if provider is something else. ------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: instance methods maestrano? should return false if uid is blank. ----------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ----------------------------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: instance methods maestrano? should return true if provider is maestrano and uid not null. -----------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------------- UserGeneratorTest: test_: UserGenerator should call the active_record migration generator successfully. --------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------- UserGeneratorTest: test_: UserGenerator should call the mongoid migration generator successfully. --------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction --------------------------------------------------------------------- GroupUsersControllerTest: test_: authenticated should be successful. ---------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Account::GroupUsersController#destroy as HTML Parameters: {"group_id"=>"cld-1", "id"=>"usr-1"} Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction --------------------------------------------------------------------- GroupUsersControllerTest: test_: unauthenticated should deny access. ---------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Account::GroupUsersController#destroy as HTML Parameters: {"group_id"=>"cld-1", "id"=>"usr-1"} Filter chain halted as :authenticate_maestrano! rendered or redirected Completed 401 Unauthorized in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: namespaced model should create the right migration. -------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: namespaced model should edit the model content. ---------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should create the right migration. ---------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ----------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should edit the model content. -----------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should include parameters if rails 3 and strong_parameter not present. ---------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should not include parameters if rails 3 and strong_parameter present. ---------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should not include parameters in rails 4. ----------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" --------------------------------------------------------------------------------------- InstallGeneratorTest: test_: InstallGenerator should create the maestrano initializer. ---------------------------------------------------------------------------------------  (0.3ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction ---------------------------------------------------------------------------------- InstallGeneratorTest: test_: InstallGenerator should create the maestrano routes. ----------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.3ms) commit transaction  (0.0ms) begin transaction  (0.2ms) rollback transaction ---------------------------------------------------------------------------------------------------------- InstallGeneratorTest: test_: InstallGenerator should create the maestrano/account/group_users_controller. ----------------------------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.7ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction ----------------------------------------------------------------------------------------------------- InstallGeneratorTest: test_: InstallGenerator should create the maestrano/account/groups_controller. -----------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction ------------------------------------------------------------------------------------------------ InstallGeneratorTest: test_: InstallGenerator should create the maestrano/auth/saml_controller. ------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction ------------------------------------------------------------------- MetadataControllerTest: test_: authenticated should be successful. -------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Rails::MetadataController#index as HTML Completed 200 OK in 2ms (Views: 0.6ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction ------------------------------------------------------------------- MetadataControllerTest: test_: unauthenticated should deny access. -------------------------------------------------------------------  (0.3ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Rails::MetadataController#index as HTML Filter chain halted as :authenticate_maestrano! rendered or redirected Completed 401 Unauthorized in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction --------------------------------------------------------------------- GroupUsersControllerTest: test_: authenticated should be successful. ---------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Account::GroupUsersController#destroy as HTML Parameters: {"group_id"=>"cld-1", "id"=>"usr-1"} Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.8ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction --------------------------------------------------------------------- GroupUsersControllerTest: test_: unauthenticated should deny access. ---------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Account::GroupUsersController#destroy as HTML Parameters: {"group_id"=>"cld-1", "id"=>"usr-1"} Filter chain halted as :authenticate_maestrano! rendered or redirected Completed 401 Unauthorized in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: namespaced model should create the right migration. -------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.9ms) rollback transaction --------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: namespaced model should edit the model content. ---------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.3ms) rollback transaction --------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should create the right migration. ---------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ----------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should edit the model content. -----------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should include parameters if rails 3 and strong_parameter not present. ---------------------------------------------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should not include parameters if rails 3 and strong_parameter present. ---------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should not include parameters in rails 4. ----------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase error should redirect to maestrano on any error. ----------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Bla Redirected to http://api-sandbox.maestrano.io/app_access_unauthorized?err=internal Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.1ms) rollback transaction -------------------------------------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should reset the maestrano session successfully if one already exists. --------------------------------------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction --------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should set a saml_request in scope. ---------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction -------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should set the group_auth_hash in scope. --------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should set the maestrano session. -------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should set the user_auth_hash in scope. -------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------ SamlBaseControllerTest: test_: consume phase should set the user_group_rel_hash in scope. ------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: init phase should create a saml request successfully if a maestrano session is already set. ---------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#init as HTML Parameters: {"a_param"=>"value"} Redirected to http://idpprovider.com?r=request Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ----------------------------------------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: init phase should create a saml request using params and session and redirect the user. -----------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#init as HTML Parameters: {"a_param"=>"value"} Redirected to http://idpprovider.com?r=request Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------ ActiveRecordUserGeneratorTest: test_: namespaced model should create the right migration. ------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: namespaced model should edit the model content. --------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should create the right migration. --------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should edit the model content. ----------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should include parameters if rails 3 and strong_parameter not present. --------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.4ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should not include parameters if rails 3 and strong_parameter present. --------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should not include parameters in rails 4. ---------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: class methods find_or_create_for_maestrano class method should create a monster using the mapping block. --------------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction 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"]]  (0.0ms) SAVEPOINT active_record_1 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-01-20 05:32:05.532122"], ["updated_at", "2016-01-20 05:32:05.532122"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: class methods find_or_create_for_maestrano class method should not return a MnoMonster from another provider if it exists. --------------------------------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 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-01-20 05:32:05.534243"], ["updated_at", "2016-01-20 05:32:05.534243"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.0ms) SAVEPOINT active_record_1 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-01-20 05:32:05.535632"], ["updated_at", "2016-01-20 05:32:05.535632"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: class methods find_or_create_for_maestrano class method should return the MnoMonster if it exists. --------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 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-01-20 05:32:05.536960"], ["updated_at", "2016-01-20 05:32:05.536960"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.1ms) rollback transaction --------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: class methods maestrano_*_via should have the right field definition. ---------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------------------------ MaestranoUserViaTest: test_: instance methods maestrano? should return false if provider is something else. ------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: instance methods maestrano? should return false if uid is blank. ----------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ----------------------------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: instance methods maestrano? should return true if provider is maestrano and uid not null. -----------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------------------------------- GenericControllerTest: test_: with a maestrano session should be successful if the maestrano session is still valid. ---------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by PagesController#home as HTML Rendered pages/home.html.erb within layouts/application (0.3ms) Completed 200 OK in 194ms (Views: 193.3ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction -------------------------------------------------------------------------------------------------------------------- GenericControllerTest: test_: with a maestrano session should initialize redirect to SSO initialization if invalid. --------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction Processing by PagesController#home as HTML Redirected to http://localhost::3000/maestrano/auth/saml/init Filter chain halted as :verify_maestrano_session rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) rollback transaction ----------------------------------------------------------------------------------------------------------- GenericControllerTest: test_: with a maestrano session should not redirect to SSO init if sso is disabled. -----------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by PagesController#home as HTML Rendered pages/home.html.erb within layouts/application (0.0ms) Completed 200 OK in 1ms (Views: 1.0ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------------------ GenericControllerTest: test_: with no maestrano session should be successful. ------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by PagesController#home as HTML Rendered pages/home.html.erb within layouts/application (0.0ms) Completed 200 OK in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------ MaestranoRailsTest: test_truth ------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------------------------------------------------- MaestranoGroupViaTest: test_: class methods find_or_create_for_maestrano class method should create a monster using the mapping block. ---------------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction 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"]]  (0.0ms) SAVEPOINT active_record_1 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-01-20 05:32:05.752222"], ["updated_at", "2016-01-20 05:32:05.752222"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction ------------------------------------------------------------------------------------------------------------------------------------------------------ MaestranoGroupViaTest: test_: class methods find_or_create_for_maestrano class method should not return a MnoCrew from another provider if it exists. ------------------------------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 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-01-20 05:32:05.754254"], ["updated_at", "2016-01-20 05:32:05.754254"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.0ms) SAVEPOINT active_record_1 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-01-20 05:32:05.755790"], ["updated_at", "2016-01-20 05:32:05.755790"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction ------------------------------------------------------------------------------------------------------------------------------ MaestranoGroupViaTest: test_: class methods find_or_create_for_maestrano class method should return the MnoCrew if it exists. ------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 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-01-20 05:32:05.757326"], ["updated_at", "2016-01-20 05:32:05.757326"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.1ms) rollback transaction ---------------------------------------------------------------------------------------------------- MaestranoGroupViaTest: test_: class methods maestrano_*_via should have the right field definition. ----------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------------------------- MaestranoGroupViaTest: test_: instance methods maestrano? should return false if provider is something else. -------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ----------------------------------------------------------------------------------------------- MaestranoGroupViaTest: test_: instance methods maestrano? should return false if uid is blank. -----------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------------------------------------ MaestranoGroupViaTest: test_: instance methods maestrano? should return true if provider is maestrano and uid not null. ------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ----------------------------------------------------------------- GroupsControllerTest: test_: authenticated should be successful. -----------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Account::GroupsController#destroy as HTML Parameters: {"id"=>"cld-1"} Rendered text template (0.0ms) Completed 200 OK in 4ms (Views: 2.9ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction ----------------------------------------------------------------- GroupsControllerTest: test_: unauthenticated should deny access. -----------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Account::GroupsController#destroy as HTML Parameters: {"id"=>"cld-1"} Filter chain halted as :authenticate_maestrano! rendered or redirected Completed 401 Unauthorized in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------------------- GroupGeneratorTest: test_: GroupGenerator should call the active_record migration generator successfully. ----------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------------- GroupGeneratorTest: test_: GroupGenerator should call the mongoid migration generator successfully. ----------------------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction -------------------------------------------------------------------------------------------------------- UserGeneratorTest: test_: UserGenerator should call the active_record migration generator successfully. --------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------- UserGeneratorTest: test_: UserGenerator should call the mongoid migration generator successfully. --------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" --------------------------------------------------------------------- GroupUsersControllerTest: test_: authenticated should be successful. ---------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.3ms) begin transaction Processing by Maestrano::Account::GroupUsersController#destroy as HTML Parameters: {"group_id"=>"cld-1", "id"=>"usr-1"} Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.9ms | ActiveRecord: 0.0ms)  (0.2ms) rollback transaction --------------------------------------------------------------------- GroupUsersControllerTest: test_: unauthenticated should deny access. ---------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Account::GroupUsersController#destroy as HTML Parameters: {"group_id"=>"cld-1", "id"=>"usr-1"} Filter chain halted as :authenticate_maestrano! rendered or redirected Completed 401 Unauthorized in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------- MetadataControllerTest: test_: authenticated should be successful. -------------------------------------------------------------------  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction Processing by Maestrano::Rails::MetadataController#index as HTML Completed 200 OK in 4ms (Views: 0.6ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------- MetadataControllerTest: test_: unauthenticated should deny access. -------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Rails::MetadataController#index as HTML Filter chain halted as :authenticate_maestrano! rendered or redirected Completed 401 Unauthorized in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: class methods find_or_create_for_maestrano class method should create a monster using the mapping block. --------------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction MnoMonster Load (0.4ms) 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"]]  (0.1ms) SAVEPOINT active_record_1 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-01-20 05:32:33.892014"], ["updated_at", "2016-01-20 05:32:33.892014"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: class methods find_or_create_for_maestrano class method should not return a MnoMonster from another provider if it exists. --------------------------------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.3ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 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-01-20 05:32:33.894796"], ["updated_at", "2016-01-20 05:32:33.894796"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.0ms) SAVEPOINT active_record_1 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-01-20 05:32:33.896759"], ["updated_at", "2016-01-20 05:32:33.896759"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: class methods find_or_create_for_maestrano class method should return the MnoMonster if it exists. --------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 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-01-20 05:32:33.898837"], ["updated_at", "2016-01-20 05:32:33.898837"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.1ms) rollback transaction --------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: class methods maestrano_*_via should have the right field definition. ---------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------------------------ MaestranoUserViaTest: test_: instance methods maestrano? should return false if provider is something else. ------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: instance methods maestrano? should return false if uid is blank. ----------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ----------------------------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: instance methods maestrano? should return true if provider is maestrano and uid not null. -----------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------------- UserGeneratorTest: test_: UserGenerator should call the active_record migration generator successfully. --------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction -------------------------------------------------------------------------------------------------- UserGeneratorTest: test_: UserGenerator should call the mongoid migration generator successfully. --------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.3ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction ------------------------------------------------------------------------------------------ ActiveRecordUserGeneratorTest: test_: namespaced model should create the right migration. ------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: namespaced model should edit the model content. --------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should create the right migration. --------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should edit the model content. ----------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should include parameters if rails 3 and strong_parameter not present. --------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should not include parameters if rails 3 and strong_parameter present. --------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should not include parameters in rails 4. ---------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: namespaced model should create the right migration. -------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: namespaced model should edit the model content. ---------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should create the right migration. ---------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ----------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should edit the model content. -----------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should include parameters if rails 3 and strong_parameter not present. ---------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should not include parameters if rails 3 and strong_parameter present. ---------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.3ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should not include parameters in rails 4. ----------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------------------- GroupGeneratorTest: test_: GroupGenerator should call the active_record migration generator successfully. ----------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------------- GroupGeneratorTest: test_: GroupGenerator should call the mongoid migration generator successfully. ----------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction --------------------------------------------------------------------------------------- InstallGeneratorTest: test_: InstallGenerator should create the maestrano initializer. ---------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------- InstallGeneratorTest: test_: InstallGenerator should create the maestrano routes. ----------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------------------- InstallGeneratorTest: test_: InstallGenerator should create the maestrano/account/group_users_controller. ----------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction ----------------------------------------------------------------------------------------------------- InstallGeneratorTest: test_: InstallGenerator should create the maestrano/account/groups_controller. -----------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------------ InstallGeneratorTest: test_: InstallGenerator should create the maestrano/auth/saml_controller. ------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction ----------------------------------------------------------------- GroupsControllerTest: test_: authenticated should be successful. -----------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Account::GroupsController#destroy as HTML Parameters: {"id"=>"cld-1"} Rendered text template (0.0ms) Completed 200 OK in 3ms (Views: 2.3ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction ----------------------------------------------------------------- GroupsControllerTest: test_: unauthenticated should deny access. -----------------------------------------------------------------  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Account::GroupsController#destroy as HTML Parameters: {"id"=>"cld-1"} Filter chain halted as :authenticate_maestrano! rendered or redirected Completed 401 Unauthorized in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------ MaestranoRailsTest: test_truth ------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------------------------------------------------- MaestranoGroupViaTest: test_: class methods find_or_create_for_maestrano class method should create a monster using the mapping block. ---------------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction 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"]]  (0.0ms) SAVEPOINT active_record_1 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-01-20 05:32:34.022189"], ["updated_at", "2016-01-20 05:32:34.022189"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction ------------------------------------------------------------------------------------------------------------------------------------------------------ MaestranoGroupViaTest: test_: class methods find_or_create_for_maestrano class method should not return a MnoCrew from another provider if it exists. ------------------------------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 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-01-20 05:32:34.024138"], ["updated_at", "2016-01-20 05:32:34.024138"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.0ms) SAVEPOINT active_record_1 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-01-20 05:32:34.025496"], ["updated_at", "2016-01-20 05:32:34.025496"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction ------------------------------------------------------------------------------------------------------------------------------ MaestranoGroupViaTest: test_: class methods find_or_create_for_maestrano class method should return the MnoCrew if it exists. ------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 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-01-20 05:32:34.027068"], ["updated_at", "2016-01-20 05:32:34.027068"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.1ms) rollback transaction ---------------------------------------------------------------------------------------------------- MaestranoGroupViaTest: test_: class methods maestrano_*_via should have the right field definition. ----------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------------------------- MaestranoGroupViaTest: test_: instance methods maestrano? should return false if provider is something else. -------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ----------------------------------------------------------------------------------------------- MaestranoGroupViaTest: test_: instance methods maestrano? should return false if uid is blank. -----------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------------------------------------ MaestranoGroupViaTest: test_: instance methods maestrano? should return true if provider is maestrano and uid not null. ------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase error should redirect to maestrano on any error. ----------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Bla Redirected to http://api-sandbox.maestrano.io/app_access_unauthorized?err=internal Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should reset the maestrano session successfully if one already exists. --------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction --------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should set a saml_request in scope. ---------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.1ms) rollback transaction -------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should set the group_auth_hash in scope. --------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should set the maestrano session. -------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should set the user_auth_hash in scope. -------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------ SamlBaseControllerTest: test_: consume phase should set the user_group_rel_hash in scope. ------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: init phase should create a saml request successfully if a maestrano session is already set. ---------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#init as HTML Parameters: {"a_param"=>"value"} Redirected to http://idpprovider.com?r=request Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ----------------------------------------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: init phase should create a saml request using params and session and redirect the user. -----------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#init as HTML Parameters: {"a_param"=>"value"} Redirected to http://idpprovider.com?r=request Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------------------------------- GenericControllerTest: test_: with a maestrano session should be successful if the maestrano session is still valid. ---------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by PagesController#home as HTML Rendered pages/home.html.erb within layouts/application (0.3ms) Completed 200 OK in 103ms (Views: 102.6ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction -------------------------------------------------------------------------------------------------------------------- GenericControllerTest: test_: with a maestrano session should initialize redirect to SSO initialization if invalid. --------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by PagesController#home as HTML Redirected to http://localhost::3000/maestrano/auth/saml/init Filter chain halted as :verify_maestrano_session rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ----------------------------------------------------------------------------------------------------------- GenericControllerTest: test_: with a maestrano session should not redirect to SSO init if sso is disabled. -----------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by PagesController#home as HTML Rendered pages/home.html.erb within layouts/application (0.0ms) Completed 200 OK in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------------------ GenericControllerTest: test_: with no maestrano session should be successful. ------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by PagesController#home as HTML Rendered pages/home.html.erb within layouts/application (0.0ms) Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ------------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: namespaced model should create the right migration. -------------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: namespaced model should edit the model content. ---------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should create the right migration. ---------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction ----------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should edit the model content. -----------------------------------------------------------------------------------  (0.3ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should include parameters if rails 3 and strong_parameter not present. ---------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should not include parameters if rails 3 and strong_parameter present. ---------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction ---------------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should not include parameters in rails 4. ----------------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------- InstallGeneratorTest: test_: InstallGenerator should create the maestrano initializer. ---------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction ---------------------------------------------------------------------------------- InstallGeneratorTest: test_: InstallGenerator should create the maestrano routes. ----------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.2ms) rollback transaction ---------------------------------------------------------------------------------------------------------- InstallGeneratorTest: test_: InstallGenerator should create the maestrano/account/group_users_controller. ----------------------------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction ----------------------------------------------------------------------------------------------------- InstallGeneratorTest: test_: InstallGenerator should create the maestrano/account/groups_controller. -----------------------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction ------------------------------------------------------------------------------------------------ InstallGeneratorTest: test_: InstallGenerator should create the maestrano/auth/saml_controller. ------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction ------------------------------------------------------------------- MetadataControllerTest: test_: authenticated should be successful. -------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Rails::MetadataController#index as HTML Completed 200 OK in 3ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------- MetadataControllerTest: test_: unauthenticated should deny access. -------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Rails::MetadataController#index as HTML Filter chain halted as :authenticate_maestrano! rendered or redirected Completed 401 Unauthorized in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------------------- GroupGeneratorTest: test_: GroupGenerator should call the active_record migration generator successfully. ----------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction ---------------------------------------------------------------------------------------------------- GroupGeneratorTest: test_: GroupGenerator should call the mongoid migration generator successfully. ----------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ----------------------------------------------------------------- GroupsControllerTest: test_: authenticated should be successful. -----------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Account::GroupsController#destroy as HTML Parameters: {"id"=>"cld-1"} Rendered text template (0.0ms) Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ----------------------------------------------------------------- GroupsControllerTest: test_: unauthenticated should deny access. -----------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Account::GroupsController#destroy as HTML Parameters: {"id"=>"cld-1"} Filter chain halted as :authenticate_maestrano! rendered or redirected Completed 401 Unauthorized in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------------------------------------------------- MaestranoGroupViaTest: test_: class methods find_or_create_for_maestrano class method should create a monster using the mapping block. ---------------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction 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"]]  (0.1ms) SAVEPOINT active_record_1 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-01-20 05:33:50.697459"], ["updated_at", "2016-01-20 05:33:50.697459"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction ------------------------------------------------------------------------------------------------------------------------------------------------------ MaestranoGroupViaTest: test_: class methods find_or_create_for_maestrano class method should not return a MnoCrew from another provider if it exists. ------------------------------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 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-01-20 05:33:50.700344"], ["updated_at", "2016-01-20 05:33:50.700344"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.0ms) SAVEPOINT active_record_1 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-01-20 05:33:50.702446"], ["updated_at", "2016-01-20 05:33:50.702446"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction ------------------------------------------------------------------------------------------------------------------------------ MaestranoGroupViaTest: test_: class methods find_or_create_for_maestrano class method should return the MnoCrew if it exists. ------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 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-01-20 05:33:50.704549"], ["updated_at", "2016-01-20 05:33:50.704549"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.1ms) rollback transaction ---------------------------------------------------------------------------------------------------- MaestranoGroupViaTest: test_: class methods maestrano_*_via should have the right field definition. ----------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------------------------- MaestranoGroupViaTest: test_: instance methods maestrano? should return false if provider is something else. -------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.2ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ----------------------------------------------------------------------------------------------- MaestranoGroupViaTest: test_: instance methods maestrano? should return false if uid is blank. -----------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------------------------------------ MaestranoGroupViaTest: test_: instance methods maestrano? should return true if provider is maestrano and uid not null. ------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: class methods find_or_create_for_maestrano class method should create a monster using the mapping block. --------------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "mno_monsters" ("first_name", "last_name", "email", "provider", "uid", "tenant", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["first_name", "Mon"], ["last_name", "Ster"], ["email", "monster@monst.com"], ["provider", "maestrano"], ["uid", "usr-2"], ["tenant", "default"], ["created_at", "2016-01-20 05:33:50.716931"], ["updated_at", "2016-01-20 05:33:50.716931"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: class methods find_or_create_for_maestrano class method should not return a MnoMonster from another provider if it exists. --------------------------------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 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-01-20 05:33:50.719297"], ["updated_at", "2016-01-20 05:33:50.719297"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "mno_monsters" ("provider", "uid", "tenant", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["provider", "maestrano"], ["uid", "usr-1"], ["tenant", "default"], ["created_at", "2016-01-20 05:33:50.721458"], ["updated_at", "2016-01-20 05:33:50.721458"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: class methods find_or_create_for_maestrano class method should return the MnoMonster if it exists. --------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 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-01-20 05:33:50.731834"], ["updated_at", "2016-01-20 05:33:50.731834"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.1ms) rollback transaction --------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: class methods maestrano_*_via should have the right field definition. ---------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------------------------ MaestranoUserViaTest: test_: instance methods maestrano? should return false if provider is something else. ------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: instance methods maestrano? should return false if uid is blank. ----------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ----------------------------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: instance methods maestrano? should return true if provider is maestrano and uid not null. -----------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------------- UserGeneratorTest: test_: UserGenerator should call the active_record migration generator successfully. --------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction -------------------------------------------------------------------------------------------------- UserGeneratorTest: test_: UserGenerator should call the mongoid migration generator successfully. --------------------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------ MaestranoRailsTest: test_truth ------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------ ActiveRecordUserGeneratorTest: test_: namespaced model should create the right migration. ------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction -------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: namespaced model should edit the model content. --------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should create the right migration. --------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should edit the model content. ----------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should include parameters if rails 3 and strong_parameter not present. --------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should not include parameters if rails 3 and strong_parameter present. --------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should not include parameters in rails 4. ---------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------- GroupUsersControllerTest: test_: authenticated should be successful. ---------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Account::GroupUsersController#destroy as HTML Parameters: {"group_id"=>"cld-1", "id"=>"usr-1"} Rendered text template (0.0ms) Completed 200 OK in 3ms (Views: 2.3ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction --------------------------------------------------------------------- GroupUsersControllerTest: test_: unauthenticated should deny access. ---------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Account::GroupUsersController#destroy as HTML Parameters: {"group_id"=>"cld-1", "id"=>"usr-1"} Filter chain halted as :authenticate_maestrano! rendered or redirected Completed 401 Unauthorized in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase error should redirect to maestrano on any error. ----------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Bla Redirected to http://api-sandbox.maestrano.io/app_access_unauthorized?err=internal Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.1ms) rollback transaction -------------------------------------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should reset the maestrano session successfully if one already exists. --------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.1ms) rollback transaction --------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should set a saml_request in scope. ---------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction -------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should set the group_auth_hash in scope. --------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should set the maestrano session. -------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should set the user_auth_hash in scope. -------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------ SamlBaseControllerTest: test_: consume phase should set the user_group_rel_hash in scope. ------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: init phase should create a saml request successfully if a maestrano session is already set. ---------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#init as HTML Parameters: {"a_param"=>"value"} Redirected to http://idpprovider.com?r=request Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ----------------------------------------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: init phase should create a saml request using params and session and redirect the user. -----------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#init as HTML Parameters: {"a_param"=>"value"} Redirected to http://idpprovider.com?r=request Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------------------------------- GenericControllerTest: test_: with a maestrano session should be successful if the maestrano session is still valid. ---------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by PagesController#home as HTML Rendered pages/home.html.erb within layouts/application (0.3ms) Completed 200 OK in 95ms (Views: 95.1ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction -------------------------------------------------------------------------------------------------------------------- GenericControllerTest: test_: with a maestrano session should initialize redirect to SSO initialization if invalid. --------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by PagesController#home as HTML Redirected to http://localhost::3000/maestrano/auth/saml/init Filter chain halted as :verify_maestrano_session rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ----------------------------------------------------------------------------------------------------------- GenericControllerTest: test_: with a maestrano session should not redirect to SSO init if sso is disabled. -----------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by PagesController#home as HTML Rendered pages/home.html.erb within layouts/application (0.0ms) Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------------------ GenericControllerTest: test_: with no maestrano session should be successful. ------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by PagesController#home as HTML Rendered pages/home.html.erb within layouts/application (0.0ms) Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" --------------------------------------------------------------------------------------------------------------------------------------- MaestranoGroupViaTest: test_: class methods find_or_create_for_maestrano class method should create a monster using the mapping block. ---------------------------------------------------------------------------------------------------------------------------------------  (0.4ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction 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"]]  (0.1ms) SAVEPOINT active_record_1 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-01-20 05:34:56.805552"], ["updated_at", "2016-01-20 05:34:56.805552"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction ------------------------------------------------------------------------------------------------------------------------------------------------------ MaestranoGroupViaTest: test_: class methods find_or_create_for_maestrano class method should not return a MnoCrew from another provider if it exists. ------------------------------------------------------------------------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 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-01-20 05:34:56.809106"], ["updated_at", "2016-01-20 05:34:56.809106"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.0ms) SAVEPOINT active_record_1 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-01-20 05:34:56.811949"], ["updated_at", "2016-01-20 05:34:56.811949"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction ------------------------------------------------------------------------------------------------------------------------------ MaestranoGroupViaTest: test_: class methods find_or_create_for_maestrano class method should return the MnoCrew if it exists. ------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 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-01-20 05:34:56.814484"], ["updated_at", "2016-01-20 05:34:56.814484"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.1ms) rollback transaction ---------------------------------------------------------------------------------------------------- MaestranoGroupViaTest: test_: class methods maestrano_*_via should have the right field definition. ----------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.2ms) rollback transaction ------------------------------------------------------------------------------------------------------------- MaestranoGroupViaTest: test_: instance methods maestrano? should return false if provider is something else. -------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ----------------------------------------------------------------------------------------------- MaestranoGroupViaTest: test_: instance methods maestrano? should return false if uid is blank. -----------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------------------------------------ MaestranoGroupViaTest: test_: instance methods maestrano? should return true if provider is maestrano and uid not null. ------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ----------------------------------------------------------------- GroupsControllerTest: test_: authenticated should be successful. -----------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Account::GroupsController#destroy as HTML Parameters: {"id"=>"cld-1"} Rendered text template (0.0ms) Completed 200 OK in 6ms (Views: 4.8ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction ----------------------------------------------------------------- GroupsControllerTest: test_: unauthenticated should deny access. -----------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Account::GroupsController#destroy as HTML Parameters: {"id"=>"cld-1"} Filter chain halted as :authenticate_maestrano! rendered or redirected Completed 401 Unauthorized in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------------------------------- GenericControllerTest: test_: with a maestrano session should be successful if the maestrano session is still valid. ---------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by PagesController#home as HTML Rendered pages/home.html.erb within layouts/application (0.3ms) Completed 200 OK in 124ms (Views: 123.2ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction -------------------------------------------------------------------------------------------------------------------- GenericControllerTest: test_: with a maestrano session should initialize redirect to SSO initialization if invalid. --------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by PagesController#home as HTML Redirected to http://localhost::3000/maestrano/auth/saml/init Filter chain halted as :verify_maestrano_session rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ----------------------------------------------------------------------------------------------------------- GenericControllerTest: test_: with a maestrano session should not redirect to SSO init if sso is disabled. -----------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by PagesController#home as HTML Rendered pages/home.html.erb within layouts/application (0.0ms) Completed 200 OK in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------------------ GenericControllerTest: test_: with no maestrano session should be successful. ------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by PagesController#home as HTML Rendered pages/home.html.erb within layouts/application (0.0ms) Completed 200 OK in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase error should redirect to maestrano on any error. ----------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Bla Redirected to http://api-sandbox.maestrano.io/app_access_unauthorized?err=internal Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should reset the maestrano session successfully if one already exists. --------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction --------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should set a saml_request in scope. ---------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction -------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should set the group_auth_hash in scope. --------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should set the maestrano session. -------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should set the user_auth_hash in scope. -------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------ SamlBaseControllerTest: test_: consume phase should set the user_group_rel_hash in scope. ------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) rollback transaction --------------------------------------------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: init phase should create a saml request successfully if a maestrano session is already set. ---------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#init as HTML Parameters: {"a_param"=>"value"} Redirected to http://idpprovider.com?r=request Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ----------------------------------------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: init phase should create a saml request using params and session and redirect the user. -----------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#init as HTML Parameters: {"a_param"=>"value"} Redirected to http://idpprovider.com?r=request Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: namespaced model should create the right migration. -------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: namespaced model should edit the model content. ---------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should create the right migration. ---------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ----------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should edit the model content. -----------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should include parameters if rails 3 and strong_parameter not present. ---------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should not include parameters if rails 3 and strong_parameter present. ---------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should not include parameters in rails 4. ----------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------- InstallGeneratorTest: test_: InstallGenerator should create the maestrano initializer. ---------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------- InstallGeneratorTest: test_: InstallGenerator should create the maestrano routes. ----------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------------------- InstallGeneratorTest: test_: InstallGenerator should create the maestrano/account/group_users_controller. ----------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ----------------------------------------------------------------------------------------------------- InstallGeneratorTest: test_: InstallGenerator should create the maestrano/account/groups_controller. -----------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------------ InstallGeneratorTest: test_: InstallGenerator should create the maestrano/auth/saml_controller. ------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------------- UserGeneratorTest: test_: UserGenerator should call the active_record migration generator successfully. --------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction -------------------------------------------------------------------------------------------------- UserGeneratorTest: test_: UserGenerator should call the mongoid migration generator successfully. --------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------------------- GroupGeneratorTest: test_: GroupGenerator should call the active_record migration generator successfully. ----------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------------- GroupGeneratorTest: test_: GroupGenerator should call the mongoid migration generator successfully. ----------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------- GroupUsersControllerTest: test_: authenticated should be successful. ---------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Account::GroupUsersController#destroy as HTML Parameters: {"group_id"=>"cld-1", "id"=>"usr-1"} Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.9ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction --------------------------------------------------------------------- GroupUsersControllerTest: test_: unauthenticated should deny access. ---------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Account::GroupUsersController#destroy as HTML Parameters: {"group_id"=>"cld-1", "id"=>"usr-1"} Filter chain halted as :authenticate_maestrano! rendered or redirected Completed 401 Unauthorized in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction ------------------------------------------------------------------------------------------ ActiveRecordUserGeneratorTest: test_: namespaced model should create the right migration. ------------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: namespaced model should edit the model content. --------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should create the right migration. --------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should edit the model content. ----------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should include parameters if rails 3 and strong_parameter not present. --------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should not include parameters if rails 3 and strong_parameter present. --------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should not include parameters in rails 4. ---------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: class methods find_or_create_for_maestrano class method should create a monster using the mapping block. --------------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "mno_monsters" ("first_name", "last_name", "email", "provider", "uid", "tenant", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["first_name", "Mon"], ["last_name", "Ster"], ["email", "monster@monst.com"], ["provider", "maestrano"], ["uid", "usr-2"], ["tenant", "default"], ["created_at", "2016-01-20 05:34:57.077152"], ["updated_at", "2016-01-20 05:34:57.077152"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: class methods find_or_create_for_maestrano class method should not return a MnoMonster from another provider if it exists. --------------------------------------------------------------------------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 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-01-20 05:34:57.079148"], ["updated_at", "2016-01-20 05:34:57.079148"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "mno_monsters" ("provider", "uid", "tenant", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["provider", "maestrano"], ["uid", "usr-1"], ["tenant", "default"], ["created_at", "2016-01-20 05:34:57.080877"], ["updated_at", "2016-01-20 05:34:57.080877"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: class methods find_or_create_for_maestrano class method should return the MnoMonster if it exists. --------------------------------------------------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 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-01-20 05:34:57.083211"], ["updated_at", "2016-01-20 05:34:57.083211"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.1ms) rollback transaction --------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: class methods maestrano_*_via should have the right field definition. ---------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------------------------ MaestranoUserViaTest: test_: instance methods maestrano? should return false if provider is something else. ------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: instance methods maestrano? should return false if uid is blank. ----------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ----------------------------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: instance methods maestrano? should return true if provider is maestrano and uid not null. -----------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------- MetadataControllerTest: test_: authenticated should be successful. -------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Rails::MetadataController#index as HTML Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------- MetadataControllerTest: test_: unauthenticated should deny access. -------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Rails::MetadataController#index as HTML Filter chain halted as :authenticate_maestrano! rendered or redirected Completed 401 Unauthorized in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------ MaestranoRailsTest: test_truth ------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ----------------------------------------------------------------- GroupsControllerTest: test_: authenticated should be successful. -----------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Account::GroupsController#destroy as HTML Parameters: {"id"=>"cld-1"} Rendered text template (0.0ms) Completed 200 OK in 3ms (Views: 1.9ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ----------------------------------------------------------------- GroupsControllerTest: test_: unauthenticated should deny access. -----------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Account::GroupsController#destroy as HTML Parameters: {"id"=>"cld-1"} Filter chain halted as :authenticate_maestrano! rendered or redirected Completed 401 Unauthorized in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: class methods find_or_create_for_maestrano class method should create a monster using the mapping block. --------------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction 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"]]  (0.1ms) SAVEPOINT active_record_1 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-01-20 05:37:51.270466"], ["updated_at", "2016-01-20 05:37:51.270466"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: class methods find_or_create_for_maestrano class method should not return a MnoMonster from another provider if it exists. --------------------------------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.3ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "mno_monsters" ("first_name", "last_name", "email", "provider", "uid", "tenant", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["first_name", "John"], ["last_name", "Jack"], ["email", "monster@co.com"], ["provider", "someoneelse"], ["uid", "usr-1"], ["tenant", "default"], ["created_at", "2016-01-20 05:37:51.273140"], ["updated_at", "2016-01-20 05:37:51.273140"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "mno_monsters" ("provider", "uid", "tenant", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["provider", "maestrano"], ["uid", "usr-1"], ["tenant", "default"], ["created_at", "2016-01-20 05:37:51.277174"], ["updated_at", "2016-01-20 05:37:51.277174"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: class methods find_or_create_for_maestrano class method should return the MnoMonster if it exists. --------------------------------------------------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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-01-20 05:37:51.281719"], ["updated_at", "2016-01-20 05:37:51.281719"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.1ms) rollback transaction --------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: class methods maestrano_*_via should have the right field definition. ---------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------------------------ MaestranoUserViaTest: test_: instance methods maestrano? should return false if provider is something else. ------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: instance methods maestrano? should return false if uid is blank. ----------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ----------------------------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: instance methods maestrano? should return true if provider is maestrano and uid not null. -----------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------ ActiveRecordUserGeneratorTest: test_: namespaced model should create the right migration. ------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: namespaced model should edit the model content. --------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.3ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should create the right migration. --------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should edit the model content. ----------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should include parameters if rails 3 and strong_parameter not present. --------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should not include parameters if rails 3 and strong_parameter present. --------------------------------------------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should not include parameters in rails 4. ---------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.2ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------------------------------------------------- MaestranoGroupViaTest: test_: class methods find_or_create_for_maestrano class method should create a monster using the mapping block. ---------------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction MnoCrew Load (0.2ms) SELECT "mno_crews".* FROM "mno_crews" WHERE "mno_crews"."provider" = ? AND "mno_crews"."uid" = ? AND "mno_crews"."tenant" = ? ORDER BY "mno_crews"."id" ASC LIMIT 1 [["provider", "maestrano"], ["uid", "usr-2"], ["tenant", "default"]]  (0.0ms) SAVEPOINT active_record_1 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-01-20 05:37:51.322615"], ["updated_at", "2016-01-20 05:37:51.322615"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction ------------------------------------------------------------------------------------------------------------------------------------------------------ MaestranoGroupViaTest: test_: class methods find_or_create_for_maestrano class method should not return a MnoCrew from another provider if it exists. ------------------------------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 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-01-20 05:37:51.324655"], ["updated_at", "2016-01-20 05:37:51.324655"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.0ms) SAVEPOINT active_record_1 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-01-20 05:37:51.326155"], ["updated_at", "2016-01-20 05:37:51.326155"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction ------------------------------------------------------------------------------------------------------------------------------ MaestranoGroupViaTest: test_: class methods find_or_create_for_maestrano class method should return the MnoCrew if it exists. ------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 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-01-20 05:37:51.328275"], ["updated_at", "2016-01-20 05:37:51.328275"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.1ms) rollback transaction ---------------------------------------------------------------------------------------------------- MaestranoGroupViaTest: test_: class methods maestrano_*_via should have the right field definition. ----------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.3ms) rollback transaction ------------------------------------------------------------------------------------------------------------- MaestranoGroupViaTest: test_: instance methods maestrano? should return false if provider is something else. -------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ----------------------------------------------------------------------------------------------- MaestranoGroupViaTest: test_: instance methods maestrano? should return false if uid is blank. -----------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------------------------------------ MaestranoGroupViaTest: test_: instance methods maestrano? should return true if provider is maestrano and uid not null. ------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: namespaced model should create the right migration. -------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: namespaced model should edit the model content. ---------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.3ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should create the right migration. ---------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ----------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should edit the model content. -----------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should include parameters if rails 3 and strong_parameter not present. ---------------------------------------------------------------------------------------------------------------------------  (0.2ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should not include parameters if rails 3 and strong_parameter present. ---------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should not include parameters in rails 4. ----------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------------- UserGeneratorTest: test_: UserGenerator should call the active_record migration generator successfully. --------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction -------------------------------------------------------------------------------------------------- UserGeneratorTest: test_: UserGenerator should call the mongoid migration generator successfully. --------------------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction ------------------------------------------------------------------- MetadataControllerTest: test_: authenticated should be successful. -------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Rails::MetadataController#index as HTML Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------- MetadataControllerTest: test_: unauthenticated should deny access. -------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Rails::MetadataController#index as HTML Filter chain halted as :authenticate_maestrano! rendered or redirected Completed 401 Unauthorized in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------ MaestranoRailsTest: test_truth ------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------- GroupUsersControllerTest: test_: authenticated should be successful. ---------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Account::GroupUsersController#destroy as HTML Parameters: {"group_id"=>"cld-1", "id"=>"usr-1"} Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 2.2ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction --------------------------------------------------------------------- GroupUsersControllerTest: test_: unauthenticated should deny access. ---------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Account::GroupUsersController#destroy as HTML Parameters: {"group_id"=>"cld-1", "id"=>"usr-1"} Filter chain halted as :authenticate_maestrano! rendered or redirected Completed 401 Unauthorized in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction --------------------------------------------------------------------------------------- InstallGeneratorTest: test_: InstallGenerator should create the maestrano initializer. ---------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------- InstallGeneratorTest: test_: InstallGenerator should create the maestrano routes. ----------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------------------- InstallGeneratorTest: test_: InstallGenerator should create the maestrano/account/group_users_controller. ----------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ----------------------------------------------------------------------------------------------------- InstallGeneratorTest: test_: InstallGenerator should create the maestrano/account/groups_controller. -----------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------------ InstallGeneratorTest: test_: InstallGenerator should create the maestrano/auth/saml_controller. ------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction --------------------------------------------------------------------------------------------------------------------- GenericControllerTest: test_: with a maestrano session should be successful if the maestrano session is still valid. ---------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by PagesController#home as HTML Rendered pages/home.html.erb within layouts/application (0.3ms) Completed 200 OK in 100ms (Views: 99.9ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction -------------------------------------------------------------------------------------------------------------------- GenericControllerTest: test_: with a maestrano session should initialize redirect to SSO initialization if invalid. --------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by PagesController#home as HTML Redirected to http://localhost::3000/maestrano/auth/saml/init Filter chain halted as :verify_maestrano_session rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ----------------------------------------------------------------------------------------------------------- GenericControllerTest: test_: with a maestrano session should not redirect to SSO init if sso is disabled. -----------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by PagesController#home as HTML Rendered pages/home.html.erb within layouts/application (0.0ms) Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------------------ GenericControllerTest: test_: with no maestrano session should be successful. ------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by PagesController#home as HTML Rendered pages/home.html.erb within layouts/application (0.0ms) Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase error should redirect to maestrano on any error. ----------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Bla Redirected to http://api-sandbox.maestrano.io/app_access_unauthorized?err=internal Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should reset the maestrano session successfully if one already exists. --------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction --------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should set a saml_request in scope. ---------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction -------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should set the group_auth_hash in scope. --------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should set the maestrano session. -------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should set the user_auth_hash in scope. -------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------ SamlBaseControllerTest: test_: consume phase should set the user_group_rel_hash in scope. ------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: init phase should create a saml request successfully if a maestrano session is already set. ---------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#init as HTML Parameters: {"a_param"=>"value"} Redirected to http://idpprovider.com?r=request Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ----------------------------------------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: init phase should create a saml request using params and session and redirect the user. -----------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#init as HTML Parameters: {"a_param"=>"value"} Redirected to http://idpprovider.com?r=request Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------------------- GroupGeneratorTest: test_: GroupGenerator should call the active_record migration generator successfully. ----------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction ---------------------------------------------------------------------------------------------------- GroupGeneratorTest: test_: GroupGenerator should call the mongoid migration generator successfully. ----------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ----------------------------------------------------------------- GroupsControllerTest: test_: authenticated should be successful. -----------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Account::GroupsController#destroy as HTML Parameters: {"id"=>"cld-1"} Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.8ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ----------------------------------------------------------------- GroupsControllerTest: test_: unauthenticated should deny access. -----------------------------------------------------------------  (0.2ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Account::GroupsController#destroy as HTML Parameters: {"id"=>"cld-1"} Filter chain halted as :authenticate_maestrano! rendered or redirected Completed 401 Unauthorized in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------ ActiveRecordUserGeneratorTest: test_: namespaced model should create the right migration. ------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: namespaced model should edit the model content. --------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should create the right migration. --------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should edit the model content. ----------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should include parameters if rails 3 and strong_parameter not present. --------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should not include parameters if rails 3 and strong_parameter present. --------------------------------------------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction --------------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should not include parameters in rails 4. ---------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.2ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------------- UserGeneratorTest: test_: UserGenerator should call the active_record migration generator successfully. --------------------------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------- UserGeneratorTest: test_: UserGenerator should call the mongoid migration generator successfully. --------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction --------------------------------------------------------------------------------------------------------------------- GenericControllerTest: test_: with a maestrano session should be successful if the maestrano session is still valid. ---------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by PagesController#home as HTML Rendered pages/home.html.erb within layouts/application (0.3ms) Completed 200 OK in 99ms (Views: 98.4ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction -------------------------------------------------------------------------------------------------------------------- GenericControllerTest: test_: with a maestrano session should initialize redirect to SSO initialization if invalid. --------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by PagesController#home as HTML Redirected to http://localhost:3000/maestrano/auth/saml/init/default Filter chain halted as :verify_maestrano_session rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ----------------------------------------------------------------------------------------------------------- GenericControllerTest: test_: with a maestrano session should not redirect to SSO init if sso is disabled. -----------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by PagesController#home as HTML Rendered pages/home.html.erb within layouts/application (0.0ms) Completed 200 OK in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------------------ GenericControllerTest: test_: with no maestrano session should be successful. ------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by PagesController#home as HTML Rendered pages/home.html.erb within layouts/application (0.0ms) Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: namespaced model should create the right migration. -------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: namespaced model should edit the model content. ---------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should create the right migration. ---------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ----------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should edit the model content. -----------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should include parameters if rails 3 and strong_parameter not present. ---------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should not include parameters if rails 3 and strong_parameter present. ---------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should not include parameters in rails 4. ----------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------ MaestranoRailsTest: test_truth ------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------- InstallGeneratorTest: test_: InstallGenerator should create the maestrano initializer. ---------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction ---------------------------------------------------------------------------------- InstallGeneratorTest: test_: InstallGenerator should create the maestrano routes. ----------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------------------- InstallGeneratorTest: test_: InstallGenerator should create the maestrano/account/group_users_controller. ----------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ----------------------------------------------------------------------------------------------------- InstallGeneratorTest: test_: InstallGenerator should create the maestrano/account/groups_controller. -----------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------------ InstallGeneratorTest: test_: InstallGenerator should create the maestrano/auth/saml_controller. ------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: class methods find_or_create_for_maestrano class method should create a monster using the mapping block. --------------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction 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"]]  (0.0ms) SAVEPOINT active_record_1 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-01-20 05:38:29.074076"], ["updated_at", "2016-01-20 05:38:29.074076"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: class methods find_or_create_for_maestrano class method should not return a MnoMonster from another provider if it exists. --------------------------------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 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-01-20 05:38:29.076132"], ["updated_at", "2016-01-20 05:38:29.076132"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.0ms) SAVEPOINT active_record_1 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-01-20 05:38:29.077459"], ["updated_at", "2016-01-20 05:38:29.077459"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: class methods find_or_create_for_maestrano class method should return the MnoMonster if it exists. --------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 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-01-20 05:38:29.078946"], ["updated_at", "2016-01-20 05:38:29.078946"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.1ms) rollback transaction --------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: class methods maestrano_*_via should have the right field definition. ---------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction ------------------------------------------------------------------------------------------------------------ MaestranoUserViaTest: test_: instance methods maestrano? should return false if provider is something else. ------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: instance methods maestrano? should return false if uid is blank. ----------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ----------------------------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: instance methods maestrano? should return true if provider is maestrano and uid not null. -----------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------------------------------------------------- MaestranoGroupViaTest: test_: class methods find_or_create_for_maestrano class method should create a monster using the mapping block. ---------------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction 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"]]  (0.1ms) SAVEPOINT active_record_1 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-01-20 05:38:29.087245"], ["updated_at", "2016-01-20 05:38:29.087245"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction ------------------------------------------------------------------------------------------------------------------------------------------------------ MaestranoGroupViaTest: test_: class methods find_or_create_for_maestrano class method should not return a MnoCrew from another provider if it exists. ------------------------------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 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-01-20 05:38:29.088875"], ["updated_at", "2016-01-20 05:38:29.088875"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.0ms) SAVEPOINT active_record_1 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-01-20 05:38:29.090030"], ["updated_at", "2016-01-20 05:38:29.090030"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction ------------------------------------------------------------------------------------------------------------------------------ MaestranoGroupViaTest: test_: class methods find_or_create_for_maestrano class method should return the MnoCrew if it exists. ------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 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-01-20 05:38:29.091454"], ["updated_at", "2016-01-20 05:38:29.091454"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.1ms) rollback transaction ---------------------------------------------------------------------------------------------------- MaestranoGroupViaTest: test_: class methods maestrano_*_via should have the right field definition. ----------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------------------------- MaestranoGroupViaTest: test_: instance methods maestrano? should return false if provider is something else. -------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ----------------------------------------------------------------------------------------------- MaestranoGroupViaTest: test_: instance methods maestrano? should return false if uid is blank. -----------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------------------------------------ MaestranoGroupViaTest: test_: instance methods maestrano? should return true if provider is maestrano and uid not null. ------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------------------- GroupGeneratorTest: test_: GroupGenerator should call the active_record migration generator successfully. ----------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction ---------------------------------------------------------------------------------------------------- GroupGeneratorTest: test_: GroupGenerator should call the mongoid migration generator successfully. ----------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction --------------------------------------------------------------------- GroupUsersControllerTest: test_: authenticated should be successful. ---------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Account::GroupUsersController#destroy as HTML Parameters: {"group_id"=>"cld-1", "id"=>"usr-1"} Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.7ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction --------------------------------------------------------------------- GroupUsersControllerTest: test_: unauthenticated should deny access. ---------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Account::GroupUsersController#destroy as HTML Parameters: {"group_id"=>"cld-1", "id"=>"usr-1"} Filter chain halted as :authenticate_maestrano! rendered or redirected Completed 401 Unauthorized in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------- MetadataControllerTest: test_: authenticated should be successful. -------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Rails::MetadataController#index as HTML Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction ------------------------------------------------------------------- MetadataControllerTest: test_: unauthenticated should deny access. -------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Rails::MetadataController#index as HTML Filter chain halted as :authenticate_maestrano! rendered or redirected Completed 401 Unauthorized in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase error should redirect to maestrano on any error. ----------------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Bla Redirected to http://api-sandbox.maestrano.io/app_access_unauthorized?err=internal Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should reset the maestrano session successfully if one already exists. --------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction --------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should set a saml_request in scope. ---------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction -------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should set the group_auth_hash in scope. --------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should set the maestrano session. -------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should set the user_auth_hash in scope. -------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------ SamlBaseControllerTest: test_: consume phase should set the user_group_rel_hash in scope. ------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: init phase should create a saml request successfully if a maestrano session is already set. ---------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#init as HTML Parameters: {"a_param"=>"value"} Redirected to http://idpprovider.com?r=request Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ----------------------------------------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: init phase should create a saml request using params and session and redirect the user. -----------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#init as HTML Parameters: {"a_param"=>"value"} Redirected to http://idpprovider.com?r=request Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" -------------------------------------------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: class methods find_or_create_for_maestrano class method should create a monster using the mapping block. --------------------------------------------------------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction 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"]]  (0.1ms) SAVEPOINT active_record_1 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-01-20 05:43:23.858745"], ["updated_at", "2016-01-20 05:43:23.858745"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: class methods find_or_create_for_maestrano class method should not return a MnoMonster from another provider if it exists. --------------------------------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 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-01-20 05:43:23.862259"], ["updated_at", "2016-01-20 05:43:23.862259"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.0ms) SAVEPOINT active_record_1 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-01-20 05:43:23.864466"], ["updated_at", "2016-01-20 05:43:23.864466"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: class methods find_or_create_for_maestrano class method should return the MnoMonster if it exists. --------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 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-01-20 05:43:23.866540"], ["updated_at", "2016-01-20 05:43:23.866540"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.1ms) rollback transaction --------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: class methods maestrano_*_via should have the right field definition. ---------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------------------------ MaestranoUserViaTest: test_: instance methods maestrano? should return false if provider is something else. ------------------------------------------------------------------------------------------------------------  (0.3ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: instance methods maestrano? should return false if uid is blank. ----------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ----------------------------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: instance methods maestrano? should return true if provider is maestrano and uid not null. -----------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: namespaced model should create the right migration. -------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction --------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: namespaced model should edit the model content. ---------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should create the right migration. ---------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ----------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should edit the model content. -----------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should include parameters if rails 3 and strong_parameter not present. ---------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should not include parameters if rails 3 and strong_parameter present. ---------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should not include parameters in rails 4. ----------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ----------------------------------------------------------------- GroupsControllerTest: test_: authenticated should be successful. -----------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Account::GroupsController#destroy as HTML Parameters: {"id"=>"cld-1"} Rendered text template (0.0ms) Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ----------------------------------------------------------------- GroupsControllerTest: test_: unauthenticated should deny access. -----------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Account::GroupsController#destroy as HTML Parameters: {"id"=>"cld-1"} Filter chain halted as :authenticate_maestrano! rendered or redirected Completed 401 Unauthorized in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction --------------------------------------------------------------------- GroupUsersControllerTest: test_: authenticated should be successful. ---------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Account::GroupUsersController#destroy as HTML Parameters: {"group_id"=>"cld-1", "id"=>"usr-1"} Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 2.1ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction --------------------------------------------------------------------- GroupUsersControllerTest: test_: unauthenticated should deny access. ---------------------------------------------------------------------  (0.0ms) begin transaction  (0.2ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Account::GroupUsersController#destroy as HTML Parameters: {"group_id"=>"cld-1", "id"=>"usr-1"} Filter chain halted as :authenticate_maestrano! rendered or redirected Completed 401 Unauthorized in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase error should redirect to maestrano on any error. ----------------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Bla Redirected to http://api-sandbox.maestrano.io/app_access_unauthorized?err=internal Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should reset the maestrano session successfully if one already exists. --------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction --------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should set a saml_request in scope. ---------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction -------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should set the group_auth_hash in scope. --------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should set the maestrano session. -------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should set the user_auth_hash in scope. -------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------ SamlBaseControllerTest: test_: consume phase should set the user_group_rel_hash in scope. ------------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: init phase should create a saml request successfully if a maestrano session is already set. ---------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#init as HTML Parameters: {"a_param"=>"value"} Redirected to http://idpprovider.com?r=request Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.3ms) rollback transaction ----------------------------------------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: init phase should create a saml request using params and session and redirect the user. -----------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#init as HTML Parameters: {"a_param"=>"value"} Redirected to http://idpprovider.com?r=request Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------------------- GroupGeneratorTest: test_: GroupGenerator should call the active_record migration generator successfully. ----------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction ---------------------------------------------------------------------------------------------------- GroupGeneratorTest: test_: GroupGenerator should call the mongoid migration generator successfully. ----------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.4ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction ------------------------------------------------------------------- MetadataControllerTest: test_: authenticated should be successful. -------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Rails::MetadataController#index as HTML Completed 200 OK in 10ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------- MetadataControllerTest: test_: unauthenticated should deny access. -------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Rails::MetadataController#index as HTML Filter chain halted as :authenticate_maestrano! rendered or redirected Completed 401 Unauthorized in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------ MaestranoRailsTest: test_truth ------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------------------------------- GenericControllerTest: test_: with a maestrano session should be successful if the maestrano session is still valid. ---------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by PagesController#home as HTML Rendered pages/home.html.erb within layouts/application (0.3ms) Completed 200 OK in 109ms (Views: 108.9ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction -------------------------------------------------------------------------------------------------------------------- GenericControllerTest: test_: with a maestrano session should initialize redirect to SSO initialization if invalid. --------------------------------------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by PagesController#home as HTML Redirected to http://localhost:3000/maestrano/auth/saml/init/default Filter chain halted as :verify_maestrano_session rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ----------------------------------------------------------------------------------------------------------- GenericControllerTest: test_: with a maestrano session should not redirect to SSO init if sso is disabled. -----------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by PagesController#home as HTML Rendered pages/home.html.erb within layouts/application (0.0ms) Completed 200 OK in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------------------ GenericControllerTest: test_: with no maestrano session should be successful. ------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by PagesController#home as HTML Rendered pages/home.html.erb within layouts/application (0.0ms) Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------------- UserGeneratorTest: test_: UserGenerator should call the active_record migration generator successfully. --------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------- UserGeneratorTest: test_: UserGenerator should call the mongoid migration generator successfully. --------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------ ActiveRecordUserGeneratorTest: test_: namespaced model should create the right migration. ------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction -------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: namespaced model should edit the model content. --------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should create the right migration. --------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should edit the model content. ----------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should include parameters if rails 3 and strong_parameter not present. --------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should not include parameters if rails 3 and strong_parameter present. --------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should not include parameters in rails 4. ---------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------------------------------------------------- MaestranoGroupViaTest: test_: class methods find_or_create_for_maestrano class method should create a monster using the mapping block. ---------------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction 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"]]  (0.1ms) SAVEPOINT active_record_1 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-01-20 05:43:24.160649"], ["updated_at", "2016-01-20 05:43:24.160649"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction ------------------------------------------------------------------------------------------------------------------------------------------------------ MaestranoGroupViaTest: test_: class methods find_or_create_for_maestrano class method should not return a MnoCrew from another provider if it exists. ------------------------------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 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-01-20 05:43:24.163322"], ["updated_at", "2016-01-20 05:43:24.163322"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.0ms) SAVEPOINT active_record_1 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-01-20 05:43:24.165140"], ["updated_at", "2016-01-20 05:43:24.165140"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction ------------------------------------------------------------------------------------------------------------------------------ MaestranoGroupViaTest: test_: class methods find_or_create_for_maestrano class method should return the MnoCrew if it exists. ------------------------------------------------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 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-01-20 05:43:24.168144"], ["updated_at", "2016-01-20 05:43:24.168144"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.1ms) rollback transaction ---------------------------------------------------------------------------------------------------- MaestranoGroupViaTest: test_: class methods maestrano_*_via should have the right field definition. ----------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------------------------- MaestranoGroupViaTest: test_: instance methods maestrano? should return false if provider is something else. -------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ----------------------------------------------------------------------------------------------- MaestranoGroupViaTest: test_: instance methods maestrano? should return false if uid is blank. -----------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------------------------------------ MaestranoGroupViaTest: test_: instance methods maestrano? should return true if provider is maestrano and uid not null. ------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------- InstallGeneratorTest: test_: InstallGenerator should create the maestrano initializer. ---------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------- InstallGeneratorTest: test_: InstallGenerator should create the maestrano routes. ----------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------------------- InstallGeneratorTest: test_: InstallGenerator should create the maestrano/account/group_users_controller. ----------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ----------------------------------------------------------------------------------------------------- InstallGeneratorTest: test_: InstallGenerator should create the maestrano/account/groups_controller. -----------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------------ InstallGeneratorTest: test_: InstallGenerator should create the maestrano/auth/saml_controller. ------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" --------------------------------------------------------------------------------------------------------------------------------------- MaestranoGroupViaTest: test_: class methods find_or_create_for_maestrano class method should create a monster using the mapping block. ---------------------------------------------------------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction 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"]]  (0.1ms) SAVEPOINT active_record_1 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-02-15 06:38:19.344337"], ["updated_at", "2016-02-15 06:38:19.344337"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction ------------------------------------------------------------------------------------------------------------------------------------------------------ MaestranoGroupViaTest: test_: class methods find_or_create_for_maestrano class method should not return a MnoCrew from another provider if it exists. ------------------------------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 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-02-15 06:38:19.346856"], ["updated_at", "2016-02-15 06:38:19.346856"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 MnoCrew Load (0.4ms) 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"]]  (0.0ms) SAVEPOINT active_record_1 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-02-15 06:38:19.348776"], ["updated_at", "2016-02-15 06:38:19.348776"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction ------------------------------------------------------------------------------------------------------------------------------ MaestranoGroupViaTest: test_: class methods find_or_create_for_maestrano class method should return the MnoCrew if it exists. ------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 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-02-15 06:38:19.350908"], ["updated_at", "2016-02-15 06:38:19.350908"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.1ms) rollback transaction ---------------------------------------------------------------------------------------------------- MaestranoGroupViaTest: test_: class methods maestrano_*_via should have the right field definition. ----------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------------------------- MaestranoGroupViaTest: test_: instance methods maestrano? should return false if provider is something else. -------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ----------------------------------------------------------------------------------------------- MaestranoGroupViaTest: test_: instance methods maestrano? should return false if uid is blank. -----------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------------------------------------ MaestranoGroupViaTest: test_: instance methods maestrano? should return true if provider is maestrano and uid not null. ------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------------- UserGeneratorTest: test_: UserGenerator should call the active_record migration generator successfully. --------------------------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction -------------------------------------------------------------------------------------------------- UserGeneratorTest: test_: UserGenerator should call the mongoid migration generator successfully. --------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction ----------------------------------------------------------------- GroupsControllerTest: test_: authenticated should be successful. -----------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Account::GroupsController#destroy as HTML Parameters: {"id"=>"cld-1"} Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 2.0ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ----------------------------------------------------------------- GroupsControllerTest: test_: unauthenticated should deny access. -----------------------------------------------------------------  (0.3ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Account::GroupsController#destroy as HTML Parameters: {"id"=>"cld-1"} Filter chain halted as :authenticate_maestrano! rendered or redirected Completed 401 Unauthorized in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------ MaestranoRailsTest: test_truth ------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------ ActiveRecordUserGeneratorTest: test_: namespaced model should create the right migration. ------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: namespaced model should edit the model content. --------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction -------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should create the right migration. --------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should edit the model content. ----------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should include parameters if rails 3 and strong_parameter not present. --------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should not include parameters if rails 3 and strong_parameter present. --------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should not include parameters in rails 4. ---------------------------------------------------------------------------------------------  (0.2ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------------------- GroupGeneratorTest: test_: GroupGenerator should call the active_record migration generator successfully. ----------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction ---------------------------------------------------------------------------------------------------- GroupGeneratorTest: test_: GroupGenerator should call the mongoid migration generator successfully. ----------------------------------------------------------------------------------------------------  (0.3ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction ---------------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase error should redirect to maestrano on any error. ----------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Bla Redirected to http://api-sandbox.maestrano.io/app_access_unauthorized?err=internal Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should reset the maestrano session successfully if one already exists. --------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction --------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should set a saml_request in scope. ---------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction -------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should set the group_auth_hash in scope. --------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should set the maestrano session. -------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should set the user_auth_hash in scope. -------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------ SamlBaseControllerTest: test_: consume phase should set the user_group_rel_hash in scope. ------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: init phase should create a saml request successfully if a maestrano session is already set. ---------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#init as HTML Parameters: {"a_param"=>"value"} Redirected to http://idpprovider.com?r=request Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ----------------------------------------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: init phase should create a saml request using params and session and redirect the user. -----------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#init as HTML Parameters: {"a_param"=>"value"} Redirected to http://idpprovider.com?r=request Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction --------------------------------------------------------------------------------------- InstallGeneratorTest: test_: InstallGenerator should create the maestrano initializer. ---------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------- InstallGeneratorTest: test_: InstallGenerator should create the maestrano routes. ----------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------------------- InstallGeneratorTest: test_: InstallGenerator should create the maestrano/account/group_users_controller. ----------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ----------------------------------------------------------------------------------------------------- InstallGeneratorTest: test_: InstallGenerator should create the maestrano/account/groups_controller. -----------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------------ InstallGeneratorTest: test_: InstallGenerator should create the maestrano/auth/saml_controller. ------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------- GroupUsersControllerTest: test_: authenticated should be successful. ---------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Account::GroupUsersController#destroy as HTML Parameters: {"group_id"=>"cld-1", "id"=>"usr-1"} Rendered text template (0.0ms) Completed 200 OK in 3ms (Views: 2.8ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction --------------------------------------------------------------------- GroupUsersControllerTest: test_: unauthenticated should deny access. ---------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Account::GroupUsersController#destroy as HTML Parameters: {"group_id"=>"cld-1", "id"=>"usr-1"} Filter chain halted as :authenticate_maestrano! rendered or redirected Completed 401 Unauthorized in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: namespaced model should create the right migration. -------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: namespaced model should edit the model content. ---------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should create the right migration. ---------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ----------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should edit the model content. -----------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should include parameters if rails 3 and strong_parameter not present. ---------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should not include parameters if rails 3 and strong_parameter present. ---------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should not include parameters in rails 4. ----------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------- MetadataControllerTest: test_: authenticated should be successful. -------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Rails::MetadataController#index as HTML Completed 200 OK in 2ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------- MetadataControllerTest: test_: unauthenticated should deny access. -------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Rails::MetadataController#index as HTML Filter chain halted as :authenticate_maestrano! rendered or redirected Completed 401 Unauthorized in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: class methods find_or_create_for_maestrano class method should create a monster using the mapping block. --------------------------------------------------------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "mno_monsters" ("first_name", "last_name", "email", "provider", "uid", "tenant", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["first_name", "Mon"], ["last_name", "Ster"], ["email", "monster@monst.com"], ["provider", "maestrano"], ["uid", "usr-2"], ["tenant", "default"], ["created_at", "2016-02-15 06:38:19.522740"], ["updated_at", "2016-02-15 06:38:19.522740"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: class methods find_or_create_for_maestrano class method should not return a MnoMonster from another provider if it exists. --------------------------------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 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-02-15 06:38:19.524641"], ["updated_at", "2016-02-15 06:38:19.524641"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.0ms) SAVEPOINT active_record_1 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-02-15 06:38:19.525994"], ["updated_at", "2016-02-15 06:38:19.525994"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: class methods find_or_create_for_maestrano class method should return the MnoMonster if it exists. --------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 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-02-15 06:38:19.527374"], ["updated_at", "2016-02-15 06:38:19.527374"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.1ms) rollback transaction --------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: class methods maestrano_*_via should have the right field definition. ---------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------------------------ MaestranoUserViaTest: test_: instance methods maestrano? should return false if provider is something else. ------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: instance methods maestrano? should return false if uid is blank. ----------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ----------------------------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: instance methods maestrano? should return true if provider is maestrano and uid not null. -----------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------------------------------- GenericControllerTest: test_: with a maestrano session should be successful if the maestrano session is still valid. ---------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by PagesController#home as HTML Rendered pages/home.html.erb within layouts/application (0.3ms) Completed 200 OK in 185ms (Views: 184.6ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction -------------------------------------------------------------------------------------------------------------------- GenericControllerTest: test_: with a maestrano session should initialize redirect to SSO initialization if invalid. --------------------------------------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by PagesController#home as HTML Redirected to http://localhost:3000/maestrano/auth/saml/init/default Filter chain halted as :verify_maestrano_session rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ----------------------------------------------------------------------------------------------------------- GenericControllerTest: test_: with a maestrano session should not redirect to SSO init if sso is disabled. -----------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by PagesController#home as HTML Rendered pages/home.html.erb within layouts/application (0.0ms) Completed 200 OK in 1ms (Views: 0.9ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction ------------------------------------------------------------------------------ GenericControllerTest: test_: with no maestrano session should be successful. ------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction Processing by PagesController#home as HTML Rendered pages/home.html.erb within layouts/application (0.1ms) Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ------------------------------------------------------------------- MetadataControllerTest: test_: authenticated should be successful. -------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Rails::MetadataController#index as HTML Completed 200 OK in 2ms (Views: 0.7ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------- MetadataControllerTest: test_: unauthenticated should deny access. -------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Rails::MetadataController#index as HTML Filter chain halted as :authenticate_maestrano! rendered or redirected Completed 401 Unauthorized in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------ MaestranoRailsTest: test_truth ------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------- InstallGeneratorTest: test_: InstallGenerator should create the maestrano initializer. ---------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------- InstallGeneratorTest: test_: InstallGenerator should create the maestrano routes. ----------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction ---------------------------------------------------------------------------------------------------------- InstallGeneratorTest: test_: InstallGenerator should create the maestrano/account/group_users_controller. ----------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction ----------------------------------------------------------------------------------------------------- InstallGeneratorTest: test_: InstallGenerator should create the maestrano/account/groups_controller. -----------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------------ InstallGeneratorTest: test_: InstallGenerator should create the maestrano/auth/saml_controller. ------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------------------------------------------------- MaestranoGroupViaTest: test_: class methods find_or_create_for_maestrano class method should create a monster using the mapping block. ---------------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.3ms) commit transaction  (0.0ms) begin transaction 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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-02-15 06:38:45.740847"], ["updated_at", "2016-02-15 06:38:45.740847"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction ------------------------------------------------------------------------------------------------------------------------------------------------------ MaestranoGroupViaTest: test_: class methods find_or_create_for_maestrano class method should not return a MnoCrew from another provider if it exists. ------------------------------------------------------------------------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.2ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 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-02-15 06:38:45.743935"], ["updated_at", "2016-02-15 06:38:45.743935"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) 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-02-15 06:38:45.746217"], ["updated_at", "2016-02-15 06:38:45.746217"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction ------------------------------------------------------------------------------------------------------------------------------ MaestranoGroupViaTest: test_: class methods find_or_create_for_maestrano class method should return the MnoCrew if it exists. ------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 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-02-15 06:38:45.748271"], ["updated_at", "2016-02-15 06:38:45.748271"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.1ms) rollback transaction ---------------------------------------------------------------------------------------------------- MaestranoGroupViaTest: test_: class methods maestrano_*_via should have the right field definition. ----------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------------------------- MaestranoGroupViaTest: test_: instance methods maestrano? should return false if provider is something else. -------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.2ms) begin transaction  (0.0ms) rollback transaction ----------------------------------------------------------------------------------------------- MaestranoGroupViaTest: test_: instance methods maestrano? should return false if uid is blank. -----------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------------------------------------ MaestranoGroupViaTest: test_: instance methods maestrano? should return true if provider is maestrano and uid not null. ------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: namespaced model should create the right migration. -------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: namespaced model should edit the model content. ---------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should create the right migration. ---------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ----------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should edit the model content. -----------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction --------------------------------------------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should include parameters if rails 3 and strong_parameter not present. ---------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should not include parameters if rails 3 and strong_parameter present. ---------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction ---------------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should not include parameters in rails 4. ----------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ----------------------------------------------------------------- GroupsControllerTest: test_: authenticated should be successful. -----------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Account::GroupsController#destroy as HTML Parameters: {"id"=>"cld-1"} Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.7ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ----------------------------------------------------------------- GroupsControllerTest: test_: unauthenticated should deny access. -----------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Account::GroupsController#destroy as HTML Parameters: {"id"=>"cld-1"} Filter chain halted as :authenticate_maestrano! rendered or redirected Completed 401 Unauthorized in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------------------------------- GenericControllerTest: test_: with a maestrano session should be successful if the maestrano session is still valid. ---------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by PagesController#home as HTML Rendered pages/home.html.erb within layouts/application (0.3ms) Completed 200 OK in 99ms (Views: 98.4ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction -------------------------------------------------------------------------------------------------------------------- GenericControllerTest: test_: with a maestrano session should initialize redirect to SSO initialization if invalid. --------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by PagesController#home as HTML Redirected to http://localhost:3000/maestrano/auth/saml/init/default Filter chain halted as :verify_maestrano_session rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ----------------------------------------------------------------------------------------------------------- GenericControllerTest: test_: with a maestrano session should not redirect to SSO init if sso is disabled. -----------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by PagesController#home as HTML Rendered pages/home.html.erb within layouts/application (0.0ms) Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------------------ GenericControllerTest: test_: with no maestrano session should be successful. ------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by PagesController#home as HTML Rendered pages/home.html.erb within layouts/application (0.0ms) Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------ ActiveRecordUserGeneratorTest: test_: namespaced model should create the right migration. ------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: namespaced model should edit the model content. --------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should create the right migration. --------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should edit the model content. ----------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should include parameters if rails 3 and strong_parameter not present. --------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should not include parameters if rails 3 and strong_parameter present. --------------------------------------------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should not include parameters in rails 4. ---------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------------------- GroupGeneratorTest: test_: GroupGenerator should call the active_record migration generator successfully. ----------------------------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction ---------------------------------------------------------------------------------------------------- GroupGeneratorTest: test_: GroupGenerator should call the mongoid migration generator successfully. ----------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: class methods find_or_create_for_maestrano class method should create a monster using the mapping block. --------------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "mno_monsters" ("first_name", "last_name", "email", "provider", "uid", "tenant", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["first_name", "Mon"], ["last_name", "Ster"], ["email", "monster@monst.com"], ["provider", "maestrano"], ["uid", "usr-2"], ["tenant", "default"], ["created_at", "2016-02-15 06:38:45.942299"], ["updated_at", "2016-02-15 06:38:45.942299"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: class methods find_or_create_for_maestrano class method should not return a MnoMonster from another provider if it exists. --------------------------------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 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-02-15 06:38:45.944318"], ["updated_at", "2016-02-15 06:38:45.944318"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.0ms) SAVEPOINT active_record_1 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-02-15 06:38:45.945735"], ["updated_at", "2016-02-15 06:38:45.945735"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: class methods find_or_create_for_maestrano class method should return the MnoMonster if it exists. --------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 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-02-15 06:38:45.947371"], ["updated_at", "2016-02-15 06:38:45.947371"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.1ms) rollback transaction --------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: class methods maestrano_*_via should have the right field definition. ---------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------------------------ MaestranoUserViaTest: test_: instance methods maestrano? should return false if provider is something else. ------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: instance methods maestrano? should return false if uid is blank. ----------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ----------------------------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: instance methods maestrano? should return true if provider is maestrano and uid not null. -----------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------- GroupUsersControllerTest: test_: authenticated should be successful. ---------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Account::GroupUsersController#destroy as HTML Parameters: {"group_id"=>"cld-1", "id"=>"usr-1"} Rendered text template (0.0ms) Completed 200 OK in 3ms (Views: 2.2ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction --------------------------------------------------------------------- GroupUsersControllerTest: test_: unauthenticated should deny access. ---------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Account::GroupUsersController#destroy as HTML Parameters: {"group_id"=>"cld-1", "id"=>"usr-1"} Filter chain halted as :authenticate_maestrano! rendered or redirected Completed 401 Unauthorized in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction ---------------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase error should redirect to maestrano on any error. ----------------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Bla Redirected to http://api-sandbox.maestrano.io/app_access_unauthorized?err=internal Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should reset the maestrano session successfully if one already exists. --------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction --------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should set a saml_request in scope. ---------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction -------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should set the group_auth_hash in scope. --------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should set the maestrano session. -------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should set the user_auth_hash in scope. -------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------ SamlBaseControllerTest: test_: consume phase should set the user_group_rel_hash in scope. ------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: init phase should create a saml request successfully if a maestrano session is already set. ---------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#init as HTML Parameters: {"a_param"=>"value"} Redirected to http://idpprovider.com?r=request Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ----------------------------------------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: init phase should create a saml request using params and session and redirect the user. -----------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#init as HTML Parameters: {"a_param"=>"value"} Redirected to http://idpprovider.com?r=request Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------------- UserGeneratorTest: test_: UserGenerator should call the active_record migration generator successfully. --------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------- UserGeneratorTest: test_: UserGenerator should call the mongoid migration generator successfully. --------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ------------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: namespaced model should create the right migration. -------------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: namespaced model should edit the model content. ---------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should create the right migration. ---------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction ----------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should edit the model content. -----------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should include parameters if rails 3 and strong_parameter not present. ---------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should not include parameters if rails 3 and strong_parameter present. ---------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should not include parameters in rails 4. ----------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.5ms) rollback transaction ---------------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase error should redirect to maestrano on any error. ----------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Cannot validate SAML response: Bla Trace: ["/home/bruno/.rvm/gems/ruby-2.2.1/gems/mocha-1.1.0/lib/mocha/exception_raiser.rb:12:in `evaluate'", "/home/bruno/.rvm/gems/ruby-2.2.1/gems/mocha-1.1.0/lib/mocha/return_values.rb:20:in `next'", "/home/bruno/.rvm/gems/ruby-2.2.1/gems/mocha-1.1.0/lib/mocha/expectation.rb:569:in `invoke'", "/home/bruno/.rvm/gems/ruby-2.2.1/gems/mocha-1.1.0/lib/mocha/mock.rb:296:in `method_missing'", "/home/bruno/Workspace/maestrano-rails/app/controllers/maestrano/rails/saml_base_controller.rb:35:in `process_saml_response'", "/home/bruno/Workspace/maestrano-rails/app/controllers/maestrano/rails/saml_base_controller.rb:18:in `saml_response_transaction'", "/home/bruno/.rvm/gems/ruby-2.2.1/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:432:in `block in make_lambda'", "/home/bruno/.rvm/gems/ruby-2.2.1/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:291:in `call'", "/home/bruno/.rvm/gems/ruby-2.2.1/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:291:in `block in halting_and_conditional'", "/home/bruno/.rvm/gems/ruby-2.2.1/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:497:in `call'", "/home/bruno/.rvm/gems/ruby-2.2.1/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:497:in `block in around'", "/home/bruno/.rvm/gems/ruby-2.2.1/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:505:in `call'", "/home/bruno/.rvm/gems/ruby-2.2.1/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:505:in `call'", "/home/bruno/.rvm/gems/ruby-2.2.1/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:92:in `__run_callbacks__'", "/home/bruno/.rvm/gems/ruby-2.2.1/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:778:in `_run_process_action_callbacks'", "/home/bruno/.rvm/gems/ruby-2.2.1/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:81:in `run_callbacks'", "/home/bruno/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.5.1/lib/abstract_controller/callbacks.rb:19:in `process_action'", "/home/bruno/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.5.1/lib/action_controller/metal/rescue.rb:29:in `process_action'", "/home/bruno/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.5.1/lib/action_controller/metal/instrumentation.rb:32:in `block in process_action'", "/home/bruno/.rvm/gems/ruby-2.2.1/gems/activesupport-4.2.5.1/lib/active_support/notifications.rb:164:in `block in instrument'", "/home/bruno/.rvm/gems/ruby-2.2.1/gems/activesupport-4.2.5.1/lib/active_support/notifications/instrumenter.rb:20:in `instrument'", "/home/bruno/.rvm/gems/ruby-2.2.1/gems/activesupport-4.2.5.1/lib/active_support/notifications.rb:164:in `instrument'", "/home/bruno/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.5.1/lib/action_controller/metal/instrumentation.rb:30:in `process_action'", "/home/bruno/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.5.1/lib/action_controller/metal/params_wrapper.rb:250:in `process_action'", "/home/bruno/.rvm/gems/ruby-2.2.1/gems/activerecord-4.2.5.1/lib/active_record/railties/controller_runtime.rb:18:in `process_action'", "/home/bruno/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.5.1/lib/abstract_controller/base.rb:137:in `process'", "/home/bruno/.rvm/gems/ruby-2.2.1/gems/actionview-4.2.5.1/lib/action_view/rendering.rb:30:in `process'", "/home/bruno/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.5.1/lib/action_controller/test_case.rb:639:in `process'", "/home/bruno/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.5.1/lib/action_controller/test_case.rb:67:in `process'", "/home/bruno/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.5.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 '", "/home/bruno/.rvm/gems/ruby-2.2.1/gems/shoulda-context-1.2.1/lib/shoulda/context/context.rb:413:in `instance_exec'", "/home/bruno/.rvm/gems/ruby-2.2.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.2.1/gems/minitest-5.8.4/lib/minitest/test.rb:108:in `block (3 levels) in run'", "/home/bruno/.rvm/gems/ruby-2.2.1/gems/minitest-5.8.4/lib/minitest/test.rb:205:in `capture_exceptions'", "/home/bruno/.rvm/gems/ruby-2.2.1/gems/minitest-5.8.4/lib/minitest/test.rb:105:in `block (2 levels) in run'", "/home/bruno/.rvm/gems/ruby-2.2.1/gems/minitest-5.8.4/lib/minitest/test.rb:256:in `time_it'", "/home/bruno/.rvm/gems/ruby-2.2.1/gems/minitest-5.8.4/lib/minitest/test.rb:104:in `block in run'", "/home/bruno/.rvm/gems/ruby-2.2.1/gems/minitest-5.8.4/lib/minitest.rb:331:in `on_signal'", "/home/bruno/.rvm/gems/ruby-2.2.1/gems/minitest-5.8.4/lib/minitest/test.rb:276:in `with_info_handler'", "/home/bruno/.rvm/gems/ruby-2.2.1/gems/minitest-5.8.4/lib/minitest/test.rb:103:in `run'", "/home/bruno/.rvm/gems/ruby-2.2.1/gems/minitest-5.8.4/lib/minitest.rb:778:in `run_one_method'", "/home/bruno/.rvm/gems/ruby-2.2.1/gems/minitest-5.8.4/lib/minitest.rb:305:in `run_one_method'", "/home/bruno/.rvm/gems/ruby-2.2.1/gems/minitest-5.8.4/lib/minitest.rb:293:in `block (2 levels) in run'", "/home/bruno/.rvm/gems/ruby-2.2.1/gems/minitest-5.8.4/lib/minitest.rb:292:in `each'", "/home/bruno/.rvm/gems/ruby-2.2.1/gems/minitest-5.8.4/lib/minitest.rb:292:in `block in run'", "/home/bruno/.rvm/gems/ruby-2.2.1/gems/minitest-5.8.4/lib/minitest.rb:331:in `on_signal'", "/home/bruno/.rvm/gems/ruby-2.2.1/gems/minitest-5.8.4/lib/minitest.rb:318:in `with_info_handler'", "/home/bruno/.rvm/gems/ruby-2.2.1/gems/minitest-5.8.4/lib/minitest.rb:291:in `run'", "/home/bruno/.rvm/gems/ruby-2.2.1/gems/minitest-5.8.4/lib/minitest.rb:152:in `block in __run'", "/home/bruno/.rvm/gems/ruby-2.2.1/gems/minitest-5.8.4/lib/minitest.rb:152:in `map'", "/home/bruno/.rvm/gems/ruby-2.2.1/gems/minitest-5.8.4/lib/minitest.rb:152:in `__run'", "/home/bruno/.rvm/gems/ruby-2.2.1/gems/minitest-5.8.4/lib/minitest.rb:129:in `run'", "/home/bruno/.rvm/gems/ruby-2.2.1/gems/minitest-5.8.4/lib/minitest.rb:56:in `block in autorun'"] Redirected to http://api-sandbox.maestrano.io/app_access_unauthorized?err=internal Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.1ms) rollback transaction -------------------------------------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should reset the maestrano session successfully if one already exists. --------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction --------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should set a saml_request in scope. ---------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction -------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should set the group_auth_hash in scope. --------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should set the maestrano session. -------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should set the user_auth_hash in scope. -------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------ SamlBaseControllerTest: test_: consume phase should set the user_group_rel_hash in scope. ------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.2ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: init phase should create a saml request successfully if a maestrano session is already set. ---------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#init as HTML Parameters: {"a_param"=>"value"} Redirected to http://idpprovider.com?r=request Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ----------------------------------------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: init phase should create a saml request using params and session and redirect the user. -----------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#init as HTML Parameters: {"a_param"=>"value"} Redirected to http://idpprovider.com?r=request Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ----------------------------------------------------------------- GroupsControllerTest: test_: authenticated should be successful. -----------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Account::GroupsController#destroy as HTML Parameters: {"id"=>"cld-1"} Rendered text template (0.0ms) Completed 200 OK in 6ms (Views: 5.1ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction ----------------------------------------------------------------- GroupsControllerTest: test_: unauthenticated should deny access. -----------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Account::GroupsController#destroy as HTML Parameters: {"id"=>"cld-1"} Filter chain halted as :authenticate_maestrano! rendered or redirected Completed 401 Unauthorized in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------ MaestranoRailsTest: test_truth ------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------------------------------------------------- MaestranoGroupViaTest: test_: class methods find_or_create_for_maestrano class method should create a monster using the mapping block. ---------------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction 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"]]  (0.1ms) SAVEPOINT active_record_1 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-04-05 16:28:22.612175"], ["updated_at", "2016-04-05 16:28:22.612175"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction ------------------------------------------------------------------------------------------------------------------------------------------------------ MaestranoGroupViaTest: test_: class methods find_or_create_for_maestrano class method should not return a MnoCrew from another provider if it exists. ------------------------------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 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-04-05 16:28:22.614338"], ["updated_at", "2016-04-05 16:28:22.614338"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.1ms) SAVEPOINT active_record_1 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-04-05 16:28:22.616148"], ["updated_at", "2016-04-05 16:28:22.616148"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction ------------------------------------------------------------------------------------------------------------------------------ MaestranoGroupViaTest: test_: class methods find_or_create_for_maestrano class method should return the MnoCrew if it exists. ------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 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-04-05 16:28:22.617873"], ["updated_at", "2016-04-05 16:28:22.617873"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.1ms) rollback transaction ---------------------------------------------------------------------------------------------------- MaestranoGroupViaTest: test_: class methods maestrano_*_via should have the right field definition. ----------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------------------------- MaestranoGroupViaTest: test_: instance methods maestrano? should return false if provider is something else. -------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ----------------------------------------------------------------------------------------------- MaestranoGroupViaTest: test_: instance methods maestrano? should return false if uid is blank. -----------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------------------------------------ MaestranoGroupViaTest: test_: instance methods maestrano? should return true if provider is maestrano and uid not null. ------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------------------- GroupGeneratorTest: test_: GroupGenerator should call the active_record migration generator successfully. ----------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------------- GroupGeneratorTest: test_: GroupGenerator should call the mongoid migration generator successfully. ----------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------- MetadataControllerTest: test_: authenticated should be successful. -------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction Processing by Maestrano::Rails::MetadataController#index as HTML Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------- MetadataControllerTest: test_: unauthenticated should deny access. -------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Rails::MetadataController#index as HTML Filter chain halted as :authenticate_maestrano! rendered or redirected Completed 401 Unauthorized in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: class methods find_or_create_for_maestrano class method should create a monster using the mapping block. --------------------------------------------------------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction 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"]]  (0.0ms) SAVEPOINT active_record_1 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-04-05 16:28:22.650646"], ["updated_at", "2016-04-05 16:28:22.650646"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: class methods find_or_create_for_maestrano class method should not return a MnoMonster from another provider if it exists. --------------------------------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 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-04-05 16:28:22.652632"], ["updated_at", "2016-04-05 16:28:22.652632"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.0ms) SAVEPOINT active_record_1 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-04-05 16:28:22.653959"], ["updated_at", "2016-04-05 16:28:22.653959"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: class methods find_or_create_for_maestrano class method should return the MnoMonster if it exists. --------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 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-04-05 16:28:22.655437"], ["updated_at", "2016-04-05 16:28:22.655437"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.1ms) rollback transaction --------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: class methods maestrano_*_via should have the right field definition. ---------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------------------------ MaestranoUserViaTest: test_: instance methods maestrano? should return false if provider is something else. ------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: instance methods maestrano? should return false if uid is blank. ----------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ----------------------------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: instance methods maestrano? should return true if provider is maestrano and uid not null. -----------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------ ActiveRecordUserGeneratorTest: test_: namespaced model should create the right migration. ------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: namespaced model should edit the model content. --------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should create the right migration. --------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should edit the model content. ----------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should include parameters if rails 3 and strong_parameter not present. --------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should not include parameters if rails 3 and strong_parameter present. --------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should not include parameters in rails 4. ---------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------- InstallGeneratorTest: test_: InstallGenerator should create the maestrano initializer. ---------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------- InstallGeneratorTest: test_: InstallGenerator should create the maestrano routes. ----------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------------------- InstallGeneratorTest: test_: InstallGenerator should create the maestrano/account/group_users_controller. ----------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ----------------------------------------------------------------------------------------------------- InstallGeneratorTest: test_: InstallGenerator should create the maestrano/account/groups_controller. -----------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------------ InstallGeneratorTest: test_: InstallGenerator should create the maestrano/auth/saml_controller. ------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------------------------------- GenericControllerTest: test_: with a maestrano session should be successful if the maestrano session is still valid. ---------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by PagesController#home as HTML Rendered pages/home.html.erb within layouts/application (0.3ms) Completed 200 OK in 95ms (Views: 95.1ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction -------------------------------------------------------------------------------------------------------------------- GenericControllerTest: test_: with a maestrano session should initialize redirect to SSO initialization if invalid. --------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by PagesController#home as HTML Redirected to http://localhost:3000/maestrano/auth/saml/init/default Filter chain halted as :verify_maestrano_session rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ----------------------------------------------------------------------------------------------------------- GenericControllerTest: test_: with a maestrano session should not redirect to SSO init if sso is disabled. -----------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by PagesController#home as HTML Rendered pages/home.html.erb within layouts/application (0.0ms) Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------------------ GenericControllerTest: test_: with no maestrano session should be successful. ------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by PagesController#home as HTML Rendered pages/home.html.erb within layouts/application (0.0ms) Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------------- UserGeneratorTest: test_: UserGenerator should call the active_record migration generator successfully. --------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------- UserGeneratorTest: test_: UserGenerator should call the mongoid migration generator successfully. --------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------- GroupUsersControllerTest: test_: authenticated should be successful. ---------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Account::GroupUsersController#destroy as HTML Parameters: {"group_id"=>"cld-1", "id"=>"usr-1"} Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction --------------------------------------------------------------------- GroupUsersControllerTest: test_: unauthenticated should deny access. ---------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Account::GroupUsersController#destroy as HTML Parameters: {"group_id"=>"cld-1", "id"=>"usr-1"} Filter chain halted as :authenticate_maestrano! rendered or redirected Completed 401 Unauthorized in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------------------------------- GenericControllerTest: test_: with a maestrano session should be successful if the maestrano session is still valid. ---------------------------------------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by PagesController#home as HTML Rendering pages/home.html.erb within layouts/application Rendered pages/home.html.erb within layouts/application (1.0ms) Completed 200 OK in 282ms (Views: 281.3ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction -------------------------------------------------------------------------------------------------------------------- GenericControllerTest: test_: with a maestrano session should initialize redirect to SSO initialization if invalid. --------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by PagesController#home as HTML Rendering pages/home.html.erb within layouts/application Rendered pages/home.html.erb within layouts/application (0.1ms) Completed 200 OK in 1ms (Views: 1.0ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction ----------------------------------------------------------------------------------------------------------- GenericControllerTest: test_: with a maestrano session should not redirect to SSO init if sso is disabled. -----------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by PagesController#home as HTML Rendering pages/home.html.erb within layouts/application Rendered pages/home.html.erb within layouts/application (0.0ms) Completed 200 OK in 1ms (Views: 0.9ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction ------------------------------------------------------------------------------ GenericControllerTest: test_: with no maestrano session should be successful. ------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by PagesController#home as HTML Rendering pages/home.html.erb within layouts/application Rendered pages/home.html.erb within layouts/application (0.0ms) Completed 200 OK in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------------------- GroupGeneratorTest: test_: GroupGenerator should call the active_record migration generator successfully. ----------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction ---------------------------------------------------------------------------------------------------- GroupGeneratorTest: test_: GroupGenerator should call the mongoid migration generator successfully. ----------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction -------------------------------------------------------------------------------------------------------- UserGeneratorTest: test_: UserGenerator should call the active_record migration generator successfully. --------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction -------------------------------------------------------------------------------------------------- UserGeneratorTest: test_: UserGenerator should call the mongoid migration generator successfully. --------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: class methods find_or_create_for_maestrano class method should create a monster using the mapping block. --------------------------------------------------------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: class methods find_or_create_for_maestrano class method should not return a MnoMonster from another provider if it exists. --------------------------------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: class methods find_or_create_for_maestrano class method should return the MnoMonster if it exists. --------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: class methods maestrano_*_via should have the right field definition. ---------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------------------------ MaestranoUserViaTest: test_: instance methods maestrano? should return false if provider is something else. ------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: instance methods maestrano? should return false if uid is blank. ----------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ----------------------------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: instance methods maestrano? should return true if provider is maestrano and uid not null. -----------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------- MetadataControllerTest: test_: authenticated should be successful. -------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Rails::MetadataController#index as HTML Completed 200 OK in 2ms (Views: 0.6ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction ------------------------------------------------------------------- MetadataControllerTest: test_: unauthenticated should deny access. -------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Rails::MetadataController#index as HTML Filter chain halted as :authenticate_maestrano! rendered or redirected Completed 401 Unauthorized in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------ ActiveRecordUserGeneratorTest: test_: namespaced model should create the right migration. ------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction -------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: namespaced model should edit the model content. --------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction -------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should create the right migration. --------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction ---------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should edit the model content. ----------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should include parameters if rails 3 and strong_parameter not present. --------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should not include parameters if rails 3 and strong_parameter present. --------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction --------------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should not include parameters in rails 4. ---------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction --------------------------------------------------------------------------------------- InstallGeneratorTest: test_: InstallGenerator should create the maestrano initializer. ---------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction ---------------------------------------------------------------------------------- InstallGeneratorTest: test_: InstallGenerator should create the maestrano routes. ----------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction ---------------------------------------------------------------------------------------------------------- InstallGeneratorTest: test_: InstallGenerator should create the maestrano/account/group_users_controller. ----------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction ----------------------------------------------------------------------------------------------------- InstallGeneratorTest: test_: InstallGenerator should create the maestrano/account/groups_controller. -----------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.8ms) begin transaction  (0.1ms) rollback transaction ------------------------------------------------------------------------------------------------ InstallGeneratorTest: test_: InstallGenerator should create the maestrano/auth/saml_controller. ------------------------------------------------------------------------------------------------  (0.8ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction ------------------------------ MaestranoRailsTest: test_truth ------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------------------------------------------------- MaestranoGroupViaTest: test_: class methods find_or_create_for_maestrano class method should create a monster using the mapping block. ---------------------------------------------------------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------------------------------------------------------------------ MaestranoGroupViaTest: test_: class methods find_or_create_for_maestrano class method should not return a MnoCrew from another provider if it exists. ------------------------------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------------------------------------------ MaestranoGroupViaTest: test_: class methods find_or_create_for_maestrano class method should return the MnoCrew if it exists. ------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------------- MaestranoGroupViaTest: test_: class methods maestrano_*_via should have the right field definition. ----------------------------------------------------------------------------------------------------  (0.8ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------------------------- MaestranoGroupViaTest: test_: instance methods maestrano? should return false if provider is something else. -------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ----------------------------------------------------------------------------------------------- MaestranoGroupViaTest: test_: instance methods maestrano? should return false if uid is blank. -----------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------------------------------------ MaestranoGroupViaTest: test_: instance methods maestrano? should return true if provider is maestrano and uid not null. ------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------- GroupUsersControllerTest: test_: authenticated should be successful. ---------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Account::GroupUsersController#destroy as HTML Parameters: {"group_id"=>"cld-1", "id"=>"usr-1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 3ms (Views: 1.8ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction --------------------------------------------------------------------- GroupUsersControllerTest: test_: unauthenticated should deny access. ---------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Account::GroupUsersController#destroy as HTML Parameters: {"group_id"=>"cld-1", "id"=>"usr-1"} Filter chain halted as :authenticate_maestrano! rendered or redirected Completed 401 Unauthorized in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: namespaced model should create the right migration. -------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction --------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: namespaced model should edit the model content. ---------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction --------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should create the right migration. ---------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction ----------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should edit the model content. -----------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should include parameters if rails 3 and strong_parameter not present. ---------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should not include parameters if rails 3 and strong_parameter present. ---------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should not include parameters in rails 4. ----------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction ---------------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase error should redirect to maestrano on any error. ----------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Cannot validate SAML response: Bla Trace: ["/home/bruno/.rvm/gems/ruby-2.3.1/gems/mocha-1.1.0/lib/mocha/exception_raiser.rb:12:in `evaluate'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/mocha-1.1.0/lib/mocha/return_values.rb:20:in `next'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/mocha-1.1.0/lib/mocha/expectation.rb:569:in `invoke'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/mocha-1.1.0/lib/mocha/mock.rb:296:in `method_missing'", "/home/bruno/Workspace/maestrano-rails/app/controllers/maestrano/rails/saml_base_controller.rb:35:in `process_saml_response'", "/home/bruno/Workspace/maestrano-rails/app/controllers/maestrano/rails/saml_base_controller.rb:18:in `saml_response_transaction'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-5.0.0.1/lib/active_support/callbacks.rb:382:in `block in make_lambda'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-5.0.0.1/lib/active_support/callbacks.rb:266:in `block in halting_and_conditional'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-5.0.0.1/lib/active_support/callbacks.rb:447:in `block in around'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-5.0.0.1/lib/active_support/callbacks.rb:455:in `call'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-5.0.0.1/lib/active_support/callbacks.rb:101:in `__run_callbacks__'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-5.0.0.1/lib/active_support/callbacks.rb:750:in `_run_process_action_callbacks'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-5.0.0.1/lib/active_support/callbacks.rb:90:in `run_callbacks'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionpack-5.0.0.1/lib/abstract_controller/callbacks.rb:19:in `process_action'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionpack-5.0.0.1/lib/action_controller/metal/rescue.rb:20:in `process_action'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionpack-5.0.0.1/lib/action_controller/metal/instrumentation.rb:32:in `block in process_action'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-5.0.0.1/lib/active_support/notifications.rb:164:in `block in instrument'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-5.0.0.1/lib/active_support/notifications/instrumenter.rb:21:in `instrument'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-5.0.0.1/lib/active_support/notifications.rb:164:in `instrument'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionpack-5.0.0.1/lib/action_controller/metal/instrumentation.rb:30:in `process_action'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionpack-5.0.0.1/lib/action_controller/metal/params_wrapper.rb:248:in `process_action'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activerecord-5.0.0.1/lib/active_record/railties/controller_runtime.rb:18:in `process_action'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionpack-5.0.0.1/lib/abstract_controller/base.rb:126:in `process'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionview-5.0.0.1/lib/action_view/rendering.rb:30:in `process'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionpack-5.0.0.1/lib/action_controller/metal.rb:190:in `dispatch'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionpack-5.0.0.1/lib/action_controller/test_case.rb:532:in `process'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionpack-5.0.0.1/lib/action_controller/test_case.rb:634:in `process_with_kwargs'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionpack-5.0.0.1/lib/action_controller/test_case.rb:389:in `post'", "/home/bruno/Workspace/maestrano-rails/test/controllers/saml_controller_test.rb:117:in `block (3 levels) in '", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/shoulda-context-1.2.1/lib/shoulda/context/context.rb:413:in `instance_exec'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/shoulda-context-1.2.1/lib/shoulda/context/context.rb:413:in `block in create_test_from_should_hash'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest/test.rb:107:in `block (3 levels) in run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest/test.rb:204:in `capture_exceptions'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest/test.rb:104:in `block (2 levels) in run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest/test.rb:255:in `time_it'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest/test.rb:103:in `block in run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:348:in `on_signal'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest/test.rb:275:in `with_info_handler'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest/test.rb:102:in `run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:799:in `run_one_method'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:322:in `run_one_method'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:310:in `block (2 levels) in run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:309:in `each'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:309:in `block in run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:348:in `on_signal'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:335:in `with_info_handler'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:308:in `run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/railties-5.0.0.1/lib/rails/test_unit/line_filtering.rb:11:in `run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:158:in `block in __run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:158:in `map'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:158:in `__run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:135:in `run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:62:in `block in autorun'"] Redirected to http://api-sandbox.maestrano.io/app_access_unauthorized?err=internal Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should reset the maestrano session successfully if one already exists. --------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction --------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should set a saml_request in scope. ---------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.1ms) rollback transaction -------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should set the group_auth_hash in scope. --------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should set the maestrano session. -------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should set the user_auth_hash in scope. -------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.1ms) rollback transaction ------------------------------------------------------------------------------------------ SamlBaseControllerTest: test_: consume phase should set the user_group_rel_hash in scope. ------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: init phase should create a saml request successfully if a maestrano session is already set. ---------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#init as HTML Parameters: {"a_param"=>"value"} Redirected to http://idpprovider.com?r=request Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ----------------------------------------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: init phase should create a saml request using params and session and redirect the user. -----------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction Processing by Maestrano::Auth::SamlController#init as HTML Parameters: {"a_param"=>"value"} Redirected to http://idpprovider.com?r=request Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ----------------------------------------------------------------- GroupsControllerTest: test_: authenticated should be successful. -----------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Account::GroupsController#destroy as HTML Parameters: {"id"=>"cld-1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction ----------------------------------------------------------------- GroupsControllerTest: test_: unauthenticated should deny access. -----------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Account::GroupsController#destroy as HTML Parameters: {"id"=>"cld-1"} Filter chain halted as :authenticate_maestrano! rendered or redirected Completed 401 Unauthorized in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------------------------------- GenericControllerTest: test_: with a maestrano session should be successful if the maestrano session is still valid. ---------------------------------------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by PagesController#home as HTML Rendering pages/home.html.erb within layouts/application Rendered pages/home.html.erb within layouts/application (1.2ms) Completed 200 OK in 107ms (Views: 106.6ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction -------------------------------------------------------------------------------------------------------------------- GenericControllerTest: test_: with a maestrano session should initialize redirect to SSO initialization if invalid. --------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by PagesController#home as HTML Rendering pages/home.html.erb within layouts/application Rendered pages/home.html.erb within layouts/application (0.1ms) Completed 200 OK in 1ms (Views: 1.2ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ----------------------------------------------------------------------------------------------------------- GenericControllerTest: test_: with a maestrano session should not redirect to SSO init if sso is disabled. -----------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by PagesController#home as HTML Rendering pages/home.html.erb within layouts/application Rendered pages/home.html.erb within layouts/application (0.0ms) Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------------------ GenericControllerTest: test_: with no maestrano session should be successful. ------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by PagesController#home as HTML Rendering pages/home.html.erb within layouts/application Rendered pages/home.html.erb within layouts/application (0.0ms) Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction --------------------------------------------------------------------------------------- InstallGeneratorTest: test_: InstallGenerator should create the maestrano initializer. ---------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction ---------------------------------------------------------------------------------- InstallGeneratorTest: test_: InstallGenerator should create the maestrano routes. ----------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------------------- InstallGeneratorTest: test_: InstallGenerator should create the maestrano/account/group_users_controller. ----------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ----------------------------------------------------------------------------------------------------- InstallGeneratorTest: test_: InstallGenerator should create the maestrano/account/groups_controller. -----------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction ------------------------------------------------------------------------------------------------ InstallGeneratorTest: test_: InstallGenerator should create the maestrano/auth/saml_controller. ------------------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------- MetadataControllerTest: test_: authenticated should be successful. -------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Rails::MetadataController#index as HTML Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------- MetadataControllerTest: test_: unauthenticated should deny access. -------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Rails::MetadataController#index as HTML Filter chain halted as :authenticate_maestrano! rendered or redirected Completed 401 Unauthorized in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------------- UserGeneratorTest: test_: UserGenerator should call the active_record migration generator successfully. --------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction -------------------------------------------------------------------------------------------------- UserGeneratorTest: test_: UserGenerator should call the mongoid migration generator successfully. --------------------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: namespaced model should create the right migration. -------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: namespaced model should edit the model content. ---------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should create the right migration. ---------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ----------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should edit the model content. -----------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should include parameters if rails 3 and strong_parameter not present. ---------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should not include parameters if rails 3 and strong_parameter present. ---------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should not include parameters in rails 4. ----------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ----------------------------------------------------------------- GroupsControllerTest: test_: authenticated should be successful. -----------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Account::GroupsController#destroy as HTML Parameters: {"id"=>"cld-1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 1.1ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction ----------------------------------------------------------------- GroupsControllerTest: test_: unauthenticated should deny access. -----------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Account::GroupsController#destroy as HTML Parameters: {"id"=>"cld-1"} Filter chain halted as :authenticate_maestrano! rendered or redirected Completed 401 Unauthorized in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------ ActiveRecordUserGeneratorTest: test_: namespaced model should create the right migration. ------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: namespaced model should edit the model content. --------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should create the right migration. --------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should edit the model content. ----------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should include parameters if rails 3 and strong_parameter not present. --------------------------------------------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should not include parameters if rails 3 and strong_parameter present. --------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should not include parameters in rails 4. ---------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------------------- GroupGeneratorTest: test_: GroupGenerator should call the active_record migration generator successfully. ----------------------------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction ---------------------------------------------------------------------------------------------------- GroupGeneratorTest: test_: GroupGenerator should call the mongoid migration generator successfully. ----------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase error should redirect to maestrano on any error. ----------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Cannot validate SAML response: Bla Trace: ["/home/bruno/.rvm/gems/ruby-2.3.1/gems/mocha-1.1.0/lib/mocha/exception_raiser.rb:12:in `evaluate'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/mocha-1.1.0/lib/mocha/return_values.rb:20:in `next'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/mocha-1.1.0/lib/mocha/expectation.rb:569:in `invoke'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/mocha-1.1.0/lib/mocha/mock.rb:296:in `method_missing'", "/home/bruno/Workspace/maestrano-rails/app/controllers/maestrano/rails/saml_base_controller.rb:35:in `process_saml_response'", "/home/bruno/Workspace/maestrano-rails/app/controllers/maestrano/rails/saml_base_controller.rb:18:in `saml_response_transaction'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-5.0.0.1/lib/active_support/callbacks.rb:382:in `block in make_lambda'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-5.0.0.1/lib/active_support/callbacks.rb:266:in `block in halting_and_conditional'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-5.0.0.1/lib/active_support/callbacks.rb:447:in `block in around'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-5.0.0.1/lib/active_support/callbacks.rb:455:in `call'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-5.0.0.1/lib/active_support/callbacks.rb:101:in `__run_callbacks__'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-5.0.0.1/lib/active_support/callbacks.rb:750:in `_run_process_action_callbacks'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-5.0.0.1/lib/active_support/callbacks.rb:90:in `run_callbacks'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionpack-5.0.0.1/lib/abstract_controller/callbacks.rb:19:in `process_action'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionpack-5.0.0.1/lib/action_controller/metal/rescue.rb:20:in `process_action'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionpack-5.0.0.1/lib/action_controller/metal/instrumentation.rb:32:in `block in process_action'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-5.0.0.1/lib/active_support/notifications.rb:164:in `block in instrument'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-5.0.0.1/lib/active_support/notifications/instrumenter.rb:21:in `instrument'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-5.0.0.1/lib/active_support/notifications.rb:164:in `instrument'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionpack-5.0.0.1/lib/action_controller/metal/instrumentation.rb:30:in `process_action'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionpack-5.0.0.1/lib/action_controller/metal/params_wrapper.rb:248:in `process_action'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activerecord-5.0.0.1/lib/active_record/railties/controller_runtime.rb:18:in `process_action'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionpack-5.0.0.1/lib/abstract_controller/base.rb:126:in `process'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionview-5.0.0.1/lib/action_view/rendering.rb:30:in `process'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionpack-5.0.0.1/lib/action_controller/metal.rb:190:in `dispatch'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionpack-5.0.0.1/lib/action_controller/test_case.rb:532:in `process'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionpack-5.0.0.1/lib/action_controller/test_case.rb:634:in `process_with_kwargs'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionpack-5.0.0.1/lib/action_controller/test_case.rb:389:in `post'", "/home/bruno/Workspace/maestrano-rails/test/controllers/saml_controller_test.rb:117:in `block (3 levels) in '", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/shoulda-context-1.2.1/lib/shoulda/context/context.rb:413:in `instance_exec'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/shoulda-context-1.2.1/lib/shoulda/context/context.rb:413:in `block in create_test_from_should_hash'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest/test.rb:107:in `block (3 levels) in run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest/test.rb:204:in `capture_exceptions'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest/test.rb:104:in `block (2 levels) in run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest/test.rb:255:in `time_it'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest/test.rb:103:in `block in run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:348:in `on_signal'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest/test.rb:275:in `with_info_handler'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest/test.rb:102:in `run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:799:in `run_one_method'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:322:in `run_one_method'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:310:in `block (2 levels) in run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:309:in `each'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:309:in `block in run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:348:in `on_signal'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:335:in `with_info_handler'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:308:in `run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/railties-5.0.0.1/lib/rails/test_unit/line_filtering.rb:11:in `run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:158:in `block in __run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:158:in `map'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:158:in `__run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:135:in `run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:62:in `block in autorun'"] Redirected to http://api-sandbox.maestrano.io/app_access_unauthorized?err=internal Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should reset the maestrano session successfully if one already exists. --------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction --------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should set a saml_request in scope. ---------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction -------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should set the group_auth_hash in scope. --------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should set the maestrano session. -------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should set the user_auth_hash in scope. -------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.1ms) rollback transaction ------------------------------------------------------------------------------------------ SamlBaseControllerTest: test_: consume phase should set the user_group_rel_hash in scope. ------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.1ms) rollback transaction --------------------------------------------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: init phase should create a saml request successfully if a maestrano session is already set. ---------------------------------------------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction Processing by Maestrano::Auth::SamlController#init as HTML Parameters: {"a_param"=>"value"} Redirected to http://idpprovider.com?r=request Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ----------------------------------------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: init phase should create a saml request using params and session and redirect the user. -----------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#init as HTML Parameters: {"a_param"=>"value"} Redirected to http://idpprovider.com?r=request Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------------------------------------------------- MaestranoGroupViaTest: test_: class methods find_or_create_for_maestrano class method should create a monster using the mapping block. ---------------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------------------------------------------------------------------ MaestranoGroupViaTest: test_: class methods find_or_create_for_maestrano class method should not return a MnoCrew from another provider if it exists. ------------------------------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------------------------------------------ MaestranoGroupViaTest: test_: class methods find_or_create_for_maestrano class method should return the MnoCrew if it exists. ------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------------- MaestranoGroupViaTest: test_: class methods maestrano_*_via should have the right field definition. ----------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------------------------- MaestranoGroupViaTest: test_: instance methods maestrano? should return false if provider is something else. -------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ----------------------------------------------------------------------------------------------- MaestranoGroupViaTest: test_: instance methods maestrano? should return false if uid is blank. -----------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------------------------------------ MaestranoGroupViaTest: test_: instance methods maestrano? should return true if provider is maestrano and uid not null. ------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------ MaestranoRailsTest: test_truth ------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: class methods find_or_create_for_maestrano class method should create a monster using the mapping block. --------------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: class methods find_or_create_for_maestrano class method should not return a MnoMonster from another provider if it exists. --------------------------------------------------------------------------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: class methods find_or_create_for_maestrano class method should return the MnoMonster if it exists. --------------------------------------------------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: class methods maestrano_*_via should have the right field definition. ---------------------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------------------------ MaestranoUserViaTest: test_: instance methods maestrano? should return false if provider is something else. ------------------------------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: instance methods maestrano? should return false if uid is blank. ----------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ----------------------------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: instance methods maestrano? should return true if provider is maestrano and uid not null. -----------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------- GroupUsersControllerTest: test_: authenticated should be successful. ---------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Account::GroupUsersController#destroy as HTML Parameters: {"group_id"=>"cld-1", "id"=>"usr-1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction --------------------------------------------------------------------- GroupUsersControllerTest: test_: unauthenticated should deny access. ---------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Account::GroupUsersController#destroy as HTML Parameters: {"group_id"=>"cld-1", "id"=>"usr-1"} Filter chain halted as :authenticate_maestrano! rendered or redirected Completed 401 Unauthorized in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------------------------------- GenericControllerTest: test_: with a maestrano session should be successful if the maestrano session is still valid. ---------------------------------------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by PagesController#home as HTML Rendering pages/home.html.erb within layouts/application Rendered pages/home.html.erb within layouts/application (1.3ms) Completed 200 OK in 106ms (Views: 105.6ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction -------------------------------------------------------------------------------------------------------------------- GenericControllerTest: test_: with a maestrano session should initialize redirect to SSO initialization if invalid. --------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by PagesController#home as HTML Rendering pages/home.html.erb within layouts/application Rendered pages/home.html.erb within layouts/application (0.0ms) Completed 200 OK in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ----------------------------------------------------------------------------------------------------------- GenericControllerTest: test_: with a maestrano session should not redirect to SSO init if sso is disabled. -----------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by PagesController#home as HTML Rendering pages/home.html.erb within layouts/application Rendered pages/home.html.erb within layouts/application (0.0ms) Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------------------ GenericControllerTest: test_: with no maestrano session should be successful. ------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by PagesController#home as HTML Rendering pages/home.html.erb within layouts/application Rendered pages/home.html.erb within layouts/application (0.0ms) Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: class methods find_or_create_for_maestrano class method should create a monster using the mapping block. --------------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: class methods find_or_create_for_maestrano class method should not return a MnoMonster from another provider if it exists. --------------------------------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: class methods find_or_create_for_maestrano class method should return the MnoMonster if it exists. --------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: class methods maestrano_*_via should have the right field definition. ---------------------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------------------------ MaestranoUserViaTest: test_: instance methods maestrano? should return false if provider is something else. ------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction ---------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: instance methods maestrano? should return false if uid is blank. ----------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ----------------------------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: instance methods maestrano? should return true if provider is maestrano and uid not null. -----------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------ MaestranoRailsTest: test_truth ------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ----------------------------------------------------------------- GroupsControllerTest: test_: authenticated should be successful. -----------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Account::GroupsController#destroy as HTML Parameters: {"id"=>"cld-1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 3ms (Views: 1.7ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction ----------------------------------------------------------------- GroupsControllerTest: test_: unauthenticated should deny access. -----------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Account::GroupsController#destroy as HTML Parameters: {"id"=>"cld-1"} Filter chain halted as :authenticate_maestrano! rendered or redirected Completed 401 Unauthorized in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction --------------------------------------------------------------------------------------- InstallGeneratorTest: test_: InstallGenerator should create the maestrano initializer. ---------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction ---------------------------------------------------------------------------------- InstallGeneratorTest: test_: InstallGenerator should create the maestrano routes. ----------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction ---------------------------------------------------------------------------------------------------------- InstallGeneratorTest: test_: InstallGenerator should create the maestrano/account/group_users_controller. ----------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction ----------------------------------------------------------------------------------------------------- InstallGeneratorTest: test_: InstallGenerator should create the maestrano/account/groups_controller. -----------------------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction ------------------------------------------------------------------------------------------------ InstallGeneratorTest: test_: InstallGenerator should create the maestrano/auth/saml_controller. ------------------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------------- UserGeneratorTest: test_: UserGenerator should call the active_record migration generator successfully. --------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction -------------------------------------------------------------------------------------------------- UserGeneratorTest: test_: UserGenerator should call the mongoid migration generator successfully. --------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction ------------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: namespaced model should create the right migration. -------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: namespaced model should edit the model content. ---------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should create the right migration. ---------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ----------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should edit the model content. -----------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should include parameters if rails 3 and strong_parameter not present. ---------------------------------------------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction --------------------------------------------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should not include parameters if rails 3 and strong_parameter present. ---------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction ---------------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should not include parameters in rails 4. ----------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------------------------------------------------- MaestranoGroupViaTest: test_: class methods find_or_create_for_maestrano class method should create a monster using the mapping block. ---------------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------------------------------------------------------------------ MaestranoGroupViaTest: test_: class methods find_or_create_for_maestrano class method should not return a MnoCrew from another provider if it exists. ------------------------------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------------------------------------------ MaestranoGroupViaTest: test_: class methods find_or_create_for_maestrano class method should return the MnoCrew if it exists. ------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------------- MaestranoGroupViaTest: test_: class methods maestrano_*_via should have the right field definition. ----------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------------------------- MaestranoGroupViaTest: test_: instance methods maestrano? should return false if provider is something else. -------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ----------------------------------------------------------------------------------------------- MaestranoGroupViaTest: test_: instance methods maestrano? should return false if uid is blank. -----------------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------------------------------------ MaestranoGroupViaTest: test_: instance methods maestrano? should return true if provider is maestrano and uid not null. ------------------------------------------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------- MetadataControllerTest: test_: authenticated should be successful. -------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Rails::MetadataController#index as HTML Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------- MetadataControllerTest: test_: unauthenticated should deny access. -------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Rails::MetadataController#index as HTML Filter chain halted as :authenticate_maestrano! rendered or redirected Completed 401 Unauthorized in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction --------------------------------------------------------------------- GroupUsersControllerTest: test_: authenticated should be successful. ---------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction Processing by Maestrano::Account::GroupUsersController#destroy as HTML Parameters: {"group_id"=>"cld-1", "id"=>"usr-1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction --------------------------------------------------------------------- GroupUsersControllerTest: test_: unauthenticated should deny access. ---------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Account::GroupUsersController#destroy as HTML Parameters: {"group_id"=>"cld-1", "id"=>"usr-1"} Filter chain halted as :authenticate_maestrano! rendered or redirected Completed 401 Unauthorized in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------ ActiveRecordUserGeneratorTest: test_: namespaced model should create the right migration. ------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction -------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: namespaced model should edit the model content. --------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction -------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should create the right migration. --------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction ---------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should edit the model content. ----------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should include parameters if rails 3 and strong_parameter not present. --------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should not include parameters if rails 3 and strong_parameter present. --------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should not include parameters in rails 4. ---------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------------------- GroupGeneratorTest: test_: GroupGenerator should call the active_record migration generator successfully. ----------------------------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction ---------------------------------------------------------------------------------------------------- GroupGeneratorTest: test_: GroupGenerator should call the mongoid migration generator successfully. ----------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction ---------------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase error should redirect to maestrano on any error. ----------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Cannot validate SAML response: Bla Trace: ["/home/bruno/.rvm/gems/ruby-2.3.1/gems/mocha-1.1.0/lib/mocha/exception_raiser.rb:12:in `evaluate'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/mocha-1.1.0/lib/mocha/return_values.rb:20:in `next'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/mocha-1.1.0/lib/mocha/expectation.rb:569:in `invoke'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/mocha-1.1.0/lib/mocha/mock.rb:296:in `method_missing'", "/home/bruno/Workspace/maestrano-rails/app/controllers/maestrano/rails/saml_base_controller.rb:35:in `process_saml_response'", "/home/bruno/Workspace/maestrano-rails/app/controllers/maestrano/rails/saml_base_controller.rb:18:in `saml_response_transaction'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-5.0.0.1/lib/active_support/callbacks.rb:382:in `block in make_lambda'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-5.0.0.1/lib/active_support/callbacks.rb:266:in `block in halting_and_conditional'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-5.0.0.1/lib/active_support/callbacks.rb:447:in `block in around'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-5.0.0.1/lib/active_support/callbacks.rb:455:in `call'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-5.0.0.1/lib/active_support/callbacks.rb:101:in `__run_callbacks__'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-5.0.0.1/lib/active_support/callbacks.rb:750:in `_run_process_action_callbacks'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-5.0.0.1/lib/active_support/callbacks.rb:90:in `run_callbacks'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionpack-5.0.0.1/lib/abstract_controller/callbacks.rb:19:in `process_action'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionpack-5.0.0.1/lib/action_controller/metal/rescue.rb:20:in `process_action'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionpack-5.0.0.1/lib/action_controller/metal/instrumentation.rb:32:in `block in process_action'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-5.0.0.1/lib/active_support/notifications.rb:164:in `block in instrument'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-5.0.0.1/lib/active_support/notifications/instrumenter.rb:21:in `instrument'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-5.0.0.1/lib/active_support/notifications.rb:164:in `instrument'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionpack-5.0.0.1/lib/action_controller/metal/instrumentation.rb:30:in `process_action'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionpack-5.0.0.1/lib/action_controller/metal/params_wrapper.rb:248:in `process_action'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activerecord-5.0.0.1/lib/active_record/railties/controller_runtime.rb:18:in `process_action'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionpack-5.0.0.1/lib/abstract_controller/base.rb:126:in `process'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionview-5.0.0.1/lib/action_view/rendering.rb:30:in `process'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionpack-5.0.0.1/lib/action_controller/metal.rb:190:in `dispatch'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionpack-5.0.0.1/lib/action_controller/test_case.rb:532:in `process'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionpack-5.0.0.1/lib/action_controller/test_case.rb:634:in `process_with_kwargs'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionpack-5.0.0.1/lib/action_controller/test_case.rb:389:in `post'", "/home/bruno/Workspace/maestrano-rails/test/controllers/saml_controller_test.rb:117:in `block (3 levels) in '", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/shoulda-context-1.2.1/lib/shoulda/context/context.rb:413:in `instance_exec'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/shoulda-context-1.2.1/lib/shoulda/context/context.rb:413:in `block in create_test_from_should_hash'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest/test.rb:107:in `block (3 levels) in run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest/test.rb:204:in `capture_exceptions'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest/test.rb:104:in `block (2 levels) in run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest/test.rb:255:in `time_it'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest/test.rb:103:in `block in run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:348:in `on_signal'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest/test.rb:275:in `with_info_handler'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest/test.rb:102:in `run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:799:in `run_one_method'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:322:in `run_one_method'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:310:in `block (2 levels) in run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:309:in `each'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:309:in `block in run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:348:in `on_signal'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:335:in `with_info_handler'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:308:in `run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/railties-5.0.0.1/lib/rails/test_unit/line_filtering.rb:11:in `run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:158:in `block in __run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:158:in `map'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:158:in `__run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:135:in `run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:62:in `block in autorun'"] Redirected to http://api-sandbox.maestrano.io/app_access_unauthorized?err=internal Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.1ms) rollback transaction -------------------------------------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should reset the maestrano session successfully if one already exists. --------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.0ms)  (0.1ms) rollback transaction --------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should set a saml_request in scope. ---------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.1ms) rollback transaction -------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should set the group_auth_hash in scope. --------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.1ms) rollback transaction ------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should set the maestrano session. -------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.1ms) rollback transaction ------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should set the user_auth_hash in scope. -------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.1ms) rollback transaction ------------------------------------------------------------------------------------------ SamlBaseControllerTest: test_: consume phase should set the user_group_rel_hash in scope. ------------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.1ms) rollback transaction --------------------------------------------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: init phase should create a saml request successfully if a maestrano session is already set. ---------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#init as HTML Parameters: {"a_param"=>"value"} Redirected to http://idpprovider.com?r=request Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ----------------------------------------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: init phase should create a saml request using params and session and redirect the user. -----------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#init as HTML Parameters: {"a_param"=>"value"} Redirected to http://idpprovider.com?r=request Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------------------------------- GenericControllerTest: test_: with a maestrano session should be successful if the maestrano session is still valid. ---------------------------------------------------------------------------------------------------------------------  (0.2ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by PagesController#home as HTML Rendering pages/home.html.erb within layouts/application Rendered pages/home.html.erb within layouts/application (0.6ms) Completed 200 OK in 106ms (Views: 105.4ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction -------------------------------------------------------------------------------------------------------------------- GenericControllerTest: test_: with a maestrano session should initialize redirect to SSO initialization if invalid. --------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by PagesController#home as HTML Rendering pages/home.html.erb within layouts/application Rendered pages/home.html.erb within layouts/application (0.0ms) Completed 200 OK in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ----------------------------------------------------------------------------------------------------------- GenericControllerTest: test_: with a maestrano session should not redirect to SSO init if sso is disabled. -----------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by PagesController#home as HTML Rendering pages/home.html.erb within layouts/application Rendered pages/home.html.erb within layouts/application (0.0ms) Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------------------ GenericControllerTest: test_: with no maestrano session should be successful. ------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by PagesController#home as HTML Rendering pages/home.html.erb within layouts/application Rendered pages/home.html.erb within layouts/application (0.0ms) Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------ ActiveRecordUserGeneratorTest: test_: namespaced model should create the right migration. ------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: namespaced model should edit the model content. --------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction -------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should create the right migration. --------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should edit the model content. ----------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should include parameters if rails 3 and strong_parameter not present. --------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should not include parameters if rails 3 and strong_parameter present. --------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should not include parameters in rails 4. ---------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction ---------------------------------------------------------------------------------------------------------- GroupGeneratorTest: test_: GroupGenerator should call the active_record migration generator successfully. ----------------------------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------------- GroupGeneratorTest: test_: GroupGenerator should call the mongoid migration generator successfully. ----------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase error should redirect to maestrano on any error. ----------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Cannot validate SAML response: Bla Trace: ["/home/bruno/.rvm/gems/ruby-2.3.1/gems/mocha-1.1.0/lib/mocha/exception_raiser.rb:12:in `evaluate'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/mocha-1.1.0/lib/mocha/return_values.rb:20:in `next'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/mocha-1.1.0/lib/mocha/expectation.rb:569:in `invoke'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/mocha-1.1.0/lib/mocha/mock.rb:296:in `method_missing'", "/home/bruno/Workspace/maestrano-rails/app/controllers/maestrano/rails/saml_base_controller.rb:35:in `process_saml_response'", "/home/bruno/Workspace/maestrano-rails/app/controllers/maestrano/rails/saml_base_controller.rb:18:in `saml_response_transaction'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-5.0.0.1/lib/active_support/callbacks.rb:382:in `block in make_lambda'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-5.0.0.1/lib/active_support/callbacks.rb:266:in `block in halting_and_conditional'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-5.0.0.1/lib/active_support/callbacks.rb:447:in `block in around'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-5.0.0.1/lib/active_support/callbacks.rb:455:in `call'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-5.0.0.1/lib/active_support/callbacks.rb:101:in `__run_callbacks__'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-5.0.0.1/lib/active_support/callbacks.rb:750:in `_run_process_action_callbacks'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-5.0.0.1/lib/active_support/callbacks.rb:90:in `run_callbacks'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionpack-5.0.0.1/lib/abstract_controller/callbacks.rb:19:in `process_action'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionpack-5.0.0.1/lib/action_controller/metal/rescue.rb:20:in `process_action'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionpack-5.0.0.1/lib/action_controller/metal/instrumentation.rb:32:in `block in process_action'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-5.0.0.1/lib/active_support/notifications.rb:164:in `block in instrument'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-5.0.0.1/lib/active_support/notifications/instrumenter.rb:21:in `instrument'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-5.0.0.1/lib/active_support/notifications.rb:164:in `instrument'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionpack-5.0.0.1/lib/action_controller/metal/instrumentation.rb:30:in `process_action'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionpack-5.0.0.1/lib/action_controller/metal/params_wrapper.rb:248:in `process_action'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activerecord-5.0.0.1/lib/active_record/railties/controller_runtime.rb:18:in `process_action'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionpack-5.0.0.1/lib/abstract_controller/base.rb:126:in `process'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionview-5.0.0.1/lib/action_view/rendering.rb:30:in `process'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionpack-5.0.0.1/lib/action_controller/metal.rb:190:in `dispatch'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionpack-5.0.0.1/lib/action_controller/test_case.rb:532:in `process'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionpack-5.0.0.1/lib/action_controller/test_case.rb:634:in `process_with_kwargs'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionpack-5.0.0.1/lib/action_controller/test_case.rb:389:in `post'", "/home/bruno/Workspace/maestrano-rails/test/controllers/saml_controller_test.rb:117:in `block (3 levels) in '", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/shoulda-context-1.2.1/lib/shoulda/context/context.rb:413:in `instance_exec'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/shoulda-context-1.2.1/lib/shoulda/context/context.rb:413:in `block in create_test_from_should_hash'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest/test.rb:107:in `block (3 levels) in run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest/test.rb:204:in `capture_exceptions'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest/test.rb:104:in `block (2 levels) in run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest/test.rb:255:in `time_it'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest/test.rb:103:in `block in run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:348:in `on_signal'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest/test.rb:275:in `with_info_handler'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest/test.rb:102:in `run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:799:in `run_one_method'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:322:in `run_one_method'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:310:in `block (2 levels) in run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:309:in `each'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:309:in `block in run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:348:in `on_signal'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:335:in `with_info_handler'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:308:in `run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/railties-5.0.0.1/lib/rails/test_unit/line_filtering.rb:11:in `run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:158:in `block in __run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:158:in `map'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:158:in `__run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:135:in `run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:62:in `block in autorun'"] Redirected to http://api-sandbox.maestrano.io/app_access_unauthorized?err=internal Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.1ms) rollback transaction -------------------------------------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should reset the maestrano session successfully if one already exists. --------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction --------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should set a saml_request in scope. ---------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction -------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should set the group_auth_hash in scope. --------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.1ms) rollback transaction ------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should set the maestrano session. -------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.1ms) rollback transaction ------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should set the user_auth_hash in scope. -------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------ SamlBaseControllerTest: test_: consume phase should set the user_group_rel_hash in scope. ------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: init phase should create a saml request successfully if a maestrano session is already set. ---------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#init as HTML Parameters: {"a_param"=>"value"} Redirected to http://idpprovider.com?r=request Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ----------------------------------------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: init phase should create a saml request using params and session and redirect the user. -----------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#init as HTML Parameters: {"a_param"=>"value"} Redirected to http://idpprovider.com?r=request Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction --------------------------------------------------------------------------------------- InstallGeneratorTest: test_: InstallGenerator should create the maestrano initializer. ---------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------- InstallGeneratorTest: test_: InstallGenerator should create the maestrano routes. ----------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------------------- InstallGeneratorTest: test_: InstallGenerator should create the maestrano/account/group_users_controller. ----------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction ----------------------------------------------------------------------------------------------------- InstallGeneratorTest: test_: InstallGenerator should create the maestrano/account/groups_controller. -----------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction ------------------------------------------------------------------------------------------------ InstallGeneratorTest: test_: InstallGenerator should create the maestrano/auth/saml_controller. ------------------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction -------------------------------------------------------------------------------------------------------- UserGeneratorTest: test_: UserGenerator should call the active_record migration generator successfully. --------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------- UserGeneratorTest: test_: UserGenerator should call the mongoid migration generator successfully. --------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------- GroupUsersControllerTest: test_: authenticated should be successful. ---------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Account::GroupUsersController#destroy as HTML Parameters: {"group_id"=>"cld-1", "id"=>"usr-1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.9ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction --------------------------------------------------------------------- GroupUsersControllerTest: test_: unauthenticated should deny access. ---------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Account::GroupUsersController#destroy as HTML Parameters: {"group_id"=>"cld-1", "id"=>"usr-1"} Filter chain halted as :authenticate_maestrano! rendered or redirected Completed 401 Unauthorized in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------ MaestranoRailsTest: test_truth ------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: class methods find_or_create_for_maestrano class method should create a monster using the mapping block. --------------------------------------------------------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: class methods find_or_create_for_maestrano class method should not return a MnoMonster from another provider if it exists. --------------------------------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: class methods find_or_create_for_maestrano class method should return the MnoMonster if it exists. --------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: class methods maestrano_*_via should have the right field definition. ---------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------------------------ MaestranoUserViaTest: test_: instance methods maestrano? should return false if provider is something else. ------------------------------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: instance methods maestrano? should return false if uid is blank. ----------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ----------------------------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: instance methods maestrano? should return true if provider is maestrano and uid not null. -----------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------------------------------------------------- MaestranoGroupViaTest: test_: class methods find_or_create_for_maestrano class method should create a monster using the mapping block. ---------------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------------------------------------------------------------------ MaestranoGroupViaTest: test_: class methods find_or_create_for_maestrano class method should not return a MnoCrew from another provider if it exists. ------------------------------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------------------------------------------ MaestranoGroupViaTest: test_: class methods find_or_create_for_maestrano class method should return the MnoCrew if it exists. ------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------------- MaestranoGroupViaTest: test_: class methods maestrano_*_via should have the right field definition. ----------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------------------------- MaestranoGroupViaTest: test_: instance methods maestrano? should return false if provider is something else. -------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ----------------------------------------------------------------------------------------------- MaestranoGroupViaTest: test_: instance methods maestrano? should return false if uid is blank. -----------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------------------------------------ MaestranoGroupViaTest: test_: instance methods maestrano? should return true if provider is maestrano and uid not null. ------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------- MetadataControllerTest: test_: authenticated should be successful. -------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Rails::MetadataController#index as HTML Completed 200 OK in 2ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction ------------------------------------------------------------------- MetadataControllerTest: test_: unauthenticated should deny access. -------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction Processing by Maestrano::Rails::MetadataController#index as HTML Filter chain halted as :authenticate_maestrano! rendered or redirected Completed 401 Unauthorized in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction ------------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: namespaced model should create the right migration. -------------------------------------------------------------------------------------------  (0.2ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction --------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: namespaced model should edit the model content. ---------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should create the right migration. ---------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ----------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should edit the model content. -----------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should include parameters if rails 3 and strong_parameter not present. ---------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should not include parameters if rails 3 and strong_parameter present. ---------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should not include parameters in rails 4. ----------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ----------------------------------------------------------------- GroupsControllerTest: test_: authenticated should be successful. -----------------------------------------------------------------  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction Processing by Maestrano::Account::GroupsController#destroy as HTML Parameters: {"id"=>"cld-1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction ----------------------------------------------------------------- GroupsControllerTest: test_: unauthenticated should deny access. -----------------------------------------------------------------  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction Processing by Maestrano::Account::GroupsController#destroy as HTML Parameters: {"id"=>"cld-1"} Filter chain halted as :authenticate_maestrano! rendered or redirected Completed 401 Unauthorized in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction --------------------------------------------------------------------- GroupUsersControllerTest: test_: authenticated should be successful. ---------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Account::GroupUsersController#destroy as HTML Parameters: {"group_id"=>"cld-1", "id"=>"usr-1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 3ms (Views: 2.3ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction --------------------------------------------------------------------- GroupUsersControllerTest: test_: unauthenticated should deny access. ---------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Account::GroupUsersController#destroy as HTML Parameters: {"group_id"=>"cld-1", "id"=>"usr-1"} Filter chain halted as :authenticate_maestrano! rendered or redirected Completed 401 Unauthorized in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: class methods find_or_create_for_maestrano class method should create a monster using the mapping block. --------------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: class methods find_or_create_for_maestrano class method should not return a MnoMonster from another provider if it exists. --------------------------------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: class methods find_or_create_for_maestrano class method should return the MnoMonster if it exists. --------------------------------------------------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: class methods maestrano_*_via should have the right field definition. ---------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------------------------ MaestranoUserViaTest: test_: instance methods maestrano? should return false if provider is something else. ------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: instance methods maestrano? should return false if uid is blank. ----------------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ----------------------------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: instance methods maestrano? should return true if provider is maestrano and uid not null. -----------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------------------- GroupGeneratorTest: test_: GroupGenerator should call the active_record migration generator successfully. ----------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction ---------------------------------------------------------------------------------------------------- GroupGeneratorTest: test_: GroupGenerator should call the mongoid migration generator successfully. ----------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction ----------------------------------------------------------------- GroupsControllerTest: test_: authenticated should be successful. -----------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Account::GroupsController#destroy as HTML Parameters: {"id"=>"cld-1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ----------------------------------------------------------------- GroupsControllerTest: test_: unauthenticated should deny access. -----------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Account::GroupsController#destroy as HTML Parameters: {"id"=>"cld-1"} Filter chain halted as :authenticate_maestrano! rendered or redirected Completed 401 Unauthorized in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction --------------------------------------------------------------------------------------- InstallGeneratorTest: test_: InstallGenerator should create the maestrano initializer. ---------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------- InstallGeneratorTest: test_: InstallGenerator should create the maestrano routes. ----------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------------------- InstallGeneratorTest: test_: InstallGenerator should create the maestrano/account/group_users_controller. ----------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction ----------------------------------------------------------------------------------------------------- InstallGeneratorTest: test_: InstallGenerator should create the maestrano/account/groups_controller. -----------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------------ InstallGeneratorTest: test_: InstallGenerator should create the maestrano/auth/saml_controller. ------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction ------------------------------------------------------------------- MetadataControllerTest: test_: authenticated should be successful. -------------------------------------------------------------------  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction Processing by Maestrano::Rails::MetadataController#index as HTML Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------- MetadataControllerTest: test_: unauthenticated should deny access. -------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Rails::MetadataController#index as HTML Filter chain halted as :authenticate_maestrano! rendered or redirected Completed 401 Unauthorized in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------ MaestranoRailsTest: test_truth ------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------------------------------- GenericControllerTest: test_: with a maestrano session should be successful if the maestrano session is still valid. ---------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by PagesController#home as HTML Rendering pages/home.html.erb within layouts/application Rendered pages/home.html.erb within layouts/application (0.8ms) Completed 200 OK in 102ms (Views: 101.7ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction -------------------------------------------------------------------------------------------------------------------- GenericControllerTest: test_: with a maestrano session should initialize redirect to SSO initialization if invalid. --------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by PagesController#home as HTML Redirected to http://localhost:3000/maestrano/auth/saml/init/default Filter chain halted as :verify_maestrano_session rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ----------------------------------------------------------------------------------------------------------- GenericControllerTest: test_: with a maestrano session should not redirect to SSO init if sso is disabled. -----------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by PagesController#home as HTML Rendering pages/home.html.erb within layouts/application Rendered pages/home.html.erb within layouts/application (0.1ms) Completed 200 OK in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------------------ GenericControllerTest: test_: with no maestrano session should be successful. ------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by PagesController#home as HTML Rendering pages/home.html.erb within layouts/application Rendered pages/home.html.erb within layouts/application (0.0ms) Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase error should redirect to maestrano on any error. ----------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Cannot validate SAML response: Bla Trace: ["/home/bruno/.rvm/gems/ruby-2.3.1/gems/mocha-1.1.0/lib/mocha/exception_raiser.rb:12:in `evaluate'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/mocha-1.1.0/lib/mocha/return_values.rb:20:in `next'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/mocha-1.1.0/lib/mocha/expectation.rb:569:in `invoke'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/mocha-1.1.0/lib/mocha/mock.rb:296:in `method_missing'", "/home/bruno/Workspace/maestrano-rails/app/controllers/maestrano/rails/saml_base_controller.rb:35:in `process_saml_response'", "/home/bruno/Workspace/maestrano-rails/app/controllers/maestrano/rails/saml_base_controller.rb:18:in `saml_response_transaction'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-5.0.0.1/lib/active_support/callbacks.rb:382:in `block in make_lambda'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-5.0.0.1/lib/active_support/callbacks.rb:266:in `block in halting_and_conditional'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-5.0.0.1/lib/active_support/callbacks.rb:447:in `block in around'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-5.0.0.1/lib/active_support/callbacks.rb:455:in `call'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-5.0.0.1/lib/active_support/callbacks.rb:101:in `__run_callbacks__'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-5.0.0.1/lib/active_support/callbacks.rb:750:in `_run_process_action_callbacks'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-5.0.0.1/lib/active_support/callbacks.rb:90:in `run_callbacks'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionpack-5.0.0.1/lib/abstract_controller/callbacks.rb:19:in `process_action'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionpack-5.0.0.1/lib/action_controller/metal/rescue.rb:20:in `process_action'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionpack-5.0.0.1/lib/action_controller/metal/instrumentation.rb:32:in `block in process_action'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-5.0.0.1/lib/active_support/notifications.rb:164:in `block in instrument'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-5.0.0.1/lib/active_support/notifications/instrumenter.rb:21:in `instrument'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-5.0.0.1/lib/active_support/notifications.rb:164:in `instrument'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionpack-5.0.0.1/lib/action_controller/metal/instrumentation.rb:30:in `process_action'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionpack-5.0.0.1/lib/action_controller/metal/params_wrapper.rb:248:in `process_action'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activerecord-5.0.0.1/lib/active_record/railties/controller_runtime.rb:18:in `process_action'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionpack-5.0.0.1/lib/abstract_controller/base.rb:126:in `process'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionview-5.0.0.1/lib/action_view/rendering.rb:30:in `process'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionpack-5.0.0.1/lib/action_controller/metal.rb:190:in `dispatch'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionpack-5.0.0.1/lib/action_controller/test_case.rb:532:in `process'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionpack-5.0.0.1/lib/action_controller/test_case.rb:634:in `process_with_kwargs'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionpack-5.0.0.1/lib/action_controller/test_case.rb:389:in `post'", "/home/bruno/Workspace/maestrano-rails/test/controllers/saml_controller_test.rb:117:in `block (3 levels) in '", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/shoulda-context-1.2.1/lib/shoulda/context/context.rb:413:in `instance_exec'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/shoulda-context-1.2.1/lib/shoulda/context/context.rb:413:in `block in create_test_from_should_hash'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest/test.rb:107:in `block (3 levels) in run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest/test.rb:204:in `capture_exceptions'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest/test.rb:104:in `block (2 levels) in run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest/test.rb:255:in `time_it'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest/test.rb:103:in `block in run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:348:in `on_signal'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest/test.rb:275:in `with_info_handler'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest/test.rb:102:in `run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:799:in `run_one_method'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:322:in `run_one_method'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:310:in `block (2 levels) in run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:309:in `each'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:309:in `block in run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:348:in `on_signal'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:335:in `with_info_handler'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:308:in `run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/railties-5.0.0.1/lib/rails/test_unit/line_filtering.rb:11:in `run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:158:in `block in __run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:158:in `map'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:158:in `__run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:135:in `run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:62:in `block in autorun'"] Redirected to http://api-sandbox.maestrano.io/app_access_unauthorized?err=internal Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should reset the maestrano session successfully if one already exists. --------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction --------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should set a saml_request in scope. ---------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction -------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should set the group_auth_hash in scope. --------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should set the maestrano session. -------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should set the user_auth_hash in scope. -------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------ SamlBaseControllerTest: test_: consume phase should set the user_group_rel_hash in scope. ------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: init phase should create a saml request successfully if a maestrano session is already set. ---------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#init as HTML Parameters: {"a_param"=>"value"} Redirected to http://idpprovider.com?r=request Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ----------------------------------------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: init phase should create a saml request using params and session and redirect the user. -----------------------------------------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#init as HTML Parameters: {"a_param"=>"value"} Redirected to http://idpprovider.com?r=request Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) rollback transaction ------------------------------------------------------------------------------------------ ActiveRecordUserGeneratorTest: test_: namespaced model should create the right migration. ------------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: namespaced model should edit the model content. --------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should create the right migration. --------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should edit the model content. ----------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should include parameters if rails 3 and strong_parameter not present. --------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should not include parameters if rails 3 and strong_parameter present. --------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should not include parameters in rails 4. ---------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------------- UserGeneratorTest: test_: UserGenerator should call the active_record migration generator successfully. --------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------- UserGeneratorTest: test_: UserGenerator should call the mongoid migration generator successfully. --------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction ------------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: namespaced model should create the right migration. -------------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: namespaced model should edit the model content. ---------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should create the right migration. ---------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ----------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should edit the model content. -----------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should include parameters if rails 3 and strong_parameter not present. ---------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should not include parameters if rails 3 and strong_parameter present. ---------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should not include parameters in rails 4. ----------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------------------------------------------------- MaestranoGroupViaTest: test_: class methods find_or_create_for_maestrano class method should create a monster using the mapping block. ---------------------------------------------------------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------------------------------------------------------------------ MaestranoGroupViaTest: test_: class methods find_or_create_for_maestrano class method should not return a MnoCrew from another provider if it exists. ------------------------------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction ------------------------------------------------------------------------------------------------------------------------------ MaestranoGroupViaTest: test_: class methods find_or_create_for_maestrano class method should return the MnoCrew if it exists. ------------------------------------------------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------------- MaestranoGroupViaTest: test_: class methods maestrano_*_via should have the right field definition. ----------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------------------------- MaestranoGroupViaTest: test_: instance methods maestrano? should return false if provider is something else. -------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ----------------------------------------------------------------------------------------------- MaestranoGroupViaTest: test_: instance methods maestrano? should return false if uid is blank. -----------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------------------------------------ MaestranoGroupViaTest: test_: instance methods maestrano? should return true if provider is maestrano and uid not null. ------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------- MetadataControllerTest: test_: authenticated should be successful. -------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Rails::MetadataController#index as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction ------------------------------------------------------------------- MetadataControllerTest: test_: unauthenticated should deny access. -------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction Processing by Maestrano::Rails::MetadataController#index as HTML Filter chain halted as :authenticate_maestrano! rendered or redirected Completed 401 Unauthorized in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------------------------------------------------- MaestranoGroupViaTest: test_: class methods find_or_create_for_maestrano class method should create a monster using the mapping block. ---------------------------------------------------------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------------------------------------------------------------------ MaestranoGroupViaTest: test_: class methods find_or_create_for_maestrano class method should not return a MnoCrew from another provider if it exists. ------------------------------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------------------------------------------ MaestranoGroupViaTest: test_: class methods find_or_create_for_maestrano class method should return the MnoCrew if it exists. ------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------------- MaestranoGroupViaTest: test_: class methods maestrano_*_via should have the right field definition. ----------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------------------------- MaestranoGroupViaTest: test_: instance methods maestrano? should return false if provider is something else. -------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ----------------------------------------------------------------------------------------------- MaestranoGroupViaTest: test_: instance methods maestrano? should return false if uid is blank. -----------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------------------------------------ MaestranoGroupViaTest: test_: instance methods maestrano? should return true if provider is maestrano and uid not null. ------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------ MaestranoRailsTest: test_truth ------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase error should redirect to maestrano on any error. ----------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Cannot validate SAML response: Bla Trace: ["/home/bruno/.rvm/gems/ruby-2.3.1/gems/mocha-1.1.0/lib/mocha/exception_raiser.rb:12:in `evaluate'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/mocha-1.1.0/lib/mocha/return_values.rb:20:in `next'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/mocha-1.1.0/lib/mocha/expectation.rb:569:in `invoke'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/mocha-1.1.0/lib/mocha/mock.rb:296:in `method_missing'", "/home/bruno/Workspace/maestrano-rails/app/controllers/maestrano/rails/saml_base_controller.rb:35:in `process_saml_response'", "/home/bruno/Workspace/maestrano-rails/app/controllers/maestrano/rails/saml_base_controller.rb:18:in `saml_response_transaction'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-5.0.0.1/lib/active_support/callbacks.rb:382:in `block in make_lambda'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-5.0.0.1/lib/active_support/callbacks.rb:266:in `block in halting_and_conditional'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-5.0.0.1/lib/active_support/callbacks.rb:447:in `block in around'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-5.0.0.1/lib/active_support/callbacks.rb:455:in `call'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-5.0.0.1/lib/active_support/callbacks.rb:101:in `__run_callbacks__'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-5.0.0.1/lib/active_support/callbacks.rb:750:in `_run_process_action_callbacks'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-5.0.0.1/lib/active_support/callbacks.rb:90:in `run_callbacks'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionpack-5.0.0.1/lib/abstract_controller/callbacks.rb:19:in `process_action'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionpack-5.0.0.1/lib/action_controller/metal/rescue.rb:20:in `process_action'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionpack-5.0.0.1/lib/action_controller/metal/instrumentation.rb:32:in `block in process_action'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-5.0.0.1/lib/active_support/notifications.rb:164:in `block in instrument'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-5.0.0.1/lib/active_support/notifications/instrumenter.rb:21:in `instrument'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-5.0.0.1/lib/active_support/notifications.rb:164:in `instrument'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionpack-5.0.0.1/lib/action_controller/metal/instrumentation.rb:30:in `process_action'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionpack-5.0.0.1/lib/action_controller/metal/params_wrapper.rb:248:in `process_action'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activerecord-5.0.0.1/lib/active_record/railties/controller_runtime.rb:18:in `process_action'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionpack-5.0.0.1/lib/abstract_controller/base.rb:126:in `process'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionview-5.0.0.1/lib/action_view/rendering.rb:30:in `process'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionpack-5.0.0.1/lib/action_controller/metal.rb:190:in `dispatch'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionpack-5.0.0.1/lib/action_controller/test_case.rb:532:in `process'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionpack-5.0.0.1/lib/action_controller/test_case.rb:629:in `process_with_kwargs'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionpack-5.0.0.1/lib/action_controller/test_case.rb:389:in `post'", "/home/bruno/Workspace/maestrano-rails/test/controllers/saml_controller_test.rb:117:in `block (3 levels) in '", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/shoulda-context-1.2.1/lib/shoulda/context/context.rb:413:in `instance_exec'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/shoulda-context-1.2.1/lib/shoulda/context/context.rb:413:in `block in create_test_from_should_hash'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest/test.rb:107:in `block (3 levels) in run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest/test.rb:204:in `capture_exceptions'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest/test.rb:104:in `block (2 levels) in run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest/test.rb:255:in `time_it'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest/test.rb:103:in `block in run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:348:in `on_signal'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest/test.rb:275:in `with_info_handler'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest/test.rb:102:in `run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:799:in `run_one_method'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:322:in `run_one_method'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:310:in `block (2 levels) in run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:309:in `each'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:309:in `block in run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:348:in `on_signal'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:335:in `with_info_handler'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:308:in `run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/railties-5.0.0.1/lib/rails/test_unit/line_filtering.rb:11:in `run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:158:in `block in __run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:158:in `map'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:158:in `__run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:135:in `run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:62:in `block in autorun'"] Redirected to http://api-sandbox.maestrano.io/app_access_unauthorized?err=internal Completed 302 Found in 3ms (ActiveRecord: 0.0ms)  (0.1ms) rollback transaction -------------------------------------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should reset the maestrano session successfully if one already exists. --------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 5ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction --------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should set a saml_request in scope. ---------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.1ms) rollback transaction -------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should set the group_auth_hash in scope. --------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should set the maestrano session. -------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.1ms) rollback transaction ------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should set the user_auth_hash in scope. -------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------ SamlBaseControllerTest: test_: consume phase should set the user_group_rel_hash in scope. ------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) rollback transaction --------------------------------------------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: init phase should create a saml request successfully if a maestrano session is already set. ---------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#init as HTML Parameters: {"a_param"=>"value"} Redirected to http://idpprovider.com?r=request Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ----------------------------------------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: init phase should create a saml request using params and session and redirect the user. -----------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#init as HTML Parameters: {"a_param"=>"value"} Redirected to http://idpprovider.com?r=request Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: namespaced model should create the right migration. -------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: namespaced model should edit the model content. ---------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should create the right migration. ---------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ----------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should edit the model content. -----------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should include parameters if rails 3 and strong_parameter not present. ---------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should not include parameters if rails 3 and strong_parameter present. ---------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction ---------------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should not include parameters in rails 4. ----------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------------- UserGeneratorTest: test_: UserGenerator should call the active_record migration generator successfully. --------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------- UserGeneratorTest: test_: UserGenerator should call the mongoid migration generator successfully. --------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------ ActiveRecordUserGeneratorTest: test_: namespaced model should create the right migration. ------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: namespaced model should edit the model content. --------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should create the right migration. --------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction ---------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should edit the model content. ----------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should include parameters if rails 3 and strong_parameter not present. --------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should not include parameters if rails 3 and strong_parameter present. --------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should not include parameters in rails 4. ---------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------- InstallGeneratorTest: test_: InstallGenerator should create the maestrano initializer. ---------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------- InstallGeneratorTest: test_: InstallGenerator should create the maestrano routes. ----------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------------------- InstallGeneratorTest: test_: InstallGenerator should create the maestrano/account/group_users_controller. ----------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ----------------------------------------------------------------------------------------------------- InstallGeneratorTest: test_: InstallGenerator should create the maestrano/account/groups_controller. -----------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction ------------------------------------------------------------------------------------------------ InstallGeneratorTest: test_: InstallGenerator should create the maestrano/auth/saml_controller. ------------------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: class methods find_or_create_for_maestrano class method should create a monster using the mapping block. --------------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: class methods find_or_create_for_maestrano class method should not return a MnoMonster from another provider if it exists. --------------------------------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: class methods find_or_create_for_maestrano class method should return the MnoMonster if it exists. --------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: class methods maestrano_*_via should have the right field definition. ---------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------------------------ MaestranoUserViaTest: test_: instance methods maestrano? should return false if provider is something else. ------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: instance methods maestrano? should return false if uid is blank. ----------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ----------------------------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: instance methods maestrano? should return true if provider is maestrano and uid not null. -----------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------------------------------- GenericControllerTest: test_: with a maestrano session should be successful if the maestrano session is still valid. ---------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by PagesController#home as HTML Rendering pages/home.html.erb within layouts/application Rendered pages/home.html.erb within layouts/application (0.7ms) Completed 200 OK in 104ms (Views: 103.5ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction -------------------------------------------------------------------------------------------------------------------- GenericControllerTest: test_: with a maestrano session should initialize redirect to SSO initialization if invalid. --------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by PagesController#home as HTML Redirected to http://localhost:3000/maestrano/auth/saml/init/default Filter chain halted as :verify_maestrano_session rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ----------------------------------------------------------------------------------------------------------- GenericControllerTest: test_: with a maestrano session should not redirect to SSO init if sso is disabled. -----------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by PagesController#home as HTML Rendering pages/home.html.erb within layouts/application Rendered pages/home.html.erb within layouts/application (0.0ms) Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------------------ GenericControllerTest: test_: with no maestrano session should be successful. ------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by PagesController#home as HTML Rendering pages/home.html.erb within layouts/application Rendered pages/home.html.erb within layouts/application (0.0ms) Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ----------------------------------------------------------------- GroupsControllerTest: test_: authenticated should be successful. -----------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Account::GroupsController#destroy as HTML Parameters: {"id"=>"cld-1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.9ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ----------------------------------------------------------------- GroupsControllerTest: test_: unauthenticated should deny access. -----------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Account::GroupsController#destroy as HTML Parameters: {"id"=>"cld-1"} Filter chain halted as :authenticate_maestrano! rendered or redirected Completed 401 Unauthorized in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------------------- GroupGeneratorTest: test_: GroupGenerator should call the active_record migration generator successfully. ----------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------------- GroupGeneratorTest: test_: GroupGenerator should call the mongoid migration generator successfully. ----------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction --------------------------------------------------------------------- GroupUsersControllerTest: test_: authenticated should be successful. ---------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Account::GroupUsersController#destroy as HTML Parameters: {"group_id"=>"cld-1", "id"=>"usr-1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 0.9ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction --------------------------------------------------------------------- GroupUsersControllerTest: test_: unauthenticated should deny access. ---------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Account::GroupUsersController#destroy as HTML Parameters: {"group_id"=>"cld-1", "id"=>"usr-1"} Filter chain halted as :authenticate_maestrano! rendered or redirected Completed 401 Unauthorized in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction --------------------------------------------------------------------------------------- InstallGeneratorTest: test_: InstallGenerator should create the maestrano initializer. ---------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction ---------------------------------------------------------------------------------- InstallGeneratorTest: test_: InstallGenerator should create the maestrano routes. ----------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------------------- InstallGeneratorTest: test_: InstallGenerator should create the maestrano/account/group_users_controller. ----------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ----------------------------------------------------------------------------------------------------- InstallGeneratorTest: test_: InstallGenerator should create the maestrano/account/groups_controller. -----------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------------ InstallGeneratorTest: test_: InstallGenerator should create the maestrano/auth/saml_controller. ------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------ MaestranoRailsTest: test_truth ------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------------- UserGeneratorTest: test_: UserGenerator should call the active_record migration generator successfully. --------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction -------------------------------------------------------------------------------------------------- UserGeneratorTest: test_: UserGenerator should call the mongoid migration generator successfully. --------------------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction ---------------------------------------------------------------------------------------------------------- GroupGeneratorTest: test_: GroupGenerator should call the active_record migration generator successfully. ----------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------------- GroupGeneratorTest: test_: GroupGenerator should call the mongoid migration generator successfully. ----------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase error should redirect to maestrano on any error. ----------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Cannot validate SAML response: Bla Trace: ["/home/bruno/.rvm/gems/ruby-2.3.1/gems/mocha-1.1.0/lib/mocha/exception_raiser.rb:12:in `evaluate'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/mocha-1.1.0/lib/mocha/return_values.rb:20:in `next'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/mocha-1.1.0/lib/mocha/expectation.rb:569:in `invoke'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/mocha-1.1.0/lib/mocha/mock.rb:296:in `method_missing'", "/home/bruno/Workspace/maestrano-rails/app/controllers/maestrano/rails/saml_base_controller.rb:35:in `process_saml_response'", "/home/bruno/Workspace/maestrano-rails/app/controllers/maestrano/rails/saml_base_controller.rb:18:in `saml_response_transaction'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:432:in `block in make_lambda'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:291:in `block in halting_and_conditional'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:497:in `block in around'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:505:in `call'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:92:in `__run_callbacks__'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:778:in `_run_process_action_callbacks'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:81:in `run_callbacks'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionpack-4.2.7.1/lib/abstract_controller/callbacks.rb:19:in `process_action'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionpack-4.2.7.1/lib/action_controller/metal/rescue.rb:29:in `process_action'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionpack-4.2.7.1/lib/action_controller/metal/instrumentation.rb:32:in `block in process_action'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-4.2.7.1/lib/active_support/notifications.rb:164:in `block in instrument'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-4.2.7.1/lib/active_support/notifications/instrumenter.rb:20:in `instrument'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-4.2.7.1/lib/active_support/notifications.rb:164:in `instrument'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionpack-4.2.7.1/lib/action_controller/metal/instrumentation.rb:30:in `process_action'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionpack-4.2.7.1/lib/action_controller/metal/params_wrapper.rb:250:in `process_action'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activerecord-4.2.7.1/lib/active_record/railties/controller_runtime.rb:18:in `process_action'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionpack-4.2.7.1/lib/abstract_controller/base.rb:137:in `process'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionview-4.2.7.1/lib/action_view/rendering.rb:30:in `process'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionpack-4.2.7.1/lib/action_controller/test_case.rb:639:in `process'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionpack-4.2.7.1/lib/action_controller/test_case.rb:67:in `process'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionpack-4.2.7.1/lib/action_controller/test_case.rb:520:in `post'", "/home/bruno/Workspace/maestrano-rails/test/controllers/saml_controller_test.rb:117:in `block (3 levels) in '", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/shoulda-context-1.2.1/lib/shoulda/context/context.rb:413:in `instance_exec'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/shoulda-context-1.2.1/lib/shoulda/context/context.rb:413:in `block in create_test_from_should_hash'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest/test.rb:107:in `block (3 levels) in run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest/test.rb:204:in `capture_exceptions'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest/test.rb:104:in `block (2 levels) in run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest/test.rb:255:in `time_it'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest/test.rb:103:in `block in run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:348:in `on_signal'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest/test.rb:275:in `with_info_handler'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest/test.rb:102:in `run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:799:in `run_one_method'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:322:in `run_one_method'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:310:in `block (2 levels) in run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:309:in `each'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:309:in `block in run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:348:in `on_signal'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:335:in `with_info_handler'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:308:in `run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:158:in `block in __run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:158:in `map'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:158:in `__run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:135:in `run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:62:in `block in autorun'"] Redirected to http://api-sandbox.maestrano.io/app_access_unauthorized?err=internal Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.1ms) rollback transaction -------------------------------------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should reset the maestrano session successfully if one already exists. --------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction --------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should set a saml_request in scope. ---------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction -------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should set the group_auth_hash in scope. --------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.1ms) rollback transaction ------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should set the maestrano session. -------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should set the user_auth_hash in scope. -------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------ SamlBaseControllerTest: test_: consume phase should set the user_group_rel_hash in scope. ------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: init phase should create a saml request successfully if a maestrano session is already set. ---------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#init as HTML Parameters: {"a_param"=>"value"} Redirected to http://idpprovider.com?r=request Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ----------------------------------------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: init phase should create a saml request using params and session and redirect the user. -----------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#init as HTML Parameters: {"a_param"=>"value"} Redirected to http://idpprovider.com?r=request Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------ ActiveRecordUserGeneratorTest: test_: namespaced model should create the right migration. ------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction -------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: namespaced model should edit the model content. --------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction -------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should create the right migration. --------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should edit the model content. ----------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should include parameters if rails 3 and strong_parameter not present. --------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should not include parameters if rails 3 and strong_parameter present. --------------------------------------------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should not include parameters in rails 4. ---------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction ------------------------------------------------------------------- MetadataControllerTest: test_: authenticated should be successful. -------------------------------------------------------------------  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Rails::MetadataController#index as HTML Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------- MetadataControllerTest: test_: unauthenticated should deny access. -------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Rails::MetadataController#index as HTML Filter chain halted as :authenticate_maestrano! rendered or redirected Completed 401 Unauthorized in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ----------------------------------------------------------------- GroupsControllerTest: test_: authenticated should be successful. -----------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Account::GroupsController#destroy as HTML Parameters: {"id"=>"cld-1"} Rendered text template (0.0ms) Completed 200 OK in 9ms (Views: 8.7ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction ----------------------------------------------------------------- GroupsControllerTest: test_: unauthenticated should deny access. -----------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction Processing by Maestrano::Account::GroupsController#destroy as HTML Parameters: {"id"=>"cld-1"} Filter chain halted as :authenticate_maestrano! rendered or redirected Completed 401 Unauthorized in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------------------------------------------------- MaestranoGroupViaTest: test_: class methods find_or_create_for_maestrano class method should create a monster using the mapping block. ---------------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------------------------------------------------------------------ MaestranoGroupViaTest: test_: class methods find_or_create_for_maestrano class method should not return a MnoCrew from another provider if it exists. ------------------------------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------------------------------------------ MaestranoGroupViaTest: test_: class methods find_or_create_for_maestrano class method should return the MnoCrew if it exists. ------------------------------------------------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------------- MaestranoGroupViaTest: test_: class methods maestrano_*_via should have the right field definition. ----------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------------------------- MaestranoGroupViaTest: test_: instance methods maestrano? should return false if provider is something else. -------------------------------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ----------------------------------------------------------------------------------------------- MaestranoGroupViaTest: test_: instance methods maestrano? should return false if uid is blank. -----------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------------------------------------ MaestranoGroupViaTest: test_: instance methods maestrano? should return true if provider is maestrano and uid not null. ------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------------------------------- GenericControllerTest: test_: with a maestrano session should be successful if the maestrano session is still valid. ---------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by PagesController#home as HTML Rendered pages/home.html.erb within layouts/application (1.1ms) Completed 200 OK in 211ms (Views: 210.3ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction -------------------------------------------------------------------------------------------------------------------- GenericControllerTest: test_: with a maestrano session should initialize redirect to SSO initialization if invalid. --------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by PagesController#home as HTML Rendered pages/home.html.erb within layouts/application (0.0ms) Completed 200 OK in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ----------------------------------------------------------------------------------------------------------- GenericControllerTest: test_: with a maestrano session should not redirect to SSO init if sso is disabled. -----------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by PagesController#home as HTML Rendered pages/home.html.erb within layouts/application (0.0ms) Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------------------ GenericControllerTest: test_: with no maestrano session should be successful. ------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by PagesController#home as HTML Rendered pages/home.html.erb within layouts/application (0.0ms) Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction --------------------------------------------------------------------- GroupUsersControllerTest: test_: authenticated should be successful. ---------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Account::GroupUsersController#destroy as HTML Parameters: {"group_id"=>"cld-1", "id"=>"usr-1"} Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 2.0ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction --------------------------------------------------------------------- GroupUsersControllerTest: test_: unauthenticated should deny access. ---------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction Processing by Maestrano::Account::GroupUsersController#destroy as HTML Parameters: {"group_id"=>"cld-1", "id"=>"usr-1"} Filter chain halted as :authenticate_maestrano! rendered or redirected Completed 401 Unauthorized in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: class methods find_or_create_for_maestrano class method should create a monster using the mapping block. --------------------------------------------------------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: class methods find_or_create_for_maestrano class method should not return a MnoMonster from another provider if it exists. --------------------------------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: class methods find_or_create_for_maestrano class method should return the MnoMonster if it exists. --------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: class methods maestrano_*_via should have the right field definition. ---------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------------------------ MaestranoUserViaTest: test_: instance methods maestrano? should return false if provider is something else. ------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: instance methods maestrano? should return false if uid is blank. ----------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ----------------------------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: instance methods maestrano? should return true if provider is maestrano and uid not null. -----------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: namespaced model should create the right migration. -------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: namespaced model should edit the model content. ---------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should create the right migration. ---------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction ----------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should edit the model content. -----------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction --------------------------------------------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should include parameters if rails 3 and strong_parameter not present. ---------------------------------------------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should not include parameters if rails 3 and strong_parameter present. ---------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should not include parameters in rails 4. ----------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------------------------------- GenericControllerTest: test_: with a maestrano session should be successful if the maestrano session is still valid. ---------------------------------------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by PagesController#home as HTML Rendering pages/home.html.erb within layouts/application Rendered pages/home.html.erb within layouts/application (0.7ms) Completed 200 OK in 101ms (Views: 100.9ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction -------------------------------------------------------------------------------------------------------------------- GenericControllerTest: test_: with a maestrano session should initialize redirect to SSO initialization if invalid. --------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by PagesController#home as HTML Rendering pages/home.html.erb within layouts/application Rendered pages/home.html.erb within layouts/application (0.0ms) Completed 200 OK in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ----------------------------------------------------------------------------------------------------------- GenericControllerTest: test_: with a maestrano session should not redirect to SSO init if sso is disabled. -----------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by PagesController#home as HTML Rendering pages/home.html.erb within layouts/application Rendered pages/home.html.erb within layouts/application (0.0ms) Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------------------ GenericControllerTest: test_: with no maestrano session should be successful. ------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by PagesController#home as HTML Rendering pages/home.html.erb within layouts/application Rendered pages/home.html.erb within layouts/application (0.0ms) Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction --------------------------------------------------------------------- GroupUsersControllerTest: test_: authenticated should be successful. ---------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Account::GroupUsersController#destroy as HTML Parameters: {"group_id"=>"cld-1", "id"=>"usr-1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.1ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction --------------------------------------------------------------------- GroupUsersControllerTest: test_: unauthenticated should deny access. ---------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction Processing by Maestrano::Account::GroupUsersController#destroy as HTML Parameters: {"group_id"=>"cld-1", "id"=>"usr-1"} Filter chain halted as :authenticate_maestrano! rendered or redirected Completed 401 Unauthorized in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------- MetadataControllerTest: test_: authenticated should be successful. -------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Rails::MetadataController#index as HTML Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------- MetadataControllerTest: test_: unauthenticated should deny access. -------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Rails::MetadataController#index as HTML Filter chain halted as :authenticate_maestrano! rendered or redirected Completed 401 Unauthorized in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------------------------------------------------- MaestranoGroupViaTest: test_: class methods find_or_create_for_maestrano class method should create a monster using the mapping block. ---------------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------------------------------------------------------------------ MaestranoGroupViaTest: test_: class methods find_or_create_for_maestrano class method should not return a MnoCrew from another provider if it exists. ------------------------------------------------------------------------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------------------------------------------ MaestranoGroupViaTest: test_: class methods find_or_create_for_maestrano class method should return the MnoCrew if it exists. ------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------------- MaestranoGroupViaTest: test_: class methods maestrano_*_via should have the right field definition. ----------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------------------------- MaestranoGroupViaTest: test_: instance methods maestrano? should return false if provider is something else. -------------------------------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ----------------------------------------------------------------------------------------------- MaestranoGroupViaTest: test_: instance methods maestrano? should return false if uid is blank. -----------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction ------------------------------------------------------------------------------------------------------------------------ MaestranoGroupViaTest: test_: instance methods maestrano? should return true if provider is maestrano and uid not null. ------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------------------- GroupGeneratorTest: test_: GroupGenerator should call the active_record migration generator successfully. ----------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------------- GroupGeneratorTest: test_: GroupGenerator should call the mongoid migration generator successfully. ----------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------------- UserGeneratorTest: test_: UserGenerator should call the active_record migration generator successfully. --------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------- UserGeneratorTest: test_: UserGenerator should call the mongoid migration generator successfully. --------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: class methods find_or_create_for_maestrano class method should create a monster using the mapping block. --------------------------------------------------------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: class methods find_or_create_for_maestrano class method should not return a MnoMonster from another provider if it exists. --------------------------------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: class methods find_or_create_for_maestrano class method should return the MnoMonster if it exists. --------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: class methods maestrano_*_via should have the right field definition. ---------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------------------------ MaestranoUserViaTest: test_: instance methods maestrano? should return false if provider is something else. ------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: instance methods maestrano? should return false if uid is blank. ----------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ----------------------------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: instance methods maestrano? should return true if provider is maestrano and uid not null. -----------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------ ActiveRecordUserGeneratorTest: test_: namespaced model should create the right migration. ------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: namespaced model should edit the model content. --------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should create the right migration. --------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should edit the model content. ----------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should include parameters if rails 3 and strong_parameter not present. --------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should not include parameters if rails 3 and strong_parameter present. --------------------------------------------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction --------------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should not include parameters in rails 4. ---------------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase error should redirect to maestrano on any error. ----------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Cannot validate SAML response: Bla Trace: ["/home/bruno/.rvm/gems/ruby-2.3.1/gems/mocha-1.1.0/lib/mocha/exception_raiser.rb:12:in `evaluate'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/mocha-1.1.0/lib/mocha/return_values.rb:20:in `next'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/mocha-1.1.0/lib/mocha/expectation.rb:569:in `invoke'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/mocha-1.1.0/lib/mocha/mock.rb:296:in `method_missing'", "/home/bruno/Workspace/maestrano-rails/app/controllers/maestrano/rails/saml_base_controller.rb:35:in `process_saml_response'", "/home/bruno/Workspace/maestrano-rails/app/controllers/maestrano/rails/saml_base_controller.rb:18:in `saml_response_transaction'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-5.0.0.1/lib/active_support/callbacks.rb:382:in `block in make_lambda'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-5.0.0.1/lib/active_support/callbacks.rb:266:in `block in halting_and_conditional'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-5.0.0.1/lib/active_support/callbacks.rb:447:in `block in around'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-5.0.0.1/lib/active_support/callbacks.rb:455:in `call'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-5.0.0.1/lib/active_support/callbacks.rb:101:in `__run_callbacks__'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-5.0.0.1/lib/active_support/callbacks.rb:750:in `_run_process_action_callbacks'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-5.0.0.1/lib/active_support/callbacks.rb:90:in `run_callbacks'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionpack-5.0.0.1/lib/abstract_controller/callbacks.rb:19:in `process_action'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionpack-5.0.0.1/lib/action_controller/metal/rescue.rb:20:in `process_action'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionpack-5.0.0.1/lib/action_controller/metal/instrumentation.rb:32:in `block in process_action'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-5.0.0.1/lib/active_support/notifications.rb:164:in `block in instrument'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-5.0.0.1/lib/active_support/notifications/instrumenter.rb:21:in `instrument'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-5.0.0.1/lib/active_support/notifications.rb:164:in `instrument'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionpack-5.0.0.1/lib/action_controller/metal/instrumentation.rb:30:in `process_action'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionpack-5.0.0.1/lib/action_controller/metal/params_wrapper.rb:248:in `process_action'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activerecord-5.0.0.1/lib/active_record/railties/controller_runtime.rb:18:in `process_action'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionpack-5.0.0.1/lib/abstract_controller/base.rb:126:in `process'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionview-5.0.0.1/lib/action_view/rendering.rb:30:in `process'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionpack-5.0.0.1/lib/action_controller/metal.rb:190:in `dispatch'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionpack-5.0.0.1/lib/action_controller/test_case.rb:532:in `process'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionpack-5.0.0.1/lib/action_controller/test_case.rb:629:in `process_with_kwargs'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionpack-5.0.0.1/lib/action_controller/test_case.rb:389:in `post'", "/home/bruno/Workspace/maestrano-rails/test/controllers/saml_controller_test.rb:117:in `block (3 levels) in '", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/shoulda-context-1.2.1/lib/shoulda/context/context.rb:413:in `instance_exec'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/shoulda-context-1.2.1/lib/shoulda/context/context.rb:413:in `block in create_test_from_should_hash'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest/test.rb:107:in `block (3 levels) in run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest/test.rb:204:in `capture_exceptions'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest/test.rb:104:in `block (2 levels) in run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest/test.rb:255:in `time_it'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest/test.rb:103:in `block in run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:348:in `on_signal'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest/test.rb:275:in `with_info_handler'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest/test.rb:102:in `run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:799:in `run_one_method'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:322:in `run_one_method'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:310:in `block (2 levels) in run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:309:in `each'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:309:in `block in run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:348:in `on_signal'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:335:in `with_info_handler'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:308:in `run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/railties-5.0.0.1/lib/rails/test_unit/line_filtering.rb:11:in `run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:158:in `block in __run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:158:in `map'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:158:in `__run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:135:in `run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:62:in `block in autorun'"] Redirected to http://api-sandbox.maestrano.io/app_access_unauthorized?err=internal Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should reset the maestrano session successfully if one already exists. --------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction --------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should set a saml_request in scope. ---------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction -------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should set the group_auth_hash in scope. --------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should set the maestrano session. -------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should set the user_auth_hash in scope. -------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------ SamlBaseControllerTest: test_: consume phase should set the user_group_rel_hash in scope. ------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: init phase should create a saml request successfully if a maestrano session is already set. ---------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#init as HTML Parameters: {"a_param"=>"value"} Redirected to http://idpprovider.com?r=request Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ----------------------------------------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: init phase should create a saml request using params and session and redirect the user. -----------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#init as HTML Parameters: {"a_param"=>"value"} Redirected to http://idpprovider.com?r=request Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: namespaced model should create the right migration. -------------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction --------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: namespaced model should edit the model content. ---------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction --------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should create the right migration. ---------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ----------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should edit the model content. -----------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction --------------------------------------------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should include parameters if rails 3 and strong_parameter not present. ---------------------------------------------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction --------------------------------------------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should not include parameters if rails 3 and strong_parameter present. ---------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction ---------------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should not include parameters in rails 4. ----------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction ------------------------------ MaestranoRailsTest: test_truth ------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction --------------------------------------------------------------------------------------- InstallGeneratorTest: test_: InstallGenerator should create the maestrano initializer. ---------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------- InstallGeneratorTest: test_: InstallGenerator should create the maestrano routes. ----------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------------------- InstallGeneratorTest: test_: InstallGenerator should create the maestrano/account/group_users_controller. ----------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ----------------------------------------------------------------------------------------------------- InstallGeneratorTest: test_: InstallGenerator should create the maestrano/account/groups_controller. -----------------------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction ------------------------------------------------------------------------------------------------ InstallGeneratorTest: test_: InstallGenerator should create the maestrano/auth/saml_controller. ------------------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction ----------------------------------------------------------------- GroupsControllerTest: test_: authenticated should be successful. -----------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Account::GroupsController#destroy as HTML Parameters: {"id"=>"cld-1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ----------------------------------------------------------------- GroupsControllerTest: test_: unauthenticated should deny access. -----------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Account::GroupsController#destroy as HTML Parameters: {"id"=>"cld-1"} Filter chain halted as :authenticate_maestrano! rendered or redirected Completed 401 Unauthorized in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction  (15.1ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)  (15.1ms) CREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" Migrating to CreateMonsters (20140526125222)  (0.0ms) begin transaction  (0.2ms) CREATE TABLE "monsters" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime) SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140526125222"]]  (15.0ms) commit transaction Migrating to CreateAdminMonsters (20140526125242)  (0.1ms) begin transaction  (0.2ms) CREATE TABLE "admin_monsters" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime) SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140526125242"]]  (14.9ms) commit transaction Migrating to CreateMnoMonsters (20140526144828)  (0.0ms) begin transaction  (0.2ms) CREATE TABLE "mno_monsters" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "first_name" varchar, "last_name" varchar, "email" varchar, "provider" varchar, "uid" varchar, "tenant" varchar, "created_at" datetime, "updated_at" datetime) SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140526144828"]]  (13.3ms) commit transaction Migrating to CreateMnoCrews (20140526151139)  (0.1ms) begin transaction  (0.2ms) CREATE TABLE "mno_crews" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "provider" varchar, "uid" varchar, "tenant" varchar, "created_at" datetime, "updated_at" datetime) SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140526151139"]]  (5.9ms) commit transaction ActiveRecord::InternalMetadata Load (0.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", :environment], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "environment"], ["value", "test"], ["created_at", 2016-08-31 01:14:51 UTC], ["updated_at", 2016-08-31 01:14:51 UTC]]  (4.0ms) commit transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" -------------------------------------------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: class methods find_or_create_for_maestrano class method should create a monster using the mapping block. --------------------------------------------------------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction 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 ? [["provider", "maestrano"], ["uid", "usr-2"], ["tenant", "default"], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 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-08-31 01:15:00 UTC], ["updated_at", 2016-08-31 01:15:00 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: class methods find_or_create_for_maestrano class method should not return a MnoMonster from another provider if it exists. --------------------------------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 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-08-31 01:15:00 UTC], ["updated_at", 2016-08-31 01:15:00 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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 ? [["provider", "maestrano"], ["uid", "usr-1"], ["tenant", "default"], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 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-08-31 01:15:00 UTC], ["updated_at", 2016-08-31 01:15:00 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: class methods find_or_create_for_maestrano class method should return the MnoMonster if it exists. --------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 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-08-31 01:15:00 UTC], ["updated_at", 2016-08-31 01:15:00 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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 ? [["provider", "maestrano"], ["uid", "usr-1"], ["tenant", "default"], ["LIMIT", 1]]  (0.1ms) rollback transaction --------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: class methods maestrano_*_via should have the right field definition. ---------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------------------------ MaestranoUserViaTest: test_: instance methods maestrano? should return false if provider is something else. ------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: instance methods maestrano? should return false if uid is blank. ----------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ----------------------------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: instance methods maestrano? should return true if provider is maestrano and uid not null. -----------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------- InstallGeneratorTest: test_: InstallGenerator should create the maestrano initializer. ---------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction ---------------------------------------------------------------------------------- InstallGeneratorTest: test_: InstallGenerator should create the maestrano routes. ----------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------------------- InstallGeneratorTest: test_: InstallGenerator should create the maestrano/account/group_users_controller. ----------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ----------------------------------------------------------------------------------------------------- InstallGeneratorTest: test_: InstallGenerator should create the maestrano/account/groups_controller. -----------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------------ InstallGeneratorTest: test_: InstallGenerator should create the maestrano/auth/saml_controller. ------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ----------------------------------------------------------------- GroupsControllerTest: test_: authenticated should be successful. -----------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Account::GroupsController#destroy as HTML Parameters: {"id"=>"cld-1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction ----------------------------------------------------------------- GroupsControllerTest: test_: unauthenticated should deny access. -----------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Account::GroupsController#destroy as HTML Parameters: {"id"=>"cld-1"} Filter chain halted as :authenticate_maestrano! rendered or redirected Completed 401 Unauthorized in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------------------- GroupGeneratorTest: test_: GroupGenerator should call the active_record migration generator successfully. ----------------------------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction ---------------------------------------------------------------------------------------------------- GroupGeneratorTest: test_: GroupGenerator should call the mongoid migration generator successfully. ----------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------------------------------------------------- MaestranoGroupViaTest: test_: class methods find_or_create_for_maestrano class method should create a monster using the mapping block. ---------------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction 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 ? [["provider", "maestrano"], ["uid", "usr-2"], ["tenant", "default"], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 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-08-31 01:15:01 UTC], ["updated_at", 2016-08-31 01:15:01 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction ------------------------------------------------------------------------------------------------------------------------------------------------------ MaestranoGroupViaTest: test_: class methods find_or_create_for_maestrano class method should not return a MnoCrew from another provider if it exists. ------------------------------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 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-08-31 01:15:01 UTC], ["updated_at", 2016-08-31 01:15:01 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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 ? [["provider", "maestrano"], ["uid", "cld-1"], ["tenant", "default"], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 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-08-31 01:15:01 UTC], ["updated_at", 2016-08-31 01:15:01 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction ------------------------------------------------------------------------------------------------------------------------------ MaestranoGroupViaTest: test_: class methods find_or_create_for_maestrano class method should return the MnoCrew if it exists. ------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 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-08-31 01:15:01 UTC], ["updated_at", 2016-08-31 01:15:01 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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 ? [["provider", "maestrano"], ["uid", "cld-1"], ["tenant", "default"], ["LIMIT", 1]]  (0.1ms) rollback transaction ---------------------------------------------------------------------------------------------------- MaestranoGroupViaTest: test_: class methods maestrano_*_via should have the right field definition. ----------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------------------------- MaestranoGroupViaTest: test_: instance methods maestrano? should return false if provider is something else. -------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ----------------------------------------------------------------------------------------------- MaestranoGroupViaTest: test_: instance methods maestrano? should return false if uid is blank. -----------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------------------------------------ MaestranoGroupViaTest: test_: instance methods maestrano? should return true if provider is maestrano and uid not null. ------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------------- UserGeneratorTest: test_: UserGenerator should call the active_record migration generator successfully. --------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------- UserGeneratorTest: test_: UserGenerator should call the mongoid migration generator successfully. --------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------------------------------- GenericControllerTest: test_: with a maestrano session should be successful if the maestrano session is still valid. ---------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by PagesController#home as HTML Rendering pages/home.html.erb within layouts/application Rendered pages/home.html.erb within layouts/application (0.8ms) Completed 200 OK in 95ms (Views: 94.6ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction -------------------------------------------------------------------------------------------------------------------- GenericControllerTest: test_: with a maestrano session should initialize redirect to SSO initialization if invalid. --------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by PagesController#home as HTML Redirected to http://localhost:3000/maestrano/auth/saml/init/default Filter chain halted as :verify_maestrano_session rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ----------------------------------------------------------------------------------------------------------- GenericControllerTest: test_: with a maestrano session should not redirect to SSO init if sso is disabled. -----------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by PagesController#home as HTML Rendering pages/home.html.erb within layouts/application Rendered pages/home.html.erb within layouts/application (0.0ms) Completed 200 OK in 1ms (Views: 0.9ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------------------ GenericControllerTest: test_: with no maestrano session should be successful. ------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by PagesController#home as HTML Rendering pages/home.html.erb within layouts/application Rendered pages/home.html.erb within layouts/application (0.0ms) Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------- MetadataControllerTest: test_: authenticated should be successful. -------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Rails::MetadataController#index as HTML Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------- MetadataControllerTest: test_: unauthenticated should deny access. -------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Rails::MetadataController#index as HTML Filter chain halted as :authenticate_maestrano! rendered or redirected Completed 401 Unauthorized in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: namespaced model should create the right migration. -------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: namespaced model should edit the model content. ---------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should create the right migration. ---------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ----------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should edit the model content. -----------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should include parameters if rails 3 and strong_parameter not present. ---------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should not include parameters if rails 3 and strong_parameter present. ---------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction ---------------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should not include parameters in rails 4. ----------------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase error should redirect to maestrano on any error. ----------------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Cannot validate SAML response: Bla Trace: ["/home/bruno/.rvm/gems/ruby-2.3.1/gems/mocha-1.1.0/lib/mocha/exception_raiser.rb:12:in `evaluate'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/mocha-1.1.0/lib/mocha/return_values.rb:20:in `next'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/mocha-1.1.0/lib/mocha/expectation.rb:569:in `invoke'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/mocha-1.1.0/lib/mocha/mock.rb:296:in `method_missing'", "/home/bruno/Workspace/maestrano-rails/app/controllers/maestrano/rails/saml_base_controller.rb:35:in `process_saml_response'", "/home/bruno/Workspace/maestrano-rails/app/controllers/maestrano/rails/saml_base_controller.rb:18:in `saml_response_transaction'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-5.0.0.1/lib/active_support/callbacks.rb:382:in `block in make_lambda'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-5.0.0.1/lib/active_support/callbacks.rb:266:in `block in halting_and_conditional'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-5.0.0.1/lib/active_support/callbacks.rb:447:in `block in around'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-5.0.0.1/lib/active_support/callbacks.rb:455:in `call'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-5.0.0.1/lib/active_support/callbacks.rb:101:in `__run_callbacks__'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-5.0.0.1/lib/active_support/callbacks.rb:750:in `_run_process_action_callbacks'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-5.0.0.1/lib/active_support/callbacks.rb:90:in `run_callbacks'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionpack-5.0.0.1/lib/abstract_controller/callbacks.rb:19:in `process_action'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionpack-5.0.0.1/lib/action_controller/metal/rescue.rb:20:in `process_action'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionpack-5.0.0.1/lib/action_controller/metal/instrumentation.rb:32:in `block in process_action'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-5.0.0.1/lib/active_support/notifications.rb:164:in `block in instrument'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-5.0.0.1/lib/active_support/notifications/instrumenter.rb:21:in `instrument'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-5.0.0.1/lib/active_support/notifications.rb:164:in `instrument'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionpack-5.0.0.1/lib/action_controller/metal/instrumentation.rb:30:in `process_action'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionpack-5.0.0.1/lib/action_controller/metal/params_wrapper.rb:248:in `process_action'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activerecord-5.0.0.1/lib/active_record/railties/controller_runtime.rb:18:in `process_action'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionpack-5.0.0.1/lib/abstract_controller/base.rb:126:in `process'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionview-5.0.0.1/lib/action_view/rendering.rb:30:in `process'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionpack-5.0.0.1/lib/action_controller/metal.rb:190:in `dispatch'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionpack-5.0.0.1/lib/action_controller/test_case.rb:532:in `process'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionpack-5.0.0.1/lib/action_controller/test_case.rb:629:in `process_with_kwargs'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionpack-5.0.0.1/lib/action_controller/test_case.rb:389:in `post'", "/home/bruno/Workspace/maestrano-rails/test/controllers/saml_controller_test.rb:117:in `block (3 levels) in '", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/shoulda-context-1.2.1/lib/shoulda/context/context.rb:413:in `instance_exec'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/shoulda-context-1.2.1/lib/shoulda/context/context.rb:413:in `block in create_test_from_should_hash'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest/test.rb:107:in `block (3 levels) in run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest/test.rb:204:in `capture_exceptions'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest/test.rb:104:in `block (2 levels) in run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest/test.rb:255:in `time_it'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest/test.rb:103:in `block in run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:348:in `on_signal'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest/test.rb:275:in `with_info_handler'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest/test.rb:102:in `run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:799:in `run_one_method'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:322:in `run_one_method'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:310:in `block (2 levels) in run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:309:in `each'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:309:in `block in run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:348:in `on_signal'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:335:in `with_info_handler'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:308:in `run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/railties-5.0.0.1/lib/rails/test_unit/line_filtering.rb:11:in `run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:158:in `block in __run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:158:in `map'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:158:in `__run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:135:in `run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:62:in `block in autorun'"] Redirected to http://api-sandbox.maestrano.io/app_access_unauthorized?err=internal Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.1ms) rollback transaction -------------------------------------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should reset the maestrano session successfully if one already exists. --------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.1ms) rollback transaction --------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should set a saml_request in scope. ---------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.1ms) rollback transaction -------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should set the group_auth_hash in scope. --------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should set the maestrano session. -------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.1ms) rollback transaction ------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should set the user_auth_hash in scope. -------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------ SamlBaseControllerTest: test_: consume phase should set the user_group_rel_hash in scope. ------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: init phase should create a saml request successfully if a maestrano session is already set. ---------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#init as HTML Parameters: {"a_param"=>"value"} Redirected to http://idpprovider.com?r=request Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ----------------------------------------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: init phase should create a saml request using params and session and redirect the user. -----------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction Processing by Maestrano::Auth::SamlController#init as HTML Parameters: {"a_param"=>"value"} Redirected to http://idpprovider.com?r=request Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction --------------------------------------------------------------------- GroupUsersControllerTest: test_: authenticated should be successful. ---------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Account::GroupUsersController#destroy as HTML Parameters: {"group_id"=>"cld-1", "id"=>"usr-1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction --------------------------------------------------------------------- GroupUsersControllerTest: test_: unauthenticated should deny access. ---------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Account::GroupUsersController#destroy as HTML Parameters: {"group_id"=>"cld-1", "id"=>"usr-1"} Filter chain halted as :authenticate_maestrano! rendered or redirected Completed 401 Unauthorized in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------ MaestranoRailsTest: test_truth ------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------ ActiveRecordUserGeneratorTest: test_: namespaced model should create the right migration. ------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction -------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: namespaced model should edit the model content. --------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction -------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should create the right migration. --------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction ---------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should edit the model content. ----------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should include parameters if rails 3 and strong_parameter not present. --------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should not include parameters if rails 3 and strong_parameter present. --------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should not include parameters in rails 4. ---------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations" ------------------------------ MaestranoRailsTest: test_truth ------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------------- UserGeneratorTest: test_: UserGenerator should call the active_record migration generator successfully. --------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------- UserGeneratorTest: test_: UserGenerator should call the mongoid migration generator successfully. --------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ----------------------------------------------------------------- GroupsControllerTest: test_: authenticated should be successful. -----------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Account::GroupsController#destroy as HTML Parameters: {"id"=>"cld-1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 5ms (Views: 4.0ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction ----------------------------------------------------------------- GroupsControllerTest: test_: unauthenticated should deny access. -----------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Account::GroupsController#destroy as HTML Parameters: {"id"=>"cld-1"} Filter chain halted as :authenticate_maestrano! rendered or redirected Completed 401 Unauthorized in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase error should redirect to maestrano on any error. ----------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Cannot validate SAML response: Bla Trace: ["/home/bruno/.rvm/gems/ruby-2.3.1/gems/mocha-1.1.0/lib/mocha/exception_raiser.rb:12:in `evaluate'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/mocha-1.1.0/lib/mocha/return_values.rb:20:in `next'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/mocha-1.1.0/lib/mocha/expectation.rb:569:in `invoke'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/mocha-1.1.0/lib/mocha/mock.rb:296:in `method_missing'", "/home/bruno/Workspace/maestrano-rails/app/controllers/maestrano/rails/saml_base_controller.rb:35:in `process_saml_response'", "/home/bruno/Workspace/maestrano-rails/app/controllers/maestrano/rails/saml_base_controller.rb:18:in `saml_response_transaction'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-5.0.0.1/lib/active_support/callbacks.rb:382:in `block in make_lambda'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-5.0.0.1/lib/active_support/callbacks.rb:266:in `block in halting_and_conditional'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-5.0.0.1/lib/active_support/callbacks.rb:447:in `block in around'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-5.0.0.1/lib/active_support/callbacks.rb:455:in `call'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-5.0.0.1/lib/active_support/callbacks.rb:101:in `__run_callbacks__'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-5.0.0.1/lib/active_support/callbacks.rb:750:in `_run_process_action_callbacks'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-5.0.0.1/lib/active_support/callbacks.rb:90:in `run_callbacks'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionpack-5.0.0.1/lib/abstract_controller/callbacks.rb:19:in `process_action'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionpack-5.0.0.1/lib/action_controller/metal/rescue.rb:20:in `process_action'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionpack-5.0.0.1/lib/action_controller/metal/instrumentation.rb:32:in `block in process_action'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-5.0.0.1/lib/active_support/notifications.rb:164:in `block in instrument'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-5.0.0.1/lib/active_support/notifications/instrumenter.rb:21:in `instrument'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-5.0.0.1/lib/active_support/notifications.rb:164:in `instrument'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionpack-5.0.0.1/lib/action_controller/metal/instrumentation.rb:30:in `process_action'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionpack-5.0.0.1/lib/action_controller/metal/params_wrapper.rb:248:in `process_action'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activerecord-5.0.0.1/lib/active_record/railties/controller_runtime.rb:18:in `process_action'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionpack-5.0.0.1/lib/abstract_controller/base.rb:126:in `process'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionview-5.0.0.1/lib/action_view/rendering.rb:30:in `process'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionpack-5.0.0.1/lib/action_controller/metal.rb:190:in `dispatch'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionpack-5.0.0.1/lib/action_controller/test_case.rb:532:in `process'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionpack-5.0.0.1/lib/action_controller/test_case.rb:629:in `process_with_kwargs'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionpack-5.0.0.1/lib/action_controller/test_case.rb:389:in `post'", "/home/bruno/Workspace/maestrano-rails/test/controllers/saml_controller_test.rb:117:in `block (3 levels) in '", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/shoulda-context-1.2.1/lib/shoulda/context/context.rb:413:in `instance_exec'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/shoulda-context-1.2.1/lib/shoulda/context/context.rb:413:in `block in create_test_from_should_hash'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest/test.rb:107:in `block (3 levels) in run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest/test.rb:204:in `capture_exceptions'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest/test.rb:104:in `block (2 levels) in run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest/test.rb:255:in `time_it'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest/test.rb:103:in `block in run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:348:in `on_signal'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest/test.rb:275:in `with_info_handler'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest/test.rb:102:in `run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:799:in `run_one_method'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:322:in `run_one_method'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:310:in `block (2 levels) in run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:309:in `each'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:309:in `block in run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:348:in `on_signal'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:335:in `with_info_handler'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:308:in `run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/railties-5.0.0.1/lib/rails/test_unit/line_filtering.rb:11:in `run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:158:in `block in __run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:158:in `map'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:158:in `__run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:135:in `run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:62:in `block in autorun'"] Redirected to http://api-sandbox.maestrano.io/app_access_unauthorized?err=internal Completed 302 Found in 2ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should reset the maestrano session successfully if one already exists. --------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction --------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should set a saml_request in scope. ---------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction -------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should set the group_auth_hash in scope. --------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should set the maestrano session. -------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should set the user_auth_hash in scope. -------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------ SamlBaseControllerTest: test_: consume phase should set the user_group_rel_hash in scope. ------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: init phase should create a saml request successfully if a maestrano session is already set. ---------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#init as HTML Parameters: {"a_param"=>"value"} Redirected to http://idpprovider.com?r=request Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ----------------------------------------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: init phase should create a saml request using params and session and redirect the user. -----------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction Processing by Maestrano::Auth::SamlController#init as HTML Parameters: {"a_param"=>"value"} Redirected to http://idpprovider.com?r=request Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction --------------------------------------------------------------------- GroupUsersControllerTest: test_: authenticated should be successful. ---------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Account::GroupUsersController#destroy as HTML Parameters: {"group_id"=>"cld-1", "id"=>"usr-1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.9ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction --------------------------------------------------------------------- GroupUsersControllerTest: test_: unauthenticated should deny access. ---------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Account::GroupUsersController#destroy as HTML Parameters: {"group_id"=>"cld-1", "id"=>"usr-1"} Filter chain halted as :authenticate_maestrano! rendered or redirected Completed 401 Unauthorized in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------ ActiveRecordUserGeneratorTest: test_: namespaced model should create the right migration. ------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: namespaced model should edit the model content. --------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should create the right migration. --------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should edit the model content. ----------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should include parameters if rails 3 and strong_parameter not present. --------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should not include parameters if rails 3 and strong_parameter present. --------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should not include parameters in rails 4. ---------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------------------------------------------------- MaestranoGroupViaTest: test_: class methods find_or_create_for_maestrano class method should create a monster using the mapping block. ---------------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction MnoCrew Load (0.2ms) SELECT "mno_crews".* FROM "mno_crews" WHERE "mno_crews"."provider" = ? AND "mno_crews"."uid" = ? AND "mno_crews"."tenant" = ? ORDER BY "mno_crews"."id" ASC LIMIT ? [["provider", "maestrano"], ["uid", "usr-2"], ["tenant", "default"], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 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-08-31 01:17:35 UTC], ["updated_at", 2016-08-31 01:17:35 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction ------------------------------------------------------------------------------------------------------------------------------------------------------ MaestranoGroupViaTest: test_: class methods find_or_create_for_maestrano class method should not return a MnoCrew from another provider if it exists. ------------------------------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 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-08-31 01:17:35 UTC], ["updated_at", 2016-08-31 01:17:35 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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 ? [["provider", "maestrano"], ["uid", "cld-1"], ["tenant", "default"], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 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-08-31 01:17:35 UTC], ["updated_at", 2016-08-31 01:17:35 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction ------------------------------------------------------------------------------------------------------------------------------ MaestranoGroupViaTest: test_: class methods find_or_create_for_maestrano class method should return the MnoCrew if it exists. ------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 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-08-31 01:17:35 UTC], ["updated_at", 2016-08-31 01:17:35 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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 ? [["provider", "maestrano"], ["uid", "cld-1"], ["tenant", "default"], ["LIMIT", 1]]  (0.1ms) rollback transaction ---------------------------------------------------------------------------------------------------- MaestranoGroupViaTest: test_: class methods maestrano_*_via should have the right field definition. ----------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------------------------- MaestranoGroupViaTest: test_: instance methods maestrano? should return false if provider is something else. -------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ----------------------------------------------------------------------------------------------- MaestranoGroupViaTest: test_: instance methods maestrano? should return false if uid is blank. -----------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------------------------------------ MaestranoGroupViaTest: test_: instance methods maestrano? should return true if provider is maestrano and uid not null. ------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------------------------------- GenericControllerTest: test_: with a maestrano session should be successful if the maestrano session is still valid. ---------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by PagesController#home as HTML Rendering pages/home.html.erb within layouts/application Rendered pages/home.html.erb within layouts/application (0.8ms) Completed 200 OK in 102ms (Views: 101.1ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction -------------------------------------------------------------------------------------------------------------------- GenericControllerTest: test_: with a maestrano session should initialize redirect to SSO initialization if invalid. --------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by PagesController#home as HTML Rendering pages/home.html.erb within layouts/application Rendered pages/home.html.erb within layouts/application (0.0ms) Completed 200 OK in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ----------------------------------------------------------------------------------------------------------- GenericControllerTest: test_: with a maestrano session should not redirect to SSO init if sso is disabled. -----------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by PagesController#home as HTML Rendering pages/home.html.erb within layouts/application Rendered pages/home.html.erb within layouts/application (0.0ms) Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------------------ GenericControllerTest: test_: with no maestrano session should be successful. ------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by PagesController#home as HTML Rendering pages/home.html.erb within layouts/application Rendered pages/home.html.erb within layouts/application (0.0ms) Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------- MetadataControllerTest: test_: authenticated should be successful. -------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Rails::MetadataController#index as HTML Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------- MetadataControllerTest: test_: unauthenticated should deny access. -------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Rails::MetadataController#index as HTML Filter chain halted as :authenticate_maestrano! rendered or redirected Completed 401 Unauthorized in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction --------------------------------------------------------------------------------------- InstallGeneratorTest: test_: InstallGenerator should create the maestrano initializer. ---------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------- InstallGeneratorTest: test_: InstallGenerator should create the maestrano routes. ----------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------------------- InstallGeneratorTest: test_: InstallGenerator should create the maestrano/account/group_users_controller. ----------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ----------------------------------------------------------------------------------------------------- InstallGeneratorTest: test_: InstallGenerator should create the maestrano/account/groups_controller. -----------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction ------------------------------------------------------------------------------------------------ InstallGeneratorTest: test_: InstallGenerator should create the maestrano/auth/saml_controller. ------------------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction ---------------------------------------------------------------------------------------------------------- GroupGeneratorTest: test_: GroupGenerator should call the active_record migration generator successfully. ----------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------------- GroupGeneratorTest: test_: GroupGenerator should call the mongoid migration generator successfully. ----------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: class methods find_or_create_for_maestrano class method should create a monster using the mapping block. --------------------------------------------------------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction 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 ? [["provider", "maestrano"], ["uid", "usr-2"], ["tenant", "default"], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 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-08-31 01:17:35 UTC], ["updated_at", 2016-08-31 01:17:35 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: class methods find_or_create_for_maestrano class method should not return a MnoMonster from another provider if it exists. --------------------------------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "mno_monsters" ("first_name", "last_name", "email", "provider", "uid", "tenant", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["first_name", "John"], ["last_name", "Jack"], ["email", "monster@co.com"], ["provider", "someoneelse"], ["uid", "usr-1"], ["tenant", "default"], ["created_at", 2016-08-31 01:17:35 UTC], ["updated_at", 2016-08-31 01:17:35 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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 ? [["provider", "maestrano"], ["uid", "usr-1"], ["tenant", "default"], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 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-08-31 01:17:35 UTC], ["updated_at", 2016-08-31 01:17:35 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: class methods find_or_create_for_maestrano class method should return the MnoMonster if it exists. --------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 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-08-31 01:17:35 UTC], ["updated_at", 2016-08-31 01:17:35 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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 ? [["provider", "maestrano"], ["uid", "usr-1"], ["tenant", "default"], ["LIMIT", 1]]  (0.1ms) rollback transaction --------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: class methods maestrano_*_via should have the right field definition. ---------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------------------------ MaestranoUserViaTest: test_: instance methods maestrano? should return false if provider is something else. ------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: instance methods maestrano? should return false if uid is blank. ----------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ----------------------------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: instance methods maestrano? should return true if provider is maestrano and uid not null. -----------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: namespaced model should create the right migration. -------------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction --------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: namespaced model should edit the model content. ---------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should create the right migration. ---------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ----------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should edit the model content. -----------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should include parameters if rails 3 and strong_parameter not present. ---------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction --------------------------------------------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should not include parameters if rails 3 and strong_parameter present. ---------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should not include parameters in rails 4. ----------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ------------------------------ MaestranoRailsTest: test_truth ------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------- GroupUsersControllerTest: test_: authenticated should be successful. ---------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Account::GroupUsersController#destroy as HTML Parameters: {"group_id"=>"cld-1", "id"=>"usr-1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 4ms (Views: 3.6ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction --------------------------------------------------------------------- GroupUsersControllerTest: test_: unauthenticated should deny access. ---------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Account::GroupUsersController#destroy as HTML Parameters: {"group_id"=>"cld-1", "id"=>"usr-1"} Filter chain halted as :authenticate_maestrano! rendered or redirected Completed 401 Unauthorized in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------------- UserGeneratorTest: test_: UserGenerator should call the active_record migration generator successfully. --------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction -------------------------------------------------------------------------------------------------- UserGeneratorTest: test_: UserGenerator should call the mongoid migration generator successfully. --------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction --------------------------------------------------------------------------------------------------------------------------------------- MaestranoGroupViaTest: test_: class methods find_or_create_for_maestrano class method should create a monster using the mapping block. ---------------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction 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 ? [["provider", "maestrano"], ["uid", "usr-2"], ["tenant", "default"], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 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-08-31 01:18:42 UTC], ["updated_at", 2016-08-31 01:18:42 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction ------------------------------------------------------------------------------------------------------------------------------------------------------ MaestranoGroupViaTest: test_: class methods find_or_create_for_maestrano class method should not return a MnoCrew from another provider if it exists. ------------------------------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 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-08-31 01:18:42 UTC], ["updated_at", 2016-08-31 01:18:42 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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 ? [["provider", "maestrano"], ["uid", "cld-1"], ["tenant", "default"], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 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-08-31 01:18:42 UTC], ["updated_at", 2016-08-31 01:18:42 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction ------------------------------------------------------------------------------------------------------------------------------ MaestranoGroupViaTest: test_: class methods find_or_create_for_maestrano class method should return the MnoCrew if it exists. ------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 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-08-31 01:18:42 UTC], ["updated_at", 2016-08-31 01:18:42 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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 ? [["provider", "maestrano"], ["uid", "cld-1"], ["tenant", "default"], ["LIMIT", 1]]  (0.1ms) rollback transaction ---------------------------------------------------------------------------------------------------- MaestranoGroupViaTest: test_: class methods maestrano_*_via should have the right field definition. ----------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------------------------- MaestranoGroupViaTest: test_: instance methods maestrano? should return false if provider is something else. -------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction ----------------------------------------------------------------------------------------------- MaestranoGroupViaTest: test_: instance methods maestrano? should return false if uid is blank. -----------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------------------------------------ MaestranoGroupViaTest: test_: instance methods maestrano? should return true if provider is maestrano and uid not null. ------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------------------------------- GenericControllerTest: test_: with a maestrano session should be successful if the maestrano session is still valid. ---------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by PagesController#home as HTML Rendering pages/home.html.erb within layouts/application Rendered pages/home.html.erb within layouts/application (0.8ms) Completed 200 OK in 101ms (Views: 100.2ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction -------------------------------------------------------------------------------------------------------------------- GenericControllerTest: test_: with a maestrano session should initialize redirect to SSO initialization if invalid. --------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by PagesController#home as HTML Rendering pages/home.html.erb within layouts/application Rendered pages/home.html.erb within layouts/application (0.0ms) Completed 200 OK in 1ms (Views: 1.0ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction ----------------------------------------------------------------------------------------------------------- GenericControllerTest: test_: with a maestrano session should not redirect to SSO init if sso is disabled. -----------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by PagesController#home as HTML Rendering pages/home.html.erb within layouts/application Rendered pages/home.html.erb within layouts/application (0.0ms) Completed 200 OK in 1ms (Views: 0.9ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction ------------------------------------------------------------------------------ GenericControllerTest: test_: with no maestrano session should be successful. ------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by PagesController#home as HTML Rendering pages/home.html.erb within layouts/application Rendered pages/home.html.erb within layouts/application (0.0ms) Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------------------- GroupGeneratorTest: test_: GroupGenerator should call the active_record migration generator successfully. ----------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction ---------------------------------------------------------------------------------------------------- GroupGeneratorTest: test_: GroupGenerator should call the mongoid migration generator successfully. ----------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction ------------------------------------------------------------------- MetadataControllerTest: test_: authenticated should be successful. -------------------------------------------------------------------  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction Processing by Maestrano::Rails::MetadataController#index as HTML Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction ------------------------------------------------------------------- MetadataControllerTest: test_: unauthenticated should deny access. -------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Rails::MetadataController#index as HTML Filter chain halted as :authenticate_maestrano! rendered or redirected Completed 401 Unauthorized in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction ------------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: namespaced model should create the right migration. -------------------------------------------------------------------------------------------  (0.2ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: namespaced model should edit the model content. ---------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should create the right migration. ---------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction ----------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should edit the model content. -----------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should include parameters if rails 3 and strong_parameter not present. ---------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should not include parameters if rails 3 and strong_parameter present. ---------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction ---------------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should not include parameters in rails 4. ----------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: class methods find_or_create_for_maestrano class method should create a monster using the mapping block. --------------------------------------------------------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction 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 ? [["provider", "maestrano"], ["uid", "usr-2"], ["tenant", "default"], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 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-08-31 01:18:43 UTC], ["updated_at", 2016-08-31 01:18:43 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: class methods find_or_create_for_maestrano class method should not return a MnoMonster from another provider if it exists. --------------------------------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 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-08-31 01:18:43 UTC], ["updated_at", 2016-08-31 01:18:43 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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 ? [["provider", "maestrano"], ["uid", "usr-1"], ["tenant", "default"], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 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-08-31 01:18:43 UTC], ["updated_at", 2016-08-31 01:18:43 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: class methods find_or_create_for_maestrano class method should return the MnoMonster if it exists. --------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "mno_monsters" ("first_name", "last_name", "email", "provider", "uid", "tenant", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["first_name", "John"], ["last_name", "Jack"], ["email", "monster@co.com"], ["provider", "maestrano"], ["uid", "usr-1"], ["tenant", "default"], ["created_at", 2016-08-31 01:18:43 UTC], ["updated_at", 2016-08-31 01:18:43 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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 ? [["provider", "maestrano"], ["uid", "usr-1"], ["tenant", "default"], ["LIMIT", 1]]  (0.1ms) rollback transaction --------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: class methods maestrano_*_via should have the right field definition. ---------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------------------------ MaestranoUserViaTest: test_: instance methods maestrano? should return false if provider is something else. ------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: instance methods maestrano? should return false if uid is blank. ----------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ----------------------------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: instance methods maestrano? should return true if provider is maestrano and uid not null. -----------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ----------------------------------------------------------------- GroupsControllerTest: test_: authenticated should be successful. -----------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction Processing by Maestrano::Account::GroupsController#destroy as HTML Parameters: {"id"=>"cld-1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ----------------------------------------------------------------- GroupsControllerTest: test_: unauthenticated should deny access. -----------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Account::GroupsController#destroy as HTML Parameters: {"id"=>"cld-1"} Filter chain halted as :authenticate_maestrano! rendered or redirected Completed 401 Unauthorized in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase error should redirect to maestrano on any error. ----------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Cannot validate SAML response: Bla Trace: ["/home/bruno/.rvm/gems/ruby-2.3.1/gems/mocha-1.1.0/lib/mocha/exception_raiser.rb:12:in `evaluate'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/mocha-1.1.0/lib/mocha/return_values.rb:20:in `next'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/mocha-1.1.0/lib/mocha/expectation.rb:569:in `invoke'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/mocha-1.1.0/lib/mocha/mock.rb:296:in `method_missing'", "/home/bruno/Workspace/maestrano-rails/app/controllers/maestrano/rails/saml_base_controller.rb:35:in `process_saml_response'", "/home/bruno/Workspace/maestrano-rails/app/controllers/maestrano/rails/saml_base_controller.rb:18:in `saml_response_transaction'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-5.0.0.1/lib/active_support/callbacks.rb:382:in `block in make_lambda'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-5.0.0.1/lib/active_support/callbacks.rb:266:in `block in halting_and_conditional'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-5.0.0.1/lib/active_support/callbacks.rb:447:in `block in around'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-5.0.0.1/lib/active_support/callbacks.rb:455:in `call'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-5.0.0.1/lib/active_support/callbacks.rb:101:in `__run_callbacks__'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-5.0.0.1/lib/active_support/callbacks.rb:750:in `_run_process_action_callbacks'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-5.0.0.1/lib/active_support/callbacks.rb:90:in `run_callbacks'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionpack-5.0.0.1/lib/abstract_controller/callbacks.rb:19:in `process_action'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionpack-5.0.0.1/lib/action_controller/metal/rescue.rb:20:in `process_action'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionpack-5.0.0.1/lib/action_controller/metal/instrumentation.rb:32:in `block in process_action'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-5.0.0.1/lib/active_support/notifications.rb:164:in `block in instrument'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-5.0.0.1/lib/active_support/notifications/instrumenter.rb:21:in `instrument'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-5.0.0.1/lib/active_support/notifications.rb:164:in `instrument'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionpack-5.0.0.1/lib/action_controller/metal/instrumentation.rb:30:in `process_action'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionpack-5.0.0.1/lib/action_controller/metal/params_wrapper.rb:248:in `process_action'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activerecord-5.0.0.1/lib/active_record/railties/controller_runtime.rb:18:in `process_action'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionpack-5.0.0.1/lib/abstract_controller/base.rb:126:in `process'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionview-5.0.0.1/lib/action_view/rendering.rb:30:in `process'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionpack-5.0.0.1/lib/action_controller/metal.rb:190:in `dispatch'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionpack-5.0.0.1/lib/action_controller/test_case.rb:532:in `process'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionpack-5.0.0.1/lib/action_controller/test_case.rb:629:in `process_with_kwargs'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionpack-5.0.0.1/lib/action_controller/test_case.rb:389:in `post'", "/home/bruno/Workspace/maestrano-rails/test/controllers/saml_controller_test.rb:117:in `block (3 levels) in '", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/shoulda-context-1.2.1/lib/shoulda/context/context.rb:413:in `instance_exec'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/shoulda-context-1.2.1/lib/shoulda/context/context.rb:413:in `block in create_test_from_should_hash'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest/test.rb:107:in `block (3 levels) in run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest/test.rb:204:in `capture_exceptions'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest/test.rb:104:in `block (2 levels) in run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest/test.rb:255:in `time_it'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest/test.rb:103:in `block in run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:348:in `on_signal'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest/test.rb:275:in `with_info_handler'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest/test.rb:102:in `run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:799:in `run_one_method'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:322:in `run_one_method'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:310:in `block (2 levels) in run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:309:in `each'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:309:in `block in run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:348:in `on_signal'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:335:in `with_info_handler'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:308:in `run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/railties-5.0.0.1/lib/rails/test_unit/line_filtering.rb:11:in `run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:158:in `block in __run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:158:in `map'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:158:in `__run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:135:in `run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:62:in `block in autorun'"] Redirected to http://api-sandbox.maestrano.io/app_access_unauthorized?err=internal Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.1ms) rollback transaction -------------------------------------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should reset the maestrano session successfully if one already exists. --------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.1ms) rollback transaction --------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should set a saml_request in scope. ---------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.1ms) rollback transaction -------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should set the group_auth_hash in scope. --------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should set the maestrano session. -------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.1ms) rollback transaction ------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should set the user_auth_hash in scope. -------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.1ms) rollback transaction ------------------------------------------------------------------------------------------ SamlBaseControllerTest: test_: consume phase should set the user_group_rel_hash in scope. ------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.1ms) rollback transaction --------------------------------------------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: init phase should create a saml request successfully if a maestrano session is already set. ---------------------------------------------------------------------------------------------------------------------------  (0.2ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#init as HTML Parameters: {"a_param"=>"value"} Redirected to http://idpprovider.com?r=request Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ----------------------------------------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: init phase should create a saml request using params and session and redirect the user. -----------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#init as HTML Parameters: {"a_param"=>"value"} Redirected to http://idpprovider.com?r=request Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------ ActiveRecordUserGeneratorTest: test_: namespaced model should create the right migration. ------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction -------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: namespaced model should edit the model content. --------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.2ms) rollback transaction -------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should create the right migration. --------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction ---------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should edit the model content. ----------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should include parameters if rails 3 and strong_parameter not present. --------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should not include parameters if rails 3 and strong_parameter present. --------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should not include parameters in rails 4. ---------------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction --------------------------------------------------------------------------------------- InstallGeneratorTest: test_: InstallGenerator should create the maestrano initializer. ---------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------- InstallGeneratorTest: test_: InstallGenerator should create the maestrano routes. ----------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction ---------------------------------------------------------------------------------------------------------- InstallGeneratorTest: test_: InstallGenerator should create the maestrano/account/group_users_controller. ----------------------------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction ----------------------------------------------------------------------------------------------------- InstallGeneratorTest: test_: InstallGenerator should create the maestrano/account/groups_controller. -----------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------------ InstallGeneratorTest: test_: InstallGenerator should create the maestrano/auth/saml_controller. ------------------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" --------------------------------------------------------------------- GroupUsersControllerTest: test_: authenticated should be successful. ---------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Account::GroupUsersController#destroy as HTML Parameters: {"group_id"=>"cld-1", "id"=>"usr-1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 4ms (Views: 3.5ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction --------------------------------------------------------------------- GroupUsersControllerTest: test_: unauthenticated should deny access. ---------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Account::GroupUsersController#destroy as HTML Parameters: {"group_id"=>"cld-1", "id"=>"usr-1"} Filter chain halted as :authenticate_maestrano! rendered or redirected Completed 401 Unauthorized in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction ---------------------------------------------------------------------------------------------------------- GroupGeneratorTest: test_: GroupGenerator should call the active_record migration generator successfully. ----------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------------- GroupGeneratorTest: test_: GroupGenerator should call the mongoid migration generator successfully. ----------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction ---------------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase error should redirect to maestrano on any error. ----------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Cannot validate SAML response: Bla Trace: ["/home/bruno/.rvm/gems/ruby-2.3.1/gems/mocha-1.1.0/lib/mocha/exception_raiser.rb:12:in `evaluate'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/mocha-1.1.0/lib/mocha/return_values.rb:20:in `next'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/mocha-1.1.0/lib/mocha/expectation.rb:569:in `invoke'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/mocha-1.1.0/lib/mocha/mock.rb:296:in `method_missing'", "/home/bruno/Workspace/maestrano-rails/app/controllers/maestrano/rails/saml_base_controller.rb:35:in `process_saml_response'", "/home/bruno/Workspace/maestrano-rails/app/controllers/maestrano/rails/saml_base_controller.rb:18:in `saml_response_transaction'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-5.0.0.1/lib/active_support/callbacks.rb:382:in `block in make_lambda'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-5.0.0.1/lib/active_support/callbacks.rb:266:in `block in halting_and_conditional'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-5.0.0.1/lib/active_support/callbacks.rb:447:in `block in around'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-5.0.0.1/lib/active_support/callbacks.rb:455:in `call'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-5.0.0.1/lib/active_support/callbacks.rb:101:in `__run_callbacks__'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-5.0.0.1/lib/active_support/callbacks.rb:750:in `_run_process_action_callbacks'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-5.0.0.1/lib/active_support/callbacks.rb:90:in `run_callbacks'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionpack-5.0.0.1/lib/abstract_controller/callbacks.rb:19:in `process_action'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionpack-5.0.0.1/lib/action_controller/metal/rescue.rb:20:in `process_action'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionpack-5.0.0.1/lib/action_controller/metal/instrumentation.rb:32:in `block in process_action'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-5.0.0.1/lib/active_support/notifications.rb:164:in `block in instrument'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-5.0.0.1/lib/active_support/notifications/instrumenter.rb:21:in `instrument'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-5.0.0.1/lib/active_support/notifications.rb:164:in `instrument'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionpack-5.0.0.1/lib/action_controller/metal/instrumentation.rb:30:in `process_action'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionpack-5.0.0.1/lib/action_controller/metal/params_wrapper.rb:248:in `process_action'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activerecord-5.0.0.1/lib/active_record/railties/controller_runtime.rb:18:in `process_action'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionpack-5.0.0.1/lib/abstract_controller/base.rb:126:in `process'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionview-5.0.0.1/lib/action_view/rendering.rb:30:in `process'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionpack-5.0.0.1/lib/action_controller/metal.rb:190:in `dispatch'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionpack-5.0.0.1/lib/action_controller/test_case.rb:532:in `process'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionpack-5.0.0.1/lib/action_controller/test_case.rb:629:in `process_with_kwargs'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionpack-5.0.0.1/lib/action_controller/test_case.rb:389:in `post'", "/home/bruno/Workspace/maestrano-rails/test/controllers/saml_controller_test.rb:117:in `block (3 levels) in '", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/shoulda-context-1.2.1/lib/shoulda/context/context.rb:413:in `instance_exec'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/shoulda-context-1.2.1/lib/shoulda/context/context.rb:413:in `block in create_test_from_should_hash'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest/test.rb:107:in `block (3 levels) in run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest/test.rb:204:in `capture_exceptions'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest/test.rb:104:in `block (2 levels) in run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest/test.rb:255:in `time_it'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest/test.rb:103:in `block in run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:348:in `on_signal'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest/test.rb:275:in `with_info_handler'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest/test.rb:102:in `run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:799:in `run_one_method'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:322:in `run_one_method'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:310:in `block (2 levels) in run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:309:in `each'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:309:in `block in run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:348:in `on_signal'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:335:in `with_info_handler'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:308:in `run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/railties-5.0.0.1/lib/rails/test_unit/line_filtering.rb:11:in `run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:158:in `block in __run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:158:in `map'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:158:in `__run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:135:in `run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:62:in `block in autorun'"] Redirected to http://api-sandbox.maestrano.io/app_access_unauthorized?err=internal Completed 302 Found in 3ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should reset the maestrano session successfully if one already exists. --------------------------------------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction --------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should set a saml_request in scope. ---------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction -------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should set the group_auth_hash in scope. --------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.1ms) rollback transaction ------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should set the maestrano session. -------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should set the user_auth_hash in scope. -------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.1ms) rollback transaction ------------------------------------------------------------------------------------------ SamlBaseControllerTest: test_: consume phase should set the user_group_rel_hash in scope. ------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: init phase should create a saml request successfully if a maestrano session is already set. ---------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#init as HTML Parameters: {"a_param"=>"value"} Redirected to http://idpprovider.com?r=request Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ----------------------------------------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: init phase should create a saml request using params and session and redirect the user. -----------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#init as HTML Parameters: {"a_param"=>"value"} Redirected to http://idpprovider.com?r=request Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------------------------------- GenericControllerTest: test_: with a maestrano session should be successful if the maestrano session is still valid. ---------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by PagesController#home as HTML Rendering pages/home.html.erb within layouts/application Rendered pages/home.html.erb within layouts/application (0.8ms) Completed 200 OK in 101ms (Views: 100.6ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction -------------------------------------------------------------------------------------------------------------------- GenericControllerTest: test_: with a maestrano session should initialize redirect to SSO initialization if invalid. --------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by PagesController#home as HTML Rendering pages/home.html.erb within layouts/application Rendered pages/home.html.erb within layouts/application (0.0ms) Completed 200 OK in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ----------------------------------------------------------------------------------------------------------- GenericControllerTest: test_: with a maestrano session should not redirect to SSO init if sso is disabled. -----------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by PagesController#home as HTML Rendering pages/home.html.erb within layouts/application Rendered pages/home.html.erb within layouts/application (0.0ms) Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------------------ GenericControllerTest: test_: with no maestrano session should be successful. ------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by PagesController#home as HTML Rendering pages/home.html.erb within layouts/application Rendered pages/home.html.erb within layouts/application (0.0ms) Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction --------------------------------------------------------------------------------------- InstallGeneratorTest: test_: InstallGenerator should create the maestrano initializer. ---------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction ---------------------------------------------------------------------------------- InstallGeneratorTest: test_: InstallGenerator should create the maestrano routes. ----------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction ---------------------------------------------------------------------------------------------------------- InstallGeneratorTest: test_: InstallGenerator should create the maestrano/account/group_users_controller. ----------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction ----------------------------------------------------------------------------------------------------- InstallGeneratorTest: test_: InstallGenerator should create the maestrano/account/groups_controller. -----------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------------ InstallGeneratorTest: test_: InstallGenerator should create the maestrano/auth/saml_controller. ------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------------------------------------------------- MaestranoGroupViaTest: test_: class methods find_or_create_for_maestrano class method should create a monster using the mapping block. ---------------------------------------------------------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction 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 ? [["provider", "maestrano"], ["uid", "usr-2"], ["tenant", "default"], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 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-08-31 01:21:23 UTC], ["updated_at", 2016-08-31 01:21:23 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction ------------------------------------------------------------------------------------------------------------------------------------------------------ MaestranoGroupViaTest: test_: class methods find_or_create_for_maestrano class method should not return a MnoCrew from another provider if it exists. ------------------------------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 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-08-31 01:21:23 UTC], ["updated_at", 2016-08-31 01:21:23 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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 ? [["provider", "maestrano"], ["uid", "cld-1"], ["tenant", "default"], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 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-08-31 01:21:23 UTC], ["updated_at", 2016-08-31 01:21:23 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction ------------------------------------------------------------------------------------------------------------------------------ MaestranoGroupViaTest: test_: class methods find_or_create_for_maestrano class method should return the MnoCrew if it exists. ------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 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-08-31 01:21:23 UTC], ["updated_at", 2016-08-31 01:21:23 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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 ? [["provider", "maestrano"], ["uid", "cld-1"], ["tenant", "default"], ["LIMIT", 1]]  (0.1ms) rollback transaction ---------------------------------------------------------------------------------------------------- MaestranoGroupViaTest: test_: class methods maestrano_*_via should have the right field definition. ----------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------------------------- MaestranoGroupViaTest: test_: instance methods maestrano? should return false if provider is something else. -------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ----------------------------------------------------------------------------------------------- MaestranoGroupViaTest: test_: instance methods maestrano? should return false if uid is blank. -----------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------------------------------------ MaestranoGroupViaTest: test_: instance methods maestrano? should return true if provider is maestrano and uid not null. ------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------------- UserGeneratorTest: test_: UserGenerator should call the active_record migration generator successfully. --------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------- UserGeneratorTest: test_: UserGenerator should call the mongoid migration generator successfully. --------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction ------------------------------------------------------------------- MetadataControllerTest: test_: authenticated should be successful. -------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Rails::MetadataController#index as HTML Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------- MetadataControllerTest: test_: unauthenticated should deny access. -------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Rails::MetadataController#index as HTML Filter chain halted as :authenticate_maestrano! rendered or redirected Completed 401 Unauthorized in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------ MaestranoRailsTest: test_truth ------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: class methods find_or_create_for_maestrano class method should create a monster using the mapping block. --------------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction 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 ? [["provider", "maestrano"], ["uid", "usr-2"], ["tenant", "default"], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "mno_monsters" ("first_name", "last_name", "email", "provider", "uid", "tenant", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["first_name", "Mon"], ["last_name", "Ster"], ["email", "monster@monst.com"], ["provider", "maestrano"], ["uid", "usr-2"], ["tenant", "default"], ["created_at", 2016-08-31 01:21:23 UTC], ["updated_at", 2016-08-31 01:21:23 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: class methods find_or_create_for_maestrano class method should not return a MnoMonster from another provider if it exists. --------------------------------------------------------------------------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 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-08-31 01:21:23 UTC], ["updated_at", 2016-08-31 01:21:23 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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 ? [["provider", "maestrano"], ["uid", "usr-1"], ["tenant", "default"], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 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-08-31 01:21:23 UTC], ["updated_at", 2016-08-31 01:21:23 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: class methods find_or_create_for_maestrano class method should return the MnoMonster if it exists. --------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 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-08-31 01:21:23 UTC], ["updated_at", 2016-08-31 01:21:23 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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 ? [["provider", "maestrano"], ["uid", "usr-1"], ["tenant", "default"], ["LIMIT", 1]]  (0.1ms) rollback transaction --------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: class methods maestrano_*_via should have the right field definition. ---------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------------------------ MaestranoUserViaTest: test_: instance methods maestrano? should return false if provider is something else. ------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: instance methods maestrano? should return false if uid is blank. ----------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ----------------------------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: instance methods maestrano? should return true if provider is maestrano and uid not null. -----------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: namespaced model should create the right migration. -------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: namespaced model should edit the model content. ---------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should create the right migration. ---------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction ----------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should edit the model content. -----------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction --------------------------------------------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should include parameters if rails 3 and strong_parameter not present. ---------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should not include parameters if rails 3 and strong_parameter present. ---------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should not include parameters in rails 4. ----------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction ----------------------------------------------------------------- GroupsControllerTest: test_: authenticated should be successful. -----------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Account::GroupsController#destroy as HTML Parameters: {"id"=>"cld-1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ----------------------------------------------------------------- GroupsControllerTest: test_: unauthenticated should deny access. -----------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Account::GroupsController#destroy as HTML Parameters: {"id"=>"cld-1"} Filter chain halted as :authenticate_maestrano! rendered or redirected Completed 401 Unauthorized in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------ ActiveRecordUserGeneratorTest: test_: namespaced model should create the right migration. ------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: namespaced model should edit the model content. --------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should create the right migration. --------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction ---------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should edit the model content. ----------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should include parameters if rails 3 and strong_parameter not present. --------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should not include parameters if rails 3 and strong_parameter present. --------------------------------------------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction --------------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should not include parameters in rails 4. ---------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ---------------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase error should redirect to maestrano on any error. ----------------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Cannot validate SAML response: Bla Trace: ["/home/bruno/.rvm/gems/ruby-2.3.1/gems/mocha-1.1.0/lib/mocha/exception_raiser.rb:12:in `evaluate'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/mocha-1.1.0/lib/mocha/return_values.rb:20:in `next'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/mocha-1.1.0/lib/mocha/expectation.rb:569:in `invoke'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/mocha-1.1.0/lib/mocha/mock.rb:296:in `method_missing'", "/home/bruno/Workspace/maestrano-rails/app/controllers/maestrano/rails/saml_base_controller.rb:35:in `process_saml_response'", "/home/bruno/Workspace/maestrano-rails/app/controllers/maestrano/rails/saml_base_controller.rb:18:in `saml_response_transaction'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-5.0.0.1/lib/active_support/callbacks.rb:382:in `block in make_lambda'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-5.0.0.1/lib/active_support/callbacks.rb:266:in `block in halting_and_conditional'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-5.0.0.1/lib/active_support/callbacks.rb:447:in `block in around'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-5.0.0.1/lib/active_support/callbacks.rb:455:in `call'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-5.0.0.1/lib/active_support/callbacks.rb:101:in `__run_callbacks__'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-5.0.0.1/lib/active_support/callbacks.rb:750:in `_run_process_action_callbacks'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-5.0.0.1/lib/active_support/callbacks.rb:90:in `run_callbacks'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionpack-5.0.0.1/lib/abstract_controller/callbacks.rb:19:in `process_action'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionpack-5.0.0.1/lib/action_controller/metal/rescue.rb:20:in `process_action'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionpack-5.0.0.1/lib/action_controller/metal/instrumentation.rb:32:in `block in process_action'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-5.0.0.1/lib/active_support/notifications.rb:164:in `block in instrument'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-5.0.0.1/lib/active_support/notifications/instrumenter.rb:21:in `instrument'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-5.0.0.1/lib/active_support/notifications.rb:164:in `instrument'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionpack-5.0.0.1/lib/action_controller/metal/instrumentation.rb:30:in `process_action'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionpack-5.0.0.1/lib/action_controller/metal/params_wrapper.rb:248:in `process_action'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activerecord-5.0.0.1/lib/active_record/railties/controller_runtime.rb:18:in `process_action'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionpack-5.0.0.1/lib/abstract_controller/base.rb:126:in `process'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionview-5.0.0.1/lib/action_view/rendering.rb:30:in `process'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionpack-5.0.0.1/lib/action_controller/metal.rb:190:in `dispatch'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionpack-5.0.0.1/lib/action_controller/test_case.rb:532:in `process'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionpack-5.0.0.1/lib/action_controller/test_case.rb:629:in `process_with_kwargs'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionpack-5.0.0.1/lib/action_controller/test_case.rb:389:in `post'", "/home/bruno/Workspace/maestrano-rails/test/controllers/saml_controller_test.rb:117:in `block (3 levels) in '", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/shoulda-context-1.2.1/lib/shoulda/context/context.rb:413:in `instance_exec'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/shoulda-context-1.2.1/lib/shoulda/context/context.rb:413:in `block in create_test_from_should_hash'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest/test.rb:107:in `block (3 levels) in run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest/test.rb:204:in `capture_exceptions'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest/test.rb:104:in `block (2 levels) in run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest/test.rb:255:in `time_it'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest/test.rb:103:in `block in run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:348:in `on_signal'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest/test.rb:275:in `with_info_handler'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest/test.rb:102:in `run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:799:in `run_one_method'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:322:in `run_one_method'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:310:in `block (2 levels) in run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:309:in `each'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:309:in `block in run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:348:in `on_signal'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:335:in `with_info_handler'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:308:in `run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/railties-5.0.0.1/lib/rails/test_unit/line_filtering.rb:11:in `run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:158:in `block in __run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:158:in `map'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:158:in `__run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:135:in `run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:62:in `block in autorun'"] Redirected to http://api-sandbox.maestrano.io/app_access_unauthorized?err=internal Completed 302 Found in 4ms (ActiveRecord: 0.0ms)  (0.1ms) rollback transaction -------------------------------------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should reset the maestrano session successfully if one already exists. --------------------------------------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction --------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should set a saml_request in scope. ---------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction -------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should set the group_auth_hash in scope. --------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should set the maestrano session. -------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should set the user_auth_hash in scope. -------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------ SamlBaseControllerTest: test_: consume phase should set the user_group_rel_hash in scope. ------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: init phase should create a saml request successfully if a maestrano session is already set. ---------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#init as HTML Parameters: {"a_param"=>"value"} Redirected to http://idpprovider.com?r=request Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ----------------------------------------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: init phase should create a saml request using params and session and redirect the user. -----------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#init as HTML Parameters: {"a_param"=>"value"} Redirected to http://idpprovider.com?r=request Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------------- UserGeneratorTest: test_: UserGenerator should call the active_record migration generator successfully. --------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------- UserGeneratorTest: test_: UserGenerator should call the mongoid migration generator successfully. --------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction ---------------------------------------------------------------------------------------------------------- GroupGeneratorTest: test_: GroupGenerator should call the active_record migration generator successfully. ----------------------------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------------- GroupGeneratorTest: test_: GroupGenerator should call the mongoid migration generator successfully. ----------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction --------------------------------------------------------------------------------------------------------------------------------------- MaestranoGroupViaTest: test_: class methods find_or_create_for_maestrano class method should create a monster using the mapping block. ---------------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction 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 ? [["provider", "maestrano"], ["uid", "usr-2"], ["tenant", "default"], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 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-08-31 01:36:39 UTC], ["updated_at", 2016-08-31 01:36:39 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction ------------------------------------------------------------------------------------------------------------------------------------------------------ MaestranoGroupViaTest: test_: class methods find_or_create_for_maestrano class method should not return a MnoCrew from another provider if it exists. ------------------------------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 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-08-31 01:36:39 UTC], ["updated_at", 2016-08-31 01:36:39 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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 ? [["provider", "maestrano"], ["uid", "cld-1"], ["tenant", "default"], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 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-08-31 01:36:39 UTC], ["updated_at", 2016-08-31 01:36:39 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction ------------------------------------------------------------------------------------------------------------------------------ MaestranoGroupViaTest: test_: class methods find_or_create_for_maestrano class method should return the MnoCrew if it exists. ------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 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-08-31 01:36:39 UTC], ["updated_at", 2016-08-31 01:36:39 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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 ? [["provider", "maestrano"], ["uid", "cld-1"], ["tenant", "default"], ["LIMIT", 1]]  (0.1ms) rollback transaction ---------------------------------------------------------------------------------------------------- MaestranoGroupViaTest: test_: class methods maestrano_*_via should have the right field definition. ----------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------------------------- MaestranoGroupViaTest: test_: instance methods maestrano? should return false if provider is something else. -------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ----------------------------------------------------------------------------------------------- MaestranoGroupViaTest: test_: instance methods maestrano? should return false if uid is blank. -----------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------------------------------------ MaestranoGroupViaTest: test_: instance methods maestrano? should return true if provider is maestrano and uid not null. ------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: class methods find_or_create_for_maestrano class method should create a monster using the mapping block. --------------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction 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 ? [["provider", "maestrano"], ["uid", "usr-2"], ["tenant", "default"], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "mno_monsters" ("first_name", "last_name", "email", "provider", "uid", "tenant", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["first_name", "Mon"], ["last_name", "Ster"], ["email", "monster@monst.com"], ["provider", "maestrano"], ["uid", "usr-2"], ["tenant", "default"], ["created_at", 2016-08-31 01:36:39 UTC], ["updated_at", 2016-08-31 01:36:39 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: class methods find_or_create_for_maestrano class method should not return a MnoMonster from another provider if it exists. --------------------------------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 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-08-31 01:36:39 UTC], ["updated_at", 2016-08-31 01:36:39 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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 ? [["provider", "maestrano"], ["uid", "usr-1"], ["tenant", "default"], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 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-08-31 01:36:39 UTC], ["updated_at", 2016-08-31 01:36:39 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: class methods find_or_create_for_maestrano class method should return the MnoMonster if it exists. --------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 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-08-31 01:36:39 UTC], ["updated_at", 2016-08-31 01:36:39 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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 ? [["provider", "maestrano"], ["uid", "usr-1"], ["tenant", "default"], ["LIMIT", 1]]  (0.1ms) rollback transaction --------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: class methods maestrano_*_via should have the right field definition. ---------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------------------------ MaestranoUserViaTest: test_: instance methods maestrano? should return false if provider is something else. ------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: instance methods maestrano? should return false if uid is blank. ----------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ----------------------------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: instance methods maestrano? should return true if provider is maestrano and uid not null. -----------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------- MetadataControllerTest: test_: authenticated should be successful. -------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Rails::MetadataController#index as HTML Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction ------------------------------------------------------------------- MetadataControllerTest: test_: unauthenticated should deny access. -------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Rails::MetadataController#index as HTML Filter chain halted as :authenticate_maestrano! rendered or redirected Completed 401 Unauthorized in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------ MaestranoRailsTest: test_truth ------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------- InstallGeneratorTest: test_: InstallGenerator should create the maestrano initializer. ---------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------- InstallGeneratorTest: test_: InstallGenerator should create the maestrano routes. ----------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------------------- InstallGeneratorTest: test_: InstallGenerator should create the maestrano/account/group_users_controller. ----------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction ----------------------------------------------------------------------------------------------------- InstallGeneratorTest: test_: InstallGenerator should create the maestrano/account/groups_controller. -----------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------------ InstallGeneratorTest: test_: InstallGenerator should create the maestrano/auth/saml_controller. ------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction --------------------------------------------------------------------------------------------------------------------- GenericControllerTest: test_: with a maestrano session should be successful if the maestrano session is still valid. ---------------------------------------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction Processing by PagesController#home as HTML Rendering pages/home.html.erb within layouts/application Rendered pages/home.html.erb within layouts/application (0.7ms) Completed 200 OK in 94ms (Views: 93.5ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction -------------------------------------------------------------------------------------------------------------------- GenericControllerTest: test_: with a maestrano session should initialize redirect to SSO initialization if invalid. --------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by PagesController#home as HTML Redirected to http://localhost:3000/maestrano/auth/saml/init/default Filter chain halted as :verify_maestrano_session rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ----------------------------------------------------------------------------------------------------------- GenericControllerTest: test_: with a maestrano session should not redirect to SSO init if sso is disabled. -----------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by PagesController#home as HTML Rendering pages/home.html.erb within layouts/application Rendered pages/home.html.erb within layouts/application (0.0ms) Completed 200 OK in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------------------ GenericControllerTest: test_: with no maestrano session should be successful. ------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by PagesController#home as HTML Rendering pages/home.html.erb within layouts/application Rendered pages/home.html.erb within layouts/application (0.0ms) Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: namespaced model should create the right migration. -------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: namespaced model should edit the model content. ---------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction --------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should create the right migration. ---------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ----------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should edit the model content. -----------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should include parameters if rails 3 and strong_parameter not present. ---------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction --------------------------------------------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should not include parameters if rails 3 and strong_parameter present. ---------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should not include parameters in rails 4. ----------------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction --------------------------------------------------------------------- GroupUsersControllerTest: test_: authenticated should be successful. ---------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction Processing by Maestrano::Account::GroupUsersController#destroy as HTML Parameters: {"group_id"=>"cld-1", "id"=>"usr-1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.1ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction --------------------------------------------------------------------- GroupUsersControllerTest: test_: unauthenticated should deny access. ---------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Account::GroupUsersController#destroy as HTML Parameters: {"group_id"=>"cld-1", "id"=>"usr-1"} Filter chain halted as :authenticate_maestrano! rendered or redirected Completed 401 Unauthorized in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------ ActiveRecordUserGeneratorTest: test_: namespaced model should create the right migration. ------------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction -------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: namespaced model should edit the model content. --------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction -------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should create the right migration. --------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should edit the model content. ----------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should include parameters if rails 3 and strong_parameter not present. --------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should not include parameters if rails 3 and strong_parameter present. --------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should not include parameters in rails 4. ---------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ----------------------------------------------------------------- GroupsControllerTest: test_: authenticated should be successful. -----------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Account::GroupsController#destroy as HTML Parameters: {"id"=>"cld-1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction ----------------------------------------------------------------- GroupsControllerTest: test_: unauthenticated should deny access. -----------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Account::GroupsController#destroy as HTML Parameters: {"id"=>"cld-1"} Filter chain halted as :authenticate_maestrano! rendered or redirected Completed 401 Unauthorized in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ------------------------------------------------------------------- MetadataControllerTest: test_: authenticated should be successful. -------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Rails::MetadataController#index as HTML Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction ------------------------------------------------------------------- MetadataControllerTest: test_: unauthenticated should deny access. -------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Rails::MetadataController#index as HTML Filter chain halted as :authenticate_maestrano! rendered or redirected Completed 401 Unauthorized in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: class methods find_or_create_for_maestrano class method should create a monster using the mapping block. --------------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction 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 ? [["provider", "maestrano"], ["uid", "usr-2"], ["tenant", "default"], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 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-08-31 01:42:45 UTC], ["updated_at", 2016-08-31 01:42:45 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: class methods find_or_create_for_maestrano class method should not return a MnoMonster from another provider if it exists. --------------------------------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 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-08-31 01:42:45 UTC], ["updated_at", 2016-08-31 01:42:45 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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 ? [["provider", "maestrano"], ["uid", "usr-1"], ["tenant", "default"], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 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-08-31 01:42:45 UTC], ["updated_at", 2016-08-31 01:42:45 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: class methods find_or_create_for_maestrano class method should return the MnoMonster if it exists. --------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 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-08-31 01:42:45 UTC], ["updated_at", 2016-08-31 01:42:45 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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 ? [["provider", "maestrano"], ["uid", "usr-1"], ["tenant", "default"], ["LIMIT", 1]]  (0.1ms) rollback transaction --------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: class methods maestrano_*_via should have the right field definition. ---------------------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------------------------ MaestranoUserViaTest: test_: instance methods maestrano? should return false if provider is something else. ------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: instance methods maestrano? should return false if uid is blank. ----------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ----------------------------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: instance methods maestrano? should return true if provider is maestrano and uid not null. -----------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------ ActiveRecordUserGeneratorTest: test_: namespaced model should create the right migration. ------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: namespaced model should edit the model content. --------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should create the right migration. --------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should edit the model content. ----------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should include parameters if rails 3 and strong_parameter not present. --------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should not include parameters if rails 3 and strong_parameter present. --------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction --------------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should not include parameters in rails 4. ---------------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ----------------------------------------------------------------- GroupsControllerTest: test_: authenticated should be successful. -----------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Account::GroupsController#destroy as HTML Parameters: {"id"=>"cld-1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ----------------------------------------------------------------- GroupsControllerTest: test_: unauthenticated should deny access. -----------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Account::GroupsController#destroy as HTML Parameters: {"id"=>"cld-1"} Filter chain halted as :authenticate_maestrano! rendered or redirected Completed 401 Unauthorized in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction --------------------------------------------------------------------- GroupUsersControllerTest: test_: authenticated should be successful. ---------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Account::GroupUsersController#destroy as HTML Parameters: {"group_id"=>"cld-1", "id"=>"usr-1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction --------------------------------------------------------------------- GroupUsersControllerTest: test_: unauthenticated should deny access. ---------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Account::GroupUsersController#destroy as HTML Parameters: {"group_id"=>"cld-1", "id"=>"usr-1"} Filter chain halted as :authenticate_maestrano! rendered or redirected Completed 401 Unauthorized in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------ MaestranoRailsTest: test_truth ------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------------------------------------------------- MaestranoGroupViaTest: test_: class methods find_or_create_for_maestrano class method should create a monster using the mapping block. ---------------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction 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 ? [["provider", "maestrano"], ["uid", "usr-2"], ["tenant", "default"], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 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-08-31 01:42:45 UTC], ["updated_at", 2016-08-31 01:42:45 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction ------------------------------------------------------------------------------------------------------------------------------------------------------ MaestranoGroupViaTest: test_: class methods find_or_create_for_maestrano class method should not return a MnoCrew from another provider if it exists. ------------------------------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 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-08-31 01:42:45 UTC], ["updated_at", 2016-08-31 01:42:45 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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 ? [["provider", "maestrano"], ["uid", "cld-1"], ["tenant", "default"], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 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-08-31 01:42:45 UTC], ["updated_at", 2016-08-31 01:42:45 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction ------------------------------------------------------------------------------------------------------------------------------ MaestranoGroupViaTest: test_: class methods find_or_create_for_maestrano class method should return the MnoCrew if it exists. ------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "mno_crews" ("name", "provider", "uid", "tenant", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["name", "SomeCrew"], ["provider", "maestrano"], ["uid", "cld-1"], ["tenant", "default"], ["created_at", 2016-08-31 01:42:45 UTC], ["updated_at", 2016-08-31 01:42:45 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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 ? [["provider", "maestrano"], ["uid", "cld-1"], ["tenant", "default"], ["LIMIT", 1]]  (0.1ms) rollback transaction ---------------------------------------------------------------------------------------------------- MaestranoGroupViaTest: test_: class methods maestrano_*_via should have the right field definition. ----------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------------------------- MaestranoGroupViaTest: test_: instance methods maestrano? should return false if provider is something else. -------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ----------------------------------------------------------------------------------------------- MaestranoGroupViaTest: test_: instance methods maestrano? should return false if uid is blank. -----------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------------------------------------ MaestranoGroupViaTest: test_: instance methods maestrano? should return true if provider is maestrano and uid not null. ------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction -------------------------------------------------------------------------------------------------------- UserGeneratorTest: test_: UserGenerator should call the active_record migration generator successfully. --------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------- UserGeneratorTest: test_: UserGenerator should call the mongoid migration generator successfully. --------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction --------------------------------------------------------------------------------------- InstallGeneratorTest: test_: InstallGenerator should create the maestrano initializer. ---------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction ---------------------------------------------------------------------------------- InstallGeneratorTest: test_: InstallGenerator should create the maestrano routes. ----------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------------------- InstallGeneratorTest: test_: InstallGenerator should create the maestrano/account/group_users_controller. ----------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ----------------------------------------------------------------------------------------------------- InstallGeneratorTest: test_: InstallGenerator should create the maestrano/account/groups_controller. -----------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction ------------------------------------------------------------------------------------------------ InstallGeneratorTest: test_: InstallGenerator should create the maestrano/auth/saml_controller. ------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: namespaced model should create the right migration. -------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction --------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: namespaced model should edit the model content. ---------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction --------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should create the right migration. ---------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ----------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should edit the model content. -----------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should include parameters if rails 3 and strong_parameter not present. ---------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should not include parameters if rails 3 and strong_parameter present. ---------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should not include parameters in rails 4. ----------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase error should redirect to maestrano on any error. ----------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Cannot validate SAML response: Bla Trace: ["/home/bruno/.rvm/gems/ruby-2.3.1/gems/mocha-1.1.0/lib/mocha/exception_raiser.rb:12:in `evaluate'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/mocha-1.1.0/lib/mocha/return_values.rb:20:in `next'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/mocha-1.1.0/lib/mocha/expectation.rb:569:in `invoke'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/mocha-1.1.0/lib/mocha/mock.rb:296:in `method_missing'", "/home/bruno/Workspace/maestrano-rails/app/controllers/maestrano/rails/saml_base_controller.rb:35:in `process_saml_response'", "/home/bruno/Workspace/maestrano-rails/app/controllers/maestrano/rails/saml_base_controller.rb:18:in `saml_response_transaction'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-5.0.0.1/lib/active_support/callbacks.rb:382:in `block in make_lambda'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-5.0.0.1/lib/active_support/callbacks.rb:266:in `block in halting_and_conditional'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-5.0.0.1/lib/active_support/callbacks.rb:447:in `block in around'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-5.0.0.1/lib/active_support/callbacks.rb:455:in `call'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-5.0.0.1/lib/active_support/callbacks.rb:101:in `__run_callbacks__'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-5.0.0.1/lib/active_support/callbacks.rb:750:in `_run_process_action_callbacks'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-5.0.0.1/lib/active_support/callbacks.rb:90:in `run_callbacks'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionpack-5.0.0.1/lib/abstract_controller/callbacks.rb:19:in `process_action'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionpack-5.0.0.1/lib/action_controller/metal/rescue.rb:20:in `process_action'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionpack-5.0.0.1/lib/action_controller/metal/instrumentation.rb:32:in `block in process_action'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-5.0.0.1/lib/active_support/notifications.rb:164:in `block in instrument'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-5.0.0.1/lib/active_support/notifications/instrumenter.rb:21:in `instrument'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-5.0.0.1/lib/active_support/notifications.rb:164:in `instrument'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionpack-5.0.0.1/lib/action_controller/metal/instrumentation.rb:30:in `process_action'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionpack-5.0.0.1/lib/action_controller/metal/params_wrapper.rb:248:in `process_action'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activerecord-5.0.0.1/lib/active_record/railties/controller_runtime.rb:18:in `process_action'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionpack-5.0.0.1/lib/abstract_controller/base.rb:126:in `process'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionview-5.0.0.1/lib/action_view/rendering.rb:30:in `process'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionpack-5.0.0.1/lib/action_controller/metal.rb:190:in `dispatch'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionpack-5.0.0.1/lib/action_controller/test_case.rb:532:in `process'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionpack-5.0.0.1/lib/action_controller/test_case.rb:629:in `process_with_kwargs'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionpack-5.0.0.1/lib/action_controller/test_case.rb:389:in `post'", "/home/bruno/Workspace/maestrano-rails/test/controllers/saml_controller_test.rb:117:in `block (3 levels) in '", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/shoulda-context-1.2.1/lib/shoulda/context/context.rb:413:in `instance_exec'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/shoulda-context-1.2.1/lib/shoulda/context/context.rb:413:in `block in create_test_from_should_hash'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest/test.rb:107:in `block (3 levels) in run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest/test.rb:204:in `capture_exceptions'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest/test.rb:104:in `block (2 levels) in run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest/test.rb:255:in `time_it'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest/test.rb:103:in `block in run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:348:in `on_signal'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest/test.rb:275:in `with_info_handler'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest/test.rb:102:in `run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:799:in `run_one_method'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:322:in `run_one_method'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:310:in `block (2 levels) in run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:309:in `each'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:309:in `block in run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:348:in `on_signal'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:335:in `with_info_handler'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:308:in `run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/railties-5.0.0.1/lib/rails/test_unit/line_filtering.rb:11:in `run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:158:in `block in __run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:158:in `map'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:158:in `__run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:135:in `run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:62:in `block in autorun'"] Redirected to http://api-sandbox.maestrano.io/app_access_unauthorized?err=internal Completed 302 Found in 3ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should reset the maestrano session successfully if one already exists. --------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction --------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should set a saml_request in scope. ---------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction -------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should set the group_auth_hash in scope. --------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.1ms) rollback transaction ------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should set the maestrano session. -------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should set the user_auth_hash in scope. -------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------ SamlBaseControllerTest: test_: consume phase should set the user_group_rel_hash in scope. ------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: init phase should create a saml request successfully if a maestrano session is already set. ---------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#init as HTML Parameters: {"a_param"=>"value"} Redirected to http://idpprovider.com?r=request Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ----------------------------------------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: init phase should create a saml request using params and session and redirect the user. -----------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#init as HTML Parameters: {"a_param"=>"value"} Redirected to http://idpprovider.com?r=request Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------------------------------- GenericControllerTest: test_: with a maestrano session should be successful if the maestrano session is still valid. ---------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by PagesController#home as HTML Rendering pages/home.html.erb within layouts/application Rendered pages/home.html.erb within layouts/application (0.9ms) Completed 200 OK in 122ms (Views: 121.5ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction -------------------------------------------------------------------------------------------------------------------- GenericControllerTest: test_: with a maestrano session should initialize redirect to SSO initialization if invalid. --------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by PagesController#home as HTML Redirected to http://localhost:3000/maestrano/auth/saml/init/default Filter chain halted as :verify_maestrano_session rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ----------------------------------------------------------------------------------------------------------- GenericControllerTest: test_: with a maestrano session should not redirect to SSO init if sso is disabled. -----------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by PagesController#home as HTML Rendering pages/home.html.erb within layouts/application Rendered pages/home.html.erb within layouts/application (0.0ms) Completed 200 OK in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------------------ GenericControllerTest: test_: with no maestrano session should be successful. ------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by PagesController#home as HTML Rendering pages/home.html.erb within layouts/application Rendered pages/home.html.erb within layouts/application (0.0ms) Completed 200 OK in 1ms (Views: 1.1ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction ---------------------------------------------------------------------------------------------------------- GroupGeneratorTest: test_: GroupGenerator should call the active_record migration generator successfully. ----------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction ---------------------------------------------------------------------------------------------------- GroupGeneratorTest: test_: GroupGenerator should call the mongoid migration generator successfully. ----------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ------------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: namespaced model should create the right migration. -------------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: namespaced model should edit the model content. ---------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction --------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should create the right migration. ---------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction ----------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should edit the model content. -----------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction --------------------------------------------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should include parameters if rails 3 and strong_parameter not present. ---------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should not include parameters if rails 3 and strong_parameter present. ---------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should not include parameters in rails 4. ----------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: class methods find_or_create_for_maestrano class method should create a monster using the mapping block. --------------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction 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 ? [["provider", "maestrano"], ["uid", "usr-2"], ["tenant", "default"], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 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-08-31 02:03:20 UTC], ["updated_at", 2016-08-31 02:03:20 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: class methods find_or_create_for_maestrano class method should not return a MnoMonster from another provider if it exists. --------------------------------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 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-08-31 02:03:20 UTC], ["updated_at", 2016-08-31 02:03:20 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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 ? [["provider", "maestrano"], ["uid", "usr-1"], ["tenant", "default"], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 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-08-31 02:03:20 UTC], ["updated_at", 2016-08-31 02:03:20 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: class methods find_or_create_for_maestrano class method should return the MnoMonster if it exists. --------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 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-08-31 02:03:20 UTC], ["updated_at", 2016-08-31 02:03:20 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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 ? [["provider", "maestrano"], ["uid", "usr-1"], ["tenant", "default"], ["LIMIT", 1]]  (0.1ms) rollback transaction --------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: class methods maestrano_*_via should have the right field definition. ---------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------------------------ MaestranoUserViaTest: test_: instance methods maestrano? should return false if provider is something else. ------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: instance methods maestrano? should return false if uid is blank. ----------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ----------------------------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: instance methods maestrano? should return true if provider is maestrano and uid not null. -----------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------------- UserGeneratorTest: test_: UserGenerator should call the active_record migration generator successfully. --------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction -------------------------------------------------------------------------------------------------- UserGeneratorTest: test_: UserGenerator should call the mongoid migration generator successfully. --------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase error should redirect to maestrano on any error. ----------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Cannot validate SAML response: Bla Trace: ["/home/bruno/.rvm/gems/ruby-2.3.1/gems/mocha-1.1.0/lib/mocha/exception_raiser.rb:12:in `evaluate'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/mocha-1.1.0/lib/mocha/return_values.rb:20:in `next'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/mocha-1.1.0/lib/mocha/expectation.rb:569:in `invoke'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/mocha-1.1.0/lib/mocha/mock.rb:296:in `method_missing'", "/home/bruno/Workspace/maestrano-rails/app/controllers/maestrano/rails/saml_base_controller.rb:35:in `process_saml_response'", "/home/bruno/Workspace/maestrano-rails/app/controllers/maestrano/rails/saml_base_controller.rb:18:in `saml_response_transaction'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-5.0.0.1/lib/active_support/callbacks.rb:382:in `block in make_lambda'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-5.0.0.1/lib/active_support/callbacks.rb:266:in `block in halting_and_conditional'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-5.0.0.1/lib/active_support/callbacks.rb:447:in `block in around'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-5.0.0.1/lib/active_support/callbacks.rb:455:in `call'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-5.0.0.1/lib/active_support/callbacks.rb:101:in `__run_callbacks__'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-5.0.0.1/lib/active_support/callbacks.rb:750:in `_run_process_action_callbacks'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-5.0.0.1/lib/active_support/callbacks.rb:90:in `run_callbacks'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionpack-5.0.0.1/lib/abstract_controller/callbacks.rb:19:in `process_action'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionpack-5.0.0.1/lib/action_controller/metal/rescue.rb:20:in `process_action'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionpack-5.0.0.1/lib/action_controller/metal/instrumentation.rb:32:in `block in process_action'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-5.0.0.1/lib/active_support/notifications.rb:164:in `block in instrument'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-5.0.0.1/lib/active_support/notifications/instrumenter.rb:21:in `instrument'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-5.0.0.1/lib/active_support/notifications.rb:164:in `instrument'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionpack-5.0.0.1/lib/action_controller/metal/instrumentation.rb:30:in `process_action'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionpack-5.0.0.1/lib/action_controller/metal/params_wrapper.rb:248:in `process_action'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activerecord-5.0.0.1/lib/active_record/railties/controller_runtime.rb:18:in `process_action'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionpack-5.0.0.1/lib/abstract_controller/base.rb:126:in `process'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionview-5.0.0.1/lib/action_view/rendering.rb:30:in `process'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionpack-5.0.0.1/lib/action_controller/metal.rb:190:in `dispatch'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionpack-5.0.0.1/lib/action_controller/test_case.rb:532:in `process'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionpack-5.0.0.1/lib/action_controller/test_case.rb:629:in `process_with_kwargs'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionpack-5.0.0.1/lib/action_controller/test_case.rb:389:in `post'", "/home/bruno/Workspace/maestrano-rails/test/controllers/saml_controller_test.rb:117:in `block (3 levels) in '", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/shoulda-context-1.2.1/lib/shoulda/context/context.rb:413:in `instance_exec'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/shoulda-context-1.2.1/lib/shoulda/context/context.rb:413:in `block in create_test_from_should_hash'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest/test.rb:107:in `block (3 levels) in run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest/test.rb:204:in `capture_exceptions'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest/test.rb:104:in `block (2 levels) in run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest/test.rb:255:in `time_it'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest/test.rb:103:in `block in run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:348:in `on_signal'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest/test.rb:275:in `with_info_handler'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest/test.rb:102:in `run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:799:in `run_one_method'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:322:in `run_one_method'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:310:in `block (2 levels) in run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:309:in `each'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:309:in `block in run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:348:in `on_signal'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:335:in `with_info_handler'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:308:in `run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/railties-5.0.0.1/lib/rails/test_unit/line_filtering.rb:11:in `run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:158:in `block in __run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:158:in `map'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:158:in `__run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:135:in `run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:62:in `block in autorun'"] Redirected to http://api-sandbox.maestrano.io/app_access_unauthorized?err=internal Completed 302 Found in 2ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should reset the maestrano session successfully if one already exists. --------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction --------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should set a saml_request in scope. ---------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction -------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should set the group_auth_hash in scope. --------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.1ms) rollback transaction ------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should set the maestrano session. -------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should set the user_auth_hash in scope. -------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------ SamlBaseControllerTest: test_: consume phase should set the user_group_rel_hash in scope. ------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) rollback transaction --------------------------------------------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: init phase should create a saml request successfully if a maestrano session is already set. ---------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#init as HTML Parameters: {"a_param"=>"value"} Redirected to http://idpprovider.com?r=request Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ----------------------------------------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: init phase should create a saml request using params and session and redirect the user. -----------------------------------------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#init as HTML Parameters: {"a_param"=>"value"} Redirected to http://idpprovider.com?r=request Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------------------------------------------------- MaestranoGroupViaTest: test_: class methods find_or_create_for_maestrano class method should create a monster using the mapping block. ---------------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction 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 ? [["provider", "maestrano"], ["uid", "usr-2"], ["tenant", "default"], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 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-08-31 02:03:20 UTC], ["updated_at", 2016-08-31 02:03:20 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction ------------------------------------------------------------------------------------------------------------------------------------------------------ MaestranoGroupViaTest: test_: class methods find_or_create_for_maestrano class method should not return a MnoCrew from another provider if it exists. ------------------------------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 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-08-31 02:03:20 UTC], ["updated_at", 2016-08-31 02:03:20 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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 ? [["provider", "maestrano"], ["uid", "cld-1"], ["tenant", "default"], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 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-08-31 02:03:20 UTC], ["updated_at", 2016-08-31 02:03:20 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction ------------------------------------------------------------------------------------------------------------------------------ MaestranoGroupViaTest: test_: class methods find_or_create_for_maestrano class method should return the MnoCrew if it exists. ------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 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-08-31 02:03:20 UTC], ["updated_at", 2016-08-31 02:03:20 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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 ? [["provider", "maestrano"], ["uid", "cld-1"], ["tenant", "default"], ["LIMIT", 1]]  (0.1ms) rollback transaction ---------------------------------------------------------------------------------------------------- MaestranoGroupViaTest: test_: class methods maestrano_*_via should have the right field definition. ----------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------------------------- MaestranoGroupViaTest: test_: instance methods maestrano? should return false if provider is something else. -------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ----------------------------------------------------------------------------------------------- MaestranoGroupViaTest: test_: instance methods maestrano? should return false if uid is blank. -----------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------------------------------------ MaestranoGroupViaTest: test_: instance methods maestrano? should return true if provider is maestrano and uid not null. ------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ----------------------------------------------------------------- GroupsControllerTest: test_: authenticated should be successful. -----------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Account::GroupsController#destroy as HTML Parameters: {"id"=>"cld-1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 4ms (Views: 3.7ms | ActiveRecord: 0.0ms)  (0.2ms) rollback transaction ----------------------------------------------------------------- GroupsControllerTest: test_: unauthenticated should deny access. -----------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Account::GroupsController#destroy as HTML Parameters: {"id"=>"cld-1"} Filter chain halted as :authenticate_maestrano! rendered or redirected Completed 401 Unauthorized in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------------------------------- GenericControllerTest: test_: with a maestrano session should be successful if the maestrano session is still valid. ---------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by PagesController#home as HTML Rendering pages/home.html.erb within layouts/application Rendered pages/home.html.erb within layouts/application (0.7ms) Completed 500 Internal Server Error in 107ms (ActiveRecord: 0.0ms)  (0.1ms) rollback transaction -------------------------------------------------------------------------------------------------------------------- GenericControllerTest: test_: with a maestrano session should initialize redirect to SSO initialization if invalid. --------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by PagesController#home as HTML Redirected to http://localhost:3000/maestrano/auth/saml/init/default Filter chain halted as :verify_maestrano_session rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ----------------------------------------------------------------------------------------------------------- GenericControllerTest: test_: with a maestrano session should not redirect to SSO init if sso is disabled. -----------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by PagesController#home as HTML Rendering pages/home.html.erb within layouts/application Rendered pages/home.html.erb within layouts/application (0.0ms) Completed 500 Internal Server Error in 3ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------------------ GenericControllerTest: test_: with no maestrano session should be successful. ------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by PagesController#home as HTML Rendering pages/home.html.erb within layouts/application Rendered pages/home.html.erb within layouts/application (0.0ms) Completed 500 Internal Server Error in 3ms (ActiveRecord: 0.0ms)  (0.1ms) rollback transaction --------------------------------------------------------------------- GroupUsersControllerTest: test_: authenticated should be successful. ---------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Account::GroupUsersController#destroy as HTML Parameters: {"group_id"=>"cld-1", "id"=>"usr-1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction --------------------------------------------------------------------- GroupUsersControllerTest: test_: unauthenticated should deny access. ---------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Account::GroupUsersController#destroy as HTML Parameters: {"group_id"=>"cld-1", "id"=>"usr-1"} Filter chain halted as :authenticate_maestrano! rendered or redirected Completed 401 Unauthorized in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------ MaestranoRailsTest: test_truth ------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------------------- GroupGeneratorTest: test_: GroupGenerator should call the active_record migration generator successfully. ----------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------------- GroupGeneratorTest: test_: GroupGenerator should call the mongoid migration generator successfully. ----------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction ------------------------------------------------------------------------------------------ ActiveRecordUserGeneratorTest: test_: namespaced model should create the right migration. ------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: namespaced model should edit the model content. --------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should create the right migration. --------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should edit the model content. ----------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should include parameters if rails 3 and strong_parameter not present. --------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should not include parameters if rails 3 and strong_parameter present. --------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should not include parameters in rails 4. ---------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------- InstallGeneratorTest: test_: InstallGenerator should create the maestrano initializer. ---------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------- InstallGeneratorTest: test_: InstallGenerator should create the maestrano routes. ----------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction ---------------------------------------------------------------------------------------------------------- InstallGeneratorTest: test_: InstallGenerator should create the maestrano/account/group_users_controller. ----------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction ----------------------------------------------------------------------------------------------------- InstallGeneratorTest: test_: InstallGenerator should create the maestrano/account/groups_controller. -----------------------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------------ InstallGeneratorTest: test_: InstallGenerator should create the maestrano/auth/saml_controller. ------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------- MetadataControllerTest: test_: authenticated should be successful. -------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Rails::MetadataController#index as HTML Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------- MetadataControllerTest: test_: unauthenticated should deny access. -------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Rails::MetadataController#index as HTML Filter chain halted as :authenticate_maestrano! rendered or redirected Completed 401 Unauthorized in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" --------------------------------------------------------------------------------------------------------------------------------------- MaestranoGroupViaTest: test_: class methods find_or_create_for_maestrano class method should create a monster using the mapping block. ---------------------------------------------------------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction 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 ? [["provider", "maestrano"], ["uid", "usr-2"], ["tenant", "default"], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 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-08-31 02:04:17 UTC], ["updated_at", 2016-08-31 02:04:17 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction ------------------------------------------------------------------------------------------------------------------------------------------------------ MaestranoGroupViaTest: test_: class methods find_or_create_for_maestrano class method should not return a MnoCrew from another provider if it exists. ------------------------------------------------------------------------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "mno_crews" ("name", "provider", "uid", "tenant", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["name", "SomeOtherCrew"], ["provider", "someoneelse"], ["uid", "usr-1"], ["tenant", "default"], ["created_at", 2016-08-31 02:04:17 UTC], ["updated_at", 2016-08-31 02:04:17 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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 ? [["provider", "maestrano"], ["uid", "cld-1"], ["tenant", "default"], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 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-08-31 02:04:17 UTC], ["updated_at", 2016-08-31 02:04:17 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction ------------------------------------------------------------------------------------------------------------------------------ MaestranoGroupViaTest: test_: class methods find_or_create_for_maestrano class method should return the MnoCrew if it exists. ------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 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-08-31 02:04:17 UTC], ["updated_at", 2016-08-31 02:04:17 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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 ? [["provider", "maestrano"], ["uid", "cld-1"], ["tenant", "default"], ["LIMIT", 1]]  (0.1ms) rollback transaction ---------------------------------------------------------------------------------------------------- MaestranoGroupViaTest: test_: class methods maestrano_*_via should have the right field definition. ----------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------------------------- MaestranoGroupViaTest: test_: instance methods maestrano? should return false if provider is something else. -------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ----------------------------------------------------------------------------------------------- MaestranoGroupViaTest: test_: instance methods maestrano? should return false if uid is blank. -----------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------------------------------------ MaestranoGroupViaTest: test_: instance methods maestrano? should return true if provider is maestrano and uid not null. ------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------ ActiveRecordUserGeneratorTest: test_: namespaced model should create the right migration. ------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: namespaced model should edit the model content. --------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should create the right migration. --------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should edit the model content. ----------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should include parameters if rails 3 and strong_parameter not present. --------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should not include parameters if rails 3 and strong_parameter present. --------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should not include parameters in rails 4. ---------------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ----------------------------------------------------------------- GroupsControllerTest: test_: authenticated should be successful. -----------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Account::GroupsController#destroy as HTML Parameters: {"id"=>"cld-1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 4ms (Views: 3.8ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction ----------------------------------------------------------------- GroupsControllerTest: test_: unauthenticated should deny access. -----------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Account::GroupsController#destroy as HTML Parameters: {"id"=>"cld-1"} Filter chain halted as :authenticate_maestrano! rendered or redirected Completed 401 Unauthorized in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: namespaced model should create the right migration. -------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: namespaced model should edit the model content. ---------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should create the right migration. ---------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ----------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should edit the model content. -----------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should include parameters if rails 3 and strong_parameter not present. ---------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should not include parameters if rails 3 and strong_parameter present. ---------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should not include parameters in rails 4. ----------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------- MetadataControllerTest: test_: authenticated should be successful. -------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Rails::MetadataController#index as HTML Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction ------------------------------------------------------------------- MetadataControllerTest: test_: unauthenticated should deny access. -------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Rails::MetadataController#index as HTML Filter chain halted as :authenticate_maestrano! rendered or redirected Completed 401 Unauthorized in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction --------------------------------------------------------------------- GroupUsersControllerTest: test_: authenticated should be successful. ---------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Account::GroupUsersController#destroy as HTML Parameters: {"group_id"=>"cld-1", "id"=>"usr-1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction --------------------------------------------------------------------- GroupUsersControllerTest: test_: unauthenticated should deny access. ---------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Account::GroupUsersController#destroy as HTML Parameters: {"group_id"=>"cld-1", "id"=>"usr-1"} Filter chain halted as :authenticate_maestrano! rendered or redirected Completed 401 Unauthorized in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------------------- GroupGeneratorTest: test_: GroupGenerator should call the active_record migration generator successfully. ----------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------------- GroupGeneratorTest: test_: GroupGenerator should call the mongoid migration generator successfully. ----------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction -------------------------------------------------------------------------------------------------------- UserGeneratorTest: test_: UserGenerator should call the active_record migration generator successfully. --------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction -------------------------------------------------------------------------------------------------- UserGeneratorTest: test_: UserGenerator should call the mongoid migration generator successfully. --------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction --------------------------------------------------------------------------------------------------------------------- GenericControllerTest: test_: with a maestrano session should be successful if the maestrano session is still valid. ---------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by PagesController#home as HTML Rendering pages/home.html.erb within layouts/application Rendered pages/home.html.erb within layouts/application (0.8ms) Completed 200 OK in 99ms (Views: 98.5ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction -------------------------------------------------------------------------------------------------------------------- GenericControllerTest: test_: with a maestrano session should initialize redirect to SSO initialization if invalid. --------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by PagesController#home as HTML Rendering pages/home.html.erb within layouts/application Rendered pages/home.html.erb within layouts/application (0.0ms) Completed 200 OK in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ----------------------------------------------------------------------------------------------------------- GenericControllerTest: test_: with a maestrano session should not redirect to SSO init if sso is disabled. -----------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by PagesController#home as HTML Rendering pages/home.html.erb within layouts/application Rendered pages/home.html.erb within layouts/application (0.0ms) Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------------------ GenericControllerTest: test_: with no maestrano session should be successful. ------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by PagesController#home as HTML Rendering pages/home.html.erb within layouts/application Rendered pages/home.html.erb within layouts/application (0.0ms) Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------ MaestranoRailsTest: test_truth ------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase error should redirect to maestrano on any error. ----------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Cannot validate SAML response: Bla Trace: ["/home/bruno/.rvm/gems/ruby-2.3.1/gems/mocha-1.1.0/lib/mocha/exception_raiser.rb:12:in `evaluate'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/mocha-1.1.0/lib/mocha/return_values.rb:20:in `next'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/mocha-1.1.0/lib/mocha/expectation.rb:569:in `invoke'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/mocha-1.1.0/lib/mocha/mock.rb:296:in `method_missing'", "/home/bruno/Workspace/maestrano-rails/app/controllers/maestrano/rails/saml_base_controller.rb:35:in `process_saml_response'", "/home/bruno/Workspace/maestrano-rails/app/controllers/maestrano/rails/saml_base_controller.rb:18:in `saml_response_transaction'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-5.0.0.1/lib/active_support/callbacks.rb:382:in `block in make_lambda'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-5.0.0.1/lib/active_support/callbacks.rb:266:in `block in halting_and_conditional'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-5.0.0.1/lib/active_support/callbacks.rb:447:in `block in around'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-5.0.0.1/lib/active_support/callbacks.rb:455:in `call'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-5.0.0.1/lib/active_support/callbacks.rb:101:in `__run_callbacks__'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-5.0.0.1/lib/active_support/callbacks.rb:750:in `_run_process_action_callbacks'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-5.0.0.1/lib/active_support/callbacks.rb:90:in `run_callbacks'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionpack-5.0.0.1/lib/abstract_controller/callbacks.rb:19:in `process_action'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionpack-5.0.0.1/lib/action_controller/metal/rescue.rb:20:in `process_action'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionpack-5.0.0.1/lib/action_controller/metal/instrumentation.rb:32:in `block in process_action'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-5.0.0.1/lib/active_support/notifications.rb:164:in `block in instrument'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-5.0.0.1/lib/active_support/notifications/instrumenter.rb:21:in `instrument'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-5.0.0.1/lib/active_support/notifications.rb:164:in `instrument'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionpack-5.0.0.1/lib/action_controller/metal/instrumentation.rb:30:in `process_action'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionpack-5.0.0.1/lib/action_controller/metal/params_wrapper.rb:248:in `process_action'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activerecord-5.0.0.1/lib/active_record/railties/controller_runtime.rb:18:in `process_action'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionpack-5.0.0.1/lib/abstract_controller/base.rb:126:in `process'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionview-5.0.0.1/lib/action_view/rendering.rb:30:in `process'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionpack-5.0.0.1/lib/action_controller/metal.rb:190:in `dispatch'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionpack-5.0.0.1/lib/action_controller/test_case.rb:532:in `process'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionpack-5.0.0.1/lib/action_controller/test_case.rb:629:in `process_with_kwargs'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionpack-5.0.0.1/lib/action_controller/test_case.rb:389:in `post'", "/home/bruno/Workspace/maestrano-rails/test/controllers/saml_controller_test.rb:117:in `block (3 levels) in '", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/shoulda-context-1.2.1/lib/shoulda/context/context.rb:413:in `instance_exec'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/shoulda-context-1.2.1/lib/shoulda/context/context.rb:413:in `block in create_test_from_should_hash'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest/test.rb:107:in `block (3 levels) in run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest/test.rb:204:in `capture_exceptions'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest/test.rb:104:in `block (2 levels) in run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest/test.rb:255:in `time_it'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest/test.rb:103:in `block in run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:348:in `on_signal'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest/test.rb:275:in `with_info_handler'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest/test.rb:102:in `run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:799:in `run_one_method'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:322:in `run_one_method'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:310:in `block (2 levels) in run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:309:in `each'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:309:in `block in run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:348:in `on_signal'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:335:in `with_info_handler'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:308:in `run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/railties-5.0.0.1/lib/rails/test_unit/line_filtering.rb:11:in `run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:158:in `block in __run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:158:in `map'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:158:in `__run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:135:in `run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:62:in `block in autorun'"] Redirected to http://api-sandbox.maestrano.io/app_access_unauthorized?err=internal Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should reset the maestrano session successfully if one already exists. --------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.1ms) rollback transaction --------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should set a saml_request in scope. ---------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.1ms) rollback transaction -------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should set the group_auth_hash in scope. --------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should set the maestrano session. -------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should set the user_auth_hash in scope. -------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------ SamlBaseControllerTest: test_: consume phase should set the user_group_rel_hash in scope. ------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: init phase should create a saml request successfully if a maestrano session is already set. ---------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#init as HTML Parameters: {"a_param"=>"value"} Redirected to http://idpprovider.com?r=request Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.1ms) rollback transaction ----------------------------------------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: init phase should create a saml request using params and session and redirect the user. -----------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#init as HTML Parameters: {"a_param"=>"value"} Redirected to http://idpprovider.com?r=request Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction --------------------------------------------------------------------------------------- InstallGeneratorTest: test_: InstallGenerator should create the maestrano initializer. ---------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------- InstallGeneratorTest: test_: InstallGenerator should create the maestrano routes. ----------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------------------- InstallGeneratorTest: test_: InstallGenerator should create the maestrano/account/group_users_controller. ----------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ----------------------------------------------------------------------------------------------------- InstallGeneratorTest: test_: InstallGenerator should create the maestrano/account/groups_controller. -----------------------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------------ InstallGeneratorTest: test_: InstallGenerator should create the maestrano/auth/saml_controller. ------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: class methods find_or_create_for_maestrano class method should create a monster using the mapping block. --------------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction 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 ? [["provider", "maestrano"], ["uid", "usr-2"], ["tenant", "default"], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 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-08-31 02:04:17 UTC], ["updated_at", 2016-08-31 02:04:17 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: class methods find_or_create_for_maestrano class method should not return a MnoMonster from another provider if it exists. --------------------------------------------------------------------------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 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-08-31 02:04:17 UTC], ["updated_at", 2016-08-31 02:04:17 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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 ? [["provider", "maestrano"], ["uid", "usr-1"], ["tenant", "default"], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 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-08-31 02:04:17 UTC], ["updated_at", 2016-08-31 02:04:17 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: class methods find_or_create_for_maestrano class method should return the MnoMonster if it exists. --------------------------------------------------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 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-08-31 02:04:17 UTC], ["updated_at", 2016-08-31 02:04:17 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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 ? [["provider", "maestrano"], ["uid", "usr-1"], ["tenant", "default"], ["LIMIT", 1]]  (0.1ms) rollback transaction --------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: class methods maestrano_*_via should have the right field definition. ---------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------------------------ MaestranoUserViaTest: test_: instance methods maestrano? should return false if provider is something else. ------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: instance methods maestrano? should return false if uid is blank. ----------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ----------------------------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: instance methods maestrano? should return true if provider is maestrano and uid not null. -----------------------------------------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ------------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: namespaced model should create the right migration. -------------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: namespaced model should edit the model content. ---------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction --------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should create the right migration. ---------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction ----------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should edit the model content. -----------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction --------------------------------------------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should include parameters if rails 3 and strong_parameter not present. ---------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should not include parameters if rails 3 and strong_parameter present. ---------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should not include parameters in rails 4. ----------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase error should redirect to maestrano on any error. ----------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Cannot validate SAML response: Bla Trace: ["/home/bruno/.rvm/gems/ruby-2.3.1/gems/mocha-1.1.0/lib/mocha/exception_raiser.rb:12:in `evaluate'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/mocha-1.1.0/lib/mocha/return_values.rb:20:in `next'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/mocha-1.1.0/lib/mocha/expectation.rb:569:in `invoke'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/mocha-1.1.0/lib/mocha/mock.rb:296:in `method_missing'", "/home/bruno/Workspace/maestrano-rails/app/controllers/maestrano/rails/saml_base_controller.rb:35:in `process_saml_response'", "/home/bruno/Workspace/maestrano-rails/app/controllers/maestrano/rails/saml_base_controller.rb:18:in `saml_response_transaction'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-5.0.0.1/lib/active_support/callbacks.rb:382:in `block in make_lambda'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-5.0.0.1/lib/active_support/callbacks.rb:266:in `block in halting_and_conditional'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-5.0.0.1/lib/active_support/callbacks.rb:447:in `block in around'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-5.0.0.1/lib/active_support/callbacks.rb:455:in `call'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-5.0.0.1/lib/active_support/callbacks.rb:101:in `__run_callbacks__'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-5.0.0.1/lib/active_support/callbacks.rb:750:in `_run_process_action_callbacks'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-5.0.0.1/lib/active_support/callbacks.rb:90:in `run_callbacks'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionpack-5.0.0.1/lib/abstract_controller/callbacks.rb:19:in `process_action'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionpack-5.0.0.1/lib/action_controller/metal/rescue.rb:20:in `process_action'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionpack-5.0.0.1/lib/action_controller/metal/instrumentation.rb:32:in `block in process_action'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-5.0.0.1/lib/active_support/notifications.rb:164:in `block in instrument'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-5.0.0.1/lib/active_support/notifications/instrumenter.rb:21:in `instrument'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-5.0.0.1/lib/active_support/notifications.rb:164:in `instrument'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionpack-5.0.0.1/lib/action_controller/metal/instrumentation.rb:30:in `process_action'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionpack-5.0.0.1/lib/action_controller/metal/params_wrapper.rb:248:in `process_action'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activerecord-5.0.0.1/lib/active_record/railties/controller_runtime.rb:18:in `process_action'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionpack-5.0.0.1/lib/abstract_controller/base.rb:126:in `process'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionview-5.0.0.1/lib/action_view/rendering.rb:30:in `process'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionpack-5.0.0.1/lib/action_controller/metal.rb:190:in `dispatch'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionpack-5.0.0.1/lib/action_controller/test_case.rb:532:in `process'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionpack-5.0.0.1/lib/action_controller/test_case.rb:629:in `process_with_kwargs'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionpack-5.0.0.1/lib/action_controller/test_case.rb:389:in `post'", "/home/bruno/Workspace/maestrano-rails/test/controllers/saml_controller_test.rb:117:in `block (3 levels) in '", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/shoulda-context-1.2.1/lib/shoulda/context/context.rb:413:in `instance_exec'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/shoulda-context-1.2.1/lib/shoulda/context/context.rb:413:in `block in create_test_from_should_hash'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest/test.rb:107:in `block (3 levels) in run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest/test.rb:204:in `capture_exceptions'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest/test.rb:104:in `block (2 levels) in run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest/test.rb:255:in `time_it'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest/test.rb:103:in `block in run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:348:in `on_signal'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest/test.rb:275:in `with_info_handler'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest/test.rb:102:in `run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:799:in `run_one_method'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:322:in `run_one_method'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:310:in `block (2 levels) in run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:309:in `each'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:309:in `block in run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:348:in `on_signal'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:335:in `with_info_handler'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:308:in `run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/railties-5.0.0.1/lib/rails/test_unit/line_filtering.rb:11:in `run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:158:in `block in __run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:158:in `map'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:158:in `__run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:135:in `run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:62:in `block in autorun'"] Redirected to http://api-sandbox.maestrano.io/app_access_unauthorized?err=internal Completed 302 Found in 3ms (ActiveRecord: 0.0ms)  (0.1ms) rollback transaction -------------------------------------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should reset the maestrano session successfully if one already exists. --------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction --------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should set a saml_request in scope. ---------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction -------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should set the group_auth_hash in scope. --------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should set the maestrano session. -------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.1ms) rollback transaction ------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should set the user_auth_hash in scope. -------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.1ms) rollback transaction ------------------------------------------------------------------------------------------ SamlBaseControllerTest: test_: consume phase should set the user_group_rel_hash in scope. ------------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.1ms) rollback transaction --------------------------------------------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: init phase should create a saml request successfully if a maestrano session is already set. ---------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#init as HTML Parameters: {"a_param"=>"value"} Redirected to http://idpprovider.com?r=request Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ----------------------------------------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: init phase should create a saml request using params and session and redirect the user. -----------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#init as HTML Parameters: {"a_param"=>"value"} Redirected to http://idpprovider.com?r=request Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction --------------------------------------------------------------------- GroupUsersControllerTest: test_: authenticated should be successful. ---------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Account::GroupUsersController#destroy as HTML Parameters: {"group_id"=>"cld-1", "id"=>"usr-1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction --------------------------------------------------------------------- GroupUsersControllerTest: test_: unauthenticated should deny access. ---------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Account::GroupUsersController#destroy as HTML Parameters: {"group_id"=>"cld-1", "id"=>"usr-1"} Filter chain halted as :authenticate_maestrano! rendered or redirected Completed 401 Unauthorized in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------------------------------------------------- MaestranoGroupViaTest: test_: class methods find_or_create_for_maestrano class method should create a monster using the mapping block. ---------------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction 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 ? [["provider", "maestrano"], ["uid", "usr-2"], ["tenant", "default"], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 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-08-31 02:04:34 UTC], ["updated_at", 2016-08-31 02:04:34 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction ------------------------------------------------------------------------------------------------------------------------------------------------------ MaestranoGroupViaTest: test_: class methods find_or_create_for_maestrano class method should not return a MnoCrew from another provider if it exists. ------------------------------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 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-08-31 02:04:34 UTC], ["updated_at", 2016-08-31 02:04:34 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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 ? [["provider", "maestrano"], ["uid", "cld-1"], ["tenant", "default"], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 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-08-31 02:04:34 UTC], ["updated_at", 2016-08-31 02:04:34 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction ------------------------------------------------------------------------------------------------------------------------------ MaestranoGroupViaTest: test_: class methods find_or_create_for_maestrano class method should return the MnoCrew if it exists. ------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "mno_crews" ("name", "provider", "uid", "tenant", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["name", "SomeCrew"], ["provider", "maestrano"], ["uid", "cld-1"], ["tenant", "default"], ["created_at", 2016-08-31 02:04:34 UTC], ["updated_at", 2016-08-31 02:04:34 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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 ? [["provider", "maestrano"], ["uid", "cld-1"], ["tenant", "default"], ["LIMIT", 1]]  (0.1ms) rollback transaction ---------------------------------------------------------------------------------------------------- MaestranoGroupViaTest: test_: class methods maestrano_*_via should have the right field definition. ----------------------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------------------------- MaestranoGroupViaTest: test_: instance methods maestrano? should return false if provider is something else. -------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ----------------------------------------------------------------------------------------------- MaestranoGroupViaTest: test_: instance methods maestrano? should return false if uid is blank. -----------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------------------------------------ MaestranoGroupViaTest: test_: instance methods maestrano? should return true if provider is maestrano and uid not null. ------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------ MaestranoRailsTest: test_truth ------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------------------------------- GenericControllerTest: test_: with a maestrano session should be successful if the maestrano session is still valid. ---------------------------------------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by PagesController#home as HTML Rendering pages/home.html.erb within layouts/application Rendered pages/home.html.erb within layouts/application (0.8ms) Completed 200 OK in 100ms (Views: 99.6ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction -------------------------------------------------------------------------------------------------------------------- GenericControllerTest: test_: with a maestrano session should initialize redirect to SSO initialization if invalid. --------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by PagesController#home as HTML Rendering pages/home.html.erb within layouts/application Rendered pages/home.html.erb within layouts/application (0.0ms) Completed 200 OK in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ----------------------------------------------------------------------------------------------------------- GenericControllerTest: test_: with a maestrano session should not redirect to SSO init if sso is disabled. -----------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by PagesController#home as HTML Rendering pages/home.html.erb within layouts/application Rendered pages/home.html.erb within layouts/application (0.0ms) Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------------------ GenericControllerTest: test_: with no maestrano session should be successful. ------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by PagesController#home as HTML Rendering pages/home.html.erb within layouts/application Rendered pages/home.html.erb within layouts/application (0.0ms) Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------- MetadataControllerTest: test_: authenticated should be successful. -------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Rails::MetadataController#index as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction ------------------------------------------------------------------- MetadataControllerTest: test_: unauthenticated should deny access. -------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Rails::MetadataController#index as HTML Filter chain halted as :authenticate_maestrano! rendered or redirected Completed 401 Unauthorized in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------ ActiveRecordUserGeneratorTest: test_: namespaced model should create the right migration. ------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: namespaced model should edit the model content. --------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should create the right migration. --------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should edit the model content. ----------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should include parameters if rails 3 and strong_parameter not present. --------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should not include parameters if rails 3 and strong_parameter present. --------------------------------------------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should not include parameters in rails 4. ---------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ----------------------------------------------------------------- GroupsControllerTest: test_: authenticated should be successful. -----------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Account::GroupsController#destroy as HTML Parameters: {"id"=>"cld-1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ----------------------------------------------------------------- GroupsControllerTest: test_: unauthenticated should deny access. -----------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Account::GroupsController#destroy as HTML Parameters: {"id"=>"cld-1"} Filter chain halted as :authenticate_maestrano! rendered or redirected Completed 401 Unauthorized in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: class methods find_or_create_for_maestrano class method should create a monster using the mapping block. --------------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction 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 ? [["provider", "maestrano"], ["uid", "usr-2"], ["tenant", "default"], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "mno_monsters" ("first_name", "last_name", "email", "provider", "uid", "tenant", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["first_name", "Mon"], ["last_name", "Ster"], ["email", "monster@monst.com"], ["provider", "maestrano"], ["uid", "usr-2"], ["tenant", "default"], ["created_at", 2016-08-31 02:04:34 UTC], ["updated_at", 2016-08-31 02:04:34 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: class methods find_or_create_for_maestrano class method should not return a MnoMonster from another provider if it exists. --------------------------------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 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-08-31 02:04:34 UTC], ["updated_at", 2016-08-31 02:04:34 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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 ? [["provider", "maestrano"], ["uid", "usr-1"], ["tenant", "default"], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 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-08-31 02:04:34 UTC], ["updated_at", 2016-08-31 02:04:34 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: class methods find_or_create_for_maestrano class method should return the MnoMonster if it exists. --------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 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-08-31 02:04:34 UTC], ["updated_at", 2016-08-31 02:04:34 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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 ? [["provider", "maestrano"], ["uid", "usr-1"], ["tenant", "default"], ["LIMIT", 1]]  (0.1ms) rollback transaction --------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: class methods maestrano_*_via should have the right field definition. ---------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------------------------ MaestranoUserViaTest: test_: instance methods maestrano? should return false if provider is something else. ------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: instance methods maestrano? should return false if uid is blank. ----------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ----------------------------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: instance methods maestrano? should return true if provider is maestrano and uid not null. -----------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------------- UserGeneratorTest: test_: UserGenerator should call the active_record migration generator successfully. --------------------------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction -------------------------------------------------------------------------------------------------- UserGeneratorTest: test_: UserGenerator should call the mongoid migration generator successfully. --------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction ---------------------------------------------------------------------------------------------------------- GroupGeneratorTest: test_: GroupGenerator should call the active_record migration generator successfully. ----------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------------- GroupGeneratorTest: test_: GroupGenerator should call the mongoid migration generator successfully. ----------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction --------------------------------------------------------------------------------------- InstallGeneratorTest: test_: InstallGenerator should create the maestrano initializer. ---------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------- InstallGeneratorTest: test_: InstallGenerator should create the maestrano routes. ----------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------------------- InstallGeneratorTest: test_: InstallGenerator should create the maestrano/account/group_users_controller. ----------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction ----------------------------------------------------------------------------------------------------- InstallGeneratorTest: test_: InstallGenerator should create the maestrano/account/groups_controller. -----------------------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------------ InstallGeneratorTest: test_: InstallGenerator should create the maestrano/auth/saml_controller. ------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ------------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: namespaced model should create the right migration. -------------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: namespaced model should edit the model content. ---------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction --------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should create the right migration. ---------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction ----------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should edit the model content. -----------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should include parameters if rails 3 and strong_parameter not present. ---------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should not include parameters if rails 3 and strong_parameter present. ---------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should not include parameters in rails 4. ----------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------ ActiveRecordUserGeneratorTest: test_: namespaced model should create the right migration. ------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: namespaced model should edit the model content. --------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should create the right migration. --------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should edit the model content. ----------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should include parameters if rails 3 and strong_parameter not present. --------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should not include parameters if rails 3 and strong_parameter present. --------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should not include parameters in rails 4. ---------------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction ----------------------------------------------------------------- GroupsControllerTest: test_: authenticated should be successful. -----------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Account::GroupsController#destroy as HTML Parameters: {"id"=>"cld-1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 3ms (Views: 2.3ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ----------------------------------------------------------------- GroupsControllerTest: test_: unauthenticated should deny access. -----------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Account::GroupsController#destroy as HTML Parameters: {"id"=>"cld-1"} Filter chain halted as :authenticate_maestrano! rendered or redirected Completed 401 Unauthorized in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction --------------------------------------------------------------------- GroupUsersControllerTest: test_: authenticated should be successful. ---------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Account::GroupUsersController#destroy as HTML Parameters: {"group_id"=>"cld-1", "id"=>"usr-1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction --------------------------------------------------------------------- GroupUsersControllerTest: test_: unauthenticated should deny access. ---------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Account::GroupUsersController#destroy as HTML Parameters: {"group_id"=>"cld-1", "id"=>"usr-1"} Filter chain halted as :authenticate_maestrano! rendered or redirected Completed 401 Unauthorized in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: class methods find_or_create_for_maestrano class method should create a monster using the mapping block. --------------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction 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 ? [["provider", "maestrano"], ["uid", "usr-2"], ["tenant", "default"], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 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-08-31 02:04:40 UTC], ["updated_at", 2016-08-31 02:04:40 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: class methods find_or_create_for_maestrano class method should not return a MnoMonster from another provider if it exists. --------------------------------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 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-08-31 02:04:40 UTC], ["updated_at", 2016-08-31 02:04:40 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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 ? [["provider", "maestrano"], ["uid", "usr-1"], ["tenant", "default"], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 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-08-31 02:04:40 UTC], ["updated_at", 2016-08-31 02:04:40 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: class methods find_or_create_for_maestrano class method should return the MnoMonster if it exists. --------------------------------------------------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "mno_monsters" ("first_name", "last_name", "email", "provider", "uid", "tenant", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["first_name", "John"], ["last_name", "Jack"], ["email", "monster@co.com"], ["provider", "maestrano"], ["uid", "usr-1"], ["tenant", "default"], ["created_at", 2016-08-31 02:04:40 UTC], ["updated_at", 2016-08-31 02:04:40 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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 ? [["provider", "maestrano"], ["uid", "usr-1"], ["tenant", "default"], ["LIMIT", 1]]  (0.1ms) rollback transaction --------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: class methods maestrano_*_via should have the right field definition. ---------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------------------------ MaestranoUserViaTest: test_: instance methods maestrano? should return false if provider is something else. ------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: instance methods maestrano? should return false if uid is blank. ----------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ----------------------------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: instance methods maestrano? should return true if provider is maestrano and uid not null. -----------------------------------------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------------------------------------------------- MaestranoGroupViaTest: test_: class methods find_or_create_for_maestrano class method should create a monster using the mapping block. ---------------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction 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 ? [["provider", "maestrano"], ["uid", "usr-2"], ["tenant", "default"], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 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-08-31 02:04:40 UTC], ["updated_at", 2016-08-31 02:04:40 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction ------------------------------------------------------------------------------------------------------------------------------------------------------ MaestranoGroupViaTest: test_: class methods find_or_create_for_maestrano class method should not return a MnoCrew from another provider if it exists. ------------------------------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 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-08-31 02:04:40 UTC], ["updated_at", 2016-08-31 02:04:40 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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 ? [["provider", "maestrano"], ["uid", "cld-1"], ["tenant", "default"], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 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-08-31 02:04:40 UTC], ["updated_at", 2016-08-31 02:04:40 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction ------------------------------------------------------------------------------------------------------------------------------ MaestranoGroupViaTest: test_: class methods find_or_create_for_maestrano class method should return the MnoCrew if it exists. ------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 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-08-31 02:04:40 UTC], ["updated_at", 2016-08-31 02:04:40 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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 ? [["provider", "maestrano"], ["uid", "cld-1"], ["tenant", "default"], ["LIMIT", 1]]  (0.1ms) rollback transaction ---------------------------------------------------------------------------------------------------- MaestranoGroupViaTest: test_: class methods maestrano_*_via should have the right field definition. ----------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------------------------- MaestranoGroupViaTest: test_: instance methods maestrano? should return false if provider is something else. -------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ----------------------------------------------------------------------------------------------- MaestranoGroupViaTest: test_: instance methods maestrano? should return false if uid is blank. -----------------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------------------------------------ MaestranoGroupViaTest: test_: instance methods maestrano? should return true if provider is maestrano and uid not null. ------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase error should redirect to maestrano on any error. ----------------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Cannot validate SAML response: Bla Trace: ["/home/bruno/.rvm/gems/ruby-2.3.1/gems/mocha-1.1.0/lib/mocha/exception_raiser.rb:12:in `evaluate'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/mocha-1.1.0/lib/mocha/return_values.rb:20:in `next'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/mocha-1.1.0/lib/mocha/expectation.rb:569:in `invoke'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/mocha-1.1.0/lib/mocha/mock.rb:296:in `method_missing'", "/home/bruno/Workspace/maestrano-rails/app/controllers/maestrano/rails/saml_base_controller.rb:35:in `process_saml_response'", "/home/bruno/Workspace/maestrano-rails/app/controllers/maestrano/rails/saml_base_controller.rb:18:in `saml_response_transaction'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-5.0.0.1/lib/active_support/callbacks.rb:382:in `block in make_lambda'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-5.0.0.1/lib/active_support/callbacks.rb:266:in `block in halting_and_conditional'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-5.0.0.1/lib/active_support/callbacks.rb:447:in `block in around'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-5.0.0.1/lib/active_support/callbacks.rb:455:in `call'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-5.0.0.1/lib/active_support/callbacks.rb:101:in `__run_callbacks__'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-5.0.0.1/lib/active_support/callbacks.rb:750:in `_run_process_action_callbacks'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-5.0.0.1/lib/active_support/callbacks.rb:90:in `run_callbacks'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionpack-5.0.0.1/lib/abstract_controller/callbacks.rb:19:in `process_action'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionpack-5.0.0.1/lib/action_controller/metal/rescue.rb:20:in `process_action'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionpack-5.0.0.1/lib/action_controller/metal/instrumentation.rb:32:in `block in process_action'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-5.0.0.1/lib/active_support/notifications.rb:164:in `block in instrument'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-5.0.0.1/lib/active_support/notifications/instrumenter.rb:21:in `instrument'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-5.0.0.1/lib/active_support/notifications.rb:164:in `instrument'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionpack-5.0.0.1/lib/action_controller/metal/instrumentation.rb:30:in `process_action'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionpack-5.0.0.1/lib/action_controller/metal/params_wrapper.rb:248:in `process_action'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activerecord-5.0.0.1/lib/active_record/railties/controller_runtime.rb:18:in `process_action'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionpack-5.0.0.1/lib/abstract_controller/base.rb:126:in `process'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionview-5.0.0.1/lib/action_view/rendering.rb:30:in `process'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionpack-5.0.0.1/lib/action_controller/metal.rb:190:in `dispatch'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionpack-5.0.0.1/lib/action_controller/test_case.rb:532:in `process'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionpack-5.0.0.1/lib/action_controller/test_case.rb:629:in `process_with_kwargs'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionpack-5.0.0.1/lib/action_controller/test_case.rb:389:in `post'", "/home/bruno/Workspace/maestrano-rails/test/controllers/saml_controller_test.rb:117:in `block (3 levels) in '", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/shoulda-context-1.2.1/lib/shoulda/context/context.rb:413:in `instance_exec'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/shoulda-context-1.2.1/lib/shoulda/context/context.rb:413:in `block in create_test_from_should_hash'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest/test.rb:107:in `block (3 levels) in run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest/test.rb:204:in `capture_exceptions'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest/test.rb:104:in `block (2 levels) in run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest/test.rb:255:in `time_it'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest/test.rb:103:in `block in run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:348:in `on_signal'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest/test.rb:275:in `with_info_handler'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest/test.rb:102:in `run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:799:in `run_one_method'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:322:in `run_one_method'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:310:in `block (2 levels) in run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:309:in `each'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:309:in `block in run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:348:in `on_signal'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:335:in `with_info_handler'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:308:in `run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/railties-5.0.0.1/lib/rails/test_unit/line_filtering.rb:11:in `run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:158:in `block in __run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:158:in `map'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:158:in `__run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:135:in `run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:62:in `block in autorun'"] Redirected to http://api-sandbox.maestrano.io/app_access_unauthorized?err=internal Completed 302 Found in 3ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should reset the maestrano session successfully if one already exists. --------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.1ms) rollback transaction --------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should set a saml_request in scope. ---------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction -------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should set the group_auth_hash in scope. --------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should set the maestrano session. -------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should set the user_auth_hash in scope. -------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------ SamlBaseControllerTest: test_: consume phase should set the user_group_rel_hash in scope. ------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: init phase should create a saml request successfully if a maestrano session is already set. ---------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#init as HTML Parameters: {"a_param"=>"value"} Redirected to http://idpprovider.com?r=request Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ----------------------------------------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: init phase should create a saml request using params and session and redirect the user. -----------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#init as HTML Parameters: {"a_param"=>"value"} Redirected to http://idpprovider.com?r=request Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------------- UserGeneratorTest: test_: UserGenerator should call the active_record migration generator successfully. --------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------- UserGeneratorTest: test_: UserGenerator should call the mongoid migration generator successfully. --------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction ---------------------------------------------------------------------------------------------------------- GroupGeneratorTest: test_: GroupGenerator should call the active_record migration generator successfully. ----------------------------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------------- GroupGeneratorTest: test_: GroupGenerator should call the mongoid migration generator successfully. ----------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------------------------------- GenericControllerTest: test_: with a maestrano session should be successful if the maestrano session is still valid. ---------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by PagesController#home as HTML Rendering pages/home.html.erb within layouts/application Rendered pages/home.html.erb within layouts/application (0.8ms) Completed 200 OK in 98ms (Views: 97.7ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction -------------------------------------------------------------------------------------------------------------------- GenericControllerTest: test_: with a maestrano session should initialize redirect to SSO initialization if invalid. --------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by PagesController#home as HTML Redirected to http://localhost:3000/maestrano/auth/saml/init/default Filter chain halted as :verify_maestrano_session rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ----------------------------------------------------------------------------------------------------------- GenericControllerTest: test_: with a maestrano session should not redirect to SSO init if sso is disabled. -----------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by PagesController#home as HTML Rendering pages/home.html.erb within layouts/application Rendered pages/home.html.erb within layouts/application (0.0ms) Completed 200 OK in 1ms (Views: 0.9ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------------------ GenericControllerTest: test_: with no maestrano session should be successful. ------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by PagesController#home as HTML Rendering pages/home.html.erb within layouts/application Rendered pages/home.html.erb within layouts/application (0.0ms) Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------ MaestranoRailsTest: test_truth ------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------- InstallGeneratorTest: test_: InstallGenerator should create the maestrano initializer. ---------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction ---------------------------------------------------------------------------------- InstallGeneratorTest: test_: InstallGenerator should create the maestrano routes. ----------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------------------- InstallGeneratorTest: test_: InstallGenerator should create the maestrano/account/group_users_controller. ----------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ----------------------------------------------------------------------------------------------------- InstallGeneratorTest: test_: InstallGenerator should create the maestrano/account/groups_controller. -----------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------------ InstallGeneratorTest: test_: InstallGenerator should create the maestrano/auth/saml_controller. ------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction ------------------------------------------------------------------- MetadataControllerTest: test_: authenticated should be successful. -------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Rails::MetadataController#index as HTML Completed 200 OK in 2ms (Views: 0.6ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction ------------------------------------------------------------------- MetadataControllerTest: test_: unauthenticated should deny access. -------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Rails::MetadataController#index as HTML Filter chain halted as :authenticate_maestrano! rendered or redirected Completed 401 Unauthorized in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" --------------------------------------------------------------------------------------------------------------------------------------- MaestranoGroupViaTest: test_: class methods find_or_create_for_maestrano class method should create a monster using the mapping block. ---------------------------------------------------------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction 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 ? [["provider", "maestrano"], ["uid", "usr-2"], ["tenant", "default"], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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-08-31 02:05:04 UTC], ["updated_at", 2016-08-31 02:05:04 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction ------------------------------------------------------------------------------------------------------------------------------------------------------ MaestranoGroupViaTest: test_: class methods find_or_create_for_maestrano class method should not return a MnoCrew from another provider if it exists. ------------------------------------------------------------------------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "mno_crews" ("name", "provider", "uid", "tenant", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["name", "SomeOtherCrew"], ["provider", "someoneelse"], ["uid", "usr-1"], ["tenant", "default"], ["created_at", 2016-08-31 02:05:04 UTC], ["updated_at", 2016-08-31 02:05:04 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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 ? [["provider", "maestrano"], ["uid", "cld-1"], ["tenant", "default"], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 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-08-31 02:05:04 UTC], ["updated_at", 2016-08-31 02:05:04 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction ------------------------------------------------------------------------------------------------------------------------------ MaestranoGroupViaTest: test_: class methods find_or_create_for_maestrano class method should return the MnoCrew if it exists. ------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 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-08-31 02:05:04 UTC], ["updated_at", 2016-08-31 02:05:04 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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 ? [["provider", "maestrano"], ["uid", "cld-1"], ["tenant", "default"], ["LIMIT", 1]]  (0.1ms) rollback transaction ---------------------------------------------------------------------------------------------------- MaestranoGroupViaTest: test_: class methods maestrano_*_via should have the right field definition. ----------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------------------------- MaestranoGroupViaTest: test_: instance methods maestrano? should return false if provider is something else. -------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ----------------------------------------------------------------------------------------------- MaestranoGroupViaTest: test_: instance methods maestrano? should return false if uid is blank. -----------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------------------------------------ MaestranoGroupViaTest: test_: instance methods maestrano? should return true if provider is maestrano and uid not null. ------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------- MetadataControllerTest: test_: authenticated should be successful. -------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Rails::MetadataController#index as HTML Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------- MetadataControllerTest: test_: unauthenticated should deny access. -------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction Processing by Maestrano::Rails::MetadataController#index as HTML Filter chain halted as :authenticate_maestrano! rendered or redirected Completed 401 Unauthorized in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------------------- GroupGeneratorTest: test_: GroupGenerator should call the active_record migration generator successfully. ----------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------------- GroupGeneratorTest: test_: GroupGenerator should call the mongoid migration generator successfully. ----------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction --------------------------------------------------------------------------------------- InstallGeneratorTest: test_: InstallGenerator should create the maestrano initializer. ---------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction ---------------------------------------------------------------------------------- InstallGeneratorTest: test_: InstallGenerator should create the maestrano routes. ----------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------------------- InstallGeneratorTest: test_: InstallGenerator should create the maestrano/account/group_users_controller. ----------------------------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ----------------------------------------------------------------------------------------------------- InstallGeneratorTest: test_: InstallGenerator should create the maestrano/account/groups_controller. -----------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------------ InstallGeneratorTest: test_: InstallGenerator should create the maestrano/auth/saml_controller. ------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------ ActiveRecordUserGeneratorTest: test_: namespaced model should create the right migration. ------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: namespaced model should edit the model content. --------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should create the right migration. --------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should edit the model content. ----------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should include parameters if rails 3 and strong_parameter not present. --------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should not include parameters if rails 3 and strong_parameter present. --------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should not include parameters in rails 4. ---------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: namespaced model should create the right migration. -------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: namespaced model should edit the model content. ---------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should create the right migration. ---------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ----------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should edit the model content. -----------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should include parameters if rails 3 and strong_parameter not present. ---------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should not include parameters if rails 3 and strong_parameter present. ---------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction ---------------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should not include parameters in rails 4. ----------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------------- UserGeneratorTest: test_: UserGenerator should call the active_record migration generator successfully. --------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------- UserGeneratorTest: test_: UserGenerator should call the mongoid migration generator successfully. --------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------- GroupUsersControllerTest: test_: authenticated should be successful. ---------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Account::GroupUsersController#destroy as HTML Parameters: {"group_id"=>"cld-1", "id"=>"usr-1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction --------------------------------------------------------------------- GroupUsersControllerTest: test_: unauthenticated should deny access. ---------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Account::GroupUsersController#destroy as HTML Parameters: {"group_id"=>"cld-1", "id"=>"usr-1"} Filter chain halted as :authenticate_maestrano! rendered or redirected Completed 401 Unauthorized in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------ MaestranoRailsTest: test_truth ------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase error should redirect to maestrano on any error. ----------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Cannot validate SAML response: Bla Trace: ["/home/bruno/.rvm/gems/ruby-2.3.1/gems/mocha-1.1.0/lib/mocha/exception_raiser.rb:12:in `evaluate'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/mocha-1.1.0/lib/mocha/return_values.rb:20:in `next'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/mocha-1.1.0/lib/mocha/expectation.rb:569:in `invoke'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/mocha-1.1.0/lib/mocha/mock.rb:296:in `method_missing'", "/home/bruno/Workspace/maestrano-rails/app/controllers/maestrano/rails/saml_base_controller.rb:35:in `process_saml_response'", "/home/bruno/Workspace/maestrano-rails/app/controllers/maestrano/rails/saml_base_controller.rb:18:in `saml_response_transaction'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-5.0.0.1/lib/active_support/callbacks.rb:382:in `block in make_lambda'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-5.0.0.1/lib/active_support/callbacks.rb:266:in `block in halting_and_conditional'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-5.0.0.1/lib/active_support/callbacks.rb:447:in `block in around'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-5.0.0.1/lib/active_support/callbacks.rb:455:in `call'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-5.0.0.1/lib/active_support/callbacks.rb:101:in `__run_callbacks__'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-5.0.0.1/lib/active_support/callbacks.rb:750:in `_run_process_action_callbacks'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-5.0.0.1/lib/active_support/callbacks.rb:90:in `run_callbacks'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionpack-5.0.0.1/lib/abstract_controller/callbacks.rb:19:in `process_action'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionpack-5.0.0.1/lib/action_controller/metal/rescue.rb:20:in `process_action'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionpack-5.0.0.1/lib/action_controller/metal/instrumentation.rb:32:in `block in process_action'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-5.0.0.1/lib/active_support/notifications.rb:164:in `block in instrument'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-5.0.0.1/lib/active_support/notifications/instrumenter.rb:21:in `instrument'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-5.0.0.1/lib/active_support/notifications.rb:164:in `instrument'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionpack-5.0.0.1/lib/action_controller/metal/instrumentation.rb:30:in `process_action'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionpack-5.0.0.1/lib/action_controller/metal/params_wrapper.rb:248:in `process_action'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activerecord-5.0.0.1/lib/active_record/railties/controller_runtime.rb:18:in `process_action'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionpack-5.0.0.1/lib/abstract_controller/base.rb:126:in `process'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionview-5.0.0.1/lib/action_view/rendering.rb:30:in `process'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionpack-5.0.0.1/lib/action_controller/metal.rb:190:in `dispatch'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionpack-5.0.0.1/lib/action_controller/test_case.rb:532:in `process'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionpack-5.0.0.1/lib/action_controller/test_case.rb:629:in `process_with_kwargs'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionpack-5.0.0.1/lib/action_controller/test_case.rb:389:in `post'", "/home/bruno/Workspace/maestrano-rails/test/controllers/saml_controller_test.rb:117:in `block (3 levels) in '", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/shoulda-context-1.2.1/lib/shoulda/context/context.rb:413:in `instance_exec'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/shoulda-context-1.2.1/lib/shoulda/context/context.rb:413:in `block in create_test_from_should_hash'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest/test.rb:107:in `block (3 levels) in run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest/test.rb:204:in `capture_exceptions'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest/test.rb:104:in `block (2 levels) in run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest/test.rb:255:in `time_it'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest/test.rb:103:in `block in run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:348:in `on_signal'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest/test.rb:275:in `with_info_handler'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest/test.rb:102:in `run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:799:in `run_one_method'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:322:in `run_one_method'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:310:in `block (2 levels) in run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:309:in `each'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:309:in `block in run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:348:in `on_signal'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:335:in `with_info_handler'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:308:in `run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/railties-5.0.0.1/lib/rails/test_unit/line_filtering.rb:11:in `run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:158:in `block in __run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:158:in `map'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:158:in `__run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:135:in `run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:62:in `block in autorun'"] Redirected to http://api-sandbox.maestrano.io/app_access_unauthorized?err=internal Completed 302 Found in 4ms (ActiveRecord: 0.0ms)  (0.2ms) rollback transaction -------------------------------------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should reset the maestrano session successfully if one already exists. --------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction --------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should set a saml_request in scope. ---------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction -------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should set the group_auth_hash in scope. --------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should set the maestrano session. -------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should set the user_auth_hash in scope. -------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------ SamlBaseControllerTest: test_: consume phase should set the user_group_rel_hash in scope. ------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: init phase should create a saml request successfully if a maestrano session is already set. ---------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#init as HTML Parameters: {"a_param"=>"value"} Redirected to http://idpprovider.com?r=request Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ----------------------------------------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: init phase should create a saml request using params and session and redirect the user. -----------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#init as HTML Parameters: {"a_param"=>"value"} Redirected to http://idpprovider.com?r=request Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ----------------------------------------------------------------- GroupsControllerTest: test_: authenticated should be successful. -----------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Account::GroupsController#destroy as HTML Parameters: {"id"=>"cld-1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ----------------------------------------------------------------- GroupsControllerTest: test_: unauthenticated should deny access. -----------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Account::GroupsController#destroy as HTML Parameters: {"id"=>"cld-1"} Filter chain halted as :authenticate_maestrano! rendered or redirected Completed 401 Unauthorized in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------------------------------- GenericControllerTest: test_: with a maestrano session should be successful if the maestrano session is still valid. ---------------------------------------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by PagesController#home as HTML Rendering pages/home.html.erb within layouts/application Rendered pages/home.html.erb within layouts/application (1.5ms) Completed 200 OK in 104ms (Views: 102.9ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction -------------------------------------------------------------------------------------------------------------------- GenericControllerTest: test_: with a maestrano session should initialize redirect to SSO initialization if invalid. --------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by PagesController#home as HTML Rendering pages/home.html.erb within layouts/application Rendered pages/home.html.erb within layouts/application (0.0ms) Completed 200 OK in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ----------------------------------------------------------------------------------------------------------- GenericControllerTest: test_: with a maestrano session should not redirect to SSO init if sso is disabled. -----------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by PagesController#home as HTML Rendering pages/home.html.erb within layouts/application Rendered pages/home.html.erb within layouts/application (0.0ms) Completed 200 OK in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------------------ GenericControllerTest: test_: with no maestrano session should be successful. ------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by PagesController#home as HTML Rendering pages/home.html.erb within layouts/application Rendered pages/home.html.erb within layouts/application (0.0ms) Completed 200 OK in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: class methods find_or_create_for_maestrano class method should create a monster using the mapping block. --------------------------------------------------------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction 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 ? [["provider", "maestrano"], ["uid", "usr-2"], ["tenant", "default"], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 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-08-31 02:05:04 UTC], ["updated_at", 2016-08-31 02:05:04 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: class methods find_or_create_for_maestrano class method should not return a MnoMonster from another provider if it exists. --------------------------------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "mno_monsters" ("first_name", "last_name", "email", "provider", "uid", "tenant", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["first_name", "John"], ["last_name", "Jack"], ["email", "monster@co.com"], ["provider", "someoneelse"], ["uid", "usr-1"], ["tenant", "default"], ["created_at", 2016-08-31 02:05:04 UTC], ["updated_at", 2016-08-31 02:05:04 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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 ? [["provider", "maestrano"], ["uid", "usr-1"], ["tenant", "default"], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 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-08-31 02:05:04 UTC], ["updated_at", 2016-08-31 02:05:04 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: class methods find_or_create_for_maestrano class method should return the MnoMonster if it exists. --------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "mno_monsters" ("first_name", "last_name", "email", "provider", "uid", "tenant", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["first_name", "John"], ["last_name", "Jack"], ["email", "monster@co.com"], ["provider", "maestrano"], ["uid", "usr-1"], ["tenant", "default"], ["created_at", 2016-08-31 02:05:04 UTC], ["updated_at", 2016-08-31 02:05:04 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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 ? [["provider", "maestrano"], ["uid", "usr-1"], ["tenant", "default"], ["LIMIT", 1]]  (0.1ms) rollback transaction --------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: class methods maestrano_*_via should have the right field definition. ---------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------------------------ MaestranoUserViaTest: test_: instance methods maestrano? should return false if provider is something else. ------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: instance methods maestrano? should return false if uid is blank. ----------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ----------------------------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: instance methods maestrano? should return true if provider is maestrano and uid not null. -----------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ---------------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase error should redirect to maestrano on any error. ----------------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Cannot validate SAML response: Bla Trace: ["/home/bruno/.rvm/gems/ruby-2.3.1/gems/mocha-1.1.0/lib/mocha/exception_raiser.rb:12:in `evaluate'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/mocha-1.1.0/lib/mocha/return_values.rb:20:in `next'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/mocha-1.1.0/lib/mocha/expectation.rb:569:in `invoke'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/mocha-1.1.0/lib/mocha/mock.rb:296:in `method_missing'", "/home/bruno/Workspace/maestrano-rails/app/controllers/maestrano/rails/saml_base_controller.rb:35:in `process_saml_response'", "/home/bruno/Workspace/maestrano-rails/app/controllers/maestrano/rails/saml_base_controller.rb:18:in `saml_response_transaction'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-5.0.0.1/lib/active_support/callbacks.rb:382:in `block in make_lambda'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-5.0.0.1/lib/active_support/callbacks.rb:266:in `block in halting_and_conditional'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-5.0.0.1/lib/active_support/callbacks.rb:447:in `block in around'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-5.0.0.1/lib/active_support/callbacks.rb:455:in `call'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-5.0.0.1/lib/active_support/callbacks.rb:101:in `__run_callbacks__'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-5.0.0.1/lib/active_support/callbacks.rb:750:in `_run_process_action_callbacks'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-5.0.0.1/lib/active_support/callbacks.rb:90:in `run_callbacks'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionpack-5.0.0.1/lib/abstract_controller/callbacks.rb:19:in `process_action'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionpack-5.0.0.1/lib/action_controller/metal/rescue.rb:20:in `process_action'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionpack-5.0.0.1/lib/action_controller/metal/instrumentation.rb:32:in `block in process_action'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-5.0.0.1/lib/active_support/notifications.rb:164:in `block in instrument'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-5.0.0.1/lib/active_support/notifications/instrumenter.rb:21:in `instrument'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-5.0.0.1/lib/active_support/notifications.rb:164:in `instrument'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionpack-5.0.0.1/lib/action_controller/metal/instrumentation.rb:30:in `process_action'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionpack-5.0.0.1/lib/action_controller/metal/params_wrapper.rb:248:in `process_action'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activerecord-5.0.0.1/lib/active_record/railties/controller_runtime.rb:18:in `process_action'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionpack-5.0.0.1/lib/abstract_controller/base.rb:126:in `process'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionview-5.0.0.1/lib/action_view/rendering.rb:30:in `process'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionpack-5.0.0.1/lib/action_controller/metal.rb:190:in `dispatch'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionpack-5.0.0.1/lib/action_controller/test_case.rb:532:in `process'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionpack-5.0.0.1/lib/action_controller/test_case.rb:629:in `process_with_kwargs'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionpack-5.0.0.1/lib/action_controller/test_case.rb:389:in `post'", "/home/bruno/Workspace/maestrano-rails/test/controllers/saml_controller_test.rb:117:in `block (3 levels) in '", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/shoulda-context-1.2.1/lib/shoulda/context/context.rb:413:in `instance_exec'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/shoulda-context-1.2.1/lib/shoulda/context/context.rb:413:in `block in create_test_from_should_hash'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest/test.rb:107:in `block (3 levels) in run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest/test.rb:204:in `capture_exceptions'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest/test.rb:104:in `block (2 levels) in run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest/test.rb:255:in `time_it'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest/test.rb:103:in `block in run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:348:in `on_signal'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest/test.rb:275:in `with_info_handler'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest/test.rb:102:in `run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:799:in `run_one_method'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:322:in `run_one_method'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:310:in `block (2 levels) in run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:309:in `each'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:309:in `block in run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:348:in `on_signal'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:335:in `with_info_handler'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:308:in `run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/railties-5.0.0.1/lib/rails/test_unit/line_filtering.rb:11:in `run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:158:in `block in __run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:158:in `map'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:158:in `__run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:135:in `run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:62:in `block in autorun'"] Redirected to http://api-sandbox.maestrano.io/app_access_unauthorized?err=internal Completed 302 Found in 3ms (ActiveRecord: 0.0ms)  (0.1ms) rollback transaction -------------------------------------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should reset the maestrano session successfully if one already exists. --------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction --------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should set a saml_request in scope. ---------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction -------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should set the group_auth_hash in scope. --------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should set the maestrano session. -------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should set the user_auth_hash in scope. -------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------ SamlBaseControllerTest: test_: consume phase should set the user_group_rel_hash in scope. ------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: init phase should create a saml request successfully if a maestrano session is already set. ---------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#init as HTML Parameters: {"a_param"=>"value"} Redirected to http://idpprovider.com?r=request Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ----------------------------------------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: init phase should create a saml request using params and session and redirect the user. -----------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#init as HTML Parameters: {"a_param"=>"value"} Redirected to http://idpprovider.com?r=request Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------------- UserGeneratorTest: test_: UserGenerator should call the active_record migration generator successfully. --------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction -------------------------------------------------------------------------------------------------- UserGeneratorTest: test_: UserGenerator should call the mongoid migration generator successfully. --------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------------------------------- GenericControllerTest: test_: with a maestrano session should be successful if the maestrano session is still valid. ---------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by PagesController#home as HTML Rendering pages/home.html.erb within layouts/application Rendered pages/home.html.erb within layouts/application (0.7ms) Completed 200 OK in 98ms (Views: 97.8ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction -------------------------------------------------------------------------------------------------------------------- GenericControllerTest: test_: with a maestrano session should initialize redirect to SSO initialization if invalid. --------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by PagesController#home as HTML Rendering pages/home.html.erb within layouts/application Rendered pages/home.html.erb within layouts/application (0.0ms) Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ----------------------------------------------------------------------------------------------------------- GenericControllerTest: test_: with a maestrano session should not redirect to SSO init if sso is disabled. -----------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by PagesController#home as HTML Rendering pages/home.html.erb within layouts/application Rendered pages/home.html.erb within layouts/application (0.0ms) Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------------------ GenericControllerTest: test_: with no maestrano session should be successful. ------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by PagesController#home as HTML Rendering pages/home.html.erb within layouts/application Rendered pages/home.html.erb within layouts/application (0.0ms) Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------ ActiveRecordUserGeneratorTest: test_: namespaced model should create the right migration. ------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: namespaced model should edit the model content. --------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should create the right migration. --------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should edit the model content. ----------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should include parameters if rails 3 and strong_parameter not present. --------------------------------------------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should not include parameters if rails 3 and strong_parameter present. --------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should not include parameters in rails 4. ---------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: class methods find_or_create_for_maestrano class method should create a monster using the mapping block. --------------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction 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 ? [["provider", "maestrano"], ["uid", "usr-2"], ["tenant", "default"], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 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-08-31 02:05:34 UTC], ["updated_at", 2016-08-31 02:05:34 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: class methods find_or_create_for_maestrano class method should not return a MnoMonster from another provider if it exists. --------------------------------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 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-08-31 02:05:34 UTC], ["updated_at", 2016-08-31 02:05:34 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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 ? [["provider", "maestrano"], ["uid", "usr-1"], ["tenant", "default"], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 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-08-31 02:05:34 UTC], ["updated_at", 2016-08-31 02:05:34 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: class methods find_or_create_for_maestrano class method should return the MnoMonster if it exists. --------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 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-08-31 02:05:34 UTC], ["updated_at", 2016-08-31 02:05:34 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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 ? [["provider", "maestrano"], ["uid", "usr-1"], ["tenant", "default"], ["LIMIT", 1]]  (0.1ms) rollback transaction --------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: class methods maestrano_*_via should have the right field definition. ---------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------------------------ MaestranoUserViaTest: test_: instance methods maestrano? should return false if provider is something else. ------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: instance methods maestrano? should return false if uid is blank. ----------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ----------------------------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: instance methods maestrano? should return true if provider is maestrano and uid not null. -----------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------- MetadataControllerTest: test_: authenticated should be successful. -------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Rails::MetadataController#index as HTML Filter chain halted as :authenticate_maestrano! rendered or redirected Completed 401 Unauthorized in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------- MetadataControllerTest: test_: unauthenticated should deny access. -------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Rails::MetadataController#index as HTML Filter chain halted as :authenticate_maestrano! rendered or redirected Completed 401 Unauthorized in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction ---------------------------------------------------------------------------------- InstallGeneratorTest: test_: InstallGenerator should create the maestrano routes. ----------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction ---------------------------------------------------------------------------------------------------------- InstallGeneratorTest: test_: InstallGenerator should create the maestrano/account/group_users_controller. ----------------------------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction ----------------------------------------------------------------------------------------------------- InstallGeneratorTest: test_: InstallGenerator should create the maestrano/account/groups_controller. -----------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------------ InstallGeneratorTest: test_: InstallGenerator should create the maestrano/auth/saml_controller. ------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------ MaestranoRailsTest: test_truth ------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ----------------------------------------------------------------- GroupsControllerTest: test_: authenticated should be successful. -----------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Account::GroupsController#destroy as HTML Parameters: {"id"=>"cld-1"} Filter chain halted as :authenticate_maestrano! rendered or redirected Completed 401 Unauthorized in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ----------------------------------------------------------------- GroupsControllerTest: test_: unauthenticated should deny access. -----------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Account::GroupsController#destroy as HTML Parameters: {"id"=>"cld-1"} Filter chain halted as :authenticate_maestrano! rendered or redirected Completed 401 Unauthorized in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: namespaced model should create the right migration. -------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: namespaced model should edit the model content. ---------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should create the right migration. ---------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction ----------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should edit the model content. -----------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction --------------------------------------------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should include parameters if rails 3 and strong_parameter not present. ---------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction --------------------------------------------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should not include parameters if rails 3 and strong_parameter present. ---------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should not include parameters in rails 4. ----------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------------------- GroupGeneratorTest: test_: GroupGenerator should call the active_record migration generator successfully. ----------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------------- GroupGeneratorTest: test_: GroupGenerator should call the mongoid migration generator successfully. ----------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction --------------------------------------------------------------------- GroupUsersControllerTest: test_: authenticated should be successful. ---------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Account::GroupUsersController#destroy as HTML Parameters: {"group_id"=>"cld-1", "id"=>"usr-1"} Filter chain halted as :authenticate_maestrano! rendered or redirected Completed 401 Unauthorized in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction --------------------------------------------------------------------- GroupUsersControllerTest: test_: unauthenticated should deny access. ---------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Account::GroupUsersController#destroy as HTML Parameters: {"group_id"=>"cld-1", "id"=>"usr-1"} Filter chain halted as :authenticate_maestrano! rendered or redirected Completed 401 Unauthorized in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------------------------------------------------- MaestranoGroupViaTest: test_: class methods find_or_create_for_maestrano class method should create a monster using the mapping block. ---------------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction 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 ? [["provider", "maestrano"], ["uid", "usr-2"], ["tenant", "default"], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 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-08-31 02:05:34 UTC], ["updated_at", 2016-08-31 02:05:34 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction ------------------------------------------------------------------------------------------------------------------------------------------------------ MaestranoGroupViaTest: test_: class methods find_or_create_for_maestrano class method should not return a MnoCrew from another provider if it exists. ------------------------------------------------------------------------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 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-08-31 02:05:34 UTC], ["updated_at", 2016-08-31 02:05:34 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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 ? [["provider", "maestrano"], ["uid", "cld-1"], ["tenant", "default"], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 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-08-31 02:05:34 UTC], ["updated_at", 2016-08-31 02:05:34 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction ------------------------------------------------------------------------------------------------------------------------------ MaestranoGroupViaTest: test_: class methods find_or_create_for_maestrano class method should return the MnoCrew if it exists. ------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 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-08-31 02:05:34 UTC], ["updated_at", 2016-08-31 02:05:34 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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 ? [["provider", "maestrano"], ["uid", "cld-1"], ["tenant", "default"], ["LIMIT", 1]]  (0.1ms) rollback transaction ---------------------------------------------------------------------------------------------------- MaestranoGroupViaTest: test_: class methods maestrano_*_via should have the right field definition. ----------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------------------------- MaestranoGroupViaTest: test_: instance methods maestrano? should return false if provider is something else. -------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ----------------------------------------------------------------------------------------------- MaestranoGroupViaTest: test_: instance methods maestrano? should return false if uid is blank. -----------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------------------------------------ MaestranoGroupViaTest: test_: instance methods maestrano? should return true if provider is maestrano and uid not null. ------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" --------------------------------------------------------------------------------------------------------------------- GenericControllerTest: test_: with a maestrano session should be successful if the maestrano session is still valid. ---------------------------------------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by PagesController#home as HTML Rendering pages/home.html.erb within layouts/application Rendered pages/home.html.erb within layouts/application (1.0ms) Completed 200 OK in 103ms (Views: 102.7ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction -------------------------------------------------------------------------------------------------------------------- GenericControllerTest: test_: with a maestrano session should initialize redirect to SSO initialization if invalid. --------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by PagesController#home as HTML Rendering pages/home.html.erb within layouts/application Rendered pages/home.html.erb within layouts/application (0.0ms) Completed 200 OK in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ----------------------------------------------------------------------------------------------------------- GenericControllerTest: test_: with a maestrano session should not redirect to SSO init if sso is disabled. -----------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by PagesController#home as HTML Rendering pages/home.html.erb within layouts/application Rendered pages/home.html.erb within layouts/application (0.0ms) Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------------------ GenericControllerTest: test_: with no maestrano session should be successful. ------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by PagesController#home as HTML Rendering pages/home.html.erb within layouts/application Rendered pages/home.html.erb within layouts/application (0.0ms) Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ---------------------------------------------------------------------------------- InstallGeneratorTest: test_: InstallGenerator should create the maestrano routes. ----------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction ---------------------------------------------------------------------------------------------------------- InstallGeneratorTest: test_: InstallGenerator should create the maestrano/account/group_users_controller. ----------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction ----------------------------------------------------------------------------------------------------- InstallGeneratorTest: test_: InstallGenerator should create the maestrano/account/groups_controller. -----------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------------ InstallGeneratorTest: test_: InstallGenerator should create the maestrano/auth/saml_controller. ------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: namespaced model should create the right migration. -------------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction --------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: namespaced model should edit the model content. ---------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction --------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should create the right migration. ---------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ----------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should edit the model content. -----------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should include parameters if rails 3 and strong_parameter not present. ---------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should not include parameters if rails 3 and strong_parameter present. ---------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should not include parameters in rails 4. ----------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------------------------------------------------- MaestranoGroupViaTest: test_: class methods find_or_create_for_maestrano class method should create a monster using the mapping block. ---------------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction 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 ? [["provider", "maestrano"], ["uid", "usr-2"], ["tenant", "default"], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 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-08-31 02:05:53 UTC], ["updated_at", 2016-08-31 02:05:53 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction ------------------------------------------------------------------------------------------------------------------------------------------------------ MaestranoGroupViaTest: test_: class methods find_or_create_for_maestrano class method should not return a MnoCrew from another provider if it exists. ------------------------------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 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-08-31 02:05:53 UTC], ["updated_at", 2016-08-31 02:05:53 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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 ? [["provider", "maestrano"], ["uid", "cld-1"], ["tenant", "default"], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 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-08-31 02:05:53 UTC], ["updated_at", 2016-08-31 02:05:53 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction ------------------------------------------------------------------------------------------------------------------------------ MaestranoGroupViaTest: test_: class methods find_or_create_for_maestrano class method should return the MnoCrew if it exists. ------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "mno_crews" ("name", "provider", "uid", "tenant", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["name", "SomeCrew"], ["provider", "maestrano"], ["uid", "cld-1"], ["tenant", "default"], ["created_at", 2016-08-31 02:05:53 UTC], ["updated_at", 2016-08-31 02:05:53 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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 ? [["provider", "maestrano"], ["uid", "cld-1"], ["tenant", "default"], ["LIMIT", 1]]  (0.1ms) rollback transaction ---------------------------------------------------------------------------------------------------- MaestranoGroupViaTest: test_: class methods maestrano_*_via should have the right field definition. ----------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------------------------- MaestranoGroupViaTest: test_: instance methods maestrano? should return false if provider is something else. -------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ----------------------------------------------------------------------------------------------- MaestranoGroupViaTest: test_: instance methods maestrano? should return false if uid is blank. -----------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------------------------------------ MaestranoGroupViaTest: test_: instance methods maestrano? should return true if provider is maestrano and uid not null. ------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------ ActiveRecordUserGeneratorTest: test_: namespaced model should create the right migration. ------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: namespaced model should edit the model content. --------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should create the right migration. --------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should edit the model content. ----------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should include parameters if rails 3 and strong_parameter not present. --------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should not include parameters if rails 3 and strong_parameter present. --------------------------------------------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should not include parameters in rails 4. ---------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------------- UserGeneratorTest: test_: UserGenerator should call the active_record migration generator successfully. --------------------------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction -------------------------------------------------------------------------------------------------- UserGeneratorTest: test_: UserGenerator should call the mongoid migration generator successfully. --------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase error should redirect to maestrano on any error. ----------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Cannot validate SAML response: Bla Trace: ["/home/bruno/.rvm/gems/ruby-2.3.1/gems/mocha-1.1.0/lib/mocha/exception_raiser.rb:12:in `evaluate'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/mocha-1.1.0/lib/mocha/return_values.rb:20:in `next'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/mocha-1.1.0/lib/mocha/expectation.rb:569:in `invoke'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/mocha-1.1.0/lib/mocha/mock.rb:296:in `method_missing'", "/home/bruno/Workspace/maestrano-rails/app/controllers/maestrano/rails/saml_base_controller.rb:35:in `process_saml_response'", "/home/bruno/Workspace/maestrano-rails/app/controllers/maestrano/rails/saml_base_controller.rb:18:in `saml_response_transaction'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-5.0.0.1/lib/active_support/callbacks.rb:382:in `block in make_lambda'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-5.0.0.1/lib/active_support/callbacks.rb:266:in `block in halting_and_conditional'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-5.0.0.1/lib/active_support/callbacks.rb:447:in `block in around'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-5.0.0.1/lib/active_support/callbacks.rb:455:in `call'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-5.0.0.1/lib/active_support/callbacks.rb:101:in `__run_callbacks__'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-5.0.0.1/lib/active_support/callbacks.rb:750:in `_run_process_action_callbacks'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-5.0.0.1/lib/active_support/callbacks.rb:90:in `run_callbacks'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionpack-5.0.0.1/lib/abstract_controller/callbacks.rb:19:in `process_action'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionpack-5.0.0.1/lib/action_controller/metal/rescue.rb:20:in `process_action'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionpack-5.0.0.1/lib/action_controller/metal/instrumentation.rb:32:in `block in process_action'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-5.0.0.1/lib/active_support/notifications.rb:164:in `block in instrument'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-5.0.0.1/lib/active_support/notifications/instrumenter.rb:21:in `instrument'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-5.0.0.1/lib/active_support/notifications.rb:164:in `instrument'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionpack-5.0.0.1/lib/action_controller/metal/instrumentation.rb:30:in `process_action'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionpack-5.0.0.1/lib/action_controller/metal/params_wrapper.rb:248:in `process_action'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activerecord-5.0.0.1/lib/active_record/railties/controller_runtime.rb:18:in `process_action'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionpack-5.0.0.1/lib/abstract_controller/base.rb:126:in `process'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionview-5.0.0.1/lib/action_view/rendering.rb:30:in `process'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionpack-5.0.0.1/lib/action_controller/metal.rb:190:in `dispatch'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionpack-5.0.0.1/lib/action_controller/test_case.rb:532:in `process'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionpack-5.0.0.1/lib/action_controller/test_case.rb:629:in `process_with_kwargs'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionpack-5.0.0.1/lib/action_controller/test_case.rb:389:in `post'", "/home/bruno/Workspace/maestrano-rails/test/controllers/saml_controller_test.rb:117:in `block (3 levels) in '", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/shoulda-context-1.2.1/lib/shoulda/context/context.rb:413:in `instance_exec'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/shoulda-context-1.2.1/lib/shoulda/context/context.rb:413:in `block in create_test_from_should_hash'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest/test.rb:107:in `block (3 levels) in run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest/test.rb:204:in `capture_exceptions'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest/test.rb:104:in `block (2 levels) in run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest/test.rb:255:in `time_it'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest/test.rb:103:in `block in run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:348:in `on_signal'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest/test.rb:275:in `with_info_handler'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest/test.rb:102:in `run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:799:in `run_one_method'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:322:in `run_one_method'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:310:in `block (2 levels) in run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:309:in `each'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:309:in `block in run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:348:in `on_signal'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:335:in `with_info_handler'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:308:in `run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/railties-5.0.0.1/lib/rails/test_unit/line_filtering.rb:11:in `run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:158:in `block in __run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:158:in `map'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:158:in `__run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:135:in `run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:62:in `block in autorun'"] Redirected to http://api-sandbox.maestrano.io/app_access_unauthorized?err=internal Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should reset the maestrano session successfully if one already exists. --------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction --------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should set a saml_request in scope. ---------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction -------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should set the group_auth_hash in scope. --------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should set the maestrano session. -------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should set the user_auth_hash in scope. -------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------ SamlBaseControllerTest: test_: consume phase should set the user_group_rel_hash in scope. ------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.1ms) rollback transaction --------------------------------------------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: init phase should create a saml request successfully if a maestrano session is already set. ---------------------------------------------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#init as HTML Parameters: {"a_param"=>"value"} Redirected to http://idpprovider.com?r=request Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.1ms) rollback transaction ----------------------------------------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: init phase should create a saml request using params and session and redirect the user. -----------------------------------------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction Processing by Maestrano::Auth::SamlController#init as HTML Parameters: {"a_param"=>"value"} Redirected to http://idpprovider.com?r=request Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------ MaestranoRailsTest: test_truth ------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------- GroupUsersControllerTest: test_: authenticated should be successful. ---------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Account::GroupUsersController#destroy as HTML Parameters: {"group_id"=>"cld-1", "id"=>"usr-1"} Filter chain halted as :authenticate_maestrano! rendered or redirected Completed 401 Unauthorized in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction --------------------------------------------------------------------- GroupUsersControllerTest: test_: unauthenticated should deny access. ---------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Account::GroupUsersController#destroy as HTML Parameters: {"group_id"=>"cld-1", "id"=>"usr-1"} Filter chain halted as :authenticate_maestrano! rendered or redirected Completed 401 Unauthorized in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction ---------------------------------------------------------------------------------------------------------- GroupGeneratorTest: test_: GroupGenerator should call the active_record migration generator successfully. ----------------------------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------------- GroupGeneratorTest: test_: GroupGenerator should call the mongoid migration generator successfully. ----------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ----------------------------------------------------------------- GroupsControllerTest: test_: authenticated should be successful. -----------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Account::GroupsController#destroy as HTML Parameters: {"id"=>"cld-1"} Filter chain halted as :authenticate_maestrano! rendered or redirected Completed 401 Unauthorized in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ----------------------------------------------------------------- GroupsControllerTest: test_: unauthenticated should deny access. -----------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction Processing by Maestrano::Account::GroupsController#destroy as HTML Parameters: {"id"=>"cld-1"} Filter chain halted as :authenticate_maestrano! rendered or redirected Completed 401 Unauthorized in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: class methods find_or_create_for_maestrano class method should create a monster using the mapping block. --------------------------------------------------------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction 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 ? [["provider", "maestrano"], ["uid", "usr-2"], ["tenant", "default"], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 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-08-31 02:05:53 UTC], ["updated_at", 2016-08-31 02:05:53 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: class methods find_or_create_for_maestrano class method should not return a MnoMonster from another provider if it exists. --------------------------------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 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-08-31 02:05:53 UTC], ["updated_at", 2016-08-31 02:05:53 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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 ? [["provider", "maestrano"], ["uid", "usr-1"], ["tenant", "default"], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 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-08-31 02:05:53 UTC], ["updated_at", 2016-08-31 02:05:53 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: class methods find_or_create_for_maestrano class method should return the MnoMonster if it exists. --------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 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-08-31 02:05:53 UTC], ["updated_at", 2016-08-31 02:05:53 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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 ? [["provider", "maestrano"], ["uid", "usr-1"], ["tenant", "default"], ["LIMIT", 1]]  (0.1ms) rollback transaction --------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: class methods maestrano_*_via should have the right field definition. ---------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------------------------ MaestranoUserViaTest: test_: instance methods maestrano? should return false if provider is something else. ------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: instance methods maestrano? should return false if uid is blank. ----------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ----------------------------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: instance methods maestrano? should return true if provider is maestrano and uid not null. -----------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------- MetadataControllerTest: test_: authenticated should be successful. -------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Rails::MetadataController#index as HTML Filter chain halted as :authenticate_maestrano! rendered or redirected Completed 401 Unauthorized in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------- MetadataControllerTest: test_: unauthenticated should deny access. -------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Rails::MetadataController#index as HTML Filter chain halted as :authenticate_maestrano! rendered or redirected Completed 401 Unauthorized in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ------------------------------ MaestranoRailsTest: test_truth ------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase error should redirect to maestrano on any error. ----------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Cannot validate SAML response: Bla Trace: ["/home/bruno/.rvm/gems/ruby-2.3.1/gems/mocha-1.1.0/lib/mocha/exception_raiser.rb:12:in `evaluate'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/mocha-1.1.0/lib/mocha/return_values.rb:20:in `next'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/mocha-1.1.0/lib/mocha/expectation.rb:569:in `invoke'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/mocha-1.1.0/lib/mocha/mock.rb:296:in `method_missing'", "/home/bruno/Workspace/maestrano-rails/app/controllers/maestrano/rails/saml_base_controller.rb:35:in `process_saml_response'", "/home/bruno/Workspace/maestrano-rails/app/controllers/maestrano/rails/saml_base_controller.rb:18:in `saml_response_transaction'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-5.0.0.1/lib/active_support/callbacks.rb:382:in `block in make_lambda'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-5.0.0.1/lib/active_support/callbacks.rb:266:in `block in halting_and_conditional'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-5.0.0.1/lib/active_support/callbacks.rb:447:in `block in around'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-5.0.0.1/lib/active_support/callbacks.rb:455:in `call'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-5.0.0.1/lib/active_support/callbacks.rb:101:in `__run_callbacks__'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-5.0.0.1/lib/active_support/callbacks.rb:750:in `_run_process_action_callbacks'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-5.0.0.1/lib/active_support/callbacks.rb:90:in `run_callbacks'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionpack-5.0.0.1/lib/abstract_controller/callbacks.rb:19:in `process_action'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionpack-5.0.0.1/lib/action_controller/metal/rescue.rb:20:in `process_action'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionpack-5.0.0.1/lib/action_controller/metal/instrumentation.rb:32:in `block in process_action'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-5.0.0.1/lib/active_support/notifications.rb:164:in `block in instrument'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-5.0.0.1/lib/active_support/notifications/instrumenter.rb:21:in `instrument'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-5.0.0.1/lib/active_support/notifications.rb:164:in `instrument'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionpack-5.0.0.1/lib/action_controller/metal/instrumentation.rb:30:in `process_action'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionpack-5.0.0.1/lib/action_controller/metal/params_wrapper.rb:248:in `process_action'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activerecord-5.0.0.1/lib/active_record/railties/controller_runtime.rb:18:in `process_action'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionpack-5.0.0.1/lib/abstract_controller/base.rb:126:in `process'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionview-5.0.0.1/lib/action_view/rendering.rb:30:in `process'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionpack-5.0.0.1/lib/action_controller/metal.rb:190:in `dispatch'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionpack-5.0.0.1/lib/action_controller/test_case.rb:532:in `process'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionpack-5.0.0.1/lib/action_controller/test_case.rb:629:in `process_with_kwargs'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionpack-5.0.0.1/lib/action_controller/test_case.rb:389:in `post'", "/home/bruno/Workspace/maestrano-rails/test/controllers/saml_controller_test.rb:117:in `block (3 levels) in '", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/shoulda-context-1.2.1/lib/shoulda/context/context.rb:413:in `instance_exec'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/shoulda-context-1.2.1/lib/shoulda/context/context.rb:413:in `block in create_test_from_should_hash'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest/test.rb:107:in `block (3 levels) in run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest/test.rb:204:in `capture_exceptions'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest/test.rb:104:in `block (2 levels) in run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest/test.rb:255:in `time_it'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest/test.rb:103:in `block in run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:348:in `on_signal'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest/test.rb:275:in `with_info_handler'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest/test.rb:102:in `run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:799:in `run_one_method'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:322:in `run_one_method'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:310:in `block (2 levels) in run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:309:in `each'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:309:in `block in run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:348:in `on_signal'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:335:in `with_info_handler'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:308:in `run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/railties-5.0.0.1/lib/rails/test_unit/line_filtering.rb:11:in `run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:158:in `block in __run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:158:in `map'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:158:in `__run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:135:in `run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:62:in `block in autorun'"] Redirected to http://api-sandbox.maestrano.io/app_access_unauthorized?err=internal Completed 302 Found in 3ms (ActiveRecord: 0.0ms)  (0.1ms) rollback transaction -------------------------------------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should reset the maestrano session successfully if one already exists. --------------------------------------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction --------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should set a saml_request in scope. ---------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction -------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should set the group_auth_hash in scope. --------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should set the maestrano session. -------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should set the user_auth_hash in scope. -------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------ SamlBaseControllerTest: test_: consume phase should set the user_group_rel_hash in scope. ------------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: init phase should create a saml request successfully if a maestrano session is already set. ---------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#init as HTML Parameters: {"a_param"=>"value"} Redirected to http://idpprovider.com?r=request Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ----------------------------------------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: init phase should create a saml request using params and session and redirect the user. -----------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#init as HTML Parameters: {"a_param"=>"value"} Redirected to http://idpprovider.com?r=request Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ----------------------------------------------------------------- GroupsControllerTest: test_: authenticated should be successful. -----------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Account::GroupsController#destroy as HTML Parameters: {"id"=>"cld-1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ----------------------------------------------------------------- GroupsControllerTest: test_: unauthenticated should deny access. -----------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Account::GroupsController#destroy as HTML Parameters: {"id"=>"cld-1"} Filter chain halted as :authenticate_maestrano! rendered or redirected Completed 401 Unauthorized in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: class methods find_or_create_for_maestrano class method should create a monster using the mapping block. --------------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction 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 ? [["provider", "maestrano"], ["uid", "usr-2"], ["tenant", "default"], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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-08-31 02:06:01 UTC], ["updated_at", 2016-08-31 02:06:01 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: class methods find_or_create_for_maestrano class method should not return a MnoMonster from another provider if it exists. --------------------------------------------------------------------------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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-08-31 02:06:01 UTC], ["updated_at", 2016-08-31 02:06:01 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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 ? [["provider", "maestrano"], ["uid", "usr-1"], ["tenant", "default"], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "mno_monsters" ("provider", "uid", "tenant", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["provider", "maestrano"], ["uid", "usr-1"], ["tenant", "default"], ["created_at", 2016-08-31 02:06:01 UTC], ["updated_at", 2016-08-31 02:06:01 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: class methods find_or_create_for_maestrano class method should return the MnoMonster if it exists. --------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 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-08-31 02:06:01 UTC], ["updated_at", 2016-08-31 02:06:01 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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 ? [["provider", "maestrano"], ["uid", "usr-1"], ["tenant", "default"], ["LIMIT", 1]]  (0.1ms) rollback transaction --------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: class methods maestrano_*_via should have the right field definition. ---------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------------------------ MaestranoUserViaTest: test_: instance methods maestrano? should return false if provider is something else. ------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: instance methods maestrano? should return false if uid is blank. ----------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ----------------------------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: instance methods maestrano? should return true if provider is maestrano and uid not null. -----------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: namespaced model should create the right migration. -------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: namespaced model should edit the model content. ---------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should create the right migration. ---------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ----------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should edit the model content. -----------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should include parameters if rails 3 and strong_parameter not present. ---------------------------------------------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should not include parameters if rails 3 and strong_parameter present. ---------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction ---------------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should not include parameters in rails 4. ----------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction --------------------------------------------------------------------- GroupUsersControllerTest: test_: authenticated should be successful. ---------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Account::GroupUsersController#destroy as HTML Parameters: {"group_id"=>"cld-1", "id"=>"usr-1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction --------------------------------------------------------------------- GroupUsersControllerTest: test_: unauthenticated should deny access. ---------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Account::GroupUsersController#destroy as HTML Parameters: {"group_id"=>"cld-1", "id"=>"usr-1"} Filter chain halted as :authenticate_maestrano! rendered or redirected Completed 401 Unauthorized in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------------- UserGeneratorTest: test_: UserGenerator should call the active_record migration generator successfully. --------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------- UserGeneratorTest: test_: UserGenerator should call the mongoid migration generator successfully. --------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------------------- GroupGeneratorTest: test_: GroupGenerator should call the active_record migration generator successfully. ----------------------------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction ---------------------------------------------------------------------------------------------------- GroupGeneratorTest: test_: GroupGenerator should call the mongoid migration generator successfully. ----------------------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------------------------------------------------- MaestranoGroupViaTest: test_: class methods find_or_create_for_maestrano class method should create a monster using the mapping block. ---------------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction 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 ? [["provider", "maestrano"], ["uid", "usr-2"], ["tenant", "default"], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 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-08-31 02:06:01 UTC], ["updated_at", 2016-08-31 02:06:01 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction ------------------------------------------------------------------------------------------------------------------------------------------------------ MaestranoGroupViaTest: test_: class methods find_or_create_for_maestrano class method should not return a MnoCrew from another provider if it exists. ------------------------------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 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-08-31 02:06:01 UTC], ["updated_at", 2016-08-31 02:06:01 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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 ? [["provider", "maestrano"], ["uid", "cld-1"], ["tenant", "default"], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 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-08-31 02:06:01 UTC], ["updated_at", 2016-08-31 02:06:01 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction ------------------------------------------------------------------------------------------------------------------------------ MaestranoGroupViaTest: test_: class methods find_or_create_for_maestrano class method should return the MnoCrew if it exists. ------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 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-08-31 02:06:01 UTC], ["updated_at", 2016-08-31 02:06:01 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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 ? [["provider", "maestrano"], ["uid", "cld-1"], ["tenant", "default"], ["LIMIT", 1]]  (0.1ms) rollback transaction ---------------------------------------------------------------------------------------------------- MaestranoGroupViaTest: test_: class methods maestrano_*_via should have the right field definition. ----------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------------------------- MaestranoGroupViaTest: test_: instance methods maestrano? should return false if provider is something else. -------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ----------------------------------------------------------------------------------------------- MaestranoGroupViaTest: test_: instance methods maestrano? should return false if uid is blank. -----------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------------------------------------ MaestranoGroupViaTest: test_: instance methods maestrano? should return true if provider is maestrano and uid not null. ------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------- MetadataControllerTest: test_: authenticated should be successful. -------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Rails::MetadataController#index as HTML Completed 200 OK in 2ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------- MetadataControllerTest: test_: unauthenticated should deny access. -------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Rails::MetadataController#index as HTML Filter chain halted as :authenticate_maestrano! rendered or redirected Completed 401 Unauthorized in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------ ActiveRecordUserGeneratorTest: test_: namespaced model should create the right migration. ------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: namespaced model should edit the model content. --------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should create the right migration. --------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should edit the model content. ----------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should include parameters if rails 3 and strong_parameter not present. --------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should not include parameters if rails 3 and strong_parameter present. --------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should not include parameters in rails 4. ---------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------------------------------- GenericControllerTest: test_: with a maestrano session should be successful if the maestrano session is still valid. ---------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by PagesController#home as HTML Rendering pages/home.html.erb within layouts/application Rendered pages/home.html.erb within layouts/application (0.8ms) Completed 200 OK in 101ms (Views: 100.1ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction -------------------------------------------------------------------------------------------------------------------- GenericControllerTest: test_: with a maestrano session should initialize redirect to SSO initialization if invalid. --------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by PagesController#home as HTML Redirected to http://localhost:3000/maestrano/auth/saml/init Filter chain halted as :verify_maestrano_session rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ----------------------------------------------------------------------------------------------------------- GenericControllerTest: test_: with a maestrano session should not redirect to SSO init if sso is disabled. -----------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by PagesController#home as HTML Rendering pages/home.html.erb within layouts/application Rendered pages/home.html.erb within layouts/application (0.0ms) Completed 200 OK in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------------------ GenericControllerTest: test_: with no maestrano session should be successful. ------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by PagesController#home as HTML Rendering pages/home.html.erb within layouts/application Rendered pages/home.html.erb within layouts/application (0.0ms) Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction --------------------------------------------------------------------------------------- InstallGeneratorTest: test_: InstallGenerator should create the maestrano initializer. ---------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------- InstallGeneratorTest: test_: InstallGenerator should create the maestrano routes. ----------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction ---------------------------------------------------------------------------------------------------------- InstallGeneratorTest: test_: InstallGenerator should create the maestrano/account/group_users_controller. ----------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ----------------------------------------------------------------------------------------------------- InstallGeneratorTest: test_: InstallGenerator should create the maestrano/account/groups_controller. -----------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------------ InstallGeneratorTest: test_: InstallGenerator should create the maestrano/auth/saml_controller. ------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" --------------------------------------------------------------------- GroupUsersControllerTest: test_: authenticated should be successful. ---------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Account::GroupUsersController#destroy as HTML Parameters: {"group_id"=>"cld-1", "id"=>"usr-1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction --------------------------------------------------------------------- GroupUsersControllerTest: test_: unauthenticated should deny access. ---------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Account::GroupUsersController#destroy as HTML Parameters: {"group_id"=>"cld-1", "id"=>"usr-1"} Filter chain halted as :authenticate_maestrano! rendered or redirected Completed 401 Unauthorized in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------------------- GroupGeneratorTest: test_: GroupGenerator should call the active_record migration generator successfully. ----------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------------- GroupGeneratorTest: test_: GroupGenerator should call the mongoid migration generator successfully. ----------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction ----------------------------------------------------------------- GroupsControllerTest: test_: authenticated should be successful. -----------------------------------------------------------------  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Account::GroupsController#destroy as HTML Parameters: {"id"=>"cld-1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction ----------------------------------------------------------------- GroupsControllerTest: test_: unauthenticated should deny access. -----------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Account::GroupsController#destroy as HTML Parameters: {"id"=>"cld-1"} Filter chain halted as :authenticate_maestrano! rendered or redirected Completed 401 Unauthorized in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction --------------------------------------------------------------------------------------------------------------------- GenericControllerTest: test_: with a maestrano session should be successful if the maestrano session is still valid. ---------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction Processing by PagesController#home as HTML Rendering pages/home.html.erb within layouts/application Rendered pages/home.html.erb within layouts/application (0.8ms) Completed 200 OK in 106ms (Views: 105.0ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction -------------------------------------------------------------------------------------------------------------------- GenericControllerTest: test_: with a maestrano session should initialize redirect to SSO initialization if invalid. --------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by PagesController#home as HTML Rendering pages/home.html.erb within layouts/application Rendered pages/home.html.erb within layouts/application (0.0ms) Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ----------------------------------------------------------------------------------------------------------- GenericControllerTest: test_: with a maestrano session should not redirect to SSO init if sso is disabled. -----------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by PagesController#home as HTML Rendering pages/home.html.erb within layouts/application Rendered pages/home.html.erb within layouts/application (0.0ms) Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------------------ GenericControllerTest: test_: with no maestrano session should be successful. ------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by PagesController#home as HTML Rendering pages/home.html.erb within layouts/application Rendered pages/home.html.erb within layouts/application (0.0ms) Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------ ActiveRecordUserGeneratorTest: test_: namespaced model should create the right migration. ------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: namespaced model should edit the model content. --------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should create the right migration. --------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction ---------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should edit the model content. ----------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should include parameters if rails 3 and strong_parameter not present. --------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should not include parameters if rails 3 and strong_parameter present. --------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should not include parameters in rails 4. ---------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction ------------------------------ MaestranoRailsTest: test_truth ------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------------- UserGeneratorTest: test_: UserGenerator should call the active_record migration generator successfully. --------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------- UserGeneratorTest: test_: UserGenerator should call the mongoid migration generator successfully. --------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------- MetadataControllerTest: test_: authenticated should be successful. -------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Rails::MetadataController#index as HTML Filter chain halted as :authenticate_maestrano! rendered or redirected Completed 401 Unauthorized in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction ------------------------------------------------------------------- MetadataControllerTest: test_: unauthenticated should deny access. -------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Rails::MetadataController#index as HTML Filter chain halted as :authenticate_maestrano! rendered or redirected Completed 401 Unauthorized in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------------------------------------------------- MaestranoGroupViaTest: test_: class methods find_or_create_for_maestrano class method should create a monster using the mapping block. ---------------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction 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 ? [["provider", "maestrano"], ["uid", "usr-2"], ["tenant", "default"], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 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-08-31 02:08:07 UTC], ["updated_at", 2016-08-31 02:08:07 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction ------------------------------------------------------------------------------------------------------------------------------------------------------ MaestranoGroupViaTest: test_: class methods find_or_create_for_maestrano class method should not return a MnoCrew from another provider if it exists. ------------------------------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "mno_crews" ("name", "provider", "uid", "tenant", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["name", "SomeOtherCrew"], ["provider", "someoneelse"], ["uid", "usr-1"], ["tenant", "default"], ["created_at", 2016-08-31 02:08:07 UTC], ["updated_at", 2016-08-31 02:08:07 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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 ? [["provider", "maestrano"], ["uid", "cld-1"], ["tenant", "default"], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 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-08-31 02:08:07 UTC], ["updated_at", 2016-08-31 02:08:07 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction ------------------------------------------------------------------------------------------------------------------------------ MaestranoGroupViaTest: test_: class methods find_or_create_for_maestrano class method should return the MnoCrew if it exists. ------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 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-08-31 02:08:07 UTC], ["updated_at", 2016-08-31 02:08:07 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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 ? [["provider", "maestrano"], ["uid", "cld-1"], ["tenant", "default"], ["LIMIT", 1]]  (0.1ms) rollback transaction ---------------------------------------------------------------------------------------------------- MaestranoGroupViaTest: test_: class methods maestrano_*_via should have the right field definition. ----------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------------------------- MaestranoGroupViaTest: test_: instance methods maestrano? should return false if provider is something else. -------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ----------------------------------------------------------------------------------------------- MaestranoGroupViaTest: test_: instance methods maestrano? should return false if uid is blank. -----------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------------------------------------ MaestranoGroupViaTest: test_: instance methods maestrano? should return true if provider is maestrano and uid not null. ------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------- InstallGeneratorTest: test_: InstallGenerator should create the maestrano initializer. ---------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------- InstallGeneratorTest: test_: InstallGenerator should create the maestrano routes. ----------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------------------- InstallGeneratorTest: test_: InstallGenerator should create the maestrano/account/group_users_controller. ----------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ----------------------------------------------------------------------------------------------------- InstallGeneratorTest: test_: InstallGenerator should create the maestrano/account/groups_controller. -----------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------------ InstallGeneratorTest: test_: InstallGenerator should create the maestrano/auth/saml_controller. ------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction ---------------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase error should redirect to maestrano on any error. ----------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Cannot validate SAML response: Bla Trace: ["/home/bruno/.rvm/gems/ruby-2.3.1/gems/mocha-1.1.0/lib/mocha/exception_raiser.rb:12:in `evaluate'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/mocha-1.1.0/lib/mocha/return_values.rb:20:in `next'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/mocha-1.1.0/lib/mocha/expectation.rb:569:in `invoke'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/mocha-1.1.0/lib/mocha/mock.rb:296:in `method_missing'", "/home/bruno/Workspace/maestrano-rails/app/controllers/maestrano/rails/saml_base_controller.rb:35:in `process_saml_response'", "/home/bruno/Workspace/maestrano-rails/app/controllers/maestrano/rails/saml_base_controller.rb:18:in `saml_response_transaction'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-5.0.0.1/lib/active_support/callbacks.rb:382:in `block in make_lambda'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-5.0.0.1/lib/active_support/callbacks.rb:266:in `block in halting_and_conditional'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-5.0.0.1/lib/active_support/callbacks.rb:447:in `block in around'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-5.0.0.1/lib/active_support/callbacks.rb:455:in `call'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-5.0.0.1/lib/active_support/callbacks.rb:101:in `__run_callbacks__'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-5.0.0.1/lib/active_support/callbacks.rb:750:in `_run_process_action_callbacks'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-5.0.0.1/lib/active_support/callbacks.rb:90:in `run_callbacks'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionpack-5.0.0.1/lib/abstract_controller/callbacks.rb:19:in `process_action'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionpack-5.0.0.1/lib/action_controller/metal/rescue.rb:20:in `process_action'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionpack-5.0.0.1/lib/action_controller/metal/instrumentation.rb:32:in `block in process_action'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-5.0.0.1/lib/active_support/notifications.rb:164:in `block in instrument'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-5.0.0.1/lib/active_support/notifications/instrumenter.rb:21:in `instrument'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-5.0.0.1/lib/active_support/notifications.rb:164:in `instrument'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionpack-5.0.0.1/lib/action_controller/metal/instrumentation.rb:30:in `process_action'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionpack-5.0.0.1/lib/action_controller/metal/params_wrapper.rb:248:in `process_action'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activerecord-5.0.0.1/lib/active_record/railties/controller_runtime.rb:18:in `process_action'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionpack-5.0.0.1/lib/abstract_controller/base.rb:126:in `process'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionview-5.0.0.1/lib/action_view/rendering.rb:30:in `process'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionpack-5.0.0.1/lib/action_controller/metal.rb:190:in `dispatch'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionpack-5.0.0.1/lib/action_controller/test_case.rb:532:in `process'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionpack-5.0.0.1/lib/action_controller/test_case.rb:629:in `process_with_kwargs'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionpack-5.0.0.1/lib/action_controller/test_case.rb:389:in `post'", "/home/bruno/Workspace/maestrano-rails/test/controllers/saml_controller_test.rb:117:in `block (3 levels) in '", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/shoulda-context-1.2.1/lib/shoulda/context/context.rb:413:in `instance_exec'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/shoulda-context-1.2.1/lib/shoulda/context/context.rb:413:in `block in create_test_from_should_hash'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest/test.rb:107:in `block (3 levels) in run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest/test.rb:204:in `capture_exceptions'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest/test.rb:104:in `block (2 levels) in run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest/test.rb:255:in `time_it'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest/test.rb:103:in `block in run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:348:in `on_signal'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest/test.rb:275:in `with_info_handler'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest/test.rb:102:in `run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:799:in `run_one_method'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:322:in `run_one_method'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:310:in `block (2 levels) in run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:309:in `each'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:309:in `block in run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:348:in `on_signal'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:335:in `with_info_handler'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:308:in `run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/railties-5.0.0.1/lib/rails/test_unit/line_filtering.rb:11:in `run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:158:in `block in __run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:158:in `map'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:158:in `__run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:135:in `run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:62:in `block in autorun'"] Redirected to http://api-sandbox.maestrano.io/app_access_unauthorized?err=internal Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.1ms) rollback transaction -------------------------------------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should reset the maestrano session successfully if one already exists. --------------------------------------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction --------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should set a saml_request in scope. ---------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction -------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should set the group_auth_hash in scope. --------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should set the maestrano session. -------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should set the user_auth_hash in scope. -------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------ SamlBaseControllerTest: test_: consume phase should set the user_group_rel_hash in scope. ------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: init phase should create a saml request successfully if a maestrano session is already set. ---------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#init as HTML Parameters: {"a_param"=>"value"} Redirected to http://idpprovider.com?r=request Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ----------------------------------------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: init phase should create a saml request using params and session and redirect the user. -----------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#init as HTML Parameters: {"a_param"=>"value"} Redirected to http://idpprovider.com?r=request Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: namespaced model should create the right migration. -------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: namespaced model should edit the model content. ---------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction --------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should create the right migration. ---------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction ----------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should edit the model content. -----------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should include parameters if rails 3 and strong_parameter not present. ---------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should not include parameters if rails 3 and strong_parameter present. ---------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should not include parameters in rails 4. ----------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: class methods find_or_create_for_maestrano class method should create a monster using the mapping block. --------------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction 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 ? [["provider", "maestrano"], ["uid", "usr-2"], ["tenant", "default"], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "mno_monsters" ("first_name", "last_name", "email", "provider", "uid", "tenant", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["first_name", "Mon"], ["last_name", "Ster"], ["email", "monster@monst.com"], ["provider", "maestrano"], ["uid", "usr-2"], ["tenant", "default"], ["created_at", 2016-08-31 02:08:07 UTC], ["updated_at", 2016-08-31 02:08:07 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: class methods find_or_create_for_maestrano class method should not return a MnoMonster from another provider if it exists. --------------------------------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 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-08-31 02:08:07 UTC], ["updated_at", 2016-08-31 02:08:07 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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 ? [["provider", "maestrano"], ["uid", "usr-1"], ["tenant", "default"], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 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-08-31 02:08:07 UTC], ["updated_at", 2016-08-31 02:08:07 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: class methods find_or_create_for_maestrano class method should return the MnoMonster if it exists. --------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "mno_monsters" ("first_name", "last_name", "email", "provider", "uid", "tenant", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["first_name", "John"], ["last_name", "Jack"], ["email", "monster@co.com"], ["provider", "maestrano"], ["uid", "usr-1"], ["tenant", "default"], ["created_at", 2016-08-31 02:08:07 UTC], ["updated_at", 2016-08-31 02:08:07 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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 ? [["provider", "maestrano"], ["uid", "usr-1"], ["tenant", "default"], ["LIMIT", 1]]  (0.1ms) rollback transaction --------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: class methods maestrano_*_via should have the right field definition. ---------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------------------------ MaestranoUserViaTest: test_: instance methods maestrano? should return false if provider is something else. ------------------------------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: instance methods maestrano? should return false if uid is blank. ----------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ----------------------------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: instance methods maestrano? should return true if provider is maestrano and uid not null. -----------------------------------------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ----------------------------------------------------------------- GroupsControllerTest: test_: authenticated should be successful. -----------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Account::GroupsController#destroy as HTML Parameters: {"id"=>"cld-1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 3ms (Views: 3.0ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction ----------------------------------------------------------------- GroupsControllerTest: test_: unauthenticated should deny access. -----------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Account::GroupsController#destroy as HTML Parameters: {"id"=>"cld-1"} Filter chain halted as :authenticate_maestrano! rendered or redirected Completed 401 Unauthorized in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: class methods find_or_create_for_maestrano class method should create a monster using the mapping block. --------------------------------------------------------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction 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 ? [["provider", "maestrano"], ["uid", "usr-2"], ["tenant", "default"], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 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-08-31 02:09:11 UTC], ["updated_at", 2016-08-31 02:09:11 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: class methods find_or_create_for_maestrano class method should not return a MnoMonster from another provider if it exists. --------------------------------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 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-08-31 02:09:11 UTC], ["updated_at", 2016-08-31 02:09:11 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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 ? [["provider", "maestrano"], ["uid", "usr-1"], ["tenant", "default"], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 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-08-31 02:09:11 UTC], ["updated_at", 2016-08-31 02:09:11 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: class methods find_or_create_for_maestrano class method should return the MnoMonster if it exists. --------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 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-08-31 02:09:11 UTC], ["updated_at", 2016-08-31 02:09:11 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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 ? [["provider", "maestrano"], ["uid", "usr-1"], ["tenant", "default"], ["LIMIT", 1]]  (0.1ms) rollback transaction --------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: class methods maestrano_*_via should have the right field definition. ---------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------------------------ MaestranoUserViaTest: test_: instance methods maestrano? should return false if provider is something else. ------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: instance methods maestrano? should return false if uid is blank. ----------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ----------------------------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: instance methods maestrano? should return true if provider is maestrano and uid not null. -----------------------------------------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------- InstallGeneratorTest: test_: InstallGenerator should create the maestrano initializer. ---------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------- InstallGeneratorTest: test_: InstallGenerator should create the maestrano routes. ----------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------------------- InstallGeneratorTest: test_: InstallGenerator should create the maestrano/account/group_users_controller. ----------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction ----------------------------------------------------------------------------------------------------- InstallGeneratorTest: test_: InstallGenerator should create the maestrano/account/groups_controller. -----------------------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction ------------------------------------------------------------------------------------------------ InstallGeneratorTest: test_: InstallGenerator should create the maestrano/auth/saml_controller. ------------------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------------------- GroupGeneratorTest: test_: GroupGenerator should call the active_record migration generator successfully. ----------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------------- GroupGeneratorTest: test_: GroupGenerator should call the mongoid migration generator successfully. ----------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase error should redirect to maestrano on any error. ----------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Cannot validate SAML response: Bla Trace: ["/home/bruno/.rvm/gems/ruby-2.3.1/gems/mocha-1.1.0/lib/mocha/exception_raiser.rb:12:in `evaluate'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/mocha-1.1.0/lib/mocha/return_values.rb:20:in `next'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/mocha-1.1.0/lib/mocha/expectation.rb:569:in `invoke'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/mocha-1.1.0/lib/mocha/mock.rb:296:in `method_missing'", "/home/bruno/Workspace/maestrano-rails/app/controllers/maestrano/rails/saml_base_controller.rb:35:in `process_saml_response'", "/home/bruno/Workspace/maestrano-rails/app/controllers/maestrano/rails/saml_base_controller.rb:18:in `saml_response_transaction'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-5.0.0.1/lib/active_support/callbacks.rb:382:in `block in make_lambda'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-5.0.0.1/lib/active_support/callbacks.rb:266:in `block in halting_and_conditional'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-5.0.0.1/lib/active_support/callbacks.rb:447:in `block in around'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-5.0.0.1/lib/active_support/callbacks.rb:455:in `call'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-5.0.0.1/lib/active_support/callbacks.rb:101:in `__run_callbacks__'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-5.0.0.1/lib/active_support/callbacks.rb:750:in `_run_process_action_callbacks'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-5.0.0.1/lib/active_support/callbacks.rb:90:in `run_callbacks'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionpack-5.0.0.1/lib/abstract_controller/callbacks.rb:19:in `process_action'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionpack-5.0.0.1/lib/action_controller/metal/rescue.rb:20:in `process_action'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionpack-5.0.0.1/lib/action_controller/metal/instrumentation.rb:32:in `block in process_action'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-5.0.0.1/lib/active_support/notifications.rb:164:in `block in instrument'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-5.0.0.1/lib/active_support/notifications/instrumenter.rb:21:in `instrument'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-5.0.0.1/lib/active_support/notifications.rb:164:in `instrument'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionpack-5.0.0.1/lib/action_controller/metal/instrumentation.rb:30:in `process_action'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionpack-5.0.0.1/lib/action_controller/metal/params_wrapper.rb:248:in `process_action'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activerecord-5.0.0.1/lib/active_record/railties/controller_runtime.rb:18:in `process_action'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionpack-5.0.0.1/lib/abstract_controller/base.rb:126:in `process'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionview-5.0.0.1/lib/action_view/rendering.rb:30:in `process'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionpack-5.0.0.1/lib/action_controller/metal.rb:190:in `dispatch'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionpack-5.0.0.1/lib/action_controller/test_case.rb:532:in `process'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionpack-5.0.0.1/lib/action_controller/test_case.rb:629:in `process_with_kwargs'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionpack-5.0.0.1/lib/action_controller/test_case.rb:389:in `post'", "/home/bruno/Workspace/maestrano-rails/test/controllers/saml_controller_test.rb:117:in `block (3 levels) in '", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/shoulda-context-1.2.1/lib/shoulda/context/context.rb:413:in `instance_exec'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/shoulda-context-1.2.1/lib/shoulda/context/context.rb:413:in `block in create_test_from_should_hash'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest/test.rb:107:in `block (3 levels) in run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest/test.rb:204:in `capture_exceptions'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest/test.rb:104:in `block (2 levels) in run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest/test.rb:255:in `time_it'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest/test.rb:103:in `block in run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:348:in `on_signal'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest/test.rb:275:in `with_info_handler'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest/test.rb:102:in `run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:799:in `run_one_method'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:322:in `run_one_method'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:310:in `block (2 levels) in run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:309:in `each'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:309:in `block in run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:348:in `on_signal'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:335:in `with_info_handler'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:308:in `run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/railties-5.0.0.1/lib/rails/test_unit/line_filtering.rb:11:in `run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:158:in `block in __run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:158:in `map'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:158:in `__run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:135:in `run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:62:in `block in autorun'"] Redirected to http://api-sandbox.maestrano.io/app_access_unauthorized?err=internal Completed 302 Found in 3ms (ActiveRecord: 0.0ms)  (0.1ms) rollback transaction -------------------------------------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should reset the maestrano session successfully if one already exists. --------------------------------------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.1ms) rollback transaction --------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should set a saml_request in scope. ---------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.1ms) rollback transaction -------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should set the group_auth_hash in scope. --------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should set the maestrano session. -------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should set the user_auth_hash in scope. -------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.1ms) rollback transaction ------------------------------------------------------------------------------------------ SamlBaseControllerTest: test_: consume phase should set the user_group_rel_hash in scope. ------------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: init phase should create a saml request successfully if a maestrano session is already set. ---------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#init as HTML Parameters: {"a_param"=>"value"} Redirected to http://idpprovider.com?r=request Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.1ms) rollback transaction ----------------------------------------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: init phase should create a saml request using params and session and redirect the user. -----------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#init as HTML Parameters: {"a_param"=>"value"} Redirected to http://idpprovider.com?r=request Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.1ms) rollback transaction --------------------------------------------------------------------------------------------------------------------- GenericControllerTest: test_: with a maestrano session should be successful if the maestrano session is still valid. ---------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by PagesController#home as HTML Rendering pages/home.html.erb within layouts/application Rendered pages/home.html.erb within layouts/application (0.8ms) Completed 200 OK in 117ms (Views: 116.1ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction -------------------------------------------------------------------------------------------------------------------- GenericControllerTest: test_: with a maestrano session should initialize redirect to SSO initialization if invalid. --------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by PagesController#home as HTML Redirected to http://localhost:3000/maestrano/auth/saml/init/default Filter chain halted as :verify_maestrano_session rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ----------------------------------------------------------------------------------------------------------- GenericControllerTest: test_: with a maestrano session should not redirect to SSO init if sso is disabled. -----------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by PagesController#home as HTML Rendering pages/home.html.erb within layouts/application Rendered pages/home.html.erb within layouts/application (0.0ms) Completed 200 OK in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------------------ GenericControllerTest: test_: with no maestrano session should be successful. ------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction Processing by PagesController#home as HTML Rendering pages/home.html.erb within layouts/application Rendered pages/home.html.erb within layouts/application (0.0ms) Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction ------------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: namespaced model should create the right migration. -------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: namespaced model should edit the model content. ---------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should create the right migration. ---------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ----------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should edit the model content. -----------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should include parameters if rails 3 and strong_parameter not present. ---------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should not include parameters if rails 3 and strong_parameter present. ---------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should not include parameters in rails 4. ----------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction --------------------------------------------------------------------------------------------------------------------------------------- MaestranoGroupViaTest: test_: class methods find_or_create_for_maestrano class method should create a monster using the mapping block. ---------------------------------------------------------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction 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 ? [["provider", "maestrano"], ["uid", "usr-2"], ["tenant", "default"], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 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-08-31 02:09:11 UTC], ["updated_at", 2016-08-31 02:09:11 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction ------------------------------------------------------------------------------------------------------------------------------------------------------ MaestranoGroupViaTest: test_: class methods find_or_create_for_maestrano class method should not return a MnoCrew from another provider if it exists. ------------------------------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 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-08-31 02:09:11 UTC], ["updated_at", 2016-08-31 02:09:11 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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 ? [["provider", "maestrano"], ["uid", "cld-1"], ["tenant", "default"], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 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-08-31 02:09:11 UTC], ["updated_at", 2016-08-31 02:09:11 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction ------------------------------------------------------------------------------------------------------------------------------ MaestranoGroupViaTest: test_: class methods find_or_create_for_maestrano class method should return the MnoCrew if it exists. ------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 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-08-31 02:09:11 UTC], ["updated_at", 2016-08-31 02:09:11 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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 ? [["provider", "maestrano"], ["uid", "cld-1"], ["tenant", "default"], ["LIMIT", 1]]  (0.1ms) rollback transaction ---------------------------------------------------------------------------------------------------- MaestranoGroupViaTest: test_: class methods maestrano_*_via should have the right field definition. ----------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------------------------- MaestranoGroupViaTest: test_: instance methods maestrano? should return false if provider is something else. -------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ----------------------------------------------------------------------------------------------- MaestranoGroupViaTest: test_: instance methods maestrano? should return false if uid is blank. -----------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------------------------------------ MaestranoGroupViaTest: test_: instance methods maestrano? should return true if provider is maestrano and uid not null. ------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------------- UserGeneratorTest: test_: UserGenerator should call the active_record migration generator successfully. --------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction -------------------------------------------------------------------------------------------------- UserGeneratorTest: test_: UserGenerator should call the mongoid migration generator successfully. --------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction ------------------------------------------------------------------- MetadataControllerTest: test_: authenticated should be successful. -------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Rails::MetadataController#index as HTML Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------- MetadataControllerTest: test_: unauthenticated should deny access. -------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Rails::MetadataController#index as HTML Filter chain halted as :authenticate_maestrano! rendered or redirected Completed 401 Unauthorized in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------ MaestranoRailsTest: test_truth ------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------ ActiveRecordUserGeneratorTest: test_: namespaced model should create the right migration. ------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: namespaced model should edit the model content. --------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should create the right migration. --------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction ---------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should edit the model content. ----------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should include parameters if rails 3 and strong_parameter not present. --------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.2ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should not include parameters if rails 3 and strong_parameter present. --------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should not include parameters in rails 4. ---------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------- GroupUsersControllerTest: test_: authenticated should be successful. ---------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Account::GroupUsersController#destroy as HTML Parameters: {"group_id"=>"cld-1", "id"=>"usr-1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction --------------------------------------------------------------------- GroupUsersControllerTest: test_: unauthenticated should deny access. ---------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Account::GroupUsersController#destroy as HTML Parameters: {"group_id"=>"cld-1", "id"=>"usr-1"} Filter chain halted as :authenticate_maestrano! rendered or redirected Completed 401 Unauthorized in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" --------------------------------------------------------------------------------------------------------------------- GenericControllerTest: test_: with a maestrano session should be successful if the maestrano session is still valid. ---------------------------------------------------------------------------------------------------------------------  (0.2ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction Processing by PagesController#home as HTML Rendering pages/home.html.erb within layouts/application Rendered pages/home.html.erb within layouts/application (0.8ms) Completed 200 OK in 109ms (Views: 108.4ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction -------------------------------------------------------------------------------------------------------------------- GenericControllerTest: test_: with a maestrano session should initialize redirect to SSO initialization if invalid. --------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by PagesController#home as HTML Rendering pages/home.html.erb within layouts/application Rendered pages/home.html.erb within layouts/application (0.0ms) Completed 200 OK in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ----------------------------------------------------------------------------------------------------------- GenericControllerTest: test_: with a maestrano session should not redirect to SSO init if sso is disabled. -----------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by PagesController#home as HTML Rendering pages/home.html.erb within layouts/application Rendered pages/home.html.erb within layouts/application (0.0ms) Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------------------ GenericControllerTest: test_: with no maestrano session should be successful. ------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by PagesController#home as HTML Rendering pages/home.html.erb within layouts/application Rendered pages/home.html.erb within layouts/application (0.0ms) Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------ MaestranoRailsTest: test_truth ------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------- InstallGeneratorTest: test_: InstallGenerator should create the maestrano initializer. ---------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction ---------------------------------------------------------------------------------- InstallGeneratorTest: test_: InstallGenerator should create the maestrano routes. ----------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction ---------------------------------------------------------------------------------------------------------- InstallGeneratorTest: test_: InstallGenerator should create the maestrano/account/group_users_controller. ----------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction ----------------------------------------------------------------------------------------------------- InstallGeneratorTest: test_: InstallGenerator should create the maestrano/account/groups_controller. -----------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------------ InstallGeneratorTest: test_: InstallGenerator should create the maestrano/auth/saml_controller. ------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction ------------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: namespaced model should create the right migration. -------------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction --------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: namespaced model should edit the model content. ---------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should create the right migration. ---------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ----------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should edit the model content. -----------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should include parameters if rails 3 and strong_parameter not present. ---------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should not include parameters if rails 3 and strong_parameter present. ---------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should not include parameters in rails 4. ----------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction ------------------------------------------------------------------- MetadataControllerTest: test_: authenticated should be successful. -------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Rails::MetadataController#index as HTML Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------- MetadataControllerTest: test_: unauthenticated should deny access. -------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Rails::MetadataController#index as HTML Filter chain halted as :authenticate_maestrano! rendered or redirected Completed 401 Unauthorized in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction ----------------------------------------------------------------- GroupsControllerTest: test_: authenticated should be successful. -----------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Account::GroupsController#destroy as HTML Parameters: {"id"=>"cld-1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 3ms (Views: 2.0ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction ----------------------------------------------------------------- GroupsControllerTest: test_: unauthenticated should deny access. -----------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Account::GroupsController#destroy as HTML Parameters: {"id"=>"cld-1"} Filter chain halted as :authenticate_maestrano! rendered or redirected Completed 401 Unauthorized in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------------- UserGeneratorTest: test_: UserGenerator should call the active_record migration generator successfully. --------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction -------------------------------------------------------------------------------------------------- UserGeneratorTest: test_: UserGenerator should call the mongoid migration generator successfully. --------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------- GroupUsersControllerTest: test_: authenticated should be successful. ---------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Account::GroupUsersController#destroy as HTML Parameters: {"group_id"=>"cld-1", "id"=>"usr-1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction --------------------------------------------------------------------- GroupUsersControllerTest: test_: unauthenticated should deny access. ---------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Account::GroupUsersController#destroy as HTML Parameters: {"group_id"=>"cld-1", "id"=>"usr-1"} Filter chain halted as :authenticate_maestrano! rendered or redirected Completed 401 Unauthorized in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction ------------------------------------------------------------------------------------------ ActiveRecordUserGeneratorTest: test_: namespaced model should create the right migration. ------------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction -------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: namespaced model should edit the model content. --------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should create the right migration. --------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should edit the model content. ----------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should include parameters if rails 3 and strong_parameter not present. --------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should not include parameters if rails 3 and strong_parameter present. --------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should not include parameters in rails 4. ---------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------------------------------------------------- MaestranoGroupViaTest: test_: class methods find_or_create_for_maestrano class method should create a monster using the mapping block. ---------------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction 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 ? [["provider", "maestrano"], ["uid", "usr-2"], ["tenant", "default"], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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-08-31 03:54:57 UTC], ["updated_at", 2016-08-31 03:54:57 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction ------------------------------------------------------------------------------------------------------------------------------------------------------ MaestranoGroupViaTest: test_: class methods find_or_create_for_maestrano class method should not return a MnoCrew from another provider if it exists. ------------------------------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "mno_crews" ("name", "provider", "uid", "tenant", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["name", "SomeOtherCrew"], ["provider", "someoneelse"], ["uid", "usr-1"], ["tenant", "default"], ["created_at", 2016-08-31 03:54:57 UTC], ["updated_at", 2016-08-31 03:54:57 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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 ? [["provider", "maestrano"], ["uid", "cld-1"], ["tenant", "default"], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 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-08-31 03:54:57 UTC], ["updated_at", 2016-08-31 03:54:57 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction ------------------------------------------------------------------------------------------------------------------------------ MaestranoGroupViaTest: test_: class methods find_or_create_for_maestrano class method should return the MnoCrew if it exists. ------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 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-08-31 03:54:57 UTC], ["updated_at", 2016-08-31 03:54:57 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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 ? [["provider", "maestrano"], ["uid", "cld-1"], ["tenant", "default"], ["LIMIT", 1]]  (0.1ms) rollback transaction ---------------------------------------------------------------------------------------------------- MaestranoGroupViaTest: test_: class methods maestrano_*_via should have the right field definition. ----------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------------------------- MaestranoGroupViaTest: test_: instance methods maestrano? should return false if provider is something else. -------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ----------------------------------------------------------------------------------------------- MaestranoGroupViaTest: test_: instance methods maestrano? should return false if uid is blank. -----------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------------------------------------ MaestranoGroupViaTest: test_: instance methods maestrano? should return true if provider is maestrano and uid not null. ------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase error should redirect to maestrano on any error. ----------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Cannot validate SAML response: Bla Trace: ["/home/bruno/.rvm/gems/ruby-2.3.1/gems/mocha-1.1.0/lib/mocha/exception_raiser.rb:12:in `evaluate'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/mocha-1.1.0/lib/mocha/return_values.rb:20:in `next'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/mocha-1.1.0/lib/mocha/expectation.rb:569:in `invoke'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/mocha-1.1.0/lib/mocha/mock.rb:296:in `method_missing'", "/home/bruno/Workspace/maestrano-rails/app/controllers/maestrano/rails/saml_base_controller.rb:35:in `process_saml_response'", "/home/bruno/Workspace/maestrano-rails/app/controllers/maestrano/rails/saml_base_controller.rb:18:in `saml_response_transaction'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-5.0.0.1/lib/active_support/callbacks.rb:382:in `block in make_lambda'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-5.0.0.1/lib/active_support/callbacks.rb:266:in `block in halting_and_conditional'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-5.0.0.1/lib/active_support/callbacks.rb:447:in `block in around'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-5.0.0.1/lib/active_support/callbacks.rb:455:in `call'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-5.0.0.1/lib/active_support/callbacks.rb:101:in `__run_callbacks__'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-5.0.0.1/lib/active_support/callbacks.rb:750:in `_run_process_action_callbacks'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-5.0.0.1/lib/active_support/callbacks.rb:90:in `run_callbacks'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionpack-5.0.0.1/lib/abstract_controller/callbacks.rb:19:in `process_action'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionpack-5.0.0.1/lib/action_controller/metal/rescue.rb:20:in `process_action'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionpack-5.0.0.1/lib/action_controller/metal/instrumentation.rb:32:in `block in process_action'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-5.0.0.1/lib/active_support/notifications.rb:164:in `block in instrument'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-5.0.0.1/lib/active_support/notifications/instrumenter.rb:21:in `instrument'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-5.0.0.1/lib/active_support/notifications.rb:164:in `instrument'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionpack-5.0.0.1/lib/action_controller/metal/instrumentation.rb:30:in `process_action'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionpack-5.0.0.1/lib/action_controller/metal/params_wrapper.rb:248:in `process_action'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activerecord-5.0.0.1/lib/active_record/railties/controller_runtime.rb:18:in `process_action'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionpack-5.0.0.1/lib/abstract_controller/base.rb:126:in `process'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionview-5.0.0.1/lib/action_view/rendering.rb:30:in `process'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionpack-5.0.0.1/lib/action_controller/metal.rb:190:in `dispatch'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionpack-5.0.0.1/lib/action_controller/test_case.rb:532:in `process'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionpack-5.0.0.1/lib/action_controller/test_case.rb:629:in `process_with_kwargs'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionpack-5.0.0.1/lib/action_controller/test_case.rb:389:in `post'", "/home/bruno/Workspace/maestrano-rails/test/controllers/saml_controller_test.rb:117:in `block (3 levels) in '", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/shoulda-context-1.2.1/lib/shoulda/context/context.rb:413:in `instance_exec'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/shoulda-context-1.2.1/lib/shoulda/context/context.rb:413:in `block in create_test_from_should_hash'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest/test.rb:107:in `block (3 levels) in run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest/test.rb:204:in `capture_exceptions'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest/test.rb:104:in `block (2 levels) in run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest/test.rb:255:in `time_it'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest/test.rb:103:in `block in run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:348:in `on_signal'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest/test.rb:275:in `with_info_handler'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest/test.rb:102:in `run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:799:in `run_one_method'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:322:in `run_one_method'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:310:in `block (2 levels) in run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:309:in `each'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:309:in `block in run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:348:in `on_signal'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:335:in `with_info_handler'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:308:in `run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/railties-5.0.0.1/lib/rails/test_unit/line_filtering.rb:11:in `run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:158:in `block in __run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:158:in `map'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:158:in `__run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:135:in `run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:62:in `block in autorun'"] Redirected to http://api-sandbox.maestrano.io/app_access_unauthorized?err=internal Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should reset the maestrano session successfully if one already exists. --------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction --------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should set a saml_request in scope. ---------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction -------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should set the group_auth_hash in scope. --------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should set the maestrano session. -------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should set the user_auth_hash in scope. -------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------ SamlBaseControllerTest: test_: consume phase should set the user_group_rel_hash in scope. ------------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.1ms) rollback transaction --------------------------------------------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: init phase should create a saml request successfully if a maestrano session is already set. ---------------------------------------------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#init as HTML Parameters: {"a_param"=>"value"} Redirected to http://idpprovider.com?r=request Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.1ms) rollback transaction ----------------------------------------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: init phase should create a saml request using params and session and redirect the user. -----------------------------------------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#init as HTML Parameters: {"a_param"=>"value"} Redirected to http://idpprovider.com?r=request Completed 302 Found in 18ms (ActiveRecord: 0.0ms)  (0.1ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: class methods find_or_create_for_maestrano class method should create a monster using the mapping block. --------------------------------------------------------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction 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 ? [["provider", "maestrano"], ["uid", "usr-2"], ["tenant", "default"], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 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-08-31 03:54:57 UTC], ["updated_at", 2016-08-31 03:54:57 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: class methods find_or_create_for_maestrano class method should not return a MnoMonster from another provider if it exists. --------------------------------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 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-08-31 03:54:57 UTC], ["updated_at", 2016-08-31 03:54:57 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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 ? [["provider", "maestrano"], ["uid", "usr-1"], ["tenant", "default"], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 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-08-31 03:54:57 UTC], ["updated_at", 2016-08-31 03:54:57 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: class methods find_or_create_for_maestrano class method should return the MnoMonster if it exists. --------------------------------------------------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 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-08-31 03:54:57 UTC], ["updated_at", 2016-08-31 03:54:57 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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 ? [["provider", "maestrano"], ["uid", "usr-1"], ["tenant", "default"], ["LIMIT", 1]]  (0.1ms) rollback transaction --------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: class methods maestrano_*_via should have the right field definition. ---------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------------------------ MaestranoUserViaTest: test_: instance methods maestrano? should return false if provider is something else. ------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: instance methods maestrano? should return false if uid is blank. ----------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ----------------------------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: instance methods maestrano? should return true if provider is maestrano and uid not null. -----------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------------------- GroupGeneratorTest: test_: GroupGenerator should call the active_record migration generator successfully. ----------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction ---------------------------------------------------------------------------------------------------- GroupGeneratorTest: test_: GroupGenerator should call the mongoid migration generator successfully. ----------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ------------------------------ MaestranoRailsTest: test_truth ------------------------------  (0.2ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: class methods find_or_create_for_maestrano class method should create a monster using the mapping block. --------------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction 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"]]  (0.1ms) SAVEPOINT active_record_1 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-08-31 04:19:38.130470"], ["updated_at", "2016-08-31 04:19:38.130470"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: class methods find_or_create_for_maestrano class method should not return a MnoMonster from another provider if it exists. --------------------------------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 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-08-31 04:19:38.132793"], ["updated_at", "2016-08-31 04:19:38.132793"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.0ms) SAVEPOINT active_record_1 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-08-31 04:19:38.134230"], ["updated_at", "2016-08-31 04:19:38.134230"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: class methods find_or_create_for_maestrano class method should return the MnoMonster if it exists. --------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "mno_monsters" ("first_name", "last_name", "email", "provider", "uid", "tenant", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["first_name", "John"], ["last_name", "Jack"], ["email", "monster@co.com"], ["provider", "maestrano"], ["uid", "usr-1"], ["tenant", "default"], ["created_at", "2016-08-31 04:19:38.136222"], ["updated_at", "2016-08-31 04:19:38.136222"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.1ms) rollback transaction --------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: class methods maestrano_*_via should have the right field definition. ---------------------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------------------------ MaestranoUserViaTest: test_: instance methods maestrano? should return false if provider is something else. ------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: instance methods maestrano? should return false if uid is blank. ----------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ----------------------------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: instance methods maestrano? should return true if provider is maestrano and uid not null. -----------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------ ActiveRecordUserGeneratorTest: test_: namespaced model should create the right migration. ------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction -------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: namespaced model should edit the model content. --------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should create the right migration. --------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should edit the model content. ----------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should include parameters if rails 3 and strong_parameter not present. --------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should not include parameters if rails 3 and strong_parameter present. --------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction --------------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should not include parameters in rails 4. ---------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------------- UserGeneratorTest: test_: UserGenerator should call the active_record migration generator successfully. --------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction -------------------------------------------------------------------------------------------------- UserGeneratorTest: test_: UserGenerator should call the mongoid migration generator successfully. --------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction --------------------------------------------------------------------- GroupUsersControllerTest: test_: authenticated should be successful. ---------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------- GroupUsersControllerTest: test_: unauthenticated should deny access. ---------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: namespaced model should create the right migration. -------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: namespaced model should edit the model content. ---------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should create the right migration. ---------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction ----------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should edit the model content. -----------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should include parameters if rails 3 and strong_parameter not present. ---------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should not include parameters if rails 3 and strong_parameter present. ---------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should not include parameters in rails 4. ----------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------------------------------------------------- MaestranoGroupViaTest: test_: class methods find_or_create_for_maestrano class method should create a monster using the mapping block. ---------------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction MnoCrew Load (0.2ms) SELECT "mno_crews".* FROM "mno_crews" WHERE "mno_crews"."provider" = ? AND "mno_crews"."uid" = ? AND "mno_crews"."tenant" = ? ORDER BY "mno_crews"."id" ASC LIMIT 1 [["provider", "maestrano"], ["uid", "usr-2"], ["tenant", "default"]]  (0.0ms) SAVEPOINT active_record_1 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-08-31 04:19:38.218017"], ["updated_at", "2016-08-31 04:19:38.218017"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction ------------------------------------------------------------------------------------------------------------------------------------------------------ MaestranoGroupViaTest: test_: class methods find_or_create_for_maestrano class method should not return a MnoCrew from another provider if it exists. ------------------------------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 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-08-31 04:19:38.220016"], ["updated_at", "2016-08-31 04:19:38.220016"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.0ms) SAVEPOINT active_record_1 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-08-31 04:19:38.221410"], ["updated_at", "2016-08-31 04:19:38.221410"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction ------------------------------------------------------------------------------------------------------------------------------ MaestranoGroupViaTest: test_: class methods find_or_create_for_maestrano class method should return the MnoCrew if it exists. ------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 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-08-31 04:19:38.222991"], ["updated_at", "2016-08-31 04:19:38.222991"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.1ms) rollback transaction ---------------------------------------------------------------------------------------------------- MaestranoGroupViaTest: test_: class methods maestrano_*_via should have the right field definition. ----------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------------------------- MaestranoGroupViaTest: test_: instance methods maestrano? should return false if provider is something else. -------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ----------------------------------------------------------------------------------------------- MaestranoGroupViaTest: test_: instance methods maestrano? should return false if uid is blank. -----------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------------------------------------ MaestranoGroupViaTest: test_: instance methods maestrano? should return true if provider is maestrano and uid not null. ------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ----------------------------------------------------------------- GroupsControllerTest: test_: authenticated should be successful. -----------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ----------------------------------------------------------------- GroupsControllerTest: test_: unauthenticated should deny access. -----------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------- MetadataControllerTest: test_: authenticated should be successful. -------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Rails::MetadataController#index as HTML Completed 200 OK in 2ms (Views: 0.6ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------- MetadataControllerTest: test_: unauthenticated should deny access. -------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Rails::MetadataController#index as HTML Filter chain halted as :authenticate_maestrano! rendered or redirected Completed 401 Unauthorized in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------------------- GroupGeneratorTest: test_: GroupGenerator should call the active_record migration generator successfully. ----------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------------- GroupGeneratorTest: test_: GroupGenerator should call the mongoid migration generator successfully. ----------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------- InstallGeneratorTest: test_: InstallGenerator should create the maestrano initializer. ---------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------- InstallGeneratorTest: test_: InstallGenerator should create the maestrano routes. ----------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------------------- InstallGeneratorTest: test_: InstallGenerator should create the maestrano/account/group_users_controller. ----------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction ----------------------------------------------------------------------------------------------------- InstallGeneratorTest: test_: InstallGenerator should create the maestrano/account/groups_controller. -----------------------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------------ InstallGeneratorTest: test_: InstallGenerator should create the maestrano/auth/saml_controller. ------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------------------------------- GenericControllerTest: test_: with a maestrano session should be successful if the maestrano session is still valid. ---------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by PagesController#home as HTML Rendered pages/home.html.erb within layouts/application (0.7ms) Completed 200 OK in 233ms (Views: 232.7ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction -------------------------------------------------------------------------------------------------------------------- GenericControllerTest: test_: with a maestrano session should initialize redirect to SSO initialization if invalid. --------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by PagesController#home as HTML Redirected to http://localhost:3000/maestrano/auth/saml/init/default Filter chain halted as :verify_maestrano_session rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ----------------------------------------------------------------------------------------------------------- GenericControllerTest: test_: with a maestrano session should not redirect to SSO init if sso is disabled. -----------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by PagesController#home as HTML Rendered pages/home.html.erb within layouts/application (0.0ms) Completed 200 OK in 1ms (Views: 0.9ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------------------ GenericControllerTest: test_: with no maestrano session should be successful. ------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by PagesController#home as HTML Rendered pages/home.html.erb within layouts/application (0.0ms) Completed 200 OK in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase error should redirect to maestrano on any error. ----------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"params"=>{"SAMLResponse"=>"g45ad5v40xc4b3fd478"}} Redirected to http://test.host/ Cannot validate SAML response: undefined method `[]' for nil:NilClass Trace: ["/home/bruno/.rvm/gems/ruby-2.1.3/gems/maestrano-1.0.0.pre.RC1/lib/maestrano/sso/session.rb:13:in `from_user_auth_hash'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/maestrano-1.0.0.pre.RC1/lib/maestrano/sso.rb:74:in `set_session'", "/home/bruno/Workspace/maestrano-rails/app/controllers/maestrano/rails/saml_base_controller.rb:20:in `saml_response_transaction'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:432:in `block in make_lambda'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:291:in `call'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:291:in `block in halting_and_conditional'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:497:in `call'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:497:in `block in around'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:505:in `call'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:505:in `call'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:92:in `__run_callbacks__'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:778:in `_run_process_action_callbacks'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:81:in `run_callbacks'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/actionpack-4.2.7.1/lib/abstract_controller/callbacks.rb:19:in `process_action'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/actionpack-4.2.7.1/lib/action_controller/metal/rescue.rb:29:in `process_action'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/actionpack-4.2.7.1/lib/action_controller/metal/instrumentation.rb:32:in `block in process_action'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/activesupport-4.2.7.1/lib/active_support/notifications.rb:164:in `block in instrument'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/activesupport-4.2.7.1/lib/active_support/notifications/instrumenter.rb:20:in `instrument'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/activesupport-4.2.7.1/lib/active_support/notifications.rb:164:in `instrument'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/actionpack-4.2.7.1/lib/action_controller/metal/instrumentation.rb:30:in `process_action'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/actionpack-4.2.7.1/lib/action_controller/metal/params_wrapper.rb:250:in `process_action'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/activerecord-4.2.7.1/lib/active_record/railties/controller_runtime.rb:18:in `process_action'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/actionpack-4.2.7.1/lib/abstract_controller/base.rb:137:in `process'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/actionview-4.2.7.1/lib/action_view/rendering.rb:30:in `process'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/actionpack-4.2.7.1/lib/action_controller/test_case.rb:639:in `process'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/actionpack-4.2.7.1/lib/action_controller/test_case.rb:67:in `process'", "/home/bruno/.rvm/gems/ruby-2.1.3/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 '", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/shoulda-context-1.2.1/lib/shoulda/context/context.rb:413:in `instance_exec'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/shoulda-context-1.2.1/lib/shoulda/context/context.rb:413:in `block in create_test_from_should_hash'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest/test.rb:107:in `block (3 levels) in run'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest/test.rb:204:in `capture_exceptions'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest/test.rb:104:in `block (2 levels) in run'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest/test.rb:255:in `time_it'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest/test.rb:103:in `block in run'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest.rb:348:in `on_signal'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest/test.rb:275:in `with_info_handler'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest/test.rb:102:in `run'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest.rb:799:in `run_one_method'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest.rb:322:in `run_one_method'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest.rb:310:in `block (2 levels) in run'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest.rb:309:in `each'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest.rb:309:in `block in run'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest.rb:348:in `on_signal'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest.rb:335:in `with_info_handler'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest.rb:308:in `run'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest.rb:158:in `block in __run'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest.rb:158:in `map'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest.rb:158:in `__run'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest.rb:135:in `run'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest.rb:62:in `block in autorun'"] Redirected to Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms)  (0.1ms) rollback transaction -------------------------------------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should reset the maestrano session successfully if one already exists. --------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"params"=>{"SAMLResponse"=>"g45ad5v40xc4b3fd478"}} Redirected to http://test.host/ Cannot validate SAML response: undefined method `[]' for nil:NilClass Trace: ["/home/bruno/.rvm/gems/ruby-2.1.3/gems/maestrano-1.0.0.pre.RC1/lib/maestrano/sso/session.rb:13:in `from_user_auth_hash'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/maestrano-1.0.0.pre.RC1/lib/maestrano/sso.rb:74:in `set_session'", "/home/bruno/Workspace/maestrano-rails/app/controllers/maestrano/rails/saml_base_controller.rb:20:in `saml_response_transaction'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:432:in `block in make_lambda'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:291:in `call'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:291:in `block in halting_and_conditional'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:497:in `call'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:497:in `block in around'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:505:in `call'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:505:in `call'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:92:in `__run_callbacks__'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:778:in `_run_process_action_callbacks'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:81:in `run_callbacks'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/actionpack-4.2.7.1/lib/abstract_controller/callbacks.rb:19:in `process_action'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/actionpack-4.2.7.1/lib/action_controller/metal/rescue.rb:29:in `process_action'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/actionpack-4.2.7.1/lib/action_controller/metal/instrumentation.rb:32:in `block in process_action'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/activesupport-4.2.7.1/lib/active_support/notifications.rb:164:in `block in instrument'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/activesupport-4.2.7.1/lib/active_support/notifications/instrumenter.rb:20:in `instrument'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/activesupport-4.2.7.1/lib/active_support/notifications.rb:164:in `instrument'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/actionpack-4.2.7.1/lib/action_controller/metal/instrumentation.rb:30:in `process_action'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/actionpack-4.2.7.1/lib/action_controller/metal/params_wrapper.rb:250:in `process_action'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/activerecord-4.2.7.1/lib/active_record/railties/controller_runtime.rb:18:in `process_action'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/actionpack-4.2.7.1/lib/abstract_controller/base.rb:137:in `process'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/actionview-4.2.7.1/lib/action_view/rendering.rb:30:in `process'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/actionpack-4.2.7.1/lib/action_controller/test_case.rb:639:in `process'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/actionpack-4.2.7.1/lib/action_controller/test_case.rb:67:in `process'", "/home/bruno/.rvm/gems/ruby-2.1.3/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:102:in `block (2 levels) in '", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/shoulda-context-1.2.1/lib/shoulda/context/context.rb:413:in `instance_exec'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/shoulda-context-1.2.1/lib/shoulda/context/context.rb:413:in `block in create_test_from_should_hash'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest/test.rb:107:in `block (3 levels) in run'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest/test.rb:204:in `capture_exceptions'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest/test.rb:104:in `block (2 levels) in run'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest/test.rb:255:in `time_it'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest/test.rb:103:in `block in run'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest.rb:348:in `on_signal'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest/test.rb:275:in `with_info_handler'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest/test.rb:102:in `run'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest.rb:799:in `run_one_method'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest.rb:322:in `run_one_method'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest.rb:310:in `block (2 levels) in run'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest.rb:309:in `each'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest.rb:309:in `block in run'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest.rb:348:in `on_signal'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest.rb:335:in `with_info_handler'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest.rb:308:in `run'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest.rb:158:in `block in __run'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest.rb:158:in `map'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest.rb:158:in `__run'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest.rb:135:in `run'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest.rb:62:in `block in autorun'"] Redirected to Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction --------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should set a saml_request in scope. ---------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"params"=>{"SAMLResponse"=>"g45ad5v40xc4b3fd478"}} Redirected to http://test.host/ Cannot validate SAML response: undefined method `[]' for nil:NilClass Trace: ["/home/bruno/.rvm/gems/ruby-2.1.3/gems/maestrano-1.0.0.pre.RC1/lib/maestrano/sso/session.rb:13:in `from_user_auth_hash'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/maestrano-1.0.0.pre.RC1/lib/maestrano/sso.rb:74:in `set_session'", "/home/bruno/Workspace/maestrano-rails/app/controllers/maestrano/rails/saml_base_controller.rb:20:in `saml_response_transaction'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:432:in `block in make_lambda'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:291:in `call'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:291:in `block in halting_and_conditional'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:497:in `call'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:497:in `block in around'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:505:in `call'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:505:in `call'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:92:in `__run_callbacks__'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:778:in `_run_process_action_callbacks'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:81:in `run_callbacks'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/actionpack-4.2.7.1/lib/abstract_controller/callbacks.rb:19:in `process_action'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/actionpack-4.2.7.1/lib/action_controller/metal/rescue.rb:29:in `process_action'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/actionpack-4.2.7.1/lib/action_controller/metal/instrumentation.rb:32:in `block in process_action'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/activesupport-4.2.7.1/lib/active_support/notifications.rb:164:in `block in instrument'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/activesupport-4.2.7.1/lib/active_support/notifications/instrumenter.rb:20:in `instrument'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/activesupport-4.2.7.1/lib/active_support/notifications.rb:164:in `instrument'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/actionpack-4.2.7.1/lib/action_controller/metal/instrumentation.rb:30:in `process_action'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/actionpack-4.2.7.1/lib/action_controller/metal/params_wrapper.rb:250:in `process_action'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/activerecord-4.2.7.1/lib/active_record/railties/controller_runtime.rb:18:in `process_action'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/actionpack-4.2.7.1/lib/abstract_controller/base.rb:137:in `process'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/actionview-4.2.7.1/lib/action_view/rendering.rb:30:in `process'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/actionpack-4.2.7.1/lib/action_controller/test_case.rb:639:in `process'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/actionpack-4.2.7.1/lib/action_controller/test_case.rb:67:in `process'", "/home/bruno/.rvm/gems/ruby-2.1.3/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:56:in `block (2 levels) in '", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/shoulda-context-1.2.1/lib/shoulda/context/context.rb:413:in `instance_exec'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/shoulda-context-1.2.1/lib/shoulda/context/context.rb:413:in `block in create_test_from_should_hash'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest/test.rb:107:in `block (3 levels) in run'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest/test.rb:204:in `capture_exceptions'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest/test.rb:104:in `block (2 levels) in run'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest/test.rb:255:in `time_it'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest/test.rb:103:in `block in run'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest.rb:348:in `on_signal'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest/test.rb:275:in `with_info_handler'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest/test.rb:102:in `run'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest.rb:799:in `run_one_method'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest.rb:322:in `run_one_method'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest.rb:310:in `block (2 levels) in run'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest.rb:309:in `each'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest.rb:309:in `block in run'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest.rb:348:in `on_signal'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest.rb:335:in `with_info_handler'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest.rb:308:in `run'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest.rb:158:in `block in __run'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest.rb:158:in `map'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest.rb:158:in `__run'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest.rb:135:in `run'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest.rb:62:in `block in autorun'"] Redirected to Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction -------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should set the group_auth_hash in scope. --------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"params"=>{"SAMLResponse"=>"g45ad5v40xc4b3fd478"}} Redirected to http://test.host/ Cannot validate SAML response: undefined method `[]' for nil:NilClass Trace: ["/home/bruno/.rvm/gems/ruby-2.1.3/gems/maestrano-1.0.0.pre.RC1/lib/maestrano/sso/session.rb:13:in `from_user_auth_hash'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/maestrano-1.0.0.pre.RC1/lib/maestrano/sso.rb:74:in `set_session'", "/home/bruno/Workspace/maestrano-rails/app/controllers/maestrano/rails/saml_base_controller.rb:20:in `saml_response_transaction'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:432:in `block in make_lambda'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:291:in `call'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:291:in `block in halting_and_conditional'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:497:in `call'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:497:in `block in around'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:505:in `call'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:505:in `call'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:92:in `__run_callbacks__'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:778:in `_run_process_action_callbacks'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:81:in `run_callbacks'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/actionpack-4.2.7.1/lib/abstract_controller/callbacks.rb:19:in `process_action'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/actionpack-4.2.7.1/lib/action_controller/metal/rescue.rb:29:in `process_action'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/actionpack-4.2.7.1/lib/action_controller/metal/instrumentation.rb:32:in `block in process_action'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/activesupport-4.2.7.1/lib/active_support/notifications.rb:164:in `block in instrument'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/activesupport-4.2.7.1/lib/active_support/notifications/instrumenter.rb:20:in `instrument'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/activesupport-4.2.7.1/lib/active_support/notifications.rb:164:in `instrument'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/actionpack-4.2.7.1/lib/action_controller/metal/instrumentation.rb:30:in `process_action'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/actionpack-4.2.7.1/lib/action_controller/metal/params_wrapper.rb:250:in `process_action'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/activerecord-4.2.7.1/lib/active_record/railties/controller_runtime.rb:18:in `process_action'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/actionpack-4.2.7.1/lib/abstract_controller/base.rb:137:in `process'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/actionview-4.2.7.1/lib/action_view/rendering.rb:30:in `process'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/actionpack-4.2.7.1/lib/action_controller/test_case.rb:639:in `process'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/actionpack-4.2.7.1/lib/action_controller/test_case.rb:67:in `process'", "/home/bruno/.rvm/gems/ruby-2.1.3/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:67:in `block (2 levels) in '", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/shoulda-context-1.2.1/lib/shoulda/context/context.rb:413:in `instance_exec'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/shoulda-context-1.2.1/lib/shoulda/context/context.rb:413:in `block in create_test_from_should_hash'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest/test.rb:107:in `block (3 levels) in run'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest/test.rb:204:in `capture_exceptions'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest/test.rb:104:in `block (2 levels) in run'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest/test.rb:255:in `time_it'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest/test.rb:103:in `block in run'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest.rb:348:in `on_signal'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest/test.rb:275:in `with_info_handler'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest/test.rb:102:in `run'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest.rb:799:in `run_one_method'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest.rb:322:in `run_one_method'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest.rb:310:in `block (2 levels) in run'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest.rb:309:in `each'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest.rb:309:in `block in run'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest.rb:348:in `on_signal'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest.rb:335:in `with_info_handler'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest.rb:308:in `run'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest.rb:158:in `block in __run'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest.rb:158:in `map'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest.rb:158:in `__run'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest.rb:135:in `run'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest.rb:62:in `block in autorun'"] Redirected to Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should set the maestrano session. -------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"params"=>{"SAMLResponse"=>"g45ad5v40xc4b3fd478"}} Redirected to http://test.host/ Cannot validate SAML response: undefined method `[]' for nil:NilClass Trace: ["/home/bruno/.rvm/gems/ruby-2.1.3/gems/maestrano-1.0.0.pre.RC1/lib/maestrano/sso/session.rb:13:in `from_user_auth_hash'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/maestrano-1.0.0.pre.RC1/lib/maestrano/sso.rb:74:in `set_session'", "/home/bruno/Workspace/maestrano-rails/app/controllers/maestrano/rails/saml_base_controller.rb:20:in `saml_response_transaction'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:432:in `block in make_lambda'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:291:in `call'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:291:in `block in halting_and_conditional'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:497:in `call'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:497:in `block in around'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:505:in `call'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:505:in `call'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:92:in `__run_callbacks__'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:778:in `_run_process_action_callbacks'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:81:in `run_callbacks'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/actionpack-4.2.7.1/lib/abstract_controller/callbacks.rb:19:in `process_action'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/actionpack-4.2.7.1/lib/action_controller/metal/rescue.rb:29:in `process_action'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/actionpack-4.2.7.1/lib/action_controller/metal/instrumentation.rb:32:in `block in process_action'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/activesupport-4.2.7.1/lib/active_support/notifications.rb:164:in `block in instrument'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/activesupport-4.2.7.1/lib/active_support/notifications/instrumenter.rb:20:in `instrument'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/activesupport-4.2.7.1/lib/active_support/notifications.rb:164:in `instrument'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/actionpack-4.2.7.1/lib/action_controller/metal/instrumentation.rb:30:in `process_action'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/actionpack-4.2.7.1/lib/action_controller/metal/params_wrapper.rb:250:in `process_action'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/activerecord-4.2.7.1/lib/active_record/railties/controller_runtime.rb:18:in `process_action'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/actionpack-4.2.7.1/lib/abstract_controller/base.rb:137:in `process'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/actionview-4.2.7.1/lib/action_view/rendering.rb:30:in `process'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/actionpack-4.2.7.1/lib/action_controller/test_case.rb:639:in `process'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/actionpack-4.2.7.1/lib/action_controller/test_case.rb:67:in `process'", "/home/bruno/.rvm/gems/ruby-2.1.3/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:84:in `block (2 levels) in '", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/shoulda-context-1.2.1/lib/shoulda/context/context.rb:413:in `instance_exec'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/shoulda-context-1.2.1/lib/shoulda/context/context.rb:413:in `block in create_test_from_should_hash'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest/test.rb:107:in `block (3 levels) in run'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest/test.rb:204:in `capture_exceptions'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest/test.rb:104:in `block (2 levels) in run'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest/test.rb:255:in `time_it'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest/test.rb:103:in `block in run'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest.rb:348:in `on_signal'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest/test.rb:275:in `with_info_handler'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest/test.rb:102:in `run'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest.rb:799:in `run_one_method'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest.rb:322:in `run_one_method'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest.rb:310:in `block (2 levels) in run'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest.rb:309:in `each'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest.rb:309:in `block in run'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest.rb:348:in `on_signal'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest.rb:335:in `with_info_handler'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest.rb:308:in `run'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest.rb:158:in `block in __run'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest.rb:158:in `map'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest.rb:158:in `__run'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest.rb:135:in `run'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest.rb:62:in `block in autorun'"] Redirected to Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should set the user_auth_hash in scope. -------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"params"=>{"SAMLResponse"=>"g45ad5v40xc4b3fd478"}} Redirected to http://test.host/ Cannot validate SAML response: undefined method `[]' for nil:NilClass Trace: ["/home/bruno/.rvm/gems/ruby-2.1.3/gems/maestrano-1.0.0.pre.RC1/lib/maestrano/sso/session.rb:13:in `from_user_auth_hash'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/maestrano-1.0.0.pre.RC1/lib/maestrano/sso.rb:74:in `set_session'", "/home/bruno/Workspace/maestrano-rails/app/controllers/maestrano/rails/saml_base_controller.rb:20:in `saml_response_transaction'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:432:in `block in make_lambda'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:291:in `call'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:291:in `block in halting_and_conditional'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:497:in `call'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:497:in `block in around'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:505:in `call'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:505:in `call'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:92:in `__run_callbacks__'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:778:in `_run_process_action_callbacks'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:81:in `run_callbacks'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/actionpack-4.2.7.1/lib/abstract_controller/callbacks.rb:19:in `process_action'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/actionpack-4.2.7.1/lib/action_controller/metal/rescue.rb:29:in `process_action'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/actionpack-4.2.7.1/lib/action_controller/metal/instrumentation.rb:32:in `block in process_action'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/activesupport-4.2.7.1/lib/active_support/notifications.rb:164:in `block in instrument'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/activesupport-4.2.7.1/lib/active_support/notifications/instrumenter.rb:20:in `instrument'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/activesupport-4.2.7.1/lib/active_support/notifications.rb:164:in `instrument'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/actionpack-4.2.7.1/lib/action_controller/metal/instrumentation.rb:30:in `process_action'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/actionpack-4.2.7.1/lib/action_controller/metal/params_wrapper.rb:250:in `process_action'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/activerecord-4.2.7.1/lib/active_record/railties/controller_runtime.rb:18:in `process_action'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/actionpack-4.2.7.1/lib/abstract_controller/base.rb:137:in `process'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/actionview-4.2.7.1/lib/action_view/rendering.rb:30:in `process'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/actionpack-4.2.7.1/lib/action_controller/test_case.rb:639:in `process'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/actionpack-4.2.7.1/lib/action_controller/test_case.rb:67:in `process'", "/home/bruno/.rvm/gems/ruby-2.1.3/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:61:in `block (2 levels) in '", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/shoulda-context-1.2.1/lib/shoulda/context/context.rb:413:in `instance_exec'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/shoulda-context-1.2.1/lib/shoulda/context/context.rb:413:in `block in create_test_from_should_hash'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest/test.rb:107:in `block (3 levels) in run'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest/test.rb:204:in `capture_exceptions'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest/test.rb:104:in `block (2 levels) in run'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest/test.rb:255:in `time_it'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest/test.rb:103:in `block in run'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest.rb:348:in `on_signal'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest/test.rb:275:in `with_info_handler'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest/test.rb:102:in `run'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest.rb:799:in `run_one_method'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest.rb:322:in `run_one_method'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest.rb:310:in `block (2 levels) in run'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest.rb:309:in `each'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest.rb:309:in `block in run'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest.rb:348:in `on_signal'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest.rb:335:in `with_info_handler'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest.rb:308:in `run'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest.rb:158:in `block in __run'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest.rb:158:in `map'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest.rb:158:in `__run'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest.rb:135:in `run'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest.rb:62:in `block in autorun'"] Redirected to Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------ SamlBaseControllerTest: test_: consume phase should set the user_group_rel_hash in scope. ------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"params"=>{"SAMLResponse"=>"g45ad5v40xc4b3fd478"}} Redirected to http://test.host/ Cannot validate SAML response: undefined method `[]' for nil:NilClass Trace: ["/home/bruno/.rvm/gems/ruby-2.1.3/gems/maestrano-1.0.0.pre.RC1/lib/maestrano/sso/session.rb:13:in `from_user_auth_hash'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/maestrano-1.0.0.pre.RC1/lib/maestrano/sso.rb:74:in `set_session'", "/home/bruno/Workspace/maestrano-rails/app/controllers/maestrano/rails/saml_base_controller.rb:20:in `saml_response_transaction'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:432:in `block in make_lambda'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:291:in `call'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:291:in `block in halting_and_conditional'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:497:in `call'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:497:in `block in around'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:505:in `call'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:505:in `call'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:92:in `__run_callbacks__'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:778:in `_run_process_action_callbacks'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:81:in `run_callbacks'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/actionpack-4.2.7.1/lib/abstract_controller/callbacks.rb:19:in `process_action'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/actionpack-4.2.7.1/lib/action_controller/metal/rescue.rb:29:in `process_action'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/actionpack-4.2.7.1/lib/action_controller/metal/instrumentation.rb:32:in `block in process_action'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/activesupport-4.2.7.1/lib/active_support/notifications.rb:164:in `block in instrument'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/activesupport-4.2.7.1/lib/active_support/notifications/instrumenter.rb:20:in `instrument'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/activesupport-4.2.7.1/lib/active_support/notifications.rb:164:in `instrument'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/actionpack-4.2.7.1/lib/action_controller/metal/instrumentation.rb:30:in `process_action'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/actionpack-4.2.7.1/lib/action_controller/metal/params_wrapper.rb:250:in `process_action'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/activerecord-4.2.7.1/lib/active_record/railties/controller_runtime.rb:18:in `process_action'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/actionpack-4.2.7.1/lib/abstract_controller/base.rb:137:in `process'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/actionview-4.2.7.1/lib/action_view/rendering.rb:30:in `process'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/actionpack-4.2.7.1/lib/action_controller/test_case.rb:639:in `process'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/actionpack-4.2.7.1/lib/action_controller/test_case.rb:67:in `process'", "/home/bruno/.rvm/gems/ruby-2.1.3/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:73:in `block (2 levels) in '", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/shoulda-context-1.2.1/lib/shoulda/context/context.rb:413:in `instance_exec'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/shoulda-context-1.2.1/lib/shoulda/context/context.rb:413:in `block in create_test_from_should_hash'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest/test.rb:107:in `block (3 levels) in run'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest/test.rb:204:in `capture_exceptions'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest/test.rb:104:in `block (2 levels) in run'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest/test.rb:255:in `time_it'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest/test.rb:103:in `block in run'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest.rb:348:in `on_signal'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest/test.rb:275:in `with_info_handler'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest/test.rb:102:in `run'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest.rb:799:in `run_one_method'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest.rb:322:in `run_one_method'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest.rb:310:in `block (2 levels) in run'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest.rb:309:in `each'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest.rb:309:in `block in run'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest.rb:348:in `on_signal'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest.rb:335:in `with_info_handler'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest.rb:308:in `run'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest.rb:158:in `block in __run'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest.rb:158:in `map'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest.rb:158:in `__run'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest.rb:135:in `run'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest.rb:62:in `block in autorun'"] Redirected to Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: init phase should create a saml request successfully if a maestrano session is already set. ---------------------------------------------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#init as HTML Parameters: {"params"=>{"a_param"=>"value"}} Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms)  (0.1ms) rollback transaction ----------------------------------------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: init phase should create a saml request using params and session and redirect the user. -----------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#init as HTML Parameters: {"params"=>{"a_param"=>"value"}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" --------------------------------------------------------------------------------------------------------------------- GenericControllerTest: test_: with a maestrano session should be successful if the maestrano session is still valid. ---------------------------------------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by PagesController#home as HTML Rendered pages/home.html.erb within layouts/application (0.7ms) Completed 200 OK in 148ms (Views: 147.6ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction -------------------------------------------------------------------------------------------------------------------- GenericControllerTest: test_: with a maestrano session should initialize redirect to SSO initialization if invalid. --------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by PagesController#home as HTML Rendered pages/home.html.erb within layouts/application (0.0ms) Completed 200 OK in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ----------------------------------------------------------------------------------------------------------- GenericControllerTest: test_: with a maestrano session should not redirect to SSO init if sso is disabled. -----------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by PagesController#home as HTML Rendered pages/home.html.erb within layouts/application (0.0ms) Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------------------ GenericControllerTest: test_: with no maestrano session should be successful. ------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by PagesController#home as HTML Rendered pages/home.html.erb within layouts/application (0.0ms) Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ----------------------------------------------------------------- GroupsControllerTest: test_: authenticated should be successful. -----------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ----------------------------------------------------------------- GroupsControllerTest: test_: unauthenticated should deny access. -----------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: class methods find_or_create_for_maestrano class method should create a monster using the mapping block. --------------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction 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"]]  (0.0ms) SAVEPOINT active_record_1 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-08-31 04:20:59.935208"], ["updated_at", "2016-08-31 04:20:59.935208"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: class methods find_or_create_for_maestrano class method should not return a MnoMonster from another provider if it exists. --------------------------------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 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-08-31 04:20:59.937430"], ["updated_at", "2016-08-31 04:20:59.937430"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.0ms) SAVEPOINT active_record_1 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-08-31 04:20:59.938953"], ["updated_at", "2016-08-31 04:20:59.938953"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: class methods find_or_create_for_maestrano class method should return the MnoMonster if it exists. --------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 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-08-31 04:20:59.940582"], ["updated_at", "2016-08-31 04:20:59.940582"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.2ms) rollback transaction --------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: class methods maestrano_*_via should have the right field definition. ---------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------------------------ MaestranoUserViaTest: test_: instance methods maestrano? should return false if provider is something else. ------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: instance methods maestrano? should return false if uid is blank. ----------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ----------------------------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: instance methods maestrano? should return true if provider is maestrano and uid not null. -----------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------ MaestranoRailsTest: test_truth ------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------- GroupUsersControllerTest: test_: authenticated should be successful. ---------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------- GroupUsersControllerTest: test_: unauthenticated should deny access. ---------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------ ActiveRecordUserGeneratorTest: test_: namespaced model should create the right migration. ------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction -------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: namespaced model should edit the model content. --------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should create the right migration. --------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should edit the model content. ----------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should include parameters if rails 3 and strong_parameter not present. --------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should not include parameters if rails 3 and strong_parameter present. --------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should not include parameters in rails 4. ---------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------- MetadataControllerTest: test_: authenticated should be successful. -------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Rails::MetadataController#index as HTML Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction ------------------------------------------------------------------- MetadataControllerTest: test_: unauthenticated should deny access. -------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Rails::MetadataController#index as HTML Filter chain halted as :authenticate_maestrano! rendered or redirected Completed 401 Unauthorized in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------------------------------------------------- MaestranoGroupViaTest: test_: class methods find_or_create_for_maestrano class method should create a monster using the mapping block. ---------------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction 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"]]  (0.0ms) SAVEPOINT active_record_1 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-08-31 04:20:59.983172"], ["updated_at", "2016-08-31 04:20:59.983172"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction ------------------------------------------------------------------------------------------------------------------------------------------------------ MaestranoGroupViaTest: test_: class methods find_or_create_for_maestrano class method should not return a MnoCrew from another provider if it exists. ------------------------------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 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-08-31 04:20:59.984826"], ["updated_at", "2016-08-31 04:20:59.984826"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.0ms) SAVEPOINT active_record_1 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-08-31 04:20:59.985977"], ["updated_at", "2016-08-31 04:20:59.985977"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction ------------------------------------------------------------------------------------------------------------------------------ MaestranoGroupViaTest: test_: class methods find_or_create_for_maestrano class method should return the MnoCrew if it exists. ------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 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-08-31 04:20:59.987239"], ["updated_at", "2016-08-31 04:20:59.987239"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.1ms) rollback transaction ---------------------------------------------------------------------------------------------------- MaestranoGroupViaTest: test_: class methods maestrano_*_via should have the right field definition. ----------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------------------------- MaestranoGroupViaTest: test_: instance methods maestrano? should return false if provider is something else. -------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ----------------------------------------------------------------------------------------------- MaestranoGroupViaTest: test_: instance methods maestrano? should return false if uid is blank. -----------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------------------------------------ MaestranoGroupViaTest: test_: instance methods maestrano? should return true if provider is maestrano and uid not null. ------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: namespaced model should create the right migration. -------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: namespaced model should edit the model content. ---------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should create the right migration. ---------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ----------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should edit the model content. -----------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should include parameters if rails 3 and strong_parameter not present. ---------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should not include parameters if rails 3 and strong_parameter present. ---------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction ---------------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should not include parameters in rails 4. ----------------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction --------------------------------------------------------------------------------------- InstallGeneratorTest: test_: InstallGenerator should create the maestrano initializer. ---------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------- InstallGeneratorTest: test_: InstallGenerator should create the maestrano routes. ----------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------------------- InstallGeneratorTest: test_: InstallGenerator should create the maestrano/account/group_users_controller. ----------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ----------------------------------------------------------------------------------------------------- InstallGeneratorTest: test_: InstallGenerator should create the maestrano/account/groups_controller. -----------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------------ InstallGeneratorTest: test_: InstallGenerator should create the maestrano/auth/saml_controller. ------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase error should redirect to maestrano on any error. ----------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"params"=>{"SAMLResponse"=>"g45ad5v40xc4b3fd478"}} Redirected to http://test.host/ Cannot validate SAML response: undefined method `[]' for nil:NilClass Trace: ["/home/bruno/.rvm/gems/ruby-2.1.3/gems/maestrano-1.0.0.pre.RC1/lib/maestrano/sso/session.rb:13:in `from_user_auth_hash'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/maestrano-1.0.0.pre.RC1/lib/maestrano/sso.rb:74:in `set_session'", "/home/bruno/Workspace/maestrano-rails/app/controllers/maestrano/rails/saml_base_controller.rb:20:in `saml_response_transaction'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:432:in `block in make_lambda'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:291:in `call'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:291:in `block in halting_and_conditional'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:497:in `call'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:497:in `block in around'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:505:in `call'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:505:in `call'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:92:in `__run_callbacks__'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:778:in `_run_process_action_callbacks'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:81:in `run_callbacks'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/actionpack-4.2.7.1/lib/abstract_controller/callbacks.rb:19:in `process_action'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/actionpack-4.2.7.1/lib/action_controller/metal/rescue.rb:29:in `process_action'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/actionpack-4.2.7.1/lib/action_controller/metal/instrumentation.rb:32:in `block in process_action'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/activesupport-4.2.7.1/lib/active_support/notifications.rb:164:in `block in instrument'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/activesupport-4.2.7.1/lib/active_support/notifications/instrumenter.rb:20:in `instrument'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/activesupport-4.2.7.1/lib/active_support/notifications.rb:164:in `instrument'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/actionpack-4.2.7.1/lib/action_controller/metal/instrumentation.rb:30:in `process_action'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/actionpack-4.2.7.1/lib/action_controller/metal/params_wrapper.rb:250:in `process_action'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/activerecord-4.2.7.1/lib/active_record/railties/controller_runtime.rb:18:in `process_action'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/actionpack-4.2.7.1/lib/abstract_controller/base.rb:137:in `process'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/actionview-4.2.7.1/lib/action_view/rendering.rb:30:in `process'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/actionpack-4.2.7.1/lib/action_controller/test_case.rb:639:in `process'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/actionpack-4.2.7.1/lib/action_controller/test_case.rb:67:in `process'", "/home/bruno/.rvm/gems/ruby-2.1.3/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 '", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/shoulda-context-1.2.1/lib/shoulda/context/context.rb:413:in `instance_exec'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/shoulda-context-1.2.1/lib/shoulda/context/context.rb:413:in `block in create_test_from_should_hash'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest/test.rb:107:in `block (3 levels) in run'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest/test.rb:204:in `capture_exceptions'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest/test.rb:104:in `block (2 levels) in run'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest/test.rb:255:in `time_it'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest/test.rb:103:in `block in run'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest.rb:348:in `on_signal'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest/test.rb:275:in `with_info_handler'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest/test.rb:102:in `run'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest.rb:799:in `run_one_method'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest.rb:322:in `run_one_method'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest.rb:310:in `block (2 levels) in run'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest.rb:309:in `each'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest.rb:309:in `block in run'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest.rb:348:in `on_signal'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest.rb:335:in `with_info_handler'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest.rb:308:in `run'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest.rb:158:in `block in __run'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest.rb:158:in `map'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest.rb:158:in `__run'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest.rb:135:in `run'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest.rb:62:in `block in autorun'"] Redirected to Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms)  (0.1ms) rollback transaction -------------------------------------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should reset the maestrano session successfully if one already exists. --------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"params"=>{"SAMLResponse"=>"g45ad5v40xc4b3fd478"}} Redirected to http://test.host/ Cannot validate SAML response: undefined method `[]' for nil:NilClass Trace: ["/home/bruno/.rvm/gems/ruby-2.1.3/gems/maestrano-1.0.0.pre.RC1/lib/maestrano/sso/session.rb:13:in `from_user_auth_hash'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/maestrano-1.0.0.pre.RC1/lib/maestrano/sso.rb:74:in `set_session'", "/home/bruno/Workspace/maestrano-rails/app/controllers/maestrano/rails/saml_base_controller.rb:20:in `saml_response_transaction'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:432:in `block in make_lambda'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:291:in `call'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:291:in `block in halting_and_conditional'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:497:in `call'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:497:in `block in around'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:505:in `call'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:505:in `call'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:92:in `__run_callbacks__'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:778:in `_run_process_action_callbacks'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:81:in `run_callbacks'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/actionpack-4.2.7.1/lib/abstract_controller/callbacks.rb:19:in `process_action'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/actionpack-4.2.7.1/lib/action_controller/metal/rescue.rb:29:in `process_action'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/actionpack-4.2.7.1/lib/action_controller/metal/instrumentation.rb:32:in `block in process_action'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/activesupport-4.2.7.1/lib/active_support/notifications.rb:164:in `block in instrument'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/activesupport-4.2.7.1/lib/active_support/notifications/instrumenter.rb:20:in `instrument'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/activesupport-4.2.7.1/lib/active_support/notifications.rb:164:in `instrument'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/actionpack-4.2.7.1/lib/action_controller/metal/instrumentation.rb:30:in `process_action'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/actionpack-4.2.7.1/lib/action_controller/metal/params_wrapper.rb:250:in `process_action'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/activerecord-4.2.7.1/lib/active_record/railties/controller_runtime.rb:18:in `process_action'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/actionpack-4.2.7.1/lib/abstract_controller/base.rb:137:in `process'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/actionview-4.2.7.1/lib/action_view/rendering.rb:30:in `process'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/actionpack-4.2.7.1/lib/action_controller/test_case.rb:639:in `process'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/actionpack-4.2.7.1/lib/action_controller/test_case.rb:67:in `process'", "/home/bruno/.rvm/gems/ruby-2.1.3/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:102:in `block (2 levels) in '", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/shoulda-context-1.2.1/lib/shoulda/context/context.rb:413:in `instance_exec'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/shoulda-context-1.2.1/lib/shoulda/context/context.rb:413:in `block in create_test_from_should_hash'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest/test.rb:107:in `block (3 levels) in run'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest/test.rb:204:in `capture_exceptions'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest/test.rb:104:in `block (2 levels) in run'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest/test.rb:255:in `time_it'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest/test.rb:103:in `block in run'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest.rb:348:in `on_signal'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest/test.rb:275:in `with_info_handler'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest/test.rb:102:in `run'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest.rb:799:in `run_one_method'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest.rb:322:in `run_one_method'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest.rb:310:in `block (2 levels) in run'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest.rb:309:in `each'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest.rb:309:in `block in run'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest.rb:348:in `on_signal'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest.rb:335:in `with_info_handler'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest.rb:308:in `run'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest.rb:158:in `block in __run'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest.rb:158:in `map'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest.rb:158:in `__run'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest.rb:135:in `run'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest.rb:62:in `block in autorun'"] Redirected to Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction --------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should set a saml_request in scope. ---------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"params"=>{"SAMLResponse"=>"g45ad5v40xc4b3fd478"}} Redirected to http://test.host/ Cannot validate SAML response: undefined method `[]' for nil:NilClass Trace: ["/home/bruno/.rvm/gems/ruby-2.1.3/gems/maestrano-1.0.0.pre.RC1/lib/maestrano/sso/session.rb:13:in `from_user_auth_hash'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/maestrano-1.0.0.pre.RC1/lib/maestrano/sso.rb:74:in `set_session'", "/home/bruno/Workspace/maestrano-rails/app/controllers/maestrano/rails/saml_base_controller.rb:20:in `saml_response_transaction'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:432:in `block in make_lambda'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:291:in `call'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:291:in `block in halting_and_conditional'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:497:in `call'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:497:in `block in around'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:505:in `call'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:505:in `call'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:92:in `__run_callbacks__'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:778:in `_run_process_action_callbacks'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:81:in `run_callbacks'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/actionpack-4.2.7.1/lib/abstract_controller/callbacks.rb:19:in `process_action'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/actionpack-4.2.7.1/lib/action_controller/metal/rescue.rb:29:in `process_action'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/actionpack-4.2.7.1/lib/action_controller/metal/instrumentation.rb:32:in `block in process_action'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/activesupport-4.2.7.1/lib/active_support/notifications.rb:164:in `block in instrument'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/activesupport-4.2.7.1/lib/active_support/notifications/instrumenter.rb:20:in `instrument'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/activesupport-4.2.7.1/lib/active_support/notifications.rb:164:in `instrument'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/actionpack-4.2.7.1/lib/action_controller/metal/instrumentation.rb:30:in `process_action'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/actionpack-4.2.7.1/lib/action_controller/metal/params_wrapper.rb:250:in `process_action'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/activerecord-4.2.7.1/lib/active_record/railties/controller_runtime.rb:18:in `process_action'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/actionpack-4.2.7.1/lib/abstract_controller/base.rb:137:in `process'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/actionview-4.2.7.1/lib/action_view/rendering.rb:30:in `process'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/actionpack-4.2.7.1/lib/action_controller/test_case.rb:639:in `process'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/actionpack-4.2.7.1/lib/action_controller/test_case.rb:67:in `process'", "/home/bruno/.rvm/gems/ruby-2.1.3/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:56:in `block (2 levels) in '", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/shoulda-context-1.2.1/lib/shoulda/context/context.rb:413:in `instance_exec'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/shoulda-context-1.2.1/lib/shoulda/context/context.rb:413:in `block in create_test_from_should_hash'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest/test.rb:107:in `block (3 levels) in run'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest/test.rb:204:in `capture_exceptions'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest/test.rb:104:in `block (2 levels) in run'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest/test.rb:255:in `time_it'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest/test.rb:103:in `block in run'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest.rb:348:in `on_signal'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest/test.rb:275:in `with_info_handler'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest/test.rb:102:in `run'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest.rb:799:in `run_one_method'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest.rb:322:in `run_one_method'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest.rb:310:in `block (2 levels) in run'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest.rb:309:in `each'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest.rb:309:in `block in run'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest.rb:348:in `on_signal'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest.rb:335:in `with_info_handler'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest.rb:308:in `run'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest.rb:158:in `block in __run'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest.rb:158:in `map'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest.rb:158:in `__run'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest.rb:135:in `run'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest.rb:62:in `block in autorun'"] Redirected to Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction -------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should set the group_auth_hash in scope. --------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"params"=>{"SAMLResponse"=>"g45ad5v40xc4b3fd478"}} Redirected to http://test.host/ Cannot validate SAML response: undefined method `[]' for nil:NilClass Trace: ["/home/bruno/.rvm/gems/ruby-2.1.3/gems/maestrano-1.0.0.pre.RC1/lib/maestrano/sso/session.rb:13:in `from_user_auth_hash'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/maestrano-1.0.0.pre.RC1/lib/maestrano/sso.rb:74:in `set_session'", "/home/bruno/Workspace/maestrano-rails/app/controllers/maestrano/rails/saml_base_controller.rb:20:in `saml_response_transaction'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:432:in `block in make_lambda'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:291:in `call'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:291:in `block in halting_and_conditional'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:497:in `call'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:497:in `block in around'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:505:in `call'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:505:in `call'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:92:in `__run_callbacks__'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:778:in `_run_process_action_callbacks'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:81:in `run_callbacks'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/actionpack-4.2.7.1/lib/abstract_controller/callbacks.rb:19:in `process_action'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/actionpack-4.2.7.1/lib/action_controller/metal/rescue.rb:29:in `process_action'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/actionpack-4.2.7.1/lib/action_controller/metal/instrumentation.rb:32:in `block in process_action'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/activesupport-4.2.7.1/lib/active_support/notifications.rb:164:in `block in instrument'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/activesupport-4.2.7.1/lib/active_support/notifications/instrumenter.rb:20:in `instrument'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/activesupport-4.2.7.1/lib/active_support/notifications.rb:164:in `instrument'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/actionpack-4.2.7.1/lib/action_controller/metal/instrumentation.rb:30:in `process_action'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/actionpack-4.2.7.1/lib/action_controller/metal/params_wrapper.rb:250:in `process_action'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/activerecord-4.2.7.1/lib/active_record/railties/controller_runtime.rb:18:in `process_action'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/actionpack-4.2.7.1/lib/abstract_controller/base.rb:137:in `process'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/actionview-4.2.7.1/lib/action_view/rendering.rb:30:in `process'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/actionpack-4.2.7.1/lib/action_controller/test_case.rb:639:in `process'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/actionpack-4.2.7.1/lib/action_controller/test_case.rb:67:in `process'", "/home/bruno/.rvm/gems/ruby-2.1.3/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:67:in `block (2 levels) in '", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/shoulda-context-1.2.1/lib/shoulda/context/context.rb:413:in `instance_exec'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/shoulda-context-1.2.1/lib/shoulda/context/context.rb:413:in `block in create_test_from_should_hash'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest/test.rb:107:in `block (3 levels) in run'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest/test.rb:204:in `capture_exceptions'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest/test.rb:104:in `block (2 levels) in run'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest/test.rb:255:in `time_it'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest/test.rb:103:in `block in run'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest.rb:348:in `on_signal'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest/test.rb:275:in `with_info_handler'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest/test.rb:102:in `run'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest.rb:799:in `run_one_method'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest.rb:322:in `run_one_method'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest.rb:310:in `block (2 levels) in run'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest.rb:309:in `each'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest.rb:309:in `block in run'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest.rb:348:in `on_signal'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest.rb:335:in `with_info_handler'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest.rb:308:in `run'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest.rb:158:in `block in __run'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest.rb:158:in `map'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest.rb:158:in `__run'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest.rb:135:in `run'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest.rb:62:in `block in autorun'"] Redirected to Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should set the maestrano session. -------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"params"=>{"SAMLResponse"=>"g45ad5v40xc4b3fd478"}} Redirected to http://test.host/ Cannot validate SAML response: undefined method `[]' for nil:NilClass Trace: ["/home/bruno/.rvm/gems/ruby-2.1.3/gems/maestrano-1.0.0.pre.RC1/lib/maestrano/sso/session.rb:13:in `from_user_auth_hash'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/maestrano-1.0.0.pre.RC1/lib/maestrano/sso.rb:74:in `set_session'", "/home/bruno/Workspace/maestrano-rails/app/controllers/maestrano/rails/saml_base_controller.rb:20:in `saml_response_transaction'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:432:in `block in make_lambda'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:291:in `call'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:291:in `block in halting_and_conditional'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:497:in `call'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:497:in `block in around'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:505:in `call'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:505:in `call'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:92:in `__run_callbacks__'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:778:in `_run_process_action_callbacks'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:81:in `run_callbacks'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/actionpack-4.2.7.1/lib/abstract_controller/callbacks.rb:19:in `process_action'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/actionpack-4.2.7.1/lib/action_controller/metal/rescue.rb:29:in `process_action'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/actionpack-4.2.7.1/lib/action_controller/metal/instrumentation.rb:32:in `block in process_action'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/activesupport-4.2.7.1/lib/active_support/notifications.rb:164:in `block in instrument'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/activesupport-4.2.7.1/lib/active_support/notifications/instrumenter.rb:20:in `instrument'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/activesupport-4.2.7.1/lib/active_support/notifications.rb:164:in `instrument'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/actionpack-4.2.7.1/lib/action_controller/metal/instrumentation.rb:30:in `process_action'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/actionpack-4.2.7.1/lib/action_controller/metal/params_wrapper.rb:250:in `process_action'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/activerecord-4.2.7.1/lib/active_record/railties/controller_runtime.rb:18:in `process_action'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/actionpack-4.2.7.1/lib/abstract_controller/base.rb:137:in `process'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/actionview-4.2.7.1/lib/action_view/rendering.rb:30:in `process'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/actionpack-4.2.7.1/lib/action_controller/test_case.rb:639:in `process'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/actionpack-4.2.7.1/lib/action_controller/test_case.rb:67:in `process'", "/home/bruno/.rvm/gems/ruby-2.1.3/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:84:in `block (2 levels) in '", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/shoulda-context-1.2.1/lib/shoulda/context/context.rb:413:in `instance_exec'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/shoulda-context-1.2.1/lib/shoulda/context/context.rb:413:in `block in create_test_from_should_hash'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest/test.rb:107:in `block (3 levels) in run'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest/test.rb:204:in `capture_exceptions'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest/test.rb:104:in `block (2 levels) in run'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest/test.rb:255:in `time_it'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest/test.rb:103:in `block in run'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest.rb:348:in `on_signal'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest/test.rb:275:in `with_info_handler'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest/test.rb:102:in `run'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest.rb:799:in `run_one_method'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest.rb:322:in `run_one_method'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest.rb:310:in `block (2 levels) in run'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest.rb:309:in `each'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest.rb:309:in `block in run'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest.rb:348:in `on_signal'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest.rb:335:in `with_info_handler'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest.rb:308:in `run'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest.rb:158:in `block in __run'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest.rb:158:in `map'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest.rb:158:in `__run'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest.rb:135:in `run'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest.rb:62:in `block in autorun'"] Redirected to Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should set the user_auth_hash in scope. -------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"params"=>{"SAMLResponse"=>"g45ad5v40xc4b3fd478"}} Redirected to http://test.host/ Cannot validate SAML response: undefined method `[]' for nil:NilClass Trace: ["/home/bruno/.rvm/gems/ruby-2.1.3/gems/maestrano-1.0.0.pre.RC1/lib/maestrano/sso/session.rb:13:in `from_user_auth_hash'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/maestrano-1.0.0.pre.RC1/lib/maestrano/sso.rb:74:in `set_session'", "/home/bruno/Workspace/maestrano-rails/app/controllers/maestrano/rails/saml_base_controller.rb:20:in `saml_response_transaction'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:432:in `block in make_lambda'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:291:in `call'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:291:in `block in halting_and_conditional'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:497:in `call'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:497:in `block in around'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:505:in `call'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:505:in `call'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:92:in `__run_callbacks__'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:778:in `_run_process_action_callbacks'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:81:in `run_callbacks'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/actionpack-4.2.7.1/lib/abstract_controller/callbacks.rb:19:in `process_action'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/actionpack-4.2.7.1/lib/action_controller/metal/rescue.rb:29:in `process_action'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/actionpack-4.2.7.1/lib/action_controller/metal/instrumentation.rb:32:in `block in process_action'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/activesupport-4.2.7.1/lib/active_support/notifications.rb:164:in `block in instrument'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/activesupport-4.2.7.1/lib/active_support/notifications/instrumenter.rb:20:in `instrument'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/activesupport-4.2.7.1/lib/active_support/notifications.rb:164:in `instrument'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/actionpack-4.2.7.1/lib/action_controller/metal/instrumentation.rb:30:in `process_action'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/actionpack-4.2.7.1/lib/action_controller/metal/params_wrapper.rb:250:in `process_action'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/activerecord-4.2.7.1/lib/active_record/railties/controller_runtime.rb:18:in `process_action'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/actionpack-4.2.7.1/lib/abstract_controller/base.rb:137:in `process'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/actionview-4.2.7.1/lib/action_view/rendering.rb:30:in `process'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/actionpack-4.2.7.1/lib/action_controller/test_case.rb:639:in `process'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/actionpack-4.2.7.1/lib/action_controller/test_case.rb:67:in `process'", "/home/bruno/.rvm/gems/ruby-2.1.3/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:61:in `block (2 levels) in '", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/shoulda-context-1.2.1/lib/shoulda/context/context.rb:413:in `instance_exec'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/shoulda-context-1.2.1/lib/shoulda/context/context.rb:413:in `block in create_test_from_should_hash'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest/test.rb:107:in `block (3 levels) in run'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest/test.rb:204:in `capture_exceptions'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest/test.rb:104:in `block (2 levels) in run'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest/test.rb:255:in `time_it'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest/test.rb:103:in `block in run'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest.rb:348:in `on_signal'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest/test.rb:275:in `with_info_handler'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest/test.rb:102:in `run'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest.rb:799:in `run_one_method'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest.rb:322:in `run_one_method'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest.rb:310:in `block (2 levels) in run'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest.rb:309:in `each'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest.rb:309:in `block in run'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest.rb:348:in `on_signal'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest.rb:335:in `with_info_handler'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest.rb:308:in `run'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest.rb:158:in `block in __run'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest.rb:158:in `map'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest.rb:158:in `__run'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest.rb:135:in `run'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest.rb:62:in `block in autorun'"] Redirected to Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------ SamlBaseControllerTest: test_: consume phase should set the user_group_rel_hash in scope. ------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: init phase should create a saml request successfully if a maestrano session is already set. ---------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#init as HTML Parameters: {"params"=>{"a_param"=>"value"}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ----------------------------------------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: init phase should create a saml request using params and session and redirect the user. -----------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#init as HTML Parameters: {"params"=>{"a_param"=>"value"}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------------------- GroupGeneratorTest: test_: GroupGenerator should call the active_record migration generator successfully. ----------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------------- GroupGeneratorTest: test_: GroupGenerator should call the mongoid migration generator successfully. ----------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction -------------------------------------------------------------------------------------------------------- UserGeneratorTest: test_: UserGenerator should call the active_record migration generator successfully. --------------------------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------- UserGeneratorTest: test_: UserGenerator should call the mongoid migration generator successfully. --------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" --------------------------------------------------------------------- GroupUsersControllerTest: test_: authenticated should be successful. ---------------------------------------------------------------------  (0.2ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------- GroupUsersControllerTest: test_: unauthenticated should deny access. ---------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------------------------------------------------- MaestranoGroupViaTest: test_: class methods find_or_create_for_maestrano class method should create a monster using the mapping block. ---------------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction 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"]]  (0.1ms) SAVEPOINT active_record_1 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-08-31 04:21:18.365975"], ["updated_at", "2016-08-31 04:21:18.365975"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction ------------------------------------------------------------------------------------------------------------------------------------------------------ MaestranoGroupViaTest: test_: class methods find_or_create_for_maestrano class method should not return a MnoCrew from another provider if it exists. ------------------------------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 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-08-31 04:21:18.368330"], ["updated_at", "2016-08-31 04:21:18.368330"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.0ms) SAVEPOINT active_record_1 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-08-31 04:21:18.369800"], ["updated_at", "2016-08-31 04:21:18.369800"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction ------------------------------------------------------------------------------------------------------------------------------ MaestranoGroupViaTest: test_: class methods find_or_create_for_maestrano class method should return the MnoCrew if it exists. ------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 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-08-31 04:21:18.371299"], ["updated_at", "2016-08-31 04:21:18.371299"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.1ms) rollback transaction ---------------------------------------------------------------------------------------------------- MaestranoGroupViaTest: test_: class methods maestrano_*_via should have the right field definition. ----------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------------------------- MaestranoGroupViaTest: test_: instance methods maestrano? should return false if provider is something else. -------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ----------------------------------------------------------------------------------------------- MaestranoGroupViaTest: test_: instance methods maestrano? should return false if uid is blank. -----------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------------------------------------ MaestranoGroupViaTest: test_: instance methods maestrano? should return true if provider is maestrano and uid not null. ------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: class methods find_or_create_for_maestrano class method should create a monster using the mapping block. --------------------------------------------------------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "mno_monsters" ("first_name", "last_name", "email", "provider", "uid", "tenant", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["first_name", "Mon"], ["last_name", "Ster"], ["email", "monster@monst.com"], ["provider", "maestrano"], ["uid", "usr-2"], ["tenant", "default"], ["created_at", "2016-08-31 04:21:18.383744"], ["updated_at", "2016-08-31 04:21:18.383744"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: class methods find_or_create_for_maestrano class method should not return a MnoMonster from another provider if it exists. --------------------------------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 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-08-31 04:21:18.385905"], ["updated_at", "2016-08-31 04:21:18.385905"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.0ms) SAVEPOINT active_record_1 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-08-31 04:21:18.387302"], ["updated_at", "2016-08-31 04:21:18.387302"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: class methods find_or_create_for_maestrano class method should return the MnoMonster if it exists. --------------------------------------------------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 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-08-31 04:21:18.388886"], ["updated_at", "2016-08-31 04:21:18.388886"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.1ms) rollback transaction --------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: class methods maestrano_*_via should have the right field definition. ---------------------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------------------------ MaestranoUserViaTest: test_: instance methods maestrano? should return false if provider is something else. ------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: instance methods maestrano? should return false if uid is blank. ----------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ----------------------------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: instance methods maestrano? should return true if provider is maestrano and uid not null. -----------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction ----------------------------------------------------------------- GroupsControllerTest: test_: authenticated should be successful. -----------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ----------------------------------------------------------------- GroupsControllerTest: test_: unauthenticated should deny access. -----------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------------------------------- GenericControllerTest: test_: with a maestrano session should be successful if the maestrano session is still valid. ---------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by PagesController#home as HTML Rendered pages/home.html.erb within layouts/application (0.8ms) Completed 200 OK in 152ms (Views: 151.5ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction -------------------------------------------------------------------------------------------------------------------- GenericControllerTest: test_: with a maestrano session should initialize redirect to SSO initialization if invalid. --------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by PagesController#home as HTML Redirected to http://localhost:3000/maestrano/auth/saml/init/default Filter chain halted as :verify_maestrano_session rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ----------------------------------------------------------------------------------------------------------- GenericControllerTest: test_: with a maestrano session should not redirect to SSO init if sso is disabled. -----------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by PagesController#home as HTML Rendered pages/home.html.erb within layouts/application (0.0ms) Completed 200 OK in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------------------ GenericControllerTest: test_: with no maestrano session should be successful. ------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by PagesController#home as HTML Rendered pages/home.html.erb within layouts/application (0.0ms) Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase error should redirect to maestrano on any error. ----------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Cannot validate SAML response: Bla Trace: ["/home/bruno/.rvm/gems/ruby-2.1.3/gems/mocha-1.1.0/lib/mocha/exception_raiser.rb:12:in `evaluate'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/mocha-1.1.0/lib/mocha/return_values.rb:20:in `next'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/mocha-1.1.0/lib/mocha/expectation.rb:569:in `invoke'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/mocha-1.1.0/lib/mocha/mock.rb:296:in `method_missing'", "/home/bruno/Workspace/maestrano-rails/app/controllers/maestrano/rails/saml_base_controller.rb:35:in `process_saml_response'", "/home/bruno/Workspace/maestrano-rails/app/controllers/maestrano/rails/saml_base_controller.rb:18:in `saml_response_transaction'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:432:in `block in make_lambda'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:291:in `call'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:291:in `block in halting_and_conditional'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:497:in `call'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:497:in `block in around'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:505:in `call'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:505:in `call'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:92:in `__run_callbacks__'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:778:in `_run_process_action_callbacks'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:81:in `run_callbacks'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/actionpack-4.2.7.1/lib/abstract_controller/callbacks.rb:19:in `process_action'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/actionpack-4.2.7.1/lib/action_controller/metal/rescue.rb:29:in `process_action'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/actionpack-4.2.7.1/lib/action_controller/metal/instrumentation.rb:32:in `block in process_action'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/activesupport-4.2.7.1/lib/active_support/notifications.rb:164:in `block in instrument'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/activesupport-4.2.7.1/lib/active_support/notifications/instrumenter.rb:20:in `instrument'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/activesupport-4.2.7.1/lib/active_support/notifications.rb:164:in `instrument'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/actionpack-4.2.7.1/lib/action_controller/metal/instrumentation.rb:30:in `process_action'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/actionpack-4.2.7.1/lib/action_controller/metal/params_wrapper.rb:250:in `process_action'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/activerecord-4.2.7.1/lib/active_record/railties/controller_runtime.rb:18:in `process_action'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/actionpack-4.2.7.1/lib/abstract_controller/base.rb:137:in `process'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/actionview-4.2.7.1/lib/action_view/rendering.rb:30:in `process'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/actionpack-4.2.7.1/lib/action_controller/test_case.rb:639:in `process'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/actionpack-4.2.7.1/lib/action_controller/test_case.rb:67:in `process'", "/home/bruno/.rvm/gems/ruby-2.1.3/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 '", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/shoulda-context-1.2.1/lib/shoulda/context/context.rb:413:in `instance_exec'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/shoulda-context-1.2.1/lib/shoulda/context/context.rb:413:in `block in create_test_from_should_hash'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest/test.rb:107:in `block (3 levels) in run'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest/test.rb:204:in `capture_exceptions'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest/test.rb:104:in `block (2 levels) in run'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest/test.rb:255:in `time_it'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest/test.rb:103:in `block in run'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest.rb:348:in `on_signal'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest/test.rb:275:in `with_info_handler'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest/test.rb:102:in `run'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest.rb:799:in `run_one_method'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest.rb:322:in `run_one_method'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest.rb:310:in `block (2 levels) in run'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest.rb:309:in `each'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest.rb:309:in `block in run'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest.rb:348:in `on_signal'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest.rb:335:in `with_info_handler'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest.rb:308:in `run'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest.rb:158:in `block in __run'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest.rb:158:in `map'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest.rb:158:in `__run'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest.rb:135:in `run'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest.rb:62:in `block in autorun'"] Redirected to http://api-sandbox.maestrano.io/app_access_unauthorized?err=internal Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should reset the maestrano session successfully if one already exists. --------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction --------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should set a saml_request in scope. ---------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction -------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should set the group_auth_hash in scope. --------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should set the maestrano session. -------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should set the user_auth_hash in scope. -------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------ SamlBaseControllerTest: test_: consume phase should set the user_group_rel_hash in scope. ------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: init phase should create a saml request successfully if a maestrano session is already set. ---------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#init as HTML Parameters: {"a_param"=>"value"} Redirected to http://idpprovider.com?r=request Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ----------------------------------------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: init phase should create a saml request using params and session and redirect the user. -----------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#init as HTML Parameters: {"a_param"=>"value"} Redirected to http://idpprovider.com?r=request Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) rollback transaction ------------------------------------------------------------------- MetadataControllerTest: test_: authenticated should be successful. -------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Rails::MetadataController#index as HTML Completed 200 OK in 2ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction ------------------------------------------------------------------- MetadataControllerTest: test_: unauthenticated should deny access. -------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Rails::MetadataController#index as HTML Filter chain halted as :authenticate_maestrano! rendered or redirected Completed 401 Unauthorized in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: namespaced model should create the right migration. -------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: namespaced model should edit the model content. ---------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should create the right migration. ---------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ----------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should edit the model content. -----------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should include parameters if rails 3 and strong_parameter not present. ---------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should not include parameters if rails 3 and strong_parameter present. ---------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should not include parameters in rails 4. ----------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------------- UserGeneratorTest: test_: UserGenerator should call the active_record migration generator successfully. --------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction -------------------------------------------------------------------------------------------------- UserGeneratorTest: test_: UserGenerator should call the mongoid migration generator successfully. --------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction ------------------------------ MaestranoRailsTest: test_truth ------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------------------- GroupGeneratorTest: test_: GroupGenerator should call the active_record migration generator successfully. ----------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------------- GroupGeneratorTest: test_: GroupGenerator should call the mongoid migration generator successfully. ----------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------- InstallGeneratorTest: test_: InstallGenerator should create the maestrano initializer. ---------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction ---------------------------------------------------------------------------------- InstallGeneratorTest: test_: InstallGenerator should create the maestrano routes. ----------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------------------- InstallGeneratorTest: test_: InstallGenerator should create the maestrano/account/group_users_controller. ----------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ----------------------------------------------------------------------------------------------------- InstallGeneratorTest: test_: InstallGenerator should create the maestrano/account/groups_controller. -----------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------------ InstallGeneratorTest: test_: InstallGenerator should create the maestrano/auth/saml_controller. ------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------ ActiveRecordUserGeneratorTest: test_: namespaced model should create the right migration. ------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: namespaced model should edit the model content. --------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should create the right migration. --------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should edit the model content. ----------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should include parameters if rails 3 and strong_parameter not present. --------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should not include parameters if rails 3 and strong_parameter present. --------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should not include parameters in rails 4. ---------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ------------------------------ MaestranoRailsTest: test_truth ------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ----------------------------------------------------------------- GroupsControllerTest: test_: authenticated should be successful. -----------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Account::GroupsController#destroy as HTML Parameters: {"id"=>"cld-1"} Rendered text template (0.0ms) Completed 200 OK in 5ms (Views: 4.4ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction ----------------------------------------------------------------- GroupsControllerTest: test_: unauthenticated should deny access. -----------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Account::GroupsController#destroy as HTML Parameters: {"id"=>"cld-1"} Filter chain halted as :authenticate_maestrano! rendered or redirected Completed 401 Unauthorized in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------------------- GroupGeneratorTest: test_: GroupGenerator should call the active_record migration generator successfully. ----------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------------- GroupGeneratorTest: test_: GroupGenerator should call the mongoid migration generator successfully. ----------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction --------------------------------------------------------------------------------------- InstallGeneratorTest: test_: InstallGenerator should create the maestrano initializer. ---------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction ---------------------------------------------------------------------------------- InstallGeneratorTest: test_: InstallGenerator should create the maestrano routes. ----------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------------------- InstallGeneratorTest: test_: InstallGenerator should create the maestrano/account/group_users_controller. ----------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ----------------------------------------------------------------------------------------------------- InstallGeneratorTest: test_: InstallGenerator should create the maestrano/account/groups_controller. -----------------------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------------ InstallGeneratorTest: test_: InstallGenerator should create the maestrano/auth/saml_controller. ------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------ ActiveRecordUserGeneratorTest: test_: namespaced model should create the right migration. ------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: namespaced model should edit the model content. --------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should create the right migration. --------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should edit the model content. ----------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should include parameters if rails 3 and strong_parameter not present. --------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should not include parameters if rails 3 and strong_parameter present. --------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should not include parameters in rails 4. ---------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: namespaced model should create the right migration. -------------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: namespaced model should edit the model content. ---------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should create the right migration. ---------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ----------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should edit the model content. -----------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should include parameters if rails 3 and strong_parameter not present. ---------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should not include parameters if rails 3 and strong_parameter present. ---------------------------------------------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction ---------------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should not include parameters in rails 4. ----------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------------------------------- GenericControllerTest: test_: with a maestrano session should be successful if the maestrano session is still valid. ---------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by PagesController#home as HTML Rendered pages/home.html.erb within layouts/application (0.8ms) Completed 200 OK in 139ms (Views: 139.1ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction -------------------------------------------------------------------------------------------------------------------- GenericControllerTest: test_: with a maestrano session should initialize redirect to SSO initialization if invalid. --------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by PagesController#home as HTML Rendered pages/home.html.erb within layouts/application (0.0ms) Completed 200 OK in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ----------------------------------------------------------------------------------------------------------- GenericControllerTest: test_: with a maestrano session should not redirect to SSO init if sso is disabled. -----------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by PagesController#home as HTML Rendered pages/home.html.erb within layouts/application (0.0ms) Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------------------ GenericControllerTest: test_: with no maestrano session should be successful. ------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by PagesController#home as HTML Rendered pages/home.html.erb within layouts/application (0.0ms) Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------- MetadataControllerTest: test_: authenticated should be successful. -------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Rails::MetadataController#index as HTML Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------- MetadataControllerTest: test_: unauthenticated should deny access. -------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Rails::MetadataController#index as HTML Filter chain halted as :authenticate_maestrano! rendered or redirected Completed 401 Unauthorized in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------------- UserGeneratorTest: test_: UserGenerator should call the active_record migration generator successfully. --------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------- UserGeneratorTest: test_: UserGenerator should call the mongoid migration generator successfully. --------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction --------------------------------------------------------------------------------------------------------------------------------------- MaestranoGroupViaTest: test_: class methods find_or_create_for_maestrano class method should create a monster using the mapping block. ---------------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction 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"]]  (0.0ms) SAVEPOINT active_record_1 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-08-31 04:21:49.289923"], ["updated_at", "2016-08-31 04:21:49.289923"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction ------------------------------------------------------------------------------------------------------------------------------------------------------ MaestranoGroupViaTest: test_: class methods find_or_create_for_maestrano class method should not return a MnoCrew from another provider if it exists. ------------------------------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 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-08-31 04:21:49.292025"], ["updated_at", "2016-08-31 04:21:49.292025"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.0ms) SAVEPOINT active_record_1 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-08-31 04:21:49.293335"], ["updated_at", "2016-08-31 04:21:49.293335"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction ------------------------------------------------------------------------------------------------------------------------------ MaestranoGroupViaTest: test_: class methods find_or_create_for_maestrano class method should return the MnoCrew if it exists. ------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 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-08-31 04:21:49.294780"], ["updated_at", "2016-08-31 04:21:49.294780"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.1ms) rollback transaction ---------------------------------------------------------------------------------------------------- MaestranoGroupViaTest: test_: class methods maestrano_*_via should have the right field definition. ----------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------------------------- MaestranoGroupViaTest: test_: instance methods maestrano? should return false if provider is something else. -------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ----------------------------------------------------------------------------------------------- MaestranoGroupViaTest: test_: instance methods maestrano? should return false if uid is blank. -----------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------------------------------------ MaestranoGroupViaTest: test_: instance methods maestrano? should return true if provider is maestrano and uid not null. ------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: class methods find_or_create_for_maestrano class method should create a monster using the mapping block. --------------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "mno_monsters" ("first_name", "last_name", "email", "provider", "uid", "tenant", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["first_name", "Mon"], ["last_name", "Ster"], ["email", "monster@monst.com"], ["provider", "maestrano"], ["uid", "usr-2"], ["tenant", "default"], ["created_at", "2016-08-31 04:21:49.304107"], ["updated_at", "2016-08-31 04:21:49.304107"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: class methods find_or_create_for_maestrano class method should not return a MnoMonster from another provider if it exists. --------------------------------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 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-08-31 04:21:49.306001"], ["updated_at", "2016-08-31 04:21:49.306001"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.0ms) SAVEPOINT active_record_1 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-08-31 04:21:49.307360"], ["updated_at", "2016-08-31 04:21:49.307360"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: class methods find_or_create_for_maestrano class method should return the MnoMonster if it exists. --------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 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-08-31 04:21:49.309241"], ["updated_at", "2016-08-31 04:21:49.309241"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.1ms) rollback transaction --------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: class methods maestrano_*_via should have the right field definition. ---------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------------------------ MaestranoUserViaTest: test_: instance methods maestrano? should return false if provider is something else. ------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: instance methods maestrano? should return false if uid is blank. ----------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ----------------------------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: instance methods maestrano? should return true if provider is maestrano and uid not null. -----------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------- GroupUsersControllerTest: test_: authenticated should be successful. ---------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Account::GroupUsersController#destroy as HTML Parameters: {"group_id"=>"cld-1", "id"=>"usr-1"} Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.7ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction --------------------------------------------------------------------- GroupUsersControllerTest: test_: unauthenticated should deny access. ---------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Account::GroupUsersController#destroy as HTML Parameters: {"group_id"=>"cld-1", "id"=>"usr-1"} Filter chain halted as :authenticate_maestrano! rendered or redirected Completed 401 Unauthorized in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase error should redirect to maestrano on any error. ----------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Cannot validate SAML response: Bla Trace: ["/home/bruno/.rvm/gems/ruby-2.1.3/gems/mocha-1.1.0/lib/mocha/exception_raiser.rb:12:in `evaluate'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/mocha-1.1.0/lib/mocha/return_values.rb:20:in `next'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/mocha-1.1.0/lib/mocha/expectation.rb:569:in `invoke'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/mocha-1.1.0/lib/mocha/mock.rb:296:in `method_missing'", "/home/bruno/Workspace/maestrano-rails/app/controllers/maestrano/rails/saml_base_controller.rb:35:in `process_saml_response'", "/home/bruno/Workspace/maestrano-rails/app/controllers/maestrano/rails/saml_base_controller.rb:18:in `saml_response_transaction'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:432:in `block in make_lambda'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:291:in `call'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:291:in `block in halting_and_conditional'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:497:in `call'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:497:in `block in around'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:505:in `call'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:505:in `call'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:92:in `__run_callbacks__'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:778:in `_run_process_action_callbacks'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:81:in `run_callbacks'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/actionpack-4.2.7.1/lib/abstract_controller/callbacks.rb:19:in `process_action'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/actionpack-4.2.7.1/lib/action_controller/metal/rescue.rb:29:in `process_action'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/actionpack-4.2.7.1/lib/action_controller/metal/instrumentation.rb:32:in `block in process_action'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/activesupport-4.2.7.1/lib/active_support/notifications.rb:164:in `block in instrument'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/activesupport-4.2.7.1/lib/active_support/notifications/instrumenter.rb:20:in `instrument'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/activesupport-4.2.7.1/lib/active_support/notifications.rb:164:in `instrument'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/actionpack-4.2.7.1/lib/action_controller/metal/instrumentation.rb:30:in `process_action'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/actionpack-4.2.7.1/lib/action_controller/metal/params_wrapper.rb:250:in `process_action'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/activerecord-4.2.7.1/lib/active_record/railties/controller_runtime.rb:18:in `process_action'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/actionpack-4.2.7.1/lib/abstract_controller/base.rb:137:in `process'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/actionview-4.2.7.1/lib/action_view/rendering.rb:30:in `process'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/actionpack-4.2.7.1/lib/action_controller/test_case.rb:639:in `process'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/actionpack-4.2.7.1/lib/action_controller/test_case.rb:67:in `process'", "/home/bruno/.rvm/gems/ruby-2.1.3/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 '", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/shoulda-context-1.2.1/lib/shoulda/context/context.rb:413:in `instance_exec'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/shoulda-context-1.2.1/lib/shoulda/context/context.rb:413:in `block in create_test_from_should_hash'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest/test.rb:107:in `block (3 levels) in run'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest/test.rb:204:in `capture_exceptions'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest/test.rb:104:in `block (2 levels) in run'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest/test.rb:255:in `time_it'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest/test.rb:103:in `block in run'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest.rb:348:in `on_signal'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest/test.rb:275:in `with_info_handler'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest/test.rb:102:in `run'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest.rb:799:in `run_one_method'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest.rb:322:in `run_one_method'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest.rb:310:in `block (2 levels) in run'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest.rb:309:in `each'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest.rb:309:in `block in run'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest.rb:348:in `on_signal'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest.rb:335:in `with_info_handler'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest.rb:308:in `run'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest.rb:158:in `block in __run'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest.rb:158:in `map'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest.rb:158:in `__run'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest.rb:135:in `run'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest.rb:62:in `block in autorun'"] Redirected to http://api-sandbox.maestrano.io/app_access_unauthorized?err=internal Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should reset the maestrano session successfully if one already exists. --------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction --------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should set a saml_request in scope. ---------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction -------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should set the group_auth_hash in scope. --------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should set the maestrano session. -------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should set the user_auth_hash in scope. -------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------ SamlBaseControllerTest: test_: consume phase should set the user_group_rel_hash in scope. ------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: init phase should create a saml request successfully if a maestrano session is already set. ---------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#init as HTML Parameters: {"a_param"=>"value"} Redirected to http://idpprovider.com?r=request Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ----------------------------------------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: init phase should create a saml request using params and session and redirect the user. -----------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#init as HTML Parameters: {"a_param"=>"value"} Redirected to http://idpprovider.com?r=request Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" --------------------------------------------------------------------- GroupUsersControllerTest: test_: authenticated should be successful. ---------------------------------------------------------------------  (0.2ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Account::GroupUsersController#destroy as HTML Parameters: {"group_id"=>"cld-1", "id"=>"usr-1"} Rendered text template (0.0ms) Completed 200 OK in 5ms (Views: 4.6ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction --------------------------------------------------------------------- GroupUsersControllerTest: test_: unauthenticated should deny access. ---------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Account::GroupUsersController#destroy as HTML Parameters: {"group_id"=>"cld-1", "id"=>"usr-1"} Filter chain halted as :authenticate_maestrano! rendered or redirected Completed 401 Unauthorized in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------------- UserGeneratorTest: test_: UserGenerator should call the active_record migration generator successfully. --------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------- UserGeneratorTest: test_: UserGenerator should call the mongoid migration generator successfully. --------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction ----------------------------------------------------------------- GroupsControllerTest: test_: authenticated should be successful. -----------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Account::GroupsController#destroy as HTML Parameters: {"id"=>"cld-1"} Rendered text template (0.0ms) Completed 200 OK in 3ms (Views: 2.9ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ----------------------------------------------------------------- GroupsControllerTest: test_: unauthenticated should deny access. -----------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Account::GroupsController#destroy as HTML Parameters: {"id"=>"cld-1"} Filter chain halted as :authenticate_maestrano! rendered or redirected Completed 401 Unauthorized in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------ MaestranoRailsTest: test_truth ------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------- InstallGeneratorTest: test_: InstallGenerator should create the maestrano initializer. ---------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------- InstallGeneratorTest: test_: InstallGenerator should create the maestrano routes. ----------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------------------- InstallGeneratorTest: test_: InstallGenerator should create the maestrano/account/group_users_controller. ----------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ----------------------------------------------------------------------------------------------------- InstallGeneratorTest: test_: InstallGenerator should create the maestrano/account/groups_controller. -----------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------------ InstallGeneratorTest: test_: InstallGenerator should create the maestrano/auth/saml_controller. ------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction ---------------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase error should redirect to maestrano on any error. ----------------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Cannot validate SAML response: Bla Trace: ["/home/bruno/.rvm/gems/ruby-2.1.3/gems/mocha-1.1.0/lib/mocha/exception_raiser.rb:12:in `evaluate'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/mocha-1.1.0/lib/mocha/return_values.rb:20:in `next'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/mocha-1.1.0/lib/mocha/expectation.rb:569:in `invoke'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/mocha-1.1.0/lib/mocha/mock.rb:296:in `method_missing'", "/home/bruno/Workspace/maestrano-rails/app/controllers/maestrano/rails/saml_base_controller.rb:35:in `process_saml_response'", "/home/bruno/Workspace/maestrano-rails/app/controllers/maestrano/rails/saml_base_controller.rb:18:in `saml_response_transaction'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:432:in `block in make_lambda'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:291:in `call'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:291:in `block in halting_and_conditional'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:497:in `call'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:497:in `block in around'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:505:in `call'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:505:in `call'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:92:in `__run_callbacks__'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:778:in `_run_process_action_callbacks'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:81:in `run_callbacks'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/actionpack-4.2.7.1/lib/abstract_controller/callbacks.rb:19:in `process_action'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/actionpack-4.2.7.1/lib/action_controller/metal/rescue.rb:29:in `process_action'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/actionpack-4.2.7.1/lib/action_controller/metal/instrumentation.rb:32:in `block in process_action'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/activesupport-4.2.7.1/lib/active_support/notifications.rb:164:in `block in instrument'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/activesupport-4.2.7.1/lib/active_support/notifications/instrumenter.rb:20:in `instrument'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/activesupport-4.2.7.1/lib/active_support/notifications.rb:164:in `instrument'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/actionpack-4.2.7.1/lib/action_controller/metal/instrumentation.rb:30:in `process_action'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/actionpack-4.2.7.1/lib/action_controller/metal/params_wrapper.rb:250:in `process_action'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/activerecord-4.2.7.1/lib/active_record/railties/controller_runtime.rb:18:in `process_action'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/actionpack-4.2.7.1/lib/abstract_controller/base.rb:137:in `process'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/actionview-4.2.7.1/lib/action_view/rendering.rb:30:in `process'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/actionpack-4.2.7.1/lib/action_controller/test_case.rb:639:in `process'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/actionpack-4.2.7.1/lib/action_controller/test_case.rb:67:in `process'", "/home/bruno/.rvm/gems/ruby-2.1.3/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 '", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/shoulda-context-1.2.1/lib/shoulda/context/context.rb:413:in `instance_exec'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/shoulda-context-1.2.1/lib/shoulda/context/context.rb:413:in `block in create_test_from_should_hash'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest/test.rb:107:in `block (3 levels) in run'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest/test.rb:204:in `capture_exceptions'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest/test.rb:104:in `block (2 levels) in run'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest/test.rb:255:in `time_it'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest/test.rb:103:in `block in run'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest.rb:348:in `on_signal'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest/test.rb:275:in `with_info_handler'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest/test.rb:102:in `run'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest.rb:799:in `run_one_method'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest.rb:322:in `run_one_method'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest.rb:310:in `block (2 levels) in run'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest.rb:309:in `each'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest.rb:309:in `block in run'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest.rb:348:in `on_signal'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest.rb:335:in `with_info_handler'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest.rb:308:in `run'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest.rb:158:in `block in __run'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest.rb:158:in `map'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest.rb:158:in `__run'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest.rb:135:in `run'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest.rb:62:in `block in autorun'"] Redirected to http://api-sandbox.maestrano.io/app_access_unauthorized?err=internal Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should reset the maestrano session successfully if one already exists. --------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction --------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should set a saml_request in scope. ---------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction -------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should set the group_auth_hash in scope. --------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should set the maestrano session. -------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should set the user_auth_hash in scope. -------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------ SamlBaseControllerTest: test_: consume phase should set the user_group_rel_hash in scope. ------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: init phase should create a saml request successfully if a maestrano session is already set. ---------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#init as HTML Parameters: {"a_param"=>"value"} Redirected to http://idpprovider.com?r=request Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ----------------------------------------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: init phase should create a saml request using params and session and redirect the user. -----------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#init as HTML Parameters: {"a_param"=>"value"} Redirected to http://idpprovider.com?r=request Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------------------- GroupGeneratorTest: test_: GroupGenerator should call the active_record migration generator successfully. ----------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.2ms) rollback transaction ---------------------------------------------------------------------------------------------------- GroupGeneratorTest: test_: GroupGenerator should call the mongoid migration generator successfully. ----------------------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction ------------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: namespaced model should create the right migration. -------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: namespaced model should edit the model content. ---------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should create the right migration. ---------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ----------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should edit the model content. -----------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should include parameters if rails 3 and strong_parameter not present. ---------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should not include parameters if rails 3 and strong_parameter present. ---------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should not include parameters in rails 4. ----------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction ------------------------------------------------------------------- MetadataControllerTest: test_: authenticated should be successful. -------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Rails::MetadataController#index as HTML Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction ------------------------------------------------------------------- MetadataControllerTest: test_: unauthenticated should deny access. -------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Rails::MetadataController#index as HTML Filter chain halted as :authenticate_maestrano! rendered or redirected Completed 401 Unauthorized in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------------------------------------------------- MaestranoGroupViaTest: test_: class methods find_or_create_for_maestrano class method should create a monster using the mapping block. ---------------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction 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"]]  (0.0ms) SAVEPOINT active_record_1 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-08-31 04:23:04.747730"], ["updated_at", "2016-08-31 04:23:04.747730"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction ------------------------------------------------------------------------------------------------------------------------------------------------------ MaestranoGroupViaTest: test_: class methods find_or_create_for_maestrano class method should not return a MnoCrew from another provider if it exists. ------------------------------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 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-08-31 04:23:04.749828"], ["updated_at", "2016-08-31 04:23:04.749828"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.0ms) SAVEPOINT active_record_1 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-08-31 04:23:04.751162"], ["updated_at", "2016-08-31 04:23:04.751162"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction ------------------------------------------------------------------------------------------------------------------------------ MaestranoGroupViaTest: test_: class methods find_or_create_for_maestrano class method should return the MnoCrew if it exists. ------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 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-08-31 04:23:04.752516"], ["updated_at", "2016-08-31 04:23:04.752516"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.1ms) rollback transaction ---------------------------------------------------------------------------------------------------- MaestranoGroupViaTest: test_: class methods maestrano_*_via should have the right field definition. ----------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------------------------- MaestranoGroupViaTest: test_: instance methods maestrano? should return false if provider is something else. -------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ----------------------------------------------------------------------------------------------- MaestranoGroupViaTest: test_: instance methods maestrano? should return false if uid is blank. -----------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------------------------------------ MaestranoGroupViaTest: test_: instance methods maestrano? should return true if provider is maestrano and uid not null. ------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------------------------------- GenericControllerTest: test_: with a maestrano session should be successful if the maestrano session is still valid. ---------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by PagesController#home as HTML Rendered pages/home.html.erb within layouts/application (1.1ms) Completed 200 OK in 154ms (Views: 153.9ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction -------------------------------------------------------------------------------------------------------------------- GenericControllerTest: test_: with a maestrano session should initialize redirect to SSO initialization if invalid. --------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by PagesController#home as HTML Rendered pages/home.html.erb within layouts/application (0.0ms) Completed 200 OK in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ----------------------------------------------------------------------------------------------------------- GenericControllerTest: test_: with a maestrano session should not redirect to SSO init if sso is disabled. -----------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by PagesController#home as HTML Rendered pages/home.html.erb within layouts/application (0.0ms) Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------------------ GenericControllerTest: test_: with no maestrano session should be successful. ------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by PagesController#home as HTML Rendered pages/home.html.erb within layouts/application (0.0ms) Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: class methods find_or_create_for_maestrano class method should create a monster using the mapping block. --------------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction 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"]]  (0.0ms) SAVEPOINT active_record_1 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-08-31 04:23:04.927153"], ["updated_at", "2016-08-31 04:23:04.927153"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: class methods find_or_create_for_maestrano class method should not return a MnoMonster from another provider if it exists. --------------------------------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 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-08-31 04:23:04.929957"], ["updated_at", "2016-08-31 04:23:04.929957"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.0ms) SAVEPOINT active_record_1 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-08-31 04:23:04.931453"], ["updated_at", "2016-08-31 04:23:04.931453"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: class methods find_or_create_for_maestrano class method should return the MnoMonster if it exists. --------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 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-08-31 04:23:04.932962"], ["updated_at", "2016-08-31 04:23:04.932962"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.1ms) rollback transaction --------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: class methods maestrano_*_via should have the right field definition. ---------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------------------------ MaestranoUserViaTest: test_: instance methods maestrano? should return false if provider is something else. ------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: instance methods maestrano? should return false if uid is blank. ----------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ----------------------------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: instance methods maestrano? should return true if provider is maestrano and uid not null. -----------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------ ActiveRecordUserGeneratorTest: test_: namespaced model should create the right migration. ------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: namespaced model should edit the model content. --------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction -------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should create the right migration. --------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction ---------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should edit the model content. ----------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should include parameters if rails 3 and strong_parameter not present. --------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should not include parameters if rails 3 and strong_parameter present. --------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should not include parameters in rails 4. ---------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ---------------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase error should redirect to maestrano on any error. ----------------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Cannot validate SAML response: Bla Trace: ["/home/bruno/.rvm/gems/ruby-2.1.3/gems/mocha-1.1.0/lib/mocha/exception_raiser.rb:12:in `evaluate'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/mocha-1.1.0/lib/mocha/return_values.rb:20:in `next'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/mocha-1.1.0/lib/mocha/expectation.rb:569:in `invoke'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/mocha-1.1.0/lib/mocha/mock.rb:296:in `method_missing'", "/home/bruno/Workspace/maestrano-rails/app/controllers/maestrano/rails/saml_base_controller.rb:35:in `process_saml_response'", "/home/bruno/Workspace/maestrano-rails/app/controllers/maestrano/rails/saml_base_controller.rb:18:in `saml_response_transaction'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:432:in `block in make_lambda'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:291:in `call'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:291:in `block in halting_and_conditional'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:497:in `call'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:497:in `block in around'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:505:in `call'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:505:in `call'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:92:in `__run_callbacks__'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:778:in `_run_process_action_callbacks'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:81:in `run_callbacks'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/actionpack-4.2.7.1/lib/abstract_controller/callbacks.rb:19:in `process_action'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/actionpack-4.2.7.1/lib/action_controller/metal/rescue.rb:29:in `process_action'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/actionpack-4.2.7.1/lib/action_controller/metal/instrumentation.rb:32:in `block in process_action'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/activesupport-4.2.7.1/lib/active_support/notifications.rb:164:in `block in instrument'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/activesupport-4.2.7.1/lib/active_support/notifications/instrumenter.rb:20:in `instrument'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/activesupport-4.2.7.1/lib/active_support/notifications.rb:164:in `instrument'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/actionpack-4.2.7.1/lib/action_controller/metal/instrumentation.rb:30:in `process_action'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/actionpack-4.2.7.1/lib/action_controller/metal/params_wrapper.rb:250:in `process_action'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/activerecord-4.2.7.1/lib/active_record/railties/controller_runtime.rb:18:in `process_action'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/actionpack-4.2.7.1/lib/abstract_controller/base.rb:137:in `process'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/actionview-4.2.7.1/lib/action_view/rendering.rb:30:in `process'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/actionpack-4.2.7.1/lib/action_controller/test_case.rb:639:in `process'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/actionpack-4.2.7.1/lib/action_controller/test_case.rb:67:in `process'", "/home/bruno/.rvm/gems/ruby-2.1.3/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 '", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/shoulda-context-1.2.1/lib/shoulda/context/context.rb:413:in `instance_exec'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/shoulda-context-1.2.1/lib/shoulda/context/context.rb:413:in `block in create_test_from_should_hash'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest/test.rb:107:in `block (3 levels) in run'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest/test.rb:204:in `capture_exceptions'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest/test.rb:104:in `block (2 levels) in run'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest/test.rb:255:in `time_it'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest/test.rb:103:in `block in run'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest.rb:348:in `on_signal'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest/test.rb:275:in `with_info_handler'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest/test.rb:102:in `run'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest.rb:799:in `run_one_method'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest.rb:322:in `run_one_method'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest.rb:310:in `block (2 levels) in run'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest.rb:309:in `each'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest.rb:309:in `block in run'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest.rb:348:in `on_signal'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest.rb:335:in `with_info_handler'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest.rb:308:in `run'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest.rb:158:in `block in __run'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest.rb:158:in `map'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest.rb:158:in `__run'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest.rb:135:in `run'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest.rb:62:in `block in autorun'"] Redirected to http://api-sandbox.maestrano.io/app_access_unauthorized?err=internal Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should reset the maestrano session successfully if one already exists. --------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction --------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should set a saml_request in scope. ---------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction -------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should set the group_auth_hash in scope. --------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should set the maestrano session. -------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should set the user_auth_hash in scope. -------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------ SamlBaseControllerTest: test_: consume phase should set the user_group_rel_hash in scope. ------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: init phase should create a saml request successfully if a maestrano session is already set. ---------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#init as HTML Parameters: {"a_param"=>"value"} Redirected to http://idpprovider.com?r=request Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ----------------------------------------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: init phase should create a saml request using params and session and redirect the user. -----------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#init as HTML Parameters: {"a_param"=>"value"} Redirected to http://idpprovider.com?r=request Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ----------------------------------------------------------------- GroupsControllerTest: test_: authenticated should be successful. -----------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Account::GroupsController#destroy as HTML Parameters: {"id"=>"cld-1"} Rendered text template (0.0ms) Completed 200 OK in 5ms (Views: 4.6ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ----------------------------------------------------------------- GroupsControllerTest: test_: unauthenticated should deny access. -----------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Account::GroupsController#destroy as HTML Parameters: {"id"=>"cld-1"} Filter chain halted as :authenticate_maestrano! rendered or redirected Completed 401 Unauthorized in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction --------------------------------------------------------------------------------------- InstallGeneratorTest: test_: InstallGenerator should create the maestrano initializer. ---------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------- InstallGeneratorTest: test_: InstallGenerator should create the maestrano routes. ----------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------------------- InstallGeneratorTest: test_: InstallGenerator should create the maestrano/account/group_users_controller. ----------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ----------------------------------------------------------------------------------------------------- InstallGeneratorTest: test_: InstallGenerator should create the maestrano/account/groups_controller. -----------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------------ InstallGeneratorTest: test_: InstallGenerator should create the maestrano/auth/saml_controller. ------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------ MaestranoRailsTest: test_truth ------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------- GroupUsersControllerTest: test_: authenticated should be successful. ---------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Account::GroupUsersController#destroy as HTML Parameters: {"group_id"=>"cld-1", "id"=>"usr-1"} Rendered text template (0.0ms) Completed 200 OK in 3ms (Views: 3.0ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction --------------------------------------------------------------------- GroupUsersControllerTest: test_: unauthenticated should deny access. ---------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Account::GroupUsersController#destroy as HTML Parameters: {"group_id"=>"cld-1", "id"=>"usr-1"} Filter chain halted as :authenticate_maestrano! rendered or redirected Completed 401 Unauthorized in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------------------- GroupGeneratorTest: test_: GroupGenerator should call the active_record migration generator successfully. ----------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction ---------------------------------------------------------------------------------------------------- GroupGeneratorTest: test_: GroupGenerator should call the mongoid migration generator successfully. ----------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction ------------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: namespaced model should create the right migration. -------------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: namespaced model should edit the model content. ---------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should create the right migration. ---------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ----------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should edit the model content. -----------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should include parameters if rails 3 and strong_parameter not present. ---------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should not include parameters if rails 3 and strong_parameter present. ---------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should not include parameters in rails 4. ----------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------ ActiveRecordUserGeneratorTest: test_: namespaced model should create the right migration. ------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: namespaced model should edit the model content. --------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should create the right migration. --------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should edit the model content. ----------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should include parameters if rails 3 and strong_parameter not present. --------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should not include parameters if rails 3 and strong_parameter present. --------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should not include parameters in rails 4. ---------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------------- UserGeneratorTest: test_: UserGenerator should call the active_record migration generator successfully. --------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------- UserGeneratorTest: test_: UserGenerator should call the mongoid migration generator successfully. --------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------------------------------- GenericControllerTest: test_: with a maestrano session should be successful if the maestrano session is still valid. ---------------------------------------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by PagesController#home as HTML Rendered pages/home.html.erb within layouts/application (0.8ms) Completed 200 OK in 138ms (Views: 137.9ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction -------------------------------------------------------------------------------------------------------------------- GenericControllerTest: test_: with a maestrano session should initialize redirect to SSO initialization if invalid. --------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by PagesController#home as HTML Rendered pages/home.html.erb within layouts/application (0.0ms) Completed 200 OK in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ----------------------------------------------------------------------------------------------------------- GenericControllerTest: test_: with a maestrano session should not redirect to SSO init if sso is disabled. -----------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by PagesController#home as HTML Rendered pages/home.html.erb within layouts/application (0.0ms) Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------------------ GenericControllerTest: test_: with no maestrano session should be successful. ------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by PagesController#home as HTML Rendered pages/home.html.erb within layouts/application (0.0ms) Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------- MetadataControllerTest: test_: authenticated should be successful. -------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Rails::MetadataController#index as HTML Filter chain halted as :authenticate_maestrano! rendered or redirected Completed 401 Unauthorized in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction ------------------------------------------------------------------- MetadataControllerTest: test_: unauthenticated should deny access. -------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Rails::MetadataController#index as HTML Filter chain halted as :authenticate_maestrano! rendered or redirected Completed 401 Unauthorized in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: class methods find_or_create_for_maestrano class method should create a monster using the mapping block. --------------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction 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"]]  (0.0ms) SAVEPOINT active_record_1 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-08-31 04:26:31.287213"], ["updated_at", "2016-08-31 04:26:31.287213"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: class methods find_or_create_for_maestrano class method should not return a MnoMonster from another provider if it exists. --------------------------------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 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-08-31 04:26:31.289487"], ["updated_at", "2016-08-31 04:26:31.289487"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.0ms) SAVEPOINT active_record_1 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-08-31 04:26:31.290810"], ["updated_at", "2016-08-31 04:26:31.290810"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: class methods find_or_create_for_maestrano class method should return the MnoMonster if it exists. --------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 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-08-31 04:26:31.292319"], ["updated_at", "2016-08-31 04:26:31.292319"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.1ms) rollback transaction --------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: class methods maestrano_*_via should have the right field definition. ---------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------------------------ MaestranoUserViaTest: test_: instance methods maestrano? should return false if provider is something else. ------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: instance methods maestrano? should return false if uid is blank. ----------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ----------------------------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: instance methods maestrano? should return true if provider is maestrano and uid not null. -----------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------------------------------------------------- MaestranoGroupViaTest: test_: class methods find_or_create_for_maestrano class method should create a monster using the mapping block. ---------------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction 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"]]  (0.0ms) SAVEPOINT active_record_1 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-08-31 04:26:31.300994"], ["updated_at", "2016-08-31 04:26:31.300994"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction ------------------------------------------------------------------------------------------------------------------------------------------------------ MaestranoGroupViaTest: test_: class methods find_or_create_for_maestrano class method should not return a MnoCrew from another provider if it exists. ------------------------------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 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-08-31 04:26:31.302776"], ["updated_at", "2016-08-31 04:26:31.302776"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.0ms) SAVEPOINT active_record_1 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-08-31 04:26:31.304026"], ["updated_at", "2016-08-31 04:26:31.304026"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction ------------------------------------------------------------------------------------------------------------------------------ MaestranoGroupViaTest: test_: class methods find_or_create_for_maestrano class method should return the MnoCrew if it exists. ------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 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-08-31 04:26:31.305578"], ["updated_at", "2016-08-31 04:26:31.305578"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.1ms) rollback transaction ---------------------------------------------------------------------------------------------------- MaestranoGroupViaTest: test_: class methods maestrano_*_via should have the right field definition. ----------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------------------------- MaestranoGroupViaTest: test_: instance methods maestrano? should return false if provider is something else. -------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ----------------------------------------------------------------------------------------------- MaestranoGroupViaTest: test_: instance methods maestrano? should return false if uid is blank. -----------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------------------------------------ MaestranoGroupViaTest: test_: instance methods maestrano? should return true if provider is maestrano and uid not null. ------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" --------------------------------------------------------------------- GroupUsersControllerTest: test_: authenticated should be successful. ---------------------------------------------------------------------  (0.2ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction Processing by Maestrano::Account::GroupUsersController#destroy as HTML Parameters: {"group_id"=>"cld-1", "id"=>"usr-1"} Rendered text template (0.0ms) Completed 200 OK in 5ms (Views: 4.5ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction --------------------------------------------------------------------- GroupUsersControllerTest: test_: unauthenticated should deny access. ---------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Account::GroupUsersController#destroy as HTML Parameters: {"group_id"=>"cld-1", "id"=>"usr-1"} Filter chain halted as :authenticate_maestrano! rendered or redirected Completed 401 Unauthorized in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase error should redirect to maestrano on any error. ----------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Cannot validate SAML response: Bla Trace: ["/home/bruno/.rvm/gems/ruby-2.1.3/gems/mocha-1.1.0/lib/mocha/exception_raiser.rb:12:in `evaluate'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/mocha-1.1.0/lib/mocha/return_values.rb:20:in `next'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/mocha-1.1.0/lib/mocha/expectation.rb:569:in `invoke'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/mocha-1.1.0/lib/mocha/mock.rb:296:in `method_missing'", "/home/bruno/Workspace/maestrano-rails/app/controllers/maestrano/rails/saml_base_controller.rb:35:in `process_saml_response'", "/home/bruno/Workspace/maestrano-rails/app/controllers/maestrano/rails/saml_base_controller.rb:18:in `saml_response_transaction'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:432:in `block in make_lambda'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:291:in `call'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:291:in `block in halting_and_conditional'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:497:in `call'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:497:in `block in around'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:505:in `call'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:505:in `call'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:92:in `__run_callbacks__'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:778:in `_run_process_action_callbacks'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:81:in `run_callbacks'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/actionpack-4.2.7.1/lib/abstract_controller/callbacks.rb:19:in `process_action'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/actionpack-4.2.7.1/lib/action_controller/metal/rescue.rb:29:in `process_action'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/actionpack-4.2.7.1/lib/action_controller/metal/instrumentation.rb:32:in `block in process_action'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/activesupport-4.2.7.1/lib/active_support/notifications.rb:164:in `block in instrument'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/activesupport-4.2.7.1/lib/active_support/notifications/instrumenter.rb:20:in `instrument'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/activesupport-4.2.7.1/lib/active_support/notifications.rb:164:in `instrument'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/actionpack-4.2.7.1/lib/action_controller/metal/instrumentation.rb:30:in `process_action'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/actionpack-4.2.7.1/lib/action_controller/metal/params_wrapper.rb:250:in `process_action'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/activerecord-4.2.7.1/lib/active_record/railties/controller_runtime.rb:18:in `process_action'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/actionpack-4.2.7.1/lib/abstract_controller/base.rb:137:in `process'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/actionview-4.2.7.1/lib/action_view/rendering.rb:30:in `process'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/actionpack-4.2.7.1/lib/action_controller/test_case.rb:639:in `process'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/actionpack-4.2.7.1/lib/action_controller/test_case.rb:67:in `process'", "/home/bruno/.rvm/gems/ruby-2.1.3/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 '", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/shoulda-context-1.2.1/lib/shoulda/context/context.rb:413:in `instance_exec'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/shoulda-context-1.2.1/lib/shoulda/context/context.rb:413:in `block in create_test_from_should_hash'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest/test.rb:107:in `block (3 levels) in run'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest/test.rb:204:in `capture_exceptions'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest/test.rb:104:in `block (2 levels) in run'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest/test.rb:255:in `time_it'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest/test.rb:103:in `block in run'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest.rb:348:in `on_signal'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest/test.rb:275:in `with_info_handler'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest/test.rb:102:in `run'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest.rb:799:in `run_one_method'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest.rb:322:in `run_one_method'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest.rb:310:in `block (2 levels) in run'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest.rb:309:in `each'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest.rb:309:in `block in run'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest.rb:348:in `on_signal'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest.rb:335:in `with_info_handler'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest.rb:308:in `run'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest.rb:158:in `block in __run'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest.rb:158:in `map'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest.rb:158:in `__run'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest.rb:135:in `run'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest.rb:62:in `block in autorun'"] Redirected to http://api-sandbox.maestrano.io/app_access_unauthorized?err=internal Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should reset the maestrano session successfully if one already exists. --------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction --------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should set a saml_request in scope. ---------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction -------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should set the group_auth_hash in scope. --------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should set the maestrano session. -------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should set the user_auth_hash in scope. -------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------ SamlBaseControllerTest: test_: consume phase should set the user_group_rel_hash in scope. ------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.1ms) rollback transaction --------------------------------------------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: init phase should create a saml request successfully if a maestrano session is already set. ---------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#init as HTML Parameters: {"a_param"=>"value"} Redirected to http://idpprovider.com?r=request Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.1ms) rollback transaction ----------------------------------------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: init phase should create a saml request using params and session and redirect the user. -----------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#init as HTML Parameters: {"a_param"=>"value"} Redirected to http://idpprovider.com?r=request Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------------------- GroupGeneratorTest: test_: GroupGenerator should call the active_record migration generator successfully. ----------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------------- GroupGeneratorTest: test_: GroupGenerator should call the mongoid migration generator successfully. ----------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction ----------------------------------------------------------------- GroupsControllerTest: test_: authenticated should be successful. -----------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Account::GroupsController#destroy as HTML Parameters: {"id"=>"cld-1"} Rendered text template (0.0ms) Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction ----------------------------------------------------------------- GroupsControllerTest: test_: unauthenticated should deny access. -----------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Account::GroupsController#destroy as HTML Parameters: {"id"=>"cld-1"} Filter chain halted as :authenticate_maestrano! rendered or redirected Completed 401 Unauthorized in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------------- UserGeneratorTest: test_: UserGenerator should call the active_record migration generator successfully. --------------------------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------- UserGeneratorTest: test_: UserGenerator should call the mongoid migration generator successfully. --------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------------------------------------------------- MaestranoGroupViaTest: test_: class methods find_or_create_for_maestrano class method should create a monster using the mapping block. ---------------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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-08-31 04:27:21.881131"], ["updated_at", "2016-08-31 04:27:21.881131"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction ------------------------------------------------------------------------------------------------------------------------------------------------------ MaestranoGroupViaTest: test_: class methods find_or_create_for_maestrano class method should not return a MnoCrew from another provider if it exists. ------------------------------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 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-08-31 04:27:21.885140"], ["updated_at", "2016-08-31 04:27:21.885140"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.0ms) SAVEPOINT active_record_1 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-08-31 04:27:21.886743"], ["updated_at", "2016-08-31 04:27:21.886743"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction ------------------------------------------------------------------------------------------------------------------------------ MaestranoGroupViaTest: test_: class methods find_or_create_for_maestrano class method should return the MnoCrew if it exists. ------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 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-08-31 04:27:21.888315"], ["updated_at", "2016-08-31 04:27:21.888315"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.1ms) rollback transaction ---------------------------------------------------------------------------------------------------- MaestranoGroupViaTest: test_: class methods maestrano_*_via should have the right field definition. ----------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------------------------- MaestranoGroupViaTest: test_: instance methods maestrano? should return false if provider is something else. -------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ----------------------------------------------------------------------------------------------- MaestranoGroupViaTest: test_: instance methods maestrano? should return false if uid is blank. -----------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------------------------------------ MaestranoGroupViaTest: test_: instance methods maestrano? should return true if provider is maestrano and uid not null. ------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: class methods find_or_create_for_maestrano class method should create a monster using the mapping block. --------------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "mno_monsters" ("first_name", "last_name", "email", "provider", "uid", "tenant", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["first_name", "Mon"], ["last_name", "Ster"], ["email", "monster@monst.com"], ["provider", "maestrano"], ["uid", "usr-2"], ["tenant", "default"], ["created_at", "2016-08-31 04:27:21.897918"], ["updated_at", "2016-08-31 04:27:21.897918"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: class methods find_or_create_for_maestrano class method should not return a MnoMonster from another provider if it exists. --------------------------------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 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-08-31 04:27:21.899646"], ["updated_at", "2016-08-31 04:27:21.899646"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.0ms) SAVEPOINT active_record_1 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-08-31 04:27:21.901032"], ["updated_at", "2016-08-31 04:27:21.901032"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: class methods find_or_create_for_maestrano class method should return the MnoMonster if it exists. --------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 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-08-31 04:27:21.902454"], ["updated_at", "2016-08-31 04:27:21.902454"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.1ms) rollback transaction --------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: class methods maestrano_*_via should have the right field definition. ---------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------------------------ MaestranoUserViaTest: test_: instance methods maestrano? should return false if provider is something else. ------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: instance methods maestrano? should return false if uid is blank. ----------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ----------------------------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: instance methods maestrano? should return true if provider is maestrano and uid not null. -----------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------ ActiveRecordUserGeneratorTest: test_: namespaced model should create the right migration. ------------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: namespaced model should edit the model content. --------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should create the right migration. --------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should edit the model content. ----------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should include parameters if rails 3 and strong_parameter not present. --------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should not include parameters if rails 3 and strong_parameter present. --------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should not include parameters in rails 4. ---------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------- MetadataControllerTest: test_: authenticated should be successful. -------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction Processing by Maestrano::Rails::MetadataController#index as HTML Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------- MetadataControllerTest: test_: unauthenticated should deny access. -------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Rails::MetadataController#index as HTML Filter chain halted as :authenticate_maestrano! rendered or redirected Completed 401 Unauthorized in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------------------------------- GenericControllerTest: test_: with a maestrano session should be successful if the maestrano session is still valid. ---------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by PagesController#home as HTML Rendered pages/home.html.erb within layouts/application (1.1ms) Completed 200 OK in 155ms (Views: 155.1ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction -------------------------------------------------------------------------------------------------------------------- GenericControllerTest: test_: with a maestrano session should initialize redirect to SSO initialization if invalid. --------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by PagesController#home as HTML Redirected to http://localhost:3000/maestrano/auth/saml/init/default Filter chain halted as :verify_maestrano_session rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ----------------------------------------------------------------------------------------------------------- GenericControllerTest: test_: with a maestrano session should not redirect to SSO init if sso is disabled. -----------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by PagesController#home as HTML Rendered pages/home.html.erb within layouts/application (0.0ms) Completed 200 OK in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------------------ GenericControllerTest: test_: with no maestrano session should be successful. ------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by PagesController#home as HTML Rendered pages/home.html.erb within layouts/application (0.0ms) Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------ MaestranoRailsTest: test_truth ------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: namespaced model should create the right migration. -------------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction --------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: namespaced model should edit the model content. ---------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction --------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should create the right migration. ---------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ----------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should edit the model content. -----------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should include parameters if rails 3 and strong_parameter not present. ---------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should not include parameters if rails 3 and strong_parameter present. ---------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should not include parameters in rails 4. ----------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction --------------------------------------------------------------------------------------- InstallGeneratorTest: test_: InstallGenerator should create the maestrano initializer. ---------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------- InstallGeneratorTest: test_: InstallGenerator should create the maestrano routes. ----------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------------------- InstallGeneratorTest: test_: InstallGenerator should create the maestrano/account/group_users_controller. ----------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ----------------------------------------------------------------------------------------------------- InstallGeneratorTest: test_: InstallGenerator should create the maestrano/account/groups_controller. -----------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------------ InstallGeneratorTest: test_: InstallGenerator should create the maestrano/auth/saml_controller. ------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ------------------------------------------------------------------- MetadataControllerTest: test_: authenticated should be successful. -------------------------------------------------------------------  (0.2ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Rails::MetadataController#index as HTML Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------- MetadataControllerTest: test_: unauthenticated should deny access. -------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Rails::MetadataController#index as HTML Filter chain halted as :authenticate_maestrano! rendered or redirected Completed 401 Unauthorized in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------------- UserGeneratorTest: test_: UserGenerator should call the active_record migration generator successfully. --------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction -------------------------------------------------------------------------------------------------- UserGeneratorTest: test_: UserGenerator should call the mongoid migration generator successfully. --------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction --------------------------------------------------------------------- GroupUsersControllerTest: test_: authenticated should be successful. ---------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Account::GroupUsersController#destroy as HTML Parameters: {"group_id"=>"cld-1", "id"=>"usr-1"} Rendered text template (0.0ms) Completed 200 OK in 7ms (Views: 6.7ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction --------------------------------------------------------------------- GroupUsersControllerTest: test_: unauthenticated should deny access. ---------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Account::GroupUsersController#destroy as HTML Parameters: {"group_id"=>"cld-1", "id"=>"usr-1"} Filter chain halted as :authenticate_maestrano! rendered or redirected Completed 401 Unauthorized in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: class methods find_or_create_for_maestrano class method should create a monster using the mapping block. --------------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction 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"]]  (0.0ms) SAVEPOINT active_record_1 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-08-31 04:28:05.685260"], ["updated_at", "2016-08-31 04:28:05.685260"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: class methods find_or_create_for_maestrano class method should not return a MnoMonster from another provider if it exists. --------------------------------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 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-08-31 04:28:05.687473"], ["updated_at", "2016-08-31 04:28:05.687473"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.0ms) SAVEPOINT active_record_1 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-08-31 04:28:05.688941"], ["updated_at", "2016-08-31 04:28:05.688941"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: class methods find_or_create_for_maestrano class method should return the MnoMonster if it exists. --------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "mno_monsters" ("first_name", "last_name", "email", "provider", "uid", "tenant", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["first_name", "John"], ["last_name", "Jack"], ["email", "monster@co.com"], ["provider", "maestrano"], ["uid", "usr-1"], ["tenant", "default"], ["created_at", "2016-08-31 04:28:05.690669"], ["updated_at", "2016-08-31 04:28:05.690669"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.1ms) rollback transaction --------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: class methods maestrano_*_via should have the right field definition. ---------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------------------------ MaestranoUserViaTest: test_: instance methods maestrano? should return false if provider is something else. ------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: instance methods maestrano? should return false if uid is blank. ----------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction ----------------------------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: instance methods maestrano? should return true if provider is maestrano and uid not null. -----------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------ MaestranoRailsTest: test_truth ------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase error should redirect to maestrano on any error. ----------------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Cannot validate SAML response: Bla Trace: ["/home/bruno/.rvm/gems/ruby-2.1.3/gems/mocha-1.1.0/lib/mocha/exception_raiser.rb:12:in `evaluate'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/mocha-1.1.0/lib/mocha/return_values.rb:20:in `next'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/mocha-1.1.0/lib/mocha/expectation.rb:569:in `invoke'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/mocha-1.1.0/lib/mocha/mock.rb:296:in `method_missing'", "/home/bruno/Workspace/maestrano-rails/app/controllers/maestrano/rails/saml_base_controller.rb:35:in `process_saml_response'", "/home/bruno/Workspace/maestrano-rails/app/controllers/maestrano/rails/saml_base_controller.rb:18:in `saml_response_transaction'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:432:in `block in make_lambda'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:291:in `call'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:291:in `block in halting_and_conditional'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:497:in `call'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:497:in `block in around'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:505:in `call'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:505:in `call'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:92:in `__run_callbacks__'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:778:in `_run_process_action_callbacks'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:81:in `run_callbacks'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/actionpack-4.2.7.1/lib/abstract_controller/callbacks.rb:19:in `process_action'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/actionpack-4.2.7.1/lib/action_controller/metal/rescue.rb:29:in `process_action'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/actionpack-4.2.7.1/lib/action_controller/metal/instrumentation.rb:32:in `block in process_action'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/activesupport-4.2.7.1/lib/active_support/notifications.rb:164:in `block in instrument'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/activesupport-4.2.7.1/lib/active_support/notifications/instrumenter.rb:20:in `instrument'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/activesupport-4.2.7.1/lib/active_support/notifications.rb:164:in `instrument'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/actionpack-4.2.7.1/lib/action_controller/metal/instrumentation.rb:30:in `process_action'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/actionpack-4.2.7.1/lib/action_controller/metal/params_wrapper.rb:250:in `process_action'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/activerecord-4.2.7.1/lib/active_record/railties/controller_runtime.rb:18:in `process_action'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/actionpack-4.2.7.1/lib/abstract_controller/base.rb:137:in `process'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/actionview-4.2.7.1/lib/action_view/rendering.rb:30:in `process'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/actionpack-4.2.7.1/lib/action_controller/test_case.rb:639:in `process'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/actionpack-4.2.7.1/lib/action_controller/test_case.rb:67:in `process'", "/home/bruno/.rvm/gems/ruby-2.1.3/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 '", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/shoulda-context-1.2.1/lib/shoulda/context/context.rb:413:in `instance_exec'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/shoulda-context-1.2.1/lib/shoulda/context/context.rb:413:in `block in create_test_from_should_hash'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest/test.rb:107:in `block (3 levels) in run'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest/test.rb:204:in `capture_exceptions'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest/test.rb:104:in `block (2 levels) in run'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest/test.rb:255:in `time_it'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest/test.rb:103:in `block in run'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest.rb:348:in `on_signal'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest/test.rb:275:in `with_info_handler'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest/test.rb:102:in `run'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest.rb:799:in `run_one_method'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest.rb:322:in `run_one_method'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest.rb:310:in `block (2 levels) in run'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest.rb:309:in `each'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest.rb:309:in `block in run'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest.rb:348:in `on_signal'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest.rb:335:in `with_info_handler'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest.rb:308:in `run'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest.rb:158:in `block in __run'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest.rb:158:in `map'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest.rb:158:in `__run'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest.rb:135:in `run'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest.rb:62:in `block in autorun'"] Redirected to http://api-sandbox.maestrano.io/app_access_unauthorized?err=internal Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should reset the maestrano session successfully if one already exists. --------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction --------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should set a saml_request in scope. ---------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction -------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should set the group_auth_hash in scope. --------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should set the maestrano session. -------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) rollback transaction ------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should set the user_auth_hash in scope. -------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------ SamlBaseControllerTest: test_: consume phase should set the user_group_rel_hash in scope. ------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: init phase should create a saml request successfully if a maestrano session is already set. ---------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#init as HTML Parameters: {"a_param"=>"value"} Redirected to http://idpprovider.com?r=request Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ----------------------------------------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: init phase should create a saml request using params and session and redirect the user. -----------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#init as HTML Parameters: {"a_param"=>"value"} Redirected to http://idpprovider.com?r=request Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: namespaced model should create the right migration. -------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction --------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: namespaced model should edit the model content. ---------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction --------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should create the right migration. ---------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ----------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should edit the model content. -----------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should include parameters if rails 3 and strong_parameter not present. ---------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should not include parameters if rails 3 and strong_parameter present. ---------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should not include parameters in rails 4. ----------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------- InstallGeneratorTest: test_: InstallGenerator should create the maestrano initializer. ---------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction ---------------------------------------------------------------------------------- InstallGeneratorTest: test_: InstallGenerator should create the maestrano routes. ----------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------------------- InstallGeneratorTest: test_: InstallGenerator should create the maestrano/account/group_users_controller. ----------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ----------------------------------------------------------------------------------------------------- InstallGeneratorTest: test_: InstallGenerator should create the maestrano/account/groups_controller. -----------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------------ InstallGeneratorTest: test_: InstallGenerator should create the maestrano/auth/saml_controller. ------------------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------------------- GroupGeneratorTest: test_: GroupGenerator should call the active_record migration generator successfully. ----------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------------- GroupGeneratorTest: test_: GroupGenerator should call the mongoid migration generator successfully. ----------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction --------------------------------------------------------------------------------------------------------------------- GenericControllerTest: test_: with a maestrano session should be successful if the maestrano session is still valid. ---------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by PagesController#home as HTML Rendered pages/home.html.erb within layouts/application (0.8ms) Completed 200 OK in 158ms (Views: 158.2ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction -------------------------------------------------------------------------------------------------------------------- GenericControllerTest: test_: with a maestrano session should initialize redirect to SSO initialization if invalid. --------------------------------------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction Processing by PagesController#home as HTML Redirected to http://localhost::3000/maestrano/auth/saml/init Filter chain halted as :verify_maestrano_session rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ----------------------------------------------------------------------------------------------------------- GenericControllerTest: test_: with a maestrano session should not redirect to SSO init if sso is disabled. -----------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by PagesController#home as HTML Rendered pages/home.html.erb within layouts/application (0.0ms) Completed 200 OK in 1ms (Views: 0.9ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------------------ GenericControllerTest: test_: with no maestrano session should be successful. ------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by PagesController#home as HTML Rendered pages/home.html.erb within layouts/application (0.0ms) Completed 200 OK in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------ ActiveRecordUserGeneratorTest: test_: namespaced model should create the right migration. ------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: namespaced model should edit the model content. --------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction -------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should create the right migration. --------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction ---------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should edit the model content. ----------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should include parameters if rails 3 and strong_parameter not present. --------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should not include parameters if rails 3 and strong_parameter present. --------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should not include parameters in rails 4. ---------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ----------------------------------------------------------------- GroupsControllerTest: test_: authenticated should be successful. -----------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Account::GroupsController#destroy as HTML Parameters: {"id"=>"cld-1"} Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.9ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ----------------------------------------------------------------- GroupsControllerTest: test_: unauthenticated should deny access. -----------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Account::GroupsController#destroy as HTML Parameters: {"id"=>"cld-1"} Filter chain halted as :authenticate_maestrano! rendered or redirected Completed 401 Unauthorized in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------------------------------------------------- MaestranoGroupViaTest: test_: class methods find_or_create_for_maestrano class method should create a monster using the mapping block. ---------------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction 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"]]  (0.0ms) SAVEPOINT active_record_1 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-08-31 04:28:12.968194"], ["updated_at", "2016-08-31 04:28:12.968194"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction ------------------------------------------------------------------------------------------------------------------------------------------------------ MaestranoGroupViaTest: test_: class methods find_or_create_for_maestrano class method should not return a MnoCrew from another provider if it exists. ------------------------------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 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-08-31 04:28:12.970064"], ["updated_at", "2016-08-31 04:28:12.970064"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.0ms) SAVEPOINT active_record_1 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-08-31 04:28:12.971308"], ["updated_at", "2016-08-31 04:28:12.971308"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction ------------------------------------------------------------------------------------------------------------------------------ MaestranoGroupViaTest: test_: class methods find_or_create_for_maestrano class method should return the MnoCrew if it exists. ------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 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-08-31 04:28:12.972875"], ["updated_at", "2016-08-31 04:28:12.972875"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.2ms) rollback transaction ---------------------------------------------------------------------------------------------------- MaestranoGroupViaTest: test_: class methods maestrano_*_via should have the right field definition. ----------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------------------------- MaestranoGroupViaTest: test_: instance methods maestrano? should return false if provider is something else. -------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ----------------------------------------------------------------------------------------------- MaestranoGroupViaTest: test_: instance methods maestrano? should return false if uid is blank. -----------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------------------------------------ MaestranoGroupViaTest: test_: instance methods maestrano? should return true if provider is maestrano and uid not null. ------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" --------------------------------------------------------------------------------------------------------------------- GenericControllerTest: test_: with a maestrano session should be successful if the maestrano session is still valid. ---------------------------------------------------------------------------------------------------------------------  (0.2ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by PagesController#home as HTML Rendered pages/home.html.erb within layouts/application (0.7ms) Completed 200 OK in 154ms (Views: 154.2ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction -------------------------------------------------------------------------------------------------------------------- GenericControllerTest: test_: with a maestrano session should initialize redirect to SSO initialization if invalid. --------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by PagesController#home as HTML Rendered pages/home.html.erb within layouts/application (0.0ms) Completed 200 OK in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ----------------------------------------------------------------------------------------------------------- GenericControllerTest: test_: with a maestrano session should not redirect to SSO init if sso is disabled. -----------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by PagesController#home as HTML Rendered pages/home.html.erb within layouts/application (0.0ms) Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------------------ GenericControllerTest: test_: with no maestrano session should be successful. ------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by PagesController#home as HTML Rendered pages/home.html.erb within layouts/application (0.0ms) Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction --------------------------------------------------------------------------------------- InstallGeneratorTest: test_: InstallGenerator should create the maestrano initializer. ---------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------- InstallGeneratorTest: test_: InstallGenerator should create the maestrano routes. ----------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------------------- InstallGeneratorTest: test_: InstallGenerator should create the maestrano/account/group_users_controller. ----------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ----------------------------------------------------------------------------------------------------- InstallGeneratorTest: test_: InstallGenerator should create the maestrano/account/groups_controller. -----------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------------ InstallGeneratorTest: test_: InstallGenerator should create the maestrano/auth/saml_controller. ------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction -------------------------------------------------------------------------------------------------------- UserGeneratorTest: test_: UserGenerator should call the active_record migration generator successfully. --------------------------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction -------------------------------------------------------------------------------------------------- UserGeneratorTest: test_: UserGenerator should call the mongoid migration generator successfully. --------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: namespaced model should create the right migration. -------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: namespaced model should edit the model content. ---------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should create the right migration. ---------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ----------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should edit the model content. -----------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should include parameters if rails 3 and strong_parameter not present. ---------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should not include parameters if rails 3 and strong_parameter present. ---------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should not include parameters in rails 4. ----------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ----------------------------------------------------------------- GroupsControllerTest: test_: authenticated should be successful. -----------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Account::GroupsController#destroy as HTML Parameters: {"id"=>"cld-1"} Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 2.1ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ----------------------------------------------------------------- GroupsControllerTest: test_: unauthenticated should deny access. -----------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Account::GroupsController#destroy as HTML Parameters: {"id"=>"cld-1"} Filter chain halted as :authenticate_maestrano! rendered or redirected Completed 401 Unauthorized in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase error should redirect to maestrano on any error. ----------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Cannot validate SAML response: Bla Trace: ["/home/bruno/.rvm/gems/ruby-2.1.3/gems/mocha-1.1.0/lib/mocha/exception_raiser.rb:12:in `evaluate'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/mocha-1.1.0/lib/mocha/return_values.rb:20:in `next'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/mocha-1.1.0/lib/mocha/expectation.rb:569:in `invoke'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/mocha-1.1.0/lib/mocha/mock.rb:296:in `method_missing'", "/home/bruno/Workspace/maestrano-rails/app/controllers/maestrano/rails/saml_base_controller.rb:35:in `process_saml_response'", "/home/bruno/Workspace/maestrano-rails/app/controllers/maestrano/rails/saml_base_controller.rb:18:in `saml_response_transaction'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:432:in `block in make_lambda'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:291:in `call'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:291:in `block in halting_and_conditional'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:497:in `call'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:497:in `block in around'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:505:in `call'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:505:in `call'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:92:in `__run_callbacks__'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:778:in `_run_process_action_callbacks'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:81:in `run_callbacks'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/actionpack-4.2.7.1/lib/abstract_controller/callbacks.rb:19:in `process_action'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/actionpack-4.2.7.1/lib/action_controller/metal/rescue.rb:29:in `process_action'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/actionpack-4.2.7.1/lib/action_controller/metal/instrumentation.rb:32:in `block in process_action'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/activesupport-4.2.7.1/lib/active_support/notifications.rb:164:in `block in instrument'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/activesupport-4.2.7.1/lib/active_support/notifications/instrumenter.rb:20:in `instrument'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/activesupport-4.2.7.1/lib/active_support/notifications.rb:164:in `instrument'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/actionpack-4.2.7.1/lib/action_controller/metal/instrumentation.rb:30:in `process_action'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/actionpack-4.2.7.1/lib/action_controller/metal/params_wrapper.rb:250:in `process_action'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/activerecord-4.2.7.1/lib/active_record/railties/controller_runtime.rb:18:in `process_action'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/actionpack-4.2.7.1/lib/abstract_controller/base.rb:137:in `process'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/actionview-4.2.7.1/lib/action_view/rendering.rb:30:in `process'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/actionpack-4.2.7.1/lib/action_controller/test_case.rb:639:in `process'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/actionpack-4.2.7.1/lib/action_controller/test_case.rb:67:in `process'", "/home/bruno/.rvm/gems/ruby-2.1.3/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 '", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/shoulda-context-1.2.1/lib/shoulda/context/context.rb:413:in `instance_exec'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/shoulda-context-1.2.1/lib/shoulda/context/context.rb:413:in `block in create_test_from_should_hash'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest/test.rb:107:in `block (3 levels) in run'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest/test.rb:204:in `capture_exceptions'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest/test.rb:104:in `block (2 levels) in run'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest/test.rb:255:in `time_it'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest/test.rb:103:in `block in run'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest.rb:348:in `on_signal'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest/test.rb:275:in `with_info_handler'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest/test.rb:102:in `run'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest.rb:799:in `run_one_method'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest.rb:322:in `run_one_method'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest.rb:310:in `block (2 levels) in run'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest.rb:309:in `each'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest.rb:309:in `block in run'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest.rb:348:in `on_signal'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest.rb:335:in `with_info_handler'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest.rb:308:in `run'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest.rb:158:in `block in __run'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest.rb:158:in `map'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest.rb:158:in `__run'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest.rb:135:in `run'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest.rb:62:in `block in autorun'"] Redirected to http://api-sandbox.maestrano.io/app_access_unauthorized?err=internal Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should reset the maestrano session successfully if one already exists. --------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction --------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should set a saml_request in scope. ---------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction -------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should set the group_auth_hash in scope. --------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should set the maestrano session. -------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should set the user_auth_hash in scope. -------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------ SamlBaseControllerTest: test_: consume phase should set the user_group_rel_hash in scope. ------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: init phase should create a saml request successfully if a maestrano session is already set. ---------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#init as HTML Parameters: {"a_param"=>"value"} Redirected to http://idpprovider.com?r=request Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) rollback transaction ----------------------------------------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: init phase should create a saml request using params and session and redirect the user. -----------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#init as HTML Parameters: {"a_param"=>"value"} Redirected to http://idpprovider.com?r=request Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) rollback transaction ------------------------------------------------------------------- MetadataControllerTest: test_: authenticated should be successful. -------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Rails::MetadataController#index as HTML Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------- MetadataControllerTest: test_: unauthenticated should deny access. -------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Rails::MetadataController#index as HTML Filter chain halted as :authenticate_maestrano! rendered or redirected Completed 401 Unauthorized in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------ MaestranoRailsTest: test_truth ------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------ ActiveRecordUserGeneratorTest: test_: namespaced model should create the right migration. ------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: namespaced model should edit the model content. --------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction -------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should create the right migration. --------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should edit the model content. ----------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should include parameters if rails 3 and strong_parameter not present. --------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should not include parameters if rails 3 and strong_parameter present. --------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should not include parameters in rails 4. ---------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction --------------------------------------------------------------------------------------------------------------------------------------- MaestranoGroupViaTest: test_: class methods find_or_create_for_maestrano class method should create a monster using the mapping block. ---------------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction 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"]]  (0.0ms) SAVEPOINT active_record_1 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-08-31 04:28:18.195348"], ["updated_at", "2016-08-31 04:28:18.195348"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction ------------------------------------------------------------------------------------------------------------------------------------------------------ MaestranoGroupViaTest: test_: class methods find_or_create_for_maestrano class method should not return a MnoCrew from another provider if it exists. ------------------------------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 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-08-31 04:28:18.197349"], ["updated_at", "2016-08-31 04:28:18.197349"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.0ms) SAVEPOINT active_record_1 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-08-31 04:28:18.198562"], ["updated_at", "2016-08-31 04:28:18.198562"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction ------------------------------------------------------------------------------------------------------------------------------ MaestranoGroupViaTest: test_: class methods find_or_create_for_maestrano class method should return the MnoCrew if it exists. ------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 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-08-31 04:28:18.199926"], ["updated_at", "2016-08-31 04:28:18.199926"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.1ms) rollback transaction ---------------------------------------------------------------------------------------------------- MaestranoGroupViaTest: test_: class methods maestrano_*_via should have the right field definition. ----------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------------------------- MaestranoGroupViaTest: test_: instance methods maestrano? should return false if provider is something else. -------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ----------------------------------------------------------------------------------------------- MaestranoGroupViaTest: test_: instance methods maestrano? should return false if uid is blank. -----------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------------------------------------ MaestranoGroupViaTest: test_: instance methods maestrano? should return true if provider is maestrano and uid not null. ------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: class methods find_or_create_for_maestrano class method should create a monster using the mapping block. --------------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "mno_monsters" ("first_name", "last_name", "email", "provider", "uid", "tenant", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["first_name", "Mon"], ["last_name", "Ster"], ["email", "monster@monst.com"], ["provider", "maestrano"], ["uid", "usr-2"], ["tenant", "default"], ["created_at", "2016-08-31 04:28:18.209364"], ["updated_at", "2016-08-31 04:28:18.209364"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: class methods find_or_create_for_maestrano class method should not return a MnoMonster from another provider if it exists. --------------------------------------------------------------------------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 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-08-31 04:28:18.211763"], ["updated_at", "2016-08-31 04:28:18.211763"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.0ms) SAVEPOINT active_record_1 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-08-31 04:28:18.213556"], ["updated_at", "2016-08-31 04:28:18.213556"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: class methods find_or_create_for_maestrano class method should return the MnoMonster if it exists. --------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 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-08-31 04:28:18.214959"], ["updated_at", "2016-08-31 04:28:18.214959"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.1ms) rollback transaction --------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: class methods maestrano_*_via should have the right field definition. ---------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------------------------ MaestranoUserViaTest: test_: instance methods maestrano? should return false if provider is something else. ------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: instance methods maestrano? should return false if uid is blank. ----------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ----------------------------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: instance methods maestrano? should return true if provider is maestrano and uid not null. -----------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------------------- GroupGeneratorTest: test_: GroupGenerator should call the active_record migration generator successfully. ----------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------------- GroupGeneratorTest: test_: GroupGenerator should call the mongoid migration generator successfully. ----------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------- GroupUsersControllerTest: test_: authenticated should be successful. ---------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Account::GroupUsersController#destroy as HTML Parameters: {"group_id"=>"cld-1", "id"=>"usr-1"} Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.8ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction --------------------------------------------------------------------- GroupUsersControllerTest: test_: unauthenticated should deny access. ---------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Account::GroupUsersController#destroy as HTML Parameters: {"group_id"=>"cld-1", "id"=>"usr-1"} Filter chain halted as :authenticate_maestrano! rendered or redirected Completed 401 Unauthorized in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ----------------------------------------------------------------- GroupsControllerTest: test_: authenticated should be successful. -----------------------------------------------------------------  (0.3ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Account::GroupsController#destroy as HTML Parameters: {"id"=>"cld-1"} Rendered text template (0.0ms) Completed 200 OK in 5ms (Views: 4.9ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction ----------------------------------------------------------------- GroupsControllerTest: test_: unauthenticated should deny access. -----------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Account::GroupsController#destroy as HTML Parameters: {"id"=>"cld-1"} Filter chain halted as :authenticate_maestrano! rendered or redirected Completed 401 Unauthorized in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------------- UserGeneratorTest: test_: UserGenerator should call the active_record migration generator successfully. --------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------- UserGeneratorTest: test_: UserGenerator should call the mongoid migration generator successfully. --------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction --------------------------------------------------------------------------------------------------------------------- GenericControllerTest: test_: with a maestrano session should be successful if the maestrano session is still valid. ---------------------------------------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by PagesController#home as HTML Rendered pages/home.html.erb within layouts/application (0.8ms) Completed 200 OK in 154ms (Views: 153.8ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction -------------------------------------------------------------------------------------------------------------------- GenericControllerTest: test_: with a maestrano session should initialize redirect to SSO initialization if invalid. --------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by PagesController#home as HTML Rendered pages/home.html.erb within layouts/application (0.0ms) Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ----------------------------------------------------------------------------------------------------------- GenericControllerTest: test_: with a maestrano session should not redirect to SSO init if sso is disabled. -----------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by PagesController#home as HTML Rendered pages/home.html.erb within layouts/application (0.0ms) Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------------------ GenericControllerTest: test_: with no maestrano session should be successful. ------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by PagesController#home as HTML Rendered pages/home.html.erb within layouts/application (0.0ms) Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase error should redirect to maestrano on any error. ----------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Cannot validate SAML response: Bla Trace: ["/home/bruno/.rvm/gems/ruby-2.1.3/gems/mocha-1.1.0/lib/mocha/exception_raiser.rb:12:in `evaluate'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/mocha-1.1.0/lib/mocha/return_values.rb:20:in `next'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/mocha-1.1.0/lib/mocha/expectation.rb:569:in `invoke'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/mocha-1.1.0/lib/mocha/mock.rb:296:in `method_missing'", "/home/bruno/Workspace/maestrano-rails/app/controllers/maestrano/rails/saml_base_controller.rb:35:in `process_saml_response'", "/home/bruno/Workspace/maestrano-rails/app/controllers/maestrano/rails/saml_base_controller.rb:18:in `saml_response_transaction'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:432:in `block in make_lambda'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:291:in `call'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:291:in `block in halting_and_conditional'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:497:in `call'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:497:in `block in around'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:505:in `call'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:505:in `call'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:92:in `__run_callbacks__'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:778:in `_run_process_action_callbacks'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:81:in `run_callbacks'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/actionpack-4.2.7.1/lib/abstract_controller/callbacks.rb:19:in `process_action'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/actionpack-4.2.7.1/lib/action_controller/metal/rescue.rb:29:in `process_action'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/actionpack-4.2.7.1/lib/action_controller/metal/instrumentation.rb:32:in `block in process_action'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/activesupport-4.2.7.1/lib/active_support/notifications.rb:164:in `block in instrument'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/activesupport-4.2.7.1/lib/active_support/notifications/instrumenter.rb:20:in `instrument'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/activesupport-4.2.7.1/lib/active_support/notifications.rb:164:in `instrument'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/actionpack-4.2.7.1/lib/action_controller/metal/instrumentation.rb:30:in `process_action'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/actionpack-4.2.7.1/lib/action_controller/metal/params_wrapper.rb:250:in `process_action'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/activerecord-4.2.7.1/lib/active_record/railties/controller_runtime.rb:18:in `process_action'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/actionpack-4.2.7.1/lib/abstract_controller/base.rb:137:in `process'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/actionview-4.2.7.1/lib/action_view/rendering.rb:30:in `process'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/actionpack-4.2.7.1/lib/action_controller/test_case.rb:639:in `process'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/actionpack-4.2.7.1/lib/action_controller/test_case.rb:67:in `process'", "/home/bruno/.rvm/gems/ruby-2.1.3/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 '", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/shoulda-context-1.2.1/lib/shoulda/context/context.rb:413:in `instance_exec'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/shoulda-context-1.2.1/lib/shoulda/context/context.rb:413:in `block in create_test_from_should_hash'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest/test.rb:107:in `block (3 levels) in run'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest/test.rb:204:in `capture_exceptions'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest/test.rb:104:in `block (2 levels) in run'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest/test.rb:255:in `time_it'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest/test.rb:103:in `block in run'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest.rb:348:in `on_signal'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest/test.rb:275:in `with_info_handler'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest/test.rb:102:in `run'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest.rb:799:in `run_one_method'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest.rb:322:in `run_one_method'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest.rb:310:in `block (2 levels) in run'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest.rb:309:in `each'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest.rb:309:in `block in run'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest.rb:348:in `on_signal'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest.rb:335:in `with_info_handler'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest.rb:308:in `run'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest.rb:158:in `block in __run'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest.rb:158:in `map'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest.rb:158:in `__run'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest.rb:135:in `run'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest.rb:62:in `block in autorun'"] Redirected to http://api-sandbox.maestrano.io/app_access_unauthorized?err=internal Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should reset the maestrano session successfully if one already exists. --------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.1ms) rollback transaction --------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should set a saml_request in scope. ---------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction -------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should set the group_auth_hash in scope. --------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should set the maestrano session. -------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should set the user_auth_hash in scope. -------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------ SamlBaseControllerTest: test_: consume phase should set the user_group_rel_hash in scope. ------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: init phase should create a saml request successfully if a maestrano session is already set. ---------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#init as HTML Parameters: {"a_param"=>"value"} Redirected to http://idpprovider.com?r=request Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ----------------------------------------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: init phase should create a saml request using params and session and redirect the user. -----------------------------------------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#init as HTML Parameters: {"a_param"=>"value"} Redirected to http://idpprovider.com?r=request Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) rollback transaction --------------------------------------------------------------------------------------- InstallGeneratorTest: test_: InstallGenerator should create the maestrano initializer. ---------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction ---------------------------------------------------------------------------------- InstallGeneratorTest: test_: InstallGenerator should create the maestrano routes. ----------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------------------- InstallGeneratorTest: test_: InstallGenerator should create the maestrano/account/group_users_controller. ----------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ----------------------------------------------------------------------------------------------------- InstallGeneratorTest: test_: InstallGenerator should create the maestrano/account/groups_controller. -----------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction ------------------------------------------------------------------------------------------------ InstallGeneratorTest: test_: InstallGenerator should create the maestrano/auth/saml_controller. ------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------- MetadataControllerTest: test_: authenticated should be successful. -------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Rails::MetadataController#index as HTML Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------- MetadataControllerTest: test_: unauthenticated should deny access. -------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Rails::MetadataController#index as HTML Filter chain halted as :authenticate_maestrano! rendered or redirected Completed 401 Unauthorized in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------ ActiveRecordUserGeneratorTest: test_: namespaced model should create the right migration. ------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: namespaced model should edit the model content. --------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should create the right migration. --------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction ---------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should edit the model content. ----------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should include parameters if rails 3 and strong_parameter not present. --------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should not include parameters if rails 3 and strong_parameter present. --------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should not include parameters in rails 4. ---------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------- GroupUsersControllerTest: test_: authenticated should be successful. ---------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Account::GroupUsersController#destroy as HTML Parameters: {"group_id"=>"cld-1", "id"=>"usr-1"} Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.7ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction --------------------------------------------------------------------- GroupUsersControllerTest: test_: unauthenticated should deny access. ---------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Account::GroupUsersController#destroy as HTML Parameters: {"group_id"=>"cld-1", "id"=>"usr-1"} Filter chain halted as :authenticate_maestrano! rendered or redirected Completed 401 Unauthorized in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------------------- GroupGeneratorTest: test_: GroupGenerator should call the active_record migration generator successfully. ----------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------------- GroupGeneratorTest: test_: GroupGenerator should call the mongoid migration generator successfully. ----------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction ------------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: namespaced model should create the right migration. -------------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction --------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: namespaced model should edit the model content. ---------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should create the right migration. ---------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ----------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should edit the model content. -----------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should include parameters if rails 3 and strong_parameter not present. ---------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should not include parameters if rails 3 and strong_parameter present. ---------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should not include parameters in rails 4. ----------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------ MaestranoRailsTest: test_truth ------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: class methods find_or_create_for_maestrano class method should create a monster using the mapping block. --------------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction 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"]]  (0.1ms) SAVEPOINT active_record_1 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-08-31 04:28:38.437994"], ["updated_at", "2016-08-31 04:28:38.437994"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: class methods find_or_create_for_maestrano class method should not return a MnoMonster from another provider if it exists. --------------------------------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 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-08-31 04:28:38.440117"], ["updated_at", "2016-08-31 04:28:38.440117"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.0ms) SAVEPOINT active_record_1 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-08-31 04:28:38.441476"], ["updated_at", "2016-08-31 04:28:38.441476"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: class methods find_or_create_for_maestrano class method should return the MnoMonster if it exists. --------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 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-08-31 04:28:38.442962"], ["updated_at", "2016-08-31 04:28:38.442962"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.1ms) rollback transaction --------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: class methods maestrano_*_via should have the right field definition. ---------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------------------------ MaestranoUserViaTest: test_: instance methods maestrano? should return false if provider is something else. ------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: instance methods maestrano? should return false if uid is blank. ----------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ----------------------------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: instance methods maestrano? should return true if provider is maestrano and uid not null. -----------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------------------------------------------------- MaestranoGroupViaTest: test_: class methods find_or_create_for_maestrano class method should create a monster using the mapping block. ---------------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction 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"]]  (0.1ms) SAVEPOINT active_record_1 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-08-31 04:28:38.452550"], ["updated_at", "2016-08-31 04:28:38.452550"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction ------------------------------------------------------------------------------------------------------------------------------------------------------ MaestranoGroupViaTest: test_: class methods find_or_create_for_maestrano class method should not return a MnoCrew from another provider if it exists. ------------------------------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 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-08-31 04:28:38.454437"], ["updated_at", "2016-08-31 04:28:38.454437"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.0ms) SAVEPOINT active_record_1 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-08-31 04:28:38.455729"], ["updated_at", "2016-08-31 04:28:38.455729"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction ------------------------------------------------------------------------------------------------------------------------------ MaestranoGroupViaTest: test_: class methods find_or_create_for_maestrano class method should return the MnoCrew if it exists. ------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 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-08-31 04:28:38.457141"], ["updated_at", "2016-08-31 04:28:38.457141"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.1ms) rollback transaction ---------------------------------------------------------------------------------------------------- MaestranoGroupViaTest: test_: class methods maestrano_*_via should have the right field definition. ----------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------------------------- MaestranoGroupViaTest: test_: instance methods maestrano? should return false if provider is something else. -------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ----------------------------------------------------------------------------------------------- MaestranoGroupViaTest: test_: instance methods maestrano? should return false if uid is blank. -----------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------------------------------------ MaestranoGroupViaTest: test_: instance methods maestrano? should return true if provider is maestrano and uid not null. ------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" --------------------------------------------------------------------------------------------------------------------------------------- MaestranoGroupViaTest: test_: class methods find_or_create_for_maestrano class method should create a monster using the mapping block. ---------------------------------------------------------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction 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"]]  (0.0ms) SAVEPOINT active_record_1 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-08-31 04:29:33.760091"], ["updated_at", "2016-08-31 04:29:33.760091"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction ------------------------------------------------------------------------------------------------------------------------------------------------------ MaestranoGroupViaTest: test_: class methods find_or_create_for_maestrano class method should not return a MnoCrew from another provider if it exists. ------------------------------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 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-08-31 04:29:33.762235"], ["updated_at", "2016-08-31 04:29:33.762235"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.0ms) SAVEPOINT active_record_1 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-08-31 04:29:33.763523"], ["updated_at", "2016-08-31 04:29:33.763523"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction ------------------------------------------------------------------------------------------------------------------------------ MaestranoGroupViaTest: test_: class methods find_or_create_for_maestrano class method should return the MnoCrew if it exists. ------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 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-08-31 04:29:33.765003"], ["updated_at", "2016-08-31 04:29:33.765003"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.1ms) rollback transaction ---------------------------------------------------------------------------------------------------- MaestranoGroupViaTest: test_: class methods maestrano_*_via should have the right field definition. ----------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------------------------- MaestranoGroupViaTest: test_: instance methods maestrano? should return false if provider is something else. -------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ----------------------------------------------------------------------------------------------- MaestranoGroupViaTest: test_: instance methods maestrano? should return false if uid is blank. -----------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------------------------------------ MaestranoGroupViaTest: test_: instance methods maestrano? should return true if provider is maestrano and uid not null. ------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------------------- GroupGeneratorTest: test_: GroupGenerator should call the active_record migration generator successfully. ----------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction ---------------------------------------------------------------------------------------------------- GroupGeneratorTest: test_: GroupGenerator should call the mongoid migration generator successfully. ----------------------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction ------------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: namespaced model should create the right migration. -------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction --------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: namespaced model should edit the model content. ---------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should create the right migration. ---------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ----------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should edit the model content. -----------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should include parameters if rails 3 and strong_parameter not present. ---------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should not include parameters if rails 3 and strong_parameter present. ---------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction ---------------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should not include parameters in rails 4. ----------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: class methods find_or_create_for_maestrano class method should create a monster using the mapping block. --------------------------------------------------------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "mno_monsters" ("first_name", "last_name", "email", "provider", "uid", "tenant", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["first_name", "Mon"], ["last_name", "Ster"], ["email", "monster@monst.com"], ["provider", "maestrano"], ["uid", "usr-2"], ["tenant", "default"], ["created_at", "2016-08-31 04:29:34.011311"], ["updated_at", "2016-08-31 04:29:34.011311"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: class methods find_or_create_for_maestrano class method should not return a MnoMonster from another provider if it exists. --------------------------------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 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-08-31 04:29:34.013312"], ["updated_at", "2016-08-31 04:29:34.013312"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.1ms) SAVEPOINT active_record_1 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-08-31 04:29:34.014887"], ["updated_at", "2016-08-31 04:29:34.014887"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: class methods find_or_create_for_maestrano class method should return the MnoMonster if it exists. --------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 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-08-31 04:29:34.016660"], ["updated_at", "2016-08-31 04:29:34.016660"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.1ms) rollback transaction --------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: class methods maestrano_*_via should have the right field definition. ---------------------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------------------------ MaestranoUserViaTest: test_: instance methods maestrano? should return false if provider is something else. ------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: instance methods maestrano? should return false if uid is blank. ----------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ----------------------------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: instance methods maestrano? should return true if provider is maestrano and uid not null. -----------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase error should redirect to maestrano on any error. ----------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Cannot validate SAML response: Bla Trace: ["/home/bruno/.rvm/gems/ruby-2.1.3/gems/mocha-1.1.0/lib/mocha/exception_raiser.rb:12:in `evaluate'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/mocha-1.1.0/lib/mocha/return_values.rb:20:in `next'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/mocha-1.1.0/lib/mocha/expectation.rb:569:in `invoke'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/mocha-1.1.0/lib/mocha/mock.rb:296:in `method_missing'", "/home/bruno/Workspace/maestrano-rails/app/controllers/maestrano/rails/saml_base_controller.rb:35:in `process_saml_response'", "/home/bruno/Workspace/maestrano-rails/app/controllers/maestrano/rails/saml_base_controller.rb:18:in `saml_response_transaction'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:432:in `block in make_lambda'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:291:in `call'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:291:in `block in halting_and_conditional'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:497:in `call'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:497:in `block in around'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:505:in `call'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:505:in `call'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:92:in `__run_callbacks__'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:778:in `_run_process_action_callbacks'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:81:in `run_callbacks'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/actionpack-4.2.7.1/lib/abstract_controller/callbacks.rb:19:in `process_action'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/actionpack-4.2.7.1/lib/action_controller/metal/rescue.rb:29:in `process_action'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/actionpack-4.2.7.1/lib/action_controller/metal/instrumentation.rb:32:in `block in process_action'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/activesupport-4.2.7.1/lib/active_support/notifications.rb:164:in `block in instrument'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/activesupport-4.2.7.1/lib/active_support/notifications/instrumenter.rb:20:in `instrument'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/activesupport-4.2.7.1/lib/active_support/notifications.rb:164:in `instrument'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/actionpack-4.2.7.1/lib/action_controller/metal/instrumentation.rb:30:in `process_action'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/actionpack-4.2.7.1/lib/action_controller/metal/params_wrapper.rb:250:in `process_action'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/activerecord-4.2.7.1/lib/active_record/railties/controller_runtime.rb:18:in `process_action'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/actionpack-4.2.7.1/lib/abstract_controller/base.rb:137:in `process'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/actionview-4.2.7.1/lib/action_view/rendering.rb:30:in `process'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/actionpack-4.2.7.1/lib/action_controller/test_case.rb:639:in `process'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/actionpack-4.2.7.1/lib/action_controller/test_case.rb:67:in `process'", "/home/bruno/.rvm/gems/ruby-2.1.3/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 '", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/shoulda-context-1.2.1/lib/shoulda/context/context.rb:413:in `instance_exec'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/shoulda-context-1.2.1/lib/shoulda/context/context.rb:413:in `block in create_test_from_should_hash'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest/test.rb:107:in `block (3 levels) in run'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest/test.rb:204:in `capture_exceptions'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest/test.rb:104:in `block (2 levels) in run'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest/test.rb:255:in `time_it'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest/test.rb:103:in `block in run'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest.rb:348:in `on_signal'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest/test.rb:275:in `with_info_handler'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest/test.rb:102:in `run'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest.rb:799:in `run_one_method'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest.rb:322:in `run_one_method'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest.rb:310:in `block (2 levels) in run'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest.rb:309:in `each'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest.rb:309:in `block in run'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest.rb:348:in `on_signal'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest.rb:335:in `with_info_handler'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest.rb:308:in `run'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest.rb:158:in `block in __run'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest.rb:158:in `map'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest.rb:158:in `__run'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest.rb:135:in `run'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest.rb:62:in `block in autorun'"] Redirected to http://api-sandbox.maestrano.io/app_access_unauthorized?err=internal Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should reset the maestrano session successfully if one already exists. --------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction --------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should set a saml_request in scope. ---------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction -------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should set the group_auth_hash in scope. --------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should set the maestrano session. -------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should set the user_auth_hash in scope. -------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------ SamlBaseControllerTest: test_: consume phase should set the user_group_rel_hash in scope. ------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: init phase should create a saml request successfully if a maestrano session is already set. ---------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#init as HTML Parameters: {"a_param"=>"value"} Redirected to http://idpprovider.com?r=request Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ----------------------------------------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: init phase should create a saml request using params and session and redirect the user. -----------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#init as HTML Parameters: {"a_param"=>"value"} Redirected to http://idpprovider.com?r=request Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------ MaestranoRailsTest: test_truth ------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------- InstallGeneratorTest: test_: InstallGenerator should create the maestrano initializer. ---------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction ---------------------------------------------------------------------------------- InstallGeneratorTest: test_: InstallGenerator should create the maestrano routes. ----------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction ---------------------------------------------------------------------------------------------------------- InstallGeneratorTest: test_: InstallGenerator should create the maestrano/account/group_users_controller. ----------------------------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ----------------------------------------------------------------------------------------------------- InstallGeneratorTest: test_: InstallGenerator should create the maestrano/account/groups_controller. -----------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------------ InstallGeneratorTest: test_: InstallGenerator should create the maestrano/auth/saml_controller. ------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------ ActiveRecordUserGeneratorTest: test_: namespaced model should create the right migration. ------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: namespaced model should edit the model content. --------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should create the right migration. --------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction ---------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should edit the model content. ----------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should include parameters if rails 3 and strong_parameter not present. --------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should not include parameters if rails 3 and strong_parameter present. --------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should not include parameters in rails 4. ---------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------------------------------- GenericControllerTest: test_: with a maestrano session should be successful if the maestrano session is still valid. ---------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by PagesController#home as HTML Rendered pages/home.html.erb within layouts/application (0.8ms) Completed 200 OK in 154ms (Views: 153.7ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction -------------------------------------------------------------------------------------------------------------------- GenericControllerTest: test_: with a maestrano session should initialize redirect to SSO initialization if invalid. --------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by PagesController#home as HTML Redirected to http://localhost:3000/maestrano/auth/saml/init/default Filter chain halted as :verify_maestrano_session rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ----------------------------------------------------------------------------------------------------------- GenericControllerTest: test_: with a maestrano session should not redirect to SSO init if sso is disabled. -----------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by PagesController#home as HTML Rendered pages/home.html.erb within layouts/application (0.0ms) Completed 200 OK in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------------------ GenericControllerTest: test_: with no maestrano session should be successful. ------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by PagesController#home as HTML Rendered pages/home.html.erb within layouts/application (0.0ms) Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------- MetadataControllerTest: test_: authenticated should be successful. -------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Rails::MetadataController#index as HTML Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------- MetadataControllerTest: test_: unauthenticated should deny access. -------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Rails::MetadataController#index as HTML Filter chain halted as :authenticate_maestrano! rendered or redirected Completed 401 Unauthorized in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------------- UserGeneratorTest: test_: UserGenerator should call the active_record migration generator successfully. --------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------- UserGeneratorTest: test_: UserGenerator should call the mongoid migration generator successfully. --------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction ----------------------------------------------------------------- GroupsControllerTest: test_: authenticated should be successful. -----------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Account::GroupsController#destroy as HTML Parameters: {"id"=>"cld-1"} Rendered text template (0.0ms) Completed 200 OK in 4ms (Views: 3.2ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ----------------------------------------------------------------- GroupsControllerTest: test_: unauthenticated should deny access. -----------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Account::GroupsController#destroy as HTML Parameters: {"id"=>"cld-1"} Filter chain halted as :authenticate_maestrano! rendered or redirected Completed 401 Unauthorized in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction --------------------------------------------------------------------- GroupUsersControllerTest: test_: authenticated should be successful. ---------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Account::GroupUsersController#destroy as HTML Parameters: {"group_id"=>"cld-1", "id"=>"usr-1"} Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction --------------------------------------------------------------------- GroupUsersControllerTest: test_: unauthenticated should deny access. ---------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Account::GroupUsersController#destroy as HTML Parameters: {"group_id"=>"cld-1", "id"=>"usr-1"} Filter chain halted as :authenticate_maestrano! rendered or redirected Completed 401 Unauthorized in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ------------------------------ MaestranoRailsTest: test_truth ------------------------------  (0.2ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ----------------------------------------------------------------- GroupsControllerTest: test_: authenticated should be successful. -----------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Account::GroupsController#destroy as HTML Parameters: {"id"=>"cld-1"} Rendered text template (0.0ms) Completed 200 OK in 5ms (Views: 4.5ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ----------------------------------------------------------------- GroupsControllerTest: test_: unauthenticated should deny access. -----------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Account::GroupsController#destroy as HTML Parameters: {"id"=>"cld-1"} Filter chain halted as :authenticate_maestrano! rendered or redirected Completed 401 Unauthorized in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase error should redirect to maestrano on any error. ----------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Cannot validate SAML response: Bla Trace: ["/home/bruno/.rvm/gems/ruby-2.1.3/gems/mocha-1.1.0/lib/mocha/exception_raiser.rb:12:in `evaluate'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/mocha-1.1.0/lib/mocha/return_values.rb:20:in `next'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/mocha-1.1.0/lib/mocha/expectation.rb:569:in `invoke'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/mocha-1.1.0/lib/mocha/mock.rb:296:in `method_missing'", "/home/bruno/Workspace/maestrano-rails/app/controllers/maestrano/rails/saml_base_controller.rb:35:in `process_saml_response'", "/home/bruno/Workspace/maestrano-rails/app/controllers/maestrano/rails/saml_base_controller.rb:18:in `saml_response_transaction'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:432:in `block in make_lambda'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:291:in `call'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:291:in `block in halting_and_conditional'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:497:in `call'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:497:in `block in around'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:505:in `call'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:505:in `call'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:92:in `__run_callbacks__'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:778:in `_run_process_action_callbacks'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:81:in `run_callbacks'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/actionpack-4.2.7.1/lib/abstract_controller/callbacks.rb:19:in `process_action'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/actionpack-4.2.7.1/lib/action_controller/metal/rescue.rb:29:in `process_action'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/actionpack-4.2.7.1/lib/action_controller/metal/instrumentation.rb:32:in `block in process_action'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/activesupport-4.2.7.1/lib/active_support/notifications.rb:164:in `block in instrument'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/activesupport-4.2.7.1/lib/active_support/notifications/instrumenter.rb:20:in `instrument'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/activesupport-4.2.7.1/lib/active_support/notifications.rb:164:in `instrument'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/actionpack-4.2.7.1/lib/action_controller/metal/instrumentation.rb:30:in `process_action'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/actionpack-4.2.7.1/lib/action_controller/metal/params_wrapper.rb:250:in `process_action'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/activerecord-4.2.7.1/lib/active_record/railties/controller_runtime.rb:18:in `process_action'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/actionpack-4.2.7.1/lib/abstract_controller/base.rb:137:in `process'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/actionview-4.2.7.1/lib/action_view/rendering.rb:30:in `process'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/actionpack-4.2.7.1/lib/action_controller/test_case.rb:639:in `process'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/actionpack-4.2.7.1/lib/action_controller/test_case.rb:67:in `process'", "/home/bruno/.rvm/gems/ruby-2.1.3/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 '", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/shoulda-context-1.2.1/lib/shoulda/context/context.rb:413:in `instance_exec'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/shoulda-context-1.2.1/lib/shoulda/context/context.rb:413:in `block in create_test_from_should_hash'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest/test.rb:107:in `block (3 levels) in run'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest/test.rb:204:in `capture_exceptions'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest/test.rb:104:in `block (2 levels) in run'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest/test.rb:255:in `time_it'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest/test.rb:103:in `block in run'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest.rb:348:in `on_signal'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest/test.rb:275:in `with_info_handler'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest/test.rb:102:in `run'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest.rb:799:in `run_one_method'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest.rb:322:in `run_one_method'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest.rb:310:in `block (2 levels) in run'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest.rb:309:in `each'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest.rb:309:in `block in run'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest.rb:348:in `on_signal'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest.rb:335:in `with_info_handler'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest.rb:308:in `run'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest.rb:158:in `block in __run'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest.rb:158:in `map'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest.rb:158:in `__run'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest.rb:135:in `run'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest.rb:62:in `block in autorun'"] Redirected to http://api-sandbox.maestrano.io/app_access_unauthorized?err=internal Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should reset the maestrano session successfully if one already exists. --------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction --------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should set a saml_request in scope. ---------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction -------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should set the group_auth_hash in scope. --------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should set the maestrano session. -------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should set the user_auth_hash in scope. -------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.1ms) rollback transaction ------------------------------------------------------------------------------------------ SamlBaseControllerTest: test_: consume phase should set the user_group_rel_hash in scope. ------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: init phase should create a saml request successfully if a maestrano session is already set. ---------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#init as HTML Parameters: {"a_param"=>"value"} Redirected to http://idpprovider.com?r=request Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ----------------------------------------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: init phase should create a saml request using params and session and redirect the user. -----------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#init as HTML Parameters: {"a_param"=>"value"} Redirected to http://idpprovider.com?r=request Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------- MetadataControllerTest: test_: authenticated should be successful. -------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Rails::MetadataController#index as HTML Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------- MetadataControllerTest: test_: unauthenticated should deny access. -------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Rails::MetadataController#index as HTML Filter chain halted as :authenticate_maestrano! rendered or redirected Completed 401 Unauthorized in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------------------------------- GenericControllerTest: test_: with a maestrano session should be successful if the maestrano session is still valid. ---------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by PagesController#home as HTML Rendered pages/home.html.erb within layouts/application (0.9ms) Completed 200 OK in 155ms (Views: 154.6ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction -------------------------------------------------------------------------------------------------------------------- GenericControllerTest: test_: with a maestrano session should initialize redirect to SSO initialization if invalid. --------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by PagesController#home as HTML Rendered pages/home.html.erb within layouts/application (0.0ms) Completed 200 OK in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ----------------------------------------------------------------------------------------------------------- GenericControllerTest: test_: with a maestrano session should not redirect to SSO init if sso is disabled. -----------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by PagesController#home as HTML Rendered pages/home.html.erb within layouts/application (0.0ms) Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------------------ GenericControllerTest: test_: with no maestrano session should be successful. ------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by PagesController#home as HTML Rendered pages/home.html.erb within layouts/application (0.0ms) Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------------- UserGeneratorTest: test_: UserGenerator should call the active_record migration generator successfully. --------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction -------------------------------------------------------------------------------------------------- UserGeneratorTest: test_: UserGenerator should call the mongoid migration generator successfully. --------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------ ActiveRecordUserGeneratorTest: test_: namespaced model should create the right migration. ------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction -------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: namespaced model should edit the model content. --------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction -------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should create the right migration. --------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should edit the model content. ----------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should include parameters if rails 3 and strong_parameter not present. --------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should not include parameters if rails 3 and strong_parameter present. --------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should not include parameters in rails 4. ---------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------- GroupUsersControllerTest: test_: authenticated should be successful. ---------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Account::GroupUsersController#destroy as HTML Parameters: {"group_id"=>"cld-1", "id"=>"usr-1"} Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.9ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction --------------------------------------------------------------------- GroupUsersControllerTest: test_: unauthenticated should deny access. ---------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Account::GroupUsersController#destroy as HTML Parameters: {"group_id"=>"cld-1", "id"=>"usr-1"} Filter chain halted as :authenticate_maestrano! rendered or redirected Completed 401 Unauthorized in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction --------------------------------------------------------------------------------------- InstallGeneratorTest: test_: InstallGenerator should create the maestrano initializer. ---------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------- InstallGeneratorTest: test_: InstallGenerator should create the maestrano routes. ----------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction ---------------------------------------------------------------------------------------------------------- InstallGeneratorTest: test_: InstallGenerator should create the maestrano/account/group_users_controller. ----------------------------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction ----------------------------------------------------------------------------------------------------- InstallGeneratorTest: test_: InstallGenerator should create the maestrano/account/groups_controller. -----------------------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------------ InstallGeneratorTest: test_: InstallGenerator should create the maestrano/auth/saml_controller. ------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------------------------------------------------- MaestranoGroupViaTest: test_: class methods find_or_create_for_maestrano class method should create a monster using the mapping block. ---------------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction 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"]]  (0.0ms) SAVEPOINT active_record_1 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-08-31 04:29:43.717224"], ["updated_at", "2016-08-31 04:29:43.717224"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction ------------------------------------------------------------------------------------------------------------------------------------------------------ MaestranoGroupViaTest: test_: class methods find_or_create_for_maestrano class method should not return a MnoCrew from another provider if it exists. ------------------------------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 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-08-31 04:29:43.719409"], ["updated_at", "2016-08-31 04:29:43.719409"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.0ms) SAVEPOINT active_record_1 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-08-31 04:29:43.720825"], ["updated_at", "2016-08-31 04:29:43.720825"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction ------------------------------------------------------------------------------------------------------------------------------ MaestranoGroupViaTest: test_: class methods find_or_create_for_maestrano class method should return the MnoCrew if it exists. ------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 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-08-31 04:29:43.722540"], ["updated_at", "2016-08-31 04:29:43.722540"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 MnoCrew Load (0.1ms) SELECT "mno_crews".* FROM "mno_crews" WHERE "mno_crews"."provider" = ? AND "mno_crews"."uid" = ? AND "mno_crews"."tenant" = ? ORDER BY "mno_crews"."id" ASC LIMIT 1 [["provider", "maestrano"], ["uid", "cld-1"], ["tenant", "default"]]  (0.1ms) rollback transaction ---------------------------------------------------------------------------------------------------- MaestranoGroupViaTest: test_: class methods maestrano_*_via should have the right field definition. ----------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------------------------- MaestranoGroupViaTest: test_: instance methods maestrano? should return false if provider is something else. -------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ----------------------------------------------------------------------------------------------- MaestranoGroupViaTest: test_: instance methods maestrano? should return false if uid is blank. -----------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------------------------------------ MaestranoGroupViaTest: test_: instance methods maestrano? should return true if provider is maestrano and uid not null. ------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: namespaced model should create the right migration. -------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: namespaced model should edit the model content. ---------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should create the right migration. ---------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ----------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should edit the model content. -----------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should include parameters if rails 3 and strong_parameter not present. ---------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should not include parameters if rails 3 and strong_parameter present. ---------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should not include parameters in rails 4. ----------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------------------- GroupGeneratorTest: test_: GroupGenerator should call the active_record migration generator successfully. ----------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction ---------------------------------------------------------------------------------------------------- GroupGeneratorTest: test_: GroupGenerator should call the mongoid migration generator successfully. ----------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: class methods find_or_create_for_maestrano class method should create a monster using the mapping block. --------------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "mno_monsters" ("first_name", "last_name", "email", "provider", "uid", "tenant", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["first_name", "Mon"], ["last_name", "Ster"], ["email", "monster@monst.com"], ["provider", "maestrano"], ["uid", "usr-2"], ["tenant", "default"], ["created_at", "2016-08-31 04:29:43.770603"], ["updated_at", "2016-08-31 04:29:43.770603"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: class methods find_or_create_for_maestrano class method should not return a MnoMonster from another provider if it exists. --------------------------------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 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-08-31 04:29:43.772362"], ["updated_at", "2016-08-31 04:29:43.772362"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.0ms) SAVEPOINT active_record_1 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-08-31 04:29:43.773621"], ["updated_at", "2016-08-31 04:29:43.773621"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: class methods find_or_create_for_maestrano class method should return the MnoMonster if it exists. --------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 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-08-31 04:29:43.774986"], ["updated_at", "2016-08-31 04:29:43.774986"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.1ms) rollback transaction --------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: class methods maestrano_*_via should have the right field definition. ---------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------------------------ MaestranoUserViaTest: test_: instance methods maestrano? should return false if provider is something else. ------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: instance methods maestrano? should return false if uid is blank. ----------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ----------------------------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: instance methods maestrano? should return true if provider is maestrano and uid not null. -----------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ------------------------------------------------------------------- MetadataControllerTest: test_: authenticated should be successful. -------------------------------------------------------------------  (0.2ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Rails::MetadataController#index as HTML Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction ------------------------------------------------------------------- MetadataControllerTest: test_: unauthenticated should deny access. -------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Rails::MetadataController#index as HTML Filter chain halted as :authenticate_maestrano! rendered or redirected Completed 401 Unauthorized in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction --------------------------------------------------------------------------------------- InstallGeneratorTest: test_: InstallGenerator should create the maestrano initializer. ---------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------- InstallGeneratorTest: test_: InstallGenerator should create the maestrano routes. ----------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction ---------------------------------------------------------------------------------------------------------- InstallGeneratorTest: test_: InstallGenerator should create the maestrano/account/group_users_controller. ----------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ----------------------------------------------------------------------------------------------------- InstallGeneratorTest: test_: InstallGenerator should create the maestrano/account/groups_controller. -----------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction ------------------------------------------------------------------------------------------------ InstallGeneratorTest: test_: InstallGenerator should create the maestrano/auth/saml_controller. ------------------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction --------------------------------------------------------------------- GroupUsersControllerTest: test_: authenticated should be successful. ---------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Account::GroupUsersController#destroy as HTML Parameters: {"group_id"=>"cld-1", "id"=>"usr-1"} Rendered text template (0.0ms) Completed 200 OK in 5ms (Views: 5.1ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction --------------------------------------------------------------------- GroupUsersControllerTest: test_: unauthenticated should deny access. ---------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Account::GroupUsersController#destroy as HTML Parameters: {"group_id"=>"cld-1", "id"=>"usr-1"} Filter chain halted as :authenticate_maestrano! rendered or redirected Completed 401 Unauthorized in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: namespaced model should create the right migration. -------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: namespaced model should edit the model content. ---------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should create the right migration. ---------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ----------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should edit the model content. -----------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction --------------------------------------------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should include parameters if rails 3 and strong_parameter not present. ---------------------------------------------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction --------------------------------------------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should not include parameters if rails 3 and strong_parameter present. ---------------------------------------------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should not include parameters in rails 4. ----------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: class methods find_or_create_for_maestrano class method should create a monster using the mapping block. --------------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction 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"]]  (0.0ms) SAVEPOINT active_record_1 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-08-31 04:31:07.368030"], ["updated_at", "2016-08-31 04:31:07.368030"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: class methods find_or_create_for_maestrano class method should not return a MnoMonster from another provider if it exists. --------------------------------------------------------------------------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 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-08-31 04:31:07.371463"], ["updated_at", "2016-08-31 04:31:07.371463"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.0ms) SAVEPOINT active_record_1 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-08-31 04:31:07.373491"], ["updated_at", "2016-08-31 04:31:07.373491"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: class methods find_or_create_for_maestrano class method should return the MnoMonster if it exists. --------------------------------------------------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 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-08-31 04:31:07.375216"], ["updated_at", "2016-08-31 04:31:07.375216"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.1ms) rollback transaction --------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: class methods maestrano_*_via should have the right field definition. ---------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------------------------ MaestranoUserViaTest: test_: instance methods maestrano? should return false if provider is something else. ------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: instance methods maestrano? should return false if uid is blank. ----------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ----------------------------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: instance methods maestrano? should return true if provider is maestrano and uid not null. -----------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase error should redirect to maestrano on any error. ----------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Cannot validate SAML response: Bla Trace: ["/home/bruno/.rvm/gems/ruby-2.1.3/gems/mocha-1.1.0/lib/mocha/exception_raiser.rb:12:in `evaluate'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/mocha-1.1.0/lib/mocha/return_values.rb:20:in `next'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/mocha-1.1.0/lib/mocha/expectation.rb:569:in `invoke'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/mocha-1.1.0/lib/mocha/mock.rb:296:in `method_missing'", "/home/bruno/Workspace/maestrano-rails/app/controllers/maestrano/rails/saml_base_controller.rb:35:in `process_saml_response'", "/home/bruno/Workspace/maestrano-rails/app/controllers/maestrano/rails/saml_base_controller.rb:18:in `saml_response_transaction'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:432:in `block in make_lambda'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:291:in `call'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:291:in `block in halting_and_conditional'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:497:in `call'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:497:in `block in around'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:505:in `call'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:505:in `call'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:92:in `__run_callbacks__'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:778:in `_run_process_action_callbacks'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:81:in `run_callbacks'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/actionpack-4.2.7.1/lib/abstract_controller/callbacks.rb:19:in `process_action'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/actionpack-4.2.7.1/lib/action_controller/metal/rescue.rb:29:in `process_action'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/actionpack-4.2.7.1/lib/action_controller/metal/instrumentation.rb:32:in `block in process_action'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/activesupport-4.2.7.1/lib/active_support/notifications.rb:164:in `block in instrument'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/activesupport-4.2.7.1/lib/active_support/notifications/instrumenter.rb:20:in `instrument'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/activesupport-4.2.7.1/lib/active_support/notifications.rb:164:in `instrument'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/actionpack-4.2.7.1/lib/action_controller/metal/instrumentation.rb:30:in `process_action'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/actionpack-4.2.7.1/lib/action_controller/metal/params_wrapper.rb:250:in `process_action'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/activerecord-4.2.7.1/lib/active_record/railties/controller_runtime.rb:18:in `process_action'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/actionpack-4.2.7.1/lib/abstract_controller/base.rb:137:in `process'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/actionview-4.2.7.1/lib/action_view/rendering.rb:30:in `process'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/actionpack-4.2.7.1/lib/action_controller/test_case.rb:639:in `process'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/actionpack-4.2.7.1/lib/action_controller/test_case.rb:67:in `process'", "/home/bruno/.rvm/gems/ruby-2.1.3/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 '", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/shoulda-context-1.2.1/lib/shoulda/context/context.rb:413:in `instance_exec'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/shoulda-context-1.2.1/lib/shoulda/context/context.rb:413:in `block in create_test_from_should_hash'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest/test.rb:107:in `block (3 levels) in run'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest/test.rb:204:in `capture_exceptions'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest/test.rb:104:in `block (2 levels) in run'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest/test.rb:255:in `time_it'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest/test.rb:103:in `block in run'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest.rb:348:in `on_signal'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest/test.rb:275:in `with_info_handler'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest/test.rb:102:in `run'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest.rb:799:in `run_one_method'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest.rb:322:in `run_one_method'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest.rb:310:in `block (2 levels) in run'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest.rb:309:in `each'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest.rb:309:in `block in run'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest.rb:348:in `on_signal'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest.rb:335:in `with_info_handler'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest.rb:308:in `run'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest.rb:158:in `block in __run'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest.rb:158:in `map'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest.rb:158:in `__run'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest.rb:135:in `run'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest.rb:62:in `block in autorun'"] Redirected to http://api-sandbox.maestrano.io/app_access_unauthorized?err=internal Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should reset the maestrano session successfully if one already exists. --------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction --------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should set a saml_request in scope. ---------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction -------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should set the group_auth_hash in scope. --------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should set the maestrano session. -------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should set the user_auth_hash in scope. -------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------ SamlBaseControllerTest: test_: consume phase should set the user_group_rel_hash in scope. ------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: init phase should create a saml request successfully if a maestrano session is already set. ---------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#init as HTML Parameters: {"a_param"=>"value"} Redirected to http://idpprovider.com?r=request Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ----------------------------------------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: init phase should create a saml request using params and session and redirect the user. -----------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#init as HTML Parameters: {"a_param"=>"value"} Redirected to http://idpprovider.com?r=request Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------------------- GroupGeneratorTest: test_: GroupGenerator should call the active_record migration generator successfully. ----------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction ---------------------------------------------------------------------------------------------------- GroupGeneratorTest: test_: GroupGenerator should call the mongoid migration generator successfully. ----------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------ MaestranoRailsTest: test_truth ------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------ ActiveRecordUserGeneratorTest: test_: namespaced model should create the right migration. ------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: namespaced model should edit the model content. --------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should create the right migration. --------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should edit the model content. ----------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should include parameters if rails 3 and strong_parameter not present. --------------------------------------------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should not include parameters if rails 3 and strong_parameter present. --------------------------------------------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should not include parameters in rails 4. ---------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------------- UserGeneratorTest: test_: UserGenerator should call the active_record migration generator successfully. --------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------- UserGeneratorTest: test_: UserGenerator should call the mongoid migration generator successfully. --------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction ----------------------------------------------------------------- GroupsControllerTest: test_: authenticated should be successful. -----------------------------------------------------------------  (0.2ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction Processing by Maestrano::Account::GroupsController#destroy as HTML Parameters: {"id"=>"cld-1"} Rendered text template (0.0ms) Completed 200 OK in 3ms (Views: 2.3ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ----------------------------------------------------------------- GroupsControllerTest: test_: unauthenticated should deny access. -----------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Account::GroupsController#destroy as HTML Parameters: {"id"=>"cld-1"} Filter chain halted as :authenticate_maestrano! rendered or redirected Completed 401 Unauthorized in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------------------------------------------------- MaestranoGroupViaTest: test_: class methods find_or_create_for_maestrano class method should create a monster using the mapping block. ---------------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction MnoCrew Load (0.2ms) SELECT "mno_crews".* FROM "mno_crews" WHERE "mno_crews"."provider" = ? AND "mno_crews"."uid" = ? AND "mno_crews"."tenant" = ? ORDER BY "mno_crews"."id" ASC LIMIT 1 [["provider", "maestrano"], ["uid", "usr-2"], ["tenant", "default"]]  (0.0ms) SAVEPOINT active_record_1 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-08-31 04:31:07.475837"], ["updated_at", "2016-08-31 04:31:07.475837"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction ------------------------------------------------------------------------------------------------------------------------------------------------------ MaestranoGroupViaTest: test_: class methods find_or_create_for_maestrano class method should not return a MnoCrew from another provider if it exists. ------------------------------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 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-08-31 04:31:07.477817"], ["updated_at", "2016-08-31 04:31:07.477817"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.0ms) SAVEPOINT active_record_1 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-08-31 04:31:07.485167"], ["updated_at", "2016-08-31 04:31:07.485167"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction ------------------------------------------------------------------------------------------------------------------------------ MaestranoGroupViaTest: test_: class methods find_or_create_for_maestrano class method should return the MnoCrew if it exists. ------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 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-08-31 04:31:07.487109"], ["updated_at", "2016-08-31 04:31:07.487109"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.1ms) rollback transaction ---------------------------------------------------------------------------------------------------- MaestranoGroupViaTest: test_: class methods maestrano_*_via should have the right field definition. ----------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------------------------- MaestranoGroupViaTest: test_: instance methods maestrano? should return false if provider is something else. -------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ----------------------------------------------------------------------------------------------- MaestranoGroupViaTest: test_: instance methods maestrano? should return false if uid is blank. -----------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------------------------------------ MaestranoGroupViaTest: test_: instance methods maestrano? should return true if provider is maestrano and uid not null. ------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------------------------------- GenericControllerTest: test_: with a maestrano session should be successful if the maestrano session is still valid. ---------------------------------------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by PagesController#home as HTML Rendered pages/home.html.erb within layouts/application (0.9ms) Completed 200 OK in 153ms (Views: 152.2ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction -------------------------------------------------------------------------------------------------------------------- GenericControllerTest: test_: with a maestrano session should initialize redirect to SSO initialization if invalid. --------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by PagesController#home as HTML Redirected to http://localhost::3000/maestrano/auth/saml/init Filter chain halted as :verify_maestrano_session rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ----------------------------------------------------------------------------------------------------------- GenericControllerTest: test_: with a maestrano session should not redirect to SSO init if sso is disabled. -----------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by PagesController#home as HTML Rendered pages/home.html.erb within layouts/application (0.0ms) Completed 200 OK in 1ms (Views: 0.9ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------------------ GenericControllerTest: test_: with no maestrano session should be successful. ------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by PagesController#home as HTML Rendered pages/home.html.erb within layouts/application (0.0ms) Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" --------------------------------------------------------------------------------------------------------------------- GenericControllerTest: test_: with a maestrano session should be successful if the maestrano session is still valid. ---------------------------------------------------------------------------------------------------------------------  (0.2ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction Processing by PagesController#home as HTML Rendered pages/home.html.erb within layouts/application (0.8ms) Completed 200 OK in 159ms (Views: 159.2ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction -------------------------------------------------------------------------------------------------------------------- GenericControllerTest: test_: with a maestrano session should initialize redirect to SSO initialization if invalid. --------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by PagesController#home as HTML Rendered pages/home.html.erb within layouts/application (0.0ms) Completed 200 OK in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ----------------------------------------------------------------------------------------------------------- GenericControllerTest: test_: with a maestrano session should not redirect to SSO init if sso is disabled. -----------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by PagesController#home as HTML Rendered pages/home.html.erb within layouts/application (0.0ms) Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------------------ GenericControllerTest: test_: with no maestrano session should be successful. ------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by PagesController#home as HTML Rendered pages/home.html.erb within layouts/application (0.0ms) Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------------------------------------------------- MaestranoGroupViaTest: test_: class methods find_or_create_for_maestrano class method should create a monster using the mapping block. ---------------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction 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"]]  (0.0ms) SAVEPOINT active_record_1 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-08-31 04:31:15.380694"], ["updated_at", "2016-08-31 04:31:15.380694"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction ------------------------------------------------------------------------------------------------------------------------------------------------------ MaestranoGroupViaTest: test_: class methods find_or_create_for_maestrano class method should not return a MnoCrew from another provider if it exists. ------------------------------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 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-08-31 04:31:15.382914"], ["updated_at", "2016-08-31 04:31:15.382914"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.0ms) SAVEPOINT active_record_1 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-08-31 04:31:15.384267"], ["updated_at", "2016-08-31 04:31:15.384267"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction ------------------------------------------------------------------------------------------------------------------------------ MaestranoGroupViaTest: test_: class methods find_or_create_for_maestrano class method should return the MnoCrew if it exists. ------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 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-08-31 04:31:15.385820"], ["updated_at", "2016-08-31 04:31:15.385820"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.1ms) rollback transaction ---------------------------------------------------------------------------------------------------- MaestranoGroupViaTest: test_: class methods maestrano_*_via should have the right field definition. ----------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------------------------- MaestranoGroupViaTest: test_: instance methods maestrano? should return false if provider is something else. -------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ----------------------------------------------------------------------------------------------- MaestranoGroupViaTest: test_: instance methods maestrano? should return false if uid is blank. -----------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------------------------------------ MaestranoGroupViaTest: test_: instance methods maestrano? should return true if provider is maestrano and uid not null. ------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------- InstallGeneratorTest: test_: InstallGenerator should create the maestrano initializer. ---------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction ---------------------------------------------------------------------------------- InstallGeneratorTest: test_: InstallGenerator should create the maestrano routes. ----------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------------------- InstallGeneratorTest: test_: InstallGenerator should create the maestrano/account/group_users_controller. ----------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ----------------------------------------------------------------------------------------------------- InstallGeneratorTest: test_: InstallGenerator should create the maestrano/account/groups_controller. -----------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------------ InstallGeneratorTest: test_: InstallGenerator should create the maestrano/auth/saml_controller. ------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: class methods find_or_create_for_maestrano class method should create a monster using the mapping block. --------------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "mno_monsters" ("first_name", "last_name", "email", "provider", "uid", "tenant", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["first_name", "Mon"], ["last_name", "Ster"], ["email", "monster@monst.com"], ["provider", "maestrano"], ["uid", "usr-2"], ["tenant", "default"], ["created_at", "2016-08-31 04:31:15.417974"], ["updated_at", "2016-08-31 04:31:15.417974"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: class methods find_or_create_for_maestrano class method should not return a MnoMonster from another provider if it exists. --------------------------------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 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-08-31 04:31:15.419995"], ["updated_at", "2016-08-31 04:31:15.419995"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.0ms) SAVEPOINT active_record_1 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-08-31 04:31:15.421493"], ["updated_at", "2016-08-31 04:31:15.421493"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: class methods find_or_create_for_maestrano class method should return the MnoMonster if it exists. --------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 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-08-31 04:31:15.423448"], ["updated_at", "2016-08-31 04:31:15.423448"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.1ms) rollback transaction --------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: class methods maestrano_*_via should have the right field definition. ---------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------------------------ MaestranoUserViaTest: test_: instance methods maestrano? should return false if provider is something else. ------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: instance methods maestrano? should return false if uid is blank. ----------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction ----------------------------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: instance methods maestrano? should return true if provider is maestrano and uid not null. -----------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------------------- GroupGeneratorTest: test_: GroupGenerator should call the active_record migration generator successfully. ----------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------------- GroupGeneratorTest: test_: GroupGenerator should call the mongoid migration generator successfully. ----------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------------- UserGeneratorTest: test_: UserGenerator should call the active_record migration generator successfully. --------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------- UserGeneratorTest: test_: UserGenerator should call the mongoid migration generator successfully. --------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction --------------------------------------------------------------------- GroupUsersControllerTest: test_: authenticated should be successful. ---------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Account::GroupUsersController#destroy as HTML Parameters: {"group_id"=>"cld-1", "id"=>"usr-1"} Rendered text template (0.0ms) Completed 200 OK in 3ms (Views: 2.1ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction --------------------------------------------------------------------- GroupUsersControllerTest: test_: unauthenticated should deny access. ---------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Account::GroupUsersController#destroy as HTML Parameters: {"group_id"=>"cld-1", "id"=>"usr-1"} Filter chain halted as :authenticate_maestrano! rendered or redirected Completed 401 Unauthorized in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ----------------------------------------------------------------- GroupsControllerTest: test_: authenticated should be successful. -----------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Account::GroupsController#destroy as HTML Parameters: {"id"=>"cld-1"} Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.7ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ----------------------------------------------------------------- GroupsControllerTest: test_: unauthenticated should deny access. -----------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Account::GroupsController#destroy as HTML Parameters: {"id"=>"cld-1"} Filter chain halted as :authenticate_maestrano! rendered or redirected Completed 401 Unauthorized in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase error should redirect to maestrano on any error. ----------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Cannot validate SAML response: Bla Trace: ["/home/bruno/.rvm/gems/ruby-2.1.3/gems/mocha-1.1.0/lib/mocha/exception_raiser.rb:12:in `evaluate'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/mocha-1.1.0/lib/mocha/return_values.rb:20:in `next'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/mocha-1.1.0/lib/mocha/expectation.rb:569:in `invoke'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/mocha-1.1.0/lib/mocha/mock.rb:296:in `method_missing'", "/home/bruno/Workspace/maestrano-rails/app/controllers/maestrano/rails/saml_base_controller.rb:35:in `process_saml_response'", "/home/bruno/Workspace/maestrano-rails/app/controllers/maestrano/rails/saml_base_controller.rb:18:in `saml_response_transaction'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:432:in `block in make_lambda'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:291:in `call'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:291:in `block in halting_and_conditional'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:497:in `call'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:497:in `block in around'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:505:in `call'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:505:in `call'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:92:in `__run_callbacks__'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:778:in `_run_process_action_callbacks'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:81:in `run_callbacks'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/actionpack-4.2.7.1/lib/abstract_controller/callbacks.rb:19:in `process_action'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/actionpack-4.2.7.1/lib/action_controller/metal/rescue.rb:29:in `process_action'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/actionpack-4.2.7.1/lib/action_controller/metal/instrumentation.rb:32:in `block in process_action'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/activesupport-4.2.7.1/lib/active_support/notifications.rb:164:in `block in instrument'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/activesupport-4.2.7.1/lib/active_support/notifications/instrumenter.rb:20:in `instrument'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/activesupport-4.2.7.1/lib/active_support/notifications.rb:164:in `instrument'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/actionpack-4.2.7.1/lib/action_controller/metal/instrumentation.rb:30:in `process_action'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/actionpack-4.2.7.1/lib/action_controller/metal/params_wrapper.rb:250:in `process_action'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/activerecord-4.2.7.1/lib/active_record/railties/controller_runtime.rb:18:in `process_action'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/actionpack-4.2.7.1/lib/abstract_controller/base.rb:137:in `process'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/actionview-4.2.7.1/lib/action_view/rendering.rb:30:in `process'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/actionpack-4.2.7.1/lib/action_controller/test_case.rb:639:in `process'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/actionpack-4.2.7.1/lib/action_controller/test_case.rb:67:in `process'", "/home/bruno/.rvm/gems/ruby-2.1.3/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 '", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/shoulda-context-1.2.1/lib/shoulda/context/context.rb:413:in `instance_exec'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/shoulda-context-1.2.1/lib/shoulda/context/context.rb:413:in `block in create_test_from_should_hash'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest/test.rb:107:in `block (3 levels) in run'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest/test.rb:204:in `capture_exceptions'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest/test.rb:104:in `block (2 levels) in run'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest/test.rb:255:in `time_it'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest/test.rb:103:in `block in run'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest.rb:348:in `on_signal'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest/test.rb:275:in `with_info_handler'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest/test.rb:102:in `run'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest.rb:799:in `run_one_method'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest.rb:322:in `run_one_method'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest.rb:310:in `block (2 levels) in run'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest.rb:309:in `each'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest.rb:309:in `block in run'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest.rb:348:in `on_signal'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest.rb:335:in `with_info_handler'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest.rb:308:in `run'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest.rb:158:in `block in __run'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest.rb:158:in `map'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest.rb:158:in `__run'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest.rb:135:in `run'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest.rb:62:in `block in autorun'"] Redirected to http://api-sandbox.maestrano.io/app_access_unauthorized?err=internal Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should reset the maestrano session successfully if one already exists. --------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction --------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should set a saml_request in scope. ---------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction -------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should set the group_auth_hash in scope. --------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should set the maestrano session. -------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.1ms) rollback transaction ------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should set the user_auth_hash in scope. -------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.1ms) rollback transaction ------------------------------------------------------------------------------------------ SamlBaseControllerTest: test_: consume phase should set the user_group_rel_hash in scope. ------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.1ms) rollback transaction --------------------------------------------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: init phase should create a saml request successfully if a maestrano session is already set. ---------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#init as HTML Parameters: {"a_param"=>"value"} Redirected to http://idpprovider.com?r=request Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ----------------------------------------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: init phase should create a saml request using params and session and redirect the user. -----------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#init as HTML Parameters: {"a_param"=>"value"} Redirected to http://idpprovider.com?r=request Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------- MetadataControllerTest: test_: authenticated should be successful. -------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Rails::MetadataController#index as HTML Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------- MetadataControllerTest: test_: unauthenticated should deny access. -------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Rails::MetadataController#index as HTML Filter chain halted as :authenticate_maestrano! rendered or redirected Completed 401 Unauthorized in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: namespaced model should create the right migration. -------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: namespaced model should edit the model content. ---------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should create the right migration. ---------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ----------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should edit the model content. -----------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should include parameters if rails 3 and strong_parameter not present. ---------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction --------------------------------------------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should not include parameters if rails 3 and strong_parameter present. ---------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should not include parameters in rails 4. ----------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------ MaestranoRailsTest: test_truth ------------------------------  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------ ActiveRecordUserGeneratorTest: test_: namespaced model should create the right migration. ------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: namespaced model should edit the model content. --------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should create the right migration. --------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should edit the model content. ----------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should include parameters if rails 3 and strong_parameter not present. --------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should not include parameters if rails 3 and strong_parameter present. --------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should not include parameters in rails 4. ---------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ------------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: namespaced model should create the right migration. -------------------------------------------------------------------------------------------  (0.2ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: namespaced model should edit the model content. ---------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should create the right migration. ---------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ----------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should edit the model content. -----------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should include parameters if rails 3 and strong_parameter not present. ---------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should not include parameters if rails 3 and strong_parameter present. ---------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should not include parameters in rails 4. ----------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction ---------------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase error should redirect to maestrano on any error. ----------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Cannot validate SAML response: Bla Trace: ["/home/bruno/.rvm/gems/ruby-2.1.3/gems/mocha-1.1.0/lib/mocha/exception_raiser.rb:12:in `evaluate'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/mocha-1.1.0/lib/mocha/return_values.rb:20:in `next'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/mocha-1.1.0/lib/mocha/expectation.rb:569:in `invoke'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/mocha-1.1.0/lib/mocha/mock.rb:296:in `method_missing'", "/home/bruno/Workspace/maestrano-rails/app/controllers/maestrano/rails/saml_base_controller.rb:35:in `process_saml_response'", "/home/bruno/Workspace/maestrano-rails/app/controllers/maestrano/rails/saml_base_controller.rb:18:in `saml_response_transaction'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:432:in `block in make_lambda'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:291:in `call'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:291:in `block in halting_and_conditional'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:497:in `call'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:497:in `block in around'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:505:in `call'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:505:in `call'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:92:in `__run_callbacks__'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:778:in `_run_process_action_callbacks'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:81:in `run_callbacks'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/actionpack-4.2.7.1/lib/abstract_controller/callbacks.rb:19:in `process_action'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/actionpack-4.2.7.1/lib/action_controller/metal/rescue.rb:29:in `process_action'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/actionpack-4.2.7.1/lib/action_controller/metal/instrumentation.rb:32:in `block in process_action'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/activesupport-4.2.7.1/lib/active_support/notifications.rb:164:in `block in instrument'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/activesupport-4.2.7.1/lib/active_support/notifications/instrumenter.rb:20:in `instrument'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/activesupport-4.2.7.1/lib/active_support/notifications.rb:164:in `instrument'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/actionpack-4.2.7.1/lib/action_controller/metal/instrumentation.rb:30:in `process_action'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/actionpack-4.2.7.1/lib/action_controller/metal/params_wrapper.rb:250:in `process_action'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/activerecord-4.2.7.1/lib/active_record/railties/controller_runtime.rb:18:in `process_action'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/actionpack-4.2.7.1/lib/abstract_controller/base.rb:137:in `process'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/actionview-4.2.7.1/lib/action_view/rendering.rb:30:in `process'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/actionpack-4.2.7.1/lib/action_controller/test_case.rb:639:in `process'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/actionpack-4.2.7.1/lib/action_controller/test_case.rb:67:in `process'", "/home/bruno/.rvm/gems/ruby-2.1.3/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 '", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/shoulda-context-1.2.1/lib/shoulda/context/context.rb:413:in `instance_exec'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/shoulda-context-1.2.1/lib/shoulda/context/context.rb:413:in `block in create_test_from_should_hash'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest/test.rb:107:in `block (3 levels) in run'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest/test.rb:204:in `capture_exceptions'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest/test.rb:104:in `block (2 levels) in run'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest/test.rb:255:in `time_it'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest/test.rb:103:in `block in run'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest.rb:348:in `on_signal'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest/test.rb:275:in `with_info_handler'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest/test.rb:102:in `run'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest.rb:799:in `run_one_method'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest.rb:322:in `run_one_method'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest.rb:310:in `block (2 levels) in run'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest.rb:309:in `each'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest.rb:309:in `block in run'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest.rb:348:in `on_signal'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest.rb:335:in `with_info_handler'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest.rb:308:in `run'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest.rb:158:in `block in __run'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest.rb:158:in `map'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest.rb:158:in `__run'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest.rb:135:in `run'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest.rb:62:in `block in autorun'"] Redirected to http://api-sandbox.maestrano.io/app_access_unauthorized?err=internal Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.1ms) rollback transaction -------------------------------------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should reset the maestrano session successfully if one already exists. --------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.1ms) rollback transaction --------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should set a saml_request in scope. ---------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.0ms)  (0.1ms) rollback transaction -------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should set the group_auth_hash in scope. --------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should set the maestrano session. -------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should set the user_auth_hash in scope. -------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------ SamlBaseControllerTest: test_: consume phase should set the user_group_rel_hash in scope. ------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: init phase should create a saml request successfully if a maestrano session is already set. ---------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#init as HTML Parameters: {"a_param"=>"value"} Redirected to http://idpprovider.com?r=request Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ----------------------------------------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: init phase should create a saml request using params and session and redirect the user. -----------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#init as HTML Parameters: {"a_param"=>"value"} Redirected to http://idpprovider.com?r=request Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------- MetadataControllerTest: test_: authenticated should be successful. -------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Rails::MetadataController#index as HTML Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction ------------------------------------------------------------------- MetadataControllerTest: test_: unauthenticated should deny access. -------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Rails::MetadataController#index as HTML Filter chain halted as :authenticate_maestrano! rendered or redirected Completed 401 Unauthorized in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------ MaestranoRailsTest: test_truth ------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------ ActiveRecordUserGeneratorTest: test_: namespaced model should create the right migration. ------------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction -------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: namespaced model should edit the model content. --------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should create the right migration. --------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should edit the model content. ----------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should include parameters if rails 3 and strong_parameter not present. --------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should not include parameters if rails 3 and strong_parameter present. --------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should not include parameters in rails 4. ---------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------------------------------------------------- MaestranoGroupViaTest: test_: class methods find_or_create_for_maestrano class method should create a monster using the mapping block. ---------------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction MnoCrew Load (0.2ms) SELECT "mno_crews".* FROM "mno_crews" WHERE "mno_crews"."provider" = ? AND "mno_crews"."uid" = ? AND "mno_crews"."tenant" = ? ORDER BY "mno_crews"."id" ASC LIMIT 1 [["provider", "maestrano"], ["uid", "usr-2"], ["tenant", "default"]]  (0.1ms) SAVEPOINT active_record_1 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-08-31 04:36:25.426701"], ["updated_at", "2016-08-31 04:36:25.426701"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction ------------------------------------------------------------------------------------------------------------------------------------------------------ MaestranoGroupViaTest: test_: class methods find_or_create_for_maestrano class method should not return a MnoCrew from another provider if it exists. ------------------------------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 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-08-31 04:36:25.429063"], ["updated_at", "2016-08-31 04:36:25.429063"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.0ms) SAVEPOINT active_record_1 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-08-31 04:36:25.430554"], ["updated_at", "2016-08-31 04:36:25.430554"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction ------------------------------------------------------------------------------------------------------------------------------ MaestranoGroupViaTest: test_: class methods find_or_create_for_maestrano class method should return the MnoCrew if it exists. ------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 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-08-31 04:36:25.432123"], ["updated_at", "2016-08-31 04:36:25.432123"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.1ms) rollback transaction ---------------------------------------------------------------------------------------------------- MaestranoGroupViaTest: test_: class methods maestrano_*_via should have the right field definition. ----------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------------------------- MaestranoGroupViaTest: test_: instance methods maestrano? should return false if provider is something else. -------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ----------------------------------------------------------------------------------------------- MaestranoGroupViaTest: test_: instance methods maestrano? should return false if uid is blank. -----------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------------------------------------ MaestranoGroupViaTest: test_: instance methods maestrano? should return true if provider is maestrano and uid not null. ------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------------------- GroupGeneratorTest: test_: GroupGenerator should call the active_record migration generator successfully. ----------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------------- GroupGeneratorTest: test_: GroupGenerator should call the mongoid migration generator successfully. ----------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction -------------------------------------------------------------------------------------------------------- UserGeneratorTest: test_: UserGenerator should call the active_record migration generator successfully. --------------------------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------- UserGeneratorTest: test_: UserGenerator should call the mongoid migration generator successfully. --------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------- GroupUsersControllerTest: test_: authenticated should be successful. ---------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Account::GroupUsersController#destroy as HTML Parameters: {"group_id"=>"cld-1", "id"=>"usr-1"} Rendered text template (0.0ms) Completed 200 OK in 6ms (Views: 5.5ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction --------------------------------------------------------------------- GroupUsersControllerTest: test_: unauthenticated should deny access. ---------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Account::GroupUsersController#destroy as HTML Parameters: {"group_id"=>"cld-1", "id"=>"usr-1"} Filter chain halted as :authenticate_maestrano! rendered or redirected Completed 401 Unauthorized in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction --------------------------------------------------------------------------------------- InstallGeneratorTest: test_: InstallGenerator should create the maestrano initializer. ---------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction ---------------------------------------------------------------------------------- InstallGeneratorTest: test_: InstallGenerator should create the maestrano routes. ----------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------------------- InstallGeneratorTest: test_: InstallGenerator should create the maestrano/account/group_users_controller. ----------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ----------------------------------------------------------------------------------------------------- InstallGeneratorTest: test_: InstallGenerator should create the maestrano/account/groups_controller. -----------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------------ InstallGeneratorTest: test_: InstallGenerator should create the maestrano/auth/saml_controller. ------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ----------------------------------------------------------------- GroupsControllerTest: test_: authenticated should be successful. -----------------------------------------------------------------  (0.4ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction Processing by Maestrano::Account::GroupsController#destroy as HTML Parameters: {"id"=>"cld-1"} Rendered text template (0.0ms) Completed 200 OK in 3ms (Views: 2.3ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ----------------------------------------------------------------- GroupsControllerTest: test_: unauthenticated should deny access. -----------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Account::GroupsController#destroy as HTML Parameters: {"id"=>"cld-1"} Filter chain halted as :authenticate_maestrano! rendered or redirected Completed 401 Unauthorized in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: class methods find_or_create_for_maestrano class method should create a monster using the mapping block. --------------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "mno_monsters" ("first_name", "last_name", "email", "provider", "uid", "tenant", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["first_name", "Mon"], ["last_name", "Ster"], ["email", "monster@monst.com"], ["provider", "maestrano"], ["uid", "usr-2"], ["tenant", "default"], ["created_at", "2016-08-31 04:36:25.527693"], ["updated_at", "2016-08-31 04:36:25.527693"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: class methods find_or_create_for_maestrano class method should not return a MnoMonster from another provider if it exists. --------------------------------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 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-08-31 04:36:25.529635"], ["updated_at", "2016-08-31 04:36:25.529635"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.0ms) SAVEPOINT active_record_1 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-08-31 04:36:25.531135"], ["updated_at", "2016-08-31 04:36:25.531135"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: class methods find_or_create_for_maestrano class method should return the MnoMonster if it exists. --------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 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-08-31 04:36:25.532799"], ["updated_at", "2016-08-31 04:36:25.532799"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.1ms) rollback transaction --------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: class methods maestrano_*_via should have the right field definition. ---------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------------------------ MaestranoUserViaTest: test_: instance methods maestrano? should return false if provider is something else. ------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: instance methods maestrano? should return false if uid is blank. ----------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ----------------------------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: instance methods maestrano? should return true if provider is maestrano and uid not null. -----------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------------------------------- GenericControllerTest: test_: with a maestrano session should be successful if the maestrano session is still valid. ---------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by PagesController#home as HTML Rendered pages/home.html.erb within layouts/application (1.1ms) Completed 200 OK in 154ms (Views: 153.6ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction -------------------------------------------------------------------------------------------------------------------- GenericControllerTest: test_: with a maestrano session should initialize redirect to SSO initialization if invalid. --------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by PagesController#home as HTML Redirected to http://localhost::3000/maestrano/auth/saml/init Filter chain halted as :verify_maestrano_session rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ----------------------------------------------------------------------------------------------------------- GenericControllerTest: test_: with a maestrano session should not redirect to SSO init if sso is disabled. -----------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by PagesController#home as HTML Rendered pages/home.html.erb within layouts/application (0.0ms) Completed 200 OK in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------------------ GenericControllerTest: test_: with no maestrano session should be successful. ------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by PagesController#home as HTML Rendered pages/home.html.erb within layouts/application (0.0ms) Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ------------------------------------------------------------------------------------------ ActiveRecordUserGeneratorTest: test_: namespaced model should create the right migration. ------------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: namespaced model should edit the model content. --------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction -------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should create the right migration. --------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction ---------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should edit the model content. ----------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should include parameters if rails 3 and strong_parameter not present. --------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should not include parameters if rails 3 and strong_parameter present. --------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction --------------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should not include parameters in rails 4. ---------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction ------------------------------------------------------------------- MetadataControllerTest: test_: authenticated should be successful. -------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Rails::MetadataController#index as HTML Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------- MetadataControllerTest: test_: unauthenticated should deny access. -------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Rails::MetadataController#index as HTML Filter chain halted as :authenticate_maestrano! rendered or redirected Completed 401 Unauthorized in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase error should redirect to maestrano on any error. ----------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Cannot validate SAML response: Bla Trace: ["/home/bruno/.rvm/gems/ruby-2.1.3/gems/mocha-1.1.0/lib/mocha/exception_raiser.rb:12:in `evaluate'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/mocha-1.1.0/lib/mocha/return_values.rb:20:in `next'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/mocha-1.1.0/lib/mocha/expectation.rb:569:in `invoke'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/mocha-1.1.0/lib/mocha/mock.rb:296:in `method_missing'", "/home/bruno/Workspace/maestrano-rails/app/controllers/maestrano/rails/saml_base_controller.rb:35:in `process_saml_response'", "/home/bruno/Workspace/maestrano-rails/app/controllers/maestrano/rails/saml_base_controller.rb:18:in `saml_response_transaction'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:432:in `block in make_lambda'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:291:in `call'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:291:in `block in halting_and_conditional'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:497:in `call'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:497:in `block in around'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:505:in `call'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:505:in `call'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:92:in `__run_callbacks__'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:778:in `_run_process_action_callbacks'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:81:in `run_callbacks'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/actionpack-4.2.7.1/lib/abstract_controller/callbacks.rb:19:in `process_action'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/actionpack-4.2.7.1/lib/action_controller/metal/rescue.rb:29:in `process_action'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/actionpack-4.2.7.1/lib/action_controller/metal/instrumentation.rb:32:in `block in process_action'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/activesupport-4.2.7.1/lib/active_support/notifications.rb:164:in `block in instrument'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/activesupport-4.2.7.1/lib/active_support/notifications/instrumenter.rb:20:in `instrument'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/activesupport-4.2.7.1/lib/active_support/notifications.rb:164:in `instrument'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/actionpack-4.2.7.1/lib/action_controller/metal/instrumentation.rb:30:in `process_action'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/actionpack-4.2.7.1/lib/action_controller/metal/params_wrapper.rb:250:in `process_action'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/activerecord-4.2.7.1/lib/active_record/railties/controller_runtime.rb:18:in `process_action'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/actionpack-4.2.7.1/lib/abstract_controller/base.rb:137:in `process'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/actionview-4.2.7.1/lib/action_view/rendering.rb:30:in `process'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/actionpack-4.2.7.1/lib/action_controller/test_case.rb:639:in `process'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/actionpack-4.2.7.1/lib/action_controller/test_case.rb:67:in `process'", "/home/bruno/.rvm/gems/ruby-2.1.3/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 '", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/shoulda-context-1.2.1/lib/shoulda/context/context.rb:413:in `instance_exec'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/shoulda-context-1.2.1/lib/shoulda/context/context.rb:413:in `block in create_test_from_should_hash'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest/test.rb:107:in `block (3 levels) in run'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest/test.rb:204:in `capture_exceptions'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest/test.rb:104:in `block (2 levels) in run'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest/test.rb:255:in `time_it'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest/test.rb:103:in `block in run'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest.rb:348:in `on_signal'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest/test.rb:275:in `with_info_handler'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest/test.rb:102:in `run'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest.rb:799:in `run_one_method'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest.rb:322:in `run_one_method'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest.rb:310:in `block (2 levels) in run'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest.rb:309:in `each'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest.rb:309:in `block in run'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest.rb:348:in `on_signal'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest.rb:335:in `with_info_handler'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest.rb:308:in `run'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest.rb:158:in `block in __run'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest.rb:158:in `map'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest.rb:158:in `__run'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest.rb:135:in `run'", "/home/bruno/.rvm/gems/ruby-2.1.3/gems/minitest-5.9.0/lib/minitest.rb:62:in `block in autorun'"] Redirected to http://api-sandbox.maestrano.io/app_access_unauthorized?err=internal Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should reset the maestrano session successfully if one already exists. --------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction --------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should set a saml_request in scope. ---------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction -------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should set the group_auth_hash in scope. --------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.1ms) rollback transaction ------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should set the maestrano session. -------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should set the user_auth_hash in scope. -------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.1ms) rollback transaction ------------------------------------------------------------------------------------------ SamlBaseControllerTest: test_: consume phase should set the user_group_rel_hash in scope. ------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: init phase should create a saml request successfully if a maestrano session is already set. ---------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#init as HTML Parameters: {"a_param"=>"value"} Redirected to http://idpprovider.com?r=request Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ----------------------------------------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: init phase should create a saml request using params and session and redirect the user. -----------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#init as HTML Parameters: {"a_param"=>"value"} Redirected to http://idpprovider.com?r=request Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) rollback transaction ----------------------------------------------------------------- GroupsControllerTest: test_: authenticated should be successful. -----------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Account::GroupsController#destroy as HTML Parameters: {"id"=>"cld-1"} Rendered text template (0.0ms) Completed 200 OK in 5ms (Views: 4.8ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ----------------------------------------------------------------- GroupsControllerTest: test_: unauthenticated should deny access. -----------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Account::GroupsController#destroy as HTML Parameters: {"id"=>"cld-1"} Filter chain halted as :authenticate_maestrano! rendered or redirected Completed 401 Unauthorized in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------------------------------- GenericControllerTest: test_: with a maestrano session should be successful if the maestrano session is still valid. ---------------------------------------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by PagesController#home as HTML Rendered pages/home.html.erb within layouts/application (0.8ms) Completed 200 OK in 155ms (Views: 154.5ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction -------------------------------------------------------------------------------------------------------------------- GenericControllerTest: test_: with a maestrano session should initialize redirect to SSO initialization if invalid. --------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by PagesController#home as HTML Rendered pages/home.html.erb within layouts/application (0.0ms) Completed 200 OK in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ----------------------------------------------------------------------------------------------------------- GenericControllerTest: test_: with a maestrano session should not redirect to SSO init if sso is disabled. -----------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by PagesController#home as HTML Rendered pages/home.html.erb within layouts/application (0.0ms) Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------------------ GenericControllerTest: test_: with no maestrano session should be successful. ------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by PagesController#home as HTML Rendered pages/home.html.erb within layouts/application (0.0ms) Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: class methods find_or_create_for_maestrano class method should create a monster using the mapping block. --------------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction MnoMonster Load (0.4ms) 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"]]  (0.1ms) SAVEPOINT active_record_1 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-08-31 05:33:29.727328"], ["updated_at", "2016-08-31 05:33:29.727328"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: class methods find_or_create_for_maestrano class method should not return a MnoMonster from another provider if it exists. --------------------------------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 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-08-31 05:33:29.729997"], ["updated_at", "2016-08-31 05:33:29.729997"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.0ms) SAVEPOINT active_record_1 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-08-31 05:33:29.731849"], ["updated_at", "2016-08-31 05:33:29.731849"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: class methods find_or_create_for_maestrano class method should return the MnoMonster if it exists. --------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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-08-31 05:33:29.734130"], ["updated_at", "2016-08-31 05:33:29.734130"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.2ms) rollback transaction --------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: class methods maestrano_*_via should have the right field definition. ---------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------------------------ MaestranoUserViaTest: test_: instance methods maestrano? should return false if provider is something else. ------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: instance methods maestrano? should return false if uid is blank. ----------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ----------------------------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: instance methods maestrano? should return true if provider is maestrano and uid not null. -----------------------------------------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: namespaced model should create the right migration. -------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction --------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: namespaced model should edit the model content. ---------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should create the right migration. ---------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ----------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should edit the model content. -----------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should include parameters if rails 3 and strong_parameter not present. ---------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction --------------------------------------------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should not include parameters if rails 3 and strong_parameter present. ---------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should not include parameters in rails 4. ----------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction --------------------------------------------------------------------------------------------------------------------------------------- MaestranoGroupViaTest: test_: class methods find_or_create_for_maestrano class method should create a monster using the mapping block. ---------------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction 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"]]  (0.1ms) SAVEPOINT active_record_1 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-08-31 05:33:29.774023"], ["updated_at", "2016-08-31 05:33:29.774023"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction ------------------------------------------------------------------------------------------------------------------------------------------------------ MaestranoGroupViaTest: test_: class methods find_or_create_for_maestrano class method should not return a MnoCrew from another provider if it exists. ------------------------------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 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-08-31 05:33:29.776257"], ["updated_at", "2016-08-31 05:33:29.776257"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.0ms) SAVEPOINT active_record_1 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-08-31 05:33:29.778008"], ["updated_at", "2016-08-31 05:33:29.778008"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction ------------------------------------------------------------------------------------------------------------------------------ MaestranoGroupViaTest: test_: class methods find_or_create_for_maestrano class method should return the MnoCrew if it exists. ------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 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-08-31 05:33:29.779859"], ["updated_at", "2016-08-31 05:33:29.779859"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.1ms) rollback transaction ---------------------------------------------------------------------------------------------------- MaestranoGroupViaTest: test_: class methods maestrano_*_via should have the right field definition. ----------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------------------------- MaestranoGroupViaTest: test_: instance methods maestrano? should return false if provider is something else. -------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ----------------------------------------------------------------------------------------------- MaestranoGroupViaTest: test_: instance methods maestrano? should return false if uid is blank. -----------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------------------------------------ MaestranoGroupViaTest: test_: instance methods maestrano? should return true if provider is maestrano and uid not null. ------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------- InstallGeneratorTest: test_: InstallGenerator should create the maestrano initializer. ---------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------- InstallGeneratorTest: test_: InstallGenerator should create the maestrano routes. ----------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction ---------------------------------------------------------------------------------------------------------- InstallGeneratorTest: test_: InstallGenerator should create the maestrano/account/group_users_controller. ----------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction ----------------------------------------------------------------------------------------------------- InstallGeneratorTest: test_: InstallGenerator should create the maestrano/account/groups_controller. -----------------------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction ------------------------------------------------------------------------------------------------ InstallGeneratorTest: test_: InstallGenerator should create the maestrano/auth/saml_controller. ------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------- GroupUsersControllerTest: test_: authenticated should be successful. ---------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Account::GroupUsersController#destroy as HTML Parameters: {"group_id"=>"cld-1", "id"=>"usr-1"} Rendered text template (0.0ms) Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction --------------------------------------------------------------------- GroupUsersControllerTest: test_: unauthenticated should deny access. ---------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Account::GroupUsersController#destroy as HTML Parameters: {"group_id"=>"cld-1", "id"=>"usr-1"} Filter chain halted as :authenticate_maestrano! rendered or redirected Completed 401 Unauthorized in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------ MaestranoRailsTest: test_truth ------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------------- UserGeneratorTest: test_: UserGenerator should call the active_record migration generator successfully. --------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction -------------------------------------------------------------------------------------------------- UserGeneratorTest: test_: UserGenerator should call the mongoid migration generator successfully. --------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction ---------------------------------------------------------------------------------------------------------- GroupGeneratorTest: test_: GroupGenerator should call the active_record migration generator successfully. ----------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction ---------------------------------------------------------------------------------------------------- GroupGeneratorTest: test_: GroupGenerator should call the mongoid migration generator successfully. ----------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ----------------------------------------------------------------- GroupsControllerTest: test_: authenticated should be successful. -----------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Account::GroupsController#destroy as HTML Parameters: {"id"=>"cld-1"} Rendered text template (0.0ms) Completed 200 OK in 5ms (Views: 4.9ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction ----------------------------------------------------------------- GroupsControllerTest: test_: unauthenticated should deny access. -----------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Account::GroupsController#destroy as HTML Parameters: {"id"=>"cld-1"} Filter chain halted as :authenticate_maestrano! rendered or redirected Completed 401 Unauthorized in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------------- UserGeneratorTest: test_: UserGenerator should call the active_record migration generator successfully. --------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction -------------------------------------------------------------------------------------------------- UserGeneratorTest: test_: UserGenerator should call the mongoid migration generator successfully. --------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction ------------------------------------------------------------------------------------------ ActiveRecordUserGeneratorTest: test_: namespaced model should create the right migration. ------------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: namespaced model should edit the model content. --------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction -------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should create the right migration. --------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction ---------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should edit the model content. ----------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.4ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should include parameters if rails 3 and strong_parameter not present. --------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should not include parameters if rails 3 and strong_parameter present. --------------------------------------------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction --------------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should not include parameters in rails 4. ---------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction --------------------------------------------------------------------------------------------------------------------- GenericControllerTest: test_: with a maestrano session should be successful if the maestrano session is still valid. ---------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.4ms) begin transaction Processing by PagesController#home as HTML Rendered pages/home.html.erb within layouts/application (1.2ms) Completed 200 OK in 130ms (Views: 130.2ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction -------------------------------------------------------------------------------------------------------------------- GenericControllerTest: test_: with a maestrano session should initialize redirect to SSO initialization if invalid. --------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by PagesController#home as HTML Rendered pages/home.html.erb within layouts/application (0.0ms) Completed 200 OK in 1ms (Views: 0.9ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ----------------------------------------------------------------------------------------------------------- GenericControllerTest: test_: with a maestrano session should not redirect to SSO init if sso is disabled. -----------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by PagesController#home as HTML Rendered pages/home.html.erb within layouts/application (0.0ms) Completed 200 OK in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------------------ GenericControllerTest: test_: with no maestrano session should be successful. ------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by PagesController#home as HTML Rendered pages/home.html.erb within layouts/application (0.0ms) Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------------------------------------------------- MaestranoGroupViaTest: test_: class methods find_or_create_for_maestrano class method should create a monster using the mapping block. ---------------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction MnoCrew Load (0.4ms) 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "mno_crews" ("name", "provider", "uid", "tenant", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["name", "Monster Co"], ["provider", "maestrano"], ["uid", "usr-2"], ["tenant", "default"], ["created_at", "2016-09-01 05:00:33.240688"], ["updated_at", "2016-09-01 05:00:33.240688"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction ------------------------------------------------------------------------------------------------------------------------------------------------------ MaestranoGroupViaTest: test_: class methods find_or_create_for_maestrano class method should not return a MnoCrew from another provider if it exists. ------------------------------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "mno_crews" ("name", "provider", "uid", "tenant", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["name", "SomeOtherCrew"], ["provider", "someoneelse"], ["uid", "usr-1"], ["tenant", "default"], ["created_at", "2016-09-01 05:00:33.242612"], ["updated_at", "2016-09-01 05:00:33.242612"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "mno_crews" ("name", "provider", "uid", "tenant", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["name", "Your Group"], ["provider", "maestrano"], ["uid", "cld-1"], ["tenant", "default"], ["created_at", "2016-09-01 05:00:33.243882"], ["updated_at", "2016-09-01 05:00:33.243882"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction ------------------------------------------------------------------------------------------------------------------------------ MaestranoGroupViaTest: test_: class methods find_or_create_for_maestrano class method should return the MnoCrew if it exists. ------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "mno_crews" ("name", "provider", "uid", "tenant", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["name", "SomeCrew"], ["provider", "maestrano"], ["uid", "cld-1"], ["tenant", "default"], ["created_at", "2016-09-01 05:00:33.245221"], ["updated_at", "2016-09-01 05:00:33.245221"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.1ms) rollback transaction ---------------------------------------------------------------------------------------------------- MaestranoGroupViaTest: test_: class methods maestrano_*_via should have the right field definition. ----------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------------------------- MaestranoGroupViaTest: test_: instance methods maestrano? should return false if provider is something else. -------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ----------------------------------------------------------------------------------------------- MaestranoGroupViaTest: test_: instance methods maestrano? should return false if uid is blank. -----------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------------------------------------ MaestranoGroupViaTest: test_: instance methods maestrano? should return true if provider is maestrano and uid not null. ------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------- InstallGeneratorTest: test_: InstallGenerator should create the maestrano initializer. ---------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction ---------------------------------------------------------------------------------- InstallGeneratorTest: test_: InstallGenerator should create the maestrano routes. ----------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------------------- InstallGeneratorTest: test_: InstallGenerator should create the maestrano/account/group_users_controller. ----------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ----------------------------------------------------------------------------------------------------- InstallGeneratorTest: test_: InstallGenerator should create the maestrano/account/groups_controller. -----------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------------ InstallGeneratorTest: test_: InstallGenerator should create the maestrano/auth/saml_controller. ------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase error should redirect to maestrano on any error. ----------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Cannot validate SAML response: Bla Trace: ["/home/bruno/.rvm/gems/ruby-2.3.1/gems/mocha-1.1.0/lib/mocha/exception_raiser.rb:12:in `evaluate'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/mocha-1.1.0/lib/mocha/return_values.rb:20:in `next'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/mocha-1.1.0/lib/mocha/expectation.rb:569:in `invoke'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/mocha-1.1.0/lib/mocha/mock.rb:296:in `method_missing'", "/home/bruno/Workspace/maestrano-rails/app/controllers/maestrano/rails/saml_base_controller.rb:35:in `process_saml_response'", "/home/bruno/Workspace/maestrano-rails/app/controllers/maestrano/rails/saml_base_controller.rb:18:in `saml_response_transaction'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:432:in `block in make_lambda'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:291:in `block in halting_and_conditional'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:497:in `block in around'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:505:in `call'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:92:in `__run_callbacks__'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:778:in `_run_process_action_callbacks'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:81:in `run_callbacks'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionpack-4.2.7.1/lib/abstract_controller/callbacks.rb:19:in `process_action'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionpack-4.2.7.1/lib/action_controller/metal/rescue.rb:29:in `process_action'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionpack-4.2.7.1/lib/action_controller/metal/instrumentation.rb:32:in `block in process_action'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-4.2.7.1/lib/active_support/notifications.rb:164:in `block in instrument'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-4.2.7.1/lib/active_support/notifications/instrumenter.rb:20:in `instrument'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-4.2.7.1/lib/active_support/notifications.rb:164:in `instrument'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionpack-4.2.7.1/lib/action_controller/metal/instrumentation.rb:30:in `process_action'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionpack-4.2.7.1/lib/action_controller/metal/params_wrapper.rb:250:in `process_action'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activerecord-4.2.7.1/lib/active_record/railties/controller_runtime.rb:18:in `process_action'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionpack-4.2.7.1/lib/abstract_controller/base.rb:137:in `process'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionview-4.2.7.1/lib/action_view/rendering.rb:30:in `process'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionpack-4.2.7.1/lib/action_controller/test_case.rb:639:in `process'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionpack-4.2.7.1/lib/action_controller/test_case.rb:67:in `process'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionpack-4.2.7.1/lib/action_controller/test_case.rb:520:in `post'", "/home/bruno/Workspace/maestrano-rails/test/controllers/saml_controller_test.rb:117:in `block (3 levels) in '", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/shoulda-context-1.2.1/lib/shoulda/context/context.rb:413:in `instance_exec'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/shoulda-context-1.2.1/lib/shoulda/context/context.rb:413:in `block in create_test_from_should_hash'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest/test.rb:107:in `block (3 levels) in run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest/test.rb:204:in `capture_exceptions'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest/test.rb:104:in `block (2 levels) in run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest/test.rb:255:in `time_it'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest/test.rb:103:in `block in run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:348:in `on_signal'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest/test.rb:275:in `with_info_handler'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest/test.rb:102:in `run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:799:in `run_one_method'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:322:in `run_one_method'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:310:in `block (2 levels) in run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:309:in `each'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:309:in `block in run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:348:in `on_signal'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:335:in `with_info_handler'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:308:in `run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:158:in `block in __run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:158:in `map'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:158:in `__run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:135:in `run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:62:in `block in autorun'"] Redirected to http://api-sandbox.maestrano.io/app_access_unauthorized?err=internal Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should reset the maestrano session successfully if one already exists. --------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction --------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should set a saml_request in scope. ---------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction -------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should set the group_auth_hash in scope. --------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should set the maestrano session. -------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should set the user_auth_hash in scope. -------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.1ms) rollback transaction ------------------------------------------------------------------------------------------ SamlBaseControllerTest: test_: consume phase should set the user_group_rel_hash in scope. ------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.1ms) rollback transaction --------------------------------------------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: init phase should create a saml request successfully if a maestrano session is already set. ---------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#init as HTML Parameters: {"a_param"=>"value"} Redirected to http://idpprovider.com?r=request Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) rollback transaction ----------------------------------------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: init phase should create a saml request using params and session and redirect the user. -----------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#init as HTML Parameters: {"a_param"=>"value"} Redirected to http://idpprovider.com?r=request Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------- MetadataControllerTest: test_: authenticated should be successful. -------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Rails::MetadataController#index as HTML Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------- MetadataControllerTest: test_: unauthenticated should deny access. -------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Rails::MetadataController#index as HTML Filter chain halted as :authenticate_maestrano! rendered or redirected Completed 401 Unauthorized in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: class methods find_or_create_for_maestrano class method should create a monster using the mapping block. --------------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "mno_monsters" ("first_name", "last_name", "email", "provider", "uid", "tenant", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["first_name", "Mon"], ["last_name", "Ster"], ["email", "monster@monst.com"], ["provider", "maestrano"], ["uid", "usr-2"], ["tenant", "default"], ["created_at", "2016-09-01 05:00:33.304154"], ["updated_at", "2016-09-01 05:00:33.304154"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: class methods find_or_create_for_maestrano class method should not return a MnoMonster from another provider if it exists. --------------------------------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "mno_monsters" ("first_name", "last_name", "email", "provider", "uid", "tenant", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["first_name", "John"], ["last_name", "Jack"], ["email", "monster@co.com"], ["provider", "someoneelse"], ["uid", "usr-1"], ["tenant", "default"], ["created_at", "2016-09-01 05:00:33.306022"], ["updated_at", "2016-09-01 05:00:33.306022"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "mno_monsters" ("provider", "uid", "tenant", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["provider", "maestrano"], ["uid", "usr-1"], ["tenant", "default"], ["created_at", "2016-09-01 05:00:33.307343"], ["updated_at", "2016-09-01 05:00:33.307343"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: class methods find_or_create_for_maestrano class method should return the MnoMonster if it exists. --------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "mno_monsters" ("first_name", "last_name", "email", "provider", "uid", "tenant", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["first_name", "John"], ["last_name", "Jack"], ["email", "monster@co.com"], ["provider", "maestrano"], ["uid", "usr-1"], ["tenant", "default"], ["created_at", "2016-09-01 05:00:33.308913"], ["updated_at", "2016-09-01 05:00:33.308913"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.1ms) rollback transaction --------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: class methods maestrano_*_via should have the right field definition. ---------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------------------------ MaestranoUserViaTest: test_: instance methods maestrano? should return false if provider is something else. ------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: instance methods maestrano? should return false if uid is blank. ----------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ----------------------------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: instance methods maestrano? should return true if provider is maestrano and uid not null. -----------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------ MaestranoRailsTest: test_truth ------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------------------- GroupGeneratorTest: test_: GroupGenerator should call the active_record migration generator successfully. ----------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction ---------------------------------------------------------------------------------------------------- GroupGeneratorTest: test_: GroupGenerator should call the mongoid migration generator successfully. ----------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction ------------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: namespaced model should create the right migration. -------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction --------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: namespaced model should edit the model content. ---------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should create the right migration. ---------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ----------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should edit the model content. -----------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction --------------------------------------------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should include parameters if rails 3 and strong_parameter not present. ---------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction --------------------------------------------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should not include parameters if rails 3 and strong_parameter present. ---------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction ---------------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should not include parameters in rails 4. ----------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction --------------------------------------------------------------------- GroupUsersControllerTest: test_: authenticated should be successful. ---------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Account::GroupUsersController#destroy as HTML Parameters: {"group_id"=>"cld-1", "id"=>"usr-1"} Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.9ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction --------------------------------------------------------------------- GroupUsersControllerTest: test_: unauthenticated should deny access. ---------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Account::GroupUsersController#destroy as HTML Parameters: {"group_id"=>"cld-1", "id"=>"usr-1"} Filter chain halted as :authenticate_maestrano! rendered or redirected Completed 401 Unauthorized in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" --------------------------------------------------------------------------------------- InstallGeneratorTest: test_: InstallGenerator should create the maestrano initializer. ---------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------- InstallGeneratorTest: test_: InstallGenerator should create the maestrano routes. ----------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------------------- InstallGeneratorTest: test_: InstallGenerator should create the maestrano/account/group_users_controller. ----------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ----------------------------------------------------------------------------------------------------- InstallGeneratorTest: test_: InstallGenerator should create the maestrano/account/groups_controller. -----------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction ------------------------------------------------------------------------------------------------ InstallGeneratorTest: test_: InstallGenerator should create the maestrano/auth/saml_controller. ------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------------- UserGeneratorTest: test_: UserGenerator should call the active_record migration generator successfully. --------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction -------------------------------------------------------------------------------------------------- UserGeneratorTest: test_: UserGenerator should call the mongoid migration generator successfully. --------------------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------------------------------------------------- MaestranoGroupViaTest: test_: class methods find_or_create_for_maestrano class method should create a monster using the mapping block. ---------------------------------------------------------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "mno_crews" ("name", "provider", "uid", "tenant", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["name", "Monster Co"], ["provider", "maestrano"], ["uid", "usr-2"], ["tenant", "default"], ["created_at", "2016-09-18 09:17:05.294869"], ["updated_at", "2016-09-18 09:17:05.294869"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction ------------------------------------------------------------------------------------------------------------------------------------------------------ MaestranoGroupViaTest: test_: class methods find_or_create_for_maestrano class method should not return a MnoCrew from another provider if it exists. ------------------------------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "mno_crews" ("name", "provider", "uid", "tenant", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["name", "SomeOtherCrew"], ["provider", "someoneelse"], ["uid", "usr-1"], ["tenant", "default"], ["created_at", "2016-09-18 09:17:05.298260"], ["updated_at", "2016-09-18 09:17:05.298260"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "mno_crews" ("name", "provider", "uid", "tenant", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["name", "Your Group"], ["provider", "maestrano"], ["uid", "cld-1"], ["tenant", "default"], ["created_at", "2016-09-18 09:17:05.299900"], ["updated_at", "2016-09-18 09:17:05.299900"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction ------------------------------------------------------------------------------------------------------------------------------ MaestranoGroupViaTest: test_: class methods find_or_create_for_maestrano class method should return the MnoCrew if it exists. ------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "mno_crews" ("name", "provider", "uid", "tenant", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["name", "SomeCrew"], ["provider", "maestrano"], ["uid", "cld-1"], ["tenant", "default"], ["created_at", "2016-09-18 09:17:05.301487"], ["updated_at", "2016-09-18 09:17:05.301487"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.1ms) rollback transaction ---------------------------------------------------------------------------------------------------- MaestranoGroupViaTest: test_: class methods maestrano_*_via should have the right field definition. ----------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------------------------- MaestranoGroupViaTest: test_: instance methods maestrano? should return false if provider is something else. -------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ----------------------------------------------------------------------------------------------- MaestranoGroupViaTest: test_: instance methods maestrano? should return false if uid is blank. -----------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------------------------------------ MaestranoGroupViaTest: test_: instance methods maestrano? should return true if provider is maestrano and uid not null. ------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------------------- GroupGeneratorTest: test_: GroupGenerator should call the active_record migration generator successfully. ----------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------------- GroupGeneratorTest: test_: GroupGenerator should call the mongoid migration generator successfully. ----------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction ------------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: namespaced model should create the right migration. -------------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: namespaced model should edit the model content. ---------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should create the right migration. ---------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ----------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should edit the model content. -----------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should include parameters if rails 3 and strong_parameter not present. ---------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should not include parameters if rails 3 and strong_parameter present. ---------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should not include parameters in rails 4. ----------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ----------------------------------------------------------------- GroupsControllerTest: test_: authenticated should be successful. -----------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Account::GroupsController#destroy as HTML Parameters: {"id"=>"cld-1"} Rendered text template (0.0ms) Completed 200 OK in 9ms (Views: 8.5ms | ActiveRecord: 0.0ms)  (0.2ms) rollback transaction ----------------------------------------------------------------- GroupsControllerTest: test_: unauthenticated should deny access. -----------------------------------------------------------------  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction Processing by Maestrano::Account::GroupsController#destroy as HTML Parameters: {"id"=>"cld-1"} Filter chain halted as :authenticate_maestrano! rendered or redirected Completed 401 Unauthorized in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------- MetadataControllerTest: test_: authenticated should be successful. -------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Rails::MetadataController#index as HTML Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------- MetadataControllerTest: test_: unauthenticated should deny access. -------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Rails::MetadataController#index as HTML Filter chain halted as :authenticate_maestrano! rendered or redirected Completed 401 Unauthorized in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------ MaestranoRailsTest: test_truth ------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------- GroupUsersControllerTest: test_: authenticated should be successful. ---------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Account::GroupUsersController#destroy as HTML Parameters: {"group_id"=>"cld-1", "id"=>"usr-1"} Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 2.2ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction --------------------------------------------------------------------- GroupUsersControllerTest: test_: unauthenticated should deny access. ---------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Account::GroupUsersController#destroy as HTML Parameters: {"group_id"=>"cld-1", "id"=>"usr-1"} Filter chain halted as :authenticate_maestrano! rendered or redirected Completed 401 Unauthorized in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------ ActiveRecordUserGeneratorTest: test_: namespaced model should create the right migration. ------------------------------------------------------------------------------------------  (8.0ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction -------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: namespaced model should edit the model content. --------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should create the right migration. --------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should edit the model content. ----------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should include parameters if rails 3 and strong_parameter not present. --------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should not include parameters if rails 3 and strong_parameter present. --------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should not include parameters in rails 4. ---------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------------------------------- GenericControllerTest: test_: with a maestrano session should be successful if the maestrano session is still valid. ---------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by PagesController#home as HTML Rendered pages/home.html.erb within layouts/application (1.0ms) Completed 200 OK in 233ms (Views: 233.3ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction -------------------------------------------------------------------------------------------------------------------- GenericControllerTest: test_: with a maestrano session should initialize redirect to SSO initialization if invalid. --------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by PagesController#home as HTML Rendered pages/home.html.erb within layouts/application (0.0ms) Completed 200 OK in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ----------------------------------------------------------------------------------------------------------- GenericControllerTest: test_: with a maestrano session should not redirect to SSO init if sso is disabled. -----------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by PagesController#home as HTML Rendered pages/home.html.erb within layouts/application (0.0ms) Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------------------ GenericControllerTest: test_: with no maestrano session should be successful. ------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by PagesController#home as HTML Rendered pages/home.html.erb within layouts/application (0.0ms) Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase error should redirect to maestrano on any error. ----------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Cannot validate SAML response: Bla Trace: ["/home/bruno/.rvm/gems/ruby-2.1.10/gems/mocha-1.1.0/lib/mocha/exception_raiser.rb:12:in `evaluate'", "/home/bruno/.rvm/gems/ruby-2.1.10/gems/mocha-1.1.0/lib/mocha/return_values.rb:20:in `next'", "/home/bruno/.rvm/gems/ruby-2.1.10/gems/mocha-1.1.0/lib/mocha/expectation.rb:569:in `invoke'", "/home/bruno/.rvm/gems/ruby-2.1.10/gems/mocha-1.1.0/lib/mocha/mock.rb:296:in `method_missing'", "/home/bruno/Workspace/maestrano-rails/app/controllers/maestrano/rails/saml_base_controller.rb:35:in `process_saml_response'", "/home/bruno/Workspace/maestrano-rails/app/controllers/maestrano/rails/saml_base_controller.rb:18:in `saml_response_transaction'", "/home/bruno/.rvm/gems/ruby-2.1.10/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:432:in `block in make_lambda'", "/home/bruno/.rvm/gems/ruby-2.1.10/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:291:in `call'", "/home/bruno/.rvm/gems/ruby-2.1.10/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:291:in `block in halting_and_conditional'", "/home/bruno/.rvm/gems/ruby-2.1.10/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:497:in `call'", "/home/bruno/.rvm/gems/ruby-2.1.10/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:497:in `block in around'", "/home/bruno/.rvm/gems/ruby-2.1.10/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:505:in `call'", "/home/bruno/.rvm/gems/ruby-2.1.10/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:505:in `call'", "/home/bruno/.rvm/gems/ruby-2.1.10/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:92:in `__run_callbacks__'", "/home/bruno/.rvm/gems/ruby-2.1.10/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:778:in `_run_process_action_callbacks'", "/home/bruno/.rvm/gems/ruby-2.1.10/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:81:in `run_callbacks'", "/home/bruno/.rvm/gems/ruby-2.1.10/gems/actionpack-4.2.7.1/lib/abstract_controller/callbacks.rb:19:in `process_action'", "/home/bruno/.rvm/gems/ruby-2.1.10/gems/actionpack-4.2.7.1/lib/action_controller/metal/rescue.rb:29:in `process_action'", "/home/bruno/.rvm/gems/ruby-2.1.10/gems/actionpack-4.2.7.1/lib/action_controller/metal/instrumentation.rb:32:in `block in process_action'", "/home/bruno/.rvm/gems/ruby-2.1.10/gems/activesupport-4.2.7.1/lib/active_support/notifications.rb:164:in `block in instrument'", "/home/bruno/.rvm/gems/ruby-2.1.10/gems/activesupport-4.2.7.1/lib/active_support/notifications/instrumenter.rb:20:in `instrument'", "/home/bruno/.rvm/gems/ruby-2.1.10/gems/activesupport-4.2.7.1/lib/active_support/notifications.rb:164:in `instrument'", "/home/bruno/.rvm/gems/ruby-2.1.10/gems/actionpack-4.2.7.1/lib/action_controller/metal/instrumentation.rb:30:in `process_action'", "/home/bruno/.rvm/gems/ruby-2.1.10/gems/actionpack-4.2.7.1/lib/action_controller/metal/params_wrapper.rb:250:in `process_action'", "/home/bruno/.rvm/gems/ruby-2.1.10/gems/activerecord-4.2.7.1/lib/active_record/railties/controller_runtime.rb:18:in `process_action'", "/home/bruno/.rvm/gems/ruby-2.1.10/gems/actionpack-4.2.7.1/lib/abstract_controller/base.rb:137:in `process'", "/home/bruno/.rvm/gems/ruby-2.1.10/gems/actionview-4.2.7.1/lib/action_view/rendering.rb:30:in `process'", "/home/bruno/.rvm/gems/ruby-2.1.10/gems/actionpack-4.2.7.1/lib/action_controller/test_case.rb:639:in `process'", "/home/bruno/.rvm/gems/ruby-2.1.10/gems/actionpack-4.2.7.1/lib/action_controller/test_case.rb:67:in `process'", "/home/bruno/.rvm/gems/ruby-2.1.10/gems/actionpack-4.2.7.1/lib/action_controller/test_case.rb:520:in `post'", "/home/bruno/Workspace/maestrano-rails/test/controllers/saml_controller_test.rb:117:in `block (3 levels) in '", "/home/bruno/.rvm/gems/ruby-2.1.10/gems/shoulda-context-1.2.1/lib/shoulda/context/context.rb:413:in `instance_exec'", "/home/bruno/.rvm/gems/ruby-2.1.10/gems/shoulda-context-1.2.1/lib/shoulda/context/context.rb:413:in `block in create_test_from_should_hash'", "/home/bruno/.rvm/gems/ruby-2.1.10/gems/minitest-5.9.0/lib/minitest/test.rb:107:in `block (3 levels) in run'", "/home/bruno/.rvm/gems/ruby-2.1.10/gems/minitest-5.9.0/lib/minitest/test.rb:204:in `capture_exceptions'", "/home/bruno/.rvm/gems/ruby-2.1.10/gems/minitest-5.9.0/lib/minitest/test.rb:104:in `block (2 levels) in run'", "/home/bruno/.rvm/gems/ruby-2.1.10/gems/minitest-5.9.0/lib/minitest/test.rb:255:in `time_it'", "/home/bruno/.rvm/gems/ruby-2.1.10/gems/minitest-5.9.0/lib/minitest/test.rb:103:in `block in run'", "/home/bruno/.rvm/gems/ruby-2.1.10/gems/minitest-5.9.0/lib/minitest.rb:348:in `on_signal'", "/home/bruno/.rvm/gems/ruby-2.1.10/gems/minitest-5.9.0/lib/minitest/test.rb:275:in `with_info_handler'", "/home/bruno/.rvm/gems/ruby-2.1.10/gems/minitest-5.9.0/lib/minitest/test.rb:102:in `run'", "/home/bruno/.rvm/gems/ruby-2.1.10/gems/minitest-5.9.0/lib/minitest.rb:799:in `run_one_method'", "/home/bruno/.rvm/gems/ruby-2.1.10/gems/minitest-5.9.0/lib/minitest.rb:322:in `run_one_method'", "/home/bruno/.rvm/gems/ruby-2.1.10/gems/minitest-5.9.0/lib/minitest.rb:310:in `block (2 levels) in run'", "/home/bruno/.rvm/gems/ruby-2.1.10/gems/minitest-5.9.0/lib/minitest.rb:309:in `each'", "/home/bruno/.rvm/gems/ruby-2.1.10/gems/minitest-5.9.0/lib/minitest.rb:309:in `block in run'", "/home/bruno/.rvm/gems/ruby-2.1.10/gems/minitest-5.9.0/lib/minitest.rb:348:in `on_signal'", "/home/bruno/.rvm/gems/ruby-2.1.10/gems/minitest-5.9.0/lib/minitest.rb:335:in `with_info_handler'", "/home/bruno/.rvm/gems/ruby-2.1.10/gems/minitest-5.9.0/lib/minitest.rb:308:in `run'", "/home/bruno/.rvm/gems/ruby-2.1.10/gems/minitest-5.9.0/lib/minitest.rb:158:in `block in __run'", "/home/bruno/.rvm/gems/ruby-2.1.10/gems/minitest-5.9.0/lib/minitest.rb:158:in `map'", "/home/bruno/.rvm/gems/ruby-2.1.10/gems/minitest-5.9.0/lib/minitest.rb:158:in `__run'", "/home/bruno/.rvm/gems/ruby-2.1.10/gems/minitest-5.9.0/lib/minitest.rb:135:in `run'", "/home/bruno/.rvm/gems/ruby-2.1.10/gems/minitest-5.9.0/lib/minitest.rb:62:in `block in autorun'"] Redirected to http://api-sandbox.maestrano.io/app_access_unauthorized?err=internal Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should reset the maestrano session successfully if one already exists. --------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.1ms) rollback transaction --------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should set a saml_request in scope. ---------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.1ms) rollback transaction -------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should set the group_auth_hash in scope. --------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should set the maestrano session. -------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should set the user_auth_hash in scope. -------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------ SamlBaseControllerTest: test_: consume phase should set the user_group_rel_hash in scope. ------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: init phase should create a saml request successfully if a maestrano session is already set. ---------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#init as HTML Parameters: {"a_param"=>"value"} Redirected to http://idpprovider.com?r=request Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) rollback transaction ----------------------------------------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: init phase should create a saml request using params and session and redirect the user. -----------------------------------------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#init as HTML Parameters: {"a_param"=>"value"} Redirected to http://idpprovider.com?r=request Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: class methods find_or_create_for_maestrano class method should create a monster using the mapping block. --------------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "mno_monsters" ("first_name", "last_name", "email", "provider", "uid", "tenant", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["first_name", "Mon"], ["last_name", "Ster"], ["email", "monster@monst.com"], ["provider", "maestrano"], ["uid", "usr-2"], ["tenant", "default"], ["created_at", "2016-09-18 09:17:05.693649"], ["updated_at", "2016-09-18 09:17:05.693649"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: class methods find_or_create_for_maestrano class method should not return a MnoMonster from another provider if it exists. --------------------------------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "mno_monsters" ("first_name", "last_name", "email", "provider", "uid", "tenant", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["first_name", "John"], ["last_name", "Jack"], ["email", "monster@co.com"], ["provider", "someoneelse"], ["uid", "usr-1"], ["tenant", "default"], ["created_at", "2016-09-18 09:17:05.695625"], ["updated_at", "2016-09-18 09:17:05.695625"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "mno_monsters" ("provider", "uid", "tenant", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["provider", "maestrano"], ["uid", "usr-1"], ["tenant", "default"], ["created_at", "2016-09-18 09:17:05.697063"], ["updated_at", "2016-09-18 09:17:05.697063"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: class methods find_or_create_for_maestrano class method should return the MnoMonster if it exists. --------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "mno_monsters" ("first_name", "last_name", "email", "provider", "uid", "tenant", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["first_name", "John"], ["last_name", "Jack"], ["email", "monster@co.com"], ["provider", "maestrano"], ["uid", "usr-1"], ["tenant", "default"], ["created_at", "2016-09-18 09:17:05.698567"], ["updated_at", "2016-09-18 09:17:05.698567"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.1ms) rollback transaction --------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: class methods maestrano_*_via should have the right field definition. ---------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------------------------ MaestranoUserViaTest: test_: instance methods maestrano? should return false if provider is something else. ------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: instance methods maestrano? should return false if uid is blank. ----------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ----------------------------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: instance methods maestrano? should return true if provider is maestrano and uid not null. -----------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ------------------------------ MaestranoRailsTest: test_truth ------------------------------  (0.2ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------------------- GroupGeneratorTest: test_: GroupGenerator should call the active_record migration generator successfully. ----------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------------- GroupGeneratorTest: test_: GroupGenerator should call the mongoid migration generator successfully. ----------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------- InstallGeneratorTest: test_: InstallGenerator should create the maestrano initializer. ---------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------- InstallGeneratorTest: test_: InstallGenerator should create the maestrano routes. ----------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction ---------------------------------------------------------------------------------------------------------- InstallGeneratorTest: test_: InstallGenerator should create the maestrano/account/group_users_controller. ----------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction ----------------------------------------------------------------------------------------------------- InstallGeneratorTest: test_: InstallGenerator should create the maestrano/account/groups_controller. -----------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction ------------------------------------------------------------------------------------------------ InstallGeneratorTest: test_: InstallGenerator should create the maestrano/auth/saml_controller. ------------------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction ---------------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase error should redirect to maestrano on any error. ----------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Cannot validate SAML response: Bla Trace: ["/home/bruno/.rvm/gems/ruby-2.1.10/gems/mocha-1.1.0/lib/mocha/exception_raiser.rb:12:in `evaluate'", "/home/bruno/.rvm/gems/ruby-2.1.10/gems/mocha-1.1.0/lib/mocha/return_values.rb:20:in `next'", "/home/bruno/.rvm/gems/ruby-2.1.10/gems/mocha-1.1.0/lib/mocha/expectation.rb:569:in `invoke'", "/home/bruno/.rvm/gems/ruby-2.1.10/gems/mocha-1.1.0/lib/mocha/mock.rb:296:in `method_missing'", "/home/bruno/Workspace/maestrano-rails/app/controllers/maestrano/rails/saml_base_controller.rb:35:in `process_saml_response'", "/home/bruno/Workspace/maestrano-rails/app/controllers/maestrano/rails/saml_base_controller.rb:18:in `saml_response_transaction'", "/home/bruno/.rvm/gems/ruby-2.1.10/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:432:in `block in make_lambda'", "/home/bruno/.rvm/gems/ruby-2.1.10/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:291:in `call'", "/home/bruno/.rvm/gems/ruby-2.1.10/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:291:in `block in halting_and_conditional'", "/home/bruno/.rvm/gems/ruby-2.1.10/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:497:in `call'", "/home/bruno/.rvm/gems/ruby-2.1.10/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:497:in `block in around'", "/home/bruno/.rvm/gems/ruby-2.1.10/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:505:in `call'", "/home/bruno/.rvm/gems/ruby-2.1.10/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:505:in `call'", "/home/bruno/.rvm/gems/ruby-2.1.10/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:92:in `__run_callbacks__'", "/home/bruno/.rvm/gems/ruby-2.1.10/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:778:in `_run_process_action_callbacks'", "/home/bruno/.rvm/gems/ruby-2.1.10/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:81:in `run_callbacks'", "/home/bruno/.rvm/gems/ruby-2.1.10/gems/actionpack-4.2.7.1/lib/abstract_controller/callbacks.rb:19:in `process_action'", "/home/bruno/.rvm/gems/ruby-2.1.10/gems/actionpack-4.2.7.1/lib/action_controller/metal/rescue.rb:29:in `process_action'", "/home/bruno/.rvm/gems/ruby-2.1.10/gems/actionpack-4.2.7.1/lib/action_controller/metal/instrumentation.rb:32:in `block in process_action'", "/home/bruno/.rvm/gems/ruby-2.1.10/gems/activesupport-4.2.7.1/lib/active_support/notifications.rb:164:in `block in instrument'", "/home/bruno/.rvm/gems/ruby-2.1.10/gems/activesupport-4.2.7.1/lib/active_support/notifications/instrumenter.rb:20:in `instrument'", "/home/bruno/.rvm/gems/ruby-2.1.10/gems/activesupport-4.2.7.1/lib/active_support/notifications.rb:164:in `instrument'", "/home/bruno/.rvm/gems/ruby-2.1.10/gems/actionpack-4.2.7.1/lib/action_controller/metal/instrumentation.rb:30:in `process_action'", "/home/bruno/.rvm/gems/ruby-2.1.10/gems/actionpack-4.2.7.1/lib/action_controller/metal/params_wrapper.rb:250:in `process_action'", "/home/bruno/.rvm/gems/ruby-2.1.10/gems/activerecord-4.2.7.1/lib/active_record/railties/controller_runtime.rb:18:in `process_action'", "/home/bruno/.rvm/gems/ruby-2.1.10/gems/actionpack-4.2.7.1/lib/abstract_controller/base.rb:137:in `process'", "/home/bruno/.rvm/gems/ruby-2.1.10/gems/actionview-4.2.7.1/lib/action_view/rendering.rb:30:in `process'", "/home/bruno/.rvm/gems/ruby-2.1.10/gems/actionpack-4.2.7.1/lib/action_controller/test_case.rb:639:in `process'", "/home/bruno/.rvm/gems/ruby-2.1.10/gems/actionpack-4.2.7.1/lib/action_controller/test_case.rb:67:in `process'", "/home/bruno/.rvm/gems/ruby-2.1.10/gems/actionpack-4.2.7.1/lib/action_controller/test_case.rb:520:in `post'", "/home/bruno/Workspace/maestrano-rails/test/controllers/saml_controller_test.rb:117:in `block (3 levels) in '", "/home/bruno/.rvm/gems/ruby-2.1.10/gems/shoulda-context-1.2.1/lib/shoulda/context/context.rb:413:in `instance_exec'", "/home/bruno/.rvm/gems/ruby-2.1.10/gems/shoulda-context-1.2.1/lib/shoulda/context/context.rb:413:in `block in create_test_from_should_hash'", "/home/bruno/.rvm/gems/ruby-2.1.10/gems/minitest-5.9.0/lib/minitest/test.rb:107:in `block (3 levels) in run'", "/home/bruno/.rvm/gems/ruby-2.1.10/gems/minitest-5.9.0/lib/minitest/test.rb:204:in `capture_exceptions'", "/home/bruno/.rvm/gems/ruby-2.1.10/gems/minitest-5.9.0/lib/minitest/test.rb:104:in `block (2 levels) in run'", "/home/bruno/.rvm/gems/ruby-2.1.10/gems/minitest-5.9.0/lib/minitest/test.rb:255:in `time_it'", "/home/bruno/.rvm/gems/ruby-2.1.10/gems/minitest-5.9.0/lib/minitest/test.rb:103:in `block in run'", "/home/bruno/.rvm/gems/ruby-2.1.10/gems/minitest-5.9.0/lib/minitest.rb:348:in `on_signal'", "/home/bruno/.rvm/gems/ruby-2.1.10/gems/minitest-5.9.0/lib/minitest/test.rb:275:in `with_info_handler'", "/home/bruno/.rvm/gems/ruby-2.1.10/gems/minitest-5.9.0/lib/minitest/test.rb:102:in `run'", "/home/bruno/.rvm/gems/ruby-2.1.10/gems/minitest-5.9.0/lib/minitest.rb:799:in `run_one_method'", "/home/bruno/.rvm/gems/ruby-2.1.10/gems/minitest-5.9.0/lib/minitest.rb:322:in `run_one_method'", "/home/bruno/.rvm/gems/ruby-2.1.10/gems/minitest-5.9.0/lib/minitest.rb:310:in `block (2 levels) in run'", "/home/bruno/.rvm/gems/ruby-2.1.10/gems/minitest-5.9.0/lib/minitest.rb:309:in `each'", "/home/bruno/.rvm/gems/ruby-2.1.10/gems/minitest-5.9.0/lib/minitest.rb:309:in `block in run'", "/home/bruno/.rvm/gems/ruby-2.1.10/gems/minitest-5.9.0/lib/minitest.rb:348:in `on_signal'", "/home/bruno/.rvm/gems/ruby-2.1.10/gems/minitest-5.9.0/lib/minitest.rb:335:in `with_info_handler'", "/home/bruno/.rvm/gems/ruby-2.1.10/gems/minitest-5.9.0/lib/minitest.rb:308:in `run'", "/home/bruno/.rvm/gems/ruby-2.1.10/gems/minitest-5.9.0/lib/minitest.rb:158:in `block in __run'", "/home/bruno/.rvm/gems/ruby-2.1.10/gems/minitest-5.9.0/lib/minitest.rb:158:in `map'", "/home/bruno/.rvm/gems/ruby-2.1.10/gems/minitest-5.9.0/lib/minitest.rb:158:in `__run'", "/home/bruno/.rvm/gems/ruby-2.1.10/gems/minitest-5.9.0/lib/minitest.rb:135:in `run'", "/home/bruno/.rvm/gems/ruby-2.1.10/gems/minitest-5.9.0/lib/minitest.rb:62:in `block in autorun'"] Redirected to http://api-sandbox.maestrano.io/app_access_unauthorized?err=internal Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should reset the maestrano session successfully if one already exists. --------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction --------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should set a saml_request in scope. ---------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction -------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should set the group_auth_hash in scope. --------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should set the maestrano session. -------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should set the user_auth_hash in scope. -------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------ SamlBaseControllerTest: test_: consume phase should set the user_group_rel_hash in scope. ------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: init phase should create a saml request successfully if a maestrano session is already set. ---------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#init as HTML Parameters: {"a_param"=>"value"} Redirected to http://idpprovider.com?r=request Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ----------------------------------------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: init phase should create a saml request using params and session and redirect the user. -----------------------------------------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#init as HTML Parameters: {"a_param"=>"value"} Redirected to http://idpprovider.com?r=request Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) rollback transaction ------------------------------------------------------------------- MetadataControllerTest: test_: authenticated should be successful. -------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction Processing by Maestrano::Rails::MetadataController#index as HTML Completed 200 OK in 2ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------- MetadataControllerTest: test_: unauthenticated should deny access. -------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Rails::MetadataController#index as HTML Filter chain halted as :authenticate_maestrano! rendered or redirected Completed 401 Unauthorized in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction --------------------------------------------------------------------- GroupUsersControllerTest: test_: authenticated should be successful. ---------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Account::GroupUsersController#destroy as HTML Parameters: {"group_id"=>"cld-1", "id"=>"usr-1"} Rendered text template (0.0ms) Completed 200 OK in 5ms (Views: 4.6ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction --------------------------------------------------------------------- GroupUsersControllerTest: test_: unauthenticated should deny access. ---------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Account::GroupUsersController#destroy as HTML Parameters: {"group_id"=>"cld-1", "id"=>"usr-1"} Filter chain halted as :authenticate_maestrano! rendered or redirected Completed 401 Unauthorized in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------------- UserGeneratorTest: test_: UserGenerator should call the active_record migration generator successfully. --------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------- UserGeneratorTest: test_: UserGenerator should call the mongoid migration generator successfully. --------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: class methods find_or_create_for_maestrano class method should create a monster using the mapping block. --------------------------------------------------------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "mno_monsters" ("first_name", "last_name", "email", "provider", "uid", "tenant", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["first_name", "Mon"], ["last_name", "Ster"], ["email", "monster@monst.com"], ["provider", "maestrano"], ["uid", "usr-2"], ["tenant", "default"], ["created_at", "2016-09-18 09:17:30.435053"], ["updated_at", "2016-09-18 09:17:30.435053"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: class methods find_or_create_for_maestrano class method should not return a MnoMonster from another provider if it exists. --------------------------------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "mno_monsters" ("first_name", "last_name", "email", "provider", "uid", "tenant", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["first_name", "John"], ["last_name", "Jack"], ["email", "monster@co.com"], ["provider", "someoneelse"], ["uid", "usr-1"], ["tenant", "default"], ["created_at", "2016-09-18 09:17:30.437328"], ["updated_at", "2016-09-18 09:17:30.437328"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "mno_monsters" ("provider", "uid", "tenant", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["provider", "maestrano"], ["uid", "usr-1"], ["tenant", "default"], ["created_at", "2016-09-18 09:17:30.438873"], ["updated_at", "2016-09-18 09:17:30.438873"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: class methods find_or_create_for_maestrano class method should return the MnoMonster if it exists. --------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "mno_monsters" ("first_name", "last_name", "email", "provider", "uid", "tenant", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["first_name", "John"], ["last_name", "Jack"], ["email", "monster@co.com"], ["provider", "maestrano"], ["uid", "usr-1"], ["tenant", "default"], ["created_at", "2016-09-18 09:17:30.467749"], ["updated_at", "2016-09-18 09:17:30.467749"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.1ms) rollback transaction --------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: class methods maestrano_*_via should have the right field definition. ---------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------------------------ MaestranoUserViaTest: test_: instance methods maestrano? should return false if provider is something else. ------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: instance methods maestrano? should return false if uid is blank. ----------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ----------------------------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: instance methods maestrano? should return true if provider is maestrano and uid not null. -----------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------ ActiveRecordUserGeneratorTest: test_: namespaced model should create the right migration. ------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction -------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: namespaced model should edit the model content. --------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction -------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should create the right migration. --------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should edit the model content. ----------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should include parameters if rails 3 and strong_parameter not present. --------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should not include parameters if rails 3 and strong_parameter present. --------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should not include parameters in rails 4. ---------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ----------------------------------------------------------------- GroupsControllerTest: test_: authenticated should be successful. -----------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Account::GroupsController#destroy as HTML Parameters: {"id"=>"cld-1"} Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.8ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ----------------------------------------------------------------- GroupsControllerTest: test_: unauthenticated should deny access. -----------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Account::GroupsController#destroy as HTML Parameters: {"id"=>"cld-1"} Filter chain halted as :authenticate_maestrano! rendered or redirected Completed 401 Unauthorized in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------------------------------- GenericControllerTest: test_: with a maestrano session should be successful if the maestrano session is still valid. ---------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by PagesController#home as HTML Rendered pages/home.html.erb within layouts/application (0.9ms) Completed 200 OK in 149ms (Views: 148.8ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction -------------------------------------------------------------------------------------------------------------------- GenericControllerTest: test_: with a maestrano session should initialize redirect to SSO initialization if invalid. --------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by PagesController#home as HTML Redirected to http://localhost::3000/maestrano/auth/saml/init Filter chain halted as :verify_maestrano_session rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ----------------------------------------------------------------------------------------------------------- GenericControllerTest: test_: with a maestrano session should not redirect to SSO init if sso is disabled. -----------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by PagesController#home as HTML Rendered pages/home.html.erb within layouts/application (0.1ms) Completed 200 OK in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------------------ GenericControllerTest: test_: with no maestrano session should be successful. ------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by PagesController#home as HTML Rendered pages/home.html.erb within layouts/application (0.0ms) Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: namespaced model should create the right migration. -------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: namespaced model should edit the model content. ---------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should create the right migration. ---------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction ----------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should edit the model content. -----------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should include parameters if rails 3 and strong_parameter not present. ---------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should not include parameters if rails 3 and strong_parameter present. ---------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should not include parameters in rails 4. ----------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction --------------------------------------------------------------------------------------------------------------------------------------- MaestranoGroupViaTest: test_: class methods find_or_create_for_maestrano class method should create a monster using the mapping block. ---------------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction MnoCrew Load (0.2ms) SELECT "mno_crews".* FROM "mno_crews" WHERE "mno_crews"."provider" = ? AND "mno_crews"."uid" = ? AND "mno_crews"."tenant" = ? ORDER BY "mno_crews"."id" ASC LIMIT 1 [["provider", "maestrano"], ["uid", "usr-2"], ["tenant", "default"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "mno_crews" ("name", "provider", "uid", "tenant", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["name", "Monster Co"], ["provider", "maestrano"], ["uid", "usr-2"], ["tenant", "default"], ["created_at", "2016-09-18 09:17:30.688456"], ["updated_at", "2016-09-18 09:17:30.688456"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction ------------------------------------------------------------------------------------------------------------------------------------------------------ MaestranoGroupViaTest: test_: class methods find_or_create_for_maestrano class method should not return a MnoCrew from another provider if it exists. ------------------------------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "mno_crews" ("name", "provider", "uid", "tenant", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["name", "SomeOtherCrew"], ["provider", "someoneelse"], ["uid", "usr-1"], ["tenant", "default"], ["created_at", "2016-09-18 09:17:30.690437"], ["updated_at", "2016-09-18 09:17:30.690437"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "mno_crews" ("name", "provider", "uid", "tenant", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["name", "Your Group"], ["provider", "maestrano"], ["uid", "cld-1"], ["tenant", "default"], ["created_at", "2016-09-18 09:17:30.691789"], ["updated_at", "2016-09-18 09:17:30.691789"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction ------------------------------------------------------------------------------------------------------------------------------ MaestranoGroupViaTest: test_: class methods find_or_create_for_maestrano class method should return the MnoCrew if it exists. ------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "mno_crews" ("name", "provider", "uid", "tenant", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["name", "SomeCrew"], ["provider", "maestrano"], ["uid", "cld-1"], ["tenant", "default"], ["created_at", "2016-09-18 09:17:30.693124"], ["updated_at", "2016-09-18 09:17:30.693124"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.1ms) rollback transaction ---------------------------------------------------------------------------------------------------- MaestranoGroupViaTest: test_: class methods maestrano_*_via should have the right field definition. ----------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------------------------- MaestranoGroupViaTest: test_: instance methods maestrano? should return false if provider is something else. -------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ----------------------------------------------------------------------------------------------- MaestranoGroupViaTest: test_: instance methods maestrano? should return false if uid is blank. -----------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------------------------------------ MaestranoGroupViaTest: test_: instance methods maestrano? should return true if provider is maestrano and uid not null. ------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" --------------------------------------------------------------------------------------------------------------------------------------- MaestranoGroupViaTest: test_: class methods find_or_create_for_maestrano class method should create a monster using the mapping block. ---------------------------------------------------------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "mno_crews" ("name", "provider", "uid", "tenant", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["name", "Monster Co"], ["provider", "maestrano"], ["uid", "usr-2"], ["tenant", "default"], ["created_at", "2016-09-20 04:44:31.156541"], ["updated_at", "2016-09-20 04:44:31.156541"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction ------------------------------------------------------------------------------------------------------------------------------------------------------ MaestranoGroupViaTest: test_: class methods find_or_create_for_maestrano class method should not return a MnoCrew from another provider if it exists. ------------------------------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "mno_crews" ("name", "provider", "uid", "tenant", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["name", "SomeOtherCrew"], ["provider", "someoneelse"], ["uid", "usr-1"], ["tenant", "default"], ["created_at", "2016-09-20 04:44:31.158847"], ["updated_at", "2016-09-20 04:44:31.158847"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "mno_crews" ("name", "provider", "uid", "tenant", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["name", "Your Group"], ["provider", "maestrano"], ["uid", "cld-1"], ["tenant", "default"], ["created_at", "2016-09-20 04:44:31.160201"], ["updated_at", "2016-09-20 04:44:31.160201"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction ------------------------------------------------------------------------------------------------------------------------------ MaestranoGroupViaTest: test_: class methods find_or_create_for_maestrano class method should return the MnoCrew if it exists. ------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "mno_crews" ("name", "provider", "uid", "tenant", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["name", "SomeCrew"], ["provider", "maestrano"], ["uid", "cld-1"], ["tenant", "default"], ["created_at", "2016-09-20 04:44:31.161684"], ["updated_at", "2016-09-20 04:44:31.161684"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.1ms) rollback transaction ---------------------------------------------------------------------------------------------------- MaestranoGroupViaTest: test_: class methods maestrano_*_via should have the right field definition. ----------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------------------------- MaestranoGroupViaTest: test_: instance methods maestrano? should return false if provider is something else. -------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ----------------------------------------------------------------------------------------------- MaestranoGroupViaTest: test_: instance methods maestrano? should return false if uid is blank. -----------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------------------------------------ MaestranoGroupViaTest: test_: instance methods maestrano? should return true if provider is maestrano and uid not null. ------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: class methods find_or_create_for_maestrano class method should create a monster using the mapping block. --------------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "mno_monsters" ("first_name", "last_name", "email", "provider", "uid", "tenant", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["first_name", "Mon"], ["last_name", "Ster"], ["email", "monster@monst.com"], ["provider", "maestrano"], ["uid", "usr-2"], ["tenant", "default"], ["created_at", "2016-09-20 04:44:31.172368"], ["updated_at", "2016-09-20 04:44:31.172368"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: class methods find_or_create_for_maestrano class method should not return a MnoMonster from another provider if it exists. --------------------------------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "mno_monsters" ("first_name", "last_name", "email", "provider", "uid", "tenant", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["first_name", "John"], ["last_name", "Jack"], ["email", "monster@co.com"], ["provider", "someoneelse"], ["uid", "usr-1"], ["tenant", "default"], ["created_at", "2016-09-20 04:44:31.175498"], ["updated_at", "2016-09-20 04:44:31.175498"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "mno_monsters" ("provider", "uid", "tenant", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["provider", "maestrano"], ["uid", "usr-1"], ["tenant", "default"], ["created_at", "2016-09-20 04:44:31.177942"], ["updated_at", "2016-09-20 04:44:31.177942"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: class methods find_or_create_for_maestrano class method should return the MnoMonster if it exists. --------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "mno_monsters" ("first_name", "last_name", "email", "provider", "uid", "tenant", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["first_name", "John"], ["last_name", "Jack"], ["email", "monster@co.com"], ["provider", "maestrano"], ["uid", "usr-1"], ["tenant", "default"], ["created_at", "2016-09-20 04:44:31.179601"], ["updated_at", "2016-09-20 04:44:31.179601"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.1ms) rollback transaction --------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: class methods maestrano_*_via should have the right field definition. ---------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------------------------ MaestranoUserViaTest: test_: instance methods maestrano? should return false if provider is something else. ------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: instance methods maestrano? should return false if uid is blank. ----------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ----------------------------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: instance methods maestrano? should return true if provider is maestrano and uid not null. -----------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------------------- GroupGeneratorTest: test_: GroupGenerator should call the active_record migration generator successfully. ----------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------------- GroupGeneratorTest: test_: GroupGenerator should call the mongoid migration generator successfully. ----------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction ---------------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase error should redirect to maestrano on any error. ----------------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Cannot validate SAML response: Bla Trace: ["/home/bruno/.rvm/gems/ruby-2.3.1/gems/mocha-1.1.0/lib/mocha/exception_raiser.rb:12:in `evaluate'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/mocha-1.1.0/lib/mocha/return_values.rb:20:in `next'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/mocha-1.1.0/lib/mocha/expectation.rb:569:in `invoke'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/mocha-1.1.0/lib/mocha/mock.rb:296:in `method_missing'", "/home/bruno/Workspace/maestrano-rails/app/controllers/maestrano/rails/saml_base_controller.rb:35:in `process_saml_response'", "/home/bruno/Workspace/maestrano-rails/app/controllers/maestrano/rails/saml_base_controller.rb:18:in `saml_response_transaction'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:432:in `block in make_lambda'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:291:in `block in halting_and_conditional'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:497:in `block in around'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:505:in `call'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:92:in `__run_callbacks__'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:778:in `_run_process_action_callbacks'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:81:in `run_callbacks'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionpack-4.2.7.1/lib/abstract_controller/callbacks.rb:19:in `process_action'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionpack-4.2.7.1/lib/action_controller/metal/rescue.rb:29:in `process_action'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionpack-4.2.7.1/lib/action_controller/metal/instrumentation.rb:32:in `block in process_action'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-4.2.7.1/lib/active_support/notifications.rb:164:in `block in instrument'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-4.2.7.1/lib/active_support/notifications/instrumenter.rb:20:in `instrument'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-4.2.7.1/lib/active_support/notifications.rb:164:in `instrument'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionpack-4.2.7.1/lib/action_controller/metal/instrumentation.rb:30:in `process_action'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionpack-4.2.7.1/lib/action_controller/metal/params_wrapper.rb:250:in `process_action'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activerecord-4.2.7.1/lib/active_record/railties/controller_runtime.rb:18:in `process_action'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionpack-4.2.7.1/lib/abstract_controller/base.rb:137:in `process'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionview-4.2.7.1/lib/action_view/rendering.rb:30:in `process'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionpack-4.2.7.1/lib/action_controller/test_case.rb:639:in `process'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionpack-4.2.7.1/lib/action_controller/test_case.rb:67:in `process'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionpack-4.2.7.1/lib/action_controller/test_case.rb:520:in `post'", "/home/bruno/Workspace/maestrano-rails/test/controllers/saml_controller_test.rb:117:in `block (3 levels) in '", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/shoulda-context-1.2.1/lib/shoulda/context/context.rb:413:in `instance_exec'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/shoulda-context-1.2.1/lib/shoulda/context/context.rb:413:in `block in create_test_from_should_hash'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest/test.rb:107:in `block (3 levels) in run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest/test.rb:204:in `capture_exceptions'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest/test.rb:104:in `block (2 levels) in run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest/test.rb:255:in `time_it'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest/test.rb:103:in `block in run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:348:in `on_signal'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest/test.rb:275:in `with_info_handler'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest/test.rb:102:in `run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:799:in `run_one_method'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:322:in `run_one_method'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:310:in `block (2 levels) in run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:309:in `each'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:309:in `block in run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:348:in `on_signal'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:335:in `with_info_handler'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:308:in `run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:158:in `block in __run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:158:in `map'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:158:in `__run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:135:in `run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:62:in `block in autorun'"] Redirected to http://api-sandbox.maestrano.io/app_access_unauthorized?err=internal Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.1ms) rollback transaction -------------------------------------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should reset the maestrano session successfully if one already exists. --------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction --------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should set a saml_request in scope. ---------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction -------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should set the group_auth_hash in scope. --------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.1ms) rollback transaction ------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should set the maestrano session. -------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should set the user_auth_hash in scope. -------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------ SamlBaseControllerTest: test_: consume phase should set the user_group_rel_hash in scope. ------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: init phase should create a saml request successfully if a maestrano session is already set. ---------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#init as HTML Parameters: {"a_param"=>"value"} Redirected to http://idpprovider.com?r=request Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) rollback transaction ----------------------------------------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: init phase should create a saml request using params and session and redirect the user. -----------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#init as HTML Parameters: {"a_param"=>"value"} Redirected to http://idpprovider.com?r=request Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------ ActiveRecordUserGeneratorTest: test_: namespaced model should create the right migration. ------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction -------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: namespaced model should edit the model content. --------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should create the right migration. --------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction ---------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should edit the model content. ----------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should include parameters if rails 3 and strong_parameter not present. --------------------------------------------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should not include parameters if rails 3 and strong_parameter present. --------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should not include parameters in rails 4. ---------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------ MaestranoRailsTest: test_truth ------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ----------------------------------------------------------------- GroupsControllerTest: test_: authenticated should be successful. -----------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Account::GroupsController#destroy as HTML Parameters: {"id"=>"cld-1"} Rendered text template (0.0ms) Completed 200 OK in 5ms (Views: 4.5ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ----------------------------------------------------------------- GroupsControllerTest: test_: unauthenticated should deny access. -----------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Account::GroupsController#destroy as HTML Parameters: {"id"=>"cld-1"} Filter chain halted as :authenticate_maestrano! rendered or redirected Completed 401 Unauthorized in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------------------------------- GenericControllerTest: test_: with a maestrano session should be successful if the maestrano session is still valid. ---------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by PagesController#home as HTML Rendered pages/home.html.erb within layouts/application (1.0ms) Completed 200 OK in 104ms (Views: 104.0ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction -------------------------------------------------------------------------------------------------------------------- GenericControllerTest: test_: with a maestrano session should initialize redirect to SSO initialization if invalid. --------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by PagesController#home as HTML Redirected to http://localhost::3000/maestrano/auth/saml/init Filter chain halted as :verify_maestrano_session rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ----------------------------------------------------------------------------------------------------------- GenericControllerTest: test_: with a maestrano session should not redirect to SSO init if sso is disabled. -----------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by PagesController#home as HTML Rendered pages/home.html.erb within layouts/application (0.0ms) Completed 200 OK in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------------------ GenericControllerTest: test_: with no maestrano session should be successful. ------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by PagesController#home as HTML Rendered pages/home.html.erb within layouts/application (0.0ms) Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: namespaced model should create the right migration. -------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: namespaced model should edit the model content. ---------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction --------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should create the right migration. ---------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction ----------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should edit the model content. -----------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should include parameters if rails 3 and strong_parameter not present. ---------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should not include parameters if rails 3 and strong_parameter present. ---------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should not include parameters in rails 4. ----------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction --------------------------------------------------------------------- GroupUsersControllerTest: test_: authenticated should be successful. ---------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Account::GroupUsersController#destroy as HTML Parameters: {"group_id"=>"cld-1", "id"=>"usr-1"} Rendered text template (0.0ms) Completed 200 OK in 5ms (Views: 4.2ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction --------------------------------------------------------------------- GroupUsersControllerTest: test_: unauthenticated should deny access. ---------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Account::GroupUsersController#destroy as HTML Parameters: {"group_id"=>"cld-1", "id"=>"usr-1"} Filter chain halted as :authenticate_maestrano! rendered or redirected Completed 401 Unauthorized in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction --------------------------------------------------------------------------------------- InstallGeneratorTest: test_: InstallGenerator should create the maestrano initializer. ---------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------- InstallGeneratorTest: test_: InstallGenerator should create the maestrano routes. ----------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------------------- InstallGeneratorTest: test_: InstallGenerator should create the maestrano/account/group_users_controller. ----------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction ----------------------------------------------------------------------------------------------------- InstallGeneratorTest: test_: InstallGenerator should create the maestrano/account/groups_controller. -----------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------------ InstallGeneratorTest: test_: InstallGenerator should create the maestrano/auth/saml_controller. ------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------------- UserGeneratorTest: test_: UserGenerator should call the active_record migration generator successfully. --------------------------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction -------------------------------------------------------------------------------------------------- UserGeneratorTest: test_: UserGenerator should call the mongoid migration generator successfully. --------------------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------- MetadataControllerTest: test_: authenticated should be successful. -------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Rails::MetadataController#index as HTML Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------- MetadataControllerTest: test_: unauthenticated should deny access. -------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Rails::MetadataController#index as HTML Filter chain halted as :authenticate_maestrano! rendered or redirected Completed 401 Unauthorized in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ------------------------------------------------------------------------------------------ ActiveRecordUserGeneratorTest: test_: namespaced model should create the right migration. ------------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: namespaced model should edit the model content. --------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should create the right migration. --------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should edit the model content. ----------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should include parameters if rails 3 and strong_parameter not present. --------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should not include parameters if rails 3 and strong_parameter present. --------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should not include parameters in rails 4. ---------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------- MetadataControllerTest: test_: authenticated should be successful. -------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Rails::MetadataController#index as HTML Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------- MetadataControllerTest: test_: unauthenticated should deny access. -------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Rails::MetadataController#index as HTML Filter chain halted as :authenticate_maestrano! rendered or redirected Completed 401 Unauthorized in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction ------------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: namespaced model should create the right migration. -------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction --------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: namespaced model should edit the model content. ---------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction --------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should create the right migration. ---------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ----------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should edit the model content. -----------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should include parameters if rails 3 and strong_parameter not present. ---------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should not include parameters if rails 3 and strong_parameter present. ---------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should not include parameters in rails 4. ----------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------- GroupUsersControllerTest: test_: authenticated should be successful. ---------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction Processing by Maestrano::Account::GroupUsersController#destroy as HTML Parameters: {"group_id"=>"cld-1", "id"=>"usr-1"} Rendered text template (0.0ms) Completed 200 OK in 5ms (Views: 4.4ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction --------------------------------------------------------------------- GroupUsersControllerTest: test_: unauthenticated should deny access. ---------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Account::GroupUsersController#destroy as HTML Parameters: {"group_id"=>"cld-1", "id"=>"usr-1"} Filter chain halted as :authenticate_maestrano! rendered or redirected Completed 401 Unauthorized in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------------------------------------------------- MaestranoGroupViaTest: test_: class methods find_or_create_for_maestrano class method should create a monster using the mapping block. ---------------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction MnoCrew Load (0.3ms) SELECT "mno_crews".* FROM "mno_crews" WHERE "mno_crews"."provider" = ? AND "mno_crews"."uid" = ? AND "mno_crews"."tenant" = ? ORDER BY "mno_crews"."id" ASC LIMIT 1 [["provider", "maestrano"], ["uid", "usr-2"], ["tenant", "default"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "mno_crews" ("name", "provider", "uid", "tenant", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["name", "Monster Co"], ["provider", "maestrano"], ["uid", "usr-2"], ["tenant", "default"], ["created_at", "2016-09-20 04:45:20.702480"], ["updated_at", "2016-09-20 04:45:20.702480"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction ------------------------------------------------------------------------------------------------------------------------------------------------------ MaestranoGroupViaTest: test_: class methods find_or_create_for_maestrano class method should not return a MnoCrew from another provider if it exists. ------------------------------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "mno_crews" ("name", "provider", "uid", "tenant", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["name", "SomeOtherCrew"], ["provider", "someoneelse"], ["uid", "usr-1"], ["tenant", "default"], ["created_at", "2016-09-20 04:45:20.704552"], ["updated_at", "2016-09-20 04:45:20.704552"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "mno_crews" ("name", "provider", "uid", "tenant", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["name", "Your Group"], ["provider", "maestrano"], ["uid", "cld-1"], ["tenant", "default"], ["created_at", "2016-09-20 04:45:20.705815"], ["updated_at", "2016-09-20 04:45:20.705815"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction ------------------------------------------------------------------------------------------------------------------------------ MaestranoGroupViaTest: test_: class methods find_or_create_for_maestrano class method should return the MnoCrew if it exists. ------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "mno_crews" ("name", "provider", "uid", "tenant", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["name", "SomeCrew"], ["provider", "maestrano"], ["uid", "cld-1"], ["tenant", "default"], ["created_at", "2016-09-20 04:45:20.707173"], ["updated_at", "2016-09-20 04:45:20.707173"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.1ms) rollback transaction ---------------------------------------------------------------------------------------------------- MaestranoGroupViaTest: test_: class methods maestrano_*_via should have the right field definition. ----------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------------------------- MaestranoGroupViaTest: test_: instance methods maestrano? should return false if provider is something else. -------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ----------------------------------------------------------------------------------------------- MaestranoGroupViaTest: test_: instance methods maestrano? should return false if uid is blank. -----------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------------------------------------ MaestranoGroupViaTest: test_: instance methods maestrano? should return true if provider is maestrano and uid not null. ------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ----------------------------------------------------------------- GroupsControllerTest: test_: authenticated should be successful. -----------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Account::GroupsController#destroy as HTML Parameters: {"id"=>"cld-1"} Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.7ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ----------------------------------------------------------------- GroupsControllerTest: test_: unauthenticated should deny access. -----------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Account::GroupsController#destroy as HTML Parameters: {"id"=>"cld-1"} Filter chain halted as :authenticate_maestrano! rendered or redirected Completed 401 Unauthorized in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction --------------------------------------------------------------------------------------- InstallGeneratorTest: test_: InstallGenerator should create the maestrano initializer. ---------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction ---------------------------------------------------------------------------------- InstallGeneratorTest: test_: InstallGenerator should create the maestrano routes. ----------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction ---------------------------------------------------------------------------------------------------------- InstallGeneratorTest: test_: InstallGenerator should create the maestrano/account/group_users_controller. ----------------------------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ----------------------------------------------------------------------------------------------------- InstallGeneratorTest: test_: InstallGenerator should create the maestrano/account/groups_controller. -----------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------------ InstallGeneratorTest: test_: InstallGenerator should create the maestrano/auth/saml_controller. ------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction -------------------------------------------------------------------------------------------------------- UserGeneratorTest: test_: UserGenerator should call the active_record migration generator successfully. --------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------- UserGeneratorTest: test_: UserGenerator should call the mongoid migration generator successfully. --------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: class methods find_or_create_for_maestrano class method should create a monster using the mapping block. --------------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "mno_monsters" ("first_name", "last_name", "email", "provider", "uid", "tenant", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["first_name", "Mon"], ["last_name", "Ster"], ["email", "monster@monst.com"], ["provider", "maestrano"], ["uid", "usr-2"], ["tenant", "default"], ["created_at", "2016-09-20 04:45:20.759549"], ["updated_at", "2016-09-20 04:45:20.759549"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: class methods find_or_create_for_maestrano class method should not return a MnoMonster from another provider if it exists. --------------------------------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "mno_monsters" ("first_name", "last_name", "email", "provider", "uid", "tenant", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["first_name", "John"], ["last_name", "Jack"], ["email", "monster@co.com"], ["provider", "someoneelse"], ["uid", "usr-1"], ["tenant", "default"], ["created_at", "2016-09-20 04:45:20.761328"], ["updated_at", "2016-09-20 04:45:20.761328"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "mno_monsters" ("provider", "uid", "tenant", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["provider", "maestrano"], ["uid", "usr-1"], ["tenant", "default"], ["created_at", "2016-09-20 04:45:20.762599"], ["updated_at", "2016-09-20 04:45:20.762599"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: class methods find_or_create_for_maestrano class method should return the MnoMonster if it exists. --------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "mno_monsters" ("first_name", "last_name", "email", "provider", "uid", "tenant", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["first_name", "John"], ["last_name", "Jack"], ["email", "monster@co.com"], ["provider", "maestrano"], ["uid", "usr-1"], ["tenant", "default"], ["created_at", "2016-09-20 04:45:20.764020"], ["updated_at", "2016-09-20 04:45:20.764020"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.1ms) rollback transaction --------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: class methods maestrano_*_via should have the right field definition. ---------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------------------------ MaestranoUserViaTest: test_: instance methods maestrano? should return false if provider is something else. ------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: instance methods maestrano? should return false if uid is blank. ----------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ----------------------------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: instance methods maestrano? should return true if provider is maestrano and uid not null. -----------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------------------- GroupGeneratorTest: test_: GroupGenerator should call the active_record migration generator successfully. ----------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------------- GroupGeneratorTest: test_: GroupGenerator should call the mongoid migration generator successfully. ----------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction --------------------------------------------------------------------------------------------------------------------- GenericControllerTest: test_: with a maestrano session should be successful if the maestrano session is still valid. ---------------------------------------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by PagesController#home as HTML Rendered pages/home.html.erb within layouts/application (0.8ms) Completed 200 OK in 102ms (Views: 101.8ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction -------------------------------------------------------------------------------------------------------------------- GenericControllerTest: test_: with a maestrano session should initialize redirect to SSO initialization if invalid. --------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by PagesController#home as HTML Redirected to http://localhost::3000/maestrano/auth/saml/init Filter chain halted as :verify_maestrano_session rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ----------------------------------------------------------------------------------------------------------- GenericControllerTest: test_: with a maestrano session should not redirect to SSO init if sso is disabled. -----------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by PagesController#home as HTML Rendered pages/home.html.erb within layouts/application (0.0ms) Completed 200 OK in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction ------------------------------------------------------------------------------ GenericControllerTest: test_: with no maestrano session should be successful. ------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by PagesController#home as HTML Rendered pages/home.html.erb within layouts/application (0.0ms) Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase error should redirect to maestrano on any error. ----------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Cannot validate SAML response: Bla Trace: ["/home/bruno/.rvm/gems/ruby-2.3.1/gems/mocha-1.1.0/lib/mocha/exception_raiser.rb:12:in `evaluate'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/mocha-1.1.0/lib/mocha/return_values.rb:20:in `next'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/mocha-1.1.0/lib/mocha/expectation.rb:569:in `invoke'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/mocha-1.1.0/lib/mocha/mock.rb:296:in `method_missing'", "/home/bruno/Workspace/maestrano-rails/app/controllers/maestrano/rails/saml_base_controller.rb:35:in `process_saml_response'", "/home/bruno/Workspace/maestrano-rails/app/controllers/maestrano/rails/saml_base_controller.rb:18:in `saml_response_transaction'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:432:in `block in make_lambda'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:291:in `block in halting_and_conditional'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:497:in `block in around'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:505:in `call'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:92:in `__run_callbacks__'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:778:in `_run_process_action_callbacks'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:81:in `run_callbacks'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionpack-4.2.7.1/lib/abstract_controller/callbacks.rb:19:in `process_action'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionpack-4.2.7.1/lib/action_controller/metal/rescue.rb:29:in `process_action'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionpack-4.2.7.1/lib/action_controller/metal/instrumentation.rb:32:in `block in process_action'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-4.2.7.1/lib/active_support/notifications.rb:164:in `block in instrument'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-4.2.7.1/lib/active_support/notifications/instrumenter.rb:20:in `instrument'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-4.2.7.1/lib/active_support/notifications.rb:164:in `instrument'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionpack-4.2.7.1/lib/action_controller/metal/instrumentation.rb:30:in `process_action'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionpack-4.2.7.1/lib/action_controller/metal/params_wrapper.rb:250:in `process_action'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activerecord-4.2.7.1/lib/active_record/railties/controller_runtime.rb:18:in `process_action'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionpack-4.2.7.1/lib/abstract_controller/base.rb:137:in `process'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionview-4.2.7.1/lib/action_view/rendering.rb:30:in `process'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionpack-4.2.7.1/lib/action_controller/test_case.rb:639:in `process'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionpack-4.2.7.1/lib/action_controller/test_case.rb:67:in `process'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionpack-4.2.7.1/lib/action_controller/test_case.rb:520:in `post'", "/home/bruno/Workspace/maestrano-rails/test/controllers/saml_controller_test.rb:117:in `block (3 levels) in '", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/shoulda-context-1.2.1/lib/shoulda/context/context.rb:413:in `instance_exec'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/shoulda-context-1.2.1/lib/shoulda/context/context.rb:413:in `block in create_test_from_should_hash'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest/test.rb:107:in `block (3 levels) in run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest/test.rb:204:in `capture_exceptions'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest/test.rb:104:in `block (2 levels) in run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest/test.rb:255:in `time_it'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest/test.rb:103:in `block in run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:348:in `on_signal'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest/test.rb:275:in `with_info_handler'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest/test.rb:102:in `run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:799:in `run_one_method'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:322:in `run_one_method'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:310:in `block (2 levels) in run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:309:in `each'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:309:in `block in run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:348:in `on_signal'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:335:in `with_info_handler'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:308:in `run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:158:in `block in __run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:158:in `map'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:158:in `__run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:135:in `run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:62:in `block in autorun'"] Redirected to http://api-sandbox.maestrano.io/app_access_unauthorized?err=internal Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should reset the maestrano session successfully if one already exists. --------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction --------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should set a saml_request in scope. ---------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction -------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should set the group_auth_hash in scope. --------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should set the maestrano session. -------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should set the user_auth_hash in scope. -------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------ SamlBaseControllerTest: test_: consume phase should set the user_group_rel_hash in scope. ------------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: init phase should create a saml request successfully if a maestrano session is already set. ---------------------------------------------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#init as HTML Parameters: {"a_param"=>"value"} Redirected to http://idpprovider.com?r=request Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.1ms) rollback transaction ----------------------------------------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: init phase should create a saml request using params and session and redirect the user. -----------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#init as HTML Parameters: {"a_param"=>"value"} Redirected to http://idpprovider.com?r=request Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) rollback transaction ------------------------------ MaestranoRailsTest: test_truth ------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" --------------------------------------------------------------------------------------------------------------------- GenericControllerTest: test_: with a maestrano session should be successful if the maestrano session is still valid. ---------------------------------------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by PagesController#home as HTML Rendered pages/home.html.erb within layouts/application (0.7ms) Completed 200 OK in 101ms (Views: 100.9ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction -------------------------------------------------------------------------------------------------------------------- GenericControllerTest: test_: with a maestrano session should initialize redirect to SSO initialization if invalid. --------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by PagesController#home as HTML Rendered pages/home.html.erb within layouts/application (0.0ms) Completed 200 OK in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ----------------------------------------------------------------------------------------------------------- GenericControllerTest: test_: with a maestrano session should not redirect to SSO init if sso is disabled. -----------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by PagesController#home as HTML Rendered pages/home.html.erb within layouts/application (0.0ms) Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------------------ GenericControllerTest: test_: with no maestrano session should be successful. ------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by PagesController#home as HTML Rendered pages/home.html.erb within layouts/application (0.0ms) Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: namespaced model should create the right migration. -------------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: namespaced model should edit the model content. ---------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should create the right migration. ---------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ----------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should edit the model content. -----------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should include parameters if rails 3 and strong_parameter not present. ---------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should not include parameters if rails 3 and strong_parameter present. ---------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should not include parameters in rails 4. ----------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction -------------------------------------------------------------------------------------------------------- UserGeneratorTest: test_: UserGenerator should call the active_record migration generator successfully. --------------------------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction -------------------------------------------------------------------------------------------------- UserGeneratorTest: test_: UserGenerator should call the mongoid migration generator successfully. --------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ----------------------------------------------------------------- GroupsControllerTest: test_: authenticated should be successful. -----------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Account::GroupsController#destroy as HTML Parameters: {"id"=>"cld-1"} Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 2.1ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ----------------------------------------------------------------- GroupsControllerTest: test_: unauthenticated should deny access. -----------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Account::GroupsController#destroy as HTML Parameters: {"id"=>"cld-1"} Filter chain halted as :authenticate_maestrano! rendered or redirected Completed 401 Unauthorized in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: class methods find_or_create_for_maestrano class method should create a monster using the mapping block. --------------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "mno_monsters" ("first_name", "last_name", "email", "provider", "uid", "tenant", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["first_name", "Mon"], ["last_name", "Ster"], ["email", "monster@monst.com"], ["provider", "maestrano"], ["uid", "usr-2"], ["tenant", "default"], ["created_at", "2016-09-20 04:47:22.261747"], ["updated_at", "2016-09-20 04:47:22.261747"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: class methods find_or_create_for_maestrano class method should not return a MnoMonster from another provider if it exists. --------------------------------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "mno_monsters" ("first_name", "last_name", "email", "provider", "uid", "tenant", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["first_name", "John"], ["last_name", "Jack"], ["email", "monster@co.com"], ["provider", "someoneelse"], ["uid", "usr-1"], ["tenant", "default"], ["created_at", "2016-09-20 04:47:22.265474"], ["updated_at", "2016-09-20 04:47:22.265474"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "mno_monsters" ("provider", "uid", "tenant", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["provider", "maestrano"], ["uid", "usr-1"], ["tenant", "default"], ["created_at", "2016-09-20 04:47:22.267121"], ["updated_at", "2016-09-20 04:47:22.267121"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: class methods find_or_create_for_maestrano class method should return the MnoMonster if it exists. --------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "mno_monsters" ("first_name", "last_name", "email", "provider", "uid", "tenant", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["first_name", "John"], ["last_name", "Jack"], ["email", "monster@co.com"], ["provider", "maestrano"], ["uid", "usr-1"], ["tenant", "default"], ["created_at", "2016-09-20 04:47:22.268519"], ["updated_at", "2016-09-20 04:47:22.268519"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.1ms) rollback transaction --------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: class methods maestrano_*_via should have the right field definition. ---------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------------------------ MaestranoUserViaTest: test_: instance methods maestrano? should return false if provider is something else. ------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: instance methods maestrano? should return false if uid is blank. ----------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ----------------------------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: instance methods maestrano? should return true if provider is maestrano and uid not null. -----------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------ MaestranoRailsTest: test_truth ------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------------------------------------------------- MaestranoGroupViaTest: test_: class methods find_or_create_for_maestrano class method should create a monster using the mapping block. ---------------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "mno_crews" ("name", "provider", "uid", "tenant", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["name", "Monster Co"], ["provider", "maestrano"], ["uid", "usr-2"], ["tenant", "default"], ["created_at", "2016-09-20 04:47:22.278219"], ["updated_at", "2016-09-20 04:47:22.278219"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction ------------------------------------------------------------------------------------------------------------------------------------------------------ MaestranoGroupViaTest: test_: class methods find_or_create_for_maestrano class method should not return a MnoCrew from another provider if it exists. ------------------------------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "mno_crews" ("name", "provider", "uid", "tenant", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["name", "SomeOtherCrew"], ["provider", "someoneelse"], ["uid", "usr-1"], ["tenant", "default"], ["created_at", "2016-09-20 04:47:22.279946"], ["updated_at", "2016-09-20 04:47:22.279946"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "mno_crews" ("name", "provider", "uid", "tenant", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["name", "Your Group"], ["provider", "maestrano"], ["uid", "cld-1"], ["tenant", "default"], ["created_at", "2016-09-20 04:47:22.281219"], ["updated_at", "2016-09-20 04:47:22.281219"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction ------------------------------------------------------------------------------------------------------------------------------ MaestranoGroupViaTest: test_: class methods find_or_create_for_maestrano class method should return the MnoCrew if it exists. ------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "mno_crews" ("name", "provider", "uid", "tenant", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["name", "SomeCrew"], ["provider", "maestrano"], ["uid", "cld-1"], ["tenant", "default"], ["created_at", "2016-09-20 04:47:22.282578"], ["updated_at", "2016-09-20 04:47:22.282578"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.1ms) rollback transaction ---------------------------------------------------------------------------------------------------- MaestranoGroupViaTest: test_: class methods maestrano_*_via should have the right field definition. ----------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------------------------- MaestranoGroupViaTest: test_: instance methods maestrano? should return false if provider is something else. -------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ----------------------------------------------------------------------------------------------- MaestranoGroupViaTest: test_: instance methods maestrano? should return false if uid is blank. -----------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------------------------------------ MaestranoGroupViaTest: test_: instance methods maestrano? should return true if provider is maestrano and uid not null. ------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------ ActiveRecordUserGeneratorTest: test_: namespaced model should create the right migration. ------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: namespaced model should edit the model content. --------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should create the right migration. --------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should edit the model content. ----------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should include parameters if rails 3 and strong_parameter not present. --------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should not include parameters if rails 3 and strong_parameter present. --------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should not include parameters in rails 4. ---------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase error should redirect to maestrano on any error. ----------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Cannot validate SAML response: Bla Trace: ["/home/bruno/.rvm/gems/ruby-2.3.1/gems/mocha-1.1.0/lib/mocha/exception_raiser.rb:12:in `evaluate'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/mocha-1.1.0/lib/mocha/return_values.rb:20:in `next'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/mocha-1.1.0/lib/mocha/expectation.rb:569:in `invoke'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/mocha-1.1.0/lib/mocha/mock.rb:296:in `method_missing'", "/home/bruno/Workspace/maestrano-rails/app/controllers/maestrano/rails/saml_base_controller.rb:35:in `process_saml_response'", "/home/bruno/Workspace/maestrano-rails/app/controllers/maestrano/rails/saml_base_controller.rb:18:in `saml_response_transaction'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:432:in `block in make_lambda'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:291:in `block in halting_and_conditional'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:497:in `block in around'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:505:in `call'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:92:in `__run_callbacks__'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:778:in `_run_process_action_callbacks'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:81:in `run_callbacks'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionpack-4.2.7.1/lib/abstract_controller/callbacks.rb:19:in `process_action'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionpack-4.2.7.1/lib/action_controller/metal/rescue.rb:29:in `process_action'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionpack-4.2.7.1/lib/action_controller/metal/instrumentation.rb:32:in `block in process_action'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-4.2.7.1/lib/active_support/notifications.rb:164:in `block in instrument'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-4.2.7.1/lib/active_support/notifications/instrumenter.rb:20:in `instrument'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-4.2.7.1/lib/active_support/notifications.rb:164:in `instrument'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionpack-4.2.7.1/lib/action_controller/metal/instrumentation.rb:30:in `process_action'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionpack-4.2.7.1/lib/action_controller/metal/params_wrapper.rb:250:in `process_action'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activerecord-4.2.7.1/lib/active_record/railties/controller_runtime.rb:18:in `process_action'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionpack-4.2.7.1/lib/abstract_controller/base.rb:137:in `process'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionview-4.2.7.1/lib/action_view/rendering.rb:30:in `process'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionpack-4.2.7.1/lib/action_controller/test_case.rb:639:in `process'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionpack-4.2.7.1/lib/action_controller/test_case.rb:67:in `process'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionpack-4.2.7.1/lib/action_controller/test_case.rb:520:in `post'", "/home/bruno/Workspace/maestrano-rails/test/controllers/saml_controller_test.rb:117:in `block (3 levels) in '", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/shoulda-context-1.2.1/lib/shoulda/context/context.rb:413:in `instance_exec'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/shoulda-context-1.2.1/lib/shoulda/context/context.rb:413:in `block in create_test_from_should_hash'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest/test.rb:107:in `block (3 levels) in run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest/test.rb:204:in `capture_exceptions'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest/test.rb:104:in `block (2 levels) in run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest/test.rb:255:in `time_it'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest/test.rb:103:in `block in run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:348:in `on_signal'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest/test.rb:275:in `with_info_handler'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest/test.rb:102:in `run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:799:in `run_one_method'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:322:in `run_one_method'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:310:in `block (2 levels) in run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:309:in `each'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:309:in `block in run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:348:in `on_signal'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:335:in `with_info_handler'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:308:in `run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:158:in `block in __run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:158:in `map'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:158:in `__run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:135:in `run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:62:in `block in autorun'"] Redirected to http://api-sandbox.maestrano.io/app_access_unauthorized?err=internal Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should reset the maestrano session successfully if one already exists. --------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction --------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should set a saml_request in scope. ---------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction -------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should set the group_auth_hash in scope. --------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should set the maestrano session. -------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should set the user_auth_hash in scope. -------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.1ms) rollback transaction ------------------------------------------------------------------------------------------ SamlBaseControllerTest: test_: consume phase should set the user_group_rel_hash in scope. ------------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: init phase should create a saml request successfully if a maestrano session is already set. ---------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#init as HTML Parameters: {"a_param"=>"value"} Redirected to http://idpprovider.com?r=request Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ----------------------------------------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: init phase should create a saml request using params and session and redirect the user. -----------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#init as HTML Parameters: {"a_param"=>"value"} Redirected to http://idpprovider.com?r=request Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------- MetadataControllerTest: test_: authenticated should be successful. -------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Rails::MetadataController#index as HTML Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------- MetadataControllerTest: test_: unauthenticated should deny access. -------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Rails::MetadataController#index as HTML Filter chain halted as :authenticate_maestrano! rendered or redirected Completed 401 Unauthorized in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------------------- GroupGeneratorTest: test_: GroupGenerator should call the active_record migration generator successfully. ----------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------------- GroupGeneratorTest: test_: GroupGenerator should call the mongoid migration generator successfully. ----------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction --------------------------------------------------------------------- GroupUsersControllerTest: test_: authenticated should be successful. ---------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Account::GroupUsersController#destroy as HTML Parameters: {"group_id"=>"cld-1", "id"=>"usr-1"} Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.7ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction --------------------------------------------------------------------- GroupUsersControllerTest: test_: unauthenticated should deny access. ---------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Account::GroupUsersController#destroy as HTML Parameters: {"group_id"=>"cld-1", "id"=>"usr-1"} Filter chain halted as :authenticate_maestrano! rendered or redirected Completed 401 Unauthorized in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction --------------------------------------------------------------------------------------- InstallGeneratorTest: test_: InstallGenerator should create the maestrano initializer. ---------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------- InstallGeneratorTest: test_: InstallGenerator should create the maestrano routes. ----------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------------------- InstallGeneratorTest: test_: InstallGenerator should create the maestrano/account/group_users_controller. ----------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ----------------------------------------------------------------------------------------------------- InstallGeneratorTest: test_: InstallGenerator should create the maestrano/account/groups_controller. -----------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------------ InstallGeneratorTest: test_: InstallGenerator should create the maestrano/auth/saml_controller. ------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" -------------------------------------------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: class methods find_or_create_for_maestrano class method should create a monster using the mapping block. --------------------------------------------------------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "mno_monsters" ("first_name", "last_name", "email", "provider", "uid", "tenant", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["first_name", "Mon"], ["last_name", "Ster"], ["email", "monster@monst.com"], ["provider", "maestrano"], ["uid", "usr-2"], ["tenant", "default"], ["created_at", "2016-09-20 04:48:14.857474"], ["updated_at", "2016-09-20 04:48:14.857474"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: class methods find_or_create_for_maestrano class method should not return a MnoMonster from another provider if it exists. --------------------------------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "mno_monsters" ("first_name", "last_name", "email", "provider", "uid", "tenant", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["first_name", "John"], ["last_name", "Jack"], ["email", "monster@co.com"], ["provider", "someoneelse"], ["uid", "usr-1"], ["tenant", "default"], ["created_at", "2016-09-20 04:48:14.859829"], ["updated_at", "2016-09-20 04:48:14.859829"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "mno_monsters" ("provider", "uid", "tenant", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["provider", "maestrano"], ["uid", "usr-1"], ["tenant", "default"], ["created_at", "2016-09-20 04:48:14.861432"], ["updated_at", "2016-09-20 04:48:14.861432"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: class methods find_or_create_for_maestrano class method should return the MnoMonster if it exists. --------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "mno_monsters" ("first_name", "last_name", "email", "provider", "uid", "tenant", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["first_name", "John"], ["last_name", "Jack"], ["email", "monster@co.com"], ["provider", "maestrano"], ["uid", "usr-1"], ["tenant", "default"], ["created_at", "2016-09-20 04:48:14.863178"], ["updated_at", "2016-09-20 04:48:14.863178"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.1ms) rollback transaction --------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: class methods maestrano_*_via should have the right field definition. ---------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------------------------ MaestranoUserViaTest: test_: instance methods maestrano? should return false if provider is something else. ------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: instance methods maestrano? should return false if uid is blank. ----------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ----------------------------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: instance methods maestrano? should return true if provider is maestrano and uid not null. -----------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------------------------------------------------- MaestranoGroupViaTest: test_: class methods find_or_create_for_maestrano class method should create a monster using the mapping block. ---------------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "mno_crews" ("name", "provider", "uid", "tenant", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["name", "Monster Co"], ["provider", "maestrano"], ["uid", "usr-2"], ["tenant", "default"], ["created_at", "2016-09-20 04:48:14.872863"], ["updated_at", "2016-09-20 04:48:14.872863"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction ------------------------------------------------------------------------------------------------------------------------------------------------------ MaestranoGroupViaTest: test_: class methods find_or_create_for_maestrano class method should not return a MnoCrew from another provider if it exists. ------------------------------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "mno_crews" ("name", "provider", "uid", "tenant", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["name", "SomeOtherCrew"], ["provider", "someoneelse"], ["uid", "usr-1"], ["tenant", "default"], ["created_at", "2016-09-20 04:48:14.875587"], ["updated_at", "2016-09-20 04:48:14.875587"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 MnoCrew Load (0.1ms) SELECT "mno_crews".* FROM "mno_crews" WHERE "mno_crews"."provider" = ? AND "mno_crews"."uid" = ? AND "mno_crews"."tenant" = ? ORDER BY "mno_crews"."id" ASC LIMIT 1 [["provider", "maestrano"], ["uid", "cld-1"], ["tenant", "default"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "mno_crews" ("name", "provider", "uid", "tenant", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["name", "Your Group"], ["provider", "maestrano"], ["uid", "cld-1"], ["tenant", "default"], ["created_at", "2016-09-20 04:48:14.878451"], ["updated_at", "2016-09-20 04:48:14.878451"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction ------------------------------------------------------------------------------------------------------------------------------ MaestranoGroupViaTest: test_: class methods find_or_create_for_maestrano class method should return the MnoCrew if it exists. ------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "mno_crews" ("name", "provider", "uid", "tenant", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["name", "SomeCrew"], ["provider", "maestrano"], ["uid", "cld-1"], ["tenant", "default"], ["created_at", "2016-09-20 04:48:14.880319"], ["updated_at", "2016-09-20 04:48:14.880319"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.1ms) rollback transaction ---------------------------------------------------------------------------------------------------- MaestranoGroupViaTest: test_: class methods maestrano_*_via should have the right field definition. ----------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------------------------- MaestranoGroupViaTest: test_: instance methods maestrano? should return false if provider is something else. -------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ----------------------------------------------------------------------------------------------- MaestranoGroupViaTest: test_: instance methods maestrano? should return false if uid is blank. -----------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------------------------------------ MaestranoGroupViaTest: test_: instance methods maestrano? should return true if provider is maestrano and uid not null. ------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------------- UserGeneratorTest: test_: UserGenerator should call the active_record migration generator successfully. --------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction -------------------------------------------------------------------------------------------------- UserGeneratorTest: test_: UserGenerator should call the mongoid migration generator successfully. --------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction ------------------------------ MaestranoRailsTest: test_truth ------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase error should redirect to maestrano on any error. ----------------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Cannot validate SAML response: Bla Trace: ["/home/bruno/.rvm/gems/ruby-2.3.1/gems/mocha-1.1.0/lib/mocha/exception_raiser.rb:12:in `evaluate'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/mocha-1.1.0/lib/mocha/return_values.rb:20:in `next'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/mocha-1.1.0/lib/mocha/expectation.rb:569:in `invoke'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/mocha-1.1.0/lib/mocha/mock.rb:296:in `method_missing'", "/home/bruno/Workspace/maestrano-rails/app/controllers/maestrano/rails/saml_base_controller.rb:35:in `process_saml_response'", "/home/bruno/Workspace/maestrano-rails/app/controllers/maestrano/rails/saml_base_controller.rb:18:in `saml_response_transaction'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:432:in `block in make_lambda'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:291:in `block in halting_and_conditional'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:497:in `block in around'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:505:in `call'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:92:in `__run_callbacks__'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:778:in `_run_process_action_callbacks'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:81:in `run_callbacks'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionpack-4.2.7.1/lib/abstract_controller/callbacks.rb:19:in `process_action'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionpack-4.2.7.1/lib/action_controller/metal/rescue.rb:29:in `process_action'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionpack-4.2.7.1/lib/action_controller/metal/instrumentation.rb:32:in `block in process_action'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-4.2.7.1/lib/active_support/notifications.rb:164:in `block in instrument'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-4.2.7.1/lib/active_support/notifications/instrumenter.rb:20:in `instrument'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-4.2.7.1/lib/active_support/notifications.rb:164:in `instrument'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionpack-4.2.7.1/lib/action_controller/metal/instrumentation.rb:30:in `process_action'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionpack-4.2.7.1/lib/action_controller/metal/params_wrapper.rb:250:in `process_action'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activerecord-4.2.7.1/lib/active_record/railties/controller_runtime.rb:18:in `process_action'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionpack-4.2.7.1/lib/abstract_controller/base.rb:137:in `process'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionview-4.2.7.1/lib/action_view/rendering.rb:30:in `process'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionpack-4.2.7.1/lib/action_controller/test_case.rb:639:in `process'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionpack-4.2.7.1/lib/action_controller/test_case.rb:67:in `process'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionpack-4.2.7.1/lib/action_controller/test_case.rb:520:in `post'", "/home/bruno/Workspace/maestrano-rails/test/controllers/saml_controller_test.rb:117:in `block (3 levels) in '", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/shoulda-context-1.2.1/lib/shoulda/context/context.rb:413:in `instance_exec'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/shoulda-context-1.2.1/lib/shoulda/context/context.rb:413:in `block in create_test_from_should_hash'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest/test.rb:107:in `block (3 levels) in run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest/test.rb:204:in `capture_exceptions'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest/test.rb:104:in `block (2 levels) in run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest/test.rb:255:in `time_it'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest/test.rb:103:in `block in run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:348:in `on_signal'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest/test.rb:275:in `with_info_handler'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest/test.rb:102:in `run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:799:in `run_one_method'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:322:in `run_one_method'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:310:in `block (2 levels) in run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:309:in `each'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:309:in `block in run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:348:in `on_signal'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:335:in `with_info_handler'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:308:in `run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:158:in `block in __run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:158:in `map'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:158:in `__run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:135:in `run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:62:in `block in autorun'"] Redirected to http://api-sandbox.maestrano.io/app_access_unauthorized?err=internal Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.1ms) rollback transaction -------------------------------------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should reset the maestrano session successfully if one already exists. --------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.1ms) rollback transaction --------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should set a saml_request in scope. ---------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction -------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should set the group_auth_hash in scope. --------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should set the maestrano session. -------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should set the user_auth_hash in scope. -------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------ SamlBaseControllerTest: test_: consume phase should set the user_group_rel_hash in scope. ------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: init phase should create a saml request successfully if a maestrano session is already set. ---------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#init as HTML Parameters: {"a_param"=>"value"} Redirected to http://idpprovider.com?r=request Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ----------------------------------------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: init phase should create a saml request using params and session and redirect the user. -----------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#init as HTML Parameters: {"a_param"=>"value"} Redirected to http://idpprovider.com?r=request Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ----------------------------------------------------------------- GroupsControllerTest: test_: authenticated should be successful. -----------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Account::GroupsController#destroy as HTML Parameters: {"id"=>"cld-1"} Rendered text template (0.0ms) Completed 200 OK in 7ms (Views: 6.4ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction ----------------------------------------------------------------- GroupsControllerTest: test_: unauthenticated should deny access. -----------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Account::GroupsController#destroy as HTML Parameters: {"id"=>"cld-1"} Filter chain halted as :authenticate_maestrano! rendered or redirected Completed 401 Unauthorized in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction ---------------------------------------------------------------------------------------------------------- GroupGeneratorTest: test_: GroupGenerator should call the active_record migration generator successfully. ----------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction ---------------------------------------------------------------------------------------------------- GroupGeneratorTest: test_: GroupGenerator should call the mongoid migration generator successfully. ----------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction ------------------------------------------------------------------------------------------ ActiveRecordUserGeneratorTest: test_: namespaced model should create the right migration. ------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: namespaced model should edit the model content. --------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction -------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should create the right migration. --------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction ---------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should edit the model content. ----------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should include parameters if rails 3 and strong_parameter not present. --------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should not include parameters if rails 3 and strong_parameter present. --------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction --------------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should not include parameters in rails 4. ---------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction --------------------------------------------------------------------- GroupUsersControllerTest: test_: authenticated should be successful. ---------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Account::GroupUsersController#destroy as HTML Parameters: {"group_id"=>"cld-1", "id"=>"usr-1"} Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 2.0ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction --------------------------------------------------------------------- GroupUsersControllerTest: test_: unauthenticated should deny access. ---------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Account::GroupUsersController#destroy as HTML Parameters: {"group_id"=>"cld-1", "id"=>"usr-1"} Filter chain halted as :authenticate_maestrano! rendered or redirected Completed 401 Unauthorized in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------------------------------- GenericControllerTest: test_: with a maestrano session should be successful if the maestrano session is still valid. ---------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by PagesController#home as HTML Rendered pages/home.html.erb within layouts/application (0.9ms) Completed 200 OK in 106ms (Views: 106.1ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction -------------------------------------------------------------------------------------------------------------------- GenericControllerTest: test_: with a maestrano session should initialize redirect to SSO initialization if invalid. --------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by PagesController#home as HTML Redirected to http://localhost::3000/maestrano/auth/saml/init Filter chain halted as :verify_maestrano_session rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ----------------------------------------------------------------------------------------------------------- GenericControllerTest: test_: with a maestrano session should not redirect to SSO init if sso is disabled. -----------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by PagesController#home as HTML Rendered pages/home.html.erb within layouts/application (0.1ms) Completed 200 OK in 1ms (Views: 0.9ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction ------------------------------------------------------------------------------ GenericControllerTest: test_: with no maestrano session should be successful. ------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by PagesController#home as HTML Rendered pages/home.html.erb within layouts/application (0.0ms) Completed 200 OK in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------- MetadataControllerTest: test_: authenticated should be successful. -------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Rails::MetadataController#index as HTML Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction ------------------------------------------------------------------- MetadataControllerTest: test_: unauthenticated should deny access. -------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Rails::MetadataController#index as HTML Filter chain halted as :authenticate_maestrano! rendered or redirected Completed 401 Unauthorized in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction ------------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: namespaced model should create the right migration. -------------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction --------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: namespaced model should edit the model content. ---------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction --------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should create the right migration. ---------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction ----------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should edit the model content. -----------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should include parameters if rails 3 and strong_parameter not present. ---------------------------------------------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction --------------------------------------------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should not include parameters if rails 3 and strong_parameter present. ---------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction ---------------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should not include parameters in rails 4. ----------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------- InstallGeneratorTest: test_: InstallGenerator should create the maestrano initializer. ---------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------- InstallGeneratorTest: test_: InstallGenerator should create the maestrano routes. ----------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction ---------------------------------------------------------------------------------------------------------- InstallGeneratorTest: test_: InstallGenerator should create the maestrano/account/group_users_controller. ----------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction ----------------------------------------------------------------------------------------------------- InstallGeneratorTest: test_: InstallGenerator should create the maestrano/account/groups_controller. -----------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction ------------------------------------------------------------------------------------------------ InstallGeneratorTest: test_: InstallGenerator should create the maestrano/auth/saml_controller. ------------------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" -------------------------------------------------------------------------------------------------------- UserGeneratorTest: test_: UserGenerator should call the active_record migration generator successfully. --------------------------------------------------------------------------------------------------------  (0.2ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------- UserGeneratorTest: test_: UserGenerator should call the mongoid migration generator successfully. --------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ----------------------------------------------------------------- GroupsControllerTest: test_: authenticated should be successful. -----------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Account::GroupsController#destroy as HTML Parameters: {"id"=>"cld-1"} Rendered text template (0.0ms) Completed 200 OK in 5ms (Views: 4.4ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ----------------------------------------------------------------- GroupsControllerTest: test_: unauthenticated should deny access. -----------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Account::GroupsController#destroy as HTML Parameters: {"id"=>"cld-1"} Filter chain halted as :authenticate_maestrano! rendered or redirected Completed 401 Unauthorized in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction --------------------------------------------------------------------- GroupUsersControllerTest: test_: authenticated should be successful. ---------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Account::GroupUsersController#destroy as HTML Parameters: {"group_id"=>"cld-1", "id"=>"usr-1"} Rendered text template (0.0ms) Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction --------------------------------------------------------------------- GroupUsersControllerTest: test_: unauthenticated should deny access. ---------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Account::GroupUsersController#destroy as HTML Parameters: {"group_id"=>"cld-1", "id"=>"usr-1"} Filter chain halted as :authenticate_maestrano! rendered or redirected Completed 401 Unauthorized in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction ---------------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase error should redirect to maestrano on any error. ----------------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Cannot validate SAML response: Bla Trace: ["/home/bruno/.rvm/gems/ruby-2.3.1/gems/mocha-1.1.0/lib/mocha/exception_raiser.rb:12:in `evaluate'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/mocha-1.1.0/lib/mocha/return_values.rb:20:in `next'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/mocha-1.1.0/lib/mocha/expectation.rb:569:in `invoke'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/mocha-1.1.0/lib/mocha/mock.rb:296:in `method_missing'", "/home/bruno/Workspace/maestrano-rails/app/controllers/maestrano/rails/saml_base_controller.rb:35:in `process_saml_response'", "/home/bruno/Workspace/maestrano-rails/app/controllers/maestrano/rails/saml_base_controller.rb:18:in `saml_response_transaction'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:432:in `block in make_lambda'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:291:in `block in halting_and_conditional'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:497:in `block in around'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:505:in `call'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:92:in `__run_callbacks__'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:778:in `_run_process_action_callbacks'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:81:in `run_callbacks'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionpack-4.2.7.1/lib/abstract_controller/callbacks.rb:19:in `process_action'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionpack-4.2.7.1/lib/action_controller/metal/rescue.rb:29:in `process_action'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionpack-4.2.7.1/lib/action_controller/metal/instrumentation.rb:32:in `block in process_action'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-4.2.7.1/lib/active_support/notifications.rb:164:in `block in instrument'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-4.2.7.1/lib/active_support/notifications/instrumenter.rb:20:in `instrument'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-4.2.7.1/lib/active_support/notifications.rb:164:in `instrument'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionpack-4.2.7.1/lib/action_controller/metal/instrumentation.rb:30:in `process_action'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionpack-4.2.7.1/lib/action_controller/metal/params_wrapper.rb:250:in `process_action'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activerecord-4.2.7.1/lib/active_record/railties/controller_runtime.rb:18:in `process_action'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionpack-4.2.7.1/lib/abstract_controller/base.rb:137:in `process'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionview-4.2.7.1/lib/action_view/rendering.rb:30:in `process'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionpack-4.2.7.1/lib/action_controller/test_case.rb:639:in `process'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionpack-4.2.7.1/lib/action_controller/test_case.rb:67:in `process'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionpack-4.2.7.1/lib/action_controller/test_case.rb:520:in `post'", "/home/bruno/Workspace/maestrano-rails/test/controllers/saml_controller_test.rb:117:in `block (3 levels) in '", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/shoulda-context-1.2.1/lib/shoulda/context/context.rb:413:in `instance_exec'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/shoulda-context-1.2.1/lib/shoulda/context/context.rb:413:in `block in create_test_from_should_hash'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest/test.rb:107:in `block (3 levels) in run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest/test.rb:204:in `capture_exceptions'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest/test.rb:104:in `block (2 levels) in run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest/test.rb:255:in `time_it'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest/test.rb:103:in `block in run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:348:in `on_signal'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest/test.rb:275:in `with_info_handler'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest/test.rb:102:in `run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:799:in `run_one_method'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:322:in `run_one_method'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:310:in `block (2 levels) in run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:309:in `each'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:309:in `block in run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:348:in `on_signal'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:335:in `with_info_handler'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:308:in `run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:158:in `block in __run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:158:in `map'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:158:in `__run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:135:in `run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:62:in `block in autorun'"] Redirected to http://api-sandbox.maestrano.io/app_access_unauthorized?err=internal Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should reset the maestrano session successfully if one already exists. --------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.1ms) rollback transaction --------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should set a saml_request in scope. ---------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction -------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should set the group_auth_hash in scope. --------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should set the maestrano session. -------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should set the user_auth_hash in scope. -------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------ SamlBaseControllerTest: test_: consume phase should set the user_group_rel_hash in scope. ------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: init phase should create a saml request successfully if a maestrano session is already set. ---------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#init as HTML Parameters: {"a_param"=>"value"} Redirected to http://idpprovider.com?r=request Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ----------------------------------------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: init phase should create a saml request using params and session and redirect the user. -----------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#init as HTML Parameters: {"a_param"=>"value"} Redirected to http://idpprovider.com?r=request Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------ MaestranoRailsTest: test_truth ------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: namespaced model should create the right migration. -------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: namespaced model should edit the model content. ---------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should create the right migration. ---------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction ----------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should edit the model content. -----------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction --------------------------------------------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should include parameters if rails 3 and strong_parameter not present. ---------------------------------------------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should not include parameters if rails 3 and strong_parameter present. ---------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should not include parameters in rails 4. ----------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------ ActiveRecordUserGeneratorTest: test_: namespaced model should create the right migration. ------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: namespaced model should edit the model content. --------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should create the right migration. --------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should edit the model content. ----------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should include parameters if rails 3 and strong_parameter not present. --------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should not include parameters if rails 3 and strong_parameter present. --------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction --------------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should not include parameters in rails 4. ---------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------------------- GroupGeneratorTest: test_: GroupGenerator should call the active_record migration generator successfully. ----------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------------- GroupGeneratorTest: test_: GroupGenerator should call the mongoid migration generator successfully. ----------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------- InstallGeneratorTest: test_: InstallGenerator should create the maestrano initializer. ---------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------- InstallGeneratorTest: test_: InstallGenerator should create the maestrano routes. ----------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------------------- InstallGeneratorTest: test_: InstallGenerator should create the maestrano/account/group_users_controller. ----------------------------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction ----------------------------------------------------------------------------------------------------- InstallGeneratorTest: test_: InstallGenerator should create the maestrano/account/groups_controller. -----------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------------ InstallGeneratorTest: test_: InstallGenerator should create the maestrano/auth/saml_controller. ------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: class methods find_or_create_for_maestrano class method should create a monster using the mapping block. --------------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "mno_monsters" ("first_name", "last_name", "email", "provider", "uid", "tenant", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["first_name", "Mon"], ["last_name", "Ster"], ["email", "monster@monst.com"], ["provider", "maestrano"], ["uid", "usr-2"], ["tenant", "default"], ["created_at", "2016-09-20 04:48:20.269166"], ["updated_at", "2016-09-20 04:48:20.269166"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: class methods find_or_create_for_maestrano class method should not return a MnoMonster from another provider if it exists. --------------------------------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "mno_monsters" ("first_name", "last_name", "email", "provider", "uid", "tenant", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["first_name", "John"], ["last_name", "Jack"], ["email", "monster@co.com"], ["provider", "someoneelse"], ["uid", "usr-1"], ["tenant", "default"], ["created_at", "2016-09-20 04:48:20.271139"], ["updated_at", "2016-09-20 04:48:20.271139"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "mno_monsters" ("provider", "uid", "tenant", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["provider", "maestrano"], ["uid", "usr-1"], ["tenant", "default"], ["created_at", "2016-09-20 04:48:20.272460"], ["updated_at", "2016-09-20 04:48:20.272460"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: class methods find_or_create_for_maestrano class method should return the MnoMonster if it exists. --------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "mno_monsters" ("first_name", "last_name", "email", "provider", "uid", "tenant", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["first_name", "John"], ["last_name", "Jack"], ["email", "monster@co.com"], ["provider", "maestrano"], ["uid", "usr-1"], ["tenant", "default"], ["created_at", "2016-09-20 04:48:20.273852"], ["updated_at", "2016-09-20 04:48:20.273852"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.1ms) rollback transaction --------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: class methods maestrano_*_via should have the right field definition. ---------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------------------------ MaestranoUserViaTest: test_: instance methods maestrano? should return false if provider is something else. ------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: instance methods maestrano? should return false if uid is blank. ----------------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ----------------------------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: instance methods maestrano? should return true if provider is maestrano and uid not null. -----------------------------------------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------------------------------------------------- MaestranoGroupViaTest: test_: class methods find_or_create_for_maestrano class method should create a monster using the mapping block. ---------------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "mno_crews" ("name", "provider", "uid", "tenant", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["name", "Monster Co"], ["provider", "maestrano"], ["uid", "usr-2"], ["tenant", "default"], ["created_at", "2016-09-20 04:48:20.283576"], ["updated_at", "2016-09-20 04:48:20.283576"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction ------------------------------------------------------------------------------------------------------------------------------------------------------ MaestranoGroupViaTest: test_: class methods find_or_create_for_maestrano class method should not return a MnoCrew from another provider if it exists. ------------------------------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "mno_crews" ("name", "provider", "uid", "tenant", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["name", "SomeOtherCrew"], ["provider", "someoneelse"], ["uid", "usr-1"], ["tenant", "default"], ["created_at", "2016-09-20 04:48:20.285512"], ["updated_at", "2016-09-20 04:48:20.285512"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "mno_crews" ("name", "provider", "uid", "tenant", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["name", "Your Group"], ["provider", "maestrano"], ["uid", "cld-1"], ["tenant", "default"], ["created_at", "2016-09-20 04:48:20.286825"], ["updated_at", "2016-09-20 04:48:20.286825"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction ------------------------------------------------------------------------------------------------------------------------------ MaestranoGroupViaTest: test_: class methods find_or_create_for_maestrano class method should return the MnoCrew if it exists. ------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "mno_crews" ("name", "provider", "uid", "tenant", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["name", "SomeCrew"], ["provider", "maestrano"], ["uid", "cld-1"], ["tenant", "default"], ["created_at", "2016-09-20 04:48:20.288338"], ["updated_at", "2016-09-20 04:48:20.288338"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.1ms) rollback transaction ---------------------------------------------------------------------------------------------------- MaestranoGroupViaTest: test_: class methods maestrano_*_via should have the right field definition. ----------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------------------------- MaestranoGroupViaTest: test_: instance methods maestrano? should return false if provider is something else. -------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ----------------------------------------------------------------------------------------------- MaestranoGroupViaTest: test_: instance methods maestrano? should return false if uid is blank. -----------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------------------------------------ MaestranoGroupViaTest: test_: instance methods maestrano? should return true if provider is maestrano and uid not null. ------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------------------------------- GenericControllerTest: test_: with a maestrano session should be successful if the maestrano session is still valid. ---------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction Processing by PagesController#home as HTML Rendered pages/home.html.erb within layouts/application (0.8ms) Completed 200 OK in 98ms (Views: 97.9ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction -------------------------------------------------------------------------------------------------------------------- GenericControllerTest: test_: with a maestrano session should initialize redirect to SSO initialization if invalid. --------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by PagesController#home as HTML Redirected to http://localhost::3000/maestrano/auth/saml/init Filter chain halted as :verify_maestrano_session rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ----------------------------------------------------------------------------------------------------------- GenericControllerTest: test_: with a maestrano session should not redirect to SSO init if sso is disabled. -----------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by PagesController#home as HTML Rendered pages/home.html.erb within layouts/application (0.0ms) Completed 200 OK in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------------------ GenericControllerTest: test_: with no maestrano session should be successful. ------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction Processing by PagesController#home as HTML Rendered pages/home.html.erb within layouts/application (0.0ms) Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------- MetadataControllerTest: test_: authenticated should be successful. -------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Rails::MetadataController#index as HTML Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------- MetadataControllerTest: test_: unauthenticated should deny access. -------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Rails::MetadataController#index as HTML Filter chain halted as :authenticate_maestrano! rendered or redirected Completed 401 Unauthorized in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" --------------------------------------------------------------------- GroupUsersControllerTest: test_: authenticated should be successful. ---------------------------------------------------------------------  (0.2ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Account::GroupUsersController#destroy as HTML Parameters: {"group_id"=>"cld-1", "id"=>"usr-1"} Rendered text template (0.0ms) Completed 200 OK in 5ms (Views: 4.3ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction --------------------------------------------------------------------- GroupUsersControllerTest: test_: unauthenticated should deny access. ---------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Account::GroupUsersController#destroy as HTML Parameters: {"group_id"=>"cld-1", "id"=>"usr-1"} Filter chain halted as :authenticate_maestrano! rendered or redirected Completed 401 Unauthorized in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction --------------------------------------------------------------------------------------- InstallGeneratorTest: test_: InstallGenerator should create the maestrano initializer. ---------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction ---------------------------------------------------------------------------------- InstallGeneratorTest: test_: InstallGenerator should create the maestrano routes. ----------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------------------- InstallGeneratorTest: test_: InstallGenerator should create the maestrano/account/group_users_controller. ----------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ----------------------------------------------------------------------------------------------------- InstallGeneratorTest: test_: InstallGenerator should create the maestrano/account/groups_controller. -----------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------------ InstallGeneratorTest: test_: InstallGenerator should create the maestrano/auth/saml_controller. ------------------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------------------------------- GenericControllerTest: test_: with a maestrano session should be successful if the maestrano session is still valid. ---------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction Processing by PagesController#home as HTML Rendered pages/home.html.erb within layouts/application (1.5ms) Completed 200 OK in 103ms (Views: 103.0ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction -------------------------------------------------------------------------------------------------------------------- GenericControllerTest: test_: with a maestrano session should initialize redirect to SSO initialization if invalid. --------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by PagesController#home as HTML Rendered pages/home.html.erb within layouts/application (0.0ms) Completed 200 OK in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ----------------------------------------------------------------------------------------------------------- GenericControllerTest: test_: with a maestrano session should not redirect to SSO init if sso is disabled. -----------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by PagesController#home as HTML Rendered pages/home.html.erb within layouts/application (0.0ms) Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------------------ GenericControllerTest: test_: with no maestrano session should be successful. ------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by PagesController#home as HTML Rendered pages/home.html.erb within layouts/application (0.0ms) Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------------------------------------------------- MaestranoGroupViaTest: test_: class methods find_or_create_for_maestrano class method should create a monster using the mapping block. ---------------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction MnoCrew Load (0.2ms) SELECT "mno_crews".* FROM "mno_crews" WHERE "mno_crews"."provider" = ? AND "mno_crews"."uid" = ? AND "mno_crews"."tenant" = ? ORDER BY "mno_crews"."id" ASC LIMIT 1 [["provider", "maestrano"], ["uid", "usr-2"], ["tenant", "default"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "mno_crews" ("name", "provider", "uid", "tenant", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["name", "Monster Co"], ["provider", "maestrano"], ["uid", "usr-2"], ["tenant", "default"], ["created_at", "2016-09-20 04:48:24.563927"], ["updated_at", "2016-09-20 04:48:24.563927"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction ------------------------------------------------------------------------------------------------------------------------------------------------------ MaestranoGroupViaTest: test_: class methods find_or_create_for_maestrano class method should not return a MnoCrew from another provider if it exists. ------------------------------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "mno_crews" ("name", "provider", "uid", "tenant", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["name", "SomeOtherCrew"], ["provider", "someoneelse"], ["uid", "usr-1"], ["tenant", "default"], ["created_at", "2016-09-20 04:48:24.566029"], ["updated_at", "2016-09-20 04:48:24.566029"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "mno_crews" ("name", "provider", "uid", "tenant", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["name", "Your Group"], ["provider", "maestrano"], ["uid", "cld-1"], ["tenant", "default"], ["created_at", "2016-09-20 04:48:24.567242"], ["updated_at", "2016-09-20 04:48:24.567242"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction ------------------------------------------------------------------------------------------------------------------------------ MaestranoGroupViaTest: test_: class methods find_or_create_for_maestrano class method should return the MnoCrew if it exists. ------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "mno_crews" ("name", "provider", "uid", "tenant", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["name", "SomeCrew"], ["provider", "maestrano"], ["uid", "cld-1"], ["tenant", "default"], ["created_at", "2016-09-20 04:48:24.568677"], ["updated_at", "2016-09-20 04:48:24.568677"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.1ms) rollback transaction ---------------------------------------------------------------------------------------------------- MaestranoGroupViaTest: test_: class methods maestrano_*_via should have the right field definition. ----------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------------------------- MaestranoGroupViaTest: test_: instance methods maestrano? should return false if provider is something else. -------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ----------------------------------------------------------------------------------------------- MaestranoGroupViaTest: test_: instance methods maestrano? should return false if uid is blank. -----------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------------------------------------ MaestranoGroupViaTest: test_: instance methods maestrano? should return true if provider is maestrano and uid not null. ------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------ MaestranoRailsTest: test_truth ------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: class methods find_or_create_for_maestrano class method should create a monster using the mapping block. --------------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "mno_monsters" ("first_name", "last_name", "email", "provider", "uid", "tenant", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["first_name", "Mon"], ["last_name", "Ster"], ["email", "monster@monst.com"], ["provider", "maestrano"], ["uid", "usr-2"], ["tenant", "default"], ["created_at", "2016-09-20 04:48:24.581904"], ["updated_at", "2016-09-20 04:48:24.581904"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: class methods find_or_create_for_maestrano class method should not return a MnoMonster from another provider if it exists. --------------------------------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "mno_monsters" ("first_name", "last_name", "email", "provider", "uid", "tenant", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["first_name", "John"], ["last_name", "Jack"], ["email", "monster@co.com"], ["provider", "someoneelse"], ["uid", "usr-1"], ["tenant", "default"], ["created_at", "2016-09-20 04:48:24.583921"], ["updated_at", "2016-09-20 04:48:24.583921"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "mno_monsters" ("provider", "uid", "tenant", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["provider", "maestrano"], ["uid", "usr-1"], ["tenant", "default"], ["created_at", "2016-09-20 04:48:24.585396"], ["updated_at", "2016-09-20 04:48:24.585396"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: class methods find_or_create_for_maestrano class method should return the MnoMonster if it exists. --------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "mno_monsters" ("first_name", "last_name", "email", "provider", "uid", "tenant", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["first_name", "John"], ["last_name", "Jack"], ["email", "monster@co.com"], ["provider", "maestrano"], ["uid", "usr-1"], ["tenant", "default"], ["created_at", "2016-09-20 04:48:24.586914"], ["updated_at", "2016-09-20 04:48:24.586914"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.1ms) rollback transaction --------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: class methods maestrano_*_via should have the right field definition. ---------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------------------------ MaestranoUserViaTest: test_: instance methods maestrano? should return false if provider is something else. ------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: instance methods maestrano? should return false if uid is blank. ----------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ----------------------------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: instance methods maestrano? should return true if provider is maestrano and uid not null. -----------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase error should redirect to maestrano on any error. ----------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Cannot validate SAML response: Bla Trace: ["/home/bruno/.rvm/gems/ruby-2.3.1/gems/mocha-1.1.0/lib/mocha/exception_raiser.rb:12:in `evaluate'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/mocha-1.1.0/lib/mocha/return_values.rb:20:in `next'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/mocha-1.1.0/lib/mocha/expectation.rb:569:in `invoke'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/mocha-1.1.0/lib/mocha/mock.rb:296:in `method_missing'", "/home/bruno/Workspace/maestrano-rails/app/controllers/maestrano/rails/saml_base_controller.rb:35:in `process_saml_response'", "/home/bruno/Workspace/maestrano-rails/app/controllers/maestrano/rails/saml_base_controller.rb:18:in `saml_response_transaction'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:432:in `block in make_lambda'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:291:in `block in halting_and_conditional'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:497:in `block in around'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:505:in `call'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:92:in `__run_callbacks__'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:778:in `_run_process_action_callbacks'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:81:in `run_callbacks'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionpack-4.2.7.1/lib/abstract_controller/callbacks.rb:19:in `process_action'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionpack-4.2.7.1/lib/action_controller/metal/rescue.rb:29:in `process_action'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionpack-4.2.7.1/lib/action_controller/metal/instrumentation.rb:32:in `block in process_action'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-4.2.7.1/lib/active_support/notifications.rb:164:in `block in instrument'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-4.2.7.1/lib/active_support/notifications/instrumenter.rb:20:in `instrument'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-4.2.7.1/lib/active_support/notifications.rb:164:in `instrument'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionpack-4.2.7.1/lib/action_controller/metal/instrumentation.rb:30:in `process_action'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionpack-4.2.7.1/lib/action_controller/metal/params_wrapper.rb:250:in `process_action'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activerecord-4.2.7.1/lib/active_record/railties/controller_runtime.rb:18:in `process_action'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionpack-4.2.7.1/lib/abstract_controller/base.rb:137:in `process'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionview-4.2.7.1/lib/action_view/rendering.rb:30:in `process'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionpack-4.2.7.1/lib/action_controller/test_case.rb:639:in `process'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionpack-4.2.7.1/lib/action_controller/test_case.rb:67:in `process'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionpack-4.2.7.1/lib/action_controller/test_case.rb:520:in `post'", "/home/bruno/Workspace/maestrano-rails/test/controllers/saml_controller_test.rb:117:in `block (3 levels) in '", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/shoulda-context-1.2.1/lib/shoulda/context/context.rb:413:in `instance_exec'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/shoulda-context-1.2.1/lib/shoulda/context/context.rb:413:in `block in create_test_from_should_hash'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest/test.rb:107:in `block (3 levels) in run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest/test.rb:204:in `capture_exceptions'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest/test.rb:104:in `block (2 levels) in run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest/test.rb:255:in `time_it'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest/test.rb:103:in `block in run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:348:in `on_signal'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest/test.rb:275:in `with_info_handler'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest/test.rb:102:in `run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:799:in `run_one_method'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:322:in `run_one_method'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:310:in `block (2 levels) in run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:309:in `each'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:309:in `block in run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:348:in `on_signal'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:335:in `with_info_handler'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:308:in `run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:158:in `block in __run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:158:in `map'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:158:in `__run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:135:in `run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:62:in `block in autorun'"] Redirected to http://api-sandbox.maestrano.io/app_access_unauthorized?err=internal Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should reset the maestrano session successfully if one already exists. --------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction --------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should set a saml_request in scope. ---------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction -------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should set the group_auth_hash in scope. --------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should set the maestrano session. -------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should set the user_auth_hash in scope. -------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------ SamlBaseControllerTest: test_: consume phase should set the user_group_rel_hash in scope. ------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.1ms) rollback transaction --------------------------------------------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: init phase should create a saml request successfully if a maestrano session is already set. ---------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#init as HTML Parameters: {"a_param"=>"value"} Redirected to http://idpprovider.com?r=request Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.1ms) rollback transaction ----------------------------------------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: init phase should create a saml request using params and session and redirect the user. -----------------------------------------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#init as HTML Parameters: {"a_param"=>"value"} Redirected to http://idpprovider.com?r=request Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) rollback transaction ---------------------------------------------------------------------------------------------------------- GroupGeneratorTest: test_: GroupGenerator should call the active_record migration generator successfully. ----------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction ---------------------------------------------------------------------------------------------------- GroupGeneratorTest: test_: GroupGenerator should call the mongoid migration generator successfully. ----------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------------- UserGeneratorTest: test_: UserGenerator should call the active_record migration generator successfully. --------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction -------------------------------------------------------------------------------------------------- UserGeneratorTest: test_: UserGenerator should call the mongoid migration generator successfully. --------------------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction ------------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: namespaced model should create the right migration. -------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: namespaced model should edit the model content. ---------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should create the right migration. ---------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ----------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should edit the model content. -----------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should include parameters if rails 3 and strong_parameter not present. ---------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should not include parameters if rails 3 and strong_parameter present. ---------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should not include parameters in rails 4. ----------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------ ActiveRecordUserGeneratorTest: test_: namespaced model should create the right migration. ------------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction -------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: namespaced model should edit the model content. --------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should create the right migration. --------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should edit the model content. ----------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should include parameters if rails 3 and strong_parameter not present. --------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should not include parameters if rails 3 and strong_parameter present. --------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should not include parameters in rails 4. ---------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------- MetadataControllerTest: test_: authenticated should be successful. -------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Rails::MetadataController#index as HTML Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------- MetadataControllerTest: test_: unauthenticated should deny access. -------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction Processing by Maestrano::Rails::MetadataController#index as HTML Filter chain halted as :authenticate_maestrano! rendered or redirected Completed 401 Unauthorized in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ----------------------------------------------------------------- GroupsControllerTest: test_: authenticated should be successful. -----------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Account::GroupsController#destroy as HTML Parameters: {"id"=>"cld-1"} Rendered text template (0.0ms) Completed 200 OK in 3ms (Views: 2.2ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction ----------------------------------------------------------------- GroupsControllerTest: test_: unauthenticated should deny access. -----------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Account::GroupsController#destroy as HTML Parameters: {"id"=>"cld-1"} Filter chain halted as :authenticate_maestrano! rendered or redirected Completed 401 Unauthorized in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ------------------------------------------------------------------- MetadataControllerTest: test_: authenticated should be successful. -------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Rails::MetadataController#index as HTML Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------- MetadataControllerTest: test_: unauthenticated should deny access. -------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Rails::MetadataController#index as HTML Filter chain halted as :authenticate_maestrano! rendered or redirected Completed 401 Unauthorized in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction --------------------------------------------------------------------------------------- InstallGeneratorTest: test_: InstallGenerator should create the maestrano initializer. ---------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------- InstallGeneratorTest: test_: InstallGenerator should create the maestrano routes. ----------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------------------- InstallGeneratorTest: test_: InstallGenerator should create the maestrano/account/group_users_controller. ----------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ----------------------------------------------------------------------------------------------------- InstallGeneratorTest: test_: InstallGenerator should create the maestrano/account/groups_controller. -----------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction ------------------------------------------------------------------------------------------------ InstallGeneratorTest: test_: InstallGenerator should create the maestrano/auth/saml_controller. ------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: class methods find_or_create_for_maestrano class method should create a monster using the mapping block. --------------------------------------------------------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "mno_monsters" ("first_name", "last_name", "email", "provider", "uid", "tenant", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["first_name", "Mon"], ["last_name", "Ster"], ["email", "monster@monst.com"], ["provider", "maestrano"], ["uid", "usr-2"], ["tenant", "default"], ["created_at", "2016-09-20 07:02:52.581055"], ["updated_at", "2016-09-20 07:02:52.581055"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: class methods find_or_create_for_maestrano class method should not return a MnoMonster from another provider if it exists. --------------------------------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "mno_monsters" ("first_name", "last_name", "email", "provider", "uid", "tenant", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["first_name", "John"], ["last_name", "Jack"], ["email", "monster@co.com"], ["provider", "someoneelse"], ["uid", "usr-1"], ["tenant", "default"], ["created_at", "2016-09-20 07:02:52.583131"], ["updated_at", "2016-09-20 07:02:52.583131"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "mno_monsters" ("provider", "uid", "tenant", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["provider", "maestrano"], ["uid", "usr-1"], ["tenant", "default"], ["created_at", "2016-09-20 07:02:52.584472"], ["updated_at", "2016-09-20 07:02:52.584472"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: class methods find_or_create_for_maestrano class method should return the MnoMonster if it exists. --------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "mno_monsters" ("first_name", "last_name", "email", "provider", "uid", "tenant", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["first_name", "John"], ["last_name", "Jack"], ["email", "monster@co.com"], ["provider", "maestrano"], ["uid", "usr-1"], ["tenant", "default"], ["created_at", "2016-09-20 07:02:52.585872"], ["updated_at", "2016-09-20 07:02:52.585872"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.1ms) rollback transaction --------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: class methods maestrano_*_via should have the right field definition. ---------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------------------------ MaestranoUserViaTest: test_: instance methods maestrano? should return false if provider is something else. ------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: instance methods maestrano? should return false if uid is blank. ----------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ----------------------------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: instance methods maestrano? should return true if provider is maestrano and uid not null. -----------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------------------- GroupGeneratorTest: test_: GroupGenerator should call the active_record migration generator successfully. ----------------------------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------------- GroupGeneratorTest: test_: GroupGenerator should call the mongoid migration generator successfully. ----------------------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction --------------------------------------------------------------------- GroupUsersControllerTest: test_: authenticated should be successful. ---------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Account::GroupUsersController#destroy as HTML Parameters: {"group_id"=>"cld-1", "id"=>"usr-1"} Rendered text template (0.0ms) Completed 200 OK in 5ms (Views: 4.9ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction --------------------------------------------------------------------- GroupUsersControllerTest: test_: unauthenticated should deny access. ---------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Account::GroupUsersController#destroy as HTML Parameters: {"group_id"=>"cld-1", "id"=>"usr-1"} Filter chain halted as :authenticate_maestrano! rendered or redirected Completed 401 Unauthorized in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------ ActiveRecordUserGeneratorTest: test_: namespaced model should create the right migration. ------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: namespaced model should edit the model content. --------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should create the right migration. --------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction ---------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should edit the model content. ----------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should include parameters if rails 3 and strong_parameter not present. --------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should not include parameters if rails 3 and strong_parameter present. --------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should not include parameters in rails 4. ---------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------ MaestranoRailsTest: test_truth ------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ----------------------------------------------------------------- GroupsControllerTest: test_: authenticated should be successful. -----------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Account::GroupsController#destroy as HTML Parameters: {"id"=>"cld-1"} Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.8ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ----------------------------------------------------------------- GroupsControllerTest: test_: unauthenticated should deny access. -----------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Account::GroupsController#destroy as HTML Parameters: {"id"=>"cld-1"} Filter chain halted as :authenticate_maestrano! rendered or redirected Completed 401 Unauthorized in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------------------------------- GenericControllerTest: test_: with a maestrano session should be successful if the maestrano session is still valid. ---------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by PagesController#home as HTML Rendered pages/home.html.erb within layouts/application (0.8ms) Completed 200 OK in 104ms (Views: 103.9ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction -------------------------------------------------------------------------------------------------------------------- GenericControllerTest: test_: with a maestrano session should initialize redirect to SSO initialization if invalid. --------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by PagesController#home as HTML Redirected to http://localhost::3000/maestrano/auth/saml/init Filter chain halted as :verify_maestrano_session rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ----------------------------------------------------------------------------------------------------------- GenericControllerTest: test_: with a maestrano session should not redirect to SSO init if sso is disabled. -----------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by PagesController#home as HTML Rendered pages/home.html.erb within layouts/application (0.0ms) Completed 200 OK in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------------------ GenericControllerTest: test_: with no maestrano session should be successful. ------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by PagesController#home as HTML Rendered pages/home.html.erb within layouts/application (0.0ms) Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: namespaced model should create the right migration. -------------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: namespaced model should edit the model content. ---------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction --------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should create the right migration. ---------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ----------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should edit the model content. -----------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction --------------------------------------------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should include parameters if rails 3 and strong_parameter not present. ---------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should not include parameters if rails 3 and strong_parameter present. ---------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should not include parameters in rails 4. ----------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction ---------------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase error should redirect to maestrano on any error. ----------------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Cannot validate SAML response: Bla Trace: ["/home/bruno/.rvm/gems/ruby-2.3.1/gems/mocha-1.1.0/lib/mocha/exception_raiser.rb:12:in `evaluate'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/mocha-1.1.0/lib/mocha/return_values.rb:20:in `next'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/mocha-1.1.0/lib/mocha/expectation.rb:569:in `invoke'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/mocha-1.1.0/lib/mocha/mock.rb:296:in `method_missing'", "/home/bruno/Workspace/maestrano-rails/app/controllers/maestrano/rails/saml_base_controller.rb:35:in `process_saml_response'", "/home/bruno/Workspace/maestrano-rails/app/controllers/maestrano/rails/saml_base_controller.rb:18:in `saml_response_transaction'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:432:in `block in make_lambda'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:291:in `block in halting_and_conditional'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:497:in `block in around'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:505:in `call'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:92:in `__run_callbacks__'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:778:in `_run_process_action_callbacks'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:81:in `run_callbacks'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionpack-4.2.7.1/lib/abstract_controller/callbacks.rb:19:in `process_action'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionpack-4.2.7.1/lib/action_controller/metal/rescue.rb:29:in `process_action'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionpack-4.2.7.1/lib/action_controller/metal/instrumentation.rb:32:in `block in process_action'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-4.2.7.1/lib/active_support/notifications.rb:164:in `block in instrument'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-4.2.7.1/lib/active_support/notifications/instrumenter.rb:20:in `instrument'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activesupport-4.2.7.1/lib/active_support/notifications.rb:164:in `instrument'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionpack-4.2.7.1/lib/action_controller/metal/instrumentation.rb:30:in `process_action'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionpack-4.2.7.1/lib/action_controller/metal/params_wrapper.rb:250:in `process_action'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/activerecord-4.2.7.1/lib/active_record/railties/controller_runtime.rb:18:in `process_action'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionpack-4.2.7.1/lib/abstract_controller/base.rb:137:in `process'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionview-4.2.7.1/lib/action_view/rendering.rb:30:in `process'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionpack-4.2.7.1/lib/action_controller/test_case.rb:639:in `process'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionpack-4.2.7.1/lib/action_controller/test_case.rb:67:in `process'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/actionpack-4.2.7.1/lib/action_controller/test_case.rb:520:in `post'", "/home/bruno/Workspace/maestrano-rails/test/controllers/saml_controller_test.rb:117:in `block (3 levels) in '", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/shoulda-context-1.2.1/lib/shoulda/context/context.rb:413:in `instance_exec'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/shoulda-context-1.2.1/lib/shoulda/context/context.rb:413:in `block in create_test_from_should_hash'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest/test.rb:107:in `block (3 levels) in run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest/test.rb:204:in `capture_exceptions'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest/test.rb:104:in `block (2 levels) in run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest/test.rb:255:in `time_it'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest/test.rb:103:in `block in run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:348:in `on_signal'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest/test.rb:275:in `with_info_handler'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest/test.rb:102:in `run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:799:in `run_one_method'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:322:in `run_one_method'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:310:in `block (2 levels) in run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:309:in `each'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:309:in `block in run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:348:in `on_signal'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:335:in `with_info_handler'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:308:in `run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:158:in `block in __run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:158:in `map'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:158:in `__run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:135:in `run'", "/home/bruno/.rvm/gems/ruby-2.3.1/gems/minitest-5.9.0/lib/minitest.rb:62:in `block in autorun'"] Redirected to http://api-sandbox.maestrano.io/app_access_unauthorized?err=internal Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.1ms) rollback transaction -------------------------------------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should reset the maestrano session successfully if one already exists. --------------------------------------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction --------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should set a saml_request in scope. ---------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction -------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should set the group_auth_hash in scope. --------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should set the maestrano session. -------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should set the user_auth_hash in scope. -------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------ SamlBaseControllerTest: test_: consume phase should set the user_group_rel_hash in scope. ------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: init phase should create a saml request successfully if a maestrano session is already set. ---------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#init as HTML Parameters: {"a_param"=>"value"} Redirected to http://idpprovider.com?r=request Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ----------------------------------------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: init phase should create a saml request using params and session and redirect the user. -----------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#init as HTML Parameters: {"a_param"=>"value"} Redirected to http://idpprovider.com?r=request Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------------------------------------------------- MaestranoGroupViaTest: test_: class methods find_or_create_for_maestrano class method should create a monster using the mapping block. ---------------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "mno_crews" ("name", "provider", "uid", "tenant", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["name", "Monster Co"], ["provider", "maestrano"], ["uid", "usr-2"], ["tenant", "default"], ["created_at", "2016-09-20 07:02:52.811305"], ["updated_at", "2016-09-20 07:02:52.811305"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction ------------------------------------------------------------------------------------------------------------------------------------------------------ MaestranoGroupViaTest: test_: class methods find_or_create_for_maestrano class method should not return a MnoCrew from another provider if it exists. ------------------------------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "mno_crews" ("name", "provider", "uid", "tenant", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["name", "SomeOtherCrew"], ["provider", "someoneelse"], ["uid", "usr-1"], ["tenant", "default"], ["created_at", "2016-09-20 07:02:52.813045"], ["updated_at", "2016-09-20 07:02:52.813045"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "mno_crews" ("name", "provider", "uid", "tenant", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["name", "Your Group"], ["provider", "maestrano"], ["uid", "cld-1"], ["tenant", "default"], ["created_at", "2016-09-20 07:02:52.814554"], ["updated_at", "2016-09-20 07:02:52.814554"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction ------------------------------------------------------------------------------------------------------------------------------ MaestranoGroupViaTest: test_: class methods find_or_create_for_maestrano class method should return the MnoCrew if it exists. ------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "mno_crews" ("name", "provider", "uid", "tenant", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["name", "SomeCrew"], ["provider", "maestrano"], ["uid", "cld-1"], ["tenant", "default"], ["created_at", "2016-09-20 07:02:52.816310"], ["updated_at", "2016-09-20 07:02:52.816310"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 MnoCrew Load (0.1ms) SELECT "mno_crews".* FROM "mno_crews" WHERE "mno_crews"."provider" = ? AND "mno_crews"."uid" = ? AND "mno_crews"."tenant" = ? ORDER BY "mno_crews"."id" ASC LIMIT 1 [["provider", "maestrano"], ["uid", "cld-1"], ["tenant", "default"]]  (0.1ms) rollback transaction ---------------------------------------------------------------------------------------------------- MaestranoGroupViaTest: test_: class methods maestrano_*_via should have the right field definition. ----------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------------------------- MaestranoGroupViaTest: test_: instance methods maestrano? should return false if provider is something else. -------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ----------------------------------------------------------------------------------------------- MaestranoGroupViaTest: test_: instance methods maestrano? should return false if uid is blank. -----------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------------------------------------ MaestranoGroupViaTest: test_: instance methods maestrano? should return true if provider is maestrano and uid not null. ------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------------- UserGeneratorTest: test_: UserGenerator should call the active_record migration generator successfully. --------------------------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------- UserGeneratorTest: test_: UserGenerator should call the mongoid migration generator successfully. --------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ------------------------------------------------------------------- MetadataControllerTest: test_: authenticated should be successful. -------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Rails::MetadataController#index as HTML Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------- MetadataControllerTest: test_: unauthenticated should deny access. -------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Rails::MetadataController#index as HTML Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction ------------------------------ MaestranoRailsTest: test_truth ------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase error should redirect to maestrano on any error. ----------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Cannot validate SAML response: Bla 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 '", "/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'"] Redirected to http://api-sandbox.maestrano.io/app_access_unauthorized?err=internal Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should reset the maestrano session successfully if one already exists. --------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction --------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should set a saml_request in scope. ---------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction -------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should set the group_auth_hash in scope. --------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should set the maestrano session. -------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should set the user_auth_hash in scope. -------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------ SamlBaseControllerTest: test_: consume phase should set the user_group_rel_hash in scope. ------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) rollback transaction --------------------------------------------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: init phase should create a saml request successfully if a maestrano session is already set. ---------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#init as HTML Parameters: {"a_param"=>"value"} Redirected to http://idpprovider.com?r=request Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ----------------------------------------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: init phase should create a saml request using params and session and redirect the user. -----------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#init as HTML Parameters: {"a_param"=>"value"} Redirected to http://idpprovider.com?r=request Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------------------------------- GenericControllerTest: test_: with a maestrano session should be successful if the maestrano session is still valid. ---------------------------------------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by PagesController#home as HTML Rendered pages/home.html.erb within layouts/application (1.0ms) Completed 200 OK in 112ms (Views: 111.9ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction -------------------------------------------------------------------------------------------------------------------- GenericControllerTest: test_: with a maestrano session should initialize redirect to SSO initialization if invalid. --------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction Processing by PagesController#home as HTML Rendered pages/home.html.erb within layouts/application (0.0ms) Completed 200 OK in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ----------------------------------------------------------------------------------------------------------- GenericControllerTest: test_: with a maestrano session should not redirect to SSO init if sso is disabled. -----------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by PagesController#home as HTML Rendered pages/home.html.erb within layouts/application (0.0ms) Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------------------ GenericControllerTest: test_: with no maestrano session should be successful. ------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by PagesController#home as HTML Rendered pages/home.html.erb within layouts/application (0.0ms) Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: class methods find_or_create_for_maestrano class method should create a monster using the mapping block. --------------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction 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"]]  (0.0ms) SAVEPOINT active_record_1 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: class methods find_or_create_for_maestrano class method should not return a MnoMonster from another provider if it exists. --------------------------------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.0ms) SAVEPOINT active_record_1 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: class methods find_or_create_for_maestrano class method should return the MnoMonster if it exists. --------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.2ms) rollback transaction --------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: class methods maestrano_*_via should have the right field definition. ---------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------------------------ MaestranoUserViaTest: test_: instance methods maestrano? should return false if provider is something else. ------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: instance methods maestrano? should return false if uid is blank. ----------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ----------------------------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: instance methods maestrano? should return true if provider is maestrano and uid not null. -----------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------ ActiveRecordUserGeneratorTest: test_: namespaced model should create the right migration. ------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: namespaced model should edit the model content. --------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should create the right migration. --------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should edit the model content. ----------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should include parameters if rails 3 and strong_parameter not present. --------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should not include parameters if rails 3 and strong_parameter present. --------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should not include parameters in rails 4. ---------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------- InstallGeneratorTest: test_: InstallGenerator should create the maestrano initializer. ---------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------- InstallGeneratorTest: test_: InstallGenerator should create the maestrano routes. ----------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction ---------------------------------------------------------------------------------------------------------- InstallGeneratorTest: test_: InstallGenerator should create the maestrano/account/group_users_controller. ----------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction ----------------------------------------------------------------------------------------------------- InstallGeneratorTest: test_: InstallGenerator should create the maestrano/account/groups_controller. -----------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------------ InstallGeneratorTest: test_: InstallGenerator should create the maestrano/auth/saml_controller. ------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------------------------------------------------- MaestranoGroupViaTest: test_: class methods find_or_create_for_maestrano class method should create a monster using the mapping block. ---------------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction 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"]]  (0.0ms) SAVEPOINT active_record_1 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction ------------------------------------------------------------------------------------------------------------------------------------------------------ MaestranoGroupViaTest: test_: class methods find_or_create_for_maestrano class method should not return a MnoCrew from another provider if it exists. ------------------------------------------------------------------------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.0ms) SAVEPOINT active_record_1 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction ------------------------------------------------------------------------------------------------------------------------------ MaestranoGroupViaTest: test_: class methods find_or_create_for_maestrano class method should return the MnoCrew if it exists. ------------------------------------------------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.1ms) rollback transaction ---------------------------------------------------------------------------------------------------- MaestranoGroupViaTest: test_: class methods maestrano_*_via should have the right field definition. ----------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------------------------- MaestranoGroupViaTest: test_: instance methods maestrano? should return false if provider is something else. -------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ----------------------------------------------------------------------------------------------- MaestranoGroupViaTest: test_: instance methods maestrano? should return false if uid is blank. -----------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------------------------------------ MaestranoGroupViaTest: test_: instance methods maestrano? should return true if provider is maestrano and uid not null. ------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------- GroupUsersControllerTest: test_: authenticated should be successful. ---------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Account::GroupUsersController#destroy as HTML Parameters: {"group_id"=>"cld-1", "id"=>"usr-1"} Rendered text template (0.0ms) Completed 200 OK in 4ms (Views: 3.1ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction --------------------------------------------------------------------- GroupUsersControllerTest: test_: unauthenticated should deny access. ---------------------------------------------------------------------  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Account::GroupUsersController#destroy as HTML Parameters: {"group_id"=>"cld-1", "id"=>"usr-1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.2ms) rollback transaction -------------------------------------------------------------------------------------------------------- UserGeneratorTest: test_: UserGenerator should call the active_record migration generator successfully. --------------------------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction -------------------------------------------------------------------------------------------------- UserGeneratorTest: test_: UserGenerator should call the mongoid migration generator successfully. --------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: namespaced model should create the right migration. -------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: namespaced model should edit the model content. ---------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction --------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should create the right migration. ---------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction ----------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should edit the model content. -----------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should include parameters if rails 3 and strong_parameter not present. ---------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should not include parameters if rails 3 and strong_parameter present. ---------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should not include parameters in rails 4. ----------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ----------------------------------------------------------------- GroupsControllerTest: test_: authenticated should be successful. -----------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Account::GroupsController#destroy as HTML Parameters: {"id"=>"cld-1"} Rendered text template (0.0ms) Completed 200 OK in 3ms (Views: 2.3ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ----------------------------------------------------------------- GroupsControllerTest: test_: unauthenticated should deny access. -----------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Account::GroupsController#destroy as HTML Parameters: {"id"=>"cld-1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction ---------------------------------------------------------------------------------------------------------- GroupGeneratorTest: test_: GroupGenerator should call the active_record migration generator successfully. ----------------------------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction ---------------------------------------------------------------------------------------------------- GroupGeneratorTest: test_: GroupGenerator should call the mongoid migration generator successfully. ----------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" -------------------------------------------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: class methods find_or_create_for_maestrano class method should create a monster using the mapping block. --------------------------------------------------------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction 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"]]  (0.0ms) SAVEPOINT active_record_1 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: class methods find_or_create_for_maestrano class method should not return a MnoMonster from another provider if it exists. --------------------------------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.0ms) SAVEPOINT active_record_1 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: class methods find_or_create_for_maestrano class method should return the MnoMonster if it exists. --------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.1ms) rollback transaction --------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: class methods maestrano_*_via should have the right field definition. ---------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------------------------ MaestranoUserViaTest: test_: instance methods maestrano? should return false if provider is something else. ------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: instance methods maestrano? should return false if uid is blank. ----------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ----------------------------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: instance methods maestrano? should return true if provider is maestrano and uid not null. -----------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: namespaced model should create the right migration. -------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: namespaced model should edit the model content. ---------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction --------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should create the right migration. ---------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.2ms) rollback transaction ----------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should edit the model content. -----------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction --------------------------------------------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should include parameters if rails 3 and strong_parameter not present. ---------------------------------------------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should not include parameters if rails 3 and strong_parameter present. ---------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should not include parameters in rails 4. ----------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------------------------------------------------- MaestranoGroupViaTest: test_: class methods find_or_create_for_maestrano class method should create a monster using the mapping block. ---------------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction 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"]]  (0.0ms) SAVEPOINT active_record_1 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction ------------------------------------------------------------------------------------------------------------------------------------------------------ MaestranoGroupViaTest: test_: class methods find_or_create_for_maestrano class method should not return a MnoCrew from another provider if it exists. ------------------------------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.0ms) SAVEPOINT active_record_1 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction ------------------------------------------------------------------------------------------------------------------------------ MaestranoGroupViaTest: test_: class methods find_or_create_for_maestrano class method should return the MnoCrew if it exists. ------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.1ms) rollback transaction ---------------------------------------------------------------------------------------------------- MaestranoGroupViaTest: test_: class methods maestrano_*_via should have the right field definition. ----------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------------------------- MaestranoGroupViaTest: test_: instance methods maestrano? should return false if provider is something else. -------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ----------------------------------------------------------------------------------------------- MaestranoGroupViaTest: test_: instance methods maestrano? should return false if uid is blank. -----------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------------------------------------ MaestranoGroupViaTest: test_: instance methods maestrano? should return true if provider is maestrano and uid not null. ------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ----------------------------------------------------------------- GroupsControllerTest: test_: authenticated should be successful. -----------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Account::GroupsController#destroy as HTML Parameters: {"id"=>"cld-1"} Rendered text template (0.0ms) Completed 200 OK in 8ms (Views: 8.1ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction ----------------------------------------------------------------- GroupsControllerTest: test_: unauthenticated should deny access. -----------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Account::GroupsController#destroy as HTML Parameters: {"id"=>"cld-1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction --------------------------------------------------------------------------------------- InstallGeneratorTest: test_: InstallGenerator should create the maestrano initializer. ---------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------- InstallGeneratorTest: test_: InstallGenerator should create the maestrano routes. ----------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------------------- InstallGeneratorTest: test_: InstallGenerator should create the maestrano/account/group_users_controller. ----------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ----------------------------------------------------------------------------------------------------- InstallGeneratorTest: test_: InstallGenerator should create the maestrano/account/groups_controller. -----------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------------ InstallGeneratorTest: test_: InstallGenerator should create the maestrano/auth/saml_controller. ------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------------------------------- GenericControllerTest: test_: with a maestrano session should be successful if the maestrano session is still valid. ---------------------------------------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by PagesController#home as HTML Rendered pages/home.html.erb within layouts/application (1.3ms) Completed 200 OK in 105ms (Views: 104.2ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction -------------------------------------------------------------------------------------------------------------------- GenericControllerTest: test_: with a maestrano session should initialize redirect to SSO initialization if invalid. --------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by PagesController#home as HTML Redirected to http://localhost::3000/maestrano/auth/saml/init Filter chain halted as :verify_maestrano_session rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ----------------------------------------------------------------------------------------------------------- GenericControllerTest: test_: with a maestrano session should not redirect to SSO init if sso is disabled. -----------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by PagesController#home as HTML Rendered pages/home.html.erb within layouts/application (0.0ms) Completed 200 OK in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------------------ GenericControllerTest: test_: with no maestrano session should be successful. ------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by PagesController#home as HTML Rendered pages/home.html.erb within layouts/application (0.0ms) Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase error should redirect to maestrano on any error. ----------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Cannot validate SAML response: Bla 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 '", "/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'"] Redirected to http://api-sandbox.maestrano.io/app_access_unauthorized?err=internal Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should reset the maestrano session successfully if one already exists. --------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.1ms) rollback transaction --------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should set a saml_request in scope. ---------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction -------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should set the group_auth_hash in scope. --------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should set the maestrano session. -------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should set the user_auth_hash in scope. -------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------ SamlBaseControllerTest: test_: consume phase should set the user_group_rel_hash in scope. ------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: init phase should create a saml request successfully if a maestrano session is already set. ---------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#init as HTML Parameters: {"a_param"=>"value"} Redirected to http://idpprovider.com?r=request Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ----------------------------------------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: init phase should create a saml request using params and session and redirect the user. -----------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#init as HTML Parameters: {"a_param"=>"value"} Redirected to http://idpprovider.com?r=request Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction --------------------------------------------------------------------- GroupUsersControllerTest: test_: authenticated should be successful. ---------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Account::GroupUsersController#destroy as HTML Parameters: {"group_id"=>"cld-1", "id"=>"usr-1"} Rendered text template (0.0ms) Completed 200 OK in 3ms (Views: 3.0ms | ActiveRecord: 0.0ms)  (0.2ms) rollback transaction --------------------------------------------------------------------- GroupUsersControllerTest: test_: unauthenticated should deny access. ---------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Account::GroupUsersController#destroy as HTML Parameters: {"group_id"=>"cld-1", "id"=>"usr-1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------ ActiveRecordUserGeneratorTest: test_: namespaced model should create the right migration. ------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: namespaced model should edit the model content. --------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should create the right migration. --------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should edit the model content. ----------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should include parameters if rails 3 and strong_parameter not present. --------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should not include parameters if rails 3 and strong_parameter present. --------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should not include parameters in rails 4. ---------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------- MetadataControllerTest: test_: authenticated should be successful. -------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Rails::MetadataController#index as HTML Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------- MetadataControllerTest: test_: unauthenticated should deny access. -------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Rails::MetadataController#index as HTML Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction -------------------------------------------------------------------------------------------------------- UserGeneratorTest: test_: UserGenerator should call the active_record migration generator successfully. --------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction -------------------------------------------------------------------------------------------------- UserGeneratorTest: test_: UserGenerator should call the mongoid migration generator successfully. --------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------------------- GroupGeneratorTest: test_: GroupGenerator should call the active_record migration generator successfully. ----------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------------- GroupGeneratorTest: test_: GroupGenerator should call the mongoid migration generator successfully. ----------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction ------------------------------ MaestranoRailsTest: test_truth ------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ------------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: namespaced model should create the right migration. -------------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: namespaced model should edit the model content. ---------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should create the right migration. ---------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ----------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should edit the model content. -----------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should include parameters if rails 3 and strong_parameter not present. ---------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should not include parameters if rails 3 and strong_parameter present. ---------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should not include parameters in rails 4. ----------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------- MetadataControllerTest: test_: authenticated should be successful. -------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Rails::MetadataController#index as HTML Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------- MetadataControllerTest: test_: unauthenticated should deny access. -------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Rails::MetadataController#index as HTML Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction --------------------------------------------------------------------------------------------------------------------------------------- MaestranoGroupViaTest: test_: class methods find_or_create_for_maestrano class method should create a monster using the mapping block. ---------------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction 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"]]  (0.0ms) SAVEPOINT active_record_1 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction ------------------------------------------------------------------------------------------------------------------------------------------------------ MaestranoGroupViaTest: test_: class methods find_or_create_for_maestrano class method should not return a MnoCrew from another provider if it exists. ------------------------------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.0ms) SAVEPOINT active_record_1 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction ------------------------------------------------------------------------------------------------------------------------------ MaestranoGroupViaTest: test_: class methods find_or_create_for_maestrano class method should return the MnoCrew if it exists. ------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.1ms) rollback transaction ---------------------------------------------------------------------------------------------------- MaestranoGroupViaTest: test_: class methods maestrano_*_via should have the right field definition. ----------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------------------------- MaestranoGroupViaTest: test_: instance methods maestrano? should return false if provider is something else. -------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ----------------------------------------------------------------------------------------------- MaestranoGroupViaTest: test_: instance methods maestrano? should return false if uid is blank. -----------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------------------------------------ MaestranoGroupViaTest: test_: instance methods maestrano? should return true if provider is maestrano and uid not null. ------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction --------------------------------------------------------------------------------------- InstallGeneratorTest: test_: InstallGenerator should create the maestrano initializer. ---------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction ---------------------------------------------------------------------------------- InstallGeneratorTest: test_: InstallGenerator should create the maestrano routes. ----------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction ---------------------------------------------------------------------------------------------------------- InstallGeneratorTest: test_: InstallGenerator should create the maestrano/account/group_users_controller. ----------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ----------------------------------------------------------------------------------------------------- InstallGeneratorTest: test_: InstallGenerator should create the maestrano/account/groups_controller. -----------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------------ InstallGeneratorTest: test_: InstallGenerator should create the maestrano/auth/saml_controller. ------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction -------------------------------------------------------------------------------------------------------- UserGeneratorTest: test_: UserGenerator should call the active_record migration generator successfully. --------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------- UserGeneratorTest: test_: UserGenerator should call the mongoid migration generator successfully. --------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------------------- GroupGeneratorTest: test_: GroupGenerator should call the active_record migration generator successfully. ----------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction ---------------------------------------------------------------------------------------------------- GroupGeneratorTest: test_: GroupGenerator should call the mongoid migration generator successfully. ----------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------- GroupUsersControllerTest: test_: authenticated should be successful. ---------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Account::GroupUsersController#destroy as HTML Parameters: {"group_id"=>"cld-1", "id"=>"usr-1"} Rendered text template (0.0ms) Completed 200 OK in 5ms (Views: 4.5ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction --------------------------------------------------------------------- GroupUsersControllerTest: test_: unauthenticated should deny access. ---------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Account::GroupUsersController#destroy as HTML Parameters: {"group_id"=>"cld-1", "id"=>"usr-1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ----------------------------------------------------------------- GroupsControllerTest: test_: authenticated should be successful. -----------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Account::GroupsController#destroy as HTML Parameters: {"id"=>"cld-1"} Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.7ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ----------------------------------------------------------------- GroupsControllerTest: test_: unauthenticated should deny access. -----------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Account::GroupsController#destroy as HTML Parameters: {"id"=>"cld-1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction ------------------------------------------------------------------------------------------ ActiveRecordUserGeneratorTest: test_: namespaced model should create the right migration. ------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction -------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: namespaced model should edit the model content. --------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should create the right migration. --------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should edit the model content. ----------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should include parameters if rails 3 and strong_parameter not present. --------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should not include parameters if rails 3 and strong_parameter present. --------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should not include parameters in rails 4. ---------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------------------------------- GenericControllerTest: test_: with a maestrano session should be successful if the maestrano session is still valid. ---------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by PagesController#home as HTML Rendered pages/home.html.erb within layouts/application (0.8ms) Completed 200 OK in 98ms (Views: 98.2ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction -------------------------------------------------------------------------------------------------------------------- GenericControllerTest: test_: with a maestrano session should initialize redirect to SSO initialization if invalid. --------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by PagesController#home as HTML Rendered pages/home.html.erb within layouts/application (0.0ms) Completed 200 OK in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction ----------------------------------------------------------------------------------------------------------- GenericControllerTest: test_: with a maestrano session should not redirect to SSO init if sso is disabled. -----------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by PagesController#home as HTML Rendered pages/home.html.erb within layouts/application (0.0ms) Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------------------ GenericControllerTest: test_: with no maestrano session should be successful. ------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by PagesController#home as HTML Rendered pages/home.html.erb within layouts/application (0.0ms) Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: class methods find_or_create_for_maestrano class method should create a monster using the mapping block. --------------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction 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"]]  (0.1ms) SAVEPOINT active_record_1 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: class methods find_or_create_for_maestrano class method should not return a MnoMonster from another provider if it exists. --------------------------------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.0ms) SAVEPOINT active_record_1 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: class methods find_or_create_for_maestrano class method should return the MnoMonster if it exists. --------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.1ms) rollback transaction --------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: class methods maestrano_*_via should have the right field definition. ---------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------------------------ MaestranoUserViaTest: test_: instance methods maestrano? should return false if provider is something else. ------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: instance methods maestrano? should return false if uid is blank. ----------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ----------------------------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: instance methods maestrano? should return true if provider is maestrano and uid not null. -----------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase error should redirect to maestrano on any error. ----------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Cannot validate SAML response: Bla 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 '", "/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'"] Redirected to http://api-sandbox.maestrano.io/app_access_unauthorized?err=internal Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should reset the maestrano session successfully if one already exists. --------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction --------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should set a saml_request in scope. ---------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.1ms) rollback transaction -------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should set the group_auth_hash in scope. --------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should set the maestrano session. -------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should set the user_auth_hash in scope. -------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------ SamlBaseControllerTest: test_: consume phase should set the user_group_rel_hash in scope. ------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: init phase should create a saml request successfully if a maestrano session is already set. ---------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#init as HTML Parameters: {"a_param"=>"value"} Redirected to http://idpprovider.com?r=request Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ----------------------------------------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: init phase should create a saml request using params and session and redirect the user. -----------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#init as HTML Parameters: {"a_param"=>"value"} Redirected to http://idpprovider.com?r=request Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) rollback transaction ------------------------------ MaestranoRailsTest: test_truth ------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" --------------------------------------------------------------------------------------------------------------------- GenericControllerTest: test_: with a maestrano session should be successful if the maestrano session is still valid. ---------------------------------------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by PagesController#home as HTML Rendered pages/home.html.erb within layouts/application (0.7ms) Completed 200 OK in 102ms (Views: 101.9ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction -------------------------------------------------------------------------------------------------------------------- GenericControllerTest: test_: with a maestrano session should initialize redirect to SSO initialization if invalid. --------------------------------------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by PagesController#home as HTML Rendered pages/home.html.erb within layouts/application (0.0ms) Completed 200 OK in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ----------------------------------------------------------------------------------------------------------- GenericControllerTest: test_: with a maestrano session should not redirect to SSO init if sso is disabled. -----------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by PagesController#home as HTML Rendered pages/home.html.erb within layouts/application (0.0ms) Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------------------ GenericControllerTest: test_: with no maestrano session should be successful. ------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by PagesController#home as HTML Rendered pages/home.html.erb within layouts/application (0.0ms) Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: namespaced model should create the right migration. -------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: namespaced model should edit the model content. ---------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction --------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should create the right migration. ---------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ----------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should edit the model content. -----------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should include parameters if rails 3 and strong_parameter not present. ---------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should not include parameters if rails 3 and strong_parameter present. ---------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should not include parameters in rails 4. ----------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------- GroupUsersControllerTest: test_: authenticated should be successful. ---------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Account::GroupUsersController#destroy as HTML Parameters: {"group_id"=>"cld-1", "id"=>"usr-1"} Rendered text template (0.0ms) Completed 200 OK in 5ms (Views: 5.2ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction --------------------------------------------------------------------- GroupUsersControllerTest: test_: unauthenticated should deny access. ---------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Account::GroupUsersController#destroy as HTML Parameters: {"group_id"=>"cld-1", "id"=>"usr-1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: class methods find_or_create_for_maestrano class method should create a monster using the mapping block. --------------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction 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"]]  (0.0ms) SAVEPOINT active_record_1 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: class methods find_or_create_for_maestrano class method should not return a MnoMonster from another provider if it exists. --------------------------------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.0ms) SAVEPOINT active_record_1 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: class methods find_or_create_for_maestrano class method should return the MnoMonster if it exists. --------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.1ms) rollback transaction --------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: class methods maestrano_*_via should have the right field definition. ---------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------------------------ MaestranoUserViaTest: test_: instance methods maestrano? should return false if provider is something else. ------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: instance methods maestrano? should return false if uid is blank. ----------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ----------------------------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: instance methods maestrano? should return true if provider is maestrano and uid not null. -----------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------------------- GroupGeneratorTest: test_: GroupGenerator should call the active_record migration generator successfully. ----------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------------- GroupGeneratorTest: test_: GroupGenerator should call the mongoid migration generator successfully. ----------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase error should redirect to maestrano on any error. ----------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Cannot validate SAML response: Bla 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 '", "/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'"] Redirected to http://api-sandbox.maestrano.io/app_access_unauthorized?err=internal Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should reset the maestrano session successfully if one already exists. --------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction --------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should set a saml_request in scope. ---------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction -------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should set the group_auth_hash in scope. --------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should set the maestrano session. -------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should set the user_auth_hash in scope. -------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------ SamlBaseControllerTest: test_: consume phase should set the user_group_rel_hash in scope. ------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: init phase should create a saml request successfully if a maestrano session is already set. ---------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#init as HTML Parameters: {"a_param"=>"value"} Redirected to http://idpprovider.com?r=request Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ----------------------------------------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: init phase should create a saml request using params and session and redirect the user. -----------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#init as HTML Parameters: {"a_param"=>"value"} Redirected to http://idpprovider.com?r=request Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) rollback transaction ------------------------------ MaestranoRailsTest: test_truth ------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------------- UserGeneratorTest: test_: UserGenerator should call the active_record migration generator successfully. --------------------------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------- UserGeneratorTest: test_: UserGenerator should call the mongoid migration generator successfully. --------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------- InstallGeneratorTest: test_: InstallGenerator should create the maestrano initializer. ---------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------- InstallGeneratorTest: test_: InstallGenerator should create the maestrano routes. ----------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------------------- InstallGeneratorTest: test_: InstallGenerator should create the maestrano/account/group_users_controller. ----------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction ----------------------------------------------------------------------------------------------------- InstallGeneratorTest: test_: InstallGenerator should create the maestrano/account/groups_controller. -----------------------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction ------------------------------------------------------------------------------------------------ InstallGeneratorTest: test_: InstallGenerator should create the maestrano/auth/saml_controller. ------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------- MetadataControllerTest: test_: authenticated should be successful. -------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction Processing by Maestrano::Rails::MetadataController#index as HTML Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------- MetadataControllerTest: test_: unauthenticated should deny access. -------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Rails::MetadataController#index as HTML Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------ ActiveRecordUserGeneratorTest: test_: namespaced model should create the right migration. ------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: namespaced model should edit the model content. --------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction -------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should create the right migration. --------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction ---------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should edit the model content. ----------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should include parameters if rails 3 and strong_parameter not present. --------------------------------------------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should not include parameters if rails 3 and strong_parameter present. --------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should not include parameters in rails 4. ---------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------------------------------------------------- MaestranoGroupViaTest: test_: class methods find_or_create_for_maestrano class method should create a monster using the mapping block. ---------------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction 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"]]  (0.0ms) SAVEPOINT active_record_1 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction ------------------------------------------------------------------------------------------------------------------------------------------------------ MaestranoGroupViaTest: test_: class methods find_or_create_for_maestrano class method should not return a MnoCrew from another provider if it exists. ------------------------------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.0ms) SAVEPOINT active_record_1 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction ------------------------------------------------------------------------------------------------------------------------------ MaestranoGroupViaTest: test_: class methods find_or_create_for_maestrano class method should return the MnoCrew if it exists. ------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.1ms) rollback transaction ---------------------------------------------------------------------------------------------------- MaestranoGroupViaTest: test_: class methods maestrano_*_via should have the right field definition. ----------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------------------------- MaestranoGroupViaTest: test_: instance methods maestrano? should return false if provider is something else. -------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ----------------------------------------------------------------------------------------------- MaestranoGroupViaTest: test_: instance methods maestrano? should return false if uid is blank. -----------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------------------------------------ MaestranoGroupViaTest: test_: instance methods maestrano? should return true if provider is maestrano and uid not null. ------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ----------------------------------------------------------------- GroupsControllerTest: test_: authenticated should be successful. -----------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Account::GroupsController#destroy as HTML Parameters: {"id"=>"cld-1"} Rendered text template (0.0ms) Completed 200 OK in 3ms (Views: 2.3ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ----------------------------------------------------------------- GroupsControllerTest: test_: unauthenticated should deny access. -----------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Account::GroupsController#destroy as HTML Parameters: {"id"=>"cld-1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" --------------------------------------------------------------------- GroupUsersControllerTest: test_: authenticated should be successful. ---------------------------------------------------------------------  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Account::GroupUsersController#destroy as HTML Parameters: {"group_id"=>"cld-1", "id"=>"usr-1"} Rendered text template (0.0ms) Completed 200 OK in 5ms (Views: 4.4ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction --------------------------------------------------------------------- GroupUsersControllerTest: test_: unauthenticated should deny access. ---------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Account::GroupUsersController#destroy as HTML Parameters: {"group_id"=>"cld-1", "id"=>"usr-1"} Filter chain halted as :authenticate_maestrano! rendered or redirected Completed 401 Unauthorized in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------------------- GroupGeneratorTest: test_: GroupGenerator should call the active_record migration generator successfully. ----------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------------- GroupGeneratorTest: test_: GroupGenerator should call the mongoid migration generator successfully. ----------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------ ActiveRecordUserGeneratorTest: test_: namespaced model should create the right migration. ------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: namespaced model should edit the model content. --------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction -------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should create the right migration. --------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction ---------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should edit the model content. ----------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should include parameters if rails 3 and strong_parameter not present. --------------------------------------------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should not include parameters if rails 3 and strong_parameter present. --------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------- ActiveRecordUserGeneratorTest: test_: normal model should not include parameters in rails 4. ---------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------------------------------------------------- MaestranoGroupViaTest: test_: class methods find_or_create_for_maestrano class method should create a monster using the mapping block. ---------------------------------------------------------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction 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"]]  (0.0ms) SAVEPOINT active_record_1 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction ------------------------------------------------------------------------------------------------------------------------------------------------------ MaestranoGroupViaTest: test_: class methods find_or_create_for_maestrano class method should not return a MnoCrew from another provider if it exists. ------------------------------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.0ms) SAVEPOINT active_record_1 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction ------------------------------------------------------------------------------------------------------------------------------ MaestranoGroupViaTest: test_: class methods find_or_create_for_maestrano class method should return the MnoCrew if it exists. ------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.1ms) rollback transaction ---------------------------------------------------------------------------------------------------- MaestranoGroupViaTest: test_: class methods maestrano_*_via should have the right field definition. ----------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------------------------- MaestranoGroupViaTest: test_: instance methods maestrano? should return false if provider is something else. -------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ----------------------------------------------------------------------------------------------- MaestranoGroupViaTest: test_: instance methods maestrano? should return false if uid is blank. -----------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------------------------------------ MaestranoGroupViaTest: test_: instance methods maestrano? should return true if provider is maestrano and uid not null. ------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------- MetadataControllerTest: test_: authenticated should be successful. -------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Rails::MetadataController#index as HTML Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------- MetadataControllerTest: test_: unauthenticated should deny access. -------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Rails::MetadataController#index as HTML Filter chain halted as :authenticate_maestrano! rendered or redirected Completed 401 Unauthorized in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------ MaestranoRailsTest: test_truth ------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: class methods find_or_create_for_maestrano class method should create a monster using the mapping block. --------------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction 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"]]  (0.0ms) SAVEPOINT active_record_1 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: class methods find_or_create_for_maestrano class method should not return a MnoMonster from another provider if it exists. --------------------------------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.0ms) SAVEPOINT active_record_1 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction -------------------------------------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: class methods find_or_create_for_maestrano class method should return the MnoMonster if it exists. --------------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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"]]  (0.1ms) rollback transaction --------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: class methods maestrano_*_via should have the right field definition. ---------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------------------------ MaestranoUserViaTest: test_: instance methods maestrano? should return false if provider is something else. ------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: instance methods maestrano? should return false if uid is blank. ----------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ----------------------------------------------------------------------------------------------------------------------- MaestranoUserViaTest: test_: instance methods maestrano? should return true if provider is maestrano and uid not null. -----------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------- InstallGeneratorTest: test_: InstallGenerator should create the maestrano initializer. ---------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------- InstallGeneratorTest: test_: InstallGenerator should create the maestrano routes. ----------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------------------- InstallGeneratorTest: test_: InstallGenerator should create the maestrano/account/group_users_controller. ----------------------------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction ----------------------------------------------------------------------------------------------------- InstallGeneratorTest: test_: InstallGenerator should create the maestrano/account/groups_controller. -----------------------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------------ InstallGeneratorTest: test_: InstallGenerator should create the maestrano/auth/saml_controller. ------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------------- UserGeneratorTest: test_: UserGenerator should call the active_record migration generator successfully. --------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------- UserGeneratorTest: test_: UserGenerator should call the mongoid migration generator successfully. --------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction --------------------------------------------------------------------------------------------------------------------- GenericControllerTest: test_: with a maestrano session should be successful if the maestrano session is still valid. ---------------------------------------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by PagesController#home as HTML Rendered pages/home.html.erb within layouts/application (0.8ms) Completed 200 OK in 105ms (Views: 103.9ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction -------------------------------------------------------------------------------------------------------------------- GenericControllerTest: test_: with a maestrano session should initialize redirect to SSO initialization if invalid. --------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by PagesController#home as HTML Redirected to http://localhost::3000/maestrano/auth/saml/init Filter chain halted as :verify_maestrano_session rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ----------------------------------------------------------------------------------------------------------- GenericControllerTest: test_: with a maestrano session should not redirect to SSO init if sso is disabled. -----------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by PagesController#home as HTML Rendered pages/home.html.erb within layouts/application (0.0ms) Completed 200 OK in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------------------ GenericControllerTest: test_: with no maestrano session should be successful. ------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by PagesController#home as HTML Rendered pages/home.html.erb within layouts/application (0.0ms) Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ----------------------------------------------------------------- GroupsControllerTest: test_: authenticated should be successful. -----------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Account::GroupsController#destroy as HTML Parameters: {"id"=>"cld-1"} Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.8ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ----------------------------------------------------------------- GroupsControllerTest: test_: unauthenticated should deny access. -----------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Account::GroupsController#destroy as HTML Parameters: {"id"=>"cld-1"} Filter chain halted as :authenticate_maestrano! rendered or redirected Completed 401 Unauthorized in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: namespaced model should create the right migration. -------------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: namespaced model should edit the model content. ---------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction --------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should create the right migration. ---------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ----------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should edit the model content. -----------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction --------------------------------------------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should include parameters if rails 3 and strong_parameter not present. ---------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction --------------------------------------------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should not include parameters if rails 3 and strong_parameter present. ---------------------------------------------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction ---------------------------------------------------------------------------------------------- ActiveRecordGroupGeneratorTest: test_: normal model should not include parameters in rails 4. ----------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase error should redirect to maestrano on any error. ----------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Cannot validate SAML response: Bla 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 '", "/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'"] Redirected to http://api-sandbox.maestrano.io/app_access_unauthorized?err=internal Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction -------------------------------------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should reset the maestrano session successfully if one already exists. --------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction --------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should set a saml_request in scope. ---------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction -------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should set the group_auth_hash in scope. --------------------------------------------------------------------------------------  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should set the maestrano session. -------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: consume phase should set the user_auth_hash in scope. -------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ------------------------------------------------------------------------------------------ SamlBaseControllerTest: test_: consume phase should set the user_group_rel_hash in scope. ------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#consume as HTML Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"} Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction --------------------------------------------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: init phase should create a saml request successfully if a maestrano session is already set. ---------------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction Processing by Maestrano::Auth::SamlController#init as HTML Parameters: {"a_param"=>"value"} Redirected to http://idpprovider.com?r=request Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ----------------------------------------------------------------------------------------------------------------------- SamlBaseControllerTest: test_: init phase should create a saml request using params and session and redirect the user. -----------------------------------------------------------------------------------------------------------------------  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Processing by Maestrano::Auth::SamlController#init as HTML Parameters: {"a_param"=>"value"} Redirected to http://idpprovider.com?r=request Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction