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

[1.x] Make BlackBoxContext provide a Client linked to the context under the test #1407

Merged
merged 18 commits into from
Oct 28, 2021

Conversation

yevhenii-nadtochii
Copy link
Contributor

@yevhenii-nadtochii yevhenii-nadtochii commented Oct 25, 2021

  1. Implemented ClientProvider that accepts a BoundedContext on its constructor and distributes Client instances linked to the passed context. The provider lazily creates in-process GrpcContainer for that;
  2. Made BlackBoxContext provide a Client as blackBoxContext.client().

Copy link
Contributor

@armiol armiol left a comment

Choose a reason for hiding this comment

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

@yevhenii-nadtochii please see my comments. This is the first round of the review. I will need to have another look once it's ready for the final review.

@codecov
Copy link

codecov bot commented Oct 25, 2021

Codecov Report

Merging #1407 (789439a) into 1.x-dev (896cf4b) will increase coverage by 0.02%.
The diff coverage is 95.31%.

@@              Coverage Diff              @@
##             1.x-dev    #1407      +/-   ##
=============================================
+ Coverage      90.97%   91.00%   +0.02%     
- Complexity      4786     4804      +18     
=============================================
  Files            615      616       +1     
  Lines          15197    15261      +64     
  Branches         859      861       +2     
=============================================
+ Hits           13826    13888      +62     
- Misses          1100     1101       +1     
- Partials         271      272       +1     

@yevhenii-nadtochii yevhenii-nadtochii changed the title Enrich black box context Make BlackBoxContext provide a Client linked to the context under the test Oct 26, 2021
@yevhenii-nadtochii yevhenii-nadtochii marked this pull request as ready for review October 26, 2021 15:25
Copy link
Contributor

@armiol armiol left a comment

Choose a reason for hiding this comment

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

@yevhenii-nadtochii Close to LGTM. Please see my comments.

Copy link
Contributor

@armiol armiol left a comment

Choose a reason for hiding this comment

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

@yevhenii-nadtochii LGTM with some minor comments to address before merging.

@yevhenii-nadtochii yevhenii-nadtochii merged commit e201525 into 1.x-dev Oct 28, 2021
@yevhenii-nadtochii yevhenii-nadtochii deleted the enrich-black-box-context branch October 28, 2021 09:49
@yevhenii-nadtochii yevhenii-nadtochii changed the title Make BlackBoxContext provide a Client linked to the context under the test [1.x] Make BlackBoxContext provide a Client linked to the context under the test Dec 15, 2021
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.

2 participants