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 1414
1515package dev .cel .conformance .policy ;
1616
17- import com .google .protobuf .ListValue ;
1817import com .google .protobuf .Struct ;
19- import com .google .protobuf .Value ;
2018import dev .cel .bundle .Cel ;
2119import dev .cel .bundle .CelFactory ;
20+ import dev .cel .expr .conformance .proto3 .TestAllTypes ;
2221import dev .cel .runtime .CelFunctionBinding ;
2322import dev .cel .testing .testrunner .CelExpressionSource ;
2423import dev .cel .testing .testrunner .CelTestContext ;
@@ -74,8 +73,9 @@ public void evaluate() throws Throwable {
7473 CelTestContext .newBuilder ()
7574 .setCelExpression (CelExpressionSource .fromSource (policyFile ))
7675 .setCel (CEL )
77- .addMessageTypes (
78- Struct .getDescriptor (), Value .getDescriptor (), ListValue .getDescriptor ());
76+ .addFileTypes (
77+ TestAllTypes .getDescriptor ().getFile (),
78+ Struct .getDescriptor ().getFile ());
7979
8080 Path yamlConfigPath = Paths .get (dirPath , "config.yaml" );
8181 Path textprotoConfigPath = Paths .get (dirPath , "config.textproto" );
You can’t perform that action at this time.
0 commit comments