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

Added support for using a certificate and key, fixed /_plugins/_security/api/nodesdn. #731

Merged
merged 1 commit into from
Dec 16, 2024

Conversation

dblock
Copy link
Member

@dblock dblock commented Dec 13, 2024

Description

  • Added support for using a certificate and key.
  • Fixed request schema for PATCH /_plugins/_security/api/nodesdn
  • Fixed response schema for GET /_plugins/_security/api/nodesdn/{cluster_name}

Issues Resolved

Part of #663.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

Copy link
Contributor

github-actions bot commented Dec 13, 2024

Changes Analysis

Commit SHA: ee96bdb
Comparing To SHA: ebe0f8a

API Changes

Summary

├─┬Paths
│ ├─┬/_opendistro/_security/api/nodesdn/{cluster_name}
│ │ ├─┬GET
│ │ │ └─┬Responses
│ │ │   └─┬200
│ │ │     └─┬application/json
│ │ │       └─┬Schema
│ │ │         └──[🔀] $ref (57817:13)❌ 
│ │ ├─┬PUT
│ │ │ └─┬Responses
│ │ │   └──[➕] codes (31644:7)
│ │ └─┬PATCH
│ │   └─┬Requestbody
│ │     └─┬application/json
│ │       └─┬Schema
│ │         └──[🔀] $ref (58000:13)❌ 
│ └─┬/_plugins/_security/api/nodesdn/{cluster_name}
│   ├─┬GET
│   │ └─┬Responses
│   │   └─┬200
│   │     └─┬application/json
│   │       └─┬Schema
│   │         └──[🔀] $ref (57817:13)❌ 
│   ├─┬PUT
│   │ └─┬Responses
│   │   └──[➕] codes (31644:7)
│   └─┬PATCH
│     └─┬Requestbody
│       └─┬application/json
│         └─┬Schema
│           └──[🔀] $ref (58000:13)❌ 
└─┬Components
  ├──[➕] responses (31644:7)
  └──[➕] schemas (58000:7)

Document Element Total Changes Breaking Changes
paths 6 4
components 2 0
  • BREAKING Changes: 4 out of 8
  • Modifications: 4
  • Additions: 4
  • Breaking Modifications: 4

Report

The full API changes report is available at: https://github.com/opensearch-project/opensearch-api-specification/actions/runs/12321124351/artifacts/2318853319

API Coverage

Before After Δ
Covered (%) 606 (59.35 %) 606 (59.35 %) 0 (0 %)
Uncovered (%) 415 (40.65 %) 415 (40.65 %) 0 (0 %)
Unknown 43 43 0

@dblock dblock force-pushed the nodesdn-tests branch 5 times, most recently from 8cdd4d7 to 4252b5e Compare December 13, 2024 18:18
Copy link
Contributor

Spec Test Coverage Analysis

Total Tested
536 493 (91.98 %)

@dblock dblock changed the title Added support for using a certificate and key. Added support for using a certificate and key, fixed /_plugins/_security/api/nodesdn. Dec 13, 2024
@dblock dblock marked this pull request as ready for review December 13, 2024 18:24
Signed-off-by: dblock <dblock@amazon.com>
@dblock
Copy link
Member Author

dblock commented Dec 16, 2024

@Tokesh I see a 👍 but you're a maintainer here, appreciate if you could approve and merge!

@nhtruong
Copy link
Collaborator

@Tokesh Please double check as well :D

Copy link
Collaborator

@Tokesh Tokesh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, brilliant work! :)

@Tokesh Tokesh merged commit b2c8c46 into opensearch-project:main Dec 16, 2024
31 checks passed
@dblock dblock deleted the nodesdn-tests branch December 16, 2024 21:15
nathaliellenaa pushed a commit to nathaliellenaa/opensearch-api-specification that referenced this pull request Dec 18, 2024
Signed-off-by: dblock <dblock@amazon.com>
Signed-off-by: Nathalie Jonathan <nathhjo@amazon.com>
nathaliellenaa pushed a commit to nathaliellenaa/opensearch-api-specification that referenced this pull request Jan 7, 2025
Signed-off-by: dblock <dblock@amazon.com>
Signed-off-by: Nathalie Jonathan <nathhjo@amazon.com>
nathaliellenaa pushed a commit to nathaliellenaa/opensearch-api-specification that referenced this pull request Jan 9, 2025
Signed-off-by: dblock <dblock@amazon.com>
Signed-off-by: Nathalie Jonathan <nathhjo@amazon.com>
dblock added a commit that referenced this pull request Jan 9, 2025
* Added ML Model APIs (get, search, update model) to the spec along with the tests

