Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
91 commits
Select commit Hold shift + click to select a range
60b15e4
added generic freamework for testing filters.
jianwen612 Jun 26, 2020
a9d4a1c
added code for covering ext_authz filter
jianwen612 Jun 30, 2020
69d7434
restore the log output in ext_authz implementation.
jianwen612 Jun 30, 2020
a6c027c
fixed style problem
jianwen612 Jun 30, 2020
fea6e32
fixed style problem
jianwen612 Jun 30, 2020
c684406
added comments
jianwen612 Jul 1, 2020
3b3933c
added ststem time control for local_rate_limit
jianwen612 Jul 7, 2020
eb9fbe3
enabled three filters coverage
jianwen612 Jul 7, 2020
5cfae90
added support for ext_authz response
jianwen612 Jul 8, 2020
24a2f90
added coverage for tcp_proxy and client_ssl_auth. Increased the coverage
jianwen612 Jul 8, 2020
fbf2e68
removed test for tcp_proxy filter
jianwen612 Jul 10, 2020
03da8ab
Merge remote-tracking branch 'upstream/master' into redis_generic_fuzzer
jianwen612 Jul 10, 2020
51118cc
fix bazel style
jianwen612 Jul 10, 2020
258ffec
fixed style
jianwen612 Jul 10, 2020
6babdfc
found issues in tcp_proxy and direct_response. added test cases for the
jianwen612 Jul 13, 2020
ce88641
Merge remote-tracking branch 'upstream/master' into redis_generic_fuzzer
jianwen612 Jul 13, 2020
52d4aad
replace raw string names with names from factory
jianwen612 Jul 13, 2020
9dd4b9f
added test cases for direct response and sni_cluster
jianwen612 Jul 13, 2020
c7a93d4
cleaned the code
jianwen612 Jul 14, 2020
9c8da48
Merge remote-tracking branch 'upstream/master' into redis_generic_fuzzer
jianwen612 Jul 14, 2020
355b898
deleted some useless comments
jianwen612 Jul 14, 2020
66a63db
removed filters with known issues from the fuzzer
jianwen612 Jul 14, 2020
9657675
removed unnecessary corpus
jianwen612 Jul 14, 2020
c9d7b0f
fix the style
jianwen612 Jul 14, 2020
b6fd5d6
removed unsupported test cases
jianwen612 Jul 14, 2020
713f2df
removed unnecessary comments
jianwen612 Jul 14, 2020
ccab863
removed the empty destructor of fakeFactoryContext
jianwen612 Jul 14, 2020
95d62b8
fixed naming problems and removed the constructor of fake class
jianwen612 Jul 15, 2020
f89f312
start working on http_connection_manager and solved one potential
jianwen612 Jul 15, 2020
ad4fa21
fixed style problems
jianwen612 Jul 15, 2020
f1ced93
modified ON_CALL to EXPECT_CALL.WillOnce for some unique_ptr.
jianwen612 Jul 15, 2020
655b660
run fix code style
jianwen612 Jul 15, 2020
2aedc6e
added HCM filter and SDFP filter
jianwen612 Jul 16, 2020
fe23bab
fixed typos and added TODOs
jianwen612 Jul 16, 2020
994c156
fixed a typo
jianwen612 Jul 16, 2020
8616371
separate the fake class definition and the per_filter processing in
jianwen612 Jul 16, 2020
abca561
added comments and assert()
jianwen612 Jul 16, 2020
5b81176
fix style
jianwen612 Jul 16, 2020
409b092
fixed the proto definition on
jianwen612 Jul 20, 2020
8da1a75
run proto fix after modification in route.proto
jianwen612 Jul 20, 2020
4bea026
Merge remote-tracking branch 'upstream/master' into redis_generic_fuzzer
jianwen612 Jul 20, 2020
d22a7fb
added comment on seconds_in_one_day_
jianwen612 Jul 20, 2020
2e36c25
added test cases
jianwen612 Jul 20, 2020
d503594
Merge remote-tracking branch 'upstream/master' into http_connection_m…
jianwen612 Jul 20, 2020
9eaf826
trying to add valid filters
jianwen612 Jul 20, 2020
89eac21
Merge branch 'redis_generic_fuzzer' into http_connection_manager_generic
jianwen612 Jul 20, 2020
b3c389f
added test case for thrift proxy and added deps
jianwen612 Jul 21, 2020
79ce3e5
Merge remote-tracking branch 'upstream/master' into redis_generic_fuzzer
jianwen612 Jul 21, 2020
b39b315
added comment and log
jianwen612 Jul 21, 2020
7ac7658
refined the test cases
jianwen612 Jul 21, 2020
2b6af9d
added dict
jianwen612 Jul 21, 2020
7f54700
Merge branch 'redis_generic_fuzzer' into http_connection_manager_generic
jianwen612 Jul 21, 2020
ba00305
added dict to BUILD
jianwen612 Jul 21, 2020
8d0c52b
added support for rocketmq_proxy
jianwen612 Jul 22, 2020
1341675
refined test cases for kafka and rocketmq
jianwen612 Jul 22, 2020
e095de3
added support for RateLimit and a test case for it.
jianwen612 Jul 22, 2020
8a92cd0
renamed the filter fuzzer to readfilter fuzzer
jianwen612 Jul 22, 2020
44358da
fixed code style
jianwen612 Jul 22, 2020
e17c103
merged generic fuzzer(rename)
jianwen612 Jul 22, 2020
7e6e148
added rbac
jianwen612 Jul 23, 2020
2ffa96f
fix nits
jianwen612 Jul 23, 2020
28b23d2
fixed style
jianwen612 Jul 23, 2020
51f4e0b
fix style
jianwen612 Jul 23, 2020
c119343
Merge branch 'redis_generic_fuzzer' into http_connection_manager_generic
jianwen612 Jul 23, 2020
f34bcc6
removed several test cases
jianwen612 Jul 23, 2020
ffe8fc0
removed several test cases
jianwen612 Jul 23, 2020
d1d03a1
adde comments
jianwen612 Jul 24, 2020
042ee99
added writefilter fuzzer and a crash testcase for zookeeperproxy
jianwen612 Jul 27, 2020
6770c7b
covered all the filters
jianwen612 Jul 28, 2020
8a7d094
added a comment for postgres_proxy
jianwen612 Jul 29, 2020
7928d23
fixed style
jianwen612 Jul 29, 2020
4431112
fixed TODO name
jianwen612 Jul 29, 2020
7b1cd9b
Merge remote-tracking branch 'upstream/master' into writefilter_fuzz
jianwen612 Jul 29, 2020
4bb5dd2
removed unrelevant changes
jianwen612 Jul 29, 2020
09f031a
fixed proto
jianwen612 Jul 29, 2020
df6d54e
restore the changes
jianwen612 Jul 29, 2020
b31f553
trying to add coverage for mongodb
jianwen612 Jul 30, 2020
7d52110
fixed style and removed cout
jianwen612 Aug 3, 2020
7544234
Merge remote-tracking branch 'upstream/master' into writefilter_fuzz
jianwen612 Aug 3, 2020
3fba602
added time source
jianwen612 Aug 3, 2020
4841b65
added a test case for mongo, fixed style problem
jianwen612 Aug 4, 2020
7ebb945
fixed a spelling problem
jianwen612 Aug 4, 2020
8c965a2
Merge remote-tracking branch 'upstream/master' into writefilter_fuzz
jianwen612 Aug 4, 2020
8739130
removed the test case for postgres_proxy
jianwen612 Aug 4, 2020
997d8c8
Merge remote-tracking branch 'upstream/master' into writefilter_fuzz
jianwen612 Aug 4, 2020
1bef133
added new lines and made the comment clearer
jianwen612 Aug 4, 2020
5d2216a
Merge remote-tracking branch 'upstream/master' into writefilter_fuzz
jianwen612 Aug 6, 2020
6510166
fixed a spelling problem
jianwen612 Aug 6, 2020
36129ca
removed a hardcoded debug code, used debug log in writefilter fuzzer.
jianwen612 Aug 6, 2020
46c0c37
Merge remote-tracking branch 'upstream/master' into writefilter_fuzz
jianwen612 Aug 6, 2020
b85d48e
removed unnecessary BUILD deps.
jianwen612 Aug 6, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
44 changes: 44 additions & 0 deletions test/extensions/filters/network/common/fuzz/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,15 @@ envoy_proto_library(
],
)

