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

[2.x] Explicitly pass basePath: false in jwt_auth.test.ts #1552

Closed
wants to merge 2 commits into from

Conversation

cwperks
Copy link
Member

@cwperks cwperks commented Aug 14, 2023

Description

This PR explicitly sets basePath to false in jwt_auth.test.ts to ensure that the test does not run with a basePath

Fixes CI errors seen in: #1550

I'm am looking more into osdTestServer.getRootWithSettings to see why the default is not being picked up: https://github.com/opensearch-project/OpenSearch-Dashboards/blob/9253a372004ae108afad01cdc41d36a9ceccd1ff/src/core/test_helpers/osd_server.ts#L75-L104

Category

[Enhancement, New feature, Bug fix, Test fix, Refactoring, Maintenance, Documentation]

Test fix

Check List

  • New functionality includes testing
  • New functionality has been documented
  • Commits are signed per the DCO using --signoff

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.

Signed-off-by: Craig Perkins <[email protected]>
Signed-off-by: Craig Perkins <[email protected]>
@codecov
Copy link

codecov bot commented Aug 14, 2023

Codecov Report

Merging #1552 (b1a3fe6) into 2.x (a5e35e3) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##              2.x    #1552   +/-   ##
=======================================
  Coverage   66.06%   66.06%           
=======================================
  Files          93       93           
  Lines        2328     2328           
  Branches      310      310           
=======================================
  Hits         1538     1538           
  Misses        722      722           
  Partials       68       68           

@peternied
Copy link
Member

Why manually backport?

@cwperks
Copy link
Member Author

cwperks commented Aug 14, 2023

@peternied testing out the CI on 2.x currently. The integration tests fail on 2.x, but succeed on main and there are very few changes between the branches (https://github.com/opensearch-project/security-dashboards-plugin/compare/2.x..main).

The CI is not running on github outside of creating a PR.

@peternied
Copy link
Member

The CI is not running on github outside of creating a PR.

You can enable GitHub Actions on your fork

@cwperks
Copy link
Member Author

cwperks commented Aug 14, 2023

Closing this for now. I am testing with act to try to replicate.

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.

2 participants