Skip to content
Closed
Show file tree
Hide file tree
Changes from 5 commits
Commits
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
8 changes: 4 additions & 4 deletions bazel/repository_locations.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -89,10 +89,10 @@ REPOSITORY_LOCATIONS = dict(
urls = ["https://github.com/gabime/spdlog/archive/v1.3.1.tar.gz"],
),
com_github_google_libprotobuf_mutator = dict(
sha256 = "f45c3ad82376d891cd0bcaa7165e83efd90e0014b00aebf0cbaf07eb05a1d3f9",
strip_prefix = "libprotobuf-mutator-d1fe8a7d8ae18f3d454f055eba5213c291986f21",
# 2019-07-10
urls = ["https://github.com/google/libprotobuf-mutator/archive/d1fe8a7d8ae18f3d454f055eba5213c291986f21.tar.gz"],
sha256 = "54597f640c0ab5e5d783d2f3d3cfe8ad6da999ef1a194d89c2c5ab89a1fd8e13",
strip_prefix = "libprotobuf-mutator-dd89da92b59b1714bab6e2a135093948a1cf1c6a",
# 2019-10-08
urls = ["https://github.com/google/libprotobuf-mutator/archive/dd89da92b59b1714bab6e2a135093948a1cf1c6a.tar.gz"],
),
com_github_gperftools_gperftools = dict(
# TODO(cmluciano): Bump to release 2.8
Expand Down
1 change: 1 addition & 0 deletions source/extensions/filters/common/expr/context.cc
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,7 @@ absl::optional<CelValue> PeerWrapper::operator[](CelValue key) const {
if (value == Address) {
if (local_) {
return CelValue::CreateString(info_.downstreamLocalAddress()->asStringView());

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.

extra new line

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.

Done, thank you!

} else {
return CelValue::CreateString(info_.downstreamRemoteAddress()->asStringView());
}
Expand Down
24 changes: 24 additions & 0 deletions test/extensions/filters/common/expr/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@ licenses(["notice"]) # Apache 2

load(
"//bazel:envoy_build_system.bzl",
"envoy_cc_fuzz_test",
"envoy_package",
"envoy_proto_library",
)
load(
"//test/extensions:extensions_build_system.bzl",
Expand All @@ -23,3 +25,25 @@ envoy_extension_cc_test(
"//test/test_common:utility_lib",
],
)

envoy_proto_library(
name = "evaluator_fuzz_proto",
srcs = ["evaluator_fuzz.proto"],
deps = [
"//test/fuzz:common_proto",
"@com_google_googleapis//google/api/expr/v1alpha1:syntax_proto",
],
)

envoy_cc_fuzz_test(
name = "evaluator_fuzz_test",
srcs = ["evaluator_fuzz_test.cc"],
corpus = ":evaluator_corpus",
deps = [
":evaluator_fuzz_proto_cc_proto",
"//source/extensions/filters/common/expr:evaluator_lib",
"//test/common/stream_info:test_util",
"//test/fuzz:utility_lib",
"//test/test_common: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.

26 changes: 26 additions & 0 deletions test/extensions/filters/common/expr/evaluator_corpus/example

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

31 changes: 31 additions & 0 deletions test/extensions/filters/common/expr/evaluator_corpus/example1

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

Loading