File tree Expand file tree Collapse file tree
conformance/src/test/java/dev/cel/conformance/policy Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -19,6 +19,7 @@ java_library(
1919 "//testing/testrunner:cel_test_suite_text_proto_parser" ,
2020 "//testing/testrunner:cel_test_suite_yaml_parser" ,
2121 "//testing/testrunner:test_runner_library" ,
22+ "@cel_spec//proto/cel/expr/conformance/proto3:test_all_types_java_proto" ,
2223 "@maven//:com_google_guava_guava" ,
2324 "@maven//:com_google_protobuf_protobuf_java" ,
2425 "@maven//:junit_junit" ,
Original file line number Diff line number Diff line change 1919import com .google .protobuf .Value ;
2020import dev .cel .bundle .Cel ;
2121import dev .cel .bundle .CelFactory ;
22+ import dev .cel .expr .conformance .proto3 .TestAllTypes ;
2223import dev .cel .runtime .CelFunctionBinding ;
2324import dev .cel .testing .testrunner .CelExpressionSource ;
2425import dev .cel .testing .testrunner .CelTestContext ;
@@ -74,8 +75,11 @@ public void evaluate() throws Throwable {
7475 CelTestContext .newBuilder ()
7576 .setCelExpression (CelExpressionSource .fromSource (policyFile ))
7677 .setCel (CEL )
78+ .addFileTypes (TestAllTypes .getDescriptor ().getFile ())
7779 .addMessageTypes (
78- Struct .getDescriptor (), Value .getDescriptor (), ListValue .getDescriptor ());
80+ Struct .getDescriptor (),
81+ Value .getDescriptor (),
82+ ListValue .getDescriptor ());
7983
8084 Path yamlConfigPath = Paths .get (dirPath , "config.yaml" );
8185 Path textprotoConfigPath = Paths .get (dirPath , "config.textproto" );
You can’t perform that action at this time.
0 commit comments