Skip to content
This repository was archived by the owner on Jun 24, 2022. It is now read-only.

Commit 38982ba

Browse files
committed
Only change name to x-pack-core for 6.2 and above
1 parent d9d5491 commit 38982ba

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

test/integration/helpers/serverspec/xpack_standard_spec.rb

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,8 +125,15 @@
125125
plugins = curl_json('http://localhost:9200/_nodes/plugins')
126126
node, data = plugins['nodes'].first
127127
version = 'plugin not found'
128+
129+
if Gem::Version.new(vars['es_version']) >= Gem::Version.new('6.2')
130+
name = 'x-pack-core'
131+
else
132+
name = 'x-pack'
133+
end
134+
128135
data['plugins'].each do |plugin|
129-
if plugin['name'] == 'x-pack-core'
136+
if plugin['name'] == name
130137
version = plugin['version']
131138
end
132139
end

0 commit comments

Comments
 (0)