mirror of https://github.com/databricks/cli.git
fix replacement
This commit is contained in:
parent
152d982c9b
commit
f0d1dc56c8
|
@ -23,7 +23,7 @@
|
||||||
{
|
{
|
||||||
"headers": {
|
"headers": {
|
||||||
"Authorization": [
|
"Authorization": [
|
||||||
"Basic Y2xpZW50X2lkOmNsaWVudC1zZWNyZXQ="
|
"Basic [ENCODED_AUTH]"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"method": "POST",
|
"method": "POST",
|
||||||
|
|
|
@ -11,5 +11,5 @@ trace errcode $CLI bundle exec -t pat -- databricks current-user me -t oauth
|
||||||
|
|
||||||
# Explicitly select oauth target
|
# Explicitly select oauth target
|
||||||
export DATABRICKS_TOKEN=""
|
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
|
trace $CLI bundle exec -t oauth -- databricks current-user me
|
||||||
|
|
|
@ -0,0 +1,2 @@
|
||||||
|
bundle:
|
||||||
|
name: foobar
|
|
@ -0,0 +1,3 @@
|
||||||
|
script: line 64: syntax error near unexpected token `)'
|
||||||
|
|
||||||
|
Exit code: 2
|
|
@ -1,2 +1,8 @@
|
||||||
RecordRequests = true
|
RecordRequests = true
|
||||||
IncludeRequestHeaders = ["Authorization"]
|
IncludeRequestHeaders = ["Authorization"]
|
||||||
|
|
||||||
|
# "client_id:client_secret" in base64 is Y2xpZW50X2lkOmNsaWVudF9zZWNyZXQ=, expect to
|
||||||
|
# see this in Authorization header
|
||||||
|
[[Repls]]
|
||||||
|
Old = "Y2xpZW50X2lkOmNsaWVudF9zZWNyZXQ="
|
||||||
|
New = "[ENCODED_AUTH]"
|
||||||
|
|
|
@ -33,7 +33,7 @@ import (
|
||||||
// TODO: Add acceptance test that flags are indeed not parsed by the exec command and
|
// TODO: Add acceptance test that flags are indeed not parsed by the exec command and
|
||||||
// instead are parsed by the child command.
|
// 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 {
|
func newExecCommand() *cobra.Command {
|
||||||
execCmd := &cobra.Command{
|
execCmd := &cobra.Command{
|
||||||
|
|
Loading…
Reference in New Issue