databricks-cli/integration/libs
shreyas-goenka 897741f55a
Store DBR version in context (#2438)
## Changes
This PR also starts storing the DBR versions in the context.

Go patch file used:
```
@@
var x expression
@@
-dbr.MockRuntime(x, true)
+dbr.MockRuntime(x, dbr.Environment{IsDbr: true, Version: "15.4"})

@@
var x expression
@@
-dbr.MockRuntime(x, false)
+dbr.MockRuntime(x, dbr.Environment{})
```

ref: https://github.com/uber-go/gopatch

## Why
This localised all DBR version accesses to `libs/dbr`. Relevant comment:
https://github.com/databricks/cli/pull/2432#discussion_r1982878616

## Tests
Exiting tests are modified.
2025-03-06 13:01:43 +00:00
..
filer Enable linter 'copyloopvar' and fix the issues (#2160) 2025-01-16 11:20:50 +00:00
git Store DBR version in context (#2438) 2025-03-06 13:01:43 +00:00
locker Enable linter 'copyloopvar' and fix the issues (#2160) 2025-01-16 11:20:50 +00:00
tags Clean up TestMain from integration tests to fix caching (#2090) 2025-01-08 11:59:22 +00:00
telemetry Add integration test for the /telemetry-ext endpoint (#2259) 2025-01-29 14:05:58 +00:00