Skip to content

Commit a20bb1b

Browse files
authored
Merge pull request #329 from github/feature/sarwaan001/api_spec_v8_18
Elastic 8.18 Spec
2 parents aa1451a + cd22747 commit a20bb1b

7 files changed

Lines changed: 8472 additions & 12 deletions

File tree

.github/workflows/main.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,11 @@ jobs:
1212
strategy:
1313
matrix:
1414
ruby-version: ['3.2']
15-
ES_VERSION: ['8.13.2']
15+
ES_VERSION: ['8.18.0']
1616
include:
17-
- ES_VERSION: '8.13.2'
17+
- ES_VERSION: '8.18.0'
1818
ES_DOWNLOAD_URL: >-
19-
https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-8.13.2-linux-x86_64.tar.gz
19+
https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-8.18.0-linux-x86_64.tar.gz
2020
steps:
2121
- uses: ruby/setup-ruby@v1
2222
with:

README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,10 @@ end
110110
This client is tested against:
111111

112112
- Ruby version 3.2
113-
- Elasticsearch versions 5.6 and 8.13
113+
- Elasticsearch versions:
114+
- 5.6
115+
- 8.13
116+
- 8.18
114117

115118
## Development
116119

docker/compose.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
version: "3"
22

33
services:
4-
elasticsearch8.13:
5-
image: docker.elastic.co/elasticsearch/elasticsearch:8.13.2
6-
container_name: es8.13
4+
elasticsearch8.18:
5+
image: docker.elastic.co/elasticsearch/elasticsearch:8.18.0
6+
container_name: es8.18
77
profiles: ["es8", "ccr", "all"]
88
environment:
9-
- cluster.name=elastomer8.13
9+
- cluster.name=elastomer8.18
1010
- bootstrap.memory_lock=true
1111
- discovery.type=single-node
1212
- xpack.security.enabled=false
@@ -30,7 +30,7 @@ services:
3030
- 127.0.0.1:${ES_8_PORT:-9208}:9200
3131

3232
elasticsearchFollower:
33-
image: docker.elastic.co/elasticsearch/elasticsearch:8.13.2
33+
image: docker.elastic.co/elasticsearch/elasticsearch:8.18.0
3434
container_name: es-follow
3535
profiles: ["ccr"]
3636
environment:

lib/elastomer_client/client/rest_api_spec/api_spec_v8_18.rb

Lines changed: 8456 additions & 0 deletions
Large diffs are not rendered by default.

script/generate-rest-api-spec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ class RestApiSpecGenerator
2222

2323
attr_reader :version, :short_version, :class_version
2424

25-
def initialize(version = "8.13")
25+
def initialize(version = "8.18")
2626
@version = version
2727

2828
sliced = @version.split(".").slice(0, 2)

script/setup-ccr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ case "$1" in
6666
"cluster": {
6767
"remote": {
6868
"leader": {
69-
"seeds": ["es8.13:9300"]
69+
"seeds": ["es8.18:9300"]
7070
}
7171
}
7272
}

test/client/cluster_test.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,8 @@
7979

8080
it "returns cluster stats" do
8181
h = @cluster.stats
82-
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]
82+
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]
83+
8384
expected.unshift("_nodes")
8485

8586
assert_equal expected, h.keys.sort

0 commit comments

Comments
 (0)