iudex-http-test 1.3.0-java → 1.4.0-java
Sign up to get free protection for your applications and to get access to all the features.
- data/History.rdoc +8 -0
- data/README.rdoc +1 -1
- data/bin/iudex-http-test-fg +1 -1
- data/lib/iudex-http-test.rb +1 -1
- data/lib/iudex-http-test/base.rb +2 -2
- data/lib/iudex-http-test/broken_server.rb +4 -1
- data/lib/iudex-http-test/helper.rb +1 -1
- data/lib/iudex-http-test/server.rb +1 -1
- data/lib/iudex-http-test/test_app.rb +22 -1
- data/test/setup.rb +1 -1
- data/test/test_broken_server.rb +1 -1
- data/test/test_server.rb +1 -1
- data/test/test_test_app.rb +1 -1
- metadata +14 -30
data/History.rdoc
CHANGED
@@ -1,3 +1,11 @@
|
|
1
|
+
=== 1.4.0 (2013-10-29)
|
2
|
+
* Add /slow streaming output test path
|
3
|
+
* Add rescue, log of EPIPE from BrokenServer.accept
|
4
|
+
* Upgrade to fishwife ~> 1.5.0 (supports jetty 9.0.x),
|
5
|
+
sinatra ~>1.4.2 (rack ~> 1.5), markaby ~> 0.7.2, builder ~> 3.2.0,
|
6
|
+
rack-test ~> 0.6.2
|
7
|
+
* Upgrade to minitest ~> 4.7.4 (dev)
|
8
|
+
|
1
9
|
=== 1.3.0 (2012-11-8)
|
2
10
|
* Upgrade to logback ~> 1.5 (dev)
|
3
11
|
|
data/README.rdoc
CHANGED
@@ -11,7 +11,7 @@ testing HTTP client implementations.
|
|
11
11
|
|
12
12
|
== License
|
13
13
|
|
14
|
-
Copyright (c) 2008-
|
14
|
+
Copyright (c) 2008-2013 David Kellum
|
15
15
|
|
16
16
|
Licensed under the Apache License, Version 2.0 (the "License"); you
|
17
17
|
may not use this file except in compliance with the License. You
|
data/bin/iudex-http-test-fg
CHANGED
data/lib/iudex-http-test.rb
CHANGED
data/lib/iudex-http-test/base.rb
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
#--
|
2
|
-
# Copyright (c) 2008-
|
2
|
+
# Copyright (c) 2008-2013 David Kellum
|
3
3
|
#
|
4
4
|
# Licensed under the Apache License, Version 2.0 (the "License"); you
|
5
5
|
# may not use this file except in compliance with the License. You
|
@@ -17,7 +17,7 @@
|
|
17
17
|
module Iudex
|
18
18
|
module HTTP
|
19
19
|
module Test
|
20
|
-
VERSION = '1.
|
20
|
+
VERSION = '1.4.0'
|
21
21
|
end
|
22
22
|
end
|
23
23
|
end
|
@@ -1,5 +1,5 @@
|
|
1
1
|
#--
|
2
|
-
# Copyright (c) 2008-
|
2
|
+
# Copyright (c) 2008-2013 David Kellum
|
3
3
|
#
|
4
4
|
# Licensed under the Apache License, Version 2.0 (the "License"); you
|
5
5
|
# may not use this file except in compliance with the License. You
|
@@ -26,6 +26,7 @@ module Iudex::HTTP::Test
|
|
26
26
|
def initialize
|
27
27
|
@port = 19293
|
28
28
|
@server = nil
|
29
|
+
@log = RJack::SLF4J[ self.class ]
|
29
30
|
end
|
30
31
|
|
31
32
|
def start
|
@@ -35,6 +36,8 @@ module Iudex::HTTP::Test
|
|
35
36
|
def accept
|
36
37
|
sock = @server.accept
|
37
38
|
yield sock if block_given?
|
39
|
+
rescue Errno::EPIPE => x
|
40
|
+
@log.warn( "In accept:", x )
|
38
41
|
end
|
39
42
|
|
40
43
|
def stop
|
@@ -1,5 +1,5 @@
|
|
1
1
|
#--
|
2
|
-
# Copyright (c) 2008-
|
2
|
+
# Copyright (c) 2008-2013 David Kellum
|
3
3
|
#
|
4
4
|
# Licensed under the Apache License, Version 2.0 (the "License"); you
|
5
5
|
# may not use this file except in compliance with the License. You
|
@@ -177,10 +177,31 @@ module Iudex::HTTP::Test
|
|
177
177
|
end
|
178
178
|
end
|
179
179
|
|
180
|
+
class SlowGenerator
|
181
|
+
def initialize( out )
|
182
|
+
@out = out
|
183
|
+
end
|
184
|
+
|
185
|
+
def each
|
186
|
+
count = 0
|
187
|
+
loop do
|
188
|
+
count += 1
|
189
|
+
yield "Line number #{count}\n"
|
190
|
+
@out.flush
|
191
|
+
sleep 0.100
|
192
|
+
end
|
193
|
+
end
|
194
|
+
end
|
195
|
+
|
180
196
|
get '/giant' do
|
181
197
|
[ 200, { 'Content-Type' => 'text/plain' }, GiantGenerator.new ]
|
182
198
|
end
|
183
199
|
|
200
|
+
get '/slow' do
|
201
|
+
out = request.env['rack.java.servlet.response'].output_stream
|
202
|
+
[ 200, { 'Content-Type' => 'text/plain' }, SlowGenerator.new( out ) ]
|
203
|
+
end
|
204
|
+
|
184
205
|
def common( params )
|
185
206
|
ps = [ :sleep, :con ].
|
186
207
|
map { |k| ( v = params[k] ) && [ k, v ] }.
|
data/test/setup.rb
CHANGED
data/test/test_broken_server.rb
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
#.hashdot.profile += jruby-shortlived
|
3
3
|
|
4
4
|
#--
|
5
|
-
# Copyright (c) 2008-
|
5
|
+
# Copyright (c) 2008-2013 David Kellum
|
6
6
|
#
|
7
7
|
# Licensed under the Apache License, Version 2.0 (the "License"); you
|
8
8
|
# may not use this file except in compliance with the License. You
|
data/test/test_server.rb
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
#.hashdot.profile += jruby-shortlived
|
3
3
|
|
4
4
|
#--
|
5
|
-
# Copyright (c) 2008-
|
5
|
+
# Copyright (c) 2008-2013 David Kellum
|
6
6
|
#
|
7
7
|
# Licensed under the Apache License, Version 2.0 (the "License"); you
|
8
8
|
# may not use this file except in compliance with the License. You
|
data/test/test_test_app.rb
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
#.hashdot.profile += jruby-shortlived
|
3
3
|
|
4
4
|
#--
|
5
|
-
# Copyright (c) 2008-
|
5
|
+
# Copyright (c) 2008-2013 David Kellum
|
6
6
|
#
|
7
7
|
# Licensed under the Apache License, Version 2.0 (the "License"); you
|
8
8
|
# may not use this file except in compliance with the License. You
|
metadata
CHANGED
@@ -2,14 +2,14 @@
|
|
2
2
|
name: iudex-http-test
|
3
3
|
version: !ruby/object:Gem::Version
|
4
4
|
prerelease:
|
5
|
-
version: 1.
|
5
|
+
version: 1.4.0
|
6
6
|
platform: java
|
7
7
|
authors:
|
8
8
|
- David Kellum
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2013-10-30 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: fishwife
|
@@ -17,13 +17,13 @@ dependencies:
|
|
17
17
|
requirements:
|
18
18
|
- - ~>
|
19
19
|
- !ruby/object:Gem::Version
|
20
|
-
version: 1.
|
20
|
+
version: 1.5.0
|
21
21
|
none: false
|
22
22
|
requirement: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - ~>
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 1.
|
26
|
+
version: 1.5.0
|
27
27
|
none: false
|
28
28
|
prerelease: false
|
29
29
|
type: :runtime
|
@@ -33,13 +33,13 @@ dependencies:
|
|
33
33
|
requirements:
|
34
34
|
- - ~>
|
35
35
|
- !ruby/object:Gem::Version
|
36
|
-
version: 1.
|
36
|
+
version: 1.4.2
|
37
37
|
none: false
|
38
38
|
requirement: !ruby/object:Gem::Requirement
|
39
39
|
requirements:
|
40
40
|
- - ~>
|
41
41
|
- !ruby/object:Gem::Version
|
42
|
-
version: 1.
|
42
|
+
version: 1.4.2
|
43
43
|
none: false
|
44
44
|
prerelease: false
|
45
45
|
type: :runtime
|
@@ -49,13 +49,13 @@ dependencies:
|
|
49
49
|
requirements:
|
50
50
|
- - ~>
|
51
51
|
- !ruby/object:Gem::Version
|
52
|
-
version: 3.
|
52
|
+
version: 3.2.0
|
53
53
|
none: false
|
54
54
|
requirement: !ruby/object:Gem::Requirement
|
55
55
|
requirements:
|
56
56
|
- - ~>
|
57
57
|
- !ruby/object:Gem::Version
|
58
|
-
version: 3.
|
58
|
+
version: 3.2.0
|
59
59
|
none: false
|
60
60
|
prerelease: false
|
61
61
|
type: :runtime
|
@@ -65,13 +65,13 @@ dependencies:
|
|
65
65
|
requirements:
|
66
66
|
- - ~>
|
67
67
|
- !ruby/object:Gem::Version
|
68
|
-
version: 0.7.
|
68
|
+
version: 0.7.2
|
69
69
|
none: false
|
70
70
|
requirement: !ruby/object:Gem::Requirement
|
71
71
|
requirements:
|
72
72
|
- - ~>
|
73
73
|
- !ruby/object:Gem::Version
|
74
|
-
version: 0.7.
|
74
|
+
version: 0.7.2
|
75
75
|
none: false
|
76
76
|
prerelease: false
|
77
77
|
type: :runtime
|
@@ -81,45 +81,29 @@ dependencies:
|
|
81
81
|
requirements:
|
82
82
|
- - ~>
|
83
83
|
- !ruby/object:Gem::Version
|
84
|
-
version:
|
84
|
+
version: 4.7.4
|
85
85
|
none: false
|
86
86
|
requirement: !ruby/object:Gem::Requirement
|
87
87
|
requirements:
|
88
88
|
- - ~>
|
89
89
|
- !ruby/object:Gem::Version
|
90
|
-
version:
|
90
|
+
version: 4.7.4
|
91
91
|
none: false
|
92
92
|
prerelease: false
|
93
93
|
type: :runtime
|
94
|
-
- !ruby/object:Gem::Dependency
|
95
|
-
name: rack
|
96
|
-
version_requirements: !ruby/object:Gem::Requirement
|
97
|
-
requirements:
|
98
|
-
- - ~>
|
99
|
-
- !ruby/object:Gem::Version
|
100
|
-
version: 1.4.1
|
101
|
-
none: false
|
102
|
-
requirement: !ruby/object:Gem::Requirement
|
103
|
-
requirements:
|
104
|
-
- - ~>
|
105
|
-
- !ruby/object:Gem::Version
|
106
|
-
version: 1.4.1
|
107
|
-
none: false
|
108
|
-
prerelease: false
|
109
|
-
type: :development
|
110
94
|
- !ruby/object:Gem::Dependency
|
111
95
|
name: rack-test
|
112
96
|
version_requirements: !ruby/object:Gem::Requirement
|
113
97
|
requirements:
|
114
98
|
- - ~>
|
115
99
|
- !ruby/object:Gem::Version
|
116
|
-
version: 0.6.
|
100
|
+
version: 0.6.2
|
117
101
|
none: false
|
118
102
|
requirement: !ruby/object:Gem::Requirement
|
119
103
|
requirements:
|
120
104
|
- - ~>
|
121
105
|
- !ruby/object:Gem::Version
|
122
|
-
version: 0.6.
|
106
|
+
version: 0.6.2
|
123
107
|
none: false
|
124
108
|
prerelease: false
|
125
109
|
type: :development
|