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