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

[Multiple Datasource] Test connection schema validation for registered auth types #6109

Conversation

xinruiba
Copy link
Member

@xinruiba xinruiba commented Mar 11, 2024

Description

DataSourceManagement plugin support an interface to allow other plugins register their own Auth Types. This is the PR to provide test connection router schema validation support for those registered auth types.

Issues Resolved

Partially fixes #5692, #5838

Screenshot

TokenExchangeTestConnection.mov

Testing the changes

In the video, we execute following test steps:

  1. Enabled multiple datasource
  2. Go to create data source page
  3. Selected registered Auth type
  4. Filled in title, datasource endpoint, credentials and other fields
  5. Click on test connection button

Test connection success.

Check List

  • All tests pass
    • yarn test:jest
    • yarn test:jest_integration
  • New functionality includes testing.
  • New functionality has been documented.
  • Update CHANGELOG.md
  • Commits are signed per the DCO using --signoff

… support for registered auth type

Signed-off-by: Xinrui Bai <xinruiba@amazon.com>
@xinruiba xinruiba changed the title [Token Exchange Unification] Test connextion router schema validation… [Token Exchange Unification] Test connection router schema validation support for registered auth type Mar 11, 2024
@xinruiba xinruiba changed the title [Token Exchange Unification] Test connection router schema validation support for registered auth type [MD] Test connection router schema validation support for registered auth type Mar 11, 2024
@xinruiba xinruiba changed the title [MD] Test connection router schema validation support for registered auth type [MD] Test connection router schema validation support for registered auth types Mar 11, 2024
@xinruiba xinruiba changed the title [MD] Test connection router schema validation support for registered auth types [MD] Test connection router: registered auth types' schema validation support Mar 11, 2024
@xinruiba xinruiba changed the title [MD] Test connection router: registered auth types' schema validation support [MD] Test connection router: registered auth types schema validation support Mar 11, 2024
Copy link

codecov bot commented Mar 11, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 67.13%. Comparing base (6d882c9) to head (a3a4e4a).
Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #6109      +/-   ##
==========================================
- Coverage   67.15%   67.13%   -0.02%     
==========================================
  Files        3324     3324              
  Lines       64327    64330       +3     
  Branches    10345    10347       +2     
==========================================
- Hits        43197    43188       -9     
+ Misses      18652    18618      -34     
- Partials     2478     2524      +46     
Flag Coverage Δ
Linux_1 31.66% <ø> (ø)
Linux_2 55.23% <ø> (ø)
Linux_3 44.72% <100.00%> (+<0.01%) ⬆️
Linux_4 35.08% <ø> (ø)
Windows_1 31.68% <ø> (-0.03%) ⬇️
Windows_2 55.20% <ø> (ø)
Windows_3 44.73% <100.00%> (+<0.01%) ⬆️
Windows_4 35.08% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

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

@xinruiba xinruiba changed the title [MD] Test connection router: registered auth types schema validation support [MD] Test connection schema validation for registered auth types Mar 11, 2024
@xinruiba xinruiba changed the title [MD] Test connection schema validation for registered auth types [Multiple Datasource] Test connection schema validation for registered auth types Mar 11, 2024
Signed-off-by: Xinrui Bai <xinruiba@amazon.com>
bandinib-amzn
bandinib-amzn previously approved these changes Mar 11, 2024
… case

Signed-off-by: Xinrui Bai <xinruiba@amazon.com>
BionIT
BionIT previously approved these changes Mar 11, 2024
bandinib-amzn
bandinib-amzn previously approved these changes Mar 11, 2024
Signed-off-by: Xinrui Bai <xinruiba@amazon.com>
@xinruiba xinruiba dismissed stale reviews from bandinib-amzn and BionIT via 8e0a1ca March 11, 2024 23:05
Signed-off-by: Xinrui Bai <xinruiba@amazon.com>
Signed-off-by: Xinrui Bai <xinruiba@amazon.com>
@Flyingliuhub Flyingliuhub merged commit 362ab1e into opensearch-project:main Mar 12, 2024
67 of 68 checks passed
opensearch-trigger-bot bot pushed a commit that referenced this pull request Mar 12, 2024
…d auth types (#6109)

* [Token Exchange Unification] Test connextion router schema validation support for registered auth type

Signed-off-by: Xinrui Bai <xinruiba@amazon.com>

* Update changefile

Signed-off-by: Xinrui Bai <xinruiba@amazon.com>

* [UT] Add test cases for registered auth type, test connection failure case

Signed-off-by: Xinrui Bai <xinruiba@amazon.com>

* [UT] Update testing URL value to avoid linkchecker failure

Signed-off-by: Xinrui Bai <xinruiba@amazon.com>

* [UT] Update testing URL value to avoid linkchecker failure round2

Signed-off-by: Xinrui Bai <xinruiba@amazon.com>

* [UT] Update testing URL value to avoid linkchecker failure round 3

Signed-off-by: Xinrui Bai <xinruiba@amazon.com>

---------

Signed-off-by: Xinrui Bai <xinruiba@amazon.com>
(cherry picked from commit 362ab1e)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

# Conflicts:
#	CHANGELOG.md
Flyingliuhub pushed a commit that referenced this pull request Mar 12, 2024
…d auth types (#6109) (#6116)

* [Token Exchange Unification] Test connextion router schema validation support for registered auth type

Signed-off-by: Xinrui Bai <xinruiba@amazon.com>

* Update changefile

Signed-off-by: Xinrui Bai <xinruiba@amazon.com>

* [UT] Add test cases for registered auth type, test connection failure case

Signed-off-by: Xinrui Bai <xinruiba@amazon.com>

* [UT] Update testing URL value to avoid linkchecker failure

Signed-off-by: Xinrui Bai <xinruiba@amazon.com>

* [UT] Update testing URL value to avoid linkchecker failure round2

Signed-off-by: Xinrui Bai <xinruiba@amazon.com>

* [UT] Update testing URL value to avoid linkchecker failure round 3

Signed-off-by: Xinrui Bai <xinruiba@amazon.com>

---------

Signed-off-by: Xinrui Bai <xinruiba@amazon.com>
(cherry picked from commit 362ab1e)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

# Conflicts:
#	CHANGELOG.md

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
@xinruiba xinruiba deleted the xinrui_TokenExhangeUnification_TestConnection branch March 18, 2024 05:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Proposal] Refactoring data source plugin to support add-on authentication method with plug-in module
4 participants