grntest 1.4.9 → 1.5.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e027a36e3f3e1206e89cf0cc617a5e892074bd207ee46f29ebccf9b68bf25bc0
4
- data.tar.gz: 4393ff236546341e6abba56083164ed4bdd51564a3acc0b3087ac2bf1cc6fec1
3
+ metadata.gz: 482d04165fd7dc5994528ae65d9c869440e45e6bad2c1851a96288f4a65c08a6
4
+ data.tar.gz: 479ba023a7ed7f2ccb9554160a102ed73fe4de173e7b225f63af6f72c9990750
5
5
  SHA512:
6
- metadata.gz: 14748646fa504319011a9cd649c732ae644ef2b7ec73a402f9740dda5a0f125e38dba7b227a4873766cc31777daf5d9407e9ab7ea5dd328f20eb858474c9a028
7
- data.tar.gz: f34f315596201dec45cc177bfd0edba7f40f3dede8c6d8a046a28cf85fabf47ef1703340bc6008c60c751eda5712e38ea3bb0e52447118556536a93804a6a817
6
+ metadata.gz: 8e4f5687fbf84811d5ca93193407f00041fe5549a685e0181c1cde62564898c168386b94ce9c5882762309f0b6b91d30c18a25e09db3e4bb3fe76aa0d2e651a8
7
+ data.tar.gz: 05ccec382c7f186b3dad5fe75a10b50e10b3bf213e8021c4d22d288dcaffd94c7f79f03c625f718f593bcbea8d140937b10c8937de2962b426dfec6d38870682
data/doc/text/news.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # News
2
2
 
3
+ ## 1.5.0: 2021-07-16
4
+
5
+ ### Improvements
6
+
7
+ * `http`: Added response code check.
8
+
9
+ * `groonga-httpd`: Increased the max body size.
10
+
3
11
  ## 1.4.9: 2021-07-12
4
12
 
5
13
  ### Improvements
@@ -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
 
@@ -545,6 +545,7 @@ http {
545
545
  groonga_log_path #{context.log_path};
546
546
  groonga_query_log_path #{context.query_log_path};
547
547
  groonga on;
548
+ client_max_body_size 500m;
548
549
  }
549
550
  }
550
551
  }
@@ -1,4 +1,4 @@
1
- # Copyright (C) 2012-2020 Sutou Kouhei <kou@clear-code.com>
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.4.9"
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.9
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 00:00:00.000000000 Z
12
+ date: 2021-07-16 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: diff-lcs