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

Add onboarding doc for smoke tests #5283

Merged
merged 3 commits into from
Feb 7, 2025

Conversation

zelinh
Copy link
Member

@zelinh zelinh commented Jan 31, 2025

Description

Add smoke tests framework onboarding guide for plugins.

Issues Resolved

Part of #5223

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

codecov bot commented Jan 31, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 92.04%. Comparing base (c33d51b) to head (48e4c52).
Report is 41 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #5283      +/-   ##
==========================================
- Coverage   92.06%   92.04%   -0.03%     
==========================================
  Files         202      202              
  Lines        7017     7036      +19     
==========================================
+ Hits         6460     6476      +16     
- Misses        557      560       +3     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

ONBOARDING.md Outdated Show resolved Hide resolved
ONBOARDING.md Outdated Show resolved Hide resolved
ONBOARDING.md Outdated Show resolved Hide resolved
ONBOARDING.md Outdated

2. You will need to add a distinct YAML file for your plugin in the appropriate major version directory under [smoke_tests_spec](src/test_workflow/smoke_test/smoke_tests_spec) and reference the file name in the test manifest for the corresponding component.

3. In the YAML file, specify the API path, HTTP method, request body as parameter and heading if `Content-Type` differs from the default `application/json`. Refer to an example test definition [here](src/test_workflow/smoke_test/smoke_tests_spec/2.x/opensearch.yml) for guidance.
Copy link
Member

Choose a reason for hiding this comment

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

Do we want to also point to api-specification repo guidelines for on-boarding?

Copy link
Member Author

Choose a reason for hiding this comment

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

I believe we assume that plugins should already be onboarded to the API-spec repo and follow their own onboarding procedures. This isn't just specific to the smoke tests framework.

Copy link
Member

Choose a reason for hiding this comment

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

@dblock is that a requirement for new plugins/components from api-specification side?

Copy link
Member Author

Choose a reason for hiding this comment

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

There is an ongoing issue in api-spec repo for adding missing API specs. opensearch-project/opensearch-api-specification#168

Signed-off-by: Zelin Hao <[email protected]>
Signed-off-by: Zelin Hao <[email protected]>
Copy link
Member

@gaiksaya gaiksaya left a comment

Choose a reason for hiding this comment

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

LGTM! Thanks!

@zelinh zelinh merged commit 2002180 into opensearch-project:main Feb 7, 2025
15 checks passed
@zelinh zelinh deleted the smoke-test-onboarding branch February 7, 2025 23:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: ✅ Done
Development

Successfully merging this pull request may close these issues.

2 participants