From 21899d37c3a1e0c3211ae7dd74c56830ec4d0103 Mon Sep 17 00:00:00 2001 From: "Laszlo Boszormenyi (GCS)" Date: Fri, 24 Sep 2021 16:18:04 +0100 Subject: [PATCH] put back files used for testing Last-Update: 2019-10-23 Needs for testing and while present up to 0.12.0 and in Git, missed from the source of 0.13.0 release. Gbp-Pq: Name add_missing_test_files.patch --- .../test/ConflictNamespaceServiceTest.thrift | 25 +++++++++++++++ lib/php/test/TestValidators.thrift | 31 +++++++++++++++++++ 2 files changed, 56 insertions(+) create mode 100644 lib/go/test/ConflictNamespaceServiceTest.thrift create mode 100644 lib/php/test/TestValidators.thrift diff --git a/lib/go/test/ConflictNamespaceServiceTest.thrift b/lib/go/test/ConflictNamespaceServiceTest.thrift new file mode 100644 index 0000000..aade3d7 --- /dev/null +++ b/lib/go/test/ConflictNamespaceServiceTest.thrift @@ -0,0 +1,25 @@ +# +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you 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 +# +# http://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. +# +namespace go conflict.context + +include "ConflictNamespaceTestD.thrift" + +service ConflictService { + ConflictNamespaceTestD.ThingD thingFunc() +} diff --git a/lib/php/test/TestValidators.thrift b/lib/php/test/TestValidators.thrift new file mode 100644 index 0000000..9c38d92 --- /dev/null +++ b/lib/php/test/TestValidators.thrift @@ -0,0 +1,31 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you 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 + * + * http://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. + */ + +namespace php TestValidators + +include "../../../test/ThriftTest.thrift" + +union UnionOfStrings { + 1: string aa; + 2: string bb; +} + +service TestService { + void test() throws(1: ThriftTest.Xception xception); +} -- 2.30.2