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
| test-type | Run tests of a test suite. [integ-test, bwc-test, perf-test]|
23
23
| test-manifest-path | Specify a test manifest path. |
24
-
| --paths |Location of manifest(s). |
24
+
| --paths |Specify paths for OpenSearch and OpenSearch Dashboards. |
25
25
| --test-run-id | Unique identifier for a test run. |
26
26
| --component [name ...]| Test a subset of specific components. |
27
27
| --keep | Do not delete the temporary working directory on both success or error. |
28
28
| -v, --verbose | Show more verbose output. |
29
29
30
30
### Integration Tests
31
-
In order to run the tests in your local, you can avoid installing the packages with right version by using a docker image. Each test manifest consist of the docker image to run tests on.
31
+
In order to run the tests in your local, you can avoid installing the packages with right version by using a docker image. Each test manifest consist of the docker image to run tests on. Check the [test manifest](https://github.com/opensearch-project/opensearch-build/blob/main/manifests/2.19.0/opensearch-2.19.0.yml#L8) or [jenkins file](https://github.com/opensearch-project/opensearch-build/blob/main/jenkins/opensearch/integ-test.jenkinsfile#L15-L20) to retrieve the docker images.
32
32
33
33
```
34
34
docker run -u root -it opensearchstaging/ci-runner:ci-runner-centos7-opensearch-build-v3 /bin/bash
35
35
```
36
36
37
-
Set up the right JAVA_HOME version or node version as per the distribution version and clone this repository to start using testing framework.
37
+
Set up the right JAVA_HOME version (check test manifest to see what version is being used to test the distribution) or node version as per the distribution version and clone this repository to start using testing framework.
38
38
39
39
40
40
To run integration tests locally, use below command. This pulls down the built bundle and its manifest file, reads all components of the distribution, and runs integration tests against each component.
@@ -45,15 +45,15 @@ Usage:
45
45
./test.sh integ-test <test-manifest-path><target>
46
46
```
47
47
48
-
For example, build locally and run integration tests.
48
+
For example, to build the distribution locally and run integration test on locally built distribution:
49
49
50
50
```bash
51
51
./build.sh manifests/1.3.5/opensearch-1.3.5.yml
52
52
./assemble.sh builds/opensearch/manifest.yml
53
53
./test.sh integ-test manifests/1.3.5/opensearch-1.3.5-test.yml .# looks for "./builds/opensearch/manifest.yml" and "./dist/opensearch/manifest.yml"
54
54
```
55
55
56
-
Or run integration tests against an existing build.
56
+
Or run integration tests against an existing build:
57
57
58
58
```bash
59
59
./test.sh integ-test manifests/1.3.5/opensearch-1.3.5-test.yml --paths opensearch=https://ci.opensearch.org/ci/dbc/distribution-build-opensearch/1.3.5/5960/linux/x64/tar # looks for https://.../builds/opensearch/manifest.yml and https://.../dist/opensearch/manifest.yml
0 commit comments