Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@ jobs:
strategy:
matrix:
ruby-version: ['3.2']
ES_VERSION: ['8.13.2']
ES_VERSION: ['8.18.0']
include:
- ES_VERSION: '8.13.2'
- ES_VERSION: '8.18.0'
ES_DOWNLOAD_URL: >-
https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-8.13.2-linux-x86_64.tar.gz
https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-8.18.0-linux-x86_64.tar.gz
steps:
- uses: ruby/setup-ruby@v1
with:
Expand Down
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,10 @@ end
This client is tested against:

- Ruby version 3.2
- Elasticsearch versions 5.6 and 8.13
- Elasticsearch versions:
- 5.6
- 8.13
- 8.18

## Development

Expand Down
10 changes: 5 additions & 5 deletions docker/compose.yaml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
version: "3"

services:
elasticsearch8.13:
image: docker.elastic.co/elasticsearch/elasticsearch:8.13.2
container_name: es8.13
elasticsearch8.18:
image: docker.elastic.co/elasticsearch/elasticsearch:8.18.0
container_name: es8.18
profiles: ["es8", "ccr", "all"]
environment:
- cluster.name=elastomer8.13
- cluster.name=elastomer8.18
- bootstrap.memory_lock=true
- discovery.type=single-node
- xpack.security.enabled=false
Expand All @@ -30,7 +30,7 @@ services:
- 127.0.0.1:${ES_8_PORT:-9208}:9200

elasticsearchFollower:
image: docker.elastic.co/elasticsearch/elasticsearch:8.13.2
image: docker.elastic.co/elasticsearch/elasticsearch:8.18.0
container_name: es-follow
profiles: ["ccr"]
environment:
Expand Down
8,456 changes: 8,456 additions & 0 deletions lib/elastomer_client/client/rest_api_spec/api_spec_v8_18.rb

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion script/generate-rest-api-spec
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ class RestApiSpecGenerator

attr_reader :version, :short_version, :class_version

def initialize(version = "8.13")
def initialize(version = "8.18")
@version = version

sliced = @version.split(".").slice(0, 2)
Expand Down
2 changes: 1 addition & 1 deletion script/setup-ccr
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ case "$1" in
"cluster": {
"remote": {
"leader": {
"seeds": ["es8.13:9300"]
"seeds": ["es8.18:9300"]
}
}
}
Expand Down
3 changes: 2 additions & 1 deletion test/client/cluster_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,8 @@

it "returns cluster stats" do
h = @cluster.stats
expected = $client.version_support.es_version_8_plus? ? %w[cluster_name cluster_uuid indices nodes snapshots status timestamp] : %w[cluster_name indices nodes status timestamp]
expected = $client.version_support.es_version_8_plus? ? %w[ccs cluster_name cluster_uuid indices nodes repositories snapshots status timestamp] : %w[cluster_name indices nodes status timestamp]

expected.unshift("_nodes")

assert_equal expected, h.keys.sort
Expand Down