elasticsearch-test-runner 0.15.0 → 0.15.1
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/CHANGELOG.md +4 -0
- data/lib/elasticsearch/tests/printer.rb +7 -0
- data/lib/elasticsearch/tests/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 14c0f93fb966a0ea3fefd43a4451a3f135846488d67447d2653d93054099291b
|
|
4
|
+
data.tar.gz: 86d315e8e7e3755e8d08afbd2d0f21ca5a242afb8be8e733a2be9ff23b68de1a
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: df2f57bf9b7970f0f7a76a264c34456eaaf012242ab0ce77e308985e2ff503593811c79b2b2f7073870f4ae611d0ac33c2f09ad5738cbf0183dc371fa185a991
|
|
7
|
+
data.tar.gz: a06c2d6f00641a71b505116ebd60f9f6b72eef3a6732a6b260ec338ee3c8ffae7afa0865beeda5461e41afe4f80569612c2f7b67d2c70bd268f5c5a7186354bb
|
data/CHANGELOG.md
CHANGED
|
@@ -104,6 +104,7 @@ module Elasticsearch
|
|
|
104
104
|
end
|
|
105
105
|
|
|
106
106
|
def print_debug_message(method, params)
|
|
107
|
+
begin
|
|
107
108
|
message = <<~MSG
|
|
108
109
|
Test File: #{$test_file}
|
|
109
110
|
Action: #{method}
|
|
@@ -117,6 +118,12 @@ module Elasticsearch
|
|
|
117
118
|
"Response body: #{@response.body}"
|
|
118
119
|
end
|
|
119
120
|
print TTY::Box.frame(message, width: BOX_WIDTH, title: { top_left: '[DEBUG]'})
|
|
121
|
+
rescue ArgumentError => e
|
|
122
|
+
if e.message == 'invalid byte sequence in UTF-8'
|
|
123
|
+
@response.body.encode!('UTF-8', 'binary', invalid: :replace, undef: :replace, replace: '')
|
|
124
|
+
print_debug_message(method, params)
|
|
125
|
+
end
|
|
126
|
+
end
|
|
120
127
|
end
|
|
121
128
|
|
|
122
129
|
private
|