8000 Restrict TestResourceLoader from search of non-classpath resources in subfolders by dtargons · Pull Request #2421 · vividus-framework/vividus · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Restrict TestResourceLoader from search of non-classpath resources in subfolders #2421

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

Merged
merged 3 commits into from
Jan 28, 2022

Conversation

dtargons
Copy link
Contributor
@dtargons dtargons commented Jan 28, 2022

No description provided.

@dtargons dtargons changed the title Restrict TestResourceLoader from search of non-classpath resources in… Restrict TestResourceLoader from search of non-classpath resources in subfolders Jan 28, 2022
@codecov
Copy link
codecov bot 8000 commented Jan 28, 2022

Codecov Report

Merging #2421 (53ccc76) into master (8b35d2d) will increase coverage by 0.00%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff            @@
##             master    #2421   +/-   ##
=========================================
  Coverage     96.40%   96.40%           
  Complexity     5439     5439           
=========================================
  Files           772      772           
  Lines         15641    15644    +3     
  Branches       1046     1046           
=========================================
+ Hits          15078    15081    +3     
  Misses          439      439           
  Partials        124      124           
Impacted Files Coverage Δ
.../java/org/vividus/resource/TestResourceLoader.java 100.00% <100.00%> (ø)
...c/main/java/org/vividus/report/MetadataLogger.java
.../src/main/java/org/vividus/log/TestInfoLogger.java 98.79% <0.00%> (ø)

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 8b35d2d...53ccc76. Read the comment docs.

else
{
locationPattern = CLASSPATH_ALL_URL_PREFIX + normalizedResourceLocation;
allResources = resourcePatternResolver.getResources(locationPattern + "**/" + resourcePattern);
Copy link
Member

Choose a reason for hiding this comment

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

@valfirst as I see in default behavior we add **/, but should not the user be responsible for adding this into resource pattern on his own?

Copy link
Collaborator

Choose a reason for hiding this comment

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

tricky question, but "backward compatibility" is our goal

Co-authored-by: Valery Yatsynovich <valfirst@yandex.ru>
@valfirst valfirst merged commit 444586e into vividus-framework:master Jan 28, 2022
ikalinin1 pushed a commit that referenced this pull request Jan 31, 2022
…tem (#2421)

Co-authored-by: Dzmitry Targonsky <dzmitry_targonsky@epam.com>
Co-authored-by: Valery Yatsynovich <valfirst@yandex.ru>
VitaliaPiliuhina pushed a commit to VitaliaPiliuhina/vividus that referenced this pull request Apr 8, 2022
…tem (vividus-framework#2421)

Co-authored-by: Dzmitry Targonsky <dzmitry_targonsky@epam.com>
Co-authored-by: Valery Yatsynovich <valfirst@yandex.ru>
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
0