diff --git a/.buildkite/pipeline.yml b/.buildkite/pipeline.yml index c7cfc3fd15..d88fbea407 100644 --- a/.buildkite/pipeline.yml +++ b/.buildkite/pipeline.yml @@ -5,7 +5,7 @@ steps: env: RUBY_VERSION: "{{ matrix.ruby }}" TEST_SUITE: "{{ matrix.suite }}" - STACK_VERSION: 8.19.0-SNAPSHOT + STACK_VERSION: 8.19.3-SNAPSHOT TRANSPORT_VERSION: "{{ matrix.transport }}" RUBY_SOURCE: "{{ matrix.ruby_source }}" QUIET: false @@ -67,7 +67,7 @@ steps: provider: "gcp" env: RUBY_VERSION: "3.4" - STACK_VERSION: 8.19.0-SNAPSHOT + STACK_VERSION: 8.19.3-SNAPSHOT ES_YAML_TESTS_BRANCH: "8.19" TRANSPORT_VERSION: "8.3" RUBY_SOURCE: "ruby" diff --git a/.github/workflows/8.19.yml b/.github/workflows/8.19.yml index 2d4c8fa615..4c0d47fca3 100644 --- a/.github/workflows/8.19.yml +++ b/.github/workflows/8.19.yml @@ -26,7 +26,7 @@ jobs: sudo sysctl -w vm.max_map_count=262144 - uses: elastic/elastic-github-actions/elasticsearch@master with: - stack-version: 8.19.0-SNAPSHOT + stack-version: 8.19.3-SNAPSHOT security-enabled: false - uses: ruby/setup-ruby@v1 with: @@ -40,4 +40,4 @@ jobs: - name: elasticsearch run: cd elasticsearch && bundle exec rake test:all - name: elasticsearch-api - run: rake es:download_artifacts[8.19.0-SNAPSHOT] && cd elasticsearch-api && bundle exec rake test:spec test:platinum:unit + run: rake es:download_artifacts[8.19.3-SNAPSHOT] && cd elasticsearch-api && bundle exec rake test:spec test:platinum:unit diff --git a/.github/workflows/otel.yml b/.github/workflows/otel.yml index 01d768b96d..2f05c85e5a 100644 --- a/.github/workflows/otel.yml +++ b/.github/workflows/otel.yml @@ -28,7 +28,7 @@ jobs: sudo sysctl -w vm.max_map_count=262144 - uses: elastic/elastic-github-actions/elasticsearch@master with: - stack-version: 8.19.0-SNAPSHOT + stack-version: 8.19.3-SNAPSHOT security-enabled: false - uses: ruby/setup-ruby@v1 with: @@ -42,4 +42,4 @@ jobs: - name: elasticsearch run: cd elasticsearch && bundle exec rake test:all - name: elasticsearch-api - run: rake es:download_artifacts[8.19.0-SNAPSHOT] && cd elasticsearch-api && bundle exec rake test:spec test:platinum:unit + run: rake es:download_artifacts[8.19.3-SNAPSHOT] && cd elasticsearch-api && bundle exec rake test:spec test:platinum:unit diff --git a/elasticsearch-api/spec/elasticsearch/api/perform_request_spec.rb b/elasticsearch-api/spec/elasticsearch/api/perform_request_spec.rb index 44b3fa288e..5b9690b35e 100644 --- a/elasticsearch-api/spec/elasticsearch/api/perform_request_spec.rb +++ b/elasticsearch-api/spec/elasticsearch/api/perform_request_spec.rb @@ -25,6 +25,20 @@ spec = Elasticsearch::API::EndpointSpec.new(filepath) next if spec.module_namespace.flatten.first == '_internal' || spec.visibility != 'public' + # Skip testing if the method hasn't been added to the client yet: + client = Elasticsearch::Client.new + implemented = if spec.module_namespace.empty? + client.public_methods.include?(spec.method_name.to_sym) + else + client.public_methods.include?(spec.module_namespace[0].to_sym) && + client.send(spec.module_namespace[0]).methods.include?(spec.method_name.to_sym) + end + unless implemented + name = spec.module_namespace.empty? ? spec.method_name : "#{spec.module_namespace[0]}.#{spec.method_name}" + Logger.new($stdout).info("Method #{name} not implemented yet") + next + end + # These are the path parts defined by the user in the method argument defined_path_parts = spec.path_params.inject({}) do |params, part| params.merge(part => 'testing')