Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix test
  • Loading branch information
mccheah committed May 10, 2018
commit aebdb6885237163b55a90fb739bcbbdcb00d7890
Original file line number Diff line number Diff line change
Expand Up @@ -54,14 +54,14 @@ class LocalDirsFeatureStepSuite extends SparkFunSuite with BeforeAndAfter {
assert(configuredPod.pod.getSpec.getVolumes.size === 1)
assert(configuredPod.pod.getSpec.getVolumes.get(0) ===
new VolumeBuilder()
.withName(s"spark-local-dir-1-default-local-dir")
.withName(s"spark-local-dir-1")
.withNewEmptyDir()
.endEmptyDir()
.build())
assert(configuredPod.container.getVolumeMounts.size === 1)
assert(configuredPod.container.getVolumeMounts.get(0) ===
new VolumeMountBuilder()
.withName(s"spark-local-dir-1-default-local-dir")
.withName(s"spark-local-dir-1")
.withMountPath(defaultLocalDir)
.build())
assert(configuredPod.container.getEnv.size === 1)
Expand All @@ -80,25 +80,25 @@ class LocalDirsFeatureStepSuite extends SparkFunSuite with BeforeAndAfter {
assert(configuredPod.pod.getSpec.getVolumes.size === 2)
assert(configuredPod.pod.getSpec.getVolumes.get(0) ===
new VolumeBuilder()
.withName(s"spark-local-dir-1-my-local-dir-1")
.withName(s"spark-local-dir-1")
.withNewEmptyDir()
.endEmptyDir()
.build())
assert(configuredPod.pod.getSpec.getVolumes.get(1) ===
new VolumeBuilder()
.withName(s"spark-local-dir-2-my-local-dir-2")
.withName(s"spark-local-dir-2")
.withNewEmptyDir()
.endEmptyDir()
.build())
assert(configuredPod.container.getVolumeMounts.size === 2)
assert(configuredPod.container.getVolumeMounts.get(0) ===
new VolumeMountBuilder()
.withName(s"spark-local-dir-1-my-local-dir-1")
.withName(s"spark-local-dir-1")
.withMountPath("/var/data/my-local-dir-1")
.build())
assert(configuredPod.container.getVolumeMounts.get(1) ===
new VolumeMountBuilder()
.withName(s"spark-local-dir-2-my-local-dir-2")
.withName(s"spark-local-dir-2")
.withMountPath("/var/data/my-local-dir-2")
.build())
assert(configuredPod.container.getEnv.size === 1)
Expand Down