security: isolate artifact documents and default servers to execution-only
This commit is contained in:
@@ -26,7 +26,7 @@ func setup(t *testing.T) (func(...string) (string, error), *pipeline.Store, stri
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
handler := server.Handler(ctx, store)
|
||||
handler := server.HandlerWithOptions(ctx, server.Options{AllowAuthoring: true}, store)
|
||||
http := httptest.NewServer(handler)
|
||||
t.Cleanup(func() { cancel(); http.Close(); server.WaitRuns(handler); store.Close() })
|
||||
url := "ws" + strings.TrimPrefix(http.URL, "http") + "/connect"
|
||||
|
||||
Reference in New Issue
Block a user