Skip to content

Commit

Permalink
test: Refactor flood tests into a separate test file (#13556)
Browse files Browse the repository at this point in the history
Signed-off-by: Yan Avlasov <[email protected]>
  • Loading branch information
yanavlasov authored Oct 17, 2020
1 parent 3588759 commit 936a481
Show file tree
Hide file tree
Showing 6 changed files with 1,164 additions and 1,109 deletions.
30 changes: 26 additions & 4 deletions test/integration/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -312,6 +312,30 @@ envoy_cc_test(
],
)

envoy_cc_test(
name = "http2_flood_integration_test",
srcs = [
"http2_flood_integration_test.cc",
],
shard_count = 4,
tags = ["flaky_on_windows"],
deps = [
":autonomous_upstream_lib",
":http_integration_lib",
"//test/common/http/http2:http2_frame",
"//test/integration/filters:backpressure_filter_config_lib",
"//test/integration/filters:set_response_code_filter_config_proto_cc_proto",
"//test/integration/filters:set_response_code_filter_lib",
"//test/integration/filters:test_socket_interface_lib",
"//test/mocks/http:http_mocks",
"//test/test_common:utility_lib",
"@com_google_absl//absl/synchronization",
"@envoy_api//envoy/config/bootstrap/v3:pkg_cc_proto",
"@envoy_api//envoy/config/cluster/v3:pkg_cc_proto",
"@envoy_api//envoy/extensions/filters/network/http_connection_manager/v3:pkg_cc_proto",
],
)

envoy_cc_test(
name = "http2_integration_test",
srcs = [
Expand All @@ -321,21 +345,17 @@ envoy_cc_test(
shard_count = 4,
tags = ["flaky_on_windows"],
deps = [
":autonomous_upstream_lib",
":http_integration_lib",
"//source/common/buffer:buffer_lib",
"//source/common/http:header_map_lib",
"//source/extensions/filters/http/buffer:config",
"//source/extensions/filters/http/health_check:config",
"//test/common/http/http2:http2_frame",
"//test/integration/filters:backpressure_filter_config_lib",
"//test/integration/filters:metadata_stop_all_filter_config_lib",
"//test/integration/filters:request_metadata_filter_config_lib",
"//test/integration/filters:response_metadata_filter_config_lib",
"//test/integration/filters:set_response_code_filter_config_proto_cc_proto",
"//test/integration/filters:set_response_code_filter_lib",
"//test/integration/filters:stop_iteration_and_continue",
"//test/integration/filters:test_socket_interface_lib",
"//test/mocks/http:http_mocks",
"//test/mocks/upstream:retry_priority_factory_mocks",
"//test/mocks/upstream:retry_priority_mocks",
Expand Down Expand Up @@ -501,10 +521,12 @@ envoy_cc_test_library(
":test_host_predicate_lib",
"//include/envoy/event:timer_interface",
"//source/common/common:thread_annotations",
"//source/common/network:socket_option_lib",
"//source/extensions/filters/http/on_demand:config",
"//source/extensions/filters/http/router:config",
"//source/extensions/filters/network/http_connection_manager:config",
"//source/extensions/transport_sockets/tls:context_lib",
"//test/common/http/http2:http2_frame",
"//test/common/upstream:utility_lib",
"//test/integration/filters:add_body_filter_config_lib",
"//test/integration/filters:add_trailers_filter_config_lib",
Expand Down
Loading

0 comments on commit 936a481

Please sign in to comment.