This commit is contained in:
Shreyas Goenka 2025-01-29 16:00:23 +01:00
parent 01d63dd20e
commit 155fe7b83d
No known key found for this signature in database
GPG Key ID: 92A07DF49CCB0622
4 changed files with 6 additions and 3 deletions

View File

@ -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"), " ")

View File

@ -0,0 +1,2 @@
# TODO: Make the name of this command better.
databricks send-test-event

View File

@ -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.