mirror of https://github.com/databricks/cli.git
cleanup:
This commit is contained in:
parent
6fabd756f0
commit
a40dc8cf3c
|
@ -1,2 +1 @@
|
||||||
LocalOnly = true # Deployment currently fails when run locally; once that is fixed, remove this setting
|
LocalOnly = true # Deployment currently fails when run locally; once that is fixed, remove this setting
|
||||||
|
|
||||||
|
|
|
@ -54,7 +54,7 @@ your test. You can copy the following snippet in your test.toml file:
|
||||||
[[Server]]
|
[[Server]]
|
||||||
Pattern = %s %s
|
Pattern = %s %s
|
||||||
Response = '''
|
Response = '''
|
||||||
<response here>
|
<response here>
|
||||||
'''`, req.Method, req.URL.Path)
|
'''`, req.Method, req.URL.Path)
|
||||||
|
|
||||||
s.t.Fatalf(msg)
|
s.t.Fatalf(msg)
|
||||||
|
@ -89,6 +89,7 @@ func (s *Server) Handle(pattern string, handler HandlerFunc) {
|
||||||
|
|
||||||
var reqBody any
|
var reqBody any
|
||||||
if len(body) > 0 && body[0] == '{' {
|
if len(body) > 0 && body[0] == '{' {
|
||||||
|
// serialize the body as is, if it's JSON
|
||||||
reqBody = json.RawMessage(body)
|
reqBody = json.RawMessage(body)
|
||||||
} else {
|
} else {
|
||||||
reqBody = string(body)
|
reqBody = string(body)
|
||||||
|
|
Loading…
Reference in New Issue