envoy_proto_library(
name = "network_writefilter_fuzz_proto",
srcs = ["network_writefilter_fuzz.proto"],
deps = [
"//test/fuzz:common_proto",
"@envoy_api//envoy/config/listener/v3:pkg",
],
)

envoy_cc_test_library(
name = "uber_readfilter_lib",
srcs = [
Expand Down Expand Up @@ -59,3 +68,38 @@ envoy_cc_fuzz_test(
"//test/config:utility_lib",
] + envoy_all_network_filters(),
)

envoy_cc_test_library(
name = "uber_writefilter_lib",
srcs = [
"uber_per_writefilter.cc",
"uber_writefilter.cc",
],
hdrs = ["uber_writefilter.h"],
deps = [
":network_writefilter_fuzz_proto_cc_proto",
"//source/common/config:utility_lib",
"//source/extensions/filters/network:well_known_names",
"//source/extensions/filters/network/common:utility_lib",
"//test/extensions/filters/network/common/fuzz/utils:network_filter_fuzzer_fakes_lib",
"//test/fuzz:utility_lib",
"//test/mocks/network:network_mocks",
],
)

envoy_cc_fuzz_test(
name = "network_writefilter_fuzz_test",
srcs = ["network_writefilter_fuzz_test.cc"],
corpus = "network_writefilter_corpus",
# All Envoy network filters must be linked to the test in order for the fuzzer to pick

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.

Are the deps below added instead of envoy_all_network_filters to exclude postgres?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Are the deps below added instead of envoy_all_network_filters to exclude postgres?

envoy_all_network_filters includes 20 filters and only 5 of them are WriteFilters. And yes, I exclude postgres here. But another reason is to exclude all those ReadFilters to reduce linking time.

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.

Sounds good for now -- I just wonder if somoene adds a write filter it may get missed.

# these up via the NamedNetworkFilterConfigFactory.
deps = [
":uber_writefilter_lib",
"//source/common/config:utility_lib",
"//source/extensions/filters/network/kafka:kafka_broker_config_lib",
"//source/extensions/filters/network/mongo_proxy:config",
"//source/extensions/filters/network/mysql_proxy:config",
"//source/extensions/filters/network/zookeeper_proxy:config",
"//test/config:utility_lib",
],
)

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading