grntest 1.4.9 → 1.5.0
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/doc/text/news.md +8 -0
- data/lib/grntest/executors/http-executor.rb +10 -0
- data/lib/grntest/test-runner.rb +1 -0
- data/lib/grntest/version.rb +2 -2
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 482d04165fd7dc5994528ae65d9c869440e45e6bad2c1851a96288f4a65c08a6
|
|
4
|
+
data.tar.gz: 479ba023a7ed7f2ccb9554160a102ed73fe4de173e7b225f63af6f72c9990750
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 8e4f5687fbf84811d5ca93193407f00041fe5549a685e0181c1cde62564898c168386b94ce9c5882762309f0b6b91d30c18a25e09db3e4bb3fe76aa0d2e651a8
|
|
7
|
+
data.tar.gz: 05ccec382c7f186b3dad5fe75a10b50e10b3bf213e8021c4d22d288dcaffd94c7f79f03c625f718f593bcbea8d140937b10c8937de2962b426dfec6d38870682
|
data/doc/text/news.md
CHANGED
|
@@ -78,6 +78,10 @@ module Grntest
|
|
|
78
78
|
DEBUG = (ENV["GRNTEST_HTTP_DEBUG"] == "yes")
|
|
79
79
|
LOAD_DEBUG = (DEBUG or (ENV["GRNTEST_HTTP_LOAD_DEBUG"] == "yes"))
|
|
80
80
|
|
|
81
|
+
def check_response(response)
|
|
82
|
+
response.value
|
|
83
|
+
end
|
|
84
|
+
|
|
81
85
|
MAX_URI_SIZE = 4096
|
|
82
86
|
def send_load_command(command)
|
|
83
87
|
lines = command.original_source.lines
|
|
@@ -122,6 +126,7 @@ module Grntest
|
|
|
122
126
|
http.read_timeout = read_timeout
|
|
123
127
|
http.request(request)
|
|
124
128
|
end
|
|
129
|
+
check_response(response)
|
|
125
130
|
normalize_response_data(command, response.body)
|
|
126
131
|
end
|
|
127
132
|
end
|
|
@@ -144,6 +149,7 @@ module Grntest
|
|
|
144
149
|
http.read_timeout = read_timeout
|
|
145
150
|
http.request(request)
|
|
146
151
|
end
|
|
152
|
+
check_response(response)
|
|
147
153
|
normalize_response_data(command, response.body)
|
|
148
154
|
end
|
|
149
155
|
end
|
|
@@ -174,6 +180,10 @@ module Grntest
|
|
|
174
180
|
message = "bad HTTP header syntax in Groonga response: <#{url}>: "
|
|
175
181
|
message << "#{$!.class}: #{$!.message}"
|
|
176
182
|
raise Error.new(message)
|
|
183
|
+
rescue Net::HTTPServerException
|
|
184
|
+
message = "exception from Groonga: <#{url}>: "
|
|
185
|
+
message << "#{$!.class}: #{$!.message}"
|
|
186
|
+
raise Error.new(message)
|
|
177
187
|
end
|
|
178
188
|
end
|
|
179
189
|
|
data/lib/grntest/test-runner.rb
CHANGED
data/lib/grntest/version.rb
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# Copyright (C) 2012-
|
|
1
|
+
# Copyright (C) 2012-2021 Sutou Kouhei <kou@clear-code.com>
|
|
2
2
|
#
|
|
3
3
|
# This program is free software: you can redistribute it and/or modify
|
|
4
4
|
# it under the terms of the GNU General Public License as published by
|
|
@@ -14,5 +14,5 @@
|
|
|
14
14
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
15
15
|
|
|
16
16
|
module Grntest
|
|
17
|
-
VERSION = "1.
|
|
17
|
+
VERSION = "1.5.0"
|
|
18
18
|
end
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: grntest
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.
|
|
4
|
+
version: 1.5.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Kouhei Sutou
|
|
@@ -9,7 +9,7 @@ authors:
|
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date: 2021-07-
|
|
12
|
+
date: 2021-07-16 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: diff-lcs
|