add convenience method to pull params from config

This commit is contained in:
Joel Wetzell
2026-03-01 14:57:19 -06:00
parent 183182e6cd
commit c298f63ffc
69 changed files with 591 additions and 1081 deletions

View File

@@ -103,7 +103,7 @@ func TestBadScriptWASM(t *testing.T) {
name: "no path parameter",
params: map[string]any{},
payload: []byte("hello"),
errorString: "script.wasm requires a path parameter",
errorString: "script.wasm path error: not found",
},
{
name: "non-string path parameter",
@@ -111,7 +111,7 @@ func TestBadScriptWASM(t *testing.T) {
"path": 12345,
},
payload: []byte("hello"),
errorString: "script.wasm path must be a string",
errorString: "script.wasm path error: not a string",
},
{
name: "non-string function",
@@ -121,7 +121,7 @@ func TestBadScriptWASM(t *testing.T) {
"function": 12345,
},
payload: []byte("hello"),
errorString: "script.wasm function must be a string",
errorString: "script.wasm function error: not a string",
},
{
name: "non-boolean enableWasi",