From edc6e94e3e00adf09982eae94020d35f02236707 Mon Sep 17 00:00:00 2001 From: CEL Dev Team Date: Sat, 26 Apr 2025 12:41:46 -0700 Subject: [PATCH] Make changes to file_descriptor_set processing for OSS. PiperOrigin-RevId: 751817540 --- .../tests.textproto | 31 +++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 testing/src/test/resources/policy/protoextension_value_as_input/tests.textproto diff --git a/testing/src/test/resources/policy/protoextension_value_as_input/tests.textproto b/testing/src/test/resources/policy/protoextension_value_as_input/tests.textproto new file mode 100644 index 000000000..455ac4bdc --- /dev/null +++ b/testing/src/test/resources/policy/protoextension_value_as_input/tests.textproto @@ -0,0 +1,31 @@ +# proto-file: google3/third_party/cel/spec/proto/cel/expr/conformance/test/suite.proto +# proto-message: cel.expr.conformance.test.TestSuite + +# The input binding is not used for evaluation, but rather to ensure +# extension registry generation and support for `Any` typed inputs with +# extensions. + +name: "protoextension_value_as_input" +description: "Valid proto extension value as input" +sections { + name: "valid" + description: "Valid proto extension value as input" + tests { + name: "value_extension_input" + input { + key: "spec" + value { + value { + object_value { + [type.googleapis.com/cel.expr.conformance.proto2.TestAllTypes] { + [cel.expr.conformance.proto2.Proto2ExtensionScopedMessage.message_scoped_nested_ext]: {} + } + } + } + } + } + output { + result_expr: "true" + } + } +} \ No newline at end of file