http_stub 0.26.1 → 0.26.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/http_stub/server/application/cross_origin_support.rb +7 -5
- data/lib/http_stub/server/stub/payload/response_body_modifier.rb +3 -3
- data/lib/http_stub/server/stub/response/attribute/headers.rb +7 -1
- data/lib/http_stub/server/stub/response/attribute/interpolator/headers.rb +2 -2
- data/lib/http_stub/server/stub/response/attribute/interpolator/parameters.rb +2 -2
- data/lib/http_stub/version.rb +1 -1
- data/spec/{spec_helper.rb → helper.rb} +5 -5
- data/spec/lib/http_stub/server/stub/response/attribute/headers_spec.rb +16 -0
- data/spec/support/browser_integration.rb +1 -5
- data/spec/support/http_stub/selenium/browser.rb +21 -0
- metadata +532 -533
- data/spec/tmp/log/json_stub_console.log +0 -25
- data/spec/tmp/pids/json_stub.pid +0 -1
@@ -1,25 +0,0 @@
|
|
1
|
-
[2016-08-10 14:43:30] INFO WEBrick 1.3.1
|
2
|
-
[2016-08-10 14:43:30] INFO ruby 2.3.1 (2016-04-26) [x86_64-darwin15]
|
3
|
-
== Sinatra (v1.4.7) has taken the stage on 8006 for test with backup from WEBrick
|
4
|
-
[2016-08-10 14:43:30] INFO WEBrick::HTTPServer#start: pid=938 port=8006
|
5
|
-
I, [2016-08-10T14:43:31.660265 #938] INFO -- : Finding stub matching: #<HttpStub::Server::Request::Request:0x007fd9e61670c0>
|
6
|
-
I, [2016-08-10T14:43:31.660336 #938] INFO -- : Registered stub miss: #<HttpStub::Server::Stub::Match::Miss:0x007fd9e615df70>
|
7
|
-
127.0.0.1 - - [10/Aug/2016:14:43:31 +1000] "GET / HTTP/1.1" 404 9 0.0078
|
8
|
-
127.0.0.1 - - [10/Aug/2016:14:43:31 AEST] "GET / HTTP/1.1" 404 9
|
9
|
-
- -> /
|
10
|
-
I, [2016-08-10T14:43:31.673732 #938] INFO -- : Registered stub: {"id"=>"16f8622e-316c-434e-b8e3-c920e7a50292", "uri"=>"/some_resource", "method"=>"get", "headers"=>{}, "parameters"=>{}, "body"=>{}, "response"=>{"status"=>200, "headers"=>{"content-type"=>"application/json"}, "body"=>"[{\"data\":{\"in_json\":\"some value in json\"},\"not_in_json\":\"some value not in json\"}]", "delay_in_seconds"=>""}, "triggers"=>[], "base_uri"=>"http://localhost:8006"}
|
11
|
-
127.0.0.1 - - [10/Aug/2016:14:43:31 +1000] "POST /http_stub/stubs HTTP/1.1" 200 2 0.0023
|
12
|
-
127.0.0.1 - - [10/Aug/2016:14:43:31 AEST] "POST /http_stub/stubs HTTP/1.1" 200 2
|
13
|
-
- -> /http_stub/stubs
|
14
|
-
127.0.0.1 - - [10/Aug/2016:14:43:31 +1000] "POST /http_stub/stubs/memory HTTP/1.1" 200 2 0.0004
|
15
|
-
127.0.0.1 - - [10/Aug/2016:14:43:31 AEST] "POST /http_stub/stubs/memory HTTP/1.1" 200 2
|
16
|
-
- -> /http_stub/stubs/memory
|
17
|
-
127.0.0.1 - - [10/Aug/2016:14:43:36 +1000] "GET /http_stub/stubs HTTP/1.1" 200 1738 0.0113
|
18
|
-
127.0.0.1 - - [10/Aug/2016:14:43:36 AEST] "GET /http_stub/stubs HTTP/1.1" 200 1738
|
19
|
-
- -> /http_stub/stubs
|
20
|
-
127.0.0.1 - - [10/Aug/2016:14:43:36 +1000] "GET /jquery-2.2.4.min.js HTTP/1.1" 304 - 0.0003
|
21
|
-
127.0.0.1 - - [10/Aug/2016:14:43:36 AEST] "GET /jquery-2.2.4.min.js HTTP/1.1" 304 0
|
22
|
-
http://localhost:8006/http_stub/stubs -> /jquery-2.2.4.min.js
|
23
|
-
127.0.0.1 - - [10/Aug/2016:14:43:36 +1000] "GET /application.css HTTP/1.1" 200 904 0.0091
|
24
|
-
127.0.0.1 - - [10/Aug/2016:14:43:36 AEST] "GET /application.css HTTP/1.1" 200 904
|
25
|
-
http://localhost:8006/http_stub/stubs -> /application.css
|
data/spec/tmp/pids/json_stub.pid
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
938
|