databricks-cli/internal/testutil
Andrew Nester 56ed9bebf3
Added support for creating all-purpose clusters (#1698)
## Changes
Added support for creating all-purpose clusters

Example of configuration

```
bundle:
  name: clusters

resources:
  clusters:
    test_cluster:
      cluster_name: "Test Cluster"
      num_workers: 2
      node_type_id: "i3.xlarge"
      autoscale:
        min_workers: 2
        max_workers: 7
      spark_version: "13.3.x-scala2.12"
      spark_conf:
        "spark.executor.memory": "2g"

  jobs:
    test_job:
      name: "Test Job"
      tasks:
        - task_key: test_task
          existing_cluster_id: ${resources.clusters.test_cluster.id}
          notebook_task:
            notebook_path: "./src/test.py"

targets:
    development:
      mode: development
      compute_id: ${resources.clusters.test_cluster.id}

```

## Tests
Added unit, config and E2E tests
2024-09-23 10:42:34 +00:00
..
cloud.go Added support for creating all-purpose clusters (#1698) 2024-09-23 10:42:34 +00:00
copy.go Fix ability to import the CLI repository as module (#1671) 2024-08-12 14:20:04 +00:00
env.go Add integration test for mlops-stacks initialization (#1155) 2024-03-12 14:15:54 +00:00
file.go Serialize dynamic value for `bundle validate` output (#1499) 2024-06-18 15:04:20 +00:00
jdk.go Run Spark JAR task test on multiple DBR versions (#1665) 2024-08-09 15:13:31 +00:00
requirement.go Run tests to verify backend tag validation behavior (#814) 2023-09-29 08:38:06 +00:00