mirror of https://github.com/databricks/cli.git
remove user agent from telemetry tests
This commit is contained in:
parent
5ee52acacf
commit
5056070d11
|
@ -1,6 +1,6 @@
|
|||
LocalOnly = true
|
||||
RecordRequests = true
|
||||
IncludeRequestHeaders = ["Authorization", "User-Agent"]
|
||||
IncludeRequestHeaders = ["Authorization"]
|
||||
|
||||
[[Repls]]
|
||||
Old = '17\d{11}'
|
||||
|
|
|
@ -2,9 +2,6 @@
|
|||
"headers": {
|
||||
"Authorization": [
|
||||
"Bearer [DATABRICKS_TOKEN]"
|
||||
],
|
||||
"User-Agent": [
|
||||
"cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/OS auth/pat"
|
||||
]
|
||||
},
|
||||
"method": "POST",
|
||||
|
|
|
@ -2,9 +2,6 @@
|
|||
"headers": {
|
||||
"Authorization": [
|
||||
"Bearer [DATABRICKS_TOKEN]"
|
||||
],
|
||||
"User-Agent": [
|
||||
"cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/OS auth/pat"
|
||||
]
|
||||
},
|
||||
"method": "POST",
|
||||
|
|
|
@ -2,9 +2,6 @@
|
|||
"headers": {
|
||||
"Authorization": [
|
||||
"Bearer [DATABRICKS_TOKEN]"
|
||||
],
|
||||
"User-Agent": [
|
||||
"cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/OS auth/pat"
|
||||
]
|
||||
},
|
||||
"method": "POST",
|
||||
|
|
|
@ -175,6 +175,7 @@ func inheritEnvVars() []string {
|
|||
return out
|
||||
}
|
||||
|
||||
// TODO: Add tests validating the auth resolution in the telemetry worker.
|
||||
func uploadTelemetry(ctx context.Context, cmdStr string, start, end time.Time, exitCode int) {
|
||||
// Nothing to upload.
|
||||
if !telemetry.HasLogs(ctx) {
|
||||
|
|
|
@ -11,6 +11,7 @@ func New() *cobra.Command {
|
|||
Hidden: true,
|
||||
}
|
||||
|
||||
// TODO: Run the acceptance tests as integration tests?
|
||||
cmd.AddCommand(newSendTelemetry())
|
||||
return cmd
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue