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

[Spotless] Applying Google Code Format for integ-tests #10 #329

Merged
merged 4 commits into from
Aug 15, 2023

Conversation

MitchellGale
Copy link

Description

Spotless apply on integ-test (part 3 of 4 integ-test integration).

Issues Resolved

opensearch-project#1101

Check List

  • New functionality includes testing.
    • All tests pass, including unit test, integration test and doctest
  • New functionality has been documented.
    • New functionality has javadoc added
    • New functionality has user manual doc added
  • 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.

@codecov
Copy link

codecov bot commented Aug 4, 2023

Codecov Report

Merging #329 (05c9ca0) into integ/sl_GoogleJavaFormat10 (245c4f8) will not change coverage.
The diff coverage is n/a.

@@                      Coverage Diff                       @@
##             integ/sl_GoogleJavaFormat10     #329   +/-   ##
==============================================================
  Coverage                          97.51%   97.51%           
  Complexity                          4657     4657           
==============================================================
  Files                                408      408           
  Lines                              11933    11933           
  Branches                             829      829           
==============================================================
  Hits                               11637    11637           
  Misses                               289      289           
  Partials                               7        7           
Flag Coverage Δ
sql-engine 97.51% <ø> (ø)

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

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

+ "Other Databases :\n" + otherDbConnectionInfoToString() + '\n'
+ "Test data set(s) :\n" + testDataSetsToString() + '\n'
+ "Test query set : " + testQuerySet + '\n'
+ "Tested Database : "

Choose a reason for hiding this comment

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

👎

Choose a reason for hiding this comment

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

...there are worse things

+ "Other Databases :\n" + otherDbConnectionInfoToString() + '\n'
+ "Test data set(s) :\n" + testDataSetsToString() + '\n'
+ "Test query set : " + testQuerySet + '\n'
+ "Tested Database : "

Choose a reason for hiding this comment

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

...there are worse things

"}"
);
JSONObject expected =
new JSONObject(

Choose a reason for hiding this comment

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

I do not like how it combined the strings here

Copy link
Author

Choose a reason for hiding this comment

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

Agreed. I can fix.

Copy link
Author

Choose a reason for hiding this comment

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

(I think)

* https://github.com/elastic/elasticsearch/pull/49959
* Deprecate creation of dot-prefixed index names except for hidden and system indices.
* Create hidden index by REST client.
* https://github.com/elastic/elasticsearch/pull/49959 Deprecate creation of dot-prefixed index

Choose a reason for hiding this comment

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

Suggested change
* https://github.com/elastic/elasticsearch/pull/49959 Deprecate creation of dot-prefixed index
* https://github.com/elastic/elasticsearch/pull/49959 <br> Deprecate creation of dot-prefixed index

Copy link
Author

Choose a reason for hiding this comment

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

Added.

JSONObject response =
executeQuery(
String.format(
"source=%s | eval `str` = typeof('pewpew'), `double` = typeof(1.0),`int` ="

Choose a reason for hiding this comment

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

is there a way to avoid reformatting the strings here?

Copy link
Author

Choose a reason for hiding this comment

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

Yes, fixed.

* https://github.com/elastic/elasticsearch/pull/49959
* Deprecate creation of dot-prefixed index names except for hidden and system indices.
* Create hidden index by REST client.
* https://github.com/elastic/elasticsearch/pull/49959 Deprecate creation of dot-prefixed index

Choose a reason for hiding this comment

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

Suggested change
* https://github.com/elastic/elasticsearch/pull/49959 Deprecate creation of dot-prefixed index
* https://github.com/elastic/elasticsearch/pull/49959 <br> Deprecate creation of dot-prefixed index

Copy link
Author

Choose a reason for hiding this comment

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

Addressed, thanks.

Signed-off-by: Mitchell Gale <[email protected]>
Copy link

@Yury-Fridlyand Yury-Fridlyand left a comment

Choose a reason for hiding this comment

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

Thanks for fixing multiline strings!

Signed-off-by: Mitchell Gale <[email protected]>
@MitchellGale MitchellGale merged commit e9ea27e into integ/sl_GoogleJavaFormat10 Aug 15, 2023
14 of 19 checks passed
MitchellGale added a commit that referenced this pull request Aug 16, 2023
…h-project#1967)

* [Spotless] Applying Google Code Format for integ-tests #10 (#329)

* Add spotless apply 33 files.

Signed-off-by: Mitchell Gale <[email protected]>

* Addressed PR comments.

Signed-off-by: Mitchell Gale <[email protected]>

* Address PR comments.

Signed-off-by: Mitchell Gale <[email protected]>

* fixing integ test failure.

Signed-off-by: Mitchell Gale <[email protected]>

---------

Signed-off-by: Mitchell Gale <[email protected]>

* Update integ-test/src/test/java/org/opensearch/sql/correctness/tests/TestConfigTest.java

Co-authored-by: Yury-Fridlyand <[email protected]>
Signed-off-by: Mitchell Gale <[email protected]>

* Apply suggestions from code review

Co-authored-by: Guian Gumpac <[email protected]>
Signed-off-by: Mitchell Gale <[email protected]>

* Apply suggestions from code review

Co-authored-by: Guian Gumpac <[email protected]>
Signed-off-by: Mitchell Gale <[email protected]>

---------

Signed-off-by: Mitchell Gale <[email protected]>
Signed-off-by: Mitchell Gale <[email protected]>
Co-authored-by: Yury-Fridlyand <[email protected]>
Co-authored-by: Guian Gumpac <[email protected]>
MitchellGale added a commit that referenced this pull request Aug 22, 2023
…h-project#1967)

* [Spotless] Applying Google Code Format for integ-tests #10 (#329)

* Add spotless apply 33 files.

Signed-off-by: Mitchell Gale <[email protected]>

* Addressed PR comments.

Signed-off-by: Mitchell Gale <[email protected]>

* Address PR comments.

Signed-off-by: Mitchell Gale <[email protected]>

* fixing integ test failure.

Signed-off-by: Mitchell Gale <[email protected]>

---------

Signed-off-by: Mitchell Gale <[email protected]>

* Update integ-test/src/test/java/org/opensearch/sql/correctness/tests/TestConfigTest.java

Co-authored-by: Yury-Fridlyand <[email protected]>
Signed-off-by: Mitchell Gale <[email protected]>

* Apply suggestions from code review

Co-authored-by: Guian Gumpac <[email protected]>
Signed-off-by: Mitchell Gale <[email protected]>

* Apply suggestions from code review

Co-authored-by: Guian Gumpac <[email protected]>
Signed-off-by: Mitchell Gale <[email protected]>

---------

Signed-off-by: Mitchell Gale <[email protected]>
Signed-off-by: Mitchell Gale <[email protected]>
Co-authored-by: Yury-Fridlyand <[email protected]>
Co-authored-by: Guian Gumpac <[email protected]>
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.

4 participants