maestrano-rails 0.15.1 → 0.15.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e754c90596f811d3cfbdb85b844857c22d0077f5
4
- data.tar.gz: 30c5bc6a29654c48c76d0e89d65e0d057f427866
3
+ metadata.gz: cde08218991f5cb608797238ed4253655dd37ace
4
+ data.tar.gz: e372903f9e9d572a0d5a2aaf84b9ad93bed90a9a
5
5
  SHA512:
6
- metadata.gz: 44a55fe81830129276c6244beed13c4d4b468a0970be1359a82749a8cd906a9997a0b1ccda7abe89b94ffdc8b05b6e653d7b9aad419cbc6f7ab8c571a075666d
7
- data.tar.gz: 2ef1c015c1d216097ecf52a35c14a497309d6652c83cadc749ee968ee505214e60222bb6d559318a08c57bfad8bb3078f951897d73bb75872b787e3fe73f4d69
6
+ metadata.gz: 4397f57f80df1e7f6114311ff88558d95b2abc025637f878e548d4b749c2e0430dd7f1c8dd36af31f2ce226aa7000e99d61d30470220f60b92ae5ff0a096fa1d
7
+ data.tar.gz: e2d459993bcefdf9899dc52113b1bd32901681364dd337034000a00479cde72ef1958502f797c777dba52ae8c3e56f450d9ade071640ccc96c7a5e13bd0586ba
@@ -22,7 +22,8 @@ class Maestrano::Rails::SamlBaseController < ApplicationController
22
22
  if Rails.env.development?
23
23
  raise
24
24
  else
25
- logger.error e
25
+ logger.error "Cannot validate SAML response: #{e.message}"
26
+ logger.debug "Trace: #{e.backtrace}"
26
27
  redirect_to "#{Maestrano::SSO.unauthorized_url}?err=internal"
27
28
  end
28
29
  end
@@ -2,16 +2,16 @@
2
2
  # DO NOT EDIT THIS FILE DIRECTLY
3
3
  # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
4
4
  # -*- encoding: utf-8 -*-
5
- # stub: maestrano-rails 0.15.1 ruby lib
5
+ # stub: maestrano-rails 0.15.2 ruby lib
6
6
 
7
7
  Gem::Specification.new do |s|
8
8
  s.name = "maestrano-rails"
9
- s.version = "0.15.1"
9
+ s.version = "0.15.2"
10
10
 
11
11
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
12
12
  s.require_paths = ["lib"]
13
13
  s.authors = ["Arnaud Lachaume"]
14
- s.date = "2016-02-15"
14
+ s.date = "2016-04-05"
15
15
  s.description = "Maestrano is the next generation marketplace for SME applications. See https://maestrano.com for details."
16
16
  s.email = ["arnaud.lachaume@maestrano.com"]
