Skip to content

fuzz: Enabled "upgrade" request/response in fuzz test#11541

Merged
asraa merged 2 commits into
envoyproxy:masterfrom
jianwen612:fuzz_mutateResponseHeaders
Jun 11, 2020
Merged

fuzz: Enabled "upgrade" request/response in fuzz test#11541
asraa merged 2 commits into
envoyproxy:masterfrom
jianwen612:fuzz_mutateResponseHeaders

Conversation

@jianwen612
Copy link
Copy Markdown
Contributor

Commit Message:
Additional Description:

Enabled "upgrade" option by adding an PEXPECT_CALL() in conn_manager_impl_fuzz_test.cc.
Covered two functions: mutateRequestHeaders() and mutateResponseHeaders() with above
changes.

Signed-off-by: jianwen jianwendong@google.com

Risk Level: low
Testing: Covered mutateRequestHeaders() and mutateResponseHeaders() functions with above changes.

/cc @asraa
/cc @samkerner

Enabled "upgrade" option by adding an PEXPECT_CALL in conn_manager_impl_fuzz_test.cc.
Covered functions: mutateRequestHeaders() and mutateResponseHeaders() with above
changes.

Signed-off-by: jianwen <jianwendong@google.com>
sqkerner
sqkerner previously approved these changes Jun 10, 2020
}));
EXPECT_CALL(*decoder_filter_, setDecoderFilterCallbacks(_));
EXPECT_CALL(*encoder_filter_, setEncoderFilterCallbacks(_));
EXPECT_CALL(filter_factory_, createUpgradeFilterChain("WebSocket", _, _))
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Looks good to me.

Signed-off-by: jianwen <jianwendong@google.com>
Copy link
Copy Markdown
Contributor

@asraa asraa left a comment

Choose a reason for hiding this comment

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

Thanks for adding the testcase!

@asraa asraa merged commit 79d6466 into envoyproxy:master Jun 11, 2020
yashwant121 pushed a commit to yashwant121/envoy that referenced this pull request Jun 24, 2020
Added test case with "upgrade" request/response in fuzz test. Enabled "upgrade" option by adding an EXPECT_CALL in conn_manager_impl_fuzz_test.cc.
Fuzz test covers mutateRequestHeaders() and mutateResponseHeaders() with above
changes.

Signed-off-by: jianwen <jianwendong@google.com>
Signed-off-by: yashwant121 <yadavyashwant36@gmail.com>
songhu pushed a commit to songhu/envoy that referenced this pull request Jun 25, 2020
Added test case with "upgrade" request/response in fuzz test. Enabled "upgrade" option by adding an EXPECT_CALL in conn_manager_impl_fuzz_test.cc.
Fuzz test covers mutateRequestHeaders() and mutateResponseHeaders() with above
changes.

Signed-off-by: jianwen <jianwendong@google.com>
yashwant121 pushed a commit to yashwant121/envoy that referenced this pull request Jul 24, 2020
Added test case with "upgrade" request/response in fuzz test. Enabled "upgrade" option by adding an EXPECT_CALL in conn_manager_impl_fuzz_test.cc.
Fuzz test covers mutateRequestHeaders() and mutateResponseHeaders() with above
changes.

Signed-off-by: jianwen <jianwendong@google.com>
Signed-off-by: yashwant121 <yadavyashwant36@gmail.com>
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.

3 participants