always fails with a throughput error
# File spec/aws/dynamo_db/client_spec.rb, line 83 def initialize @call_count = 0 @failure = nil end
# File spec/aws/dynamo_db/client_spec.rb, line 98 def access_fail @failure = "{\"__type\":\"VERSION#ExpiredTokenException\",\"message\":\"\"}" @status = 400 end
# File spec/aws/dynamo_db/client_spec.rb, line 87 def handle req, resp @call_count += 1 resp.body = @failure resp.status = @status end
# File spec/aws/dynamo_db/client_spec.rb, line 103 def server_fail @failure = "{\"__type\":\"VERSION#ServerFailure\",\"message\":\"\"}" @status = 500 end
# File spec/aws/dynamo_db/client_spec.rb, line 93 def throughput_fail @failure = "{\"__type\":\"VERSION#ProvisionedThroughputExceededException\",\"message\":\"The level of configured provisioned throughput for the table was exceeded. Consider increasing your provisioning level with the UpdateTable API\"}" @status = 400 end