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

test: add projection with subpath test #132

Merged
merged 1 commit into from
Jan 4, 2022

Conversation

aaron-steinfeld
Copy link
Contributor

Description

Followup from #129 - new test for a projection of an attribute expression with subpath, and upgrading log4j for a minor vulnerability that doesn't affect this service.

Testing

Ran all tests locally.

Checklist:

  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • Any dependent changes have been merged and published in downstream modules

@codecov
Copy link

codecov bot commented Dec 29, 2021

Codecov Report

Merging #132 (b9ef2e2) into main (641e419) will increase coverage by 0.30%.
The diff coverage is n/a.

Impacted file tree graph

@@             Coverage Diff              @@
##               main     #132      +/-   ##
============================================
+ Coverage     81.39%   81.70%   +0.30%     
- Complexity      588      592       +4     
============================================
  Files            58       58              
  Lines          2268     2268              
  Branches        234      234              
============================================
+ Hits           1846     1853       +7     
+ Misses          327      319       -8     
- Partials         95       96       +1     
Flag Coverage Δ
integration 81.70% <ø> (+0.30%) ⬆️
unit 79.47% <ø> (+0.36%) ⬆️

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

Impacted Files Coverage Δ
...rtrace/core/query/service/QueryServiceStarter.java 58.33% <0.00%> (+2.77%) ⬆️
...y/service/projection/ProjectionTransformation.java 83.52% <0.00%> (+7.05%) ⬆️

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 641e419...b9ef2e2. Read the comment docs.

@github-actions

This comment has been minimized.

@@ -92,6 +93,30 @@ void transformsBasicAliasProjection() {
.blockingGet());
}

@Test
void transformsBasicAliasProjectionWithSubpath() {
Copy link
Member

Choose a reason for hiding this comment

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

Shouldn't this be in AttributeExpressionSubpathExistsFilteringTransformationTest and a corresponding CONTAINS_KEY filter be added ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

No, this test isn't about CONTAINS_KEY filters, those tests already exist in the class you referenced. This test is verifying projection works when using a subpath.

@aaron-steinfeld
Copy link
Contributor Author

@hypertrace/query-layer-owners please review.

@aaron-steinfeld aaron-steinfeld merged commit ed668d2 into main Jan 4, 2022
@aaron-steinfeld aaron-steinfeld deleted the add-test-upgrade-log4j branch January 4, 2022 13:59
@github-actions
Copy link

github-actions bot commented Jan 4, 2022

Unit Test Results

  32 files  ±0    32 suites  ±0   10s ⏱️ +2s
188 tests +1  188 ✔️ +1  0 💤 ±0  0 ❌ ±0 

Results for commit ed668d2. ± Comparison against base commit 641e419.

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.

None yet

3 participants