tatara-testing 0.2.210

Test utilities and in-memory server for tatara
Documentation

Test infrastructure for tatara.

Provides an in-memory mock of the tatara API that doesn't require Raft consensus, gossip membership, or any networking. This enables:

  • API integration tests: Full HTTP round-trip tests against a virtualized tatara server
  • Forge workflow tests: End-to-end forge lifecycle testing (submit -> schedule -> release)
  • Scheduler tests: Property-based testing of scheduling invariants

Usage

use tatara_testing::TestServer;

#[tokio::test]
async fn test_submit_job() {
    let server = TestServer::new();
    let response = server.post("/api/v1/jobs", &job_spec).await;
    assert_eq!(response.status(), 200);
}