Signed-off-by: Nathalie Jonathan <nathhjo@amazon.com>

* Added ML Model APIs (undeploy, unload), moved test for search model to models/search.yaml, resolved conflicts and updated CHANGELOG

Signed-off-by: Nathalie Jonathan <nathhjo@amazon.com>

* Added support for using a certificate and key. (#731)

Signed-off-by: dblock <dblock@amazon.com>
Signed-off-by: Nathalie Jonathan <nathhjo@amazon.com>

* Fixed /_search/scroll/{scroll_id}, missing search tests. (#732)

* Fixed /_search/scroll.

Signed-off-by: dblock <dblock@amazon.com>

* Added tests for GET and POST /_search.

Signed-off-by: dblock <dblock@amazon.com>

* Added a test for GET /_search/pipeline and DELETE /_search/pipeline/{id}.

Signed-off-by: dblock <dblock@amazon.com>

* Added missing _search/point_in_time tests.

Signed-off-by: dblock <dblock@amazon.com>

---------

Signed-off-by: dblock <dblock@amazon.com>
Signed-off-by: Nathalie Jonathan <nathhjo@amazon.com>

* Added tests for /_validate/query. (#739)

* Added tests for /_validate/query.

Signed-off-by: dblock <dblock@amazon.com>

* Added retry for #738.

Signed-off-by: dblock <dblock@amazon.com>

---------

Signed-off-by: dblock <dblock@amazon.com>
Signed-off-by: Nathalie Jonathan <nathhjo@amazon.com>

* Fixed lint and directory path error.

Signed-off-by: Nathalie Jonathan <nathhjo@amazon.com>

* Added ML Model APIs (load, upload, create metadata).

Signed-off-by: Nathalie Jonathan <nathhjo@amazon.com>

* Added ML Model APIs (predict) and updated the test settings for metadata.

Signed-off-by: Nathalie Jonathan <nathhjo@amazon.com>

* Fixed lint errors in predict.yaml, moved setup to prologues and teardown to epilogues in predict.yaml and load.yaml, updated CHANGELOG format, updated API description, 'model_group_id' ID type, 'version' parameter, and made 'model_format' a type of its own in ml.yaml.

Signed-off-by: Nathalie Jonathan <nathhjo@amazon.com>

* Added ML Model APIs (chunk, register meta), updated CHANGELOG and test for deprecated model metadata creation API.

Signed-off-by: Nathalie Jonathan <nathhjo@amazon.com>

* Added ML Model APIs (upload chunk), moved test for deprecated chunk upload to create_metadata.yaml, updated CHANGELOG.

Signed-off-by: Nathalie Jonathan <nathhjo@amazon.com>

* Applied suggestions from code review.

Signed-off-by: Nathalie Jonathan <nathhjo@amazon.com>

* Merged main and resolve conflicts.

Signed-off-by: Nathalie Jonathan <nathhjo@amazon.com>

* Moved test models folder to tests/plugins/ml/ml/models, removed duplicate map keys in ml._common.yaml, removed excluded parts and until property in the test files.

Signed-off-by: Nathalie Jonathan <nathhjo@amazon.com>

* Fixed merge conflicts, added support for payload properties into the prologue, attempted to fix errors in predict.yaml.

Signed-off-by: Nathalie Jonathan <nathhjo@amazon.com>

* Rebase with main, fixed test-spec.yml content, added response property in prologues of predict.yaml, undeploy.yaml, unload.yaml, added version for ML Model APIs.

Signed-off-by: Nathalie Jonathan <nathhjo@amazon.com>

* Modified response payload state from RUNNING to COMPLETED.

Signed-off-by: Nathalie Jonathan <nathhjo@amazon.com>

---------

Signed-off-by: Nathalie Jonathan <nathhjo@amazon.com>
Signed-off-by: dblock <dblock@amazon.com>
Co-authored-by: Daniel (dB.) Doubrovkine <dblock@amazon.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants