Skip to content

Sink: add in memory sink, slightly refactor validation/testing.#657

Merged
mum4k merged 3 commits intoenvoyproxy:mainfrom
oschaaf:inmemory-sink
Mar 23, 2021
Merged

Sink: add in memory sink, slightly refactor validation/testing.#657
mum4k merged 3 commits intoenvoyproxy:mainfrom
oschaaf:inmemory-sink

Conversation

@oschaaf
Copy link
Copy Markdown
Member

@oschaaf oschaaf commented Mar 20, 2021

  • Adds an in-memory sink. Comes in handy in tests, and could serve
    a future role if we want to converge the way results are handled
    in both distributed and non-distributed tests.
  • Slightly refactors validation & testing to make it easier to see
    what is specific to FileSinkImpl, making things a little more
    natural in case someone else wants to add a new sink type in the
    future.
  • Avoid MOCK_METHOD_N in the Sink mock as per recommendation.

Signed-off-by: Otto van der Schaaf ovanders@redhat.com

- Adds an in-memory sink. Comes in handy in tests, and could serve
  a future role if we want to converge the way results are handled
  in both distributed and non-distributed tests.
- Slightly refactors validation & testing to make it easier to see
  what is specific to FileSinkImpl, making things a little more
  natural in case someone else wants to  add a new sink type in the
  future.
- Avoid MOCK_METHOD_N in the Sink mock as per recommendation.

Signed-off-by: Otto van der Schaaf <ovanders@redhat.com>
@oschaaf oschaaf added the waiting-for-review A PR waiting for a review. label Mar 20, 2021
@mum4k mum4k requested a review from jiajunye March 22, 2021 19:09
@mum4k
Copy link
Copy Markdown
Collaborator

mum4k commented Mar 22, 2021

@jiajunye please review and assign back to me once done.

@jiajunye
Copy link
Copy Markdown
Contributor

LGTM

@mum4k mum4k added waiting-for-changes A PR waiting for comments to be resolved and changes to be applied. and removed waiting-for-review A PR waiting for a review. labels Mar 23, 2021
Signed-off-by: Otto van der Schaaf <ovanders@redhat.com>
@oschaaf
Copy link
Copy Markdown
Member Author

oschaaf commented Mar 23, 2021

Thanks for the review @mum4k , comments addressed in 135e803

@oschaaf oschaaf added waiting-for-review A PR waiting for a review. and removed waiting-for-changes A PR waiting for comments to be resolved and changes to be applied. labels Mar 23, 2021
Signed-off-by: Otto van der Schaaf <ovanders@redhat.com>
@mum4k mum4k merged commit f0bc392 into envoyproxy:main Mar 23, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

waiting-for-review A PR waiting for a review.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants