You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: resource-managers/kubernetes/core/src/test/scala/org/apache/spark/deploy/k8s/KubernetesVolumeUtilsSuite.scala
+12Lines changed: 12 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -33,6 +33,18 @@ class KubernetesVolumeUtilsSuite extends SparkFunSuite {
Copy file name to clipboardExpand all lines: resource-managers/kubernetes/core/src/test/scala/org/apache/spark/deploy/k8s/submit/KubernetesDriverBuilderSuite.scala
+33Lines changed: 33 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -169,6 +169,39 @@ class KubernetesDriverBuilderSuite extends SparkFunSuite {
169
169
DRIVER_CMD_STEP_TYPE)
170
170
}
171
171
172
+
test("Apply volumes step if a mount subpath is present.") {
173
+
valvolumeSpec=KubernetesVolumeSpec(
174
+
"volume",
175
+
"/tmp",
176
+
"foo",
177
+
false,
178
+
KubernetesHostPathVolumeConf("/path"))
179
+
valconf=KubernetesConf(
180
+
newSparkConf(false),
181
+
KubernetesDriverSpecificConf(
182
+
JavaMainAppResource(None),
183
+
"test-app",
184
+
"main",
185
+
Seq.empty),
186
+
"prefix",
187
+
"appId",
188
+
Map.empty,
189
+
Map.empty,
190
+
Map.empty,
191
+
Map.empty,
192
+
Map.empty,
193
+
volumeSpec ::Nil,
194
+
hadoopConfSpec =None)
195
+
validateStepTypesApplied(
196
+
builderUnderTest.buildFromFeatures(conf),
197
+
BASIC_STEP_TYPE,
198
+
CREDENTIALS_STEP_TYPE,
199
+
SERVICE_STEP_TYPE,
200
+
LOCAL_DIRS_STEP_TYPE,
201
+
MOUNT_VOLUMES_STEP_TYPE,
202
+
DRIVER_CMD_STEP_TYPE)
203
+
}
204
+
172
205
test("Apply template volume step if executor template is present.") {
0 commit comments