2018-06-08 18:15:24 -04:00
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
|
|
<!--
|
|
|
|
~ 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.
|
|
|
|
-->
|
|
|
|
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
|
|
|
<modelVersion>4.0.0</modelVersion>
|
|
|
|
<parent>
|
|
|
|
<groupId>org.apache.spark</groupId>
|
2018-11-14 19:22:23 -05:00
|
|
|
<artifactId>spark-parent_2.12</artifactId>
|
2018-10-02 11:48:24 -04:00
|
|
|
<version>3.0.0-SNAPSHOT</version>
|
2018-06-08 18:15:24 -04:00
|
|
|
<relativePath>../../../pom.xml</relativePath>
|
|
|
|
</parent>
|
|
|
|
|
2018-11-14 19:22:23 -05:00
|
|
|
<artifactId>spark-kubernetes-integration-tests_2.12</artifactId>
|
2018-06-08 18:15:24 -04:00
|
|
|
<properties>
|
|
|
|
<download-maven-plugin.version>1.3.0</download-maven-plugin.version>
|
|
|
|
<exec-maven-plugin.version>1.4.0</exec-maven-plugin.version>
|
|
|
|
<extraScalaTestArgs></extraScalaTestArgs>
|
2019-02-25 05:56:04 -05:00
|
|
|
<kubernetes-client.version>4.1.2</kubernetes-client.version>
|
2018-06-08 18:15:24 -04:00
|
|
|
<scala-maven-plugin.version>3.2.2</scala-maven-plugin.version>
|
|
|
|
<scalatest-maven-plugin.version>1.0</scalatest-maven-plugin.version>
|
|
|
|
<sbt.project.name>kubernetes-integration-tests</sbt.project.name>
|
2018-11-01 12:33:55 -04:00
|
|
|
|
|
|
|
<!-- Integration Test Configuration Properties -->
|
|
|
|
<!-- Please see README.md in this directory for explanation of these -->
|
|
|
|
<spark.kubernetes.test.sparkTgz></spark.kubernetes.test.sparkTgz>
|
2018-06-08 18:15:24 -04:00
|
|
|
<spark.kubernetes.test.unpackSparkDir>${project.build.directory}/spark-dist-unpacked</spark.kubernetes.test.unpackSparkDir>
|
|
|
|
<spark.kubernetes.test.imageTag>N/A</spark.kubernetes.test.imageTag>
|
|
|
|
<spark.kubernetes.test.imageTagFile>${project.build.directory}/imageTag.txt</spark.kubernetes.test.imageTagFile>
|
|
|
|
<spark.kubernetes.test.deployMode>minikube</spark.kubernetes.test.deployMode>
|
|
|
|
<spark.kubernetes.test.imageRepo>docker.io/kubespark</spark.kubernetes.test.imageRepo>
|
2018-11-01 12:33:55 -04:00
|
|
|
<spark.kubernetes.test.kubeConfigContext></spark.kubernetes.test.kubeConfigContext>
|
|
|
|
<spark.kubernetes.test.master></spark.kubernetes.test.master>
|
|
|
|
<spark.kubernetes.test.namespace></spark.kubernetes.test.namespace>
|
|
|
|
<spark.kubernetes.test.serviceAccountName></spark.kubernetes.test.serviceAccountName>
|
|
|
|
|
2018-06-08 18:15:24 -04:00
|
|
|
<test.exclude.tags></test.exclude.tags>
|
2018-07-05 09:38:26 -04:00
|
|
|
<test.include.tags></test.include.tags>
|
2018-06-08 18:15:24 -04:00
|
|
|
</properties>
|
|
|
|
<packaging>jar</packaging>
|
|
|
|
<name>Spark Project Kubernetes Integration Tests</name>
|
|
|
|
|
|
|
|
<dependencies>
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.apache.spark</groupId>
|
|
|
|
<artifactId>spark-core_${scala.binary.version}</artifactId>
|
|
|
|
<version>${project.version}</version>
|
|
|
|
</dependency>
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.apache.spark</groupId>
|
|
|
|
<artifactId>spark-core_${scala.binary.version}</artifactId>
|
|
|
|
<version>${project.version}</version>
|
|
|
|
<type>test-jar</type>
|
|
|
|
<scope>test</scope>
|
|
|
|
</dependency>
|
|
|
|
<dependency>
|
|
|
|
<groupId>io.fabric8</groupId>
|
|
|
|
<artifactId>kubernetes-client</artifactId>
|
|
|
|
<version>${kubernetes-client.version}</version>
|
|
|
|
</dependency>
|
2018-07-11 21:52:23 -04:00
|
|
|
<dependency>
|
|
|
|
<groupId>org.apache.spark</groupId>
|
|
|
|
<artifactId>spark-tags_${scala.binary.version}</artifactId>
|
|
|
|
<type>test-jar</type>
|
|
|
|
</dependency>
|
2018-06-08 18:15:24 -04:00
|
|
|
</dependencies>
|
|
|
|
|
|
|
|
<build>
|
|
|
|
<plugins>
|
|
|
|
<plugin>
|
|
|
|
<groupId>org.codehaus.mojo</groupId>
|
|
|
|
<artifactId>exec-maven-plugin</artifactId>
|
|
|
|
<version>${exec-maven-plugin.version}</version>
|
|
|
|
<executions>
|
|
|
|
<execution>
|
|
|
|
<id>setup-integration-test-env</id>
|
|
|
|
<phase>pre-integration-test</phase>
|
|
|
|
<goals>
|
|
|
|
<goal>exec</goal>
|
|
|
|
</goals>
|
|
|
|
<configuration>
|
|
|
|
<executable>scripts/setup-integration-test-env.sh</executable>
|
|
|
|
<arguments>
|
|
|
|
<argument>--unpacked-spark-tgz</argument>
|
|
|
|
<argument>${spark.kubernetes.test.unpackSparkDir}</argument>
|
|
|
|
|
|
|
|
<argument>--image-repo</argument>
|
|
|
|
<argument>${spark.kubernetes.test.imageRepo}</argument>
|
|
|
|
|
|
|
|
<argument>--image-tag</argument>
|
|
|
|
<argument>${spark.kubernetes.test.imageTag}</argument>
|
|
|
|
|
|
|
|
<argument>--image-tag-output-file</argument>
|
|
|
|
<argument>${spark.kubernetes.test.imageTagFile}</argument>
|
|
|
|
|
|
|
|
<argument>--deploy-mode</argument>
|
|
|
|
<argument>${spark.kubernetes.test.deployMode}</argument>
|
|
|
|
|
|
|
|
<argument>--spark-tgz</argument>
|
|
|
|
<argument>${spark.kubernetes.test.sparkTgz}</argument>
|
|
|
|
</arguments>
|
|
|
|
</configuration>
|
|
|
|
</execution>
|
|
|
|
</executions>
|
|
|
|
</plugin>
|
2018-07-05 09:38:26 -04:00
|
|
|
|
|
|
|
<plugin>
|
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
|
<artifactId>maven-surefire-plugin</artifactId>
|
|
|
|
<configuration>
|
|
|
|
<skipTests>true</skipTests>
|
|
|
|
</configuration>
|
|
|
|
</plugin>
|
|
|
|
|
2018-06-08 18:15:24 -04:00
|
|
|
<plugin>
|
|
|
|
<!-- Triggers scalatest plugin in the integration-test phase instead of
|
|
|
|
the test phase. -->
|
|
|
|
<groupId>org.scalatest</groupId>
|
|
|
|
<artifactId>scalatest-maven-plugin</artifactId>
|
|
|
|
<version>${scalatest-maven-plugin.version}</version>
|
|
|
|
<configuration>
|
|
|
|
<reportsDirectory>${project.build.directory}/surefire-reports</reportsDirectory>
|
|
|
|
<junitxml>.</junitxml>
|
|
|
|
<filereports>SparkTestSuite.txt</filereports>
|
2019-01-04 16:35:23 -05:00
|
|
|
<argLine>-ea -Xmx4g -XX:ReservedCodeCacheSize=512m ${extraScalaTestArgs}</argLine>
|
2018-06-08 18:15:24 -04:00
|
|
|
<stderr/>
|
|
|
|
<systemProperties>
|
|
|
|
<log4j.configuration>file:src/test/resources/log4j.properties</log4j.configuration>
|
|
|
|
<java.awt.headless>true</java.awt.headless>
|
|
|
|
<spark.kubernetes.test.imageTagFile>${spark.kubernetes.test.imageTagFile}</spark.kubernetes.test.imageTagFile>
|
|
|
|
<spark.kubernetes.test.unpackSparkDir>${spark.kubernetes.test.unpackSparkDir}</spark.kubernetes.test.unpackSparkDir>
|
|
|
|
<spark.kubernetes.test.imageRepo>${spark.kubernetes.test.imageRepo}</spark.kubernetes.test.imageRepo>
|
|
|
|
<spark.kubernetes.test.deployMode>${spark.kubernetes.test.deployMode}</spark.kubernetes.test.deployMode>
|
2018-11-01 12:33:55 -04:00
|
|
|
<spark.kubernetes.test.kubeConfigContext>${spark.kubernetes.test.kubeConfigContext}</spark.kubernetes.test.kubeConfigContext>
|
2018-06-08 18:15:24 -04:00
|
|
|
<spark.kubernetes.test.master>${spark.kubernetes.test.master}</spark.kubernetes.test.master>
|
|
|
|
<spark.kubernetes.test.namespace>${spark.kubernetes.test.namespace}</spark.kubernetes.test.namespace>
|
|
|
|
<spark.kubernetes.test.serviceAccountName>${spark.kubernetes.test.serviceAccountName}</spark.kubernetes.test.serviceAccountName>
|
|
|
|
</systemProperties>
|
|
|
|
<tagsToExclude>${test.exclude.tags}</tagsToExclude>
|
2018-07-05 09:38:26 -04:00
|
|
|
<tagsToInclude>${test.include.tags}</tagsToInclude>
|
2018-06-08 18:15:24 -04:00
|
|
|
</configuration>
|
|
|
|
<executions>
|
|
|
|
<execution>
|
|
|
|
<id>test</id>
|
2018-11-07 16:19:31 -05:00
|
|
|
<phase>none</phase>
|
2018-06-08 18:15:24 -04:00
|
|
|
<goals>
|
|
|
|
<goal>test</goal>
|
|
|
|
</goals>
|
|
|
|
</execution>
|
|
|
|
<execution>
|
|
|
|
<id>integration-test</id>
|
|
|
|
<phase>integration-test</phase>
|
|
|
|
<goals>
|
|
|
|
<goal>test</goal>
|
|
|
|
</goals>
|
|
|
|
</execution>
|
|
|
|
</executions>
|
|
|
|
</plugin>
|
|
|
|
</plugins>
|
|
|
|
|
|
|
|
</build>
|
|
|
|
|
|
|
|
</project>
|