17
17
  s.extra_rdoc_files = [
@@ -14810,3 +14810,506 @@ UserGeneratorTest: test_: UserGenerator should call the mongoid migration genera
14810
14810
   (0.0ms) commit transaction
14811
14811
   (0.0ms) begin transaction
14812
14812
   (0.1ms) rollback transaction
14813
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
14814
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
14815
+ -------------------------------------------------------------------------------------------
14816
+ ActiveRecordGroupGeneratorTest: test_: namespaced model should create the right migration.
14817
+ -------------------------------------------------------------------------------------------
14818
+  (0.1ms) begin transaction
14819
+  (0.0ms) commit transaction
14820
+  (0.0ms) begin transaction
14821
+  (0.0ms) rollback transaction
14822
+ ---------------------------------------------------------------------------------------
14823
+ ActiveRecordGroupGeneratorTest: test_: namespaced model should edit the model content.
14824
+ ---------------------------------------------------------------------------------------
14825
+  (0.0ms) begin transaction
14826
+  (0.0ms) commit transaction
14827
+  (0.0ms) begin transaction
14828
+  (0.0ms) rollback transaction
14829
+ ---------------------------------------------------------------------------------------
14830
+ ActiveRecordGroupGeneratorTest: test_: normal model should create the right migration.
14831
+ ---------------------------------------------------------------------------------------
14832
+  (0.0ms) begin transaction
14833
+  (0.0ms) commit transaction
14834
+  (0.0ms) begin transaction
14835
+  (0.1ms) rollback transaction
14836
+ -----------------------------------------------------------------------------------
14837
+ ActiveRecordGroupGeneratorTest: test_: normal model should edit the model content.
14838
+ -----------------------------------------------------------------------------------
14839
+  (0.0ms) begin transaction
14840
+  (0.0ms) commit transaction
14841
+  (0.0ms) begin transaction
14842
+  (0.0ms) rollback transaction
14843
+ ---------------------------------------------------------------------------------------------------------------------------
14844
+ ActiveRecordGroupGeneratorTest: test_: normal model should include parameters if rails 3 and strong_parameter not present.
14845
+ ---------------------------------------------------------------------------------------------------------------------------
14846
+  (0.0ms) begin transaction
14847
+  (0.1ms) commit transaction
14848
+  (0.0ms) begin transaction
14849
+  (0.0ms) rollback transaction
14850
+ ---------------------------------------------------------------------------------------------------------------------------
14851
+ ActiveRecordGroupGeneratorTest: test_: normal model should not include parameters if rails 3 and strong_parameter present.
14852
+ ---------------------------------------------------------------------------------------------------------------------------
14853
+  (0.0ms) begin transaction
14854
+  (0.0ms) commit transaction
14855
+  (0.0ms) begin transaction
14856
+  (0.0ms) rollback transaction
14857
+ ----------------------------------------------------------------------------------------------
14858
+ ActiveRecordGroupGeneratorTest: test_: normal model should not include parameters in rails 4.
14859
+ ----------------------------------------------------------------------------------------------
14860
+  (0.0ms) begin transaction
14861
+  (0.0ms) commit transaction
14862
+  (0.0ms) begin transaction
14863
+  (0.5ms) rollback transaction
14864
+ ----------------------------------------------------------------------------------------------
14865
+ SamlBaseControllerTest: test_: consume phase error should redirect to maestrano on any error.
14866
+ ----------------------------------------------------------------------------------------------
14867
+  (0.0ms) begin transaction
14868
+  (0.0ms) commit transaction
14869
+  (0.0ms) begin transaction
14870
+ Processing by Maestrano::Auth::SamlController#consume as HTML
14871
+ Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"}
14872
+ Cannot validate SAML response: Bla
14873
+ 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 <class:SamlBaseControllerTest>'", "/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'"]
14874
+ Redirected to http://api-sandbox.maestrano.io/app_access_unauthorized?err=internal
14875
+ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
14876
+  (0.1ms) rollback transaction
14877
+ --------------------------------------------------------------------------------------------------------------------
14878
+ SamlBaseControllerTest: test_: consume phase should reset the maestrano session successfully if one already exists.
14879
+ --------------------------------------------------------------------------------------------------------------------
14880
+  (0.0ms) begin transaction
14881
+  (0.0ms) commit transaction
14882
+  (0.0ms) begin transaction
14883
+ Processing by Maestrano::Auth::SamlController#consume as HTML
14884
+ Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"}
14885
+ Redirected to http://test.host/
14886
+ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
14887
+  (0.0ms) rollback transaction
14888
+ ---------------------------------------------------------------------------------
14889
+ SamlBaseControllerTest: test_: consume phase should set a saml_request in scope.
14890
+ ---------------------------------------------------------------------------------
14891
+  (0.0ms) begin transaction
14892
+  (0.0ms) commit transaction
14893
+  (0.0ms) begin transaction
14894
+ Processing by Maestrano::Auth::SamlController#consume as HTML
14895
+ Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"}
14896
+ Redirected to http://test.host/
14897
+ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
14898
+  (0.0ms) rollback transaction
14899
+ --------------------------------------------------------------------------------------
14900
+ SamlBaseControllerTest: test_: consume phase should set the group_auth_hash in scope.
14901
+ --------------------------------------------------------------------------------------
14902
+  (0.0ms) begin transaction
14903
+  (0.0ms) commit transaction
14904
+  (0.0ms) begin transaction
14905
+ Processing by Maestrano::Auth::SamlController#consume as HTML
14906
+ Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"}
14907
+ Redirected to http://test.host/
14908
+ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
14909
+  (0.0ms) rollback transaction
14910
+ -------------------------------------------------------------------------------
14911
+ SamlBaseControllerTest: test_: consume phase should set the maestrano session.
14912
+ -------------------------------------------------------------------------------
14913
+  (0.0ms) begin transaction
14914
+  (0.0ms) commit transaction
14915
+  (0.0ms) begin transaction
14916
+ Processing by Maestrano::Auth::SamlController#consume as HTML
14917
+ Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"}
14918
+ Redirected to http://test.host/
14919
+ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
14920
+  (0.0ms) rollback transaction
14921
+ -------------------------------------------------------------------------------------
14922
+ SamlBaseControllerTest: test_: consume phase should set the user_auth_hash in scope.
14923
+ -------------------------------------------------------------------------------------
14924
+  (0.0ms) begin transaction
14925
+  (0.0ms) commit transaction
14926
+  (0.0ms) begin transaction
14927
+ Processing by Maestrano::Auth::SamlController#consume as HTML
14928
+ Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"}
14929
+ Redirected to http://test.host/
14930
+ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
14931
+  (0.0ms) rollback transaction
14932
+ ------------------------------------------------------------------------------------------
14933
+ SamlBaseControllerTest: test_: consume phase should set the user_group_rel_hash in scope.
14934
+ ------------------------------------------------------------------------------------------
14935
+  (0.0ms) begin transaction
14936
+  (0.0ms) commit transaction
14937
+  (0.2ms) begin transaction
14938
+ Processing by Maestrano::Auth::SamlController#consume as HTML
14939
+ Parameters: {"SAMLResponse"=>"g45ad5v40xc4b3fd478"}
14940
+ Redirected to http://test.host/
14941
+ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
14942
+  (0.0ms) rollback transaction
14943
+ ---------------------------------------------------------------------------------------------------------------------------
14944
+ SamlBaseControllerTest: test_: init phase should create a saml request successfully if a maestrano session is already set.
14945
+ ---------------------------------------------------------------------------------------------------------------------------
14946
+  (0.0ms) begin transaction
14947
+  (0.0ms) commit transaction
14948
+  (0.0ms) begin transaction
14949
+ Processing by Maestrano::Auth::SamlController#init as HTML
14950
+ Parameters: {"a_param"=>"value"}
14951
+ Redirected to http://idpprovider.com?r=request
14952
+ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
14953
+  (0.0ms) rollback transaction
14954
+ -----------------------------------------------------------------------------------------------------------------------
14955
+ SamlBaseControllerTest: test_: init phase should create a saml request using params and session and redirect the user.
14956
+ -----------------------------------------------------------------------------------------------------------------------
14957
+  (0.0ms) begin transaction
14958
+  (0.0ms) commit transaction
14959
+  (0.0ms) begin transaction
14960
+ Processing by Maestrano::Auth::SamlController#init as HTML
14961
+ Parameters: {"a_param"=>"value"}
14962
+ Redirected to http://idpprovider.com?r=request
14963
+ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
14964
+  (0.0ms) rollback transaction
14965
+ -----------------------------------------------------------------
14966
+ GroupsControllerTest: test_: authenticated should be successful.
14967
+ -----------------------------------------------------------------
14968
+  (0.0ms) begin transaction
14969
+  (0.0ms) commit transaction
14970
+  (0.0ms) begin transaction
14971
+ Processing by Maestrano::Account::GroupsController#destroy as HTML
14972
+ Parameters: {"id"=>"cld-1"}
14973
+ Rendered text template (0.0ms)
14974
+ Completed 200 OK in 6ms (Views: 5.1ms | ActiveRecord: 0.0ms)
14975
+  (0.1ms) rollback transaction
14976
+ -----------------------------------------------------------------
14977
+ GroupsControllerTest: test_: unauthenticated should deny access.
14978
+ -----------------------------------------------------------------
14979
+  (0.0ms) begin transaction
14980
+  (0.0ms) commit transaction
14981
+  (0.0ms) begin transaction
14982
+ Processing by Maestrano::Account::GroupsController#destroy as HTML
14983
+ Parameters: {"id"=>"cld-1"}
14984
+ Filter chain halted as :authenticate_maestrano! rendered or redirected
14985
+ Completed 401 Unauthorized in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)
14986
+  (0.0ms) rollback transaction
14987
+ ------------------------------
14988
+ MaestranoRailsTest: test_truth
14989
+ ------------------------------
14990
+  (0.0ms) begin transaction
14991
+  (0.0ms) commit transaction
14992
+  (0.0ms) begin transaction
14993
+  (0.0ms) rollback transaction
14994
+ ---------------------------------------------------------------------------------------------------------------------------------------
14995
+ MaestranoGroupViaTest: test_: class methods find_or_create_for_maestrano class method should create a monster using the mapping block.
14996
+ ---------------------------------------------------------------------------------------------------------------------------------------
14997
+  (0.0ms) begin transaction
14998
+  (0.0ms) commit transaction
14999
+  (0.0ms) begin transaction
15000
+ 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"]]
15001
+  (0.1ms) SAVEPOINT active_record_1
15002
+ 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"]]
15003
+  (0.0ms) RELEASE SAVEPOINT active_record_1
15004
+  (0.1ms) rollback transaction
15005
+ ------------------------------------------------------------------------------------------------------------------------------------------------------
15006
+ MaestranoGroupViaTest: test_: class methods find_or_create_for_maestrano class method should not return a MnoCrew from another provider if it exists.
15007
+ ------------------------------------------------------------------------------------------------------------------------------------------------------
15008
+  (0.0ms) begin transaction
15009
+  (0.0ms) commit transaction
15010
+  (0.0ms) begin transaction
15011
+  (0.0ms) SAVEPOINT active_record_1
15012
+ 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"]]
15013
+  (0.0ms) RELEASE SAVEPOINT active_record_1
15014
+ 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"]]
15015
+  (0.1ms) SAVEPOINT active_record_1
15016
+ 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"]]
15017
+  (0.0ms) RELEASE SAVEPOINT active_record_1
15018
+  (0.1ms) rollback transaction
15019
+ ------------------------------------------------------------------------------------------------------------------------------
15020
+ MaestranoGroupViaTest: test_: class methods find_or_create_for_maestrano class method should return the MnoCrew if it exists.
15021
+ ------------------------------------------------------------------------------------------------------------------------------
15022
+  (0.0ms) begin transaction
15023
+  (0.0ms) commit transaction
15024
+  (0.0ms) begin transaction
15025
+  (0.0ms) SAVEPOINT active_record_1
15026
+ 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"]]
15027
+  (0.0ms) RELEASE SAVEPOINT active_record_1
15028
+ 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"]]
15029
+  (0.1ms) rollback transaction
15030
+ ----------------------------------------------------------------------------------------------------
15031
+ MaestranoGroupViaTest: test_: class methods maestrano_*_via should have the right field definition.
15032
+ ----------------------------------------------------------------------------------------------------
15033
+  (0.0ms) begin transaction
15034
+  (0.0ms) commit transaction
15035
+  (0.0ms) begin transaction
15036
+  (0.0ms) rollback transaction
15037
+ -------------------------------------------------------------------------------------------------------------
15038
+ MaestranoGroupViaTest: test_: instance methods maestrano? should return false if provider is something else.
15039
+ -------------------------------------------------------------------------------------------------------------
15040
+  (0.0ms) begin transaction
15041
+  (0.0ms) commit transaction
15042
+  (0.0ms) begin transaction
15043
+  (0.0ms) rollback transaction
15044
+ -----------------------------------------------------------------------------------------------
15045
+ MaestranoGroupViaTest: test_: instance methods maestrano? should return false if uid is blank.
15046
+ -----------------------------------------------------------------------------------------------
15047
+  (0.0ms) begin transaction
15048
+  (0.0ms) commit transaction
15049
+  (0.0ms) begin transaction
15050
+  (0.0ms) rollback transaction
15051
+ ------------------------------------------------------------------------------------------------------------------------
15052
+ MaestranoGroupViaTest: test_: instance methods maestrano? should return true if provider is maestrano and uid not null.
15053
+ ------------------------------------------------------------------------------------------------------------------------
15054
+  (0.0ms) begin transaction
15055
+  (0.0ms) commit transaction
15056
+  (0.0ms) begin transaction
15057
+  (0.0ms) rollback transaction
15058
+ ----------------------------------------------------------------------------------------------------------
15059
+ GroupGeneratorTest: test_: GroupGenerator should call the active_record migration generator successfully.
15060
+ ----------------------------------------------------------------------------------------------------------
15061
+  (0.0ms) begin transaction
15062
+  (0.0ms) commit transaction
15063
+  (0.0ms) begin transaction
15064
+  (0.0ms) rollback transaction
15065
+ ----------------------------------------------------------------------------------------------------
15066
+ GroupGeneratorTest: test_: GroupGenerator should call the mongoid migration generator successfully.
15067
+ ----------------------------------------------------------------------------------------------------
15068
+  (0.0ms) begin transaction
15069
+  (0.0ms) commit transaction
15070
+  (0.0ms) begin transaction
15071
+  (0.0ms) rollback transaction
15072
+ -------------------------------------------------------------------
15073
+ MetadataControllerTest: test_: authenticated should be successful.
15074
+ -------------------------------------------------------------------
15075
+  (0.0ms) begin transaction
15076
+  (0.0ms) commit transaction
15077
+  (0.1ms) begin transaction
15078
+ Processing by Maestrano::Rails::MetadataController#index as HTML
15079
+ Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.0ms)
15080
+  (0.0ms) rollback transaction
15081
+ -------------------------------------------------------------------
15082
+ MetadataControllerTest: test_: unauthenticated should deny access.
15083
+ -------------------------------------------------------------------
15084
+  (0.0ms) begin transaction
15085
+  (0.0ms) commit transaction
15086
+  (0.0ms) begin transaction
15087
+ Processing by Maestrano::Rails::MetadataController#index as HTML
15088
+ Filter chain halted as :authenticate_maestrano! rendered or redirected
15089
+ Completed 401 Unauthorized in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
15090
+  (0.0ms) rollback transaction
15091
+ --------------------------------------------------------------------------------------------------------------------------------------
15092
+ MaestranoUserViaTest: test_: class methods find_or_create_for_maestrano class method should create a monster using the mapping block.
15093
+ --------------------------------------------------------------------------------------------------------------------------------------
15094
+  (0.1ms) begin transaction
15095
+  (0.0ms) commit transaction
15096
+  (0.0ms) begin transaction
15097
+ 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"]]
15098
+  (0.0ms) SAVEPOINT active_record_1
15099
+ 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"]]
15100
+  (0.0ms) RELEASE SAVEPOINT active_record_1
15101
+  (0.1ms) rollback transaction
15102
+ --------------------------------------------------------------------------------------------------------------------------------------------------------
15103
+ MaestranoUserViaTest: test_: class methods find_or_create_for_maestrano class method should not return a MnoMonster from another provider if it exists.
15104
+ --------------------------------------------------------------------------------------------------------------------------------------------------------
15105
+  (0.0ms) begin transaction
15106
+  (0.0ms) commit transaction
15107
+  (0.0ms) begin transaction
15108
+  (0.0ms) SAVEPOINT active_record_1
15109
+ 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"]]
15110
+  (0.0ms) RELEASE SAVEPOINT active_record_1
15111
+ 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"]]
15112
+  (0.0ms) SAVEPOINT active_record_1
15113
+ 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"]]
15114
+  (0.0ms) RELEASE SAVEPOINT active_record_1
15115
+  (0.1ms) rollback transaction
15116
+ --------------------------------------------------------------------------------------------------------------------------------
15117
+ MaestranoUserViaTest: test_: class methods find_or_create_for_maestrano class method should return the MnoMonster if it exists.
15118
+ --------------------------------------------------------------------------------------------------------------------------------
15119
+  (0.0ms) begin transaction
15120
+  (0.0ms) commit transaction
15121
+  (0.0ms) begin transaction
15122
+  (0.0ms) SAVEPOINT active_record_1
15123
+ 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"]]
15124
+  (0.0ms) RELEASE SAVEPOINT active_record_1
15125
+ 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"]]
15126
+  (0.1ms) rollback transaction
15127
+ ---------------------------------------------------------------------------------------------------
15128
+ MaestranoUserViaTest: test_: class methods maestrano_*_via should have the right field definition.
15129
+ ---------------------------------------------------------------------------------------------------
15130
+  (0.0ms) begin transaction
15131
+  (0.0ms) commit transaction
15132
+  (0.0ms) begin transaction
15133
+  (0.0ms) rollback transaction
15134
+ ------------------------------------------------------------------------------------------------------------
15135
+ MaestranoUserViaTest: test_: instance methods maestrano? should return false if provider is something else.
15136
+ ------------------------------------------------------------------------------------------------------------
15137
+  (0.0ms) begin transaction
15138
+  (0.0ms) commit transaction
15139
+  (0.0ms) begin transaction
15140
+  (0.0ms) rollback transaction
15141
+ ----------------------------------------------------------------------------------------------
15142
+ MaestranoUserViaTest: test_: instance methods maestrano? should return false if uid is blank.
15143
+ ----------------------------------------------------------------------------------------------
15144
+  (0.0ms) begin transaction
15145
+  (0.0ms) commit transaction
15146
+  (0.0ms) begin transaction
15147
+  (0.0ms) rollback transaction
15148
+ -----------------------------------------------------------------------------------------------------------------------
15149
+ MaestranoUserViaTest: test_: instance methods maestrano? should return true if provider is maestrano and uid not null.
15150
+ -----------------------------------------------------------------------------------------------------------------------
15151
+  (0.0ms) begin transaction
15152
+  (0.0ms) commit transaction
15153
+  (0.1ms) begin transaction
15154
+  (0.0ms) rollback transaction
15155
+ ------------------------------------------------------------------------------------------
15156
+ ActiveRecordUserGeneratorTest: test_: namespaced model should create the right migration.
15157
+ ------------------------------------------------------------------------------------------
15158
+  (0.0ms) begin transaction
15159
+  (0.0ms) commit transaction
15160
+  (0.0ms) begin transaction
15161
+  (0.0ms) rollback transaction
15162
+ --------------------------------------------------------------------------------------
15163
+ ActiveRecordUserGeneratorTest: test_: namespaced model should edit the model content.
15164
+ --------------------------------------------------------------------------------------
15165
+  (0.0ms) begin transaction
15166
+  (0.0ms) commit transaction
15167
+  (0.0ms) begin transaction
15168
+  (0.0ms) rollback transaction
15169
+ --------------------------------------------------------------------------------------
15170
+ ActiveRecordUserGeneratorTest: test_: normal model should create the right migration.
15171
+ --------------------------------------------------------------------------------------
15172
+  (0.0ms) begin transaction
15173
+  (0.0ms) commit transaction
15174
+  (0.0ms) begin transaction
15175
+  (0.0ms) rollback transaction
15176
+ ----------------------------------------------------------------------------------
15177
+ ActiveRecordUserGeneratorTest: test_: normal model should edit the model content.
15178
+ ----------------------------------------------------------------------------------
15179
+  (0.0ms) begin transaction
15180
+  (0.0ms) commit transaction
15181
+  (0.0ms) begin transaction
15182
+  (0.0ms) rollback transaction
15183
+ --------------------------------------------------------------------------------------------------------------------------
15184
+ ActiveRecordUserGeneratorTest: test_: normal model should include parameters if rails 3 and strong_parameter not present.
15185
+ --------------------------------------------------------------------------------------------------------------------------
15186
+  (0.0ms) begin transaction
15187
+  (0.0ms) commit transaction
15188
+  (0.0ms) begin transaction
15189
+  (0.0ms) rollback transaction
15190
+ --------------------------------------------------------------------------------------------------------------------------
15191
+ ActiveRecordUserGeneratorTest: test_: normal model should not include parameters if rails 3 and strong_parameter present.
15192
+ --------------------------------------------------------------------------------------------------------------------------
15193
+  (0.0ms) begin transaction
15194
+  (0.0ms) commit transaction
15195
+  (0.0ms) begin transaction
15196
+  (0.0ms) rollback transaction
15197
+ ---------------------------------------------------------------------------------------------
15198
+ ActiveRecordUserGeneratorTest: test_: normal model should not include parameters in rails 4.
15199
+ ---------------------------------------------------------------------------------------------
15200
+  (0.0ms) begin transaction
15201
+  (0.0ms) commit transaction
15202
+  (0.0ms) begin transaction
15203
+  (0.0ms) rollback transaction
15204
+ ---------------------------------------------------------------------------------------
15205
+ InstallGeneratorTest: test_: InstallGenerator should create the maestrano initializer.
15206
+ ---------------------------------------------------------------------------------------
15207
+  (0.0ms) begin transaction
15208
+  (0.0ms) commit transaction
15209
+  (0.0ms) begin transaction
15210
+  (0.0ms) rollback transaction
15211
+ ----------------------------------------------------------------------------------
15212
+ InstallGeneratorTest: test_: InstallGenerator should create the maestrano routes.
15213
+ ----------------------------------------------------------------------------------
15214
+  (0.0ms) begin transaction
15215
+  (0.0ms) commit transaction
15216
+  (0.0ms) begin transaction
15217
+  (0.0ms) rollback transaction
15218
+ ----------------------------------------------------------------------------------------------------------
15219
+ InstallGeneratorTest: test_: InstallGenerator should create the maestrano/account/group_users_controller.
15220
+ ----------------------------------------------------------------------------------------------------------
15221
+  (0.0ms) begin transaction
15222
+  (0.0ms) commit transaction
15223
+  (0.0ms) begin transaction
15224
+  (0.0ms) rollback transaction
15225
+ -----------------------------------------------------------------------------------------------------
15226
+ InstallGeneratorTest: test_: InstallGenerator should create the maestrano/account/groups_controller.
15227
+ -----------------------------------------------------------------------------------------------------
15228
+  (0.0ms) begin transaction
15229
+  (0.0ms) commit transaction
15230
+  (0.0ms) begin transaction
15231
+  (0.0ms) rollback transaction
15232
+ ------------------------------------------------------------------------------------------------
15233
+ InstallGeneratorTest: test_: InstallGenerator should create the maestrano/auth/saml_controller.
15234
+ ------------------------------------------------------------------------------------------------
15235
+  (0.0ms) begin transaction
15236
+  (0.0ms) commit transaction
15237
+  (0.0ms) begin transaction
15238
+  (0.0ms) rollback transaction
15239
+ ---------------------------------------------------------------------------------------------------------------------
15240
+ GenericControllerTest: test_: with a maestrano session should be successful if the maestrano session is still valid.
15241
+ ---------------------------------------------------------------------------------------------------------------------
15242
+  (0.0ms) begin transaction
15243
+  (0.0ms) commit transaction
15244
+  (0.0ms) begin transaction
15245
+ Processing by PagesController#home as HTML
15246
+ Rendered pages/home.html.erb within layouts/application (0.3ms)
15247
+ Completed 200 OK in 95ms (Views: 95.1ms | ActiveRecord: 0.0ms)
15248
+  (0.1ms) rollback transaction
15249
+ --------------------------------------------------------------------------------------------------------------------
15250
+ GenericControllerTest: test_: with a maestrano session should initialize redirect to SSO initialization if invalid.
15251
+ --------------------------------------------------------------------------------------------------------------------
15252
+  (0.0ms) begin transaction
15253
+  (0.0ms) commit transaction
15254
+  (0.0ms) begin transaction
15255
+ Processing by PagesController#home as HTML
15256
+ Redirected to http://localhost:3000/maestrano/auth/saml/init/default
15257
+ Filter chain halted as :verify_maestrano_session rendered or redirected
15258
+ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
15259
+  (0.0ms) rollback transaction
15260
+ -----------------------------------------------------------------------------------------------------------
15261
+ GenericControllerTest: test_: with a maestrano session should not redirect to SSO init if sso is disabled.
15262
+ -----------------------------------------------------------------------------------------------------------
15263
+  (0.0ms) begin transaction
15264
+  (0.0ms) commit transaction
15265
+  (0.0ms) begin transaction
15266
+ Processing by PagesController#home as HTML
15267
+ Rendered pages/home.html.erb within layouts/application (0.0ms)
15268
+ Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms)
15269
+  (0.0ms) rollback transaction
15270
+ ------------------------------------------------------------------------------
15271
+ GenericControllerTest: test_: with no maestrano session should be successful.
15272
+ ------------------------------------------------------------------------------
15273
+  (0.0ms) begin transaction
15274
+  (0.0ms) commit transaction
15275
+  (0.0ms) begin transaction
15276
+ Processing by PagesController#home as HTML
15277
+ Rendered pages/home.html.erb within layouts/application (0.0ms)
15278
+ Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms)
15279
+  (0.0ms) rollback transaction
15280
+ --------------------------------------------------------------------------------------------------------
15281
+ UserGeneratorTest: test_: UserGenerator should call the active_record migration generator successfully.
15282
+ --------------------------------------------------------------------------------------------------------
15283
+  (0.0ms) begin transaction
15284
+  (0.0ms) commit transaction
15285
+  (0.0ms) begin transaction
15286
+  (0.0ms) rollback transaction
15287
+ --------------------------------------------------------------------------------------------------
15288
+ UserGeneratorTest: test_: UserGenerator should call the mongoid migration generator successfully.
15289
+ --------------------------------------------------------------------------------------------------
15290
+  (0.0ms) begin transaction
15291
+  (0.0ms) commit transaction
15292
+  (0.0ms) begin transaction
15293
+  (0.0ms) rollback transaction
15294
+ ---------------------------------------------------------------------
15295
+ GroupUsersControllerTest: test_: authenticated should be successful.
15296
+ ---------------------------------------------------------------------
15297
+  (0.0ms) begin transaction
15298
+  (0.0ms) commit transaction
15299
+  (0.0ms) begin transaction
15300
+ Processing by Maestrano::Account::GroupUsersController#destroy as HTML
15301
+ Parameters: {"group_id"=>"cld-1", "id"=>"usr-1"}
15302
+ Rendered text template (0.0ms)
15303
+ Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms)
15304
+  (0.0ms) rollback transaction
15305
+ ---------------------------------------------------------------------
15306
+ GroupUsersControllerTest: test_: unauthenticated should deny access.
15307
+ ---------------------------------------------------------------------
15308
+  (0.0ms) begin transaction
15309
+  (0.0ms) commit transaction
15310
+  (0.0ms) begin transaction
15311
+ Processing by Maestrano::Account::GroupUsersController#destroy as HTML
15312
+ Parameters: {"group_id"=>"cld-1", "id"=>"usr-1"}
15313
+ Filter chain halted as :authenticate_maestrano! rendered or redirected
15314
+ Completed 401 Unauthorized in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
15315
+  (0.0ms) rollback transaction
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: maestrano-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.15.1
4
+ version: 0.15.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Arnaud Lachaume
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-02-15 00:00:00.000000000 Z
11
+ date: 2016-04-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails