-
- Downloads
[SPARK-7224] added mock repository generator for --packages tests
This patch contains an `IvyTestUtils` file, which dynamically generates jars and pom files to test the `--packages` feature without having to rely on the internet, and Maven Central. cc pwendell I know that there existed Util functions to create Jars and stuff already, but they didn't really serve my purposes as they appended random prefixes that was breaking things. I also added the local repository tests. Notice that they work without passing the `repo` to `resolveMavenCoordinates`. Author: Burak Yavuz <brkyvz@gmail.com> Closes #5790 from brkyvz/maven-utils and squashes the following commits: 3ec79b7 [Burak Yavuz] addressed comments v0.2 a39151b [Burak Yavuz] address comments v0.1 172dfef [Burak Yavuz] use Ivy format 7476d06 [Burak Yavuz] added mock repository generator
Showing
- core/src/main/scala/org/apache/spark/TestUtils.scala 18 additions, 9 deletionscore/src/main/scala/org/apache/spark/TestUtils.scala
- core/src/main/scala/org/apache/spark/deploy/SparkSubmit.scala 69 additions, 60 deletions.../src/main/scala/org/apache/spark/deploy/SparkSubmit.scala
- core/src/test/scala/org/apache/spark/deploy/IvyTestUtils.scala 262 additions, 0 deletions...src/test/scala/org/apache/spark/deploy/IvyTestUtils.scala
- core/src/test/scala/org/apache/spark/deploy/SparkSubmitSuite.scala 15 additions, 10 deletions...test/scala/org/apache/spark/deploy/SparkSubmitSuite.scala
- core/src/test/scala/org/apache/spark/deploy/SparkSubmitUtilsSuite.scala 39 additions, 18 deletions...scala/org/apache/spark/deploy/SparkSubmitUtilsSuite.scala
Loading
Please register or sign in to comment