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
* Extract message stashing and unstashing into a class, add unit tests.
Signed-off-by: dblock <dblock@amazon.com>
* Added test pipeline for gathering parallel stage messages.
Signed-off-by: dblock <dblock@amazon.com>
* Added a test script that replicates OpenSearch Jenkinsfile but with echo instead of sh.
Signed-off-by: dblock <dblock@amazon.com>
* Update developer guide with Groovy code prerequisites.
Signed-off-by: dblock <dblock@amazon.com>
* Fill out testMessages unit test.
Signed-off-by: dblock <dblock@amazon.com>
* Simplify gradle defaults.
Signed-off-by: dblock <dblock@amazon.com>
* Reorganized tests and added placeholders.
Signed-off-by: dblock <dblock@amazon.com>
Copy file name to clipboardexpand all lines: DEVELOPER_GUIDE.md
+15-2
Original file line number
Diff line number
Diff line change
@@ -6,6 +6,7 @@
6
6
-[Pipenv](#pipenv)
7
7
-[NVM and Node](#nvm-and-node)
8
8
-[Yarn](#yarn)
9
+
-[Java](#java)
9
10
-[Install Dependencies](#install-dependencies)
10
11
-[Run Tests](#run-tests)
11
12
-[Build OpenSearch](#build-opensearch)
@@ -76,6 +77,10 @@ nvm install v10.24.1
76
77
npm install -g yarn
77
78
```
78
79
80
+
#### Java
81
+
82
+
This project recommends Java 11 for Jenkins jobs CI. This means you must have a JDK 11 installed with the environment variable `JAVA_HOME` referencing the path to Java home for your JDK installation, e.g. `JAVA_HOME=/usr/lib/jvm/jdk-11`. Download Java 11 from [here](https://adoptium.net/releases.html?variant=openjdk11).
83
+
79
84
### Install Dependencies
80
85
81
86
Install dependencies.
@@ -90,13 +95,21 @@ Alternatively, run a command inside the virtualenv with pipenv run.
90
95
91
96
### Run Tests
92
97
93
-
This project uses [pytest](https://docs.pytest.org/en/6.x/) to ensure code quality. See [tests](tests).
98
+
This project uses [pytest](https://docs.pytest.org/en/6.x/) to ensure Python code quality, and [JUnit](https://junit.org/) for Groovy code. See [tests](tests).
94
99
95
100
```
96
101
$ pipenv run pytest
97
102
2 passed in 02s
98
103
```
99
104
105
+
```
106
+
$ ./gradlew test
107
+
108
+
> Task :test
109
+
BUILD SUCCESSFUL in 7s
110
+
3 actionable tasks: 1 executed, 2 up-to-date
111
+
```
112
+
100
113
### Build OpenSearch
101
114
102
115
Try running `./build.sh`. It should complete and show usage.
@@ -115,7 +128,7 @@ build.sh: error: the following arguments are required: manifest
115
128
116
129
### Code Linting
117
130
118
-
This project uses a [pre-commit hook](https://pre-commit.com/) for linting python code.
131
+
This project uses a [pre-commit hook](https://pre-commit.com/) for linting Python code.
0 commit comments