|
|
|
licenses(["notice"]) # Apache 2
|
|
|
|
|
|
|
|
py_binary(
|
|
|
|
name = "capture2pcap",
|
|
|
|
srcs = ["capture2pcap.py"],
|
|
|
|
licenses = ["notice"], # Apache 2
|
|
|
|
visibility = ["//visibility:public"],
|
|
|
|
deps = [
|
|
|
|
"//envoy/extensions/common/tap/v2alpha:capture_py",
|
|
|
|
],
|
|
|
|
)
|
|
|
|
|
|
|
|
py_test(
|
|
|
|
name = "capture2pcap_test",
|
|
|
|
srcs = ["capture2pcap_test.py"],
|
|
|
|
data = [
|
|
|
|
"data/capture2pcap_h2_ipv4.pb_text",
|
|
|
|
"data/capture2pcap_h2_ipv4.txt",
|
|
|
|
],
|
|
|
|
# Don't run this by default, since we don't want to force local dependency on Wireshark/tshark,
|
|
|
|
# will explicitly invoke in CI.
|
|
|
|
tags = ["manual"],
|
|
|
|
visibility = ["//visibility:public"],
|
|
|
|
deps = [":capture2pcap"],
|
|
|
|
)
|
|
|
|
|
|
|
|
py_binary(
|
|
|
|
name = "generate_listeners",
|
|
|
|
srcs = ["generate_listeners.py"],
|
|
|
|
licenses = ["notice"], # Apache 2
|
|
|
|
visibility = ["//visibility:public"],
|
|
|
|
deps = [
|
|
|
|
"//envoy/api/v2:lds_py",
|
|
|
|
"//envoy/config/filter/network/http_connection_manager/v2:http_connection_manager_py",
|
|
|
|
],
|
|
|
|
)
|
|
|
|
|
|
|
|
py_test(
|
|
|
|
name = "generate_listeners_test",
|
|
|
|
srcs = ["generate_listeners_test.py"],
|
|
|
|
data = [
|
|
|
|
"//examples/service_envoy:http_connection_manager.pb",
|
|
|
|
"//examples/service_envoy:listeners.pb",
|
|
|
|
],
|
|
|
|
visibility = ["//visibility:public"],
|
|
|
|
deps = [":generate_listeners"],
|
|
|
|
)
|