databricks-cli/cmd/root
Pieter Noordhuis f62def3e77
Replace API call to test configuration with dummy authenticate call (#728)
## Changes

This reduces the latency of every workspace command by the duration of a
single API call to retrieve the current user (which can take up to a
full second).

Note: the better place to verify that a request can be authenticated is
the SDK itself.

## Tests

* Unit test to confirm an the empty `*http.Request` can be constructed
* Manually confirmed that the additional API call no longer happens
2023-09-05 11:10:37 +00:00
..
auth.go Replace API call to test configuration with dummy authenticate call (#728) 2023-09-05 11:10:37 +00:00
auth_test.go Replace API call to test configuration with dummy authenticate call (#728) 2023-09-05 11:10:37 +00:00
bundle.go Cleanup after "Add a foundation for built-in templates" (#707) 2023-08-30 14:01:08 +00:00
bundle_test.go Fixed --environment flag (#705) 2023-08-28 17:05:55 +00:00
io.go Remove dependency on global state for the root command (#606) 2023-07-26 11:17:09 +00:00
logger.go Upgraded Go version to 1.21 (#664) 2023-08-15 13:50:40 +00:00
progress_logger.go Remove dependency on global state for the root command (#606) 2023-07-26 11:17:09 +00:00
progress_logger_test.go Remove dependency on global state for the root command (#606) 2023-07-26 11:17:09 +00:00
root.go Renamed `environments` to `targets` in bundle configuration (#670) 2023-08-17 15:22:32 +00:00
user_agent.go Rename bricks -> databricks (#389) 2023-05-16 18:35:39 +02:00
user_agent_command.go Move code for including command name in user agent (#203) 2023-02-15 10:33:35 +01:00
user_agent_command_test.go Move code for including command name in user agent (#203) 2023-02-15 10:33:35 +01:00
user_agent_upstream.go Rename: bricks -> databricks (#393) 2023-05-22 16:40:50 +02:00
user_agent_upstream_test.go Let caller set BRICKS_UPSTREAM for user agent (#196) 2023-02-03 17:05:58 +01:00