Skip to content

Commit 7e5df21

Browse files
committed
Add JSON ingestion extension to elasticgraph-local acceptance spec
The acceptance spec drives the repo's own `config/schema.rb` (which calls `schema.json_schema_version`) through `Local::RakeTasks`, so it needs the JSON ingestion extension now that the core API raises without it.
1 parent af1f694 commit 7e5df21

2 files changed

Lines changed: 3 additions & 0 deletions

File tree

elasticgraph-local/elasticgraph-local.gemspec

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,5 +52,6 @@ Gem::Specification.new do |spec|
5252

5353
spec.add_development_dependency "elasticgraph-apollo", ElasticGraph::VERSION
5454
spec.add_development_dependency "elasticgraph-elasticsearch", ElasticGraph::VERSION
55+
spec.add_development_dependency "elasticgraph-json_ingestion", ElasticGraph::VERSION
5556
spec.add_development_dependency "elasticgraph-opensearch", ElasticGraph::VERSION
5657
end

elasticgraph-local/spec/acceptance/rake_tasks_spec.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
#
77
# frozen_string_literal: true
88

9+
require "elastic_graph/json_ingestion/schema_definition/api_extension"
910
require "elastic_graph/local/rake_tasks"
1011
require "elastic_graph/schema_definition/rake_tasks"
1112
require "json"
@@ -134,6 +135,7 @@ def run_rake(*cli_args, daemon_timeout: nil, batch_size: 1)
134135
) do |t|
135136
t.index_document_sizes = true
136137
t.schema_element_name_form = :snake_case
138+
t.schema_definition_extension_modules << JSONIngestion::SchemaDefinition::APIExtension
137139
t.env_port_mapping = {"example" => 9615}
138140
t.elasticsearch_versions = ["8.18.0", "9.0.0"]
139141
t.opensearch_versions = ["2.19.0"]

0 commit comments

Comments
 (0)