Skip to content

Commit

Permalink
Fix order of methods.
Browse files Browse the repository at this point in the history
Signed-off-by: dblock <[email protected]>
  • Loading branch information
dblock committed Dec 10, 2024
1 parent 64c488a commit e181909
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ Inspired from [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
- Added schema for `/_plugins/_knn/stats`, `/_plugins/_knn/models/{model_id}`, `_train` and `_search` ([#704](https://github.com/opensearch-project/opensearch-api-specification/pull/704))
- Added `retry` support in `prologues` and `epilogues` ([#713](https://github.com/opensearch-project/opensearch-api-specification/pull/713))
- Added response schema for `DELETE /_plugins/_rollup/jobs/{id}`, `POST /_plugins/_rollup/jobs/{id}/_start` and `_stop` ([#716](https://github.com/opensearch-project/opensearch-api-specification/pull/716))
- Added support for multiple test verbs ([#723](https://github.com/opensearch-project/opensearch-api-specification/pull/723))

### Removed
- Removed unsupported `_common.mapping:SourceField`'s `mode` field and associated `_common.mapping:SourceFieldMode` enum ([#652](https://github.com/opensearch-project/opensearch-api-specification/pull/652))
Expand Down Expand Up @@ -62,6 +63,7 @@ Inspired from [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
- Fixed content-type of `GET /_plugins/_observability/_local/stats` ([#711](https://github.com/opensearch-project/opensearch-api-specification/pull/711))
- Fixed `tenant` in `ObservabilityObject` request body to not be required ([#711](https://github.com/opensearch-project/opensearch-api-specification/pull/711))
- Fixed response code in `PUT /_plugins/_rollup/jobs/{id}` ([#716](https://github.com/opensearch-project/opensearch-api-specification/pull/716))
- Fixed response schema for `/_render/template` and `/_render/template/{id}` ([#723](https://github.com/opensearch-project/opensearch-api-specification/pull/723))

### Changed
- Changed `tasks._common:TaskInfo` and `tasks._common:TaskGroup` to be composed of a `tasks._common:TaskInfoBase` ([#683](https://github.com/opensearch-project/opensearch-api-specification/pull/683))
Expand Down
3 changes: 2 additions & 1 deletion json_schemas/test_story.schema.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,8 @@ definitions:
- type: array
items:
type: string
enum: [DELETE,GET, HEAD, OPTIONS, PATCH, POST, PUT]
# eslint-disable-next-line yml/sort-sequence-values
enum: [GET, PUT, POST, DELETE, PATCH, HEAD, OPTIONS]
- type: string
# eslint-disable-next-line yml/sort-sequence-values
enum: [GET, PUT, POST, DELETE, PATCH, HEAD, OPTIONS]
Expand Down
17 changes: 7 additions & 10 deletions tools/tests/tester/fixtures/stories/passed/multiple_methods.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,25 +2,22 @@ $schema: ../../../../../../json_schemas/test_story.schema.yaml

description: This story has multiple methods in its chapters.
prologues:
- path: /movies
method:
- DELETE
- HEAD
- path: /movies
# eslint-disable-next-line yml/sort-sequence-values
method: [HEAD, DELETE]
status:
- 404
epilogues:
- path: /movies
method:
- DELETE
- HEAD
# eslint-disable-next-line yml/sort-sequence-values
method: [HEAD, DELETE]
status:
- 200
- 404
chapters:
- synopsis: Create and update index.
path: /{index}
method:
- HEAD
- PUT
# eslint-disable-next-line yml/sort-sequence-values
method: [PUT, HEAD]
parameters:
index: movies

0 comments on commit e181909

Please sign in to comment.