RackTest
Ruby
code posted
by
Mario Uher <uher.mario@gmail.com>
created at 02 Dec 16:18
Edit
|
Back
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 |
#<ActionController::TestRequest:0x007fdf10b9b3c8 @cookies={}, @env= {"rack.version"=>[1, 2], "rack.input"=>#<StringIO:0x007fdf0cd90420>, "rack.errors"=>#<StringIO:0x007fdf11ec0200>, "rack.multithread"=>true, "rack.multiprocess"=>true, "rack.run_once"=>false, "REQUEST_METHOD"=>"PATCH", "SERVER_NAME"=>"example.org", "SERVER_PORT"=>"80", "QUERY_STRING"=>"", "rack.url_scheme"=>"http", "HTTPS"=>"off", "SCRIPT_NAME"=>nil, "CONTENT_LENGTH"=>"0", "HTTP_HOST"=>"test.host", "REMOTE_ADDR"=>"0.0.0.0", "HTTP_USER_AGENT"=>"curl/7.30.0", "action_dispatch.routes"=> #<ActionDispatch::Routing::RouteSet:0x007fdf11902480>, "action_dispatch.parameter_filter"=>[:password], "action_dispatch.redirect_filter"=>[], "action_dispatch.secret_token"=>nil, "action_dispatch.secret_key_base"=> "f5de707bf199d97be2ace02145ae850f392ccde81189e29acc203bc58c1f617a8b192850fa0f275dc30829bd260b414f28b0ab8262caf868f5d27d1f28f7f107", "action_dispatch.show_exceptions"=>false, "action_dispatch.show_detailed_exceptions"=>true, "action_dispatch.logger"=> #<ActiveSupport::Logger:0x007fdf10a74a08 @default_formatter= #<Logger::Formatter:0x007fdf10a749b8 @datetime_format=nil>, @formatter= #<ActiveSupport::Logger::SimpleFormatter:0x007fdf0e581fc0 @datetime_format=nil>, @level=0, @logdev= #<Logger::LogDevice:0x007fdf10a74968 @dev=#<File:/Users/mario/Code/bee/previe/log/test.log>, @filename=nil, @mutex= #<Logger::LogDevice::LogDeviceMutex:0x007fdf10a74940 @mon_count=0, @mon_mutex=#<Mutex:0x007fdf10a748f0>, @mon_owner=nil>, @shift_age=nil, @shift_size=nil>, @progname=nil>, "action_dispatch.backtrace_cleaner"=> #<Rails::BacktraceCleaner:0x007fdf11f91198 @filters= [#<Proc:0x007fdf11f910d0@/Users/mario/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/railties-4.0.1/lib/rails/backtrace_cleaner.rb:10>, #<Proc:0x007fdf11f910a8@/Users/mario/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/railties-4.0.1/lib/rails/backtrace_cleaner.rb:11>, #<Proc:0x007fdf11f91080@/Users/mario/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/railties-4.0.1/lib/rails/backtrace_cleaner.rb:12>, #<Proc:0x007fdf11f90a40@/Users/mario/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/railties-4.0.1/lib/rails/backtrace_cleaner.rb:24>], @silencers= [#<Proc:0x007fdf11f90a18@/Users/mario/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/railties-4.0.1/lib/rails/backtrace_cleaner.rb:15>]>, "action_dispatch.key_generator"=> #<ActiveSupport::CachingKeyGenerator:0x007fdf10b9b008 @cache_keys= #<ThreadSafe::Cache:0x007fdf10b9afe0 @backend={}, @default_proc=nil>, @key_generator= #<ActiveSupport::KeyGenerator:0x007fdf10b9b030 @iterations=1000, @secret= "f5de707bf199d97be2ace02145ae850f392ccde81189e29acc203bc58c1f617a8b192850fa0f275dc30829bd260b414f28b0ab8262caf868f5d27d1f28f7f107">>, "action_dispatch.http_auth_salt"=>"http authentication", "action_dispatch.signed_cookie_salt"=>"signed cookie", "action_dispatch.encrypted_cookie_salt"=>"encrypted cookie", "action_dispatch.encrypted_signed_cookie_salt"=>"signed encrypted cookie", "rack.session"=>{}, "rack.session.options"=> {:key=>"rack.session", :path=>"/", :domain=>nil, :expire_after=>nil, :secure=>false, :httponly=>true, :defer=>false, :renew=>false, :sidbits=>128, :cookie_only=>true, :secure_random=>SecureRandom, :id=>"e3a4472dbb0ea13687801fd5c3572c9d"}, "CONTENT_TYPE"=>"application/json", "HTTP_ACCEPT"=>"*/*", "HTTP_SIGNATURE"=> "82ac3f5d-0f0c-51ce-86d8-cbd160d12a20=5jilX6HfhNSqNPotO7HxXNLu1yI=", "RAW_POST_DATA"=>"{\"worker_id\":\"a43c8c8f-aae5-43f1-a137-8ebb56f5ce1f\"}", "action_dispatch.request.query_parameters"=>{}, "action_dispatch.cookies"=> #<ActionDispatch::Cookies::CookieJar:0x007fdf0cd7a0d0 @cookies={}, @delete_cookies={}, @host="test.host", @key_generator= #<ActiveSupport::CachingKeyGenerator:0x007fdf10b9b008 @cache_keys= #<ThreadSafe::Cache:0x007fdf10b9afe0 @backend={}, @default_proc=nil>, @key_generator= #<ActiveSupport::KeyGenerator:0x007fdf10b9b030 @iterations=1000, @secret= "f5de707bf199d97be2ace02145ae850f392ccde81189e29acc203bc58c1f617a8b192850fa0f275dc30829bd260b414f28b0ab8262caf868f5d27d1f28f7f107">>, @options= {:signed_cookie_salt=>"signed cookie", :encrypted_cookie_salt=>"encrypted cookie", :encrypted_signed_cookie_salt=>"signed encrypted cookie", :secret_token=>nil, :secret_key_base=> "f5de707bf199d97be2ace02145ae850f392ccde81189e29acc203bc58c1f617a8b192850fa0f275dc30829bd260b414f28b0ab8262caf868f5d27d1f28f7f107", :upgrade_legacy_signed_cookies=>false}, @secure=false, @set_cookies={}>, "rack.request.cookie_hash"=>{}, "action_dispatch.request.content_type"=> #<Mime::Type:0x007fdf0e2ef320 @string="application/json", @symbol=:json, @synonyms=["text/x-json", "application/jsonrequest"]>, "action_dispatch.request.request_parameters"=>{}, "action_dispatch.request.path_parameters"=> {"controller"=>"v1/jobs", "action"=>"next"}, "action_dispatch.request.flash_hash"=> #<ActionDispatch::Flash::FlashHash:0x007fdf0cd903a8 @discard=#<Set: {}>, @flashes={}, @now=nil>, "PATH_INFO"=>"/v1/jobs/next", "action_dispatch.request.parameters"=> {"controller"=>"v1/jobs", "action"=>"next"}, "action_dispatch.request.accepts"=> [#<Mime::Type:0x007fdf12800a40 @string="*/*", @symbol=nil, @synonyms=[]>], "action_dispatch.request.formats"=> [#<Mime::Type:0x007fdf12800a40 @string="*/*", @symbol=nil, @synonyms=[]>]}, @filtered_env=nil, @filtered_parameters={"controller"=>"v1/jobs", "action"=>"next"}, @filtered_path=nil, @formats=nil, @fullpath="/v1/jobs/next", @ip=nil, @method="PATCH", @original_fullpath=nil, @port=80, @protocol="http://", @remote_ip=nil, @request_method="PATCH", @set_cookies={}, @symbolized_path_params={:controller=>"v1/jobs", :action=>"next"}, @uuid=nil> |
6.29 KB in 7 ms with coderay