Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update current version #1

Merged
merged 33 commits into from
Aug 14, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
33 commits
Select commit Hold shift + click to select a range
13a603c
Added OpenSearch 3.0. (#459)
dblock Aug 4, 2024
ac8659d
Validate titles and descriptions in info and schema objects. (#463)
dblock Aug 4, 2024
59a7ff4
Added support for request headers. (#461)
dblock Aug 4, 2024
1061972
Add additionalProperties to ErrorCause and fix creation_date type for…
Xtansia Aug 5, 2024
c0d4a85
Added rest_total_hits_as_int test for _search (#466)
awick Aug 5, 2024
21bd106
Add create-index blocked solution and switch to npm ci (#465)
awick Aug 5, 2024
c7dbaaf
Validate test story descriptions. (#467)
dblock Aug 5, 2024
870a018
Allow response payload to reference variables. (#471)
dblock Aug 6, 2024
cfe357b
Increase memory allocated to OpenSearch in GHA. (#470)
dblock Aug 6, 2024
41360b7
Split test suite with separate docker-compose. (#472)
dblock Aug 7, 2024
e865cf6
Add Segments API test (#477)
Naarcha-AWS Aug 8, 2024
18587f5
Added support for SigV4. (#476)
dblock Aug 8, 2024
b50eb79
Run tests against stable OpenSearch 2.16. (#484)
dblock Aug 8, 2024
6cdd8b7
Fix: durations are not always integers. (#479)
dblock Aug 8, 2024
ecf3921
Fix: refresh index to get a consistent total. (#480)
dblock Aug 8, 2024
d7e6971
Double the RAM in the test container. (#486)
dblock Aug 11, 2024
56a5a22
Document fielddata.yaml fail, ignore vim swp files (#473)
awick Aug 11, 2024
00711ea
Allow overwriting the Authorization header. (#488)
dblock Aug 11, 2024
644a1a5
Observability namespace (#474)
aabeshov Aug 12, 2024
597ed8d
Improve indices.stats schemas (#491)
Xtansia Aug 12, 2024
cb320b5
Request sort in rest_total_hits_as_int tests (#493)
awick Aug 12, 2024
3828838
Catch response deserialization errors. (#478)
dblock Aug 12, 2024
9eb3732
Adds test for APIs related to security plugin and updates spec to add…
DarshitChanpura Aug 12, 2024
08bbc0e
Fix: correctly named folders/files. (#497)
dblock Aug 12, 2024
2ee3104
Skip only known or hidden files. (#498)
dblock Aug 12, 2024
42fd4d7
Fixed schema refs for ml.yaml (#489)
nhtruong Aug 12, 2024
09824d0
Add support for ML neural search. (#504)
dblock Aug 13, 2024
9d3bc34
Remove support for comma-separated semver range. (#501)
dblock Aug 13, 2024
83eab43
Added search response processors. (#505)
dblock Aug 14, 2024
89e383b
Add resolve API test (#506)
Naarcha-AWS Aug 14, 2024
7dee041
Added support for testing multiple distributions. (#483)
dblock Aug 14, 2024
30fca51
Merge branch 'replication-namespace'
Tokesh Aug 14, 2024
1d051cd
Merge branch 'main' of https://github.com/Tokesh/opensearch-api-speci…
Tokesh Aug 14, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion .cspell
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ aarch
actiongroup
actiongroups
aggregatable
aoss
APIV
argjson
asciifolding
Expand Down Expand Up @@ -59,6 +60,7 @@ gsub
Gsub
haasephonetik
heteroscedastic
hnsw
homoscedastic
hotthreads
huggingface
Expand All @@ -74,6 +76,7 @@ kstem
kuromoji
Kuromoji
languageset
localstats
Lovins
lucene
Lucene
Expand All @@ -90,7 +93,6 @@ mmapfs
mmdb
mokotoff
Moneyball
Moneyball
msearch
msmarco
mtermvectors
Expand Down Expand Up @@ -131,11 +133,15 @@ readingform
rebalance
Rebalance
recoverysource
Refn
reindex
Reindex
relo
reloadcerts
remotestore
rerank
Rerank
Reranker
rethrottle
Rethrottle
rolesmapping
Expand Down Expand Up @@ -165,6 +171,7 @@ subqueries
subschemas
subword
syserr
tcnative
tdigest
tenantinfo
termvectors
Expand All @@ -176,6 +183,7 @@ translog
Translog
tubone
ulimits
Undeploys
unigrams
Unmanaged
unmatch
Expand Down
49 changes: 0 additions & 49 deletions .github/opensearch-cluster/docker-compose.yml

This file was deleted.

8 changes: 4 additions & 4 deletions .github/workflows/analyze-pr-changes.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ jobs:
-e OPENSEARCH_INITIAL_ADMIN_PASSWORD="$OPENSEARCH_PASSWORD" \
opensearch-with-api-plugin

npm install
npm ci

npm run dump-cluster-spec -- --opensearch-insecure --output $CLUSTER_SPEC

Expand All @@ -72,7 +72,7 @@ jobs:
- name: Build BEFORE Spec
shell: bash -eo pipefail {0}
run: |
npm install
npm ci
npm run merge -- --source ./spec --output $BEFORE_SPEC

- name: Checkout AFTER Spec
Expand All @@ -82,7 +82,7 @@ jobs:
- name: Build AFTER Spec
shell: bash -eo pipefail {0}
run: |
npm install
npm ci
npm run merge -- --source ./spec --output $AFTER_SPEC

- name: Calculate Coverage
Expand Down Expand Up @@ -216,4 +216,4 @@ jobs:
uses: actions/upload-artifact@v4
with:
name: pr-comment
path: pr-comment.json
path: pr-comment.json
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
node-version: '20'

- name: Build
run: npm install && npm run merge
run: npm ci && npm run merge

- name: Extract Branch Name
id: branch
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/changelog.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ jobs:
verify-changelog:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
token: ${{ secrets.GITHUB_TOKEN }}
ref: ${{ github.event.pull_request.head.sha }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
node-version: '20'

- name: Install Dependencies
run: npm install
run: npm ci

- name: Lint
run: npm run lint
45 changes: 33 additions & 12 deletions .github/workflows/test-spec.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,22 +23,31 @@ jobs:
strategy:
matrix:
entry:
- {version: 1.3.17, admin_password: admin}
- {version: 2.0.0, admin_password: admin}
- {version: 2.15.0}
- version: 1.3.17
admin_password: admin
- version: 2.0.0
admin_password: admin
- version: 2.16.0
- version: 2.16.0
tests: plugins/index_state_management
- version: 2.16.0
tests: snapshot
- version: 2.17.0
hub: opensearchstaging
ref: '@sha256:50fbfe3b95c41e92a113ada3e80513ba4524dfc8a25dc6aaeff2bbe1e1145d5f'
ref: '@sha256:ed4274522a50228f41b50f1a7ea86e6b52fa6737072fc151b2624d22aff80d56'
- version: 3.0.0
hub: opensearchstaging
ref: '@sha256:cab6f71b284485c44306f8f4849ad520283c2a32ece617109b38183ba29cc401'

name: test-opensearch-spec (version=${{ matrix.entry.version }}, hub=${{ matrix.entry.hub || 'opensearchproject' }})
name: test-opensearch-spec (version=${{ matrix.entry.version }}, hub=${{ matrix.entry.hub || 'opensearchproject' }}, tests=${{ matrix.entry.tests || 'default' }})
runs-on: ubuntu-latest

env:
OPENSEARCH_DOCKER_HUB_PROJECT: ${{ matrix.entry.hub || 'opensearchproject' }}
OPENSEARCH_DOCKER_REF: ${{ matrix.entry.ref }}
OPENSEARCH_VERSION: ${{ matrix.entry.version }}
OPENSEARCH_PASSWORD: ${{ matrix.entry.admin_password || 'myStrongPassword123!' }}
OPENSEARCH_JAVA_OPTS: ${{ matrix.entry.opts }}
OPENSEARCH_JAVA_OPTS: ${{ matrix.entry.opts }} -Xms8g -Xmx8g

steps:
- name: Checkout Repo
Expand All @@ -50,31 +59,43 @@ jobs:
node-version: '20'

- name: Install Dependencies
run: npm install
run: npm ci

- name: Run OpenSearch Cluster
working-directory: .github/opensearch-cluster
working-directory: tests/${{ matrix.entry.tests || 'default' }}
run: docker compose up -d

- name: Get Container ID
id: container
run: |
echo "CONTAINER_ID=$(docker ps -aqf "ancestor=opensearchproject/opensearch:${{ matrix.entry.version }}")" >> $GITHUB_OUTPUT

- name: Run Tests
run: |
npm run test:spec -- \
--opensearch-insecure --verbose\
--opensearch-version=${{ matrix.entry.version }} \
--coverage coverage/test-spec-coverage-${{ matrix.entry.version }}.json
--coverage coverage/test-spec-coverage-${{ matrix.entry.version }}-${{ matrix.entry.tests || 'default' }}.json \
--tests=tests/${{ matrix.entry.tests || 'default' }}

- name: Get Container Logs
if: failure() && steps.container.outputs.CONTAINER_ID
run: |
echo Dumping logs from ${{ steps.container.outputs.CONTAINER_ID }} ...
docker logs ${{ steps.container.outputs.CONTAINER_ID }}

- name: Upload Test Coverage Results
uses: actions/upload-artifact@v4
with:
name: coverage-${{ matrix.entry.version }}
path: coverage/test-spec-coverage-${{ matrix.entry.version }}.json
name: coverage-${{ matrix.entry.version }}-${{ hashFiles(format('tests/{0}', matrix.entry.tests || 'default')) }}
path: coverage/test-spec-coverage-${{ matrix.entry.version }}-${{ matrix.entry.tests || 'default' }}.json

merge-coverage:
runs-on: ubuntu-latest
if: github.event_name == 'pull_request'
needs: test-opensearch-spec
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Download Spec Coverage Data
uses: actions/download-artifact@v4
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/test-tools-integ.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,15 +24,15 @@ jobs:
test:
runs-on: ubuntu-latest
env:
OPENSEARCH_VERSION: 2.15.0
OPENSEARCH_VERSION: 2.16.0
OPENSEARCH_PASSWORD: myStrongPassword123!
OPENSEARCH_URL: https://localhost:9200
steps:
- name: Checkout Repo
uses: actions/checkout@v4

- name: Run OpenSearch Cluster
working-directory: .github/opensearch-cluster
working-directory: tests/default
run: |
docker compose up -d
sleep 15
Expand All @@ -43,7 +43,7 @@ jobs:
node-version: '20'

- name: Install Dependencies
run: npm install
run: npm ci

- name: Tests
run: |
Expand All @@ -52,4 +52,4 @@ jobs:
- name: Upload coverage to Codecov
uses: codecov/[email protected]
with:
token: ${{ secrets.CODECOV_TOKEN }}
token: ${{ secrets.CODECOV_TOKEN }}
4 changes: 2 additions & 2 deletions .github/workflows/test-tools-unit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ jobs:
node-version: '20'

- name: Install Dependencies
run: npm install
run: npm ci

- name: Tests
run: |
Expand All @@ -42,4 +42,4 @@ jobs:
- name: Upload coverage to Codecov
uses: codecov/[email protected]
with:
token: ${{ secrets.CODECOV_TOKEN }}
token: ${{ secrets.CODECOV_TOKEN }}
2 changes: 1 addition & 1 deletion .github/workflows/validate-spec.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
node-version: '20'

- name: Install Dependencies
run: npm install
run: npm ci

- name: Lint Spec
run: npm run lint:spec
2 changes: 1 addition & 1 deletion .lycheeignore
Original file line number Diff line number Diff line change
@@ -1 +1 @@
https://localhost:9200*
https://localhost:*
30 changes: 26 additions & 4 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ Inspired from [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
- Added `concurrent_query_*` and `search_idle_reactivate_count_total` fields to `SearchStats` ([#395](https://github.com/opensearch-project/opensearch-api-specification/pull/395))
- Added `remote_store` to `TranslogStats` ([#395](https://github.com/opensearch-project/opensearch-api-specification/pull/395))
- Added `file` to `/_cache/clear` and `/{index}/_cache/clear` ([#396](https://github.com/opensearch-project/opensearch-api-specification/pull/396))
- Add `strict_allow_templates` option for the dynamic mapping parameter ([#408](https://github.com/opensearch-project/opensearch-api-specification/pull/408))
- Added `strict_allow_templates` option for the dynamic mapping parameter ([#408](https://github.com/opensearch-project/opensearch-api-specification/pull/408))
- Added a workflow to run tests against the next version of OpenSearch ([#409](https://github.com/opensearch-project/opensearch-api-specification/pull/409))
- Added support for skipping tests using semver range ([#410](https://github.com/opensearch-project/opensearch-api-specification/pull/410))
- Added `cluster_manager_timeout` to `HEAD /{index}` ([#421](https://github.com/opensearch-project/opensearch-api-specification/pull/421))
Expand All @@ -54,12 +54,29 @@ Inspired from [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
- Added `plugins` to NodeInfoSettings ([#442](https://github.com/opensearch-project/opensearch-api-specification/pull/442))
- Added test coverage ([#443](https://github.com/opensearch-project/opensearch-api-specification/pull/443))
- Added `--opensearch-version` to `merger` that excludes schema elements per semver ([#428](https://github.com/opensearch-project/opensearch-api-specification/pull/428))
- Added `retry` to `tester` to support asynchronous tasks ([453](https://github.com/opensearch-project/opensearch-api-specification/pull/453))
- Added `retry` to `tester` to support asynchronous tasks ([#453](https://github.com/opensearch-project/opensearch-api-specification/pull/453))
- Added passing OPENSEARCH_JAVA_OPTS into the docker container used for tests ([#454](https://github.com/opensearch-project/opensearch-api-specification/pull/454))
- Added a warning on mulitple paths being tested in the same file ([#452](https://github.com/opensearch-project/opensearch-api-specification/pull/452))
- Added validation of titles and descriptions in info and schema objects ([#463](https://github.com/opensearch-project/opensearch-api-specification/pull/463))
- Added `/_plugins/_query/settings` ([#456](https://github.com/opensearch-project/opensearch-api-specification/pull/456))
- Added `/_plugins/_ppl`, `explain` and `stats` ([#460](https://github.com/opensearch-project/opensearch-api-specification/pull/460))
- Added `replication` namespace specs ([464](https://github.com/opensearch-project/opensearch-api-specification/pull/464))
- Added tests against OpenSearch 3.0 ([#459](https://github.com/opensearch-project/opensearch-api-specification/pull/459))
- Added support for request headers in tests [#461](https://github.com/opensearch-project/opensearch-api-specification/pull/461)
- Added metadata additionalProperties to `ErrorCause` ([#462](https://github.com/opensearch-project/opensearch-api-specification/pull/462))
- Added `creation_date` field to `DanglingIndex` ([#462](https://github.com/opensearch-project/opensearch-api-specification/pull/462))
- Added doc on `cluster create-index blocked` workaround ([#465](https://github.com/opensearch-project/opensearch-api-specification/pull/465))
- Added `observability` namespace API specifications ([#474](https://github.com/opensearch-project/opensearch-api-specification/pull/474))
- Added support for reusing output variables as keys in payload expectations ([#471](https://github.com/opensearch-project/opensearch-api-specification/pull/471))
- Added support for running tests against Amazon OpenSearch ([#476](https://github.com/opensearch-project/opensearch-api-specification/pull/476))
- Added API spec for security plugin ([#271](https://github.com/opensearch-project/opensearch-api-specification/pull/271))
- Added `/_plugins/_security/api/certificates/` ([#439](https://github.com/opensearch-project/opensearch-api-specification/pull/439))
- Added `/_plugins/_ml/models/{model_id}/_deploy`, `_undeploy` and `knn_vector` type in `passage_embedding` ([#504](https://github.com/opensearch-project/opensearch-api-specification/pull/504))
- Added `PersonalizeSearchRanking`, `RetrievalAugmentedGeneration`, `Rerank`, `Collapse`, `TruncateHits` and `SplitResponseProcessor` ([#505](https://github.com/opensearch-project/opensearch-api-specification/pull/505))
- Added `/_plugins/_security/api/certificates/` to API spec ([#439](https://github.com/opensearch-project/opensearch-api-specification/pull/439))
- Added support for annotating and testing the API spec against multiple OpenSearch distributions ([#483](https://github.com/opensearch-project/opensearch-api-specification/pull/483))
- Added `read_time`, `write_time`, `queue_size` and `io_time_in_millis` to `IoStatDevice` ([#483](https://github.com/opensearch-project/opensearch-api-specification/pull/483))
- Added `total_rejections_breakup` to `ShardIndexingPressureStats` ([#483](https://github.com/opensearch-project/opensearch-api-specification/pull/483))
- Added `cancelled_task_percentage` and `current_cancellation_eligible_tasks_count` to `ShardSearchBackpressureTaskCancellationStats` ([#483](https://github.com/opensearch-project/opensearch-api-specification/pull/483))

### Changed

Expand All @@ -72,6 +89,7 @@ Inspired from [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
- Tester tool now provides better context for non-2XX responses when --verbose is used ([#359](https://github.com/opensearch-project/opensearch-api-specification/pull/359))
- Lock testing for next release of OpenSearch to a specific SHA ([#431](https://github.com/opensearch-project/opensearch-api-specification/pull/431))
- Replace nullable with null type ([#436](https://github.com/opensearch-project/opensearch-api-specification/pull/436))
- Split test suite ([#472])(https://github.com/opensearch-project/opensearch-api-specification/pull/472)

### Deprecated

Expand Down Expand Up @@ -99,7 +117,11 @@ Inspired from [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
- Fixed `/_mapping` with `index` in query ([#385](https://github.com/opensearch-project/opensearch-api-specification/pull/385))
- Fixed duplicate `/_nodes/{node_id}` path ([#416](https://github.com/opensearch-project/opensearch-api-specification/pull/416))
- Fixed `_source` accepting an array of fields in `/_search` ([#430](https://github.com/opensearch-project/opensearch-api-specification/pull/430))
- Fixed `_update_by_query` with a simple term ([451](https://github.com/opensearch-project/opensearch-api-specification/pull/451))
- Fixed `_update_by_query` with a simple term ([#451](https://github.com/opensearch-project/opensearch-api-specification/pull/451))
- Fixed `Duration` to allow for non-integers ([#479](https://github.com/opensearch-project/opensearch-api-specification/pull/479))
- Fixed accuracy of the index stats schemas ([#491](https://github.com/opensearch-project/opensearch-api-specification/pull/491))
- Fixed security spec to add support for 400 and 403s ([#439](https://github.com/opensearch-project/opensearch-api-specification/pull/439))
- Fixed required parameters in `NodeInfo` and `NodeOperatingSystemInfo` ([#483](https://github.com/opensearch-project/opensearch-api-specification/pull/483))

### Security

Expand Down
Loading
Loading