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

ControllerRequestClient accepts headers. Useful for authN tests #13481

Merged
merged 1 commit into from
Jun 28, 2024

Conversation

vrajat
Copy link
Collaborator

@vrajat vrajat commented Jun 26, 2024

authN tests can pass authentication parameters using headers. Allow initialization of ControllerRequestClient with headers so that it can be used in authN tests as well. As an example, UrlAuthRealtimeIntegrationTest has been modified to use ControllerRequestClient initialized with headers. The implementation is now simpler than before.

tags: refactor

authN tests can pass authentication parameters using headers. Allow initialization of ControllerRequestClient with headers so that it can be used in authN tests as well. As an example, UrlAuthRealtimeIntegrationTest has been modified to use ControllerRequestClient initialized with headers. The implementation is now simpler than before.
@codecov-commenter
Copy link

codecov-commenter commented Jun 26, 2024

Codecov Report

Attention: Patch coverage is 53.57143% with 26 lines in your changes missing coverage. Please review.

Project coverage is 62.05%. Comparing base (59551e4) to head (c7185a1).
Report is 679 commits behind head on master.

Files Patch % Lines
...inot/controller/helix/ControllerRequestClient.java 53.57% 26 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##             master   #13481      +/-   ##
============================================
+ Coverage     61.75%   62.05%   +0.30%     
+ Complexity      207      198       -9     
============================================
  Files          2436     2560     +124     
  Lines        133233   141365    +8132     
  Branches      20636    21929    +1293     
============================================
+ Hits          82274    87726    +5452     
- Misses        44911    46980    +2069     
- Partials       6048     6659     +611     
Flag Coverage Δ
custom-integration1 <0.01% <0.00%> (-0.01%) ⬇️
integration <0.01% <0.00%> (-0.01%) ⬇️
integration1 <0.01% <0.00%> (-0.01%) ⬇️
integration2 0.00% <0.00%> (ø)
java-11 61.97% <53.57%> (+0.26%) ⬆️
java-21 61.93% <53.57%> (+0.31%) ⬆️
skip-bytebuffers-false 62.02% <53.57%> (+0.28%) ⬆️
skip-bytebuffers-true 61.91% <53.57%> (+34.18%) ⬆️
temurin 62.05% <53.57%> (+0.30%) ⬆️
unittests 62.05% <53.57%> (+0.30%) ⬆️
unittests1 46.67% <ø> (-0.22%) ⬇️
unittests2 27.57% <53.57%> (-0.16%) ⬇️

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

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Collaborator

@yashmayya yashmayya left a comment

Choose a reason for hiding this comment

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

LGTM

@gortiz gortiz merged commit 8747331 into apache:master Jun 28, 2024
20 checks passed
@vrajat vrajat deleted the rv-auth-test-infra branch July 1, 2024 05:36
suyashpatel98 pushed a commit to suyashpatel98/pinot that referenced this pull request Jul 6, 2024
…he#13481)

authN tests can pass authentication parameters using headers. Allow initialization of ControllerRequestClient with headers so that it can be used in authN tests as well. As an example, UrlAuthRealtimeIntegrationTest has been modified to use ControllerRequestClient initialized with headers. The implementation is now simpler than before.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants