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

missing coverage in fault filter #342

Closed
mattklein123 opened this issue Jan 11, 2017 · 2 comments · Fixed by #354
Closed

missing coverage in fault filter #342

mattklein123 opened this issue Jan 11, 2017 · 2 comments · Fixed by #354
Labels
Milestone

Comments

@mattklein123
Copy link
Member

@rshriram I noticed the following line is missing coverage in the fault filter. Do you mind adding a test for that case? It's pretty important to make sure the timer gets correctly disabled, etc.

https://github.com/lyft/envoy/blob/master/source/common/http/filter/fault_filter.cc#L121

@mattklein123 mattklein123 added this to the 1.2.0 milestone Jan 11, 2017
@rshriram
Copy link
Member

rshriram commented Jan 11, 2017 via email

@mattklein123
Copy link
Member Author

You need to have a test where you invoke the stream reset callback like this:
https://github.com/lyft/envoy/blob/master/test/common/http/filter/buffer_filter_test.cc#L110

This will insure that things are cleaned up properly in the reset case.

You can do a full coverage build like so:
https://github.com/lyft/envoy/blob/master/ci/do_ci.sh#L18

After that runs there will be a lot of HTML files including coverage.html which show you exactly what is covered.

liverbirdkte referenced this issue in liverbirdkte/envoy Nov 22, 2022
Currently only RSA_2048, RSA_3072, RSA_4096, ECDSA_P256
is supported. If the pkey type is not specified in
config file, original server pkey type will be copied.
The default value is RSA_2048.

Signed-off-by: Luyao Zhong <[email protected]>
jpsim pushed a commit that referenced this issue Nov 28, 2022
Description: this PR completes memory management for headers being passed from the platform to C to Cpp and back.
Risk Level: med - changes memory management of headers.
Testing: Added unit tests to make sure that headers are being freed when appropriate.

Signed-off-by: Jose Nino <[email protected]>
Signed-off-by: JP Simard <[email protected]>
jpsim pushed a commit that referenced this issue Nov 28, 2022
Description: remove unnecessary pragma left as a merge comment in #342
Risk Level: low
Testing: builds in CI

Signed-off-by: Jose Nino <[email protected]>
Signed-off-by: JP Simard <[email protected]>
jpsim pushed a commit that referenced this issue Nov 29, 2022
Description: this PR completes memory management for headers being passed from the platform to C to Cpp and back.
Risk Level: med - changes memory management of headers.
Testing: Added unit tests to make sure that headers are being freed when appropriate.

Signed-off-by: Jose Nino <[email protected]>
Signed-off-by: JP Simard <[email protected]>
jpsim pushed a commit that referenced this issue Nov 29, 2022
Description: remove unnecessary pragma left as a merge comment in #342
Risk Level: low
Testing: builds in CI

Signed-off-by: Jose Nino <[email protected]>
Signed-off-by: JP Simard <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants