pub struct MockPamAccessConnectorRotationAttemptsApi {
PamAccessConnectorRotationAttemptsApi_expectations: MockPamAccessConnectorRotationAttemptsApi_PamAccessConnectorRotationAttemptsApi,
}Fields§
§PamAccessConnectorRotationAttemptsApi_expectations: MockPamAccessConnectorRotationAttemptsApi_PamAccessConnectorRotationAttemptsApiImplementations§
Source§impl MockPamAccessConnectorRotationAttemptsApi
impl MockPamAccessConnectorRotationAttemptsApi
Sourcepub fn checkpoint(&mut self)
pub fn checkpoint(&mut self)
Validate that all current expectations for all methods have been satisfied, and discard them.
Sourcepub fn new() -> Self
pub fn new() -> Self
Create a new mock object with no expectations.
This method will not be generated if the real struct
already has a new method. However, it will be
generated if the struct implements a trait with a new
method. The trait’s new method can still be called
like <MockX as TraitY>::new
Source§impl MockPamAccessConnectorRotationAttemptsApi
impl MockPamAccessConnectorRotationAttemptsApi
Sourcepub fn expect_failure(&mut self) -> &mut Expectation
pub fn expect_failure(&mut self) -> &mut Expectation
Create an Expectation for mocking the failure method
Sourcepub fn expect_get_cipher(&mut self) -> &mut Expectation
pub fn expect_get_cipher(&mut self) -> &mut Expectation
Create an Expectation for mocking the get_cipher method
Sourcepub fn expect_put_cipher(&mut self) -> &mut Expectation
pub fn expect_put_cipher(&mut self) -> &mut Expectation
Create an Expectation for mocking the put_cipher method
Sourcepub fn expect_success(&mut self) -> &mut Expectation
pub fn expect_success(&mut self) -> &mut Expectation
Create an Expectation for mocking the success method
Trait Implementations§
Source§impl PamAccessConnectorRotationAttemptsApi for MockPamAccessConnectorRotationAttemptsApi
impl PamAccessConnectorRotationAttemptsApi for MockPamAccessConnectorRotationAttemptsApi
Source§fn failure<'a, 'life0, 'async_trait>(
&'life0 self,
id: Uuid,
report_rotation_failed_request_model: ReportRotationFailedRequestModel,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
fn failure<'a, 'life0, 'async_trait>(
&'life0 self,
id: Uuid,
report_rotation_failed_request_model: ReportRotationFailedRequestModel,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
POST /access-connectors/rotation/attempts/{id}/failure Reports a failed rotation attempt (spec RecordRotationFailed). Never forward raw target-system error output as ErrorCode/Detail – it can echo credentials. Send a bounded error code plus an optional short detail instead. Either field exceeding its documented length is rejected as a 400, so cap them before sending – a rejected report leaves the failure unrecorded until the job times out. The single reason the two combine into is truncated rather than rejected.
Source§fn get_cipher<'a, 'life0, 'async_trait>(
&'life0 self,
id: Uuid,
) -> Pin<Box<dyn Future<Output = Result<RotationCipherResponseModel, Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
fn get_cipher<'a, 'life0, 'async_trait>(
&'life0 self,
id: Uuid,
) -> Pin<Box<dyn Future<Output = Result<RotationCipherResponseModel, Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
GET /access-connectors/rotation/attempts/{id}/cipher Returns the cipher for this access connector’s claimed, executing attempt only – never a general cipher read. Data is returned exactly as stored: opaque ciphertext the server never decrypts.
Source§fn put_cipher<'a, 'life0, 'async_trait>(
&'life0 self,
id: Uuid,
submit_cipher_update_request_model: SubmitCipherUpdateRequestModel,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
fn put_cipher<'a, 'life0, 'async_trait>(
&'life0 self,
id: Uuid,
submit_cipher_update_request_model: SubmitCipherUpdateRequestModel,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
PUT /access-connectors/rotation/attempts/{id}/cipher Writes the rotated secret back to the cipher (spec AcceptCipherUpdate) via an atomic capability check. 409 means the claim/attempt no longer holds, or LastKnownRevisionDate no longer matches the cipher’s current revision (a concurrent user edit won) – audited as write_rejected. 404 means the attempt id is unknown (no audit).
Source§fn success<'a, 'life0, 'async_trait>(
&'life0 self,
id: Uuid,
report_rotation_succeeded_request_model: ReportRotationSucceededRequestModel,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
fn success<'a, 'life0, 'async_trait>(
&'life0 self,
id: Uuid,
report_rotation_succeeded_request_model: ReportRotationSucceededRequestModel,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
POST /access-connectors/rotation/attempts/{id}/success Reports a successful rotation (spec RecordRotationSucceeded). Requires the attempt to already have a written cipher (the VerifiedBeforeSuccess backstop); otherwise the report is treated as stale (409, audited as report_rejected).
Auto Trait Implementations§
impl Freeze for MockPamAccessConnectorRotationAttemptsApi
impl RefUnwindSafe for MockPamAccessConnectorRotationAttemptsApi
impl Send for MockPamAccessConnectorRotationAttemptsApi
impl Sync for MockPamAccessConnectorRotationAttemptsApi
impl Unpin for MockPamAccessConnectorRotationAttemptsApi
impl UnsafeUnpin for MockPamAccessConnectorRotationAttemptsApi
impl UnwindSafe for MockPamAccessConnectorRotationAttemptsApi
Blanket Implementations§
§impl<T> AnySync for T
impl<T> AnySync for T
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
§impl<T> CompatExt for T
impl<T> CompatExt for T
§impl<T, UT> HandleAlloc<UT> for T
impl<T, UT> HandleAlloc<UT> for T
§fn new_handle(value: Arc<T>) -> Handle
fn new_handle(value: Arc<T>) -> Handle
§unsafe fn clone_handle(handle: Handle) -> Handle
unsafe fn clone_handle(handle: Handle) -> Handle
§unsafe fn consume_handle(handle: Handle) -> Arc<T> ⓘ
unsafe fn consume_handle(handle: Handle) -> Arc<T> ⓘ
Arc<> Read more