Skip to content

Commit d08c424

Browse files
l46kokcopybara-github
authored andcommitted
Internal Changes
PiperOrigin-RevId: 910276432
1 parent fc24bfd commit d08c424

2 files changed

Lines changed: 5 additions & 4 deletions

File tree

conformance/src/test/java/dev/cel/conformance/policy/BUILD.bazel

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff 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",

conformance/src/test/java/dev/cel/conformance/policy/PolicyConformanceTest.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,10 @@
1414

1515
package dev.cel.conformance.policy;
1616

17-
import com.google.protobuf.ListValue;
1817
import com.google.protobuf.Struct;
19-
import com.google.protobuf.Value;
2018
import dev.cel.bundle.Cel;
2119
import dev.cel.bundle.CelFactory;
20+
import dev.cel.expr.conformance.proto3.TestAllTypes;
2221
import dev.cel.runtime.CelFunctionBinding;
2322
import dev.cel.testing.testrunner.CelExpressionSource;
2423
import 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");

0 commit comments

Comments
 (0)