diff --git a/.github/workflows/test-spec.yml b/.github/workflows/test-spec.yml index 682eac75f..809c1a63f 100644 --- a/.github/workflows/test-spec.yml +++ b/.github/workflows/test-spec.yml @@ -55,7 +55,7 @@ jobs: - name: Run Tests run: | - npm run test:spec -- --opensearch-insecure --verbose --coverage coverage/test-spec-coverage-${{ matrix.entry.version }}.json + npm run test:spec -- --opensearch-insecure --coverage coverage/test-spec-coverage-${{ matrix.entry.version }}.json - name: Upload Test Coverage Results uses: actions/upload-artifact@v4 diff --git a/CHANGELOG.md b/CHANGELOG.md index aa24870ba..f124dab1c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -35,6 +35,7 @@ Inspired from [Keep a Changelog](https://keepachangelog.com/en/1.0.0/) - Added AjvErrorsParser to print more informative error messages ([#364](https://github.com/opensearch-project/opensearch-api-specification/issues/364)) - Added JsonSchemaValidator, a wrapper for AJV ([#364](https://github.com/opensearch-project/opensearch-api-specification/issues/364)) - Added support for `application/cbor` responses ([#371](https://github.com/opensearch-project/opensearch-api-specification/pull/371)) +- Added tests for SQL namespace ([#379](https://github.com/opensearch-project/opensearch-api-specification/pull/379)) - Added support for `application/smile` responses ([#386](https://github.com/opensearch-project/opensearch-api-specification/pull/386)) - Added `doc_status`, `remote_store`, `segment_replication` and `unreferenced_file_cleanups_performed` to `SegmentStats` ([#395](https://github.com/opensearch-project/opensearch-api-specification/pull/395)) - Added `concurrent_query_*` and `search_idle_reactivate_count_total` fields to `SearchStats` ([#395](https://github.com/opensearch-project/opensearch-api-specification/pull/395)) diff --git a/spec/namespaces/sql.yaml b/spec/namespaces/sql.yaml index 6bfe9e72e..0afdde2d8 100644 --- a/spec/namespaces/sql.yaml +++ b/spec/namespaces/sql.yaml @@ -41,7 +41,7 @@ paths: operationId: sql.close.0 x-operation-group: sql.close x-version-added: '1.0' - description: Clears the cursor context. + description: Clear the cursor context. externalDocs: url: https://opensearch.org/docs/latest/search-plugins/sql/sql-ppl-api/ parameters: diff --git a/spec/schemas/sql._common.yaml b/spec/schemas/sql._common.yaml index c704fb044..ea1abf9f0 100644 --- a/spec/schemas/sql._common.yaml +++ b/spec/schemas/sql._common.yaml @@ -85,17 +85,4 @@ components: user: type: object execution_time: - type: object - # SqlStatsResponse: - # type: object - # properties: - # request_total: - # type: integer - # request_count: - # type: integer - # failed_request_count_syserr: - # type: integer - # failed_request_count_cuserr: - # type: integer - # failed_request_count_cb: - # type: integer \ No newline at end of file + type: object \ No newline at end of file diff --git a/tests/sql/close.yaml b/tests/sql/close.yaml index 249ccbefe..db1cbb84c 100644 --- a/tests/sql/close.yaml +++ b/tests/sql/close.yaml @@ -14,28 +14,16 @@ epilogues: method: DELETE status: [200, 404] chapters: - - synopsis: Create a document. - path: /{index}/_doc + - synopsis: Create few documents. + path: /_bulk method: POST - parameters: - index: books request_body: + content_type: application/x-ndjson payload: - title: Beauty and the Beast - year: 1991 - response: - status: 201 - - synopsis: Create a document. - path: /{index}/_doc - method: POST - parameters: - index: books - request_body: - payload: - title: To name the bigger life - year: 2004 - response: - status: 201 + - {create: {_index: books, _id: book_1392214}} + - {author: Harper Lee, title: To Kill a Mockingbird, year: 1960} + - {create: {_index: books, _id: book_1392215}} + - {author: Elizabeth Rudnick, title: Beauty and the Beast, year: 1991} - synopsis: Refresh the index. path: /{index}/_refresh method: POST