Skip to content

Commit 0af1cfb

Browse files
committed
Fix 5.6 compatibility in integration tests
Change ES 5.6 mapping, as join fields only support single type mapping Fixes logstash-plugins#665
1 parent 861d092 commit 0af1cfb

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

spec/integration/outputs/parent_spec.rb

+6
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,12 @@
104104
}
105105
}
106106
}
107+
if ESHelper.es_version_satisfies?('<6')
108+
mapping.merge!({
109+
"settings" => {
110+
"mapping.single_type" => true
111+
}})
112+
end
107113
Manticore.put("#{index_url}", {:body => mapping.to_json, :headers => default_headers}).call
108114
pdoc = { "message" => "ohayo", join_field => parent_relation }
109115
Manticore.put("#{index_url}/#{type}/#{parent_id}", {:body => pdoc.to_json, :headers => default_headers}).call

0 commit comments

Comments
 (0)