Closed shreyas-goenka closed 2 months ago
This PR adds cli to the user agent sent downstream to the databricks terraform provider when invoked via DABs.
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.
go test
goreleaser
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 viagoreleaser
.