databricks / cli

Databricks CLI
Other
132 stars 50 forks source link

Attribute Terraform API requests the CLI #1598

Closed shreyas-goenka closed 2 months ago

shreyas-goenka commented 2 months ago

Changes

This PR adds cli to the user agent sent downstream to the databricks terraform provider when invoked via DABs.

Tests

Unit tests. Based on the comment here (https://github.com/databricks/cli/blob/10fe02075fec0b2e18d2eacf7412816d6e81d6bc/bundle/config/mutator/verify_cli_version_test.go#L113) we don't need to set the version to make the test assertion work correctly. This is likely because we use go test to run the tests while the CLI is compiled and the version is set via goreleaser.