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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
//! E2E test infrastructure for ant-node.
//!
//! This module provides a complete testing framework for running E2E tests
//! against a local testnet of 25 ant nodes with optional EVM payment
//! verification via a local Anvil testnet.
//!
//! ## Architecture
//!
//! ```text
//! TestHarness
//! ├── TestNetwork (25 nodes)
//! │ ├── Nodes 0-2: Bootstrap
//! │ └── Nodes 3-24: Regular
//! ├── TestAnvil (EVM testnet)
//! └── PaymentHelpers
//! ```
//!
//! ## Usage
//!
//! ```rust,no_run
//! use ant_node::tests::e2e::TestHarness;
//!
//! #[tokio::test]
//! async fn test_chunk_storage() {
//! let harness = TestHarness::setup().await.unwrap();
//!
//! // Store data via node 5
//! let data = b"test data";
//! let address = harness.node(5).unwrap().store(data).await.unwrap();
//!
//! // Retrieve from node 20
//! let retrieved = harness.node(20).unwrap().retrieve(&address).await.unwrap();
//! assert_eq!(data, retrieved);
//!
//! harness.teardown().await.unwrap();
//! }
//! ```
pub use TestAnvil;
pub use TestHarness;
pub use ;