Skip to content

Commit

Permalink
add the possibility to override Spark conf in SparkSpec (#6)
Browse files Browse the repository at this point in the history
  • Loading branch information
marclamy authored Apr 11, 2024
1 parent 0690c90 commit cace2f9
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions test/src/main/scala/com/amadeus/dataio/test/SparkSpec.scala
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ trait SparkSpec extends TestSuite with BeforeAndAfter {
.builder()
.master("local[1]")
.config("spark.ui.enabled", "false")
.config(overrideSparkConf)
.appName(getTestName)
.getOrCreate()
}
Expand All @@ -42,6 +43,12 @@ trait SparkSpec extends TestSuite with BeforeAndAfter {
spark.close()
}

/**
* Override to edit the Spark configuration.
* @return The map of new configuration values.
*/
def overrideSparkConf: Map[String, String] = Map.empty

/**
* @return the test suite's name
*/
Expand Down

0 comments on commit cace2f9

Please sign in to comment.