Skip to content

Commit 40eecf0

Browse files
committed
Stub out SledAgentApi methods in test utils for Nexus
1 parent 5ccf78a commit 40eecf0

File tree

1 file changed

+57
-0
lines changed

1 file changed

+57
-0
lines changed

nexus/mgs-updates/src/test_util/host_phase_2_test_state.rs

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -936,5 +936,62 @@ mod api_impl {
936936
) -> Result<HttpResponseUpdatedNoContent, HttpError> {
937937
unimplemented!()
938938
}
939+
940+
async fn trust_quorum_reconfigure(
941+
_request_context: RequestContext<Self::Context>,
942+
_body: TypedBody<
943+
sled_agent_types::trust_quorum::TrustQuorumReconfigureRequest,
944+
>,
945+
) -> Result<HttpResponseUpdatedNoContent, HttpError> {
946+
unimplemented!()
947+
}
948+
949+
async fn trust_quorum_upgrade_from_lrtq(
950+
_request_context: RequestContext<Self::Context>,
951+
_body: TypedBody<
952+
sled_agent_types::trust_quorum::TrustQuorumLrtqUpgradeRequest,
953+
>,
954+
) -> Result<HttpResponseUpdatedNoContent, HttpError> {
955+
unimplemented!()
956+
}
957+
958+
async fn trust_quorum_commit(
959+
_request_context: RequestContext<Self::Context>,
960+
_body: TypedBody<
961+
sled_agent_types::trust_quorum::TrustQuorumCommitRequest,
962+
>,
963+
) -> Result<
964+
HttpResponseOk<
965+
sled_agent_types::trust_quorum::TrustQuorumCommitResponse,
966+
>,
967+
HttpError,
968+
> {
969+
unimplemented!()
970+
}
971+
972+
async fn trust_quorum_coordinator_status(
973+
_request_context: RequestContext<Self::Context>,
974+
) -> Result<
975+
HttpResponseOk<
976+
Option<sled_agent_types::trust_quorum::TrustQuorumCoordinatorStatus>,
977+
>,
978+
HttpError,
979+
>{
980+
unimplemented!()
981+
}
982+
983+
async fn trust_quorum_prepare_and_commit(
984+
_request_context: RequestContext<Self::Context>,
985+
_body: TypedBody<
986+
sled_agent_types::trust_quorum::TrustQuorumPrepareAndCommitRequest,
987+
>,
988+
) -> Result<
989+
HttpResponseOk<
990+
sled_agent_types::trust_quorum::TrustQuorumCommitResponse,
991+
>,
992+
HttpError,
993+
> {
994+
unimplemented!()
995+
}
939996
}
940997
}

0 commit comments

Comments
 (0)