Skip to content

Commit 22ea7d0

Browse files
authored
Added integration test for CLI multiple spaces bug (apache#197)
* Added integration test for CLI multiple spaces bug. * Removed the extra 'args_str' parameter - it's not needed.
1 parent 17e2483 commit 22ea7d0

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

tests/test_spark.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -318,6 +318,17 @@ def test_secrets():
318318
LOGGER.warn("Error when deleting secret, {}".format(r.content))
319319

320320

321+
@pytest.mark.sanity
322+
@pytest.mark.multspaces
323+
def test_cli_multiple_spaces():
324+
utils.run_tests(app_url=SPARK_EXAMPLES,
325+
app_args="30",
326+
expected_output="Pi is roughly 3",
327+
app_name="/spark",
328+
args=["--conf ", "spark.cores.max=2",
329+
" --class ", "org.apache.spark.examples.SparkPi"])
330+
331+
321332
def _run_janitor(service_name):
322333
janitor_cmd = (
323334
'docker run mesosphere/janitor /janitor.py '

0 commit comments

Comments
 (0)