bazel: switch to native proto_library/cc_proto_library. (#201)
This PR follows thru on https://github.com/envoyproxy/envoy/issues/1873 on the data-plane-api side. Also, update the Python validation script and added a test to ensure this is captured in CI to avoid future bit rot. Signed-off-by: Harvey Tuch <htuch@google.com>pull/189/merge
parent
05d16fe66d
commit
d498884402
12 changed files with 118 additions and 93 deletions
@ -0,0 +1,4 @@ |
||||
exports_files([ |
||||
"http_connection_manager.pb", |
||||
"listeners.pb", |
||||
]) |
@ -1,16 +1,11 @@ |
||||
listeners { |
||||
address { |
||||
named_address { |
||||
address { |
||||
socket_address { |
||||
protocol: TCP |
||||
port { |
||||
value: 80 |
||||
port_value: 80 |
||||
} |
||||
} |
||||
} |
||||
filter_chains { |
||||
filter_chain { |
||||
type: READ |
||||
} |
||||
filter_chains { |
||||
filters { |
||||
name: "http_connection_manager" |
||||
} |
||||
} |
||||
} |
||||
|
@ -0,0 +1,8 @@ |
||||
"""Tests for generate_listeners.""" |
||||
|
||||
import generate_listeners |
||||
|
||||
if __name__ == "__main__": |
||||
generate_listeners.GenerateListeners( |
||||
"examples/service_envoy/listeners.pb", "/dev/stdout", "/dev/stdout", |
||||
iter(["examples/service_envoy/http_connection_manager.pb"])) |
Loading…
Reference in new issue