/* * This file contains API server tests that hit the API through the Rust API client library. * * These tests are relatively complex and mutate database state. Tests should take care not to be * racey or overwrite each other; for example, they should randomize external identifiers and * minimize reliance on hard-coded example entities. * * Note that these tests currently do *not* include tests the authentication system, or any other * middleware. */ extern crate fatcat; extern crate fatcat_api_spec; extern crate iron; extern crate uuid; use fatcat_api_spec::{Api, ApiNoContext, Context, ContextWrapperExt, Future}; mod helpers; use helpers::setup_client; // Disabled due to hang //#[test] fn test_basic() { let (client, context, mut server) = setup_client(); let client = client.with_context(context); client.get_changelog_entry(1).wait().unwrap(); server.close().unwrap() }