diff --git a/testing/src/test/resources/expressions/BUILD.bazel b/testing/src/test/resources/expressions/BUILD.bazel new file mode 100644 index 000000000..3d3415718 --- /dev/null +++ b/testing/src/test/resources/expressions/BUILD.bazel @@ -0,0 +1,16 @@ +package( + default_applicable_licenses = [ + "//:license", + ], + default_testonly = True, + default_visibility = [ + "//testing:__pkg__", + ], +) + +exports_files( + srcs = glob([ + "**/*.cel", + "**/*.textproto", + ]), +) diff --git a/testing/src/test/resources/expressions/simple_test_case/simple_expression.cel b/testing/src/test/resources/expressions/simple_test_case/simple_expression.cel new file mode 100644 index 000000000..e120ebc26 --- /dev/null +++ b/testing/src/test/resources/expressions/simple_test_case/simple_expression.cel @@ -0,0 +1 @@ +2 + 2 == 4 \ No newline at end of file diff --git a/testing/src/test/resources/expressions/simple_test_case/tests.textproto b/testing/src/test/resources/expressions/simple_test_case/tests.textproto new file mode 100644 index 000000000..2a431d62f --- /dev/null +++ b/testing/src/test/resources/expressions/simple_test_case/tests.textproto @@ -0,0 +1,18 @@ +# proto-file: google3/third_party/cel/spec/proto/cel/expr/conformance/test/suite.proto +# proto-message: cel.expr.conformance.test.TestSuite + +name: "expr_value_output_tests" +description: "Value as expected output" +sections { + name: "basic value" + description: "Basic value" + tests { + name: "basic value test" + description: "Basic value test" + output { + result_value { + bool_value: true + } + } + } +} \ No newline at end of file