Skip to content

Conversation

@aaron-steinfeld
Copy link
Contributor

Description

Add supports to the channel registry to create different plaintext and secure channels, differentiating the two.

Testing

Added UTs

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 Jul 7, 2021

Codecov Report

Merging #18 (f9add1b) into main (a86db35) will increase coverage by 0.32%.
The diff coverage is 86.66%.

Impacted file tree graph

@@             Coverage Diff              @@
##               main      #18      +/-   ##
============================================
+ Coverage     72.10%   72.42%   +0.32%     
- Complexity       80       85       +5     
============================================
  Files            16       16              
  Lines           233      243      +10     
  Branches         13       14       +1     
============================================
+ Hits            168      176       +8     
- Misses           54       55       +1     
- Partials         11       12       +1     
Flag Coverage Δ
unit 72.42% <86.66%> (+0.32%) ⬆️

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

Impacted Files Coverage Δ
...ace/core/grpcutils/client/GrpcChannelRegistry.java 82.60% <86.66%> (-2.01%) ⬇️

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 a86db35...f9add1b. Read the comment docs.

@github-actions

This comment has been minimized.

pavan-traceable
pavan-traceable previously approved these changes Jul 7, 2021
@pavan-traceable
Copy link
Contributor

Thanks @aaron-steinfeld for taking this up.

private final Map<String, ManagedChannel> channelMap = new ConcurrentHashMap<>();
private volatile boolean isShutdown = false;

/** Use either {@link #forSecureAddress(String, int) or} */
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
/** Use either {@link #forSecureAddress(String, int) or} */
/** Use either {@link #forSecureAddress(String, int)} or {@link #forPlaintextAddress(String, int)} */

Copy link
Contributor Author

Choose a reason for hiding this comment

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

whoops, did I not finish writing that...

Copy link
Contributor Author

Choose a reason for hiding this comment

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

fixed

@github-actions

This comment has been minimized.

@aaron-steinfeld aaron-steinfeld merged commit c372c51 into main Jul 7, 2021
@aaron-steinfeld aaron-steinfeld deleted the secure-channels branch July 7, 2021 17:58
@github-actions
Copy link

github-actions bot commented Jul 7, 2021

Unit Test Results

11 files  ±0  11 suites  ±0   9s ⏱️ -1s
53 tests ±0  53 ✔️ ±0  0 💤 ±0  0 ❌ ±0 

Results for commit c372c51. ± Comparison against base commit a86db35.

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.

5 participants