Skip to content

Commit ef69f6e

Browse files
test(stats): adding cargo test
Signed-off-by: Abhilash Shetty <abhilash.shetty@datacore.com>
1 parent 00f735d commit ef69f6e

File tree

2 files changed

+389
-0
lines changed

2 files changed

+389
-0
lines changed

io-engine-tests/src/compose/rpc/v1.rs

+7
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ pub struct RpcHandle {
5151
pub host: host::HostRpcClient<Channel>,
5252
pub nexus: nexus::NexusRpcClient<Channel>,
5353
pub snapshot: snapshot::SnapshotRpcClient<Channel>,
54+
pub stats: stats::StatsRpcClient<Channel>,
5455
pub test: test::TestRpcClient<Channel>,
5556
}
5657

@@ -106,6 +107,11 @@ impl RpcHandle {
106107
.await
107108
.unwrap();
108109

110+
let stats =
111+
stats::StatsRpcClient::connect(format!("http://{endpoint}"))
112+
.await
113+
.unwrap();
114+
109115
let test = test::TestRpcClient::connect(format!("http://{endpoint}"))
110116
.await
111117
.unwrap();
@@ -120,6 +126,7 @@ impl RpcHandle {
120126
host,
121127
nexus,
122128
snapshot,
129+
stats,
123130
test,
124131
})
125132
}

0 commit comments

Comments
 (0)