elasticsearch-test-runner 0.14.0 → 0.15.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3fdc3e700cee1701fdf46ac870a082c1f2e5442ec134861153a9a7810a228769
4
- data.tar.gz: 261ad436f9db8d1d13b413df5967697ae1ac1f49a7886efcb97104c46fc07839
3
+ metadata.gz: 2f1a68e71ff468b2803f7196ec372bbb64519335c886220eded85925917006a9
4
+ data.tar.gz: d4a039160642905c738025ec977df3f8d5b8d33d34180ab3c75709c1cf308bf2
5
5
  SHA512:
6
- metadata.gz: 8629d1d7d526dd7eee04b6fa9496d3d64d63f0da9c374c92f16c74023ff02f9a7c3a106d11a7bdd95b16e058d8c65eceecec6ba2fcdc768078640cf49417af91
7
- data.tar.gz: 7bb09a1d76a6d3bf382a4e67e3c39687c29ef0b7709e0edb5f5df4ded87c6f19e931952c031b7a4fb8478ca78742ded533cb341ef77f70d0c783fae5aa3527c2
6
+ metadata.gz: 0d446246da04e24d355283e7a7b102b737346376c80e94ec899a98e1d8c209487469bf7b2b028ebfa7893015f739413a33b2ebb3d8c3a3bb8494851532c470f7
7
+ data.tar.gz: fd59fa83bec9baae0ff4037c156a28e819eacd068e0ba67ea35a7dbe0696b22874925c0befcbbd27aaa930dbd72ad1798062e596ccaa6db1eac37a528d795535
data/CHANGELOG.md CHANGED
@@ -1,5 +1,10 @@
1
1
  # Changelog
2
2
 
3
+ ## [0.15.0] - 2026-01-29
4
+
5
+ - Bugfix: refactors response display for boolean responses (ping, exists) when in debug mode.
6
+ - Sets boxes screen size to whole screen.
7
+
3
8
  ## [0.14.0] - 2026-01-29
4
9
 
5
10
  - Introduces Ruby TTY tools for better debugging when `ENV['DEBUG']` is set and general display improvements.
@@ -24,18 +24,14 @@ module Elasticsearch
24
24
  # Functions to print out test results, errors, summary, etc.
25
25
  #
26
26
  module Printer
27
- BOX_WIDTH = TTY::Screen.width * 0.8
27
+ BOX_WIDTH = TTY::Screen.width
28
28
 
29
29
  def print_success
30
- response = if [true, false].include? @response
31
- @response
32
- else
33
- @response.status
34
- end
35
30
  if quiet?
36
31
  print '🟢 '
37
32
  else
38
- puts "🟢 \e[#{33}m#{@short_name}\e[0m - #{@action} \e[#{32}mpassed\e[0m [#{response}]"
33
+ status = boolean_response? ? @response : @response.status
34
+ puts "🟢 \e[33m#{@short_name}\e[0m - #{@action} \e[32mpassed\e[0m [#{status}]"
39
35
  end
40
36
  end
41
37
 
@@ -47,7 +43,7 @@ module Elasticsearch
47
43
  if quiet?
48
44
  print '🔴 '
49
45
  else
50
- puts "🔴 \e[#{33}m#{@short_name}\e[0m - #{@action} \e[#{31}mfailed\e[0m"
46
+ puts "🔴 \e[33m#{@short_name}\e[0m - #{@action} \e[31mfailed\e[0m"
51
47
  end
52
48
  message = ["Expected result: #{action}"]
53
49
  if defined?(ElasticsearchServerless) &&
@@ -112,12 +108,22 @@ module Elasticsearch
112
108
  Test File: #{$test_file}
113
109
  Action: #{method}
114
110
  Parameters: #{params}
115
- Response: #{@response.status}
116
- Response headers: #{@response.headers}
117
- Response body: #{@response.body}
118
111
  MSG
112
+ if boolean_response?
113
+ message << "Response: #{@response}"
114
+ else
115
+ message << "Response: #{@response.status}" \
116
+ "Response headers: #{@response.headers}" \
117
+ "Response body: #{@response.body}"
118
+ end
119
119
  print TTY::Box.frame(message, width: BOX_WIDTH, title: { top_left: '[DEBUG]'})
120
120
  end
121
+
122
+ private
123
+
124
+ def boolean_response?
125
+ [true, false].include? @response
126
+ end
121
127
  end
122
128
  end
123
129
  end
@@ -19,6 +19,6 @@
19
19
 
20
20
  module Elasticsearch
21
21
  module Tests
22
- VERSION = '0.14.0'
22
+ VERSION = '0.15.0'
23
23
  end
24
24
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: elasticsearch-test-runner
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.14.0
4
+ version: 0.15.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Elastic Client Library Maintainers