mirror of https://github.com/databricks/cli.git
rename
This commit is contained in:
parent
3cfeb640e1
commit
18748f7879
|
@ -1,5 +1,6 @@
|
||||||
LocalOnly = true
|
LocalOnly = true
|
||||||
RecordRequests = true
|
RecordRequests = true
|
||||||
|
IncludeRequestHeaders = ["Authorization", "User-Agent"]
|
||||||
|
|
||||||
[[Repls]]
|
[[Repls]]
|
||||||
Old = '17\d{11}'
|
Old = '17\d{11}'
|
||||||
|
|
|
@ -1,4 +1,12 @@
|
||||||
{
|
{
|
||||||
|
"headers": {
|
||||||
|
"Authorization": [
|
||||||
|
"Bearer [DATABRICKS_TOKEN]"
|
||||||
|
],
|
||||||
|
"User-Agent": [
|
||||||
|
"cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/OS auth/pat"
|
||||||
|
]
|
||||||
|
},
|
||||||
"method": "POST",
|
"method": "POST",
|
||||||
"path": "/telemetry-ext",
|
"path": "/telemetry-ext",
|
||||||
"body": {
|
"body": {
|
||||||
|
|
|
@ -1,4 +1,12 @@
|
||||||
{
|
{
|
||||||
|
"headers": {
|
||||||
|
"Authorization": [
|
||||||
|
"Bearer [DATABRICKS_TOKEN]"
|
||||||
|
],
|
||||||
|
"User-Agent": [
|
||||||
|
"cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/OS auth/pat"
|
||||||
|
]
|
||||||
|
},
|
||||||
"method": "POST",
|
"method": "POST",
|
||||||
"path": "/telemetry-ext",
|
"path": "/telemetry-ext",
|
||||||
"body": {
|
"body": {
|
|
@ -1,4 +1,12 @@
|
||||||
{
|
{
|
||||||
|
"headers": {
|
||||||
|
"Authorization": [
|
||||||
|
"Bearer [DATABRICKS_TOKEN]"
|
||||||
|
],
|
||||||
|
"User-Agent": [
|
||||||
|
"cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/OS auth/pat"
|
||||||
|
]
|
||||||
|
},
|
||||||
"method": "POST",
|
"method": "POST",
|
||||||
"path": "/telemetry-ext",
|
"path": "/telemetry-ext",
|
||||||
"body": {
|
"body": {
|
|
@ -1,6 +1,8 @@
|
||||||
export DATABRICKS_CLI_TELEMETRY_PID_FILE=./telemetry.pid
|
export DATABRICKS_CLI_TELEMETRY_PID_FILE=./telemetry.pid
|
||||||
export DATABRICKS_CLI_TELEMETRY_UPLOAD_LOGS_FILE=./out.upload_process.txt
|
export DATABRICKS_CLI_TELEMETRY_UPLOAD_LOGS_FILE=./out.upload_process.txt
|
||||||
|
|
||||||
|
# TODO: Move the environment variable calculation to the daemon library.
|
||||||
|
|
||||||
trace $CLI selftest send-telemetry
|
trace $CLI selftest send-telemetry
|
||||||
|
|
||||||
echo "waiting for telemetry process to finish"
|
echo "waiting for telemetry process to finish"
|
|
@ -186,6 +186,8 @@ func workspaceClientOrPrompt(ctx context.Context, cfg *config.Config, allowPromp
|
||||||
return w, err
|
return w, err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// TODO: Make upload with oauth work.
|
||||||
|
// TODO: Move env var inheritance to the daemon library.
|
||||||
func MustWorkspaceClient(cmd *cobra.Command, args []string) error {
|
func MustWorkspaceClient(cmd *cobra.Command, args []string) error {
|
||||||
cfg := &config.Config{}
|
cfg := &config.Config{}
|
||||||
|
|
||||||
|
|
|
@ -14,10 +14,6 @@ import (
|
||||||
"github.com/stretchr/testify/require"
|
"github.com/stretchr/testify/require"
|
||||||
)
|
)
|
||||||
|
|
||||||
// TODO: Add flag to allow skipping telemetry.
|
|
||||||
// TODO: Add verification that the telemetry process uses the correct authentication
|
|
||||||
// credentials.
|
|
||||||
|
|
||||||
func TestTelemetryUploadRetries(t *testing.T) {
|
func TestTelemetryUploadRetries(t *testing.T) {
|
||||||
server := testserver.New(t)
|
server := testserver.New(t)
|
||||||
t.Cleanup(server.Close)
|
t.Cleanup(server.Close)
|
||||||
|
|
Loading…
Reference in New Issue