You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This will use either `irb` or `pry` and load the `elasticsearch` and `elasticsearch-api` gems into the shell.
24
+
This will use either `irb` or `pry` and load the `elasticsearch` and `elasticsearch-api` gems into the shell.
25
25
26
26
# Tests
27
27
@@ -31,8 +31,8 @@ To run the tests, you need to start a testing cluster on port 9200. We suggest u
31
31
rake docker:start[VERSION]
32
32
```
33
33
34
-
E.g.: `rake docker:start[8.0-SNAPSHOT]`.
35
-
To start the container with Platinum, pass it in as a parameter: `rake docker:start[7.x-SNAPSHOT,platinum]`.
34
+
E.g.: `rake docker:start[9.0.0-SNAPSHOT]`.
35
+
To start the container with Platinum, pass it in as a parameter: `rake docker:start[8.x-SNAPSHOT,platinum]`.
36
36
37
37
There's another rake task that will read the STACK_VERSION value from `.buildkite/pipeline.yml` and run that version of Elasticsearch: `rake es:up`.
38
38
@@ -42,6 +42,12 @@ max virtual memory areas vm.max_map_count [65530] likely too low, increase to at
42
42
```
43
43
Check [this link](https://www.elastic.co/guide/en/elasticsearch/reference/current/docker.html#_set_vm_max_map_count_to_at_least_262144) for instructions on how to fix it.
44
44
45
+
You can also use [start-local](https://github.com/elastic/start-local), which can run Elasticsearch and Kibana locally for development/testing. You only need to run Elasticsearch (`-esonly`) for development purposes, and you can specify a version with the `-v` parameter:
46
+
47
+
```bash
48
+
curl -fsSL https://elastic.co/start-local | sh -s -- -esonly -v 9.0.0
49
+
```
50
+
45
51
As mentioned, the tests will atempt to run against `http://localhost:9200` by default. We provide the Docker task for the test cluster and recommend using it. But you can provide a different test server of your own. If you're using a different host or port, set the `TEST_ES_SERVER` environment variable with the server information. E.g.:
46
52
47
53
```
@@ -51,12 +57,20 @@ $ TEST_ES_SERVER='http://localhost:9250' be rake test:client
51
57
To run all the tests in all the subprojects, use the Rake task:
52
58
53
59
```
54
-
time rake test:client
60
+
rake test:client
55
61
```
56
62
57
-
# Elasticsearch Rest API YAML Test Runner
63
+
# Elasticsearch Rest API Tests
64
+
65
+
The integration tests on this project run the [Elasticsearch Client tests](https://github.com/elastic/elasticsearch-clients-tests/) with the [Elasticsearch Tests Runner](https://github.com/elastic/es-test-runner-ruby/) library. This runs in CI against an Elasticsearch cluster in Docker. The [Elasticsearch's REST API Spec tests](https://github.com/elastic/elasticsearch/tree/main/rest-api-spec/src/main/resources/rest-api-spec/test#test-suite) can still be ran following [these instructions](https://github.com/elastic/elasticsearch-ruby/tree/main/elasticsearch-api/api-spec-testing#readme).
66
+
67
+
You can run the yaml API tests with:
68
+
69
+
```
70
+
rake test:yaml
71
+
```
58
72
59
-
See the API Spec tests [README](https://github.com/elastic/elasticsearch-ruby/tree/main/elasticsearch-api/api-spec-testing#readme).
0 commit comments