Skip to content

Commit

Permalink
Upgrade CI from 8.7 to 8.13
Browse files Browse the repository at this point in the history
  • Loading branch information
kag728 committed Apr 5, 2024
1 parent 7f683ab commit ee33ac4
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 11 deletions.
5 changes: 1 addition & 4 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,11 @@ jobs:
strategy:
matrix:
ruby-version: ['3.2']
ES_VERSION: ['5.6.15', '8.7.0', '8.13.0']
ES_VERSION: ['5.6.15', '8.13.0']
include:
- ES_VERSION: '5.6.15'
ES_DOWNLOAD_URL: >-
https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-5.6.15.tar.gz
- ES_VERSION: '8.7.0'
ES_DOWNLOAD_URL: >-
https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-8.7.0-linux-x86_64.tar.gz
- ES_VERSION: '8.13.0'
ES_DOWNLOAD_URL: >-
https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-8.13.0-linux-x86_64.tar.gz
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ end
This client is tested against:

- Ruby version 3.2
- Elasticsearch versions 5.6, 8.7 and 8.13
- Elasticsearch versions 5.6 and 8.13

## Development

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

services:
elasticsearch8.7:
image: docker.elastic.co/elasticsearch/elasticsearch:8.7.0
container_name: es8.7
elasticsearch8.13:
image: docker.elastic.co/elasticsearch/elasticsearch:8.13.0
container_name: es8.13
profiles: ["es8", "all"]
environment:
- cluster.name=elastomer8.7
- cluster.name=elastomer8.13
- bootstrap.memory_lock=true
- discovery.type=single-node
- xpack.security.enabled=false
Expand Down
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.7")
def initialize(version = "8.13")
@version = version

sliced = @version.split(".").slice(0, 2)
Expand Down
2 changes: 1 addition & 1 deletion test/client/cluster_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@

it "returns cluster stats" do
h = @cluster.stats
expected = $client.version_support.es_version_8_plus? ? %w[cluster_name cluster_uuid indices nodes status timestamp] : %w[cluster_name indices nodes status timestamp]
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.unshift("_nodes")

assert_equal expected, h.keys.sort
Expand Down

0 comments on commit ee33ac4

Please sign in to comment.