1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
//! Test utilities for alien-commands integration testing
//!
//! This module provides test infrastructure for testing ARC server and runtime
//! components in isolation and together. Key features:
//!
//! - `TestCommandServer`: Easy-to-use test server with local storage backends
//! - `MockDispatcher`: Captures dispatch calls for testing push scenarios
//! - Helper functions for creating test data and assertions
//!
//! # Usage
//!
//! ```rust
//! use alien_commands::test_utils::TestCommandServer;
//!
//! #[tokio::test]
//! async fn test_arc_command_flow() {
//! let server = TestCommandServer::new().await;
//!
//! // Create command
//! let response = server.create_command(create_test_command()).await;
//!
//! // Simulate agent processing
//! let lease = server.acquire_lease("test-agent").await.unwrap();
//! let result = server.submit_command_response(&lease.command_id, test_response()).await;
//!
//! assert!(result.is_ok());
//! }
//! ```
pub use ;
pub use *;
pub use TestCommandServer;