mirror of https://github.com/databricks/cli.git
This commit is contained in:
parent
01d63dd20e
commit
155fe7b83d
|
@ -8,11 +8,12 @@ import (
|
|||
"testing"
|
||||
|
||||
"github.com/databricks/cli/internal/testcli"
|
||||
"github.com/databricks/cli/internal/testutil"
|
||||
"github.com/stretchr/testify/require"
|
||||
)
|
||||
|
||||
func StartCmdServer(t *testing.T) *TestServer {
|
||||
server := StartServer(t)
|
||||
func StartCmdServer(t *testing.T) *testutil.Server {
|
||||
server := testutil.StartServer(t)
|
||||
server.Handle("/", func(r *http.Request) (any, error) {
|
||||
q := r.URL.Query()
|
||||
args := strings.Split(q.Get("args"), " ")
|
||||
|
|
|
@ -0,0 +1,2 @@
|
|||
# TODO: Make the name of this command better.
|
||||
databricks send-test-event
|
|
@ -97,7 +97,7 @@ func New() *cobra.Command {
|
|||
}
|
||||
|
||||
// Log the CLI telemetry events.
|
||||
err := apiClient.Do(ctx, http.MethodPost, "/telemetry-ext", nil, telemetry.RequestBody{
|
||||
err := apiClient.Do(ctx, http.MethodPost, "/telemetry-ext", nil, nil, telemetry.RequestBody{
|
||||
UploadTime: time.Now().Unix(),
|
||||
ProtoLogs: protoLogs,
|
||||
|
||||
|
|
Binary file not shown.
Loading…
Reference in New Issue