diff --git a/proto/cel/expr/conformance/test/env/BUILD.bazel b/proto/cel/expr/conformance/test/env/BUILD.bazel deleted file mode 100644 index 2be21d4..0000000 --- a/proto/cel/expr/conformance/test/env/BUILD.bazel +++ /dev/null @@ -1,48 +0,0 @@ -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -load("@com_google_protobuf//bazel:cc_proto_library.bzl", "cc_proto_library") -load("@com_google_protobuf//bazel:java_proto_library.bzl", "java_proto_library") -load("@com_google_protobuf//bazel:proto_library.bzl", "proto_library") -load("@com_google_protobuf//bazel:py_proto_library.bzl", "py_proto_library") - -package( - default_applicable_licenses = ["//:license"], - default_visibility = ["//visibility:public"], - licenses = ["notice"], # Apache 2.0 -) - -proto_library( - name = "suite_proto", - srcs = ["suite.proto"], - strip_import_prefix = "/proto", - deps = [ - "@cel_spec//proto/cel/expr/conformance:env_config_proto", - ], -) - -cc_proto_library( - name = "suite_cc_proto", - deps = [":suite_proto"], -) - -java_proto_library( - name = "suite_java_proto", - deps = [":suite_proto"], -) - -py_proto_library( - name = "suite_py_pb2", - deps = [":suite_proto"], -) diff --git a/proto/cel/expr/conformance/test/env/suite.proto b/proto/cel/expr/conformance/test/env/suite.proto deleted file mode 100644 index 27e06de..0000000 --- a/proto/cel/expr/conformance/test/env/suite.proto +++ /dev/null @@ -1,82 +0,0 @@ -// Copyright 2026 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// https://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package cel.expr.conformance.test.env; - -import "cel/expr/conformance/env_config.proto"; - -option cc_enable_arenas = true; -option go_package = "cel.dev/expr/conformance/test/env"; -option java_multiple_files = true; -option java_outer_classname = "SuiteProto"; -option java_package = "dev.cel.expr.conformance.test.env"; - -// A test suite is a collection of tests designed to evaluate the correctness of -// a CEL environment. -message TestSuite { - // The name of the test suite. - string name = 1; - - // Description of the test suite. - string description = 2; - - // Test sections of the test suite. - // Each section represents a behavior to be tested. - repeated TestSection sections = 3; -} - -// A collection of related test cases. -message TestSection { - // Name of the test section. - string name = 1; - - // Description of the test section. - string description = 2; - - // Test cases of the test section. - // Each test case represents a test scenario. - repeated TestCase tests = 3; -} - -// A test case which validates the behavior of a CEL environment. -message TestCase { - // Name of the test case. - string name = 1; - - // A description of the test. - string description = 2; - - oneof env_config { - // The environment to be used for compilation and evaluation of the CEL - // expression for the current test case, specified as a YAML string. - string env_yaml = 3; - - // The environment to be used for compilation and evaluation of the CEL - // expression for the current test case. - cel.expr.conformance.Environment env = 4; - } - - TestOutput output = 5; -} - -// Expected result of the test case. -message TestOutput { - // The expected exported environment YAML of the test case. - string exported_env_yaml = 1; - - // Expected error substrings. Success if all expected errors match. - repeated string errors = 4; -} diff --git a/tests/env/BUILD.bazel b/tests/env/BUILD.bazel deleted file mode 100644 index 8629406..0000000 --- a/tests/env/BUILD.bazel +++ /dev/null @@ -1,26 +0,0 @@ -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -package( - default_applicable_licenses = ["//:license"], - default_visibility = ["//visibility:public"], - licenses = ["notice"], # Apache 2.0 -) - -exports_files(glob(["testdata/*.textproto"])) - -filegroup( - name = "env_testdata", - srcs = glob(["testdata/*.textproto"]), -) diff --git a/tests/env/testdata/type_signatures.textproto b/tests/env/testdata/type_signatures.textproto deleted file mode 100644 index e4add7c..0000000 --- a/tests/env/testdata/type_signatures.textproto +++ /dev/null @@ -1,77 +0,0 @@ -# proto-file: ../../../proto/cel/expr/conformance/test/env/suite.proto -# proto-message: cel.expr.conformance.test.env.TestSuite - -name: "type_signatures" -description: "Conformance tests for canonical CEL type signatures and aliases." - -sections { - name: "primitives" - description: "Canonical primitive types and aliases." - - tests { - name: "bool" - description: "Canonical bool type." - env_yaml: - "variables:\n" - " - name: x\n" - " type: bool\n" - output { - exported_env_yaml: - "variables:\n" - " - name: x\n" - " type: bool\n" - } - } -} - -sections { - name: "timestamp" - description: "Canonical timestamp type and protobuf alias." - - tests { - name: "timestamp" - description: "Canonical timestamp type." - env_yaml: - "variables:\n" - " - name: x\n" - " type: timestamp\n" - output { - exported_env_yaml: - "variables:\n" - " - name: x\n" - " type: timestamp\n" - } - } - - tests { - name: "timestamp_alias" - description: "Alias google.protobuf.Timestamp normalizes to timestamp." - env_yaml: - "variables:\n" - " - name: x\n" - " type: google.protobuf.Timestamp\n" - output { - exported_env_yaml: - "variables:\n" - " - name: x\n" - " type: timestamp\n" - } - } -} - -sections { - name: "errors" - description: "Invalid type signatures." - - tests { - name: "unterminated_map" - description: "Malformed map type signature missing value type and closing bracket." - env_yaml: - "variables:\n" - " - name: x\n" - " type: \"map