diff --git a/common/tags/src/test/java/org/apache/spark/tags/ExtendedConnectTest.java b/common/tags/src/test/java/org/apache/spark/tags/ExtendedConnectTest.java new file mode 100644 index 0000000000000..0c88a9d42bf02 --- /dev/null +++ b/common/tags/src/test/java/org/apache/spark/tags/ExtendedConnectTest.java @@ -0,0 +1,30 @@ +/* + * 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. + */ + +package org.apache.spark.tags; + +import org.scalatest.TagAnnotation; + +import java.lang.annotation.ElementType; +import java.lang.annotation.Retention; +import java.lang.annotation.RetentionPolicy; +import java.lang.annotation.Target; + +@TagAnnotation +@Retention(RetentionPolicy.RUNTIME) +@Target({ElementType.METHOD, ElementType.TYPE}) +public @interface ExtendedConnectTest { } diff --git a/connector/connect/client/jvm/pom.xml b/connector/connect/client/jvm/pom.xml index cb1a7fcc02d3a..fbc37d4d07e0f 100644 --- a/connector/connect/client/jvm/pom.xml +++ b/connector/connect/client/jvm/pom.xml @@ -75,6 +75,12 @@ mockito-core test + + org.apache.spark + spark-tags_${scala.binary.version} + test-jar + test + target/scala-${scala.binary.version}/test-classes diff --git a/connector/connect/client/jvm/src/test/scala/org/apache/spark/sql/ClientE2ETestSuite.scala b/connector/connect/client/jvm/src/test/scala/org/apache/spark/sql/ClientE2ETestSuite.scala index e31f121ca10ab..4b279e893155d 100644 --- a/connector/connect/client/jvm/src/test/scala/org/apache/spark/sql/ClientE2ETestSuite.scala +++ b/connector/connect/client/jvm/src/test/scala/org/apache/spark/sql/ClientE2ETestSuite.scala @@ -18,7 +18,9 @@ package org.apache.spark.sql import org.apache.spark.sql.connect.client.util.RemoteSparkSession import org.apache.spark.sql.types.{StringType, StructField, StructType} +import org.apache.spark.tags.ExtendedConnectTest +@ExtendedConnectTest class ClientE2ETestSuite extends RemoteSparkSession { // Spark Result