mirror of https://github.com/databricks/cli.git
This commit is contained in:
parent
c2eaf1ae49
commit
ef6a673ec4
|
@ -221,7 +221,6 @@ func runTest(t *testing.T, dir, coverDir string, repls testdiff.ReplacementsCont
|
||||||
|
|
||||||
for _, stub := range config.Server {
|
for _, stub := range config.Server {
|
||||||
require.NotEmpty(t, stub.Pattern)
|
require.NotEmpty(t, stub.Pattern)
|
||||||
require.NotEmpty(t, stub.Response.Body)
|
|
||||||
server.Handle(stub.Pattern, func(req *http.Request) (resp any, err error) {
|
server.Handle(stub.Pattern, func(req *http.Request) (resp any, err error) {
|
||||||
b := json.RawMessage(stub.Response.Body)
|
b := json.RawMessage(stub.Response.Body)
|
||||||
return b, nil
|
return b, nil
|
||||||
|
|
Loading…
Reference in New Issue