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

[BUG] Build fails when running with -Dtests.locale=tr-TR -Dtests.timezone=Australia/Currie parameters #246

Closed
stevanbz opened this issue Jan 6, 2023 · 2 comments
Labels
bug Something isn't working

Comments

@stevanbz
Copy link
Contributor

stevanbz commented Jan 6, 2023

Failing build on backport

The bug happens once SecureFindingRestApiIT is executed with -Dtests.locale=tr-TR -Dtests.timezone=Australia/Currie parameters.

Build that failed:
https://github.com/opensearch-project/security-analytics/actions/runs/3851316272/jobs/6562357857#step:8:389
Error message:
org.opensearch.client.ResponseException: method [GET], host [https://localhost:9200/], URI [/_plugins/_security_analytics/findings/_search?detectorType=TEST_W%C4%B0NDOWS], status line [HTTP/1.1 400 Bad Request]
{"error":{"root_cause":[{"type":"illegal_argument_exception","reason":"No enum constant org.opensearch.securityanalytics.model.Detector.DetectorType.TEST_WİNDOWS"}],"type":"illegal_argument_exception","reason":"No enum constant org.opensearch.securityanalytics.model.Detector.DetectorType.TEST_WİNDOWS"

Solution
remove from test detector2.getDetectorType().toUpperCase() or add locale when upperCasing

How can one reproduce the bug?
Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

What is the expected behavior?
A clear and concise description of what you expected to happen.

What is your host/environment?

  • OS: [e.g. iOS]
  • Version [e.g. 22]
  • Plugins

Do you have any screenshots?
If applicable, add screenshots to help explain your problem.

Do you have any additional context?
Add any other context about the problem.

@stevanbz stevanbz added bug Something isn't working untriaged labels Jan 6, 2023
@stevanbz stevanbz changed the title [BUG] [BUG] Build fails when running with -Dtests.locale=tr-TR -Dtests.timezone=Australia/Currie parameters Jan 6, 2023
@getsaurabh02
Copy link
Member

Can we close this out now @stevanbz ?

@stevanbz
Copy link
Contributor Author

Can we close this out now @stevanbz ?

Yes. Tnx

@sbcd90 sbcd90 closed this as completed Mar 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants