mirror of https://github.com/databricks/cli.git
## Changes 1. Refactored `TestSparkJarTaskDeployAndRunOnVolumes` and `TestSparkJarTaskDeployAndRunOnWorkspace` to use a table-driven approach for better organization of similar tests 2. Implemented `testutil.HasJDK()` to replace `testutil.RequireJDK` to be able to skip tests 3. Ensured the test suite properly fails if no compatible Java version is found ## Why It can be tricky to have Java 8 installed on modern dev environments (e.g. Mac on Apple M3 chip). The absence of which previously caused the Spark Jar task tests to fail when run locally. This refactoring allows such environments to be able to run "SparkJar" tests using a newer Databricks Runtime. ## Tests 1. Ran `TestSparkJarTaskDeployAndRunOnVolumes` and `TestSparkJarTaskDeployAndRunOnWorkspace` locally on Mac with Java11 installed. 2. Checked that tests against older runtimes are still being run and passing in CI/CD environments |
||
---|---|---|
.. | ||
cloud.go | ||
copy.go | ||
env.go | ||
file.go | ||
helpers.go | ||
interface.go | ||
jdk.go | ||
requirement.go | ||
testutil_test.go |