Class ModuleTestingSidecarResource
java.lang.Object
ai.pipestream.module.pipelineprobe.ModuleTestingSidecarResource
@Path("/test-sidecar/v1")
@Produces("application/json")
public class ModuleTestingSidecarResource
extends Object
REST resource for the module-testing-sidecar harness.
Pipeline runs use PipelineCrawlerResource
(POST /test-sidecar/v1/pipeline-crawl). OpenSearch indexing tests
use OpenSearchIndexingTestsResource.
Blocking gRPC stubs on virtual threads — no Mutiny. The legacy E2E
orchestration service and its SSE endpoints have been removed; see
docs/sidecar-ui-tabs.md.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionDeletes all test graphs and returns a summary of the operation.Returns the most recently recorded error for quick diagnosis, or a placeholder message when none has been recorded.Leaked pipeline-crawl sweep: dry-run report of every resource thepipeline-crawl-*naming convention owns — accounts, drives, datasources, graphs, index plans + indices — left behind by runs that predate per-run ninja cleanup (or whose sidecar died mid-run).Sample document catalog for future corpus / single-doc pipeline presets.Lists the ids of test graphs that are eligible for cleanup.jakarta.ws.rs.core.ResponseMaps validation failures to HTTP 400.Execute the leaked pipeline-crawl sweep.
-
Constructor Details
-
ModuleTestingSidecarResource
public ModuleTestingSidecarResource()Creates the sidecar REST resource. Instances are managed by the JAX-RS runtime.
-
-
Method Details
-
getLastError
-
listTestGraphsForCleanup
-
deleteAllTestGraphs
Deletes all test graphs and returns a summary of the operation.- Returns:
- a map reporting the deleted and failed graph ids and counts, the number of clusters whose leases were released, and the total duration in milliseconds
-
listLeakedCrawlRuns
Leaked pipeline-crawl sweep: dry-run report of every resource thepipeline-crawl-*naming convention owns — accounts, drives, datasources, graphs, index plans + indices — left behind by runs that predate per-run ninja cleanup (or whose sidecar died mid-run).- Returns:
- a map with
dry_runset totrueand the leaked-runaudit
-
sweepLeakedCrawlRuns
-
listSamples
Sample document catalog for future corpus / single-doc pipeline presets.- Returns:
- one info map per known
SampleDocument
-
mapValidationErrors
Maps validation failures to HTTP 400.- Parameters:
e- the validation error- Returns:
- a 400 response carrying the error message
-