File tree Expand file tree Collapse file tree 4 files changed +8
-8
lines changed
lib/aws/session_store/dynamo_db Expand file tree Collapse file tree 4 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -153,7 +153,7 @@ class Configuration
153
153
# See AWS DynamoDB documentation for table write_capacity for more
154
154
# information on this setting.
155
155
# @option options [DynamoDB Client] :dynamo_db_client
156
- # (AWS ::DynamoDB::ClientV2) DynamoDB client used to perform database
156
+ # (Aws ::DynamoDB::ClientV2) DynamoDB client used to perform database
157
157
# operations inside of middleware application.
158
158
# @option options [Boolean] :raise_errors (false) If true, all errors are
159
159
# raised up the stack when default ErrorHandler. If false, Only specified
Original file line number Diff line number Diff line change @@ -33,11 +33,11 @@ class BaseHandler
33
33
# error up the stack.
34
34
# You may reraise the error passed.
35
35
#
36
- # @param [AWS ::DynamoDB::Errors::Base] error error passed in from
36
+ # @param [Aws ::DynamoDB::Errors::Base] error error passed in from
37
37
# AWS::SessionStore::DynamoDB::RackMiddleware.
38
38
# @param [Rack::Request::Environment,nil] env Rack environment
39
39
# @return [false] If exception was handled and will not reraise exception.
40
- # @raise [AWS ::DynamoDB::Errors] If error has be reraised.
40
+ # @raise [Aws ::DynamoDB::Errors] If error has be reraised.
41
41
def handle_error ( error , env = { } )
42
42
raise NotImplementedError
43
43
end
Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ class RackMiddleware < Rack::Session::Abstract::ID
24
24
#
25
25
# @param app Rack application.
26
26
# @option (see Configuration#initialize)
27
- # @raise [AWS ::DynamoDB::Errors::ResourceNotFoundException] If valid table
27
+ # @raise [Aws ::DynamoDB::Errors::ResourceNotFoundException] If valid table
28
28
# name is not provided.
29
29
# @raise [AWS::SessionStore::DynamoDB::MissingSecretKey] If secret key is
30
30
# not provided.
@@ -51,7 +51,7 @@ def set_locking_strategy
51
51
# Determines if the correct session table name is being used for
52
52
# this application. Also tests existence of secret key.
53
53
#
54
- # @raise [AWS ::DynamoDB::Errors::ResourceNotFoundException] If wrong table
54
+ # @raise [Aws ::DynamoDB::Errors::ResourceNotFoundException] If wrong table
55
55
# name.
56
56
def validate_config
57
57
raise MissingSecretKeyError unless @config . secret_key
Original file line number Diff line number Diff line change @@ -39,10 +39,10 @@ def call(env)
39
39
40
40
ConstantHelpers = lambda do
41
41
let ( :token_error_msg ) { 'The security token included in the request is invalid' }
42
- let ( :resource_error ) { Aws ::DynamoDB ::Errors ::ResourceNotFoundException }
43
- let ( :key_error ) { Aws ::DynamoDB ::Errors ::ValidationException . new ( key_error_msg ) }
42
+ let ( :resource_error ) { Aws ::DynamoDB ::Errors ::ResourceNotFoundException . new ( double ( 'Seahorse::Client::RequestContext' ) , 'Resource not found.' ) }
43
+ let ( :key_error ) { Aws ::DynamoDB ::Errors ::ValidationException . new ( double ( 'Seahorse::Client::RequestContext' ) , key_error_msg ) }
44
44
let ( :key_error_msg ) { 'The provided key element does not match the schema' }
45
- let ( :client_error ) { Aws ::DynamoDB ::Errors ::UnrecognizedClientException }
45
+ let ( :client_error ) { Aws ::DynamoDB ::Errors ::UnrecognizedClientException . new ( double ( 'Seahorse::Client::RequestContext' ) , 'Unrecognized Client.' ) }
46
46
let ( :invalid_cookie ) { { "HTTP_COOKIE" => "rack.session=ApplePieBlueberries" } }
47
47
let ( :invalid_session_data ) { { "rack.session" => { "multiplier" => 1 } } }
48
48
let ( :rack_default_error_msg ) { "Warning! AWS::SessionStore::DynamoDB failed to save session. Content dropped.\n " }
You can’t perform that action at this time.
0 commit comments