-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add configurable spark configuration (#3)
* feat: add configurable spark configuration * fix: scala formatting
- Loading branch information
Showing
5 changed files
with
35 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
target/ | ||
.bsp | ||
.idea/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 17 additions & 0 deletions
17
src/test/scala/com/bedrockstreaming/data/sparktest/SparkTestSupportSpec.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
package com.bedrockstreaming.data.sparktest | ||
|
||
import org.scalatest.flatspec.AnyFlatSpec | ||
import org.scalatest.matchers.should.Matchers | ||
|
||
class SparkTestSupportSpec extends AnyFlatSpec with Matchers with SparkTestSupport { | ||
|
||
override lazy val additionalSparkConfiguration: Map[String, String] = | ||
Map("spark.test.toto" -> "false", "spark.test.titi" -> "0") | ||
|
||
"spark" should "possess passed additional configuration" in { | ||
val sparkConf = spark.conf.getAll | ||
sparkConf.contains("spark.test.toto") shouldBe true | ||
sparkConf.contains("spark.test.titi") shouldBe true | ||
sparkConf.contains("spark.test.tata") shouldBe false | ||
} | ||
} |