fix replacement

This commit is contained in:
Shreyas Goenka 2025-03-03 17:40:04 +01:00
parent 152d982c9b
commit f0d1dc56c8
No known key found for this signature in database
GPG Key ID: 92A07DF49CCB0622
7 changed files with 14 additions and 3 deletions

View File

@ -23,7 +23,7 @@
{
"headers": {
"Authorization": [
"Basic Y2xpZW50X2lkOmNsaWVudC1zZWNyZXQ="
"Basic [ENCODED_AUTH]"
]
},
"method": "POST",

View File

@ -11,5 +11,5 @@ trace errcode $CLI bundle exec -t pat -- databricks current-user me -t oauth
# Explicitly select oauth target
export DATABRICKS_TOKEN=""
export DATABRICKS_CLIENT_SECRET="client-secret"
export DATABRICKS_CLIENT_SECRET="client_secret"
trace $CLI bundle exec -t oauth -- databricks current-user me

View File

@ -0,0 +1,2 @@
bundle:
name: foobar

View File

@ -0,0 +1,3 @@
script: line 64: syntax error near unexpected token `)'
Exit code: 2

View File

@ -1,2 +1,8 @@
RecordRequests = true
IncludeRequestHeaders = ["Authorization"]
# "client_id:client_secret" in base64 is Y2xpZW50X2lkOmNsaWVudF9zZWNyZXQ=, expect to
# see this in Authorization header
[[Repls]]
Old = "Y2xpZW50X2lkOmNsaWVudF9zZWNyZXQ="
New = "[ENCODED_AUTH]"

View File

@ -33,7 +33,7 @@ import (
// TODO: Add acceptance test that flags are indeed not parsed by the exec command and
// instead are parsed by the child command.
// # TODO: Table test casing the target permutations
// # TODO: Table test casing the profile flag permutations
func newExecCommand() *cobra.Command {
execCmd := &cobra.Command{