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

Fix issues with extra quotes in Logstash converted YAML files. #587

Merged

Conversation

dlvenable
Copy link
Member

@dlvenable dlvenable commented Nov 12, 2021

Description

Normalizes strings by removing quotes which should not be present.

Issues Resolved

Check List

  • New functionality includes testing.
    • All tests pass
  • New functionality has been documented.
    • New functionality has javadoc 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.

@dlvenable dlvenable requested a review from a team as a code owner November 12, 2021 23:38
@@ -435,6 +438,19 @@ void visit_array_with_array_of_size_more_than_one_returns_list_of_size_more_than
assertThat(actualList, equalTo(TestDataProvider.arrayData()));
}

@Test
void visit_array_with_array_of_with_quoted_strings_returns_them_unquoted() {
Copy link
Member

Choose a reason for hiding this comment

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

There are some extra words in this test name.

graytaylor0
graytaylor0 previously approved these changes Nov 12, 2021
@asifsmohammed
Copy link
Collaborator

Can you also normalize

  • pluginName in visitPlugin()
  • attribute name in return statement of visitAttribute()

They can also be quoted strings

@codecov-commenter
Copy link

codecov-commenter commented Nov 12, 2021

Codecov Report

Merging #587 (7670f3e) into main (42c5954) will increase coverage by 0.05%.
The diff coverage is n/a.

Impacted file tree graph

@@             Coverage Diff              @@
##               main     #587      +/-   ##
============================================
+ Coverage     92.12%   92.18%   +0.05%     
+ Complexity      569      566       -3     
============================================
  Files            71       71              
  Lines          1727     1727              
  Branches        144      144              
============================================
+ Hits           1591     1592       +1     
+ Misses          105      102       -3     
- Partials         31       33       +2     
Impacted Files Coverage Δ
...com/amazon/dataprepper/pipeline/ProcessWorker.java 85.71% <0.00%> (-5.72%) ⬇️
...java/com/amazon/dataprepper/pipeline/Pipeline.java 92.85% <0.00%> (+4.28%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 42c5954...7670f3e. Read the comment docs.

Signed-off-by: David Venable <[email protected]>
@dlvenable dlvenable merged commit 2c7b58a into opensearch-project:main Nov 13, 2021
@dlvenable dlvenable deleted the logstash-normalized-quoted-text branch December 16, 2021 17:44
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