Document HTTP maintenance scope and remediation
This commit is contained in:
@@ -71,6 +71,13 @@ func TestHandlerCancellationDuringRestrictedArtifactAcquisition(t *testing.T) {
|
||||
}
|
||||
}
|
||||
|
||||
func TestHandlerRejectsDirectoryArtifact(t *testing.T) {
|
||||
h := newArtifactRootHandler(t, t.TempDir())
|
||||
w := httptest.NewRecorder()
|
||||
h.ServeHTTP(w, httptest.NewRequest(http.MethodPost, "/v1/runs", strings.NewReader(`{"prompt_id":"p","inputs":{"input":{"type":"file","uri":"."}}}`)))
|
||||
assertHTTPErrorCode(t, w, http.StatusBadRequest, "artifact_read_failed")
|
||||
}
|
||||
|
||||
func (run runnerFunc) Run(ctx context.Context, req promptkit.RunRequest) (*promptkit.RunResult, error) {
|
||||
return run(ctx, req